/* ==========================================================================
   Mind IA — Diagnóstico para Adoção de IA
   Design system "Fosco & azul" (design.md). Tokens copiados sem alteração.
   ========================================================================== */

@font-face {
  font-family: "Satoshi";
  src: url("assets/fonts/Satoshi-Variable.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

/* --- Tokens --------------------------------------------------------------- */

:root {
  --action: #2458D3;
  --action-hover: #2B62DF;
  --action-pressed: #1D48AF;
  --on-action: #FFFFFF;
  --font: "Satoshi", "Segoe UI", Arial, sans-serif;
  --radius-control: 4px;
  --radius-panel: 8px;
  --duration-fast: 160ms;
  --duration-normal: 220ms;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);

  /* grid (design.md §5) */
  --content-max: 1200px;
  --margin: 48px;
  --gap: 32px;
  --section-space: 128px;

  /* escala tipográfica desktop (design.md §4) */
  --fs-hero: 72px;
  --fs-display: 56px;
  --fs-section: 40px;
  --fs-sub: 24px;
  --fs-body: 18px;
  --fs-ui: 16px;
  --fs-caption: 14px;
  --fs-overline: 12px;
}

:root, [data-theme="dark"] {
  color-scheme: dark;
  --bg: #090C10;
  --surface: #181A1E;
  --surface-raised: #22252B;
  --text: #F2F0EB;
  --text-muted: #A8AFBC;
  --border-subtle: #343840;
  --border-control: #777F8C;
  --link: #8DADFF;
  --focus: #8DADFF;
  --selected-bg: #17233D;
  --success: #8FD5B0;
  --warning: #E6C684;
  --danger: #F3A2A2;
  --ambient-a: rgb(29 65 122 / 36%);
  --ambient-b: rgb(25 48 95 / 26%);
  --grain-opacity: 0.085;
  --shadow-overlay: 0 16px 48px rgb(0 0 0 / 32%);
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #F3F2EF;
  --surface: #EAE9E5;
  --surface-raised: #FAF9F6;
  --text: #171A20;
  --text-muted: #555D69;
  --border-subtle: #CFD1D5;
  --border-control: #777F8C;
  --link: #2458D3;
  --focus: #2458D3;
  --selected-bg: #E3EAF8;
  --success: #236443;
  --warning: #79520D;
  --danger: #A12A38;
  --ambient-a: rgb(36 88 211 / 5%);
  --ambient-b: rgb(84 121 180 / 3%);
  --grain-opacity: 0.045;
  --shadow-overlay: 0 16px 48px rgb(23 26 32 / 10%);
}

@media (max-width: 1023px) {
  :root {
    --margin: 32px;
    --gap: 24px;
    --section-space: 96px;
  }
}

@media (max-width: 767px) {
  :root {
    --margin: 24px;
    --gap: 16px;
    --section-space: 64px;
    --fs-hero: 40px;
    --fs-display: 36px;
    --fs-section: 28px;
    --fs-sub: 22px;
    --fs-body: 16px;
  }
}

/* --- Base ----------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; }
img { display: block; max-width: 100%; height: auto; }

:focus-visible,
iframe:focus {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

::selection { background: var(--selected-bg); color: var(--text); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* --- Tipografia ----------------------------------------------------------- */

.t-hero    { font-size: var(--fs-hero);    line-height: 1.08; letter-spacing: -0.035em; font-weight: 500; }
.t-display { font-size: var(--fs-display); line-height: 1.12; letter-spacing: -0.025em; font-weight: 500; }
.t-section strong { font-weight: 700; }
.t-section { font-size: var(--fs-section); line-height: 1.2;  letter-spacing: -0.02em;  font-weight: 500; }
.t-sub     { font-size: var(--fs-sub);     line-height: 1.3;  letter-spacing: -0.01em;  font-weight: 500; }
.t-caption { font-size: var(--fs-caption); line-height: 1.5; }
.t-overline {
  font-size: var(--fs-overline);
  line-height: 1.5;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
}

.muted { color: var(--text-muted); }

/* destaque informativo (design.md §2): cor link, sem sublinhado, não clicável */
.hl { color: var(--action); white-space: nowrap; }
.hl-info { color: var(--link); }

/* links reais: sublinhado permanente dentro de parágrafo */
.prose a, p a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}
.prose a:hover, p a:hover { text-decoration-thickness: 2px; }

.prose { max-width: 65ch; }
.prose p + p { margin-top: 24px; }

/* --- Superfície fosca ------------------------------------------------------ */

.section {
  position: relative;
  isolation: isolate;
  overflow: clip;
  background: var(--bg);
  color: var(--text);
  padding-block: var(--section-space);
}

/* grão: ruído monocromático estático, tile 256 px, atrás do conteúdo */
.section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='256' height='256'><filter id='n' x='0' y='0' width='100%25' height='100%25'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='256' height='256' filter='url(%23n)'/></svg>");
  background-size: 256px 256px;
}

/* luz difusa: duas elipses em camadas próprias, cada uma com o seu ritmo.
   O conteúdo, o grão e os controles ficam imóveis; só a luz se move. */
.atmo {
  position: absolute;
  inset: -12%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  /* a luz se inclina devagar para onde o mouse está (--sc-mx/--sc-my vêm do motor,
     só com mouse real; sem eles fica em 0.5 e nada se move). O conteúdo não se mexe. */
  transform: translate(calc((var(--sc-mx, 0.5) - 0.5) * 7%), calc((var(--sc-my, 0.5) - 0.5) * 5%));
  transition: transform 1600ms cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}
.atmo::before, .atmo::after {
  content: "";
  position: absolute;
  inset: 0;
  will-change: transform, opacity;
}
.atmo::before {
  background: radial-gradient(ellipse at 26% 34%, var(--ambient-a) 0%, transparent 58%);
  animation: drift-a 14s ease-in-out infinite alternate;
}
.atmo::after {
  background: radial-gradient(ellipse at 79% 75%, var(--ambient-b) 0%, transparent 53%);
  animation: drift-b 22s ease-in-out infinite alternate-reverse;
}
/* na abertura a luz fica atrás do título centrado */
.section--hero .atmo::before { background: radial-gradient(ellipse at 50% 36%, var(--ambient-a) 0%, transparent 58%); }
.section--hero .atmo::after  { background: radial-gradient(ellipse at 78% 82%, var(--ambient-b) 0%, transparent 53%); }

