/*
 * site.css — layout da landing. Só variáveis de tokens.css; componentes em components.css.
 * Estrutura (DESIGN.md §11): hero dividido + faixa de prova · história presa (painel fixo à
 * esquerda, passos à direita) · time · diagnóstico · rodapé.
 */
:root {
  --top-h: calc(var(--space-64) + var(--space-8)); /* cabeçalho: 72 = 64 + 8 */
  --wrap-l: max(var(--grid-margin), (100vw - var(--container-max)) / 2);           /* linha esquerda do container */
  --wrap-w: min(100vw - var(--grid-margin) * 2, var(--container-max));             /* largura do container */
  --col8: calc(var(--wrap-l) + (var(--wrap-w) + var(--grid-gutter)) * 7 / 12);     /* início da coluna 8 de 12 */
}
html { scroll-padding-top: var(--top-h); }
.sprite { position: absolute; width: var(--space-0); height: var(--space-0); overflow: hidden; }

.skip { position: absolute; left: max(var(--grid-margin), calc((100vw - var(--container-max)) / 2)); top: var(--space-16); z-index: 20; padding: var(--space-12) var(--space-16); background: var(--role-text); color: var(--role-page-bg); border-radius: var(--radius-button); translate: 0 calc(-100% - var(--space-32)); }
.skip:focus-visible { translate: 0 0; outline-color: var(--role-focus); }

/* --- Cabeçalho ----------------------------------------------------------- */
.top { position: fixed; inset: var(--space-0) var(--space-0) auto; z-index: 10; background: var(--role-page-bg); border-bottom: var(--border-width) solid var(--role-border); }
.top__in { display: flex; align-items: center; gap: var(--space-24); min-height: var(--top-h); }
.top__brand { display: inline-flex; min-height: var(--size-action-h); align-items: center; }
.top__logo { display: block; height: var(--space-32); width: auto; }
.top__nav { display: none; gap: var(--space-8); margin-left: auto; }
.top__nav a { display: inline-flex; align-items: center; min-height: var(--size-action-h); padding-inline: var(--space-12); color: var(--role-text-2); text-decoration: none; font-size: var(--text-body2-size); line-height: var(--text-body2-lh); }
.top__nav a:hover { color: var(--role-text); text-decoration: underline; text-decoration-color: var(--role-accent-fill); text-decoration-thickness: var(--border-width-strong); }
.top__cta { margin-left: auto; min-height: var(--size-action-h); padding-inline: var(--space-16); font-size: var(--text-subtitle2-size); }
@media (min-width: 1024px) { .top__nav { display: flex; } .top__cta { margin-left: var(--space-0); } }

/* --- Painel do desenho (hero à direita, história à esquerda) -------------
   Claro desde a revisão do Higor (27/11): sem o quadrante azul. Os papéis "inverse" do painel
   passam a valer os do tema claro só aqui. Graus e o N em latão (5,7:1); âmbar só como preenchimento. */
.panel { --role-inverse-bg: var(--role-page-bg); --role-inverse-text: var(--role-text); --role-inverse-text-2: var(--role-text-3); --role-inverse-accent: var(--role-label); background: transparent; margin: var(--space-0); display: grid; place-items: center; overflow: hidden; }
.panel svg { display: block; width: min(86%, calc(100svh - var(--top-h) - var(--space-64) * 2)); height: auto; overflow: visible; }

/* Mostrador e estados dentro do painel escuro */
.panel .dial__ring { fill: none; stroke: var(--role-inverse-text); stroke-width: var(--border-width-strong); }
.panel .dial__inner { fill: none; stroke: color-mix(in srgb, var(--role-inverse-text) calc(var(--alpha-tint-strong) * 100%), transparent); stroke-width: var(--border-width); }
.panel .tick { stroke: var(--role-inverse-text-2); stroke-width: var(--border-width-strong); opacity: 0.6; }
.panel .tick--major { stroke: var(--role-inverse-text); opacity: 1; stroke-width: calc(var(--border-width-strong) + var(--border-width)); }
.panel .cardinal { fill: var(--role-inverse-text); font-family: var(--font-display); font-weight: var(--weight-display); font-size: var(--text-h4-size); }
.panel .cardinal--n, .panel .deg, .panel .state__row, .panel .state__deg { fill: var(--role-inverse-accent); }
.panel .deg { font-family: var(--font-body); font-weight: var(--weight-bold); font-size: var(--text-subtitle2-size); letter-spacing: var(--text-caption-ls); }
.panel .dial__needle { fill: var(--role-accent-fill); }
.panel .dial__tail { fill: var(--role-inverse-text); }
.panel .dial__hub { fill: var(--role-inverse-bg); stroke: var(--role-inverse-text); stroke-width: var(--border-width-strong); }
.panel .state__brain { fill: none; stroke: color-mix(in srgb, var(--role-inverse-text) calc(var(--alpha-tint-strong) * 100%), transparent); stroke-width: var(--border-width-strong); }
.panel .state__edge, .panel .state__flow { fill: none; stroke: var(--role-inverse-text-2); stroke-width: var(--border-width); opacity: 0.55; }
.panel .state__node, .panel .stage__dot { fill: var(--role-inverse-text); }
.panel .stage__dot--major { fill: var(--role-inverse-accent); }
.panel .state__label, .panel .state__chip-t, .panel .state__name { fill: var(--role-inverse-text); font-family: var(--font-body); font-size: var(--text-h7-size); }
.panel .state__label { font-weight: var(--weight-bold); }
.panel .state__name { font-family: var(--font-display); font-weight: var(--weight-display); }
.panel .state__row, .panel .state__deg { font-family: var(--font-body); font-weight: var(--weight-bold); font-size: var(--text-subtitle2-size); letter-spacing: var(--text-caption-ls); }
.panel .state__sub { fill: var(--role-inverse-text-2); font-family: var(--font-body); font-size: var(--text-subtitle2-size); }
.panel .state__chip { fill: none; stroke: var(--role-inverse-text-2); stroke-width: var(--border-width); }
.panel .state__chip--out { stroke: var(--role-inverse-text); stroke-width: var(--border-width-strong); }
.panel .state__semantic { fill: var(--role-accent-fill); }
.panel .state__semantic-t { fill: var(--role-on-accent); font-family: var(--font-display); font-weight: var(--weight-display); font-size: var(--text-h5-size); }
.panel .state__semantic-s { fill: var(--role-on-accent); font-family: var(--font-body); font-size: var(--text-subtitle2-size); }
.panel .state__needle { fill: var(--role-accent-fill); }
.panel .bearing-dot { fill: var(--role-inverse-bg); stroke: var(--role-inverse-text); stroke-width: var(--border-width-strong); }
.panel .bearing-dot--on { fill: var(--role-accent-fill); stroke: var(--role-accent-fill); }

