/* =========================================================================
   IA SPRINT · Design System v2 — "Descoberta"
   Nubank-princípios × identidade própria: mar de Ilhabela, papel, tinta.
   A experiência: capítulos de cor, tipografia cartaz, fotografia real.
   ========================================================================= */

:root {
  /* — Color · ink/paper foundation — */
  --ink:          #0A0A0A;
  --ink-soft:     #17191A;
  --paper:        #FAF9F6;
  --cream:        #F1EFE9;
  --sand:         #E9E3D5;    /* bloco quente — areia de Vila */
  --sand-deep:    #DCD3BE;

  /* — Color · identity — */
  --accent:       #0F5257;    /* teal profundo — mar/território/tecnologia */
  --accent-dark:  #0B4145;
  --accent-soft:  #DCE8E6;
  --accent-line:  rgba(15, 82, 87, 0.22);
  --sea:          #0B2226;    /* noite no mar — capítulo da invisibilidade */
  --sea-soft:     #123034;
  --signal:       #C8932E;    /* dourado — atenção, racionado */

  /* — Color · neutrals — */
  --gray:         #5D605C;
  --gray-light:   #B0B2AE;
  --line:         rgba(10, 10, 10, 0.08);
  --line-soft:    rgba(10, 10, 10, 0.05);
  --line-on-dark: rgba(250, 249, 246, 0.12);

  /* — Type · families — */
  --font-serif:   'Fraunces', 'Times New Roman', Georgia, serif;
  --font-sans:    'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:    ui-monospace, 'SF Mono', Monaco, Consolas, monospace;

  /* — Type · scale — poster-first (mobile ↦ desktop) — */
  --fs-poster:  clamp(2.9rem, 1.7rem + 6vw, 5.8rem);   /* capítulos: frases-cartaz */
  --fs-display: clamp(2.4rem, 1.6rem + 3.8vw, 4.4rem); /* hero */
  --fs-h1:      clamp(2.1rem, 1.5rem + 2.6vw, 3.4rem);
  --fs-h2:      clamp(1.6rem, 1.25rem + 1.5vw, 2.5rem);
  --fs-h3:      clamp(1.125rem, 1rem + 0.4vw, 1.375rem);
  --fs-h4:      1.125rem;
  --fs-lede:    1.1875rem;
  --fs-body:    1rem;
  --fs-small:   0.875rem;
  --fs-caption: 0.8125rem;
  --fs-eyebrow: 0.6875rem;
  --fs-stat:    clamp(3rem, 2.2rem + 2.6vw, 4.25rem);

  /* — Spacing (4px grid) — */
  --s-1: 0.25rem;  --s-2: 0.5rem;   --s-3: 0.75rem;  --s-4: 1rem;
  --s-5: 1.5rem;   --s-6: 2rem;     --s-7: 3rem;     --s-8: 4rem;
  --s-9: 6rem;     --s-10: 8rem;    --s-11: 10rem;

  /* — Layout — */
  --container: 72rem;
  --container-narrow: 48rem;
  --container-wide: 84rem;

  /* — Radius — Nubank-confidence: arredondado generoso — */
  --r-1: 6px; --r-2: 12px; --r-3: 20px; --r-block: 28px; --r-pill: 999px;

  /* — Shadow — */
  --shadow-1: 0 1px 0 rgba(10,10,10,0.04), 0 2px 8px rgba(10,10,10,0.04);
  --shadow-2: 0 4px 12px rgba(10,10,10,0.06), 0 12px 32px rgba(10,10,10,0.08);
  --shadow-on-dark: 0 4px 16px rgba(0,0,0,0.3), 0 16px 48px rgba(0,0,0,0.35);

  /* — Motion — */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-1: 180ms;  /* microinterações 160–400ms */
  --dur-2: 320ms;
  --dur-3: 520ms;
  --dur-story: 900ms; /* storytelling pode ser mais longo */
}

/* — Reset / base — */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: 0; padding: 0; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--s-7) 0; }
::selection { background: var(--accent); color: var(--paper); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

/* — Typography — */
.display, .poster, h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.08;
  margin: 0 0 var(--s-4);
  color: var(--ink);
  text-wrap: balance;
}
.display { font-size: var(--fs-display); font-weight: 700; }
.poster {
  font-size: var(--fs-poster);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.028em;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); line-height: 1.15; }