@keyframes drift-a {
  0%   { transform: translate(-10%, -6%) scale(1);    opacity: 0.85; }
  50%  { transform: translate(4%, 5%)    scale(1.12); opacity: 1; }
  100% { transform: translate(12%, -3%)  scale(1.05); opacity: 0.9; }
}
@keyframes drift-b {
  0%   { transform: translate(8%, 6%)   scale(1.08); opacity: 0.9; }
  50%  { transform: translate(-4%, -4%) scale(1);    opacity: 1; }
  100% { transform: translate(-12%, 5%) scale(1.15); opacity: 0.8; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .atmo::before, .atmo::after { animation: none; }
}

/* --- Entrada de conteúdo (design.md §7: ≤ 8 px, removida com movimento reduzido) --- */
html.js:not(.motion-off) [data-reveal] {
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 560ms var(--ease),
    transform 560ms var(--ease);
  transition-delay: calc(var(--reveal-i, 0) * 80ms + var(--reveal-d, 0) * 120ms);
}
html.js:not(.motion-off) [data-reveal].is-in {
  opacity: 1;
  transform: none;
}
[data-reveal-delay="1"] { --reveal-d: 1; }
[data-reveal-delay="2"] { --reveal-d: 2; }
[data-reveal-delay="3"] { --reveal-d: 3; }

/* espaço entre seções = 128/96/64 (design.md §5): seção clara depois de seção clara não repete o padding de cima */
[data-theme="light"] + [data-theme="light"] { padding-top: 0; }

.container {
  position: relative;
  z-index: 1;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--margin);
}

/* 12 colunas (desktop) / 8 (tablet) / 4 (mobile) */
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 48px;
}
@media (max-width: 1023px) { .grid { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
@media (max-width: 767px)  { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 32px; } }

/* coluna de leitura: 7 de 12 colunas, e nunca mais de 65 caracteres */
.narrow { max-width: 65ch; }
@media (min-width: 1024px) {
  .narrow { width: calc(100% * 7 / 12 - 5 * var(--gap) / 12); max-width: none; }
  .narrow .prose, .narrow > p { max-width: 65ch; }
}

/* --- Componentes ----------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  text-align: center;
  text-wrap: balance;
  font: inherit;
  font-size: var(--fs-ui);
  font-weight: 500;
  line-height: 1.5;
  border-radius: var(--radius-control);
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--duration-fast) var(--ease), border-color var(--duration-fast) var(--ease);
}
.btn--primary {
  background: var(--action);
  color: var(--on-action);
  border: 0;
}
.btn--primary:hover  { background: var(--action-hover); }
.btn--primary:active { background: var(--action-pressed); }

/* secundário sobre atmosfera animada: fundo surface (design.md §3) */
.btn--secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-control);
}
.btn--secondary:hover { background: var(--surface-raised); }

.panel {
  background: var(--surface);
  border-radius: var(--radius-panel);
  padding: 32px;
}
@media (max-width: 767px) { .panel { padding: 24px; } }

/* --- Marca ------------------------------------------------------------------ */

.brand {
  display: inline-flex;
  align-items: flex-end;   /* wordmark alinhado pela base dos círculos inferiores */
  gap: 12px;
  color: var(--text);
  --brand-h: 28px;
  --brand-fs: 20px;
}
.brand__symbol {
  width: calc(var(--brand-h) * 702 / 311);
  height: var(--brand-h);
  color: var(--action);
  fill: currentColor;
  flex: none;
}
.brand__wordmark {
  font-weight: 700;
  font-size: var(--brand-fs, 24px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: calc(var(--brand-h) * -0.12); /* baseline na base dos círculos inferiores */
}
.brand--sm { --brand-h: 24px; --brand-fs: 16px; }
@media (max-width: 767px) { .brand { --brand-h: 24px; --brand-fs: 16px; } }

/* --- 1. Abertura ------------------------------------------------------------ */

.section--hero { padding-block: 48px var(--section-space); min-height: 100vh; min-height: 100svh; display: flex; }
.section--hero .container { display: flex; flex-direction: column; width: 100%; }
@media (max-width: 767px) { .section--hero { padding-top: 24px; } }

.hero__brand { align-self: flex-start; }
.hero {
  margin: auto 0;
  padding-block: 56px 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
  align-items: center;
  gap: clamp(40px, 5vw, 80px);
}
.hero__copy { min-width: 0; }
.hero__preview { width: 100%; max-width: 390px; margin: 32px 0 0; justify-self: end; }
.hero__cover { width: 100%; aspect-ratio: 3 / 4; padding: 28px; grid-template-rows: auto minmax(70px, 1fr) auto auto; }
.hero__cover .cover__symbol { width: 72px; height: 32px; }
.hero__cover .cover__signal { min-height: 70px; max-height: 118px; margin-block: 15px; }
.hero__cover .cover__title { font-size: 36px; }
.hero__cover .cover__chapters { font-size: 14px; line-height: 1.35; margin-top: 20px; padding-top: 14px; }
.hero__cover .cover__chapters li { gap: 10px; padding-block: 2px; }
@media (max-width: 389px) {
  .hero__cover .cover__signal { min-height: 48px; max-height: 80px; margin-block: 8px; }
}

.hero__lead {
  font-weight: 400;
  margin-top: 32px;
  max-width: 42ch;
  text-wrap: pretty;
  color: var(--text-muted);
}
@media (max-width: 1023px) {
  .hero { display: flex; flex-direction: column; align-items: center; gap: 48px; }
  .hero__copy { width: 100%; max-width: 720px; text-align: center; }
  .hero__preview { width: min(100%, 390px); margin-top: 0; align-self: center; }
  .hero__lead { max-width: 60ch; margin-inline: auto; }
  .hero__cta { margin-inline: auto; }
}
@media (max-width: 767px) {
  .hero { padding-block: 64px 32px; align-items: stretch; gap: 40px; }
  .hero__copy { text-align: left; }
  .hero__lead { margin-top: 24px; margin-inline: 0; }
  .hero__cta { margin-inline: 0; }
  .hero__preview { width: min(100%, 390px); }
}
.hero__cta { margin-top: 48px; max-width: 46ch; }
.hero__note { margin-top: 16px; color: var(--text-muted); }

/* --- 2. O problema e 3. A consequência: palco fixo ------------------------- */
/* Dispositivo `pin` do scroll-craft (scrollcraft.js, motor intocado): a seção
   mede N telas de rolagem, o palco gruda no topo e os três pontos se cruzam
   por opacidade conforme --sc-p. O motor só entra com `html.pin-on` (script.js);
   sem JS ou com movimento reduzido, os pontos ficam empilhados, em leitura normal. */

.section--pin { padding-block: 0; }
.section--pin::before { display: none; }   /* o grão vai para o palco, que é o que fica parado */

.stage {
  position: relative;
  isolation: isolate;
  overflow: clip;
  background: var(--bg);
  color: var(--text);
}
.stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='256' height='256'><filter id='n' x='0' y='0' width='100%25' height='100%25'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='256' height='256' filter='url(%23n)'/></svg>");
  background-size: 256px 256px;
}
.stage__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 48px;
  align-items: center;
  padding-block: var(--section-space);
}
.stage__lead { grid-column: 1 / span 5; }
.stage__lead .t-section { max-width: 18ch; text-wrap: pretty; }
.stage__items { grid-column: 7 / span 6; list-style: none; }
.stage__item + .stage__item { margin-top: 64px; }
.stage__index { display: block; color: var(--text-muted); }
.stage__title { margin-top: 16px; max-width: 14ch; text-wrap: pretty; }
.stage__body { margin-top: 24px; max-width: 42ch; }
.stage__source { margin-top: 16px; color: var(--text-muted); max-width: 48ch; }
.stage__options {
  list-style: none;
  margin-top: 24px;
  max-width: 44ch;
  counter-reset: option;
}
.stage__options li {
  counter-increment: option;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  column-gap: 8px;
  padding-block: 16px;
  border-top: 1px solid var(--border-subtle);
}
.stage__options li::before {
  content: counter(option);
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
}