/* --- Hero ---------------------------------------------------------------- */
.hero { padding-top: var(--top-h); min-height: 100svh; display: flex; flex-direction: column; }
.hero__split { display: grid; flex: 1; }
.hero__wrap { padding-block: var(--space-16); }
@media (min-width: 640px) { .hero__wrap { padding-block: var(--space-24); } }
.hero__copy { display: grid; gap: var(--space-24); align-content: center; }
.hero .t-display-1 { font-size: var(--text-display-hero-size); }
.hero__turn { display: block; color: var(--role-text-3); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-12) var(--space-16); margin-top: var(--space-8); }
.hero__note { font-size: var(--text-caption-size); line-height: var(--text-caption-lh); letter-spacing: var(--text-caption-ls); color: var(--role-text-2); }
.hero__panel { min-height: calc(var(--space-64) * 2.5); padding: var(--space-12); }
.panel .tick { stroke: var(--role-decor); opacity: 1; }
.panel .dial__sweep { fill: none; stroke: var(--role-accent-fill); stroke-width: calc(var(--border-width-strong) * 2); stroke-linecap: round; opacity: 0.7; }
.hero__panel svg { width: calc(var(--space-64) * 2.25); }
@media (min-width: 640px) and (max-width: 1023px) { .hero__panel { min-height: calc(var(--space-64) * 5); } .hero__panel svg { width: calc(var(--space-64) * 4.5); } }
@media (min-width: 1024px) {
  .hero__split { position: relative; min-height: auto; display: grid; align-items: center; }
  .hero__wrap { padding-block: var(--space-16); }
@media (min-width: 640px) { .hero__wrap { padding-block: var(--space-24); } }
  .hero__copy { max-width: calc(50vw - max(var(--grid-margin), (100vw - var(--container-max)) / 2) - var(--space-48)); }
  .hero__panel { position: absolute; inset: var(--space-0) var(--space-0) var(--space-0) 50%; min-height: 0; padding: var(--space-40); }
  .hero__panel svg { width: min(100%, calc(100svh - var(--top-h) - var(--space-64) * 3)); }
}

/* Faixa de prova, presa ao pé do hero */
.proof { position: relative; z-index: 2; border-top: var(--border-width) solid var(--role-border); background: var(--role-surface); }
.proof__in { display: grid; gap: var(--space-8); padding-block: var(--space-16); }
.proof__list { display: flex; flex-wrap: wrap; gap: var(--space-8) var(--space-32); list-style: none; margin: var(--space-0); padding: var(--space-0); font-weight: var(--weight-bold); font-size: var(--text-h7-size); line-height: var(--text-h7-lh); color: var(--role-text-2); }

/* --- História presa ------------------------------------------------------ */
.story { position: relative; border-bottom: var(--border-width) solid var(--role-border); }
.story__panel { display: none; }
.step { display: grid; }
.step__figure { aspect-ratio: 1; }
.step__text { width: calc(100% - var(--grid-margin) * 2); max-width: var(--container-max); margin-inline: auto; padding-block: var(--space-32) var(--space-40); display: grid; gap: var(--space-16); align-content: center; }
.step__num { margin: var(--space-0); display: flex; gap: var(--space-12); align-items: baseline; font-weight: var(--weight-bold); font-size: var(--text-caption-size); line-height: var(--text-caption-lh); letter-spacing: var(--text-caption-ls); text-transform: uppercase; color: var(--role-label); }
.step__name { font-family: var(--font-display); font-weight: var(--weight-display); font-size: var(--text-h3-size); line-height: var(--text-h3-lh); letter-spacing: var(--text-h3-ls); margin: var(--space-0); text-wrap: balance; }
.step__num span:first-child { font-family: var(--font-display); font-weight: var(--weight-display); font-size: var(--text-h6-size); color: var(--role-text); letter-spacing: var(--space-0); }
.step__list { list-style: none; margin: var(--space-0); padding: var(--space-0); display: grid; gap: var(--space-12); }
.step__list li { padding-top: var(--space-12); border-top: var(--border-width) solid var(--role-border); font-size: var(--text-body1-size); line-height: var(--text-body1-lh); max-width: var(--measure); }
.step__note { color: var(--role-text-2); max-width: var(--measure); padding: var(--space-12) var(--space-16); background: color-mix(in srgb, var(--role-accent-fill) calc(var(--alpha-tint-strong) * 100%), transparent); border-radius: var(--radius-12); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-16); margin: var(--space-8) var(--space-0) var(--space-0); max-width: var(--measure); }
.facts div { padding-top: var(--space-12); border-top: var(--border-width-strong) solid var(--role-text); }
.facts dt { font-weight: var(--weight-bold); font-size: var(--text-caption-size); line-height: var(--text-caption-lh); letter-spacing: var(--text-caption-ls); text-transform: uppercase; color: var(--role-label); }
.facts dd { margin: var(--space-4) var(--space-0) var(--space-0); font-family: var(--font-display); font-weight: var(--weight-display); font-size: var(--text-h6-size); line-height: var(--text-h5-lh); font-variant-numeric: tabular-nums; }
.story__cta { width: calc(100% - var(--grid-margin) * 2); max-width: var(--container-max); margin: var(--space-0) auto; padding-bottom: var(--space-64); }