h3 { font-size: var(--fs-h3); line-height: 1.25; letter-spacing: -0.012em; }
h4 { font-size: var(--fs-h4); font-weight: 600; line-height: 1.3; }

p { margin: 0 0 var(--s-4); text-wrap: pretty; }
p.lede { font-size: var(--fs-lede); line-height: 1.55; color: var(--gray); max-width: 58ch; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s-4);
}
.eyebrow.muted { color: var(--gray); }
.eyebrow.on-dark { color: #7FB5B3; }

.mono { font-family: var(--font-mono); font-size: 0.92em; letter-spacing: -0.01em; }
.muted { color: var(--gray); }
.small { font-size: var(--fs-small); }
.center { text-align: center; }

.prose a, a.link {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.prose a:hover, a.link:hover { color: var(--accent); }

/* — Layout — */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--s-5); }
.container.narrow { max-width: var(--container-narrow); }
.container.wide { max-width: var(--container-wide); }
.section { padding-block: var(--s-9); }
.section-sm { padding-block: var(--s-7); }
@media (min-width: 768px) { .section { padding-block: var(--s-10); } }

.grid { display: grid; gap: var(--s-5); }
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* =========================================================================
   CAPÍTULOS — a narrativa por cor. Cada capítulo é um mundo visual.
   ========================================================================= */
.chapter { position: relative; padding-block: var(--s-10); }
@media (min-width: 768px) { .chapter { padding-block: var(--s-11); } }
.chapter-light  { background: var(--paper); }
.chapter-warm   { background: var(--cream); }
.chapter-sand   { background: var(--sand); }
.chapter-accent { background: var(--accent); color: var(--paper); }
.chapter-sea    { background: var(--sea); color: var(--paper); }

.chapter-accent h2, .chapter-accent h3, .chapter-accent h4,
.chapter-sea h2, .chapter-sea h3, .chapter-sea h4,
.chapter-sea .poster { color: var(--paper); }
.chapter-accent p, .chapter-sea p { color: rgba(250,249,246,0.72); }
.chapter-accent .eyebrow, .chapter-sea .eyebrow { color: #7FB5B3; }

/* Number tag do capítulo — mono, discreto */
.chapter-num {
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-light);
  display: block;
  margin-bottom: var(--s-4);
}
.chapter-sea .chapter-num, .chapter-accent .chapter-num { color: rgba(250,249,246,0.4); }

/* =========================================================================
   CENA FOTOGRÁFICA — full-bleed, uma frase, vida real
   ========================================================================= */
.photo-scene {
  position: relative;
  min-height: clamp(420px, 62vh, 640px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.photo-scene img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-scene::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,20,20,0.05) 0%, rgba(8,18,19,0.55) 72%, rgba(6,14,15,0.78) 100%);
}
.photo-scene .scene-words {
  position: relative;
  z-index: 2;
  padding: var(--s-7) var(--s-5) var(--s-8);
  max-width: var(--container);
  margin-inline: auto;
  width: 100%;
}
.photo-scene .scene-words h2, .photo-scene .scene-words .poster { color: #FAFAF8; }
.photo-scene .scene-words p { color: rgba(250,249,246,0.82); }
@media (min-width: 768px) {
  .photo-scene .scene-words { padding: var(--s-8) var(--s-7) var(--s-9); }
}

/* =========================================================================
   HERO CENA 1 — a pergunta que abre tudo
   ========================================================================= */
.hero-scene { padding-block: var(--s-9) var(--s-8); min-height: 88svh; display: flex; align-items: center; }
@media (min-width: 768px) { .hero-scene { padding-block: var(--s-10); min-height: 92svh; } }

/* A "pergunta digitada" — interface editorial própria, não clone de chat */
.ask-frame {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  padding: var(--s-5) var(--s-5) var(--s-4);
  box-shadow: var(--shadow-2);
  max-width: 44rem;
  margin-top: var(--s-6);
}
.ask-frame .ask-label {
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  color: var(--gray-light);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--s-3);
}
.ask-frame .ask-question {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 1.05rem + 1.6vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
  min-height: 2.6em;
  color: var(--ink);
}
.ask-caret {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  background: var(--accent);
  margin-left: 2px;
  vertical-align: -0.15em;
  animation: caret 1.05s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

/* As "respostas" — entidades estilizadas, linguagem editorial própria */
.ask-answers { margin-top: var(--s-5); display: grid; gap: var(--s-3); }
.answer-chip {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-3) var(--s-4);
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  padding: var(--s-3) var(--s-4);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--dur-story) var(--ease-out-expo), transform var(--dur-story) var(--ease-out-expo);
}
.answer-chip.is-in { opacity: 1; transform: none; }
.answer-chip .rank {
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  color: var(--accent);
  border: 1px solid var(--accent-line);
  border-radius: var(--r-pill);
  padding: 0.15rem 0.6rem;
}
.answer-chip .who { font-weight: 600; }
.answer-chip .why { color: var(--gray); font-size: var(--fs-small); }
.answer-chip.ghosted {
  border-style: dashed;
  border-color: var(--line);
  background: transparent;
}
.answer-chip.ghosted .who { color: var(--gray-light); }