/* três traços sob o título que enchem com a rolagem: cada notch do scroll
   responde, para ninguém achar que a página travou */
.stage__marks { display: flex; gap: 8px; margin-top: 32px; }
.stage__marks span {
  position: relative;
  width: 48px;
  height: 3px;
  background: var(--border-subtle);
  overflow: hidden;
}
.stage__marks span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--action);
  transform: scaleX(var(--on, 0));
  transform-origin: left;
}
.stage__marks span:nth-child(1) { --on: clamp(0, calc(var(--sc-p, 0) * 3), 1); }
.stage__marks span:nth-child(2) { --on: clamp(0, calc((var(--sc-p, 0) - 0.33) * 3), 1); }
.stage__marks span:nth-child(3) { --on: clamp(0, calc((var(--sc-p, 0) - 0.66) * 3), 1); }
.stage__marks--one span { width: 152px; --on: var(--sc-p, 0); }
.stage__marks--one { margin-top: 24px; }
html:not(.pin-on) .stage__marks { display: none; }

/* o eco: a frase do problema, um degrau abaixo e apagada, antes da consequência */
.stage__echo {
  display: block;
  font-size: var(--fs-section);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.stage__punch { display: block; }

/* dica de rolagem: um chevron que só aparece depois de 4 s parado no palco */
.stage__hint {
  position: absolute;
  left: 50%;
  bottom: 40px;
  z-index: 2;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 560ms var(--ease);
}
.stage__hint.is-shown { opacity: 1; animation: hint-pulse 1600ms ease-in-out infinite; }
@keyframes hint-pulse {
  0%, 100% { transform: translateY(0) rotate(45deg); }
  50%      { transform: translateY(8px) rotate(45deg); }
}

/* com o motor montado: palco de uma tela, itens sobrepostos na mesma célula */
html.pin-on .stage { position: sticky; top: 0; height: 100vh; height: 100svh; }
html.pin-on .stage__grid { height: 100%; padding-block: 0; }
html.pin-on .stage__items { display: grid; }
html.pin-on .stage__item { grid-area: 1 / 1; margin-top: 0; }
html.pin-on [data-sc-cue] { opacity: 0; will-change: opacity, transform; }

/* --- 6. Fluxo da adoção: serviço e resultado em dois atos ----------------- */
.adoption {
  position: relative;
  z-index: 1;
  width: min(calc(100% - (var(--margin) * 2)), var(--content-max));
  margin-inline: auto;
  padding-block: var(--section-space);
}
.adoption__title {
  max-width: 25ch;
  text-wrap: balance;
}
.adoption__title span { color: var(--action); font-weight: 600; white-space: nowrap; }
.adoption__subtitle {
  max-width: 52ch;
  margin-top: 12px;
  color: var(--text-muted);
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.45;
}
.adoption__scene {
  display: grid;
  grid-template-columns: minmax(280px, 4fr) minmax(100px, 1.3fr) minmax(440px, 5.7fr);
  align-items: center;
  gap: clamp(24px, 3vw, 48px);
  min-height: 500px;
  margin-top: 64px;
}
.adoption__service { max-width: 390px; }
.adoption__label {
  display: block;
  margin-bottom: 16px;
  color: var(--action);
  font-size: var(--fs-overline);
  line-height: 1.5;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
}
.adoption__service h3,
.adoption__result h3 {
  font-size: clamp(36px, 3.6vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.035em;
  font-weight: 500;
  text-wrap: balance;
}
.adoption__service p {
  max-width: 32ch;
  margin-top: 20px;
  color: var(--text-muted);
  line-height: 1.5;
}
.adoption__transfer {
  position: relative;
  height: 48px;
  align-self: center;
}
.adoption__transfer span {
  position: absolute;
  top: 24px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border-subtle);
  overflow: hidden;
}
.adoption__transfer span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--action);
  transform: scaleX(clamp(0, calc(var(--sc-p, 0) * 2), 1));
  transform-origin: left;
}
.adoption__scene--implementation .adoption__transfer span::after {
  transform: scaleX(clamp(0, calc((var(--sc-p, 0) - 0.35) * 4), 1));
}
.adoption__transfer b {
  position: absolute;
  left: 50%;
  top: 0;
  padding-inline: 8px;
  transform: translateX(-50%);
  background: var(--bg);
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
}
.adoption__delivery {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  justify-items: center;
  margin: 0;
}
.cover.adoption-cover {
  display: flex;
  flex-direction: column;
  width: min(28vw, 360px);
  aspect-ratio: 3 / 4;
  justify-self: end;
  padding: clamp(24px, 2.5vw, 36px);
  box-shadow: 0 30px 60px rgb(23 26 32 / 22%), 0 6px 18px rgb(23 26 32 / 16%);
}
.adoption-cover .cover__symbol { width: 64px; height: 28px; fill: var(--action); }
.adoption-cover .cover__signal { flex: none; height: auto; aspect-ratio: 8 / 3; min-height: 0; max-height: none; margin-block: 16px; }
.adoption-cover .cover__body { align-self: stretch; }
.adoption-cover .cover__title { margin-top: 8px; font-size: clamp(29px, 2.5vw, 38px); }
.adoption-cover .cover__chapters { margin-top: 18px; padding-top: 14px; font-size: clamp(11px, 0.9vw, 13px); line-height: 1.35; }
.adoption-cover .cover__chapters li { gap: 10px; padding-block: 2px; }

.adoption__result { max-width: 570px; }
.adoption__result h3 { max-width: 14ch; }
.adoption__proof {
  margin-top: 32px;
  list-style: none;
  border-top: 1px solid var(--border-subtle);
}
.adoption__proof li {
  display: grid;
  grid-template-columns: minmax(138px, 0.75fr) minmax(0, 1.25fr);
  gap: 24px;
  padding-block: 14px;
  border-bottom: 1px solid var(--border-subtle);
}
.adoption__proof span { font-weight: 500; }
.adoption__proof small { color: var(--text-muted); font-size: var(--fs-caption); line-height: 1.45; }
.adoption__progress {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  width: 184px;
  margin-top: 16px;
}
.adoption__progress span { position: relative; height: 3px; overflow: hidden; background: var(--border-subtle); }
.adoption__progress span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--action);
  transform: scaleX(clamp(0, calc(var(--sc-p, 0) * 2), 1));
  transform-origin: left;
}
.adoption__progress span:nth-child(2)::after { transform: scaleX(clamp(0, calc((var(--sc-p, 0) - 0.5) * 2), 1)); }
.adoption__note { margin-top: 16px; color: var(--text-muted); font-size: var(--fs-caption); }