@media (min-width: 1024px) {
  /* painel preso na metade esquerda; passos de uma tela cada na metade direita */
  .story { display: grid; grid-template-columns: 1fr 1fr; }
  .story__panel { border-right: var(--border-width) solid var(--role-border); display: grid; position: sticky; top: var(--top-h); height: calc(100svh - var(--top-h)); grid-column: 1; grid-row: 1; }
  .story__steps { grid-column: 2; grid-row: 1; }
  .step { min-height: calc(82svh - var(--top-h)); align-items: center; }
  .step__figure { display: none; }
  .step__text { width: auto; max-width: none; margin: var(--space-0) var(--wrap-l) var(--space-0) calc(var(--col8) - 50vw); padding-block: var(--space-40); }
  .story__cta { width: auto; max-width: none; margin: var(--space-0) var(--wrap-l) var(--space-0) calc(var(--col8) - 50vw); }
  /* sem JS: painel some e cada passo mostra o próprio desenho */
  .no-js .story { display: block; }
  .no-js .story__panel { display: none; }
  .no-js .step { grid-template-columns: 1fr 1fr; }
  .no-js .step__figure { display: grid; height: 100%; }
}
@media (min-width: 1024px) and (prefers-reduced-motion: reduce) {
  .story { display: block; }
  .story__panel { display: none; }
  .step { grid-template-columns: 1fr 1fr; }
  .step__figure { display: grid; height: 100%; }
}

/* --- Quem somos (Norte) ------------------------------------------------- */
.sec { padding-block: var(--space-section-tight); border-bottom: var(--border-width) solid var(--role-border); display: grid; align-content: center; }
.sec .t-display-2 { margin-bottom: var(--space-16); }

/* --- Diagnóstico --------------------------------------------------------- */
.offer { display: grid; gap: var(--grid-gutter); }
@media (min-width: 1024px) { .offer { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; } }
.offer__card { border-radius: var(--radius-24); padding: var(--space-32); display: grid; gap: var(--space-16); align-content: start; }
.offer__card .t-display-2 { color: var(--role-inverse-text); margin: var(--space-0); }
.offer__price { margin: var(--space-0); display: flex; flex-wrap: wrap; gap: var(--space-8) var(--space-24); font-family: var(--font-display); font-weight: var(--weight-display); font-size: var(--text-h4-size); line-height: var(--text-h4-lh); color: var(--role-inverse-accent); }
.offer__form { padding: var(--space-32); }
.offer__cta { margin: var(--space-8) var(--space-0) var(--space-0); }
.fit { list-style: none; margin: var(--space-8) var(--space-0) var(--space-0); padding: var(--space-0); display: grid; gap: var(--space-12); }
.fit li { display: grid; grid-template-columns: var(--size-icon) 1fr; gap: var(--space-12); color: var(--role-inverse-text-2); }
.fit .icon { color: var(--role-inverse-accent); }
.fit .fit__no .icon { color: var(--role-inverse-text-2); }
.lead-form { display: grid; gap: var(--space-12); }
.lead-form__send { width: 100%; }
.lead-form__note, .lead-form__status { margin: var(--space-0); font-size: var(--text-caption-size); line-height: var(--text-caption-lh); letter-spacing: var(--text-caption-ls); color: var(--role-text-2); }
.lead-form__status:empty { display: none; }
.lead-form__status[data-tone="ok"] { color: var(--role-text); font-size: var(--text-body1-size); line-height: var(--text-body1-lh); }
.lead-form__status[data-tone="error"] { color: var(--role-error); font-size: var(--text-body2-size); line-height: var(--text-body2-lh); }
.agenda { margin: var(--space-16) var(--space-0) var(--space-0); padding-top: var(--space-16); border-top: var(--border-width) solid var(--role-border); }
.agenda a { display: inline-flex; align-items: center; min-height: var(--size-action-h); font-weight: var(--weight-bold); }

/* --- Rodapé -------------------------------------------------------------- */
.closing { padding-block: var(--space-section-tight) var(--space-24); }
.closing__line { margin: var(--space-0) var(--space-0) var(--space-40); font-family: var(--font-display); font-weight: var(--weight-display); font-size: var(--text-display-1-size); line-height: var(--text-display-1-lh); letter-spacing: var(--text-display-1-ls); color: var(--role-inverse-text); max-width: 14ch; text-wrap: balance; }
.closing__legal { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-8) var(--space-32); padding-top: var(--space-16); border-top: var(--border-width) solid color-mix(in srgb, var(--role-inverse-text) calc(var(--alpha-tint-strong) * 100%), transparent); color: var(--role-inverse-text-2); font-size: var(--text-body2-size); line-height: var(--text-body2-lh); }
.closing__legal p { margin: var(--space-0); }
.closing__legal a { display: inline-flex; align-items: center; min-height: var(--size-action-h); margin-left: auto; }
.closing__logo { height: var(--space-32); width: auto; }

/* =========================================================================
 * MOVIMENTO. A função de cada um está em DESIGN.md §10.
 * ========================================================================= */