/* =========================================================================
   CENA DE CONVERGÊNCIA — Google (10 links) → IA (1 resposta)
   ========================================================================= */
.converge-wrap { height: 260vh; position: relative; background: var(--paper); }
.converge-stage {
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.link-stack { position: relative; height: clamp(260px, 40vh, 380px); max-width: 40rem; margin-inline: auto; width: 100%; }
.link-card {
  position: absolute;
  left: 0; right: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  padding: var(--s-3) var(--s-4);
  display: flex;
  gap: var(--s-3);
  align-items: center;
  box-shadow: var(--shadow-1);
  will-change: transform, opacity;
}
.link-card .lc-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gray-light); flex-shrink: 0; }
.link-card .lc-line { height: 8px; border-radius: 4px; background: var(--cream); flex: 1.6; }
.link-card .lc-line.short { flex: 0.7; }
.answer-solo {
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  transform: translateY(-50%) scale(0.96);
  background: var(--accent);
  color: var(--paper);
  border-radius: var(--r-3);
  padding: var(--s-5);
  box-shadow: var(--shadow-on-dark);
  opacity: 0;
  will-change: transform, opacity;
}
.answer-solo .as-tag { font-family: var(--font-mono); font-size: var(--fs-caption); letter-spacing: 0.14em; color: #7FB5B3; text-transform: uppercase; }
.answer-solo .as-main { font-family: var(--font-serif); font-size: clamp(1.25rem, 1rem + 1.4vw, 1.9rem); font-weight: 600; line-height: 1.2; margin-top: var(--s-2); }
.converge-caption { text-align: center; margin-top: var(--s-6); transition: opacity var(--dur-2) var(--ease); }

/* =========================================================================
   CENA DO DESAPARECIMENTO — negócios que somem
   ========================================================================= */
.vanish-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--s-4); }
.vanish-card {
  background: var(--sea-soft);
  border: 1px solid var(--line-on-dark);
  border-radius: var(--r-2);
  padding: var(--s-4);
  transition: opacity 1.4s var(--ease), filter 1.4s var(--ease), transform 1.4s var(--ease);
}
.vanish-card .vc-kind { font-family: var(--font-mono); font-size: var(--fs-caption); color: #7FB5B3; letter-spacing: 0.1em; text-transform: uppercase; }
.vanish-card .vc-name { font-family: var(--font-serif); font-weight: 600; font-size: 1.05rem; margin-top: var(--s-2); color: var(--paper); }
.vanish-card .vc-city { font-size: var(--fs-caption); color: rgba(250,249,246,0.55); margin-top: var(--s-1); }
.vanish-card.gone { opacity: 0.13; filter: blur(2.5px) grayscale(0.8); transform: scale(0.965); }

/* =========================================================================
   CENA DOS SINAIS — convergência para uma empresa
   ========================================================================= */
.signals-scene { position: relative; max-width: 52rem; margin-inline: auto; }
.signals-core {
  background: #fff;
  border: 2px solid var(--accent);
  border-radius: var(--r-3);
  padding: var(--s-5);
  text-align: center;
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow-2);
}
.signal-line {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  background: var(--accent-soft);
  color: var(--accent-dark);
  border-radius: var(--r-pill);
  padding: 0.55rem var(--s-4);
  font-size: var(--fs-small);
  font-weight: 600;
  position: absolute;
  z-index: 1;
  opacity: 0;
  transform: translateY(var(--s-3));
  transition: opacity var(--dur-story) var(--ease-out-expo), transform var(--dur-story) var(--ease-out-expo);
  white-space: nowrap;
}
.signal-line.is-in { opacity: 1; transform: none; }
/* posições dos sinais ao redor do núcleo — ajustadas por breakpoint */
.sig-1 { top: -6%; left: 4%; }
.sig-2 { top: -11%; left: 38%; }
.sig-3 { top: -6%; right: 4%; }
.sig-4 { bottom: -8%; left: 8%; }
.sig-5 { bottom: -13%; left: 40%; }
.sig-6 { bottom: -8%; right: 6%; }
@media (max-width: 640px) {
  .signal-line { position: static; transform: translateY(var(--s-2)); margin-top: var(--s-2); display: inline-flex; }
  .signals-scene .signal-line.is-in { transform: none; }
  .signals-flow { display: flex; flex-wrap: wrap; gap: var(--s-2); justify-content: center; margin-bottom: var(--s-5); position: relative; z-index: 2; }
  .signals-scene .signal-line { position: static !important; }
}