html.pin-on .section--program .adoption {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  height: 100%;
  padding-top: clamp(34px, 5svh, 64px);
  padding-bottom: clamp(28px, 4svh, 48px);
}
html.pin-on .section--program .adoption__scene {
  grid-row: 2;
  grid-column: 1;
  min-height: 0;
  margin-top: clamp(20px, 3svh, 36px);
}
html.pin-on .section--program .adoption__progress { grid-row: 3; grid-column: 1; }
html.pin-on .section--program .adoption__note { grid-row: 4; grid-column: 1; }
html.pin-on .section--program .adoption__proof li {
  --proof-on: clamp(0, calc((var(--sc-p, 0) - 0.35) * 10), 1);
  opacity: var(--proof-on);
  transform: translateY(calc((1 - var(--proof-on)) * 8px));
}
html.pin-on .section--program .adoption__proof li:nth-child(2) { --proof-on: clamp(0, calc((var(--sc-p, 0) - 0.52) * 10), 1); }
html.pin-on .section--program .adoption__proof li:nth-child(3) { --proof-on: clamp(0, calc((var(--sc-p, 0) - 0.65) * 10), 1); }

@media (max-width: 1023px) {
  .adoption__scene { grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1.15fr); gap: 20px; }
  .adoption__service h3, .adoption__result h3 { font-size: clamp(31px, 4vw, 42px); }
  .adoption__delivery { grid-template-columns: 1fr; }
  .cover.adoption-cover { width: min(100%, 300px); justify-self: start; padding: 24px; }
  .adoption-cover .cover__chapters { font-size: 12px; }
}
@media (max-width: 767px) {
  html.pin-on .section--program { height: 300vh !important; }
  .adoption__title { max-width: 19ch; }
  .adoption__subtitle { max-width: 31ch; margin-top: 8px; font-size: 15px; }
  .adoption__scene {
    grid-template-columns: 1fr;
    grid-template-rows: auto 42px minmax(0, 1fr);
    align-content: center;
    gap: 10px;
    min-height: 620px;
    margin-top: 48px;
  }
  .adoption__service { max-width: 330px; }
  .adoption__label { margin-bottom: 8px; }
  .adoption__service h3, .adoption__result h3 { font-size: clamp(27px, 7.5vw, 32px); }
  .adoption__service p { margin-top: 10px; font-size: 14px; line-height: 1.4; }
  .adoption__transfer { width: 1px; height: 42px; justify-self: center; }
  .adoption__transfer span { top: 0; bottom: 0; left: 0; right: auto; width: 1px; height: auto; }
  .adoption__transfer span::after { transform: scaleY(clamp(0, calc(var(--sc-p, 0) * 2), 1)); transform-origin: top; }
  .adoption__scene--implementation .adoption__transfer span::after { transform: scaleY(clamp(0, calc((var(--sc-p, 0) - 0.35) * 4), 1)); }
  .adoption__transfer b { left: 0; top: 50%; padding: 4px 8px; transform: translate(-50%, -50%); }
  .adoption__delivery { grid-template-columns: 1fr; justify-items: center; }
  .adoption__scene--diagnosis .adoption__delivery { align-self: start; padding-top: 28px; }
  .cover.adoption-cover { width: min(64vw, 248px); justify-self: center; padding: 24px; }
  .adoption-cover .cover__symbol { width: 48px; height: 22px; }
  .adoption-cover .cover__signal { height: auto; min-height: 0; max-height: none; margin-block: 20px; }
  .adoption-cover .cover__title { font-size: clamp(25px, 7vw, 30px); }
  .adoption-cover .cover__chapters { display: none; }
  .adoption__result { width: min(100%, 330px); }
  .adoption__scene--implementation .adoption__result { align-self: start; padding-top: 32px; }
  .adoption__result h3 { max-width: 12ch; }
  .adoption__proof { margin-top: 20px; }
  .adoption__proof li { grid-template-columns: 1fr; gap: 2px; padding-block: 9px; }
  .adoption__proof small { font-size: 14px; }
  .adoption__progress { width: 100%; margin-top: 8px; }
  .adoption__note { min-height: 18px; margin-top: 8px; font-size: 12px; }
  html.pin-on .section--program .adoption { padding-top: 24px; padding-bottom: 20px; }
  html.pin-on .section--program .adoption__scene { min-height: 0; margin-top: 8px; }
}
@media (max-height: 699px) {
  html.pin-on .section--program { height: auto !important; }
  html.pin-on .section--program .stage { position: relative; height: auto; }
  html.pin-on .section--program .adoption { display: block; height: auto; padding-block: var(--section-space); }
  html.pin-on .section--program .adoption__scene {
    min-height: 0;
    margin-top: 64px;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
  }
  html.pin-on .section--program .adoption__scene + .adoption__scene { margin-top: 96px; }
  html.pin-on .section--program .adoption__proof li { opacity: 1; transform: none; }
  html.pin-on .section--program .adoption__note { opacity: 1 !important; transform: none !important; }
  html.pin-on .section--program .adoption__progress { display: none; }
}

/* dado 01: dez marcas, seis acesas (PwC) */
.ten-mark {
  display: grid;
  grid-template-columns: repeat(10, minmax(8px, 1fr));
  gap: 8px;
  margin-top: 32px;
  max-width: 520px;
}
.ten-mark span { display: block; height: 40px; background: var(--surface); }
.ten-mark span.is-active { background: var(--action); }

/* dado 02: uma faixa, 5 contra 95 (BCG) */
.split-bar {
  display: flex;
  width: 100%;
  max-width: 520px;
  height: 24px;
  margin-top: 32px;
  overflow: hidden;
}
.split-bar span { display: block; height: 100%; }
.split-bar__lead { background: var(--action); min-width: 8px; }
.split-bar__rest { background: var(--surface); }

@media (max-width: 1023px) {
  .stage__lead { grid-column: 1 / -1; }
  .stage__lead .t-section { max-width: 24ch; }
  .stage__items { grid-column: 1 / -1; }
  .stage__grid { align-content: center; row-gap: 40px; }
  .stage__title { max-width: 18ch; }
  .stage__body, .stage__options { max-width: 60ch; }
}
@media (max-width: 767px) {
  .stage__lead .t-section { font-size: var(--fs-sub); line-height: 1.3; letter-spacing: -0.01em; max-width: none; }
  .stage__echo { font-size: var(--fs-sub); line-height: 1.3; letter-spacing: -0.01em; }
  .stage__hint { bottom: 34px; }
  .stage__marks { margin-top: 20px; }
  .stage__grid { row-gap: 32px; }
  .stage__item + .stage__item { margin-top: 48px; }
  .stage__body { margin-top: 16px; }
  .ten-mark { gap: 4px; margin-top: 24px; }
  .ten-mark span { height: 32px; }
  .split-bar { margin-top: 24px; height: 20px; }
  .stage__options { margin-top: 16px; }
  .stage__options li { padding-block: 12px; }
}
/* telas baixas (notebook com barra do navegador): aperta o palco em vez de cortar */
@media (max-height: 760px) and (min-width: 768px) {
  .stage__title { font-size: var(--fs-section); line-height: 1.2; }
  .stage__body { margin-top: 16px; }
  .ten-mark { margin-top: 24px; }
  .ten-mark span { height: 32px; }
  .split-bar { margin-top: 24px; }
  .stage__options li { padding-block: 12px; }
}

/* --- 4. O que você recebe: o dossiê vira o palco (pico) -------------------- */
/* A capa reage ao primeiro movimento. Depois, o índice e uma etapa por vez
   vivem dentro do objeto. Sem JS ou com movimento reduzido, a capa permanece
   fechada e a mesma lista semântica segue em fluxo normal. */