/* M1. Entrada do hero (uma vez): título → apoio → ação → bússola. Ordem de leitura. */
@media (prefers-reduced-motion: no-preference) {
  [data-enter] .t-display-1, [data-enter] .t-lead, [data-enter] .hero__actions { animation: enter var(--dur-enter) var(--ease-out) both; }
  [data-enter] .t-lead { animation-delay: 120ms; }
  [data-enter] .hero__actions { animation-delay: 200ms; }
  /* M2. A agulha procura o norte: entra girada e assenta no N. Apresenta a metáfora da marca. */
  [data-enter] .hero__panel .dial__needle, [data-enter] .hero__panel .dial__tail { transform-origin: 300px 300px; animation: needle-find 1400ms var(--ease-out) 300ms both, needle-sway 7s var(--ease-in-out) 1700ms infinite; }
  /* M2b. Bússola viva (leve): a agulha oscila ±3° como agulha magnética assentando, e um brilho âmbar
     percorre o aro uma volta a cada 24 s. Decorativo; some com prefers-reduced-motion. */
  .hero__panel .dial__sweep { transform-origin: 300px 300px; animation: sweep 24s linear infinite; }
}
@keyframes needle-sway { 0%, 100% { rotate: 0deg; } 30% { rotate: 3deg; } 70% { rotate: -2.5deg; } }
@keyframes sweep { to { rotate: 360deg; } }
@keyframes enter { from { opacity: 0; translate: 0 var(--space-12); } }
@keyframes needle-find { 0% { rotate: -140deg; } 60% { rotate: 14deg; } 100% { rotate: 0deg; } }

/* M3. Palco da história (motion.js): bússola → cérebro embaralhado → camadas → rumos. */
/* O palco é fixo e o motion.js o posiciona: começa exatamente sobre a bússola do hero e viaja até o painel. */
.story__panel .stage { position: fixed; z-index: 1; pointer-events: none; visibility: hidden; width: var(--space-0); height: var(--space-0); }
.story__panel .stage svg, .story__panel .stage canvas { position: absolute; inset: var(--space-0); width: 100%; height: 100%; }
.story__panel .stage.is-shown { visibility: visible; }
.hero__panel svg.is-away { visibility: hidden; }
.hero__wrap, .story__steps { position: relative; z-index: 2; } /* o texto fica por cima do palco em viagem */
.stage__layer { opacity: 0; }
.stage__bearing .state__name { transition: fill var(--dur-state) ease, opacity var(--dur-state) ease; }
.stage__bearing:not(.is-on) .state__name { opacity: 0.55; }

/* M4 (removido na Fase 8): esmaecer os passos fora de foco derrubava o contraste abaixo do AA. O foco fica com o indicador lateral e a agulha. */
/* Celular e tablet: um desenho por estado (passos 01–03); os produtos seguem como lista */
@media (max-width: 1023px) {
  .step--product .step__figure { display: none; }
  .step--product .step__text { padding-block: var(--space-24) var(--space-32); border-top: var(--border-width) solid var(--role-border); }
  .step__figure svg { width: min(72%, calc(var(--space-64) * 6)); }
  .step__figure { aspect-ratio: 4 / 3; }
}


/* --- Valor de cada frente (no lugar do preço) ----------------------------- */
.step__value { margin: var(--space-0); font-family: var(--font-display); font-weight: var(--weight-display); font-size: var(--text-h4-size); line-height: var(--text-h4-lh); letter-spacing: var(--text-h4-ls); color: var(--role-text); max-width: 22ch; text-wrap: balance; }
.gets { list-style: none; margin: var(--space-0); padding: var(--space-0); display: flex; flex-wrap: wrap; gap: var(--space-8); max-width: var(--measure); }
.gets li { padding: var(--space-4) var(--space-12); border: var(--border-width) solid var(--role-control-border); border-radius: var(--radius-full); font-size: var(--text-body2-size); line-height: var(--text-body2-lh); color: var(--role-text); background: var(--role-surface); }
.proof-num { display: grid; grid-template-columns: auto 1fr; gap: var(--space-4) var(--space-16); align-items: baseline; padding-top: var(--space-12); border-top: var(--border-width-strong) solid var(--role-text); max-width: var(--measure); }
.proof-num__n { margin: var(--space-0); font-family: var(--font-display); font-weight: var(--weight-display); font-size: var(--text-display-2-size); line-height: 1; font-variant-numeric: tabular-nums; color: var(--role-text); white-space: nowrap; }
.proof-num__t { margin: var(--space-0); font-size: var(--text-body2-size); line-height: var(--text-body2-lh); color: var(--role-text-2); }
.proof-num__t .t-label { display: block; margin-top: var(--space-4); }