/* =========================================================================
   PIPELINE DO DIAGNÓSTICO — pergunta → lacunas
   ========================================================================= */
.pipeline {
  display: grid;
  gap: var(--s-2);
  counter-reset: pipe;
}
.pipe-step {
  counter-increment: pipe;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--s-4);
  align-items: center;
  padding: var(--s-4) var(--s-5);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-2);
}
.pipe-step .pp-num {
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  color: var(--accent);
}
.pipe-step .pp-name { font-weight: 600; }
.pipe-step .pp-hint { color: var(--gray); font-size: var(--fs-small); }
.pipe-step .pp-arrow { color: var(--gray-light); font-family: var(--font-mono); }
@media (min-width: 768px) {
  .pipeline { grid-template-columns: repeat(6, 1fr); gap: var(--s-3); }
  .pipe-step { grid-template-columns: auto 1fr; grid-template-rows: auto auto; padding: var(--s-4); border-radius: var(--r-2); }
  .pipe-step .pp-arrow { display: none; }
}

/* — Micro-experiência honesta — */
.thought-box { max-width: 40rem; margin-inline: auto; }
.thought-input {
  display: flex;
  gap: var(--s-2);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: var(--s-2);
  box-shadow: var(--shadow-1);
  transition: border-color var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease);
}
.thought-input:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.thought-input input {
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  padding: 0.5rem var(--s-4);
  font-family: var(--font-serif);
  font-size: 1.05rem;
  min-width: 0;
}
.thought-reveal {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur-3) var(--ease), opacity var(--dur-3) var(--ease);
  opacity: 0;
}
.thought-reveal.is-open { max-height: 220px; opacity: 1; }

/* — Buttons — */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1.8rem;
  background: var(--accent);
  color: var(--paper);
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: var(--fs-body);
  letter-spacing: -0.005em;
  transition: background var(--dur-1) var(--ease), transform var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease);
  box-shadow: var(--shadow-1);
}
.btn:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: var(--shadow-2); }
.btn:active { transform: translateY(0) scale(0.99); }
.btn .arrow { transition: transform var(--dur-1) var(--ease); font-family: var(--font-mono); }
.btn:hover .arrow { transform: translateX(3px); }
.btn.lg { padding: 1.1rem 2.3rem; font-size: 1.0625rem; }
.btn.sm { padding: 0.55rem 1.25rem; font-size: var(--fs-small); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.btn.ghost:hover { background: var(--cream); border-color: var(--sand-deep); }
.btn.on-ink { background: var(--paper); color: var(--ink); }
.btn.on-ink:hover { background: #fff; }
.btn.sand { background: var(--signal); color: var(--ink); }
.btn.sand:hover { background: #B7831F; }
.btn[disabled] { opacity: 0.55; cursor: wait; transform: none; }

/* — Cards & pills — */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-3); padding: var(--s-6); }
.card.lift { box-shadow: var(--shadow-1); transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease); }
.card.lift:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.card.on-sea { background: var(--sea-soft); border-color: var(--line-on-dark); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  background: var(--accent-soft);
  color: var(--accent-dark);
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  font-weight: 500;
  letter-spacing: 0.06em;
}
.pill .dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; animation: pulse 1.6s infinite; }
.pill.on-sea { background: rgba(127,181,179,0.14); color: #9FCBC9; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.35} }

/* — Header / footer — */
.site-header { padding-block: var(--s-4); border-bottom: 1px solid var(--line-soft); background: var(--paper); position: sticky; top: 0; z-index: 50; }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; }
.site-header .brand { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--font-serif); font-weight: 700; color: var(--ink); white-space: nowrap; }
.site-header .brand .mark {
  display: inline-grid; place-items: center;
  width: 1.75rem; height: 1.75rem;
  background: var(--ink); color: var(--paper);
  border-radius: 50%;
  font-size: 0.8125rem; font-family: var(--font-mono);
}
@media (max-width: 560px) { .site-header .bar > .small { display: none; } }