.section--dossier {
  --open: clamp(0, calc((var(--sc-p, 0) - 0.025) * 6.2), 1);
  --intro-out: clamp(0, calc((var(--sc-p, 0) - 0.035) * 8), 1);
}
.dossier-stage {
  position: relative;
  width: min(calc(100% - (var(--margin) * 2)), var(--content-max));
  margin-inline: auto;
  padding-block: var(--section-space);
}
.dossier__intro { max-width: 34ch; }
.dossier__scope { margin-top: 12px; color: var(--text-muted); line-height: 1.5; }
.dossier__progress {
  width: 152px;
  height: 3px;
  margin-top: 24px;
  overflow: hidden;
  background: var(--border-subtle);
}
.dossier__progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--action);
  transform: scaleX(var(--sc-p, 0));
  transform-origin: left;
}

/* Estado de leitura normal e fallback. */
.book {
  position: relative;
  width: min(72vw, 360px);
  aspect-ratio: 3 / 4;
  margin: 48px auto 0;
  perspective: 1800px;
}
.book__spread { display: none; }
.book__flap { position: absolute; inset: 0; transform-style: preserve-3d; }
.book__flap .cover { position: absolute; inset: 0; backface-visibility: hidden; }
.book__inside {
  position: absolute;
  inset: 0;
  overflow: hidden;
  padding: clamp(1.5rem, 3vw, 3rem);
  border-radius: var(--radius-panel);
  background: var(--surface-raised);
  box-shadow: inset 0 0 0 1px var(--border-subtle), inset -22px 0 30px -30px rgba(20, 27, 34, 0.28);
  transform: rotateY(180deg);
  backface-visibility: hidden;
}
.book__flap::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-panel);
  box-shadow: 10px 8px 36px rgb(23 26 32 / 20%);
  opacity: calc(var(--open, 0) * (1 - var(--open, 0)) * 4);
  pointer-events: none;
}

.cover {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding: clamp(28px, 3.4vw, 48px);
  border-radius: var(--radius-panel);
  background: var(--bg);
  color: var(--text);
  display: grid;
  grid-template-rows: auto minmax(72px, 1fr) auto auto;
}
.cover::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 30% 20%, var(--ambient-a) 0%, transparent 60%),
    radial-gradient(ellipse at 85% 90%, var(--ambient-b) 0%, transparent 55%);
}
.cover > * { position: relative; z-index: 1; }
.cover__top { display: flex; align-items: center; justify-content: space-between; }
.cover__symbol { width: 72px; height: 32px; fill: var(--action); }
.cover__signal {
  align-self: stretch;
  width: 100%;
  min-height: 72px;
  max-height: 168px;
  margin-block: clamp(16px, 3svh, 32px);
  overflow: visible;
}
.cover__signal path {
  fill: none;
  stroke: var(--action);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  opacity: 0.48;
}
.cover__signal circle { fill: var(--action); }
.cover__signal circle:nth-of-type(even) { opacity: 0.62; }
.cover__body { align-self: end; }
.cover__kicker {
  display: block;
  color: var(--text-muted);
  font-size: clamp(13px, 1vw, 15px);
}
.cover__title {
  display: block;
  margin-top: 12px;
  max-width: 13ch;
  font-size: clamp(38px, 3.3vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 500;
}
.cover__chapters {
  list-style: none;
  margin-top: clamp(24px, 3svh, 32px);
  padding-top: clamp(16px, 2svh, 24px);
  border-top: 1px solid var(--border-subtle);
  font-size: clamp(14px, 1.15vw, 17px);
  line-height: 1.4;
  color: var(--text-muted);
  counter-reset: chapter;
}
.cover__chapters li { display: flex; gap: 12px; padding-block: 4px; }
.cover__chapters li::before {
  content: counter(chapter, decimal-leading-zero);
  counter-increment: chapter;
  min-width: 2ch;
  color: var(--action);
  font-variant-numeric: tabular-nums;
}

.dossier__list {
  list-style: none;
  max-width: 860px;
  margin: 64px auto 0;
  counter-reset: dossier;
}
.dossier__item {
  counter-increment: dossier;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  column-gap: 16px;
  padding-block: 24px;
  border-top: 1px solid var(--border-subtle);
}
.dossier__item::before {
  content: counter(dossier, decimal-leading-zero);
  grid-row: 1 / span 4;
  color: var(--text-muted);
  font-size: var(--fs-sub);
  line-height: 1.3;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.dossier__step { display: none; color: var(--text-muted); }
.dossier__item p {
  grid-column: 2;
  margin-top: 8px;
  max-width: 60ch;
  color: var(--text-muted);
  font-size: var(--fs-ui);
  line-height: 1.55;
}
/* Palco montado: o livro ocupa a tela e a lista semântica vira a página direita. */
html.pin-on .section--dossier .dossier-stage {
  --book-width: min(92vw, calc(78svh * 1.55), 1180px);
  height: 100%;
  width: 100%;
  padding: 0;
  overflow: clip;
}
html.pin-on .section--dossier .dossier__intro {
  position: absolute;
  top: clamp(28px, 6svh, 64px);
  left: max(var(--margin), calc((100vw - var(--content-max)) / 2));
  z-index: 5;
  opacity: calc(1 - var(--intro-out));
  transform: translateY(calc(var(--intro-out) * -10px));
  will-change: opacity, transform;
}
html.pin-on .section--dossier .book {
  position: absolute;
  left: 50%;
  top: 53%;
  width: var(--book-width);
  aspect-ratio: 1.55;
  margin: 0;
  transform:
    translate(-50%, -50%)
    translateX(calc((1 - var(--open)) * -25%))
    scale(calc(0.78 + (var(--open) * 0.22)));
  transform-origin: center;
  will-change: transform;
}
html.pin-on .section--dossier .book__spread {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  opacity: var(--open);
  filter: saturate(calc(0.82 + (var(--open) * 0.18)));
}
.book__paper {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 4vw, 64px);
  background: var(--surface-raised);
  box-shadow:
    0 24px 50px rgb(23 26 32 / 10%),
    0 4px 12px rgb(23 26 32 / 10%),
    inset 0 1px 0 rgb(255 255 255 / 70%);
}
.book__paper--left { border-radius: var(--radius-panel) 2px 2px var(--radius-panel); }
.book__paper--right { border-radius: 2px var(--radius-panel) var(--radius-panel) 2px; }
.book__crease {
  position: absolute;
  top: 2%;
  bottom: 2%;
  left: 50%;
  width: 24px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, rgb(23 26 32 / 8%), rgb(255 255 255 / 52%) 48%, rgb(23 26 32 / 9%));
  opacity: var(--open);
  pointer-events: none;
}
.book__page-kicker, .book__right-label { display: block; color: var(--text-muted); }
.book__toc {
  list-style: none;
  margin-top: clamp(24px, 4svh, 48px);
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: clamp(13px, 1.15vw, 17px);
  line-height: 1.35;
}
.book__toc li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  padding-block: clamp(6px, 1svh, 10px);
  transition: color var(--duration-normal) var(--ease), background-color var(--duration-normal) var(--ease), transform var(--duration-normal) var(--ease);
}
.book__toc li span { color: inherit; font-variant-numeric: tabular-nums; }
.book__toc li.is-past { color: var(--text); }
.book__toc li.is-past span, .book__toc li.is-current span { color: var(--action); }
.book__toc li.is-current {
  color: var(--text);
  transform: translateX(8px);
  font-weight: 500;
}
.book__toc li.is-current::after {
  content: "";
  align-self: center;
  width: 28px;
  height: 2px;
  margin-left: 4px;
  background: var(--action);
}
.book__mobile-progress { display: none; }

