:root {
  --black: #000000;
  --white: #ffffff;
  --soft: #f5f5f7;
  --line: #d2d2d7;
  --muted: #6e6e73;
  --orange: #f06c03;
  --orange-deep: #ff3b22;
  --gold: #ffb000;
  --gradient: linear-gradient(135deg, var(--orange-deep), var(--orange) 52%, var(--gold));
  --radius-lg: 34px;
  --radius-md: 24px;
  --radius-sm: 16px;
  --shadow: 0 24px 80px rgba(0,0,0,.08);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--black);
  background: var(--white);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; }

.shell { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.section { padding: 120px 0; }
.section-white { background: var(--white); }
.section-soft { background: var(--soft); }
.section-black { background: var(--black); color: var(--white); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  isolation: isolate;
  background: rgba(255,255,255,.82);
  border-bottom: 1px solid rgba(0,0,0,.08);
  backdrop-filter: saturate(180%) blur(20px);
}
.nav-wrap { min-height: 68px; display: flex; align-items: center; gap: 28px; }
.brand { width: 162px; flex: 0 0 auto; }
.brand img { width: 100%; }
.main-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.main-nav a { font-size: 13px; color: #1d1d1f; transition: opacity .2s ease; }
.main-nav a:hover { opacity: .55; }
.header-cta { margin-left: 4px; }
.menu-toggle { position: relative; z-index: 1002; display: none; background: none; border: 0; width: 42px; height: 42px; padding: 10px; margin-left: auto; }
.menu-toggle span { display: block; width: 100%; height: 1px; background: #000; margin: 7px 0; transition: .25s ease; }

.button {
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: transform .2s ease, filter .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-1px); filter: brightness(.96); }
.button-primary { background: var(--gradient); color: #fff; }
.button-outline { border-color: var(--orange); color: var(--orange); background: transparent; }
.button-light { background: #fff; color: #000; }
.button-small { min-height: 38px; padding: 0 17px; font-size: 13px; }
.button-full { width: 100%; border: 0; }

.hero { overflow: hidden; }
.hero-inner { min-height: 780px; padding: 108px 0 68px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.eyebrow { margin: 0 0 18px; font-size: 12px; line-height: 1; letter-spacing: .16em; font-weight: 700; color: var(--orange); }
.hero h1 { margin: 0; max-width: 980px; font-size: clamp(56px, 7.2vw, 102px); line-height: .95; letter-spacing: -.065em; font-weight: 700; }
.hero-copy { max-width: 790px; margin: 32px auto 0; font-size: clamp(21px, 2.1vw, 30px); line-height: 1.28; letter-spacing: -.025em; color: #3a3a3c; }
.hero-copy strong { color: #000; font-weight: 600; }
.hero-actions { display: flex; justify-content: center; gap: 14px; margin-top: 34px; }
.hero-showcase { width: 100%; margin-top: 72px; display: grid; grid-template-columns: repeat(4, 1fr); text-align: left; border-top: 1px solid var(--line); }
.showcase-card { position: relative; min-height: 170px; padding: 26px 24px 24px; border-right: 1px solid var(--line); opacity: .5; transition: opacity .35s, background .35s; }
.showcase-card:last-child { border-right: 0; }
.showcase-card.active { opacity: 1; background: linear-gradient(180deg, rgba(240,108,3,.09), rgba(240,108,3,0)); }
.showcase-index { display: block; font-size: 11px; font-weight: 700; color: var(--orange); margin-bottom: 26px; }
.showcase-card strong { display: block; font-size: 18px; letter-spacing: -.02em; }
.showcase-card p { margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.45; }

.position-strip { background: #000; color: #fff; }
.position-strip-inner { min-height: 80px; display: flex; align-items: center; justify-content: center; gap: clamp(18px, 4vw, 58px); font-size: clamp(16px, 1.8vw, 23px); letter-spacing: -.02em; }
.position-strip-inner strong { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.position-strip-inner span { color: #a1a1a6; }

.section-heading { max-width: 780px; margin-bottom: 58px; }
.section-heading.centered { text-align: center; margin-inline: auto; }
.section-heading h2 { margin: 0; font-size: clamp(42px, 5.6vw, 72px); line-height: 1.02; letter-spacing: -.055em; }
.section-heading > p:last-child { margin: 22px 0 0; max-width: 700px; color: var(--muted); font-size: 20px; line-height: 1.45; letter-spacing: -.02em; }
.section-heading.centered > p:last-child { margin-inline: auto; }
.heading-on-dark > p:last-child { color: #a1a1a6; }

.carousel-shell { position: relative; }
.carousel-toolbar { margin-bottom: 18px; display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 13px; }
.carousel-toolbar-dark { color: #86868b; }
.carousel-buttons { display: flex; gap: 8px; }
.carousel-arrow { width: 44px; height: 44px; border-radius: 50%; border: 0; background: #e8e8ed; font-size: 20px; cursor: pointer; transition: transform .2s, background .2s; }
.carousel-arrow:hover { transform: scale(1.04); background: #dedee3; }
.dark-arrow { background: #1d1d1f; color: #fff; }
.dark-arrow:hover { background: #2c2c2e; }
.horizontal-carousel { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(340px, 39%); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 2px 2px 16px; }
.horizontal-carousel::-webkit-scrollbar { display: none; }
.horizontal-carousel > * { scroll-snap-align: start; }

.problem-card { min-height: 430px; padding: 34px; border-radius: var(--radius-lg); display: flex; flex-direction: column; box-shadow: var(--shadow); }
.problem-card .card-number { font-size: 12px; font-weight: 700; letter-spacing: .08em; opacity: .65; }
.problem-card h3 { margin: auto 0 20px; font-size: 32px; line-height: 1.06; letter-spacing: -.045em; }
.problem-card p { margin: 0; font-size: 16px; line-height: 1.45; opacity: .75; }
.problem-card a { margin-top: 32px; font-size: 15px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.card-dark { background: #000; color: #fff; }
.card-light { background: #fff; color: #000; }
.card-orange { background: var(--gradient); color: #fff; }
.card-gray { background: #dadadd; color: #000; }

.solution-stack { display: grid; gap: 38px; }
.solution-panel { min-height: 650px; padding: 72px; border-radius: 40px; background: var(--soft); display: grid; grid-template-columns: .95fr 1.05fr; gap: 60px; align-items: center; overflow: hidden; }
.solution-panel.reverse .solution-copy { order: 2; }
.solution-panel.reverse .solution-visual { order: 1; }
.solution-kicker { display: block; margin-bottom: 20px; color: var(--orange); font-size: 12px; font-weight: 700; letter-spacing: .14em; }
.solution-copy h3 { margin: 0; font-size: clamp(38px, 4.2vw, 60px); line-height: 1.02; letter-spacing: -.055em; }
.solution-copy > p { margin: 24px 0; color: var(--muted); font-size: 19px; line-height: 1.45; }
.clean-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.clean-list li { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.clean-list li::before { content: "✓"; color: var(--orange); font-weight: 700; margin-right: 10px; }
.text-link { display: inline-flex; gap: 12px; margin-top: 28px; color: var(--orange); font-size: 16px; font-weight: 600; }
.solution-visual { min-height: 440px; border-radius: 30px; background: #000; color: #fff; position: relative; display: grid; place-items: center; overflow: hidden; }
.solution-visual::before { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: var(--gradient); filter: blur(85px); opacity: .32; }
.solution-visual > * { position: relative; z-index: 1; }
.mini-window { width: 82%; padding: 20px; border: 1px solid rgba(255,255,255,.16); border-radius: 22px; background: rgba(255,255,255,.08); backdrop-filter: blur(20px); }
.window-top { display: flex; gap: 7px; padding-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,.12); }
.window-top i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.28); }
.pipeline { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; padding-top: 20px; }
.pipeline div { min-height: 170px; padding: 14px; border-radius: 14px; background: rgba(255,255,255,.08); display: flex; flex-direction: column; justify-content: space-between; }
.pipeline span { font-size: 11px; color: #a1a1a6; }
.pipeline b { font-size: 34px; }
.pipeline .active-stage { background: var(--gradient); }
.pipeline .active-stage span { color: rgba(255,255,255,.8); }
.demand-flow { width: 88%; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; }
.demand-flow span { padding: 14px 18px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.12); font-size: 13px; }
.demand-flow i { color: #86868b; font-style: normal; }
.demand-flow .accent-node { background: var(--gradient); border: 0; }
.metric-card { position: absolute; left: 8%; bottom: 8%; width: 54%; padding: 20px; border-radius: 18px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15); backdrop-filter: blur(15px); }
.metric-card small, .metric-card strong { display: block; }
.metric-card small { color: #a1a1a6; margin-bottom: 6px; }
.phone-store { width: 220px; height: 410px; padding: 24px 16px; border-radius: 38px; border: 8px solid #1d1d1f; background: #fff; box-shadow: 0 36px 90px rgba(0,0,0,.5); position: relative; }
.phone-notch { width: 72px; height: 18px; background: #000; border-radius: 0 0 12px 12px; position: absolute; top: 0; left: 50%; transform: translateX(-50%); }
.store-cover { height: 92px; margin-top: 10px; border-radius: 16px; background: var(--gradient); }
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.product-grid i { height: 88px; border-radius: 12px; background: #ececf0; }
.order-pill { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); white-space: nowrap; color: #fff; background: #000; border-radius: 999px; padding: 10px 14px; font-size: 11px; }
.visual-ai { place-content: center; gap: 12px; padding: 40px; }
.chat-bubble { max-width: 80%; padding: 14px 17px; border-radius: 18px; font-size: 14px; line-height: 1.4; }
.chat-bubble.incoming { justify-self: start; background: rgba(255,255,255,.12); border-bottom-left-radius: 5px; }
.chat-bubble.outgoing { justify-self: end; background: var(--gradient); border-bottom-right-radius: 5px; }

.service-carousel { grid-auto-columns: minmax(300px, 31%); }
.service-card { min-height: 360px; padding: 30px; border-radius: 28px; background: #1d1d1f; border: 1px solid #2c2c2e; display: flex; flex-direction: column; }
.service-card > span { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--orange); }
.service-card h3 { margin: auto 0 18px; font-size: 30px; line-height: 1.08; letter-spacing: -.04em; }
.service-card p { color: #a1a1a6; line-height: 1.5; }
.service-card a { margin-top: 22px; color: var(--orange); font-weight: 600; font-size: 14px; }

.contract-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contract-card { min-height: 570px; padding: 48px; border-radius: 34px; background: #fff; border: 1px solid #e4e4e7; display: flex; flex-direction: column; }
.contract-card.featured { background: #000; color: #fff; }
.contract-tag { font-size: 11px; font-weight: 700; letter-spacing: .14em; color: var(--orange); }
.contract-card h3 { margin: 86px 0 20px; font-size: clamp(36px,4vw,56px); line-height: 1.02; letter-spacing: -.05em; }
.contract-card > p { margin: 0 0 28px; font-size: 18px; line-height: 1.5; color: var(--muted); }
.contract-card.featured > p { color: #a1a1a6; }
.contract-card.featured .clean-list { border-color: #2c2c2e; }
.contract-card.featured .clean-list li { border-color: #2c2c2e; }
.contract-card .button { align-self: flex-start; margin-top: auto; }
.clean-list.compact { margin-bottom: 36px; }

.process-line { display: grid; grid-template-columns: repeat(5,1fr); position: relative; }
.process-line::before { content: ""; position: absolute; top: 21px; left: 4%; right: 4%; height: 1px; background: var(--line); }
.process-line article { position: relative; padding-right: 28px; }
.process-line span { width: 44px; height: 44px; border-radius: 50%; background: #000; color: #fff; display: grid; place-items: center; font-size: 13px; position: relative; z-index: 1; }
.process-line article:first-child span { background: var(--gradient); }
.process-line h3 { margin: 28px 0 8px; font-size: 22px; letter-spacing: -.03em; }
.process-line p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.45; }

.delivery-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: center; }
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.compare-card { min-height: 470px; padding: 34px; border-radius: 30px; }
.compare-card > span { font-size: 11px; font-weight: 700; letter-spacing: .14em; }
.compare-card ul { list-style: none; padding: 0; margin: 170px 0 0; }
.compare-card li { padding: 13px 0; border-bottom: 1px solid; font-size: 16px; }
.compare-card.before { background: #1d1d1f; color: #a1a1a6; }
.compare-card.before li { border-color: #2c2c2e; }
.compare-card.after { background: #fff; color: #000; }
.compare-card.after > span { color: var(--orange); }
.compare-card.after li { border-color: #e4e4e7; }
.compare-card.after li::before { content: "✓"; margin-right: 10px; color: var(--orange); }

.diagnosis-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; align-items: start; }
.diagnosis-copy h2 { margin: 0; font-size: clamp(43px,5vw,70px); line-height: 1; letter-spacing: -.055em; }
.diagnosis-copy > p { color: var(--muted); font-size: 19px; line-height: 1.5; }
.diagnosis-points { margin-top: 52px; display: grid; gap: 15px; }
.diagnosis-points span { padding-top: 15px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.diagnosis-form { padding: 38px; border-radius: 30px; background: #fff; box-shadow: var(--shadow); }
.diagnosis-form label { display: grid; gap: 9px; margin-bottom: 18px; color: #3a3a3c; font-size: 13px; font-weight: 600; }
.diagnosis-form input, .diagnosis-form select, .diagnosis-form textarea { width: 100%; border: 1px solid #d2d2d7; border-radius: 14px; background: #fbfbfd; padding: 14px 15px; outline: 0; transition: border .2s, box-shadow .2s; }
.diagnosis-form input:focus, .diagnosis-form select:focus, .diagnosis-form textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(240,108,3,.12); }
.diagnosis-form textarea { resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-note { margin: 12px 0 0; text-align: center; color: var(--muted); font-size: 11px; line-height: 1.4; }

.faq-layout { display: grid; grid-template-columns: .7fr 1.3fr; gap: 80px; }
.faq-list details { border-top: 1px solid var(--line); padding: 24px 0; }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; font-size: 20px; font-weight: 600; letter-spacing: -.02em; display: flex; justify-content: space-between; gap: 20px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--orange); font-size: 26px; font-weight: 400; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list p { margin: 16px 50px 0 0; color: var(--muted); line-height: 1.55; }

.final-cta { padding: 130px 0; background: var(--gradient); color: #fff; text-align: center; }
.final-cta-inner p { margin: 0 0 24px; font-size: 12px; font-weight: 700; letter-spacing: .16em; }
.final-cta h2 { max-width: 950px; margin: 0 auto 38px; font-size: clamp(46px,6.2vw,82px); line-height: .98; letter-spacing: -.06em; }

.site-footer { padding: 72px 0 28px; background: #000; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3,1fr); gap: 55px; }
.footer-brand img { width: 220px; }
.footer-brand p, .footer-grid > div > p { color: #86868b; font-size: 13px; line-height: 1.5; }
.footer-grid strong { display: block; margin-bottom: 18px; font-size: 12px; }
.footer-grid a { display: block; margin: 10px 0; color: #a1a1a6; font-size: 13px; }
.footer-grid a:hover { color: #fff; }
.footer-grid .footer-link { color: var(--orange); font-weight: 600; }
.footer-bottom { margin-top: 58px; padding-top: 20px; border-top: 1px solid #2c2c2e; display: flex; justify-content: space-between; color: #6e6e73; font-size: 11px; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .shell { width: min(100% - 34px, 900px); }
  .section { padding: 90px 0; }
  .main-nav, .header-cta { display: none; }
  .menu-toggle { display: block; }
  .main-nav.open { display: flex; position: fixed; inset: 68px 0 0; z-index: 1001; padding: 32px 24px; background: rgba(255,255,255,.985); flex-direction: column; align-items: flex-start; gap: 0; box-shadow: 0 24px 60px rgba(0,0,0,.12); }
  .main-nav.open a { width: 100%; padding: 20px 0; border-bottom: 1px solid var(--line); font-size: 24px; font-weight: 600; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .hero-inner { min-height: auto; padding-top: 92px; }
  .hero-showcase { grid-template-columns: 1fr 1fr; }
  .showcase-card:nth-child(2) { border-right: 0; }
  .showcase-card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .horizontal-carousel { grid-auto-columns: minmax(320px, 70%); }
  .solution-panel, .solution-panel.reverse { min-height: auto; grid-template-columns: 1fr; padding: 48px; }
  .solution-panel.reverse .solution-copy, .solution-panel.reverse .solution-visual { order: initial; }
  .contract-grid, .delivery-layout, .diagnosis-layout, .faq-layout { grid-template-columns: 1fr; }
  .process-line { grid-template-columns: 1fr; gap: 28px; }
  .process-line::before { top: 12px; bottom: 12px; left: 21px; right: auto; width: 1px; height: auto; }
  .process-line article { display: grid; grid-template-columns: 44px 1fr; column-gap: 20px; padding: 0; }
  .process-line h3 { margin: 1px 0 5px; }
  .process-line p { grid-column: 2; }
  .delivery-layout { gap: 30px; }
  .diagnosis-layout, .faq-layout { gap: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .shell { width: calc(100% - 28px); }
  .desktop-only { display: none; }
  .brand { width: 145px; }
  .hero-inner { padding: 76px 0 40px; }
  .hero h1 { font-size: clamp(48px, 15vw, 66px); }
  .hero-copy { font-size: 21px; }
  .hero-actions { width: 100%; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .hero-showcase { margin-top: 48px; grid-template-columns: 1fr; }
  .showcase-card { min-height: 132px; border-right: 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 36px 1fr; gap: 8px; }
  .showcase-card:last-child { border-bottom: 0; }
  .showcase-index { margin: 3px 0 0; }
  .position-strip-inner { min-height: 68px; justify-content: flex-start; overflow-x: auto; white-space: nowrap; }
  .section { padding: 76px 0; }
  .section-heading { margin-bottom: 38px; }
  .section-heading h2 { font-size: 43px; }
  .section-heading > p:last-child { font-size: 17px; }
  .horizontal-carousel { grid-auto-columns: 88%; }
  .carousel-toolbar > span { font-size: 11px; }
  .problem-card { min-height: 390px; padding: 27px; }
  .problem-card h3 { font-size: 29px; }
  .solution-panel { padding: 32px 22px; border-radius: 28px; gap: 32px; }
  .solution-copy h3 { font-size: 40px; }
  .solution-copy > p { font-size: 17px; }
  .solution-visual { min-height: 340px; }
  .pipeline { grid-template-columns: 1fr 1fr; }
  .pipeline div { min-height: 105px; }
  .metric-card { width: 78%; }
  .service-carousel { grid-auto-columns: 86%; }
  .contract-grid { gap: 16px; }
  .contract-card { min-height: auto; padding: 32px 24px; }
  .contract-card h3 { margin-top: 58px; font-size: 42px; }
  .contract-card .button { width: 100%; }
  .compare-grid { grid-template-columns: 1fr; }
  .compare-card { min-height: 360px; }
  .compare-card ul { margin-top: 100px; }
  .diagnosis-form { padding: 24px 18px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .faq-list summary { font-size: 18px; }
  .final-cta { padding: 96px 0; }
  .final-cta h2 { font-size: 48px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ===== Auditoria profissional de responsividade — V2 ===== */
html { overflow-x: clip; scroll-padding-top: 84px; }
body { min-width: 320px; overflow-x: clip; }
main, section { min-width: 0; }
img, svg, video, canvas { max-width: 100%; height: auto; }
.solution-copy, .solution-visual, .delivery-layout > *, .diagnosis-layout > *, .faq-layout > * { min-width: 0; }

/* Escala e legibilidade em monitores grandes e notebooks */
.hero-inner { min-height: min(780px, calc(100svh - 68px)); }
.hero h1, .section-heading h2, .solution-copy h3, .diagnosis-copy h2, .final-cta h2 {
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.hero-copy, .section-heading > p:last-child, .solution-copy > p { text-wrap: pretty; }

/* Visuais elásticos: deixam de depender de alturas rígidas */
.solution-panel { min-height: 0; }
.solution-visual {
  width: 100%;
  min-height: 0;
  aspect-ratio: 1.12 / 1;
  isolation: isolate;
}
.solution-visual::before {
  width: min(72%, 380px);
  height: auto;
  aspect-ratio: 1;
}
.mini-window { width: min(92%, 720px); max-width: 100%; overflow: hidden; }
.visual-commerce { padding: clamp(24px, 5vw, 54px); }
.phone-store { width: min(46%, 230px); height: auto; aspect-ratio: .54 / 1; min-width: 170px; }
.store-cover { height: 25%; }
.product-grid { height: 47%; }
.product-grid i { height: auto; }
.visual-ai { padding: clamp(24px, 5vw, 52px); align-content: center; }
.chat-bubble { width: fit-content; overflow-wrap: anywhere; }
.metric-card { max-width: calc(100% - 32px); }

/* Kanban realista e responsivo */
.pipeline {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(138px, 1fr);
  grid-template-columns: none;
  gap: 10px;
  padding: 18px 0 8px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.24) transparent;
}
.pipeline::-webkit-scrollbar { height: 5px; }
.pipeline::-webkit-scrollbar-thumb { background: rgba(255,255,255,.24); border-radius: 99px; }
.pipeline .kanban-stage {
  min-height: 226px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255,255,255,.075);
  display: flex;
  flex-direction: column;
  gap: 9px;
  scroll-snap-align: start;
}
.pipeline .kanban-stage header {
  min-height: 38px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.pipeline .kanban-stage header span { max-width: 92px; line-height: 1.2; }
.pipeline .kanban-stage header b {
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.12);
  font-size: 11px;
}
.pipeline .kanban-card {
  padding: 10px;
  border-radius: 10px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.08);
}
.pipeline .kanban-card strong,
.pipeline .kanban-card small { display: block; }
.pipeline .kanban-card strong { font-size: 10px; line-height: 1.25; }
.pipeline .kanban-card small { margin-top: 5px; color: #a1a1a6; font-size: 8px; line-height: 1.35; }
.pipeline .active-stage { background: linear-gradient(180deg, rgba(240,108,3,.35), rgba(240,108,3,.12)); outline: 1px solid rgba(240,108,3,.65); }
.pipeline .won-stage { background: rgba(255,255,255,.14); }
.pipeline .active-stage span, .pipeline .won-stage span { color: #fff; }

/* Carrosséis: dimensionamento previsível em qualquer viewport */
.horizontal-carousel {
  grid-auto-columns: clamp(300px, 38vw, 450px);
  scroll-padding-inline: 2px;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}
.service-carousel { grid-auto-columns: clamp(280px, 30vw, 360px); }
.problem-card, .service-card { height: 100%; }
.carousel-arrow:disabled { opacity: .35; cursor: default; transform: none; }

/* Evita blocos altos artificiais */
.compare-card { min-height: clamp(390px, 38vw, 470px); }
.compare-card ul { margin-top: clamp(80px, 12vw, 170px); }
.contract-card { min-height: clamp(510px, 48vw, 570px); }

@media (max-width: 1100px) {
  .solution-panel { padding: clamp(40px, 5vw, 58px); gap: clamp(34px, 5vw, 54px); }
  .solution-copy h3 { font-size: clamp(38px, 5vw, 54px); }
  .mini-window { width: 94%; }
  .pipeline { grid-auto-columns: 142px; }
  .delivery-layout { gap: 48px; }
}

@media (max-width: 980px) {
  html { scroll-padding-top: 72px; }
  .site-header { height: 68px; }
  .main-nav.open { z-index: 1001; overflow-y: auto; padding-bottom: max(32px, env(safe-area-inset-bottom)); }
  .hero-inner { min-height: auto; padding-bottom: 52px; }
  .solution-panel, .solution-panel.reverse {
    grid-template-columns: minmax(0, 1fr);
    padding: clamp(34px, 6vw, 52px);
  }
  .solution-copy { max-width: 720px; }
  .solution-visual { aspect-ratio: 16 / 10; }
  .pipeline { grid-auto-columns: minmax(150px, 24%); }
  .phone-store { width: min(34%, 220px); }
  .contract-grid { align-items: stretch; }
  .contract-card { min-height: 0; }
  .contract-card h3 { margin-top: 56px; }
  .compare-card { min-height: 390px; }
}

@media (max-width: 760px) {
  .shell { width: min(100% - 32px, 680px); }
  .section { padding: 80px 0; }
  .hero h1 { font-size: clamp(48px, 12.5vw, 72px); line-height: .97; }
  .hero-copy { font-size: clamp(19px, 4.8vw, 24px); }
  .hero-showcase { margin-top: 52px; }
  .section-heading h2 { font-size: clamp(40px, 10vw, 58px); }
  .solution-copy h3 { font-size: clamp(37px, 9.5vw, 50px); }
  .horizontal-carousel { grid-auto-columns: min(84vw, 390px); gap: 14px; }
  .service-carousel { grid-auto-columns: min(82vw, 350px); }
  .problem-card { min-height: 390px; }
  .solution-visual { aspect-ratio: 4 / 3; border-radius: 24px; }
  .pipeline { grid-auto-columns: 148px; }
  .demand-flow { width: calc(100% - 36px); }
  .metric-card { left: 18px; bottom: 18px; width: calc(100% - 36px); }
  .phone-store { width: min(48%, 210px); }
  .delivery-layout { gap: 36px; }
}

@media (max-width: 640px) {
  .shell { width: calc(100% - 28px); }
  .hero-inner { padding-top: 70px; }
  .hero h1 { font-size: clamp(44px, 13.5vw, 60px); letter-spacing: -.058em; }
  .hero-copy { margin-top: 24px; line-height: 1.34; }
  .hero-actions { margin-top: 28px; }
  .showcase-card { min-height: 118px; padding: 22px 18px; }
  .position-strip-inner { padding-inline: 2px; scrollbar-width: none; }
  .position-strip-inner::-webkit-scrollbar { display: none; }
  .section-heading h2 { font-size: clamp(38px, 11vw, 48px); }
  .carousel-toolbar { align-items: flex-end; }
  .carousel-buttons { flex: 0 0 auto; }
  .horizontal-carousel { grid-auto-columns: calc(100vw - 48px); }
  .service-carousel { grid-auto-columns: calc(100vw - 52px); }
  .problem-card { min-height: 370px; padding: 26px; }
  .problem-card h3 { font-size: clamp(27px, 7.8vw, 34px); }
  .solution-panel { padding: 30px 20px; border-radius: 26px; }
  .solution-copy h3 { font-size: clamp(35px, 10.2vw, 44px); }
  .solution-visual { aspect-ratio: 1 / 1; min-height: 0; }
  .mini-window { width: calc(100% - 24px); padding: 14px; }
  .window-top { padding-bottom: 12px; }
  .pipeline { grid-auto-columns: 132px; padding-top: 14px; }
  .pipeline .kanban-stage { min-height: 205px; }
  .demand-flow { flex-direction: column; flex-wrap: nowrap; gap: 7px; }
  .demand-flow i { transform: rotate(90deg); }
  .demand-flow span { padding: 10px 14px; }
  .metric-card { padding: 15px; }
  .phone-store { width: min(62%, 210px); min-width: 150px; }
  .visual-ai { padding: 22px; }
  .chat-bubble { max-width: 90%; font-size: 13px; }
  .service-card { min-height: 330px; padding: 26px; }
  .contract-card h3 { margin-top: 46px; font-size: clamp(38px, 11vw, 48px); }
  .compare-card { min-height: 340px; padding: 28px 24px; }
  .compare-card ul { margin-top: 72px; }
  .diagnosis-copy h2 { font-size: clamp(40px, 11vw, 52px); }
  .diagnosis-form { border-radius: 24px; }
  .final-cta h2 { font-size: clamp(42px, 12vw, 54px); }
}

@media (max-width: 380px) {
  .shell { width: calc(100% - 22px); }
  .brand { width: 132px; }
  .hero h1 { font-size: 43px; }
  .button { padding-inline: 18px; }
  .horizontal-carousel { grid-auto-columns: calc(100vw - 38px); }
  .service-carousel { grid-auto-columns: calc(100vw - 42px); }
  .problem-card { min-height: 355px; padding: 23px; }
  .solution-panel { padding-inline: 16px; }
  .solution-visual { border-radius: 20px; }
  .pipeline { grid-auto-columns: 124px; }
  .phone-store { width: 68%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* V3 — fluxo de demanda mais claro e comparativo com imagens */
.visual-demand { padding: clamp(22px, 4vw, 42px); place-items: stretch; }
.demand-system {
  width: 100%;
  align-self: center;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto minmax(0,1fr) auto minmax(0,1fr) auto minmax(0,1fr);
  align-items: stretch;
  gap: clamp(8px, 1.1vw, 14px);
}
.demand-step {
  min-width: 0;
  min-height: 224px;
  padding: clamp(16px, 2vw, 22px);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 22px;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
}
.demand-step-number { color: #86868b; font-size: 10px; font-weight: 700; letter-spacing: .14em; }
.demand-icon { width: 42px; height: 42px; margin: 24px 0 auto; border-radius: 13px; display: grid; place-items: center; background: rgba(255,255,255,.12); font-size: 18px; }
.demand-step strong { margin-top: 18px; font-size: clamp(17px, 1.5vw, 22px); letter-spacing: -.03em; }
.demand-step p { margin: 8px 0 0; color: #a1a1a6; font-size: 12px; line-height: 1.45; }
.demand-step-accent { background: linear-gradient(145deg, rgba(240,108,3,.95), rgba(122,56,179,.9)); border-color: transparent; }
.demand-step-accent .demand-step-number, .demand-step-accent p { color: rgba(255,255,255,.78); }
.demand-step-accent .demand-icon { background: rgba(255,255,255,.2); }
.demand-connector { align-self: center; color: #6e6e73; font-size: 20px; }
.demand-summary { margin-top: 18px; padding: 16px 18px; border: 1px solid rgba(255,255,255,.12); border-radius: 16px; background: rgba(255,255,255,.07); display: flex; justify-content: space-between; gap: 18px; align-items: center; }
.demand-summary span { color: #a1a1a6; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }
.demand-summary strong { text-align: right; font-size: 13px; }

.compare-card { display: flex; flex-direction: column; min-height: 0 !important; }
.compare-image { aspect-ratio: 16 / 9; margin: -14px -14px 26px; border-radius: 22px; overflow: hidden; background: #2a2a2d; }
.compare-image img { width: 100%; height: 100%; display: block; object-fit: cover; }
.compare-card > span { margin-top: 0; }
.compare-card ul { margin-top: 28px !important; }

@media (max-width: 1180px) {
  .demand-system { grid-template-columns: 1fr 28px 1fr; }
  .demand-system .demand-step:nth-of-type(3) { grid-column: 1; }
  .demand-system .demand-connector:nth-of-type(2) { display: none; }
  .demand-system .demand-step:nth-of-type(4) { grid-column: 3; }
  .demand-system .demand-connector:nth-of-type(3) { position: absolute; opacity: 0; }
  .demand-step { min-height: 190px; }
}

@media (max-width: 760px) {
  .visual-demand { aspect-ratio: auto; min-height: 0; }
  .demand-system { grid-template-columns: 1fr; gap: 8px; }
  .demand-step, .demand-system .demand-step:nth-of-type(3), .demand-system .demand-step:nth-of-type(4) { grid-column: 1; min-height: 0; display: grid; grid-template-columns: 38px 1fr; column-gap: 14px; align-items: center; padding: 16px; }
  .demand-step-number { grid-column: 1; grid-row: 1; }
  .demand-icon { grid-column: 1; grid-row: 2 / span 2; width: 36px; height: 36px; margin: 12px 0 0; }
  .demand-step strong { grid-column: 2; grid-row: 2; margin-top: 10px; font-size: 18px; }
  .demand-step p { grid-column: 2; grid-row: 3; margin-top: 4px; }
  .demand-connector { justify-self: center; transform: rotate(90deg); font-size: 16px; }
  .demand-system .demand-connector:nth-of-type(2), .demand-system .demand-connector:nth-of-type(3) { display: block; position: static; opacity: 1; }
  .demand-summary { flex-direction: column; align-items: flex-start; }
  .demand-summary strong { text-align: left; }
  .compare-image { margin: -8px -8px 22px; }
}

/* V4 — fluxo de demanda robusto e seleção múltipla de serviços */
.visual-demand {
  overflow: hidden;
}
.demand-system {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.demand-step {
  min-height: 210px;
  padding: clamp(18px, 2vw, 24px);
  border-radius: 24px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  gap: 20px 16px;
  align-content: start;
}
.demand-step header {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.demand-status {
  color: #a1a1a6;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.demand-icon {
  width: 46px;
  height: 46px;
  margin: 0;
  align-self: start;
}
.demand-step > div:last-child {
  min-width: 0;
}
.demand-step strong {
  display: block;
  margin: 0;
  font-size: clamp(20px, 2vw, 27px);
  line-height: 1.05;
}
.demand-step p {
  margin-top: 9px;
  font-size: clamp(12px, 1.15vw, 14px);
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.demand-step-accent .demand-status { color: rgba(255,255,255,.75); }
.demand-summary { margin-top: 12px; }

.service-choice {
  margin: 0;
  padding: 0;
  border: 0;
}
.service-choice legend {
  padding: 0;
  font-size: 14px;
  font-weight: 600;
}
.service-choice > p {
  margin: 6px 0 13px;
  color: #6e6e73;
  font-size: 12px;
}
.service-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
.service-options label {
  position: relative;
  cursor: pointer;
}
.service-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.service-options span {
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid #d2d2d7;
  border-radius: 13px;
  display: flex;
  align-items: center;
  color: #1d1d1f;
  background: #fff;
  font-size: 12px;
  line-height: 1.25;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.service-options span::before {
  content: '';
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  margin-right: 9px;
  border: 1.5px solid #86868b;
  border-radius: 5px;
}
.service-options input:checked + span {
  border-color: #f06c03;
  background: #fff8f2;
  box-shadow: 0 0 0 1px #f06c03 inset;
}
.service-options input:checked + span::before {
  content: '✓';
  display: grid;
  place-items: center;
  color: #fff;
  border-color: #f06c03;
  background: #f06c03;
  font-size: 11px;
  font-weight: 800;
}
.service-options input:focus-visible + span { outline: 3px solid rgba(240,108,3,.22); outline-offset: 2px; }

@media (max-width: 1180px) {
  .demand-system { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .demand-step { min-height: 190px; }
}
@media (max-width: 760px) {
  .demand-system { grid-template-columns: 1fr; gap: 10px; }
  .demand-step,
  .demand-system .demand-step:nth-of-type(3),
  .demand-system .demand-step:nth-of-type(4) {
    grid-column: auto;
    min-height: 0;
    grid-template-columns: 42px minmax(0,1fr);
    grid-template-rows: auto auto;
    padding: 17px;
  }
  .demand-step header { grid-column: 1 / -1; }
  .demand-icon { grid-column: 1; grid-row: 2; width: 40px; height: 40px; }
  .demand-step > div:last-child { grid-column: 2; grid-row: 2; }
  .demand-step strong { font-size: 20px; }
  .demand-step p { font-size: 12px; }
  .demand-connector { display: none !important; }
  .service-options { grid-template-columns: 1fr; }
}

/* V5 — jornada de demanda em carrossel, seguindo o padrão da seção de problemas */
.visual-demand {
  min-width: 0;
  padding: clamp(22px, 3.5vw, 40px);
  display: block;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 10%, rgba(240,108,3,.20), transparent 32%),
    linear-gradient(145deg, #090706 0%, #180b04 55%, #080808 100%);
}

.demand-carousel-shell { width: 100%; min-width: 0; }
.demand-carousel-toolbar {
  min-height: 44px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #a1a1a6;
  font-size: 12px;
}
.demand-arrow { background: rgba(255,255,255,.12); color: #fff; }
.demand-arrow:hover { background: rgba(255,255,255,.2); }

.demand-carousel {
  grid-auto-columns: minmax(250px, 74%);
  gap: 14px;
  padding: 2px 2px 14px;
  overscroll-behavior-inline: contain;
}

.demand-carousel-card {
  min-height: 330px;
  padding: 26px;
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 24px 60px rgba(0,0,0,.25);
}
.demand-carousel-card .card-number {
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .13em;
  opacity: .68;
}
.demand-card-icon {
  width: 48px;
  height: 48px;
  margin-top: auto;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.14);
  font-size: 19px;
}
.demand-carousel-card h4 {
  margin: 20px 0 8px;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1;
  letter-spacing: -.055em;
}
.demand-carousel-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  opacity: .76;
}
.demand-carousel-card small {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid currentColor;
  font-size: 11px;
  line-height: 1.35;
  opacity: .58;
}
.demand-card-dark { color: #fff; background: #111; }
.demand-card-light { color: #111; background: #f5f5f7; border-color: rgba(0,0,0,.08); }
.demand-card-light .demand-card-icon { background: rgba(0,0,0,.08); }
.demand-card-gray { color: #fff; background: #29292b; }
.demand-card-orange { color: #fff; background: linear-gradient(145deg, #f06c03, #7a38b3); border-color: transparent; }

.demand-progress {
  margin-top: 10px;
  padding: 13px 16px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: #a1a1a6;
  background: rgba(255,255,255,.06);
  font-size: 10px;
  letter-spacing: .04em;
}
.demand-progress i { font-style: normal; opacity: .5; }
.demand-progress strong { color: #fff; }

@media (min-width: 1280px) {
  .demand-carousel { grid-auto-columns: minmax(260px, 72%); }
}

@media (max-width: 1024px) {
  .demand-carousel { grid-auto-columns: min(70vw, 390px); }
}

@media (max-width: 700px) {
  .visual-demand { padding: 20px 16px; }
  .demand-carousel-toolbar { align-items: flex-end; }
  .demand-carousel-toolbar > span { max-width: 150px; line-height: 1.3; }
  .demand-carousel { grid-auto-columns: calc(100vw - 92px); gap: 12px; }
  .demand-carousel-card { min-height: 315px; padding: 23px; border-radius: 24px; }
  .demand-progress { border-radius: 18px; padding-inline: 12px; }
}

@media (max-width: 390px) {
  .demand-carousel { grid-auto-columns: calc(100vw - 74px); }
  .demand-carousel-card { min-height: 300px; padding: 20px; }
  .demand-carousel-card h4 { font-size: 30px; }
  .demand-progress { gap: 5px; font-size: 9px; }
}

/* V7 — refinamento de acabamento da jornada de demanda */
.visual-demand {
  aspect-ratio: auto;
  min-height: 560px;
  padding-bottom: clamp(34px, 4vw, 52px);
}

.demand-carousel-shell {
  display: flex;
  min-height: 100%;
  flex-direction: column;
}

.demand-carousel {
  padding-bottom: 22px;
}

.demand-carousel-card {
  min-height: 390px;
  padding: 30px 30px 42px;
  border-bottom-width: 2px;
}

.demand-carousel-card small {
  margin-top: 30px;
  padding-top: 22px;
  padding-bottom: 2px;
}

.demand-progress {
  margin-top: 14px;
}

@media (max-width: 1024px) {
  .visual-demand { min-height: 540px; }
  .demand-carousel-card { min-height: 380px; }
}

@media (max-width: 700px) {
  .visual-demand {
    min-height: 500px;
    padding-bottom: 28px;
  }
  .demand-carousel { padding-bottom: 18px; }
  .demand-carousel-card {
    min-height: 360px;
    padding: 26px 24px 36px;
  }
  .demand-carousel-card small {
    margin-top: 26px;
    padding-top: 19px;
  }
}

@media (max-width: 390px) {
  .visual-demand { min-height: 480px; }
  .demand-carousel-card {
    min-height: 348px;
    padding: 24px 21px 32px;
  }
}