.site-footer { padding-block: var(--s-7); border-top: 1px solid var(--line-soft); background: var(--cream); }
.site-footer .row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--s-3); font-size: var(--fs-small); color: var(--gray); }
.site-footer a { color: var(--ink); }

/* — Forms — grandes, claros, táteis — */
.field { display: flex; flex-direction: column; gap: var(--s-2); margin-bottom: var(--s-4); }
.field label { font-size: var(--fs-small); font-weight: 600; }
.field input, .field select {
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  background: #fff;
  transition: border-color var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease);
}
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field .hint { font-size: var(--fs-caption); color: var(--gray-light); }

.check { display: flex; gap: var(--s-3); align-items: flex-start; font-size: var(--fs-small); color: var(--gray); margin-bottom: var(--s-4); }
.check input { margin-top: 0.2rem; accent-color: var(--accent); width: 1rem; height: 1rem; flex-shrink: 0; }
.check a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent-line); }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-block); padding: var(--s-7); box-shadow: var(--shadow-2); }
@media (max-width: 640px) { .form-card { padding: var(--s-5); border-radius: var(--r-3); } }

.err-box { background: #F6E3E0; color: #8C2F1F; padding: var(--s-3) var(--s-4); border-radius: var(--r-1); margin-top: var(--s-4); font-size: var(--fs-small); display: none; }
.err-box.active { display: block; }
.ok-box { background: var(--accent-soft); color: var(--accent-dark); padding: var(--s-5); border-radius: var(--r-2); margin-top: var(--s-4); font-size: var(--fs-small); display: none; line-height: 1.6; }
.ok-box.active { display: block; }

/* — Steps / timeline — */
.steps { counter-reset: step; display: grid; gap: var(--s-5); }
.step { display: grid; grid-template-columns: auto 1fr; gap: var(--s-4); align-items: start; }
.step .num {
  counter-increment: step;
  display: inline-grid; place-items: center;
  width: 2.5rem; height: 2.5rem;
  border: 1px solid var(--accent-line);
  color: var(--accent);
  border-radius: 50%;
  font-family: var(--font-mono); font-size: var(--fs-caption); font-weight: 600;
}
.step .num::before { content: counter(step, decimal-leading-zero); }
.step h4 { margin-bottom: var(--s-2); }
.step p { color: var(--gray); font-size: var(--fs-small); margin: 0; }

/* — FAQ — */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer;
  padding: var(--s-5) 0;
  display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-4);
  font-family: var(--font-serif); font-size: var(--fs-h4); font-weight: 600; letter-spacing: -0.01em;
  transition: color var(--dur-1) var(--ease);
}
.faq-item summary:hover { color: var(--accent); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .signal { color: var(--accent); font-family: var(--font-mono); font-weight: 400; transition: transform var(--dur-2) var(--ease); }
.faq-item[open] summary .signal { transform: rotate(45deg); }
.faq-item .answer { padding-bottom: var(--s-5); color: var(--gray); max-width: 62ch; }
.faq-item .answer a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent-line); }

/* — Price — */
.price-tag { font-family: var(--font-serif); font-weight: 700; font-size: var(--fs-stat); letter-spacing: -0.03em; line-height: 1; color: var(--ink); }
.chapter-accent .price-tag, .chapter-sea .price-tag { color: var(--paper); }
.price-note { font-size: var(--fs-small); color: var(--gray); }

/* — Divider — */
.ink-rule { position: relative; padding-bottom: var(--s-4); }
.ink-rule::after { content: ''; position: absolute; left: 0; bottom: 0; width: 3rem; height: 3px; background: var(--accent); border-radius: 2px; }

/* — Stats — */
.stat-big { font-family: var(--font-serif); font-weight: 700; font-size: 2.75rem; letter-spacing: -0.025em; line-height: 1; }

/* — Utilidades — */
.mx-auto { margin-inline: auto; }
.hidden { display: none !important; }

/* — Reduced motion: a história continua sem animação — */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
  .ask-caret { animation: none; }
}