html.pin-on .section--dossier .book__flap {
  inset: 0 auto 0 50%;
  width: 50%;
  transform-origin: left center;
  transform: rotateY(calc(-178deg * var(--open)));
  will-change: transform;
}

html.pin-on .section--dossier .dossier__list {
  position: absolute;
  top: 53%;
  left: 50%;
  width: calc(var(--book-width) / 2);
  aspect-ratio: 0.775;
  margin: 0;
  transform: translateY(-50%);
  pointer-events: none;
}
html.pin-on .section--dossier .dossier__item {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(36px, 5vw, 76px);
  border: 0;
  opacity: 0;
  transform: translateX(28px);
  transition: opacity 260ms var(--ease), transform 360ms var(--ease);
  will-change: opacity, transform;
}
html.pin-on .section--dossier .dossier__item::before { display: none; }
html.pin-on .section--dossier .dossier__item.is-past { transform: translateX(-28px); }
html.pin-on .section--dossier .dossier__item.is-current { opacity: 1; transform: none; }
html.pin-on .section--dossier .dossier__step {
  display: block;
  position: absolute;
  top: clamp(68px, 7vw, 104px);
  left: clamp(36px, 5vw, 76px);
}
html.pin-on .section--dossier .dossier__name {
  max-width: 12ch;
  font-size: clamp(30px, 3.2vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}
html.pin-on .section--dossier .dossier__item p {
  grid-column: auto;
  margin-top: 24px;
  max-width: 34ch;
  color: var(--text-muted);
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.55;
}
@media (max-width: 1023px) {
  html.pin-on .section--dossier .dossier-stage { --book-width: min(94vw, calc(72svh * 1.55)); }
  .book__toc { font-size: clamp(11px, 1.45vw, 14px); }
  .book__toc li { grid-template-columns: 28px minmax(0, 1fr); padding-block: 5px; }
  .cover { padding: 28px; grid-template-rows: auto minmax(56px, 1fr) auto auto; }
  .cover__symbol { width: 64px; height: 28px; }
  .cover__signal { min-height: 56px; max-height: 96px; margin-block: 12px; }
  .cover__title { margin-top: 10px; font-size: 34px; }
  .cover__chapters { margin-top: 18px; padding-top: 12px; font-size: 13px; line-height: 1.35; }
  .cover__chapters li { gap: 10px; padding-block: 2px; }
  html.pin-on .section--dossier .dossier__name { font-size: clamp(26px, 4vw, 38px); }
  html.pin-on .section--dossier .dossier__item p { font-size: clamp(14px, 1.8vw, 17px); }
}

@media (max-width: 767px) {
  html.pin-on .section--dossier .dossier-stage { --book-width: min(88vw, 390px); }
  html.pin-on .section--dossier .dossier__intro {
    top: 5svh;
    left: var(--margin);
    right: var(--margin);
  }
  html.pin-on .section--dossier .dossier__intro .t-section { font-size: var(--fs-sub); line-height: 1.3; }
  html.pin-on .section--dossier .book {
    top: 55%;
    aspect-ratio: 3 / 4;
    perspective: none;
    transform: translate(-50%, -50%) scale(calc(0.9 + (var(--open) * 0.1)));
  }
  html.pin-on .section--dossier .book__spread { grid-template-columns: 1fr; }
  .book__paper { padding: 28px; }
  .book__paper--left, .book__crease { display: none; }
  .book__paper--right { border-radius: var(--radius-panel); }
  .book__right-label { margin-top: 28px; }
  .book__mobile-progress { display: flex; gap: 6px; }
  .book__mobile-progress span {
    flex: 1;
    height: 3px;
    background: var(--border-subtle);
    transition: background-color var(--duration-normal) var(--ease), transform var(--duration-normal) var(--ease);
    transform-origin: left;
  }
  .book__mobile-progress span.is-past, .book__mobile-progress span.is-current { background: var(--action); }
  .book__mobile-progress span.is-current { transform: scaleX(1.18); }
  html.pin-on .section--dossier .book__flap {
    inset: 0;
    width: 100%;
    transform-origin: center;
    transform: translateY(calc(var(--open) * -18%)) scale(calc(1 - (var(--open) * 0.04)));
    opacity: calc(1 - var(--open));
  }
  html.pin-on .section--dossier .book__inside, html.pin-on .section--dossier .book__flap::after { display: none; }
  html.pin-on .section--dossier .dossier__list {
    top: 55%;
    left: 50%;
    width: var(--book-width);
    aspect-ratio: 3 / 4;
    transform: translate(-50%, -50%);
  }
  html.pin-on .section--dossier .dossier__item { padding: 32px 28px; }
  html.pin-on .section--dossier .dossier__step { top: 76px; left: 28px; }
  html.pin-on .section--dossier .dossier__name { max-width: 13ch; font-size: clamp(25px, 8vw, 34px); }
  html.pin-on .section--dossier .dossier__item p { margin-top: 18px; font-size: 15px; line-height: 1.5; }
  .cover { padding: 24px; grid-template-rows: auto minmax(48px, 1fr) auto auto; }
  .cover__symbol { width: 56px; height: 24px; }
  .cover__signal { min-height: 48px; max-height: 80px; margin-block: 10px; }
  .cover__title { margin-top: 8px; font-size: clamp(30px, 9vw, 36px); }
  .cover__chapters { margin-top: 16px; padding-top: 12px; font-size: 11.5px; }
  .cover__chapters li { gap: 9px; padding-block: 2px; }
  .book__cover { padding: 20px; }
  .book__cover .cover__signal { min-height: 34px; max-height: 56px; margin-block: 6px; }
  .book__cover .cover__title { font-size: clamp(25px, 7.5vw, 30px); }
  .book__cover .cover__chapters { margin-top: 10px; padding-top: 8px; font-size: 11px; }
}

/* Tela baixa demais para o palco: volta à leitura normal, sem cortar conteúdo. */
@media (max-height: 700px) {
  html.pin-on .section--dossier { height: auto !important; }
  html.pin-on .section--dossier .stage { position: relative; height: auto; }
  html.pin-on .section--dossier .dossier-stage {
    width: min(calc(100% - (var(--margin) * 2)), var(--content-max));
    height: auto;
    padding-block: var(--section-space);
    overflow: visible;
  }
  html.pin-on .section--dossier .dossier__intro { position: relative; inset: auto; opacity: 1; transform: none; }
  html.pin-on .section--dossier .book {
    position: relative;
    inset: auto;
    width: min(88vw, 390px);
    aspect-ratio: 3 / 4;
    margin: 48px auto 0;
    transform: none;
  }
  html.pin-on .section--dossier .book__spread { display: none; }
  html.pin-on .section--dossier .book__flap { inset: 0; width: 100%; transform: none; opacity: 1; }
  html.pin-on .section--dossier .dossier__list {
    position: relative;
    inset: auto;
    width: auto;
    aspect-ratio: auto;
    margin: 64px auto 0;
    transform: none;
    opacity: 1;
  }
  html.pin-on .section--dossier .dossier__item {
    position: relative;
    inset: auto;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    padding-block: 24px;
    padding-inline: 0;
    border-top: 1px solid var(--border-subtle);
    opacity: 1;
    transform: none;
  }
  html.pin-on .section--dossier .dossier__item::before { display: block; }
  html.pin-on .section--dossier .dossier__step { position: static; }
  html.pin-on .section--dossier .dossier__step { display: none; }
  html.pin-on .section--dossier .dossier__name { max-width: none; font-size: var(--fs-sub); line-height: 1.3; }
  html.pin-on .section--dossier .dossier__item p { grid-column: 2; margin-top: 8px; max-width: 60ch; font-size: var(--fs-ui); }
}

/* --- 5. Como funciona: o mapa ---------------------------------------------- */
/* Cinco pontos ligados por um caminho que se desenha conforme a rolagem.
   A lista real é um <ol>; o SVG é decorativo e é calculado pelo script a
   partir da posição dos pontos, por isso funciona igual em qualquer largura. */

.map { position: relative; margin-top: 64px; }
.map__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 0;
}
.map__svg path { fill: none; stroke-width: 10; stroke-linecap: round; stroke-linejoin: round; }
.map__track { stroke: var(--border-subtle); }
.map__path  { stroke: var(--action); stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--map-progress, 1)); }