/* --- Norte: propósito, missão, visão e valores nos quatro pontos cardeais --- */
.norte .t-display-2 { margin-bottom: var(--space-12); }
.norte__lead { margin: var(--space-0) var(--space-0) var(--space-32); max-width: var(--measure); color: var(--role-text-2); }
.norte__grid { list-style: none; margin: var(--space-0); padding: var(--space-0); display: grid; gap: var(--space-0) var(--grid-gutter); }
@media (min-width: 1024px) { .norte__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.norte__item { display: grid; gap: var(--space-12); align-content: start; padding-block: var(--space-24); border-top: var(--border-width) solid var(--role-border); }
.norte__pt { margin: var(--space-0); display: flex; align-items: center; gap: var(--space-12); font-weight: var(--weight-bold); font-size: var(--text-caption-size); line-height: var(--text-caption-lh); letter-spacing: var(--text-caption-ls); text-transform: uppercase; color: var(--role-label); }
.norte__c { display: grid; place-items: center; width: var(--size-icon-box); height: var(--size-icon-box); border: var(--border-width-strong) solid var(--role-text); border-radius: var(--radius-full); font-family: var(--font-display); font-weight: var(--weight-display); font-size: var(--text-h6-size); color: var(--role-text); letter-spacing: var(--space-0); }
.norte__item:first-child .norte__c { background: var(--role-accent-fill); border-color: var(--role-accent-fill); }
.norte__line { margin: var(--space-0); font-family: var(--font-display); font-weight: var(--weight-display); font-size: var(--text-h3-size); line-height: var(--text-h3-lh); letter-spacing: var(--text-h3-ls); text-wrap: balance; color: var(--role-text); text-wrap: pretty; }

/* M6. Revelação do valor (motion.js), como nas páginas de produto da Apple:
   a frase acende palavra por palavra com a rolagem; entregas e número entram em sequência.
   Só com JS e sem movimento reduzido (classe .reveal-on no <html>). */
.reveal-on [data-words] .word { color: var(--role-decor); transition: color var(--dur-state) ease; }
.reveal-on [data-words] .word.is-lit { color: var(--role-text); }
.reveal-on [data-reveal] .gets li, .reveal-on [data-reveal] .proof-num, .reveal-on [data-reveal] .step__note { opacity: 0; translate: 0 var(--space-12); transition: opacity var(--dur-enter) var(--ease-out), translate var(--dur-enter) var(--ease-out); }
.reveal-on [data-reveal].is-seen .gets li, .reveal-on [data-reveal].is-seen .proof-num, .reveal-on [data-reveal].is-seen .step__note { opacity: 1; translate: 0 0; }
.reveal-on [data-reveal].is-seen .gets li:nth-child(2) { transition-delay: 70ms; }
.reveal-on [data-reveal].is-seen .gets li:nth-child(3) { transition-delay: 140ms; }
.reveal-on [data-reveal].is-seen .gets li:nth-child(4) { transition-delay: 210ms; }
.reveal-on [data-reveal].is-seen .gets li:nth-child(5) { transition-delay: 280ms; }
.reveal-on [data-reveal].is-seen .proof-num { transition-delay: 320ms; }
.reveal-on [data-reveal] .step__name { scale: 0.96; opacity: 0.4; transform-origin: left center; transition: scale var(--dur-enter) var(--ease-out), opacity var(--dur-enter) var(--ease-out); }
.reveal-on [data-reveal].is-seen .step__name { scale: 1; opacity: 1; }
/* cérebro estático (celular, movimento reduzido, sem JS): a mesma nuvem de pontos do palco */
.panel .brain__p { fill: var(--role-inverse-text); }
.panel .brain__p--a { fill: var(--role-accent-fill); }
.panel .brain__p--b { fill: var(--role-label); }
.panel .brain__syn { fill: none; stroke: var(--role-inverse-text); stroke-width: var(--border-width); }
.panel .brain__node { fill: var(--role-surface); stroke: var(--role-inverse-text); stroke-width: var(--border-width-strong); }
.panel .brain__node--on { fill: var(--role-accent-fill); }
.panel .brain__ico { fill: var(--role-inverse-text); }
.panel .brain__lab { fill: var(--role-inverse-text); font-family: var(--font-body); font-weight: var(--weight-bold); paint-order: stroke; stroke: var(--role-page-bg); stroke-width: 4px; }

/* --- Arquitetura em camadas (passo 02): mesmo desenho no palco e na figura fixa --- */
.panel .arch__row { fill: var(--role-label); font-family: var(--font-body); font-weight: var(--weight-bold); font-size: 13px; letter-spacing: 0.08em; paint-order: stroke; stroke: var(--role-page-bg); stroke-width: 6px; stroke-linejoin: round; }
.panel .arch__box { fill: var(--role-surface); stroke: var(--role-control-border); stroke-width: var(--border-width); }
.panel .arch__box--ouro { stroke: var(--role-accent-fill); stroke-width: var(--border-width-strong); }
.panel .arch__dot--bronze { fill: var(--role-label); }
.panel .arch__dot--prata { fill: var(--role-decor); }
.panel .arch__dot--ouro { fill: var(--role-accent-fill); }
.panel .arch__t { fill: var(--role-text); font-family: var(--font-display); font-weight: var(--weight-display); font-size: 14.5px; }
.panel .arch__s { fill: var(--role-text-3); font-family: var(--font-body); font-size: 13px; }
.panel .arch__ico { fill: var(--role-text); }
.panel .arch__sem { fill: var(--role-accent-fill); }
.panel .arch__sem-t { fill: var(--role-on-accent); font-family: var(--font-display); font-weight: var(--weight-display); font-size: 22px; }
.panel .arch__sem-s { fill: var(--role-on-accent); font-family: var(--font-body); font-size: 13px; }
.panel .arch__ent { fill: var(--role-surface); }
.panel .arch__ent-t { fill: var(--role-text); font-family: var(--font-body); font-weight: var(--weight-bold); font-size: 14px; }
.panel .arch__out { fill: var(--role-text); }
.panel .arch__ico--out { fill: var(--role-accent-fill); }
.panel .arch__out-t { fill: var(--role-page-bg); font-family: var(--font-display); font-weight: var(--weight-display); font-size: 17px; }
.panel .arch__wire { fill: none; stroke: var(--role-border); stroke-width: var(--border-width-strong); }
.panel .arch__flow { fill: none; stroke: var(--role-accent-fill); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 0.1 18; opacity: 0; }
/* dados correndo pelas ligações (fontes → medalhão → semântica → consumo) */
@media (prefers-reduced-motion: no-preference) {
  .panel .arch__flow { opacity: 1; animation: arch-flow 1.4s linear infinite; }
}
@keyframes arch-flow { to { stroke-dashoffset: -18.1; } }

/* =========================================================================
 * M7. Imersão (motion.js): cada rolagem é um passo para dentro dos dados da empresa.
 * ========================================================================= */
/* convite do hero: uma linha que desce, como quem aponta a entrada */
.hero__cue { margin: var(--space-16) var(--space-0) var(--space-0); display: inline-flex; align-items: center; gap: var(--space-12); font-size: var(--text-caption-size); line-height: var(--text-caption-lh); letter-spacing: var(--text-caption-ls); text-transform: uppercase; font-weight: var(--weight-bold); color: var(--role-label); }
.hero__cue-line { position: relative; width: var(--border-width-strong); height: var(--space-32); background: var(--role-decor); overflow: hidden; border-radius: var(--radius-full); }
.hero__cue-line::after { content: ""; position: absolute; inset: var(--space-0); background: var(--role-accent-fill); translate: 0 -100%; }
@media (prefers-reduced-motion: no-preference) {
  .hero__cue-line::after { animation: cue 2.2s var(--ease-in-out) 1.6s infinite; }
}
@keyframes cue { 0% { translate: 0 -100%; } 55% { translate: 0 0; } 100% { translate: 0 100%; } }

/* o texto que chega da profundidade (motion.js escreve opacity, transform e filter) */
.step__text, .norte__item, .offer, .hero__copy { transform-origin: 50% 60%; }

/* painel de navegação: etapa, trilha das sete etapas e o que o desenho mostra agora */
.hud { display: none; }
@media (min-width: 1024px) {
  .story.is-live .hud { position: absolute; z-index: 3; left: var(--space-32); right: var(--space-32); top: var(--space-24); display: grid; gap: var(--space-8); justify-items: start; opacity: 0; translate: 0 calc(var(--space-8) * -1); transition: opacity var(--dur-enter) var(--ease-out), translate var(--dur-enter) var(--ease-out); }
  .story.is-live .hud.is-on { opacity: 1; translate: 0 0; }
  .hud__where { margin: var(--space-0); display: flex; align-items: baseline; gap: var(--space-4); font-weight: var(--weight-bold); font-size: var(--text-caption-size); line-height: var(--text-caption-lh); letter-spacing: var(--text-caption-ls); text-transform: uppercase; color: var(--role-label); }
  .hud__n { font-family: var(--font-display); font-weight: var(--weight-display); font-size: var(--text-h6-size); letter-spacing: var(--space-0); color: var(--role-text); font-variant-numeric: tabular-nums; }
  .hud__of { margin-right: var(--space-8); }
  .hud__track { list-style: none; margin: var(--space-0); padding: var(--space-0); display: grid; grid-template-columns: repeat(7, var(--space-24)); gap: var(--space-4); }
  .hud__track li { height: var(--border-width-strong); border-radius: var(--radius-full); background: var(--role-decor); transition: background-color var(--dur-state) ease; }
  .hud__track li.is-done { background: var(--role-text); }
  .hud__track li.is-on { background: var(--role-accent-fill); }
  .hud__sub { margin: var(--space-0); min-height: var(--text-body2-lh); font-size: var(--text-body2-size); line-height: var(--text-body2-lh); color: var(--role-text-2); }

  /* passos 01 e 02 são longos: o texto fica preso enquanto o desenho se desvenda */
  .story.is-live .step--deep { min-height: 240svh; align-items: start; }
  .story.is-live .step--deep .step__text { position: sticky; top: var(--top-h); min-height: calc(100svh - var(--top-h)); }
  /* o sintoma em leitura ganha a marca âmbar; os outros não esmaecem (contraste AA) */
  /* passo 01 é longo de verdade (as perguntas rolam); só o palco fica preso */
  .story.is-live .step--long { min-height: auto; }
  .story.is-live .step--long .step__text { position: static; min-height: auto; padding-block: var(--space-64) 50svh; }
  /* o grupo em leitura ganha a marca âmbar; os outros não esmaecem (contraste AA) */
  .story.is-live .raio__h { transition: border-color var(--dur-state) ease; }
  .story.is-live .raio__grp.is-focus .raio__h { border-left-color: var(--role-accent-fill); }
}
/* câmera do palco: atravessa o desenho nas trocas de estado */
.story__panel .stage__cam { position: absolute; inset: var(--space-0); transform-origin: 50% 50%; }
/* arquitetura em construção: camadas ainda não alcançadas ficam como planta, a camada atual destaca o rótulo */
.stage .arch [data-l] { transition: opacity 520ms var(--ease-out); }
.stage .arch [data-l].is-ghost { opacity: 0.12; }
.stage .arch .arch__flow.is-ghost { opacity: 0; }
.panel .stage .arch__row.is-now { fill: var(--role-text); }

/* =========================================================================
 * Raio-x (site.js): a pessoa marca, enquanto rola, o que acontece na empresa e o que interessa.
 * As caixas do formulário são a fonte da verdade; os botões da rolagem só as espelham.
 * ========================================================================= */
.step__hint { margin: var(--space-0); font-weight: var(--weight-bold); font-size: var(--text-caption-size); line-height: var(--text-caption-lh); letter-spacing: var(--text-caption-ls); text-transform: uppercase; color: var(--role-label); }
/* sintoma: o item inteiro é o botão; o círculo à direita vira check âmbar */
.sym { display: grid; grid-template-columns: 1fr auto; gap: var(--space-16); align-items: center; width: 100%; margin: var(--space-0); padding: var(--space-0); border: var(--space-0); background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; border-radius: var(--radius-12); }
.sym:focus-visible { outline: var(--border-width-strong) solid var(--role-focus); outline-offset: var(--space-4); }
.sym { grid-template-columns: 1fr auto auto; }
.sym__tag { padding: var(--space-4) var(--space-12); border: var(--border-width) solid var(--role-control-border); border-radius: var(--radius-full); font-size: var(--text-caption-size); line-height: var(--text-caption-lh); font-weight: var(--weight-bold); white-space: nowrap; color: var(--role-text-2); transition: background-color var(--dur-state) ease, color var(--dur-state) ease, border-color var(--dur-state) ease; }
.sym[aria-pressed="true"] .sym__tag { background: var(--role-accent-fill); border-color: var(--role-accent-fill); color: var(--role-on-accent); }
@media (hover: hover) and (pointer: fine) { .sym[aria-pressed="false"]:hover .sym__tag { border-color: var(--role-text); color: var(--role-text); } }
@media (max-width: 560px) { .sym { grid-template-columns: 1fr auto; } .sym__tag { grid-column: 1; justify-self: start; } .sym__c { grid-row: 1; grid-column: 2; } }
.raio__conte { display: grid; gap: var(--space-12); }
.raio__conte-l { font-size: var(--text-body2-size); line-height: var(--text-body2-lh); color: var(--role-text); }
.raio__conte-t { width: 100%; resize: vertical; min-height: 6rem; }
.raio__conte-n { margin: var(--space-0); font-size: var(--text-caption-size); line-height: var(--text-caption-lh); color: var(--role-text-2); }
.sym__c { display: grid; place-items: center; width: var(--space-32); height: var(--space-32); border: var(--border-width-strong) solid var(--role-control-border); border-radius: var(--radius-full); color: transparent; transition: background-color var(--dur-ui) ease, border-color var(--dur-ui) ease, color var(--dur-ui) ease, scale 160ms var(--ease-out); }
.sym[aria-pressed="true"] .sym__c { background: var(--role-accent-fill); border-color: var(--role-accent-fill); color: var(--role-on-accent); }
.sym:active .sym__c { scale: 0.92; }
@media (hover: hover) and (pointer: fine) { .sym:hover .sym__c { border-color: var(--role-text); } .sym[aria-pressed="false"]:hover .sym__c { color: var(--role-decor); } }
/* frente: chip "Me interessa" */
.want { justify-self: start; border: var(--border-width) solid var(--role-control-border); background: var(--role-surface); min-height: var(--size-action-h); transition: background-color var(--dur-ui) ease, border-color var(--dur-ui) ease, scale 160ms var(--ease-out); }
.want .icon { color: var(--role-decor); }
.want[aria-pressed="true"] { border-color: var(--role-accent-fill); }
.want[aria-pressed="true"] .icon { color: var(--role-on-accent); }
.want:active { scale: 0.97; }
.want:focus-visible { outline: var(--border-width-strong) solid var(--role-focus); outline-offset: var(--border-width-strong); }
@media (hover: hover) and (pointer: fine) { .want:hover { border-color: var(--role-text); } }
/* grupos de escolha no formulário */
.pick { margin: var(--space-0); padding: var(--space-0); border: var(--space-0); display: grid; gap: var(--space-8); min-width: 0; }
.pick legend { padding: var(--space-0); margin-bottom: var(--space-8); }
.pick__hint { font-weight: var(--weight-regular); color: var(--role-text-3); text-transform: none; }
.pick__list { display: flex; flex-wrap: wrap; gap: var(--space-8); }
.pick__opt { position: relative; display: inline-flex; }
.pick__opt input { position: absolute; inset: var(--space-0); margin: var(--space-0); opacity: 0; cursor: pointer; }
.pick__opt span { display: inline-flex; align-items: center; min-height: var(--size-action-h); padding: var(--space-0) var(--space-16); border: var(--border-width) solid var(--role-control-border); border-radius: var(--radius-full); background: var(--role-surface); font-size: var(--text-body2-size); line-height: var(--text-body2-lh); color: var(--role-text); transition: background-color var(--dur-ui) ease, border-color var(--dur-ui) ease; }
.pick__opt input:checked + span { background: var(--role-accent-fill); border-color: var(--role-accent-fill); color: var(--role-on-accent); font-weight: var(--weight-bold); }
.pick__opt input:focus-visible + span { outline: var(--border-width-strong) solid var(--role-focus); outline-offset: var(--border-width-strong); }
@media (hover: hover) and (pointer: fine) { .pick__opt:hover span { border-color: var(--role-text); } }

/* raio-x de IA: o ramo primeiro, depois as perguntas por situação */
.raio__ramo { display: grid; gap: var(--space-12); margin-top: var(--space-8); }
.raio__q { margin: var(--space-0); font-family: var(--font-display); font-weight: var(--weight-display); font-size: var(--text-h6-size); line-height: var(--text-h6-lh); }
.raio__chips { display: flex; flex-wrap: wrap; gap: var(--space-8); }
.raio__chip { min-height: var(--size-action-h); border: var(--border-width) solid var(--role-control-border); background: var(--role-surface); transition: background-color var(--dur-ui) ease, border-color var(--dur-ui) ease, scale 160ms var(--ease-out); }
.raio__chip[aria-pressed="true"] { border-color: var(--role-accent-fill); font-weight: var(--weight-bold); }
.raio__chip:active { scale: 0.97; }
.raio__chip:focus-visible { outline: var(--border-width-strong) solid var(--role-focus); outline-offset: var(--border-width-strong); }
@media (hover: hover) and (pointer: fine) { .raio__chip:hover { border-color: var(--role-text); } }
.raio__grp { display: grid; gap: var(--space-12); margin-top: var(--space-24); }
.raio__h { margin: var(--space-0); padding-left: var(--space-12); border-left: var(--border-width-strong) solid var(--role-decor); font-weight: var(--weight-bold); font-size: var(--text-caption-size); line-height: var(--text-caption-lh); letter-spacing: var(--text-caption-ls); text-transform: uppercase; color: var(--role-label); }
.pick__opt[hidden] { display: none; }

/* formulário objetivo: o raio-x marcado na rolagem vira um resumo de uma linha; as opções só abrem em "Editar" */
.raiox { border: var(--border-width) solid var(--role-control-border); border-radius: var(--radius-12); background: var(--role-surface); }
.raiox__head { display: grid; grid-template-columns: 1fr auto; gap: var(--space-4) var(--space-12); align-items: center; padding: var(--space-12) var(--space-16); cursor: pointer; list-style: none; border-radius: var(--radius-12); }
.raiox__head::-webkit-details-marker { display: none; }
.raiox__head:focus-visible { outline: var(--border-width-strong) solid var(--role-focus); outline-offset: var(--border-width-strong); }
.raiox__head .field__label { grid-column: 1; }
.raiox__sum { grid-column: 1; grid-row: 2; display: flex; flex-wrap: wrap; gap: var(--space-4); min-width: 0; font-size: var(--text-body2-size); line-height: var(--text-body2-lh); color: var(--role-text-2); }
.raiox__tag { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: var(--space-0) var(--space-8); border-radius: var(--radius-full); background: color-mix(in srgb, var(--role-accent-fill) calc(var(--alpha-tint-strong) * 100%), transparent); color: var(--role-text); }
.raiox__more { font-weight: var(--weight-bold); color: var(--role-text); }
.raiox__edit { grid-column: 2; grid-row: 1 / span 2; font-weight: var(--weight-bold); font-size: var(--text-body2-size); color: var(--role-text); text-decoration: underline; text-underline-offset: var(--space-4); }
.raiox[open] .raiox__edit { text-decoration: none; color: var(--role-text-2); }
.raiox__body { display: grid; gap: var(--space-16); padding: var(--space-4) var(--space-16) var(--space-16); }

/* --- Na prática: simulação de conversa no celular (passo 02) ------------------ */
.caso { display: grid; gap: var(--space-16); margin-top: var(--space-24); padding-top: var(--space-24); border-top: var(--border-width) solid var(--role-border); }
.caso__label { margin: var(--space-0); }
.caso__h { margin: var(--space-0); font-family: var(--font-display); font-weight: var(--weight-display); font-size: var(--text-h5-size, var(--text-h4-size)); line-height: 1.25; color: var(--role-text); max-width: 34ch; text-wrap: balance; }
.caso__tabs { display: flex; flex-wrap: wrap; gap: var(--space-8); }
.caso__tab { cursor: pointer; padding: var(--space-4) var(--space-16); border: var(--border-width) solid var(--role-control-border); border-radius: var(--radius-full); background: var(--role-surface); color: var(--role-text); font: inherit; font-size: var(--text-body2-size); line-height: var(--text-body2-lh); }
.caso__tab[aria-selected="true"] { background: var(--role-text); border-color: var(--role-text); color: var(--role-surface); }
.caso__tab:focus-visible { outline: var(--border-width-strong) solid var(--role-focus); outline-offset: var(--space-4); }
.phone { width: 100%; max-width: 360px; border: 10px solid var(--role-text); border-radius: var(--radius-32); background: var(--role-surface); overflow: hidden; box-shadow: 0 18px 40px rgb(16 36 64 / 0.16); }
.phone__top { display: flex; align-items: center; gap: var(--space-8); padding: var(--space-12) var(--space-16); border-bottom: var(--border-width) solid var(--role-border); font-weight: var(--weight-bold); font-size: var(--text-caption-size); line-height: var(--text-caption-lh); color: var(--role-text); }
.phone__dot { width: 8px; height: 8px; border-radius: var(--radius-full); background: var(--role-accent-fill); }
.phone__screen { display: grid; padding: var(--space-16); min-height: 25rem; align-content: start; background: var(--role-surface-2); }
.caso__chat { display: grid; gap: var(--space-12); }
.msg { display: grid; gap: var(--space-8); padding: var(--space-12) var(--space-16); border-radius: var(--radius-16); font-size: var(--text-body2-size); line-height: var(--text-body2-lh); color: var(--role-text); }
.msg p { margin: var(--space-0); }
.msg--eu { justify-self: end; max-width: 85%; background: var(--role-text); color: var(--role-surface); border-bottom-right-radius: var(--radius-4); }
.msg__who { font-size: var(--text-caption-size); line-height: var(--text-caption-lh); opacity: 0.75; }
.msg--ia { justify-self: start; max-width: 94%; background: var(--role-surface); border: var(--border-width) solid var(--role-border); border-bottom-left-radius: var(--radius-4); }
.msg--ia strong { font-weight: var(--weight-bold); box-shadow: inset 0 -0.45em 0 color-mix(in srgb, var(--role-accent-fill) 45%, transparent); }
.msg__src { display: flex; gap: var(--space-8); align-items: flex-start; padding-top: var(--space-8); border-top: var(--border-width) solid var(--role-border); font-size: var(--text-caption-size); line-height: var(--text-caption-lh); color: var(--role-text-2); }
.msg__src .icon { flex: none; color: var(--role-accent-fill); }
.msg__act { justify-self: start; padding: var(--space-4) var(--space-12); border-radius: var(--radius-full); background: var(--role-accent-fill); color: var(--role-on-accent); font-weight: var(--weight-bold); font-size: var(--text-caption-size); line-height: var(--text-caption-lh); }
.msg--typing { justify-self: start; display: flex; gap: 6px; padding: var(--space-12) var(--space-16); background: var(--role-surface); border: var(--border-width) solid var(--role-border); border-radius: var(--radius-16); }
.msg--typing i { width: 7px; height: 7px; border-radius: var(--radius-full); background: var(--role-text-2); animation: nd-typing 1s infinite ease-in-out; }
.msg--typing i:nth-child(2) { animation-delay: 0.15s; } .msg--typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes nd-typing { 0%, 60%, 100% { opacity: 0.25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.msg.is-in { animation: nd-msg-in 0.35s ease both; }
@keyframes nd-msg-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.caso__note { margin: var(--space-0); font-size: var(--text-caption-size); line-height: var(--text-caption-lh); color: var(--role-text-2); }
@media (prefers-reduced-motion: reduce) { .msg.is-in, .msg--typing i { animation: none; } }
.caso__chat[hidden], .msg[hidden] { display: none; }