.map__steps {
  list-style: none;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 96px;
}
.map__step { display: contents; }

.map__dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--text-muted);
  box-shadow: 0 0 0 1px var(--border-subtle);
  font-size: var(--fs-sub);
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  align-self: start;
  transition:
    background-color var(--duration-normal) var(--ease),
    color var(--duration-normal) var(--ease),
    box-shadow var(--duration-normal) var(--ease),
    transform var(--duration-normal) var(--ease);
}
.map__step.is-lit .map__dot {
  background: var(--action);
  color: var(--on-action);
  box-shadow: 0 0 0 1px var(--action);
}

.map__text { max-width: 40ch; }
.map__desc { margin-top: 12px; }

/* texto entra quando o caminho chega ao ponto; reversível com a rolagem */
html.js:not(.motion-off) .map__text {
  opacity: 0.35;
  transform: translateY(8px);
  transition: opacity 560ms var(--ease), transform 560ms var(--ease);
}
html.js:not(.motion-off) .map__step.is-lit .map__text { opacity: 1; transform: none; }

/* desktop: passos alternam os lados do caminho */
@media (min-width: 1024px) {
  .map__step:nth-child(1) > * { grid-row: 1; }
  .map__step:nth-child(2) > * { grid-row: 2; }
  .map__step:nth-child(3) > * { grid-row: 3; }
  .map__step:nth-child(4) > * { grid-row: 4; }
  .map__step:nth-child(5) > * { grid-row: 5; }
  .map__step:nth-child(odd)  .map__text { grid-column: 1 / span 5; text-align: right; justify-self: end; }
  .map__step:nth-child(odd)  .map__dot  { grid-column: 6 / span 1; justify-self: start; }
  .map__step:nth-child(even) .map__dot  { grid-column: 7 / span 1; justify-self: end; }
  .map__step:nth-child(even) .map__text { grid-column: 8 / span 5; }
}

/* mobile e tablet: caminho à esquerda, texto à direita */
@media (max-width: 1023px) {
  .map { margin-top: 48px; }
  .map__steps { display: block; }
  .map__step { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 24px; }
  .map__step + .map__step { margin-top: 48px; }
  .map__text { max-width: 65ch; }
}

/* o destino: o dossiê, na mesma superfície da capa */
.map__step--final .map__text {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding: 32px;
  border-radius: var(--radius-panel);
  background: var(--bg);
  color: var(--text);
  max-width: none;
}
.map__step--final .map__text::before {
  content: "";
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse at 20% 30%, var(--ambient-a) 0%, transparent 60%),
    radial-gradient(ellipse at 90% 100%, var(--ambient-b) 0%, transparent 55%);
}
@media (max-width: 767px) { .map__step--final .map__text { padding: 24px; } }


/* --- 8. Garantia ------------------------------------------------------------ */

.guarantee__body { margin-top: 32px; max-width: 65ch; }
.section--guarantee .btn { margin-top: 48px; }

/* --- 9. Quem conduz --------------------------------------------------------- */

.who { align-items: start; }
.who__photo { grid-column: 1 / span 4; }
.who__photo img {
  width: 100%;
  border-radius: var(--radius-panel);
}
.who__text { grid-column: 6 / span 6; }
.who__role { margin-top: 12px; }
.who__bio { margin-top: 24px; max-width: 65ch; }
.who .brand { margin-top: 48px; }
@media (max-width: 1023px) {
  .who__photo { grid-column: 1 / span 3; }
  .who__text { grid-column: 4 / span 5; }
}
@media (max-width: 767px) {
  .who__photo { grid-column: 1 / -1; max-width: 320px; }
  .who__text { grid-column: 1 / -1; }
}

/* --- 10. Perguntas frequentes ----------------------------------------------- */

.faq { margin-top: 40px; display: grid; gap: 12px; }
.faq__item {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-panel);
  background: var(--surface-raised);
  transition: border-color var(--duration-fast) var(--ease);
}
.faq__item:hover, .faq__item[open] { border-color: var(--border-control); }
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: 1.4;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; border-radius: var(--radius-panel); }
.faq__mark { position: relative; flex: none; width: 16px; height: 16px; }
.faq__mark::before, .faq__mark::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  background: var(--text-muted);
  transform: translate(-50%, -50%);
  transition: transform var(--duration-normal) var(--ease);
}
.faq__mark::before { width: 16px; height: 1.5px; }
.faq__mark::after  { width: 1.5px; height: 16px; }
.faq__item[open] .faq__mark::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item p { padding: 0 24px 24px; max-width: 65ch; color: var(--text-muted); }
@media (max-width: 767px) { .faq__q { padding: 16px 18px; } .faq__item p { padding: 0 18px 18px; } }

/* --- 11. Fechamento + agendamento ------------------------------------------- */

/* âncora: título da seção a 48 px do topo (o padding da seção fica acima da tela) */
.section--book { scroll-margin-top: calc(48px - var(--section-space)); }
.book__lead { margin-top: 24px; max-width: 65ch; }
.book__widget {
  margin: 48px auto 0;
  width: 100%;
  max-width: 800px;
}
@media (min-width: 1024px) {
  .book__widget { max-width: min(800px, calc(100% * 8 / 12 - 4 * var(--gap) / 12)); }
}
.book__frame {
  background: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-panel);
  padding: 8px;
}
.book__frame iframe {
  display: block;
  width: 100%;
  border-radius: calc(var(--radius-panel) - 4px);
}
.book__cal {
  width: 100%;
  min-height: 600px;
  overflow: auto;
  border-radius: calc(var(--radius-panel) - 4px);
}
.book__fallback { margin-top: 16px; color: var(--text-muted); }


/* --- CTA discreto de retorno (planos, quem conduz, FAQ) ---------------------- */
.cta-back { margin-top: 48px; }
.cta-back a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-ui);
  font-weight: 500;
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}
.cta-back a:hover { text-decoration-thickness: 2px; }
.cta-back a span { transition: transform var(--duration-fast) var(--ease); display: inline-block; }
.cta-back a:hover span { transform: translateY(-2px); }

/* --- Fecho: uma linha, sem rodapé ------------------------------------------- */
.colophon { margin-top: 96px; }
@media (max-width: 767px) { .colophon { margin-top: 64px; } }

/* --- Quem conduz: marca + LinkedIn ------------------------------------------- */
.who__links { display: flex; align-items: center; gap: 24px; margin-top: 48px; }
.who .brand { margin-top: 0; }
.who__linkedin {
  display: inline-flex;
  width: 44px; height: 44px;              /* área de toque mínima */
  align-items: center; justify-content: center;
  color: var(--text);
  border-radius: var(--radius-control);
  transition: color var(--duration-fast) var(--ease);
}
.who__linkedin:hover { color: var(--link); }

/* --- Abertura: a palavra de ganho em verde (success), um uso por página ------- */
.hl-gain { font-style: normal; color: var(--success); }

/* --- Botão primário: hover com leve elevação, brilho e um reflexo que atravessa --- */
.btn--primary {
  position: relative;
  overflow: hidden;
  transition:
    background-color var(--duration-fast) var(--ease),
    transform var(--duration-fast) var(--ease),
    box-shadow var(--duration-normal) var(--ease);
}
.btn--primary::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: -60%;
  width: 40%;
  background: linear-gradient(105deg, transparent 0%, rgb(255 255 255 / 22%) 50%, transparent 100%);
  transform: skewX(-18deg);
  transition: left 640ms var(--ease);
  pointer-events: none;
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgb(36 88 211 / 35%);
}
.btn--primary:hover::after { left: 120%; }
.btn--primary:active { transform: translateY(0); box-shadow: 0 4px 12px rgb(36 88 211 / 30%); }
@media (prefers-reduced-motion: reduce) {
  .btn--primary:hover { transform: none; }
  .btn--primary::after { display: none; }
}

/* --- Abertura como pôster: a frase em três pesos, "resultado" no maior corpo --- */
.poster {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  font-weight: 500;
  max-width: 100%;
}
.poster__line { display: block; text-wrap: balance; }
.poster__line--a {
  font-size: var(--fs-section);
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 28ch;
}
.poster__word {
  display: block;
  font-size: clamp(64px, 12.5vw, 184px);
  line-height: 0.95;
  letter-spacing: -0.045em;
  margin-block: 12px 16px;
}
.poster__line--b {
  font-size: var(--fs-sub);
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-weight: 400;
  color: var(--text-muted);
  max-width: 36ch;
}
@media (max-width: 1023px) { .poster { align-items: center; text-align: center; } }
@media (max-width: 767px) {
  .poster { align-items: flex-start; text-align: left; }
  .poster__line--a { font-size: var(--fs-sub); }
  .poster__word { font-size: clamp(56px, 17vw, 80px); margin-block: 8px 12px; }
  .poster__line--b { font-size: var(--fs-body); }
  .hero__lead { font-size: var(--fs-body); line-height: 1.5; }
}

/* --- O trilho: a página se preenche na borda enquanto você desce ------------- */
/* Fixo à direita (embaixo no celular), uma marca por seção. A marca acende
   quando a seção chega ao meio da tela; clicar leva à seção; passar o mouse
   mostra o nome. Só com o motor ligado. */
.spine {
  position: fixed;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  display: none;
  flex-direction: column;
  gap: 6px;
}
html.pin-on .spine { display: flex; }
.spine a {
  position: relative;
  display: block;
  width: 3px;
  height: 22px;
  background: rgb(128 134 146 / 38%);
  overflow: visible;
  border-radius: 0;
}
.spine a::before {          /* área de clique maior que o traço */
  content: "";
  position: absolute;
  inset: -3px -12px;
}
.spine a::after {           /* o preenchimento */
  content: "";
  position: absolute;
  inset: 0;
  background: var(--action);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 360ms var(--ease);
}
.spine a.is-on::after { transform: scaleY(1); }
.spine a.is-current { height: 34px; }
.spine__tip {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%) translateX(4px);
  white-space: nowrap;
  font-size: var(--fs-caption);
  line-height: 1;
  padding: 8px 10px;
  border-radius: var(--radius-control);
  background: #171A20;
  color: #F2F0EB;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-fast) var(--ease), transform var(--duration-fast) var(--ease);
}
.spine a:hover .spine__tip, .spine a:focus-visible .spine__tip { opacity: 1; transform: translateY(-50%) translateX(0); }
.spine a:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
@media (max-width: 767px) {
  .spine { right: auto; top: auto; left: 50%; bottom: 10px; transform: translateX(-50%); flex-direction: row; gap: 5px; }
  .spine a { width: 18px; height: 3px; }
  .spine a::before { inset: -12px -3px; }
  .spine a::after { transform-origin: left; transform: scaleX(0); }
  .spine a.is-on::after { transform: scaleX(1); }
  .spine a.is-current { height: 3px; width: 28px; }
  .spine__tip { right: auto; top: auto; left: 50%; bottom: 14px; transform: translateX(-50%) translateY(4px); }
  .spine a:hover .spine__tip, .spine a:focus-visible .spine__tip { transform: translateX(-50%) translateY(0); }
}

/* --- Garantia: uma linha na tela --------------------------------------------- */
.guarantee__line { max-width: 22ch; }
.section--guarantee { min-height: 80vh; min-height: 80svh; display: flex; align-items: center; }
.section--guarantee .container { width: 100%; }
.guarantee__body { font-size: var(--fs-ui); color: var(--text-muted); max-width: 60ch; }

/* --- Cólofon: planos, quem conduz, perguntas em tipo menor -------------------- */
.section--colophon .t-section { font-size: var(--fs-sub); line-height: 1.3; letter-spacing: -0.01em; }
.section--colophon { font-size: var(--fs-ui); }
.section--colophon .t-sub { font-size: var(--fs-body); line-height: 1.4; }

/* --- Fecho: o menor tipo do site, o dossiê pronto ----------------------------- */
.section--close { padding-top: 0; }
.close { padding-top: 48px; border-top: 1px solid var(--border-subtle); font-size: var(--fs-ui); line-height: 1.5; }
.close__line { max-width: 40ch; }
.close__cta { margin-top: 12px; }
.close__cta a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
  font-weight: 500;
}
.close__cta a:hover { text-decoration-thickness: 2px; }
.close__colophon { margin-top: 48px; }
@media (max-width: 767px) { .close__colophon { margin-bottom: 24px; } }  /* espaço para a lombada embaixo */
