/* ============================================================
   MindLabs — Landing Page v4 "A Travessia"
   O céu é o palco: drench no hero e no encerramento.
   Corpo em bandas com fronteiras FÍSICAS: ondas (só na virada),
   painel que atravessa a fronteira (MindFlow→casos), cantos de
   papel arredondados (casos fecham, lilás abre), caderno que
   nasce dentro da banda (FAQ). Dois personagens: o cérebro-nuvem
   (bookends) e o sol (miolo: sol do painel, sol do horizonte,
   grifo-sol das vitórias). Verde existe em UM lugar: o wa-float.
   Display: Gambetta · Texto/UI: Switzer
   Motion: IO + scroll-driven animations. Zero scroll listener.
   ============================================================ */

/* ---------- Fontes ---------- */
@font-face {
  font-family: "Gambetta";
  src: url("../assets/fonts/gambetta-var.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Gambetta";
  src: url("../assets/fonts/gambetta-var-italic.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Switzer";
  src: url("../assets/fonts/switzer-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Switzer";
  src: url("../assets/fonts/switzer-var-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
/* fallbacks com métrica ajustada: swap sem salto de layout */
@font-face {
  font-family: "Gambetta-fb";
  src: local("Georgia");
  size-adjust: 105%;
  ascent-override: 90%;
  descent-override: 22%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Switzer-fb";
  src: local("Arial");
  size-adjust: 97%;
  ascent-override: 96%;
  descent-override: 24%;
  line-gap-override: 0%;
}

/* ---------- Tokens ---------- */
:root {
  /* céu (hero + encerramento) */
  --sky-deep: #1C55A8;
  --sky-mid:  #3D8FE4;
  --sky-brand:#4D9FEC;
  --sky-soft: #A9D2F7;

  /* corpo claro */
  --paper:    #FEFEFD;
  --paper-dim:#F4F8FC;

  /* véus de banda */
  --sky-050:   #E6F2FB;
  --sun-050:   #FFF5DC;
  --lilac-050: #F3F0FC;

  /* tinta (quase-preto frio, não navy) */
  --ink:      #1B2530;
  --ink-soft: #51606F;
  --ink-faint:#5D6E80;

  /* acentos */
  --sun:      #FFCB3D;
  --sun-soft: #FFE9AE;
  --link:     #2367B8;

  /* algodão-doce */
  --rose:     #FFDCE4;
  --mint:     #D3F1E0;
  --lilac:    #E5DEFA;

  /* whatsapp: exclusivo do botão flutuante */
  --wa:       #12833E;
  --wa-deep:  #0E6B32;

  /* escala de display: 3 degraus (xl = picos narrativos) */
  --display-xl: clamp(2.7rem, 5.8vw, 4.4rem);
  --display-lg: clamp(2.1rem, 4.6vw, 3.4rem);
  --display-md: clamp(1.9rem, 3.6vw, 2.7rem);

  --focus: var(--link);
  --r-card: 22px;
  --r-pill: 999px;
  --r-band: clamp(28px, 5vw, 56px);
  --shadow-soft: 0 14px 44px -14px rgb(27 37 48 / .16), 0 2px 8px rgb(27 37 48 / .05);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-pop: cubic-bezier(.34, 1.56, .64, 1);
  --display: "Gambetta", "Gambetta-fb", Georgia, serif;
  --sans: "Switzer", "Switzer-fb", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1180px;
  --topbar-h: 86px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 450;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
ul, ol, dl { padding: 0; }
::selection { background: var(--sun-soft); color: var(--ink); }
.nowrap { white-space: nowrap; }

/* foco por contexto: azul profundo no claro, anel de nuvem no céu */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}
.hero :focus-visible,
.outro :focus-visible,
.wa-float:focus-visible {
  outline-color: #fff;
  box-shadow: 0 0 0 7px rgb(12 42 84 / .55);
}
main:focus-visible { outline: none; box-shadow: none; }

[id] { scroll-margin-top: calc(var(--topbar-h) + 14px); }

.skip-link {
  position: absolute; left: -999px; top: 12px; z-index: 100;
  background: var(--ink); color: #fff;
  padding: .6rem 1.1rem; border-radius: var(--r-pill);
}
.skip-link:focus-visible { left: 12px; outline-color: #fff; box-shadow: 0 0 0 7px rgb(12 42 84 / .55); }

.container { width: min(var(--container), 100% - 3rem); margin-inline: auto; }

h1, h2 {
  font-family: var(--display);
  font-weight: 560;
  line-height: 1.06;
  letter-spacing: -.01em;
  text-wrap: balance;
}
h1 { font-size: clamp(3.1rem, 7.6vw, 6.4rem); }
h2 { font-size: var(--display-lg); }
h1 em, h2 em { font-style: italic; font-weight: 520; line-height: 1.12; padding-bottom: .05em; }
p { max-width: 66ch; }

.kicker {
  font-size: .78rem;
  font-weight: 650;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--link);
  margin-bottom: .9rem;
}

/* pictogramas autorais "linha de nuvem" */
.glyph {
  width: 30px; height: 30px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .88;
}

/* ============================================================
   CTAs — hierarquia discreta
   1. .wa-float  : ÚNICO elemento verde do site
   2. .btn-quiet : pílula branca/tinta, hero e encerramento
   3. .link-cta  : link com seta nas seções
   ============================================================ */

.wa-float {
  position: fixed;
  right: clamp(14px, 2.4vw, 28px);
  bottom: clamp(14px, 2.4vw, 28px);
  z-index: 60;
  width: 58px; height: 58px;
  display: grid; place-items: center;
  background: var(--wa);
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 10px 30px -8px rgb(14 107 50 / .5);
  transition: transform .25s var(--ease), background-color .25s var(--ease);
  opacity: 0;
  animation: waIn .6s var(--ease) 1.4s forwards, waBreathe 16s ease-in-out 9s infinite;
}
.wa-float:hover { background: var(--wa-deep); transform: translateY(-3px) scale(1.04); }
.wa-float:active { transform: scale(.96); }
.wa-float svg { width: 30px; height: 30px; }
.wa-float::after {
  content: "Chamar no WhatsApp";
  position: absolute;
  right: calc(100% + 12px);
  top: 50%; translate: 0 -50%;
  background: var(--ink); color: #fff;
  font-size: .82rem; font-weight: 600;
  padding: .42rem .8rem; border-radius: 10px;
  white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity .25s var(--ease), translate .25s var(--ease);
}
.wa-float:hover::after, .wa-float:focus-visible::after { opacity: 1; translate: -4px -50%; }
@keyframes waIn { from { opacity: 0; translate: 0 16px; } to { opacity: 1; translate: 0 0; } }
/* uma respiração rara, no espírito dos brilhos do céu */
@keyframes waBreathe {
  0%, 8%, 100% { scale: 1; }
  4% { scale: 1.045; }
}

.btn-quiet {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  font-size: 1.04rem;
  text-decoration: none;
  padding: .92rem 1.65rem;
  border-radius: var(--r-pill);
  box-shadow: 0 8px 30px -10px rgb(16 42 80 / .35);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  white-space: nowrap;
}
.btn-quiet .arr { transition: translate .25s var(--ease); }
.btn-quiet:hover { transform: translateY(-2px); box-shadow: 0 14px 38px -12px rgb(16 42 80 / .45); }
.btn-quiet:hover .arr { translate: 3px 0; }
.btn-quiet:active { transform: scale(.98); }

.cta-note {
  margin-top: .9rem;
  font-size: .92rem;
  font-weight: 560;
  color: #fff;
  text-shadow: 0 1px 3px rgb(12 42 84 / .65), 0 0 14px rgb(12 42 84 / .3);
  text-align: center;
}

.link-cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--ink);
  font-weight: 620;
  font-size: 1.05rem;
  text-decoration: none;
  padding: .5rem 0 .22rem;
  margin-block: -.4rem;
  border-bottom: 3px solid var(--sun);
  transition: border-color .25s var(--ease);
}
.link-cta .arr { transition: translate .25s var(--ease); }
.link-cta:hover { border-color: var(--ink); }
.link-cta:hover .arr { translate: 4px 0; }
.arr { font-family: var(--sans); }

/* ============================================================
   Topbar — fixa o scroll inteiro, dois estados coreografados.
   ============================================================ */
.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--topbar-h);
}
.topbar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--paper);
  border-bottom: 1px solid #E8EFF6;
  box-shadow: 0 12px 32px -20px rgb(27 37 48 / .25);
  opacity: 0;
  translate: 0 -8px;
  transition: opacity .3s var(--ease), translate .35s var(--ease);
  pointer-events: none;
}
.topbar.is-solid::before { opacity: 1; translate: 0 0; }

/* linha de leitura: o sol percorre a base da barra conforme o scroll */
@supports (animation-timeline: scroll()) {
  .topbar::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -2px;
    height: 2px;
    background: var(--sun);
    transform-origin: 0 50%;
    scale: 0 1;
    opacity: 0;
    transition: opacity .3s var(--ease);
    animation: readProgress linear both;
    animation-timeline: scroll();
    pointer-events: none;
  }
  .topbar.is-solid::after { opacity: 1; }
  @keyframes readProgress { from { scale: 0 1; } to { scale: 1 1; } }
}

.topbar .container {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand { position: relative; display: inline-flex; align-items: center; }
.brand img { height: 54px; width: auto; transition: opacity .3s var(--ease), scale .35s var(--ease); }
.brand .wm-blue { position: absolute; inset: 0; height: 54px; opacity: 0; scale: .97; }
.topbar.is-solid .wm-white { opacity: 0; }
.topbar.is-solid .wm-blue { opacity: 1; scale: 1; }

.topnav { display: flex; gap: clamp(1.1rem, 2.6vw, 2.2rem); }
.topnav a {
  color: #fff;
  text-decoration: none;
  font-weight: 560;
  font-size: .99rem;
  opacity: .92;
  padding-bottom: .18rem;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 2px;
  text-shadow: 0 1px 2px rgb(12 42 84 / .35);
  transition: opacity .2s var(--ease), color .25s var(--ease), background-size .35s var(--ease);
}
/* a troca de tinta desce em cascata pela nav */
.topnav a:nth-child(2) { transition-delay: 0s, .05s, 0s; }
.topnav a:nth-child(3) { transition-delay: 0s, .1s, 0s; }
.topnav a:nth-child(4) { transition-delay: 0s, .15s, 0s; }
.topnav a:hover, .topnav a:focus-visible { opacity: 1; background-size: 100% 2px; }
html.js .topbar:not(.is-solid) :focus-visible { outline-color: #fff; box-shadow: 0 0 0 7px rgb(12 42 84 / .55); }
.topbar.is-solid .topnav a { color: var(--ink); text-shadow: none; }
.topbar.is-solid .topnav a:hover { color: var(--link); }

/* sem JS: barra sempre sólida */
html:not(.js) .topbar::before { opacity: 1; translate: 0 0; }
html:not(.js) .brand .wm-white { opacity: 0; }
html:not(.js) .brand .wm-blue { opacity: 1; scale: 1; }
html:not(.js) .topnav a { color: var(--ink); text-shadow: none; }

.topbar-sentinel {
  position: absolute;
  top: 24%;
  left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

/* grão sutil só nas seções de céu (mata banding do gradiente) */
.sky-grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px;
}

/* ============================================================
   1 · HERO — o céu (full-bleed)
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  overflow: clip;
  background:
    linear-gradient(rgb(12 42 84 / .22), transparent 140px),
    linear-gradient(180deg,
      var(--sky-deep) 0%,
      #2E7CD6 26%,
      var(--sky-brand) 52%,
      var(--sky-soft) 78%,
      #E4F1FC 92%,
      var(--paper) 100%);
  display: grid;
  place-items: center;
  padding: clamp(7rem, 16vh, 9rem) 1.5rem clamp(15rem, 30vh, 20rem);
  text-align: center;
  color: #fff;
}
.hero::before {
  content: "";
  position: absolute;
  top: -18%; right: -12%;
  width: 56vw; height: 56vw;
  max-width: 780px; max-height: 780px;
  background: radial-gradient(closest-side, rgb(255 214 110 / .55), rgb(255 203 61 / .18) 46%, transparent 72%);
  pointer-events: none;
}
/* palco do texto: garante AA do sub/kicker em qualquer viewport */
.hero::after {
  content: "";
  position: absolute;
  inset: 0 0 30%;
  background: radial-gradient(56% 64% at 50% 42%, rgb(14 44 88 / .34), transparent 76%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 7;
  display: grid;
  justify-items: center;
  gap: 1.5rem;
  max-width: 58rem;
}
.hero-kicker {
  font-weight: 640;
  font-size: .85rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .96;
  text-shadow: 0 1px 2px rgb(12 42 84 / .4);
}
.hero h1 { color: #fff; text-shadow: 0 2px 3px rgb(12 42 84 / .25); }
.u-swash { position: relative; font-style: italic; font-weight: 520; }
.u-swash svg {
  position: absolute;
  left: -2%; right: -2%; bottom: -.14em;
  width: 104%; height: .34em;
  overflow: visible;
}
.u-swash path {
  fill: none;
  stroke: var(--sun);
  stroke-width: 5;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  stroke-dasharray: 320;
  stroke-dashoffset: 320;
  animation: swash 0.9s var(--ease) 1s forwards;
}
@keyframes swash { to { stroke-dashoffset: 0; } }
.hero-sub {
  font-size: 1.28rem;
  font-weight: 540;
  line-height: 1.55;
  max-width: 35rem;
  text-shadow: 0 1px 2px rgb(12 42 84 / .38);
}
.hero-actions { margin-top: .6rem; display: grid; justify-items: center; }
/* palco próprio da nota: AA mesmo sobre nuvem branca (medido 7.4:1) */
.hero .cta-note {
  background: rgb(12 42 84 / .78);
  padding: .35rem 1.05rem;
  border-radius: var(--r-pill);
  width: fit-content;
  margin-inline: auto;
}

/* o personagem: parallax no wrapper, bob no filho */
.hero-brain-wrap {
  position: absolute;
  z-index: 4;
  left: clamp(2%, 8vw, 12%);
  top: 20%;
  width: clamp(130px, 17vw, 250px);
  pointer-events: none;
  transition: transform 1.1s var(--ease);
  will-change: transform;
}
.hero-brain {
  width: 100%;
  filter: drop-shadow(0 30px 44px rgb(16 48 96 / .28));
  animation: bob 9s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { translate: 0 0; rotate: -2deg; }
  50% { translate: 0 -16px; rotate: 1.5deg; }
}
/* nuvens distantes cruzando devagar (rotas fora do texto) */
.drift {
  position: absolute;
  z-index: 3;
  opacity: .5;
  pointer-events: none;
}
.drift.d1 { top: 15%; width: 130px; animation: cross 95s linear infinite; }
.drift.d2 { top: 60%; width: 95px; opacity: .3; animation: cross 140s linear 12s infinite; }
@keyframes cross {
  from { transform: translateX(-18vw); }
  to { transform: translateX(118vw); }
}
/* o aviãozinho de papel: a mensagem que viaja (evento raro, como os brilhos) */
.hero-plane {
  position: absolute;
  z-index: 3;
  top: 21%;
  left: 0;
  width: clamp(42px, 4.6vw, 60px);
  opacity: 0;
  rotate: 6deg;
  pointer-events: none;
  animation: planeCross 70s linear 6s infinite;
  filter: drop-shadow(0 10px 14px rgb(16 48 96 / .22));
}
@keyframes planeCross {
  0%   { translate: -12vw 0; opacity: 0; }
  2%   { opacity: .95; }
  40%  { translate: 48vw -5vh; opacity: .95; }
  46%  { translate: 57vw -5.8vh; opacity: 0; }
  100% { translate: 57vw -5.8vh; opacity: 0; }
}
/* brilhos raros no céu */
.spark {
  position: absolute;
  z-index: 2;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 12px 2px rgb(255 255 255 / .55);
  opacity: 0;
  transform: scale(.4);
  pointer-events: none;
  animation: twinkle 9s ease-in-out infinite;
}
.spark.s1 { top: 24%; left: 26%; animation-delay: 1.5s; }
.spark.s2 { top: 13%; left: 64%; width: 4px; height: 4px; animation-delay: 4.2s; animation-duration: 11s; }
.spark.s3 { top: 33%; left: 84%; width: 3px; height: 3px; animation-delay: 7s; animation-duration: 10s; }
@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(.4); }
  6% { opacity: .9; transform: scale(1); }
  12% { opacity: 0; transform: scale(.4); }
}
/* dobras de nuvem na base: duas camadas respirando (com sangria) */
.fold {
  position: absolute;
  inset: auto -52px -12px;
  z-index: 6;
  pointer-events: none;
}
.fold img { width: 100%; height: auto; }
.fold .back {
  position: absolute;
  inset: auto 0 8%;
  transform: scaleX(-1);
  opacity: .85;
  animation: breatheB 18s ease-in-out infinite;
}
.fold .front { position: relative; animation: breatheF 14s ease-in-out infinite; }
@keyframes breatheF { 0%,100% { translate: 0 0; } 50% { translate: -14px -8px; } }
@keyframes breatheB { 0%,100% { translate: 0 0; } 50% { translate: 18px 6px; } }

/* a travessia: o primeiro scroll responde (só onde há view-timeline) */
@supports (animation-timeline: view()) {
  .hero-inner {
    animation: heroSink linear both;
    animation-timeline: view();
    animation-range: exit 0% exit 85%;
  }
  @keyframes heroSink {
    to { translate: 0 9vh; opacity: .25; }
  }
  .hero-brain-wrap {
    animation: heroLift linear both;
    animation-timeline: view();
    animation-range: exit 0% exit 100%;
  }
  @keyframes heroLift {
    to { translate: 0 -14vh; }
  }
  .hero .fold {
    animation: foldDrift linear both;
    animation-timeline: view();
    animation-range: exit 0% exit 100%;
  }
  @keyframes foldDrift {
    to { translate: 0 10vh; }
  }
}

/* ============================================================
   2 · A DOR — papel com bloom rose, grifos teatrais
   ============================================================ */
.pain {
  padding: clamp(6rem, 14vh, 9.5rem) 0 clamp(5rem, 11vh, 7.5rem);
  background:
    radial-gradient(52% 48% at 78% 22%, rgb(255 220 228 / .6), transparent 70%),
    var(--paper);
}
.pain-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.pain-head h2 { margin-bottom: 1.2rem; }
.pain-head p { color: var(--ink-soft); font-size: 1.08rem; }
.pain-list { display: grid; gap: 2.1rem; margin-top: .4rem; justify-items: start; }
.pain-line {
  font-family: var(--display);
  font-weight: 540;
  font-size: clamp(1.6rem, 2.9vw, 2.3rem);
  line-height: 1.3;
  max-width: 24ch;
}
.pain-line:nth-child(1) { rotate: -.6deg; }
.pain-line:nth-child(2) { rotate: .5deg; margin-left: clamp(0px, 4vw, 3.2rem); }
.pain-line:nth-child(3) { rotate: -.4deg; }
/* o marca-texto passa numa linha de cada vez, como uma mão grifando */
.hl {
  background-image: linear-gradient(transparent 58%, var(--hl-c) 58%, var(--hl-c) 94%, transparent 94%);
  background-repeat: no-repeat;
  background-size: 0% 100%;
  transition: background-size 1.05s var(--ease);
}
.is-in .hl, .hl.is-in { background-size: 100% 100%; }
.pain-list .pain-line:nth-child(1) .hl { transition-delay: .25s; }
.pain-list .pain-line:nth-child(2) .hl { transition-delay: .95s; }
.pain-list .pain-line:nth-child(3) .hl { transition-delay: 1.65s; }
.hl-rose { --hl-c: var(--rose); }
.hl-sun { --hl-c: var(--sun-soft); }
.hl-lilac { --hl-c: var(--lilac); }
/* sem JS não há .is-in: grifos nascem prontos */
html:not(.js) .hl { background-size: 100% 100%; }
/* a mão grifa no ritmo do olho quando há view-timeline */
@supports (animation-timeline: view()) {
  .js .pain-line .hl {
    transition: none;
    animation: grifar linear both;
    animation-timeline: view();
  }
  .js .pain-line:nth-child(1) .hl { animation-range: entry 40% cover 52%; }
  .js .pain-line:nth-child(2) .hl { animation-range: entry 46% cover 62%; }
  .js .pain-line:nth-child(3) .hl { animation-range: entry 52% cover 72%; }
  @keyframes grifar {
    from { background-size: 0% 100%; }
    to { background-size: 100% 100%; }
  }
}
/* o fantasma da conversa: quem some depois do "quanto custa?" */
.pain-ghost {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin-top: .6rem;
}
.pain-bubble { width: 60px; flex: none; overflow: visible; }
.pain-bubble path {
  fill: #fff;
  stroke: rgb(27 37 48 / .14);
  stroke-width: 2;
}
.pain-bubble .dot { fill: var(--ink-faint); animation: dotTyping 3.6s ease-in-out infinite; }
.pain-bubble .d2 { animation-delay: .25s; }
.pain-bubble .d3 { animation-delay: .5s; }
@keyframes dotTyping {
  0%, 55%, 100% { opacity: .2; }
  15%, 35% { opacity: .95; }
}
.pain-ghost-label {
  font-size: .84rem;
  font-weight: 500;
  font-style: italic;
  color: var(--ink-faint);
}
.pain-close {
  margin-top: clamp(1.6rem, 4vh, 2.6rem);
  color: var(--ink-soft);
  font-size: 1.08rem;
  max-width: 52ch;
}
.pain-close strong { color: var(--ink); font-weight: 640; }

/* ============================================================
   3 · A VIRADA — banda de céu diluído com ondas vetoriais
   (vocabulário de onda e nuvem vetorial EXCLUSIVO deste momento)
   ============================================================ */
.turn {
  position: relative;
  background: linear-gradient(180deg, #EDF6FD 0%, var(--sky-050) 40%, #DDEDFA 100%);
  padding: clamp(7rem, 16vh, 11rem) 0;
  overflow: clip;
}
.turn .container { position: relative; z-index: 2; }
.turn-wave {
  position: absolute;
  left: 0; right: 0;
  width: 100%;
  height: clamp(36px, 6vw, 80px);
  z-index: 3;
  pointer-events: none;
}
.turn-wave.top { top: -1px; }
.turn-wave.bottom { bottom: -1px; }
.turn-wave path { fill: var(--paper); }
/* nuvens vetoriais em duotone: sombra céu-soft + corpo branco */
.turn-cloud { position: absolute; z-index: 1; pointer-events: none; }
.turn-cloud svg { width: 100%; height: auto; overflow: visible; }
.turn-cloud .shade { fill: var(--sky-soft); opacity: .55; translate: 10px 12px; }
.turn-cloud .body { fill: #fff; }
.turn-cloud--a {
  right: clamp(-40px, -2vw, 0px);
  top: 12%;
  width: clamp(150px, 20vw, 300px);
  animation: bob 16s ease-in-out infinite;
}
.turn-cloud--b {
  left: 2%;
  bottom: 16%;
  width: clamp(140px, 16vw, 240px);
  opacity: .85;
}

.stair {
  position: relative;
  z-index: 2;
  font-family: var(--display);
  font-weight: 560;
  font-size: clamp(2.3rem, 6.2vw, 4.7rem);
  line-height: 1.12;
  letter-spacing: -.01em;
  display: grid;
  gap: .1em;
  margin-bottom: clamp(2.2rem, 5vh, 3.4rem);
}
.stair span { display: block; }
.stair .s2 { margin-left: clamp(1.5rem, 7vw, 6rem); }
.stair .s3 { margin-left: clamp(3rem, 14vw, 12rem); }
.stair em { font-style: italic; color: var(--link); }
/* cada degrau desliza da esquerda; com view-timeline, o scroll rege */
.js .stair .reveal {
  translate: -2.4rem .5rem;
  transition-duration: .95s;
  transition-delay: calc(var(--stagger, 0s) * 2.4);
}
.js .stair .s2.reveal { translate: -3.6rem .5rem; }
.js .stair .s3.reveal { translate: -5rem .5rem; }
.js .stair .reveal.is-in { translate: 0 0; }
@supports (animation-timeline: view()) {
  .js .stair .reveal {
    transition: none;
    opacity: 1;
    translate: 0 0;
    --from: -2.4rem;
    animation: stairIn linear both;
    animation-timeline: view();
    animation-range: entry 12% cover 38%;
  }
  .js .stair .s2.reveal { --from: -3.6rem; animation-range: entry 20% cover 46%; }
  .js .stair .s3.reveal { --from: -5rem; animation-range: entry 28% cover 54%; }
  @keyframes stairIn {
    from { opacity: 0; translate: var(--from) .5rem; }
    to { opacity: 1; translate: 0 0; }
  }
}
.turn-copy {
  position: relative;
  z-index: 2;
  margin-left: auto;
  max-width: 34rem;
  display: grid;
  gap: 1rem;
  color: var(--ink-soft);
}
.turn-copy p { font-size: 1.12rem; }
.turn-copy p:first-child { font-size: 1.24rem; font-weight: 500; color: var(--ink); }
.turn-copy .link-cta { justify-self: start; margin-top: .8rem; color: var(--ink); }

/* ============================================================
   4 · MINDFLOW — o produto dentro de um painel craft
   O painel ATRAVESSA a fronteira e mergulha na banda creme.
   ============================================================ */
.flow {
  position: relative;
  z-index: 2;
  padding: clamp(3.5rem, 8vh, 5.5rem) 0 0;
  background: transparent;
}
.flow-panel {
  position: relative;
  width: min(1340px, 100% - 1.6rem);
  margin-inline: auto;
  margin-bottom: calc(-1 * clamp(3.5rem, 8vw, 6rem));
  border-radius: clamp(26px, 4vw, 44px);
  border: 1px solid #E3EDF6;
  padding: clamp(3rem, 7vh, 5rem) 0 clamp(3.4rem, 8vh, 5.6rem);
  overflow: hidden;
  background:
    radial-gradient(50% 36% at 8% 60%, rgb(169 210 247 / .22), transparent 70%),
    var(--paper-dim);
  box-shadow: 0 30px 60px -30px rgb(27 37 48 / .18);
}
/* o sol espreita do canto do painel: o par quente do azul */
.flow-sun {
  position: absolute;
  top: 0; right: 0;
  width: clamp(110px, 13vw, 180px);
  height: auto;
  pointer-events: none;
}
.flow-sun circle { fill: var(--sun); opacity: .9; }
.flow-sun .rays line {
  stroke: var(--sun);
  stroke-width: 5;
  stroke-linecap: round;
  opacity: .75;
}
.flow-head { max-width: 54rem; margin-bottom: clamp(3rem, 7vh, 4.5rem); display: grid; gap: 1.05rem; }
.flow-head p { max-width: 46rem; }
.flow-head h2 { font-size: var(--display-xl); letter-spacing: -.018em; }
.flow-head p { color: var(--ink-soft); font-size: 1.1rem; }
.flow-head .kicker { margin-bottom: 0; }
.flow-head .mf-name {
  font-family: var(--display);
  font-style: italic;
  font-weight: 640;
  font-size: 1.14em;
  color: var(--ink);
}

.path-wrap { position: relative; max-width: 56rem; margin-inline: auto; }
.path-wrap::before {
  content: "";
  position: absolute;
  top: 8px; bottom: 8px;
  left: 50%;
  border-left: 3px dashed var(--sky-brand);
  opacity: .55;
}
.path-cover {
  position: absolute;
  left: calc(50% - 4px);
  width: 8px;
  top: 0; bottom: 0;
  background: var(--paper-dim);
  transform-origin: bottom;
}
@supports (animation-timeline: view()) {
  .path-cover {
    animation: uncover linear both;
    animation-timeline: view();
    animation-range: entry 10% exit 60%;
  }
  @keyframes uncover { from { scale: 1 1; } to { scale: 1 0; } }
}
@supports not (animation-timeline: view()) {
  .path-cover { transition: scale 1.6s var(--ease); scale: 1 1; }
  .path-wrap.is-in .path-cover { scale: 1 0; }
  html:not(.js) .path-cover { display: none; }
}
/* a nuvenzinha que puxa o traço e POUSA no destino */
.path-rider {
  position: absolute;
  top: 8px; bottom: 8px;
  left: 50%;
  width: 0;
  z-index: 2;
  pointer-events: none;
}
.path-rider::before {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  translate: -50% 55%;
  width: 30px; height: 17px;
  background: #fff;
  border-radius: 999px;
  box-shadow: -9px 4px 0 -3px #fff, 10px 4px 0 -4px #fff, 0 8px 18px -6px rgb(27 37 48 / .28);
}
@supports (animation-timeline: view()) {
  .path-rider {
    transform: translateY(-100%);
    animation: ride linear both;
    animation-timeline: view();
    animation-range: entry 10% exit 60%;
  }
  @keyframes ride {
    from { transform: translateY(-100%); }
    92% { transform: translateY(-1.5%); }
    100% { transform: translateY(0); }
  }
  /* cada parada acende quando o card chega à linha */
  .steps li::before {
    animation: dotPop linear both;
    animation-timeline: view();
    animation-range: entry 30% entry 80%;
  }
  @keyframes dotPop {
    from { scale: .45; opacity: .25; }
    70% { scale: 1.16; opacity: 1; }
    to { scale: 1; opacity: 1; }
  }
}
@supports not (animation-timeline: view()) {
  .path-rider { display: none; }
}

.steps { list-style: none; display: grid; gap: clamp(1.6rem, 4vh, 2.6rem); }
.steps li {
  position: relative;
  width: calc(50% - 3.2rem);
  padding: 1.3rem 1.45rem 1.35rem;
  background: #fff;
  border-radius: var(--r-card);
  box-shadow: var(--shadow-soft);
}
.steps li:nth-child(odd) { margin-left: auto; }
.steps li:nth-child(even) { text-align: right; }
.steps li::before {
  content: "";
  position: absolute;
  top: 1.3rem;
  width: 26px; height: 16px;
  background: var(--dot, var(--sun));
  border-radius: 999px;
  box-shadow: -8px 4px 0 -2px var(--dot, var(--sun)), 9px 4px 0 -3px var(--dot, var(--sun));
}
.steps li:nth-child(odd)::before { left: -3.2rem; translate: -50% 0; }
.steps li:nth-child(even)::before { right: -3.2rem; translate: 50% 0; }
.steps li:nth-child(6n+1) { --dot: var(--sun); }
.steps li:nth-child(6n+2) { --dot: var(--rose); }
.steps li:nth-child(6n+3) { --dot: var(--mint); }
.steps li:nth-child(6n+4) { --dot: var(--lilac); }
.steps li:nth-child(6n+5) { --dot: var(--sky-soft); }
.steps li:nth-child(6n)   { --dot: var(--sun-soft); }
.steps .glyph { margin-bottom: .6rem; }
.steps li:nth-child(even) .glyph { margin-left: auto; }
.steps b {
  display: block;
  font-family: var(--display);
  font-weight: 620;
  font-size: 1.22rem;
  letter-spacing: -.01em;
  margin-bottom: .2rem;
}
.steps p { color: var(--ink-soft); font-size: .95rem; line-height: 1.55; max-width: none; }
/* zíper: cada card entra do seu lado da linha; scroll rege quando dá */
.js .steps li.reveal { translate: 34px 12px; }
.js .steps li:nth-child(even).reveal { translate: -34px 12px; }
.js .steps li.reveal.is-in { translate: 0 0; }
@supports (animation-timeline: view()) {
  .js .steps li.reveal {
    transition: none;
    opacity: 1;
    translate: 0 0;
    --sx: 34px;
    animation: stepIn linear both;
    animation-timeline: view();
    animation-range: entry 5% entry 60%;
  }
  .js .steps li:nth-child(even).reveal { --sx: -34px; }
  @keyframes stepIn {
    from { opacity: 0; translate: var(--sx) 12px; }
    to { opacity: 1; translate: 0 0; }
  }
}

.ready {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 1.3rem;
  margin: clamp(3.5rem, 8vh, 5.5rem) 0 0;
}
.ready article {
  border-radius: 26px;
  padding: 1.8rem 1.7rem 2rem;
}
.ready article:nth-child(1) { background: var(--sun-soft); }
.ready article:nth-child(2) { background: var(--mint); margin-top: 1.2rem; }
.ready article:nth-child(3) { background: var(--lilac); margin-top: 2.4rem; }
.ready .glyph { margin-bottom: .8rem; width: 32px; height: 32px; }
.ready h3 { font-weight: 700; font-size: 1.16rem; margin-bottom: .5rem; }
.ready p { color: var(--ink); opacity: .78; font-size: .99rem; }
/* nascem juntos e sobem cada um ao seu degrau */
.js .ready article.reveal { translate: 0 32px; }
.js .ready article.reveal.is-in { translate: 0 0; }

.flow-sign {
  margin-top: clamp(2.6rem, 6vh, 4rem);
  font-family: var(--display);
  font-style: italic;
  font-weight: 540;
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  color: var(--ink);
}
.flow .link-cta { margin-top: 1.2rem; }

/* ============================================================
   5 · CASOS — mural de recados na banda creme de sol
   A banda recebe o painel de cima e fecha em cantos de papel.
   ============================================================ */
.cases {
  position: relative;
  z-index: 1;
  padding: calc(clamp(5.5rem, 12vh, 8.5rem) + clamp(3.5rem, 8vw, 6rem)) 0 clamp(5.5rem, 12vh, 8.5rem);
  overflow: clip;
  background: var(--sun-050);
  border-radius: 0 0 var(--r-band) var(--r-band);
}
.cases-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(2.6rem, 6vh, 3.8rem);
}
.cases-head h2 { font-size: var(--display-xl); letter-spacing: -.018em; }
.cases-head p { color: var(--ink-soft); max-width: 34ch; padding-top: .9rem; }
.case-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  align-items: stretch;
}
.case {
  position: relative;
  display: grid;
  gap: 1.6rem;
  align-content: space-between;
  border-radius: 22px 22px 22px 6px;
  padding: 2.4rem 1.9rem 2rem;
  margin: 0;
  box-shadow: var(--shadow-soft);
  rotate: var(--tilt, 0deg);
  transition: transform .5s var(--ease), rotate .5s var(--ease);
}
/* a fita que prega o recado no mural */
.case::before {
  content: "";
  position: absolute;
  top: -13px;
  left: 50%;
  width: 96px;
  height: 27px;
  translate: -50%;
  rotate: var(--tape-tilt, 2deg);
  background: linear-gradient(rgb(255 255 255 / .6), rgb(255 255 255 / .42));
  box-shadow: 0 1px 3px rgb(27 37 48 / .1);
  border-radius: 3px;
}
.case::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  box-shadow: 0 26px 48px -18px rgb(27 37 48 / .25);
  opacity: 0;
  transition: opacity .5s var(--ease);
  pointer-events: none;
}
.case:nth-child(1) { background: var(--rose); --tilt: -1deg; --tape-tilt: 2.5deg; }
.case:nth-child(2) { background: #fff; --tilt: .6deg; --tape-tilt: -2deg; margin-top: 1.3rem; }
.case:nth-child(2)::before { background: linear-gradient(rgb(255 233 174 / .75), rgb(255 233 174 / .55)); }
.case:nth-child(3) { background: var(--mint); --tilt: -.5deg; --tape-tilt: 1.5deg; }
.case blockquote {
  font-family: var(--display);
  font-style: italic;
  font-weight: 540;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  line-height: 1.4;
  letter-spacing: -.005em;
}
/* o grifo-sol marca a vitória (mesmo gesto que marcou as dores) */
.hl-case { --hl-c: rgb(255 203 61 / .5); }
.case .hl { transition-delay: .55s; transition-duration: 1.2s; }
.case figcaption {
  display: grid;
  gap: .1rem;
  font-size: .92rem;
  line-height: 1.4;
  color: var(--ink-soft);
}
.case figcaption strong {
  font-family: var(--display);
  font-style: italic;
  font-weight: 640;
  font-size: 1.3rem;
  color: var(--ink);
}
/* entrada: a nota é pregada no mural (cai e assenta com overshoot) */
.js .case.reveal {
  translate: 0 -18px;
  rotate: calc(var(--tilt, 0deg) * 2.6);
  transition: opacity .55s var(--ease), transform .5s var(--ease), translate .7s var(--ease-pop), rotate .7s var(--ease-pop);
}
.js .case.reveal.is-in { translate: 0 0; rotate: var(--tilt, 0deg); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .case:hover { rotate: 0deg; transform: translateY(-8px); }
  .case:hover::after { opacity: 1; }
}
/* no toque, o recado se endireita ao centralizar no viewport */
@media (hover: none) {
  .case.is-center { rotate: 0deg; transform: translateY(-6px); }
  .case.is-center::after { opacity: 1; }
}

/* ============================================================
   6 · PARA QUEM — o fortissimo tipográfico do meio da página
   ============================================================ */
.who {
  position: relative;
  padding: clamp(6rem, 13vh, 9rem) 0 clamp(5rem, 11vh, 7.5rem);
  overflow: clip;
  text-align: center;
}
/* o horizonte: um arco de céu atrás do letreiro */
.who-arc {
  position: absolute;
  left: -2%; right: -2%;
  bottom: clamp(7rem, 16vh, 11rem);
  width: 104%;
  height: clamp(130px, 24vw, 260px);
  pointer-events: none;
}
.who-arc path {
  fill: none;
  stroke: var(--sky-soft);
  stroke-width: 2;
  opacity: .9;
}
/* o sol percorre o horizonte conforme a seção cruza a tela */
.who-sun {
  position: absolute;
  left: 3%;
  bottom: clamp(7.6rem, 17vh, 12rem);
  width: 38px;
  pointer-events: none;
  translate: 30vw calc(-1 * clamp(46px, 8vw, 96px));
}
.who-sun svg { width: 100%; overflow: visible; }
.who-sun circle { fill: var(--sun); }
.who-sun line { stroke: var(--sun); stroke-width: 3.2; stroke-linecap: round; }
@supports (animation-timeline: view()) {
  .who-sun {
    translate: 0 0;
    animation: sunTravel linear both;
    animation-timeline: view();
    animation-range: entry 10% exit 90%;
  }
  @keyframes sunTravel {
    0%   { translate: 2vw clamp(-8px, -1vw, -4px); }
    50%  { translate: 44vw calc(-1 * clamp(60px, 11vw, 128px)); }
    100% { translate: 86vw clamp(-8px, -1vw, -4px); }
  }
}
.who-head { position: relative; z-index: 1; display: grid; justify-items: center; gap: .4rem; }
.who-head h2 { font-size: var(--display-lg); line-height: 1.04; }
.who-head h2 em {
  display: block;
  font-size: clamp(3.6rem, 9vw, 6.8rem);
  font-weight: 500;
  line-height: 1.02;
  padding-bottom: .06em;
  letter-spacing: -.02em;
}
.who-sub {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.marquee {
  position: relative;
  z-index: 1;
  margin-top: clamp(2.2rem, 5vh, 3.4rem);
}
/* a máscara vive no viewport interno: o botão de pausa fica fora dela */
.marquee-viewport {
  overflow: clip;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  list-style: none;
  display: flex;
  gap: .8rem;
  width: max-content;
  animation: slide 46s linear infinite;
}
.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track,
.marquee.is-paused .marquee-track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.marquee-track li {
  display: inline-flex;
  padding: .6rem 1.35rem;
  border-radius: var(--r-pill);
  border: 1.5px solid #E2EBF4;
  background: #fff;
  font-weight: 580;
  font-size: 1rem;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: transform .35s var(--ease);
  /* cada pílula flutua fora de fase: céu, não esteira */
  animation: pillFloat 6s ease-in-out calc(var(--i, 0) * -.7s) infinite alternate;
}
.marquee-track li.lead { background: var(--sky-deep); border-color: var(--sky-deep); color: #fff; }
.marquee-track li:nth-child(8n+3) { background: var(--sun-soft); border-color: var(--sun-soft); color: var(--ink); }
.marquee-track li:nth-child(8n+6) { background: var(--lilac); border-color: var(--lilac); color: var(--ink); }
@keyframes pillFloat { to { translate: 0 -3px; } }
.marquee-track li:nth-child(8n+1) { --i: 0; }
.marquee-track li:nth-child(8n+2) { --i: 1; }
.marquee-track li:nth-child(8n+3) { --i: 2; }
.marquee-track li:nth-child(8n+4) { --i: 3; }
.marquee-track li:nth-child(8n+5) { --i: 4; }
.marquee-track li:nth-child(8n+6) { --i: 5; }
.marquee-track li:nth-child(8n+7) { --i: 6; }
.marquee-track li:nth-child(8n)   { --i: 7; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .marquee-track li:hover { transform: translateY(-4px) rotate(-1.2deg); }
}
/* pausa acessível (WCAG 2.2.2): controle discreto no canto */
.marquee-toggle {
  position: absolute;
  right: clamp(.8rem, 2vw, 1.6rem);
  top: 50%;
  translate: 0 -50%;
  z-index: 2;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1.5px solid #DBE6F1;
  background: rgb(255 255 255 / .92);
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity .25s var(--ease);
}
.marquee:hover .marquee-toggle,
.marquee-toggle:focus-visible,
.marquee.is-paused .marquee-toggle { opacity: 1; }
.marquee-toggle span {
  position: relative;
  width: 10px; height: 12px;
}
.marquee-toggle span::before, .marquee-toggle span::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 3px;
  border-radius: 2px;
  background: var(--ink-soft);
}
.marquee-toggle span::before { left: 0; }
.marquee-toggle span::after { right: 0; }
.marquee.is-paused .marquee-toggle span::before {
  left: 1px; top: -1px; bottom: -1px;
  width: 0; height: 0;
  border-radius: 0;
  background: none;
  border-left: 10px solid var(--ink-soft);
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
}
.marquee.is-paused .marquee-toggle span::after { display: none; }
/* no toque o letreiro vira arrastável: mesmo objeto, gesto do polegar */
@media (hover: none) {
  .marquee-viewport { overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
  .marquee-viewport::-webkit-scrollbar { display: none; }
  .marquee-track { animation: none; padding-inline: 1.2rem; }
  .marquee-track li { animation: none; scroll-snap-align: center; }
  .marquee-track li[aria-hidden] { display: none; }
  .marquee-toggle { display: none; }
}
.who-line {
  position: relative;
  z-index: 1;
  margin: clamp(2.4rem, 5vh, 3.4rem) auto 0;
  font-family: var(--display);
  font-style: italic;
  font-weight: 530;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  color: var(--ink-soft);
  max-width: 44ch;
}
/* o itálico do who entra da direita: contraponto do resto da página */
.js .who-sub.reveal { translate: 24px 0; }
.js .who-sub.reveal.is-in { translate: 0 0; }

/* ============================================================
   7 · COMO COMEÇA — banda lilás que abre como um caderno
   ============================================================ */
.start {
  position: relative;
  padding: clamp(6rem, 13vh, 9rem) 0 calc(clamp(6rem, 13vh, 9rem) + clamp(2.5rem, 6vh, 4rem));
  background: var(--lilac-050);
  border-radius: var(--r-band) var(--r-band) 0 0;
}
.start-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.start-head { position: sticky; top: calc(var(--topbar-h) + 1rem); }
.start-head p { color: var(--ink-soft); margin-top: 1rem; max-width: 30ch; }
/* o balão da primeira mensagem se desenha sozinho */
.start-doodle {
  width: 116px;
  margin-top: clamp(1.8rem, 4vh, 2.8rem);
  overflow: visible;
}
.start-doodle path {
  fill: none;
  stroke: var(--sky-brand);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: .85;
}
.start-doodle.is-in path { stroke-dashoffset: 0; transition: stroke-dashoffset 1.3s var(--ease) .35s; }
.start-doodle.is-in path.tail { transition-delay: 1.3s; transition-duration: .5s; }
html:not(.js) .start-doodle path { stroke-dashoffset: 0; }
.start-steps { list-style: none; display: grid; }
.start-steps li {
  position: relative;
  padding: 2.2rem 0 2.3rem clamp(4.2rem, 6vw, 5.6rem);
  border-top: 1px solid rgb(27 37 48 / .14);
  display: grid;
  gap: .45rem;
}
.start-steps li:first-child { border-top: 0; padding-top: .4rem; }
/* numeral fantasma: a única composição em camadas tipográficas */
.step-num {
  position: absolute;
  left: -.05em;
  top: .6rem;
  z-index: 0;
  font-family: var(--display);
  font-style: italic;
  font-weight: 480;
  font-size: clamp(4.2rem, 7.5vw, 6.4rem);
  line-height: 1;
  color: #4E7FC4;
  opacity: .34;
  pointer-events: none;
}
.start-steps li:first-child .step-num { top: -1.2rem; }
.start-steps h3 {
  position: relative;
  z-index: 1;
  font-family: var(--display);
  font-weight: 560;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  letter-spacing: -.01em;
}
.start-steps h3 em {
  font-style: italic;
  color: var(--link);
  display: inline-block;
  background-image: linear-gradient(transparent 80%, var(--sun) 80%, var(--sun) 96%, transparent 96%);
  background-repeat: no-repeat;
  background-size: 0% 100%;
  transition: transform .45s var(--ease), background-size .5s var(--ease) .08s;
}
.start-steps p { position: relative; z-index: 1; color: var(--ink-soft); }
.start-steps h3, .start-steps li > p { transition: transform .45s var(--ease); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .start-steps li:hover h3 { transform: translateX(.8rem); }
  .start-steps li:hover > p { transform: translateX(.8rem); transition-delay: .05s; }
  .start-steps li:hover h3 em { transform: translateX(.3rem); background-size: 100% 100%; }
}
@media (hover: none) {
  .start-steps li.is-center h3 em { background-size: 100% 100%; }
}

/* ============================================================
   8 · FAQ — o caderno nasce ainda dentro da banda lilás
   ============================================================ */
.faq { padding: 0 0 clamp(6rem, 14vh, 9rem); }
.faq-grid {
  display: grid;
  grid-template-columns: 7fr 4fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.faq-grid h2 {
  order: 2;
  font-size: var(--display-md);
  position: sticky;
  top: calc(var(--topbar-h) + 1.4rem);
  padding-top: clamp(2rem, 5vh, 3.5rem);
}
.faq-list {
  order: 1;
  position: relative;
  z-index: 2;
  margin-top: calc(-1 * clamp(2.5rem, 6vh, 4rem));
  display: grid;
  background: var(--paper-dim);
  border: 1px solid #E3EDF6;
  border-radius: 26px;
  padding: .5rem 1.9rem .5rem 3.2rem;
  box-shadow: 0 24px 50px -28px rgb(27 37 48 / .22);
}
/* a margem do caderno */
.faq-list::before {
  content: "";
  position: absolute;
  left: 2.15rem;
  top: 1.3rem;
  bottom: 1.3rem;
  width: 2px;
  border-radius: 2px;
  background: var(--rose);
}
.faq-list details { border-top: 1px solid #DFE9F2; }
.faq-list details:first-child { border-top: 0; }
.faq-list summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1.3rem .2rem;
  font-family: var(--display);
  font-weight: 580;
  font-size: 1.18rem;
  letter-spacing: -.005em;
  line-height: 1.4;
  transition: color .2s var(--ease);
}
.faq-list summary:hover { color: var(--link); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-plus {
  position: relative;
  flex: none;
  width: 18px; height: 18px;
}
.faq-plus::before, .faq-plus::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  background: var(--ink-soft);
  border-radius: 2px;
  transition: rotate .35s var(--ease), background-color .2s var(--ease);
}
.faq-plus::before { width: 16px; height: 2.4px; }
.faq-plus::after { width: 2.4px; height: 16px; }
.js .faq-list details.is-open .faq-plus::after { rotate: 90deg; }
.js .faq-list details.is-open .faq-plus::before,
.js .faq-list details.is-open .faq-plus::after { background: var(--link); }
html:not(.js) .faq-list details[open] .faq-plus::after { rotate: 90deg; }
html:not(.js) .faq-list details[open] .faq-plus::before,
html:not(.js) .faq-list details[open] .faq-plus::after { background: var(--link); }
.faq-list details p {
  padding: 0 2.4rem 1.5rem .2rem;
  color: var(--ink-soft);
}
.js .faq-list .faq-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .5s var(--ease);
}
.js .faq-list details.is-open .faq-body { grid-template-rows: 1fr; }
.js .faq-list .faq-body > p {
  overflow: hidden;
  min-height: 0;
  opacity: 0;
  translate: 0 8px;
  transition: opacity .4s var(--ease), translate .4s var(--ease);
}
.js .faq-list details.is-open .faq-body > p {
  opacity: 1;
  translate: 0 0;
  transition-delay: .12s;
}
/* o caderno entra calmo: só fade, sem deslocamento */
.js .faq .reveal { translate: 0 0; }

/* ============================================================
   9 · ENCERRAMENTO — de volta ao céu; o footer vive na faixa
   de azul profundo, ANTES das nuvens
   ============================================================ */
.outro {
  position: relative;
  overflow: clip;
  background: linear-gradient(180deg,
    var(--paper) 0%,
    #CBE3FA 7%,
    var(--sky-brand) 20%,
    #2E7CD6 34%,
    var(--sky-deep) 52%);
  padding: clamp(7rem, 15vh, 10rem) 1.5rem 0;
  text-align: center;
  color: #fff;
}
.outro-inner {
  position: relative;
  z-index: 5;
  display: grid;
  justify-items: center;
  gap: 1.3rem;
  max-width: 52rem;
  margin-inline: auto;
}
/* palco do texto ancorado no próprio bloco: AA em qualquer altura */
.outro-inner::before {
  content: "";
  position: absolute;
  inset: -18% -22%;
  z-index: -1;
  background: radial-gradient(58% 68% at 50% 46%, rgb(14 44 88 / .32), transparent 74%);
  pointer-events: none;
}
.outro h2 {
  color: #fff;
  font-size: clamp(2.4rem, 5vw, 4rem);
  text-shadow: 0 2px 3px rgb(12 42 84 / .25);
}
.u-swash-outro { white-space: nowrap; }
/* a assinatura do hero fecha o arco: mesmo rabisco, gatilho de chegada */
.u-swash-outro { font-style: italic; font-weight: 520; }
.u-swash-outro path { animation: none; stroke-dashoffset: 320; transition: stroke-dashoffset 1s var(--ease) .55s; }
.outro h2.is-in .u-swash-outro path { stroke-dashoffset: 0; }
html:not(.js) .u-swash-outro path { stroke-dashoffset: 0; }
.outro-inner > p {
  font-size: 1.14rem;
  font-weight: 540;
  color: #fff;
  text-shadow: 0 1px 2px rgb(12 42 84 / .35);
  max-width: 36rem;
}
.outro-actions { margin-top: .6rem; display: grid; justify-items: center; }
/* a seta acena uma única vez depois que o botão chega */
.outro-actions.is-in .btn-quiet .arr { animation: arrNudge 1s var(--ease) 1.3s 1; }
@keyframes arrNudge { 35% { translate: 6px 0; } }
.outro-brain-wrap {
  position: absolute;
  z-index: 4;
  right: clamp(3%, 9vw, 13%);
  top: clamp(4rem, 11vh, 7.5rem);
  width: clamp(90px, 11vw, 170px);
  pointer-events: none;
}
.outro-brain {
  width: 100%;
  filter: drop-shadow(0 24px 40px rgb(16 48 96 / .3));
  animation: bob 11s ease-in-out 1s infinite;
}
/* o personagem chega ao destino junto com o leitor */
@supports (animation-timeline: view()) {
  .outro-brain-wrap {
    animation: brainArrive linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 90%;
  }
  @keyframes brainArrive {
    from { translate: 16vw -6vh; opacity: 0; }
    60% { opacity: 1; }
    to { translate: 0 0; opacity: 1; }
  }
}
.outro .fold {
  position: relative;
  inset: auto;
  margin: clamp(1rem, 2.5vh, 1.8rem) -52px -12px;
}
/* o grão pararia na borda do footer e criaria emenda: limita ao topo do céu */
.outro .sky-grain {
  bottom: auto;
  height: 42%;
  mask-image: linear-gradient(#000 60%, transparent);
}
.outro .fold .back { inset: auto 0 12%; }

/* footer multi-coluna na faixa de azul profundo */
.footer {
  position: relative;
  z-index: 5;
  margin: clamp(4rem, 9vh, 6rem) -1.5rem 0;
  padding-top: 3.5rem;
  background: linear-gradient(180deg, rgb(28 85 168 / 0), var(--sky-deep) 3.5rem);
  text-align: left;
}
.footer :focus-visible, .outro-inner :focus-visible { outline-color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2.2rem 3rem;
  align-items: start;
}
.footer-brand img { height: clamp(36px, 4.5vw, 46px); width: auto; }
.footer-brand p {
  margin-top: 1.05rem;
  font-size: .95rem;
  font-weight: 480;
  line-height: 1.6;
  color: rgb(255 255 255 / .82);
  max-width: 32ch;
}
.footer-col h3 {
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 660;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #BFDCFA;
  margin-bottom: .85rem;
}
.footer-col ul { list-style: none; display: grid; gap: .65rem; justify-items: start; }
.footer-col a {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: #fff;
  opacity: .85;
  text-decoration: none;
  font-size: .93rem;
  font-weight: 520;
  padding-block: .2rem;
  transition: opacity .2s var(--ease);
}
.footer-col a:hover { opacity: 1; }
.footer-col a .arr { transition: translate .25s var(--ease); }
.footer-col a:hover .arr { translate: 3px 0; }
.footer-note {
  margin-top: .8rem;
  font-size: .85rem;
  line-height: 1.55;
  color: rgb(255 255 255 / .78);
  max-width: 26ch;
}
.footer-legal {
  margin-top: clamp(1.7rem, 4vh, 2.4rem);
  padding-top: 1.05rem;
  border-top: 1px solid rgb(255 255 255 / .22);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .35rem 2rem;
}
.footer-legal small {
  font-size: .8rem;
  font-weight: 480;
  color: rgb(255 255 255 / .78);
}

/* ============================================================
   Reveals + motion base
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}
.reveal-load {
  opacity: 0;
  animation: fadeUp .8s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}
.js .reveal {
  opacity: 0;
  translate: 0 20px;
  transition: opacity .75s var(--ease), translate .75s var(--ease), rotate .75s var(--ease);
  transition-delay: var(--stagger, 0s);
}
.js .reveal.is-in { opacity: 1; translate: 0 0; }

/* seções fora da tela não custam render */
.turn, .cases, .who, .start, .outro {
  content-visibility: auto;
  contain-intrinsic-size: auto 760px;
}
.outro { contain-intrinsic-size: auto 1300px; }

/* ============================================================
   Reduced motion — bloco canônico único
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .js .reveal, .reveal-load, .wa-float { opacity: 1; translate: 0; transform: none; animation: none; transition: none; }
  .js .stair .reveal, .js .stair .s2.reveal, .js .stair .s3.reveal,
  .js .steps li.reveal, .js .steps li:nth-child(even).reveal,
  .js .case.reveal, .js .ready article.reveal, .js .who-sub.reveal { translate: 0; rotate: var(--tilt, 0deg); transition: none; animation: none; opacity: 1; }
  .hero-inner, .hero-brain-wrap, .hero .fold, .outro-brain-wrap { animation: none; translate: 0 0; opacity: 1; }
  .hero-brain, .outro-brain, .drift, .fold .front, .fold .back, .turn-cloud--a { animation: none; }
  .hero-brain-wrap { transition: none; transform: none !important; }
  .drift, .spark, .path-cover, .path-rider, .hero-plane { display: none; }
  .steps li::before { animation: none; scale: 1; opacity: 1; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; }
  .marquee-track li { animation: none; }
  .marquee-track li[aria-hidden] { display: none; }
  .marquee-viewport { mask-image: none; }
  .marquee-toggle { display: none; }
  .who-sun { animation: none; translate: 30vw calc(-1 * clamp(46px, 8vw, 96px)); }
  .u-swash path, .u-swash-outro path { animation: none; transition: none; stroke-dashoffset: 0; }
  .hl, .js .pain-line .hl { background-size: 100% 100%; transition: none; animation: none; transition-delay: 0s; }
  .pain-bubble .dot { animation: none; opacity: .8; }
  .start-doodle path, .start-doodle.is-in path { transition: none; stroke-dashoffset: 0; }
  .case, .case::after, .marquee-track li,
  .start-steps h3, .start-steps li > p, .start-steps h3 em, .topnav a,
  .topbar::before, .brand img,
  .footer-col a, .footer-col a .arr,
  .js .faq-list .faq-body, .js .faq-list .faq-body > p { transition: none; }
  .topbar::after { animation: none; scale: 1 1; }
  .wa-float { animation: none; opacity: 1; }
  .outro-actions.is-in .btn-quiet .arr { animation: none; }
}

/* ============================================================
   Mais contraste, a pedido do sistema
   ============================================================ */
@media (prefers-contrast: more) {
  :root { --ink-soft: #3A4754; --ink-faint: #4A5A6B; }
  .hero::after { background: radial-gradient(60% 70% at 50% 42%, rgb(10 34 70 / .55), transparent 78%); }
  .outro-inner::before { background: radial-gradient(60% 72% at 50% 46%, rgb(10 34 70 / .55), transparent 76%); }
  .turn, .cases, .start, .faq-list { border: 1px solid rgb(27 37 48 / .3); }
  .marquee-track li { border-color: var(--ink-soft); }
  .footer-brand p, .footer-note, .footer-legal small, .footer-col a { color: #fff; opacity: 1; }
}

/* ============================================================
   Responsivo
   ============================================================ */
@media (max-width: 1080px) {
  .hero-brain-wrap { top: 14%; }
}
@media (max-width: 900px) {
  .pain-grid, .start-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .faq-grid h2 { order: 1; position: static; padding-top: 0; margin-bottom: 1.6rem; }
  .faq-list { order: 2; }
  .start-head { position: static; }
  .start-doodle { display: none; }
  .cases-head { flex-direction: column; align-items: flex-start; gap: .8rem; }
  .cases-head p { padding-top: 0; }
  /* o mural vira folheável: um recado por vez, com espiada no próximo */
  .case-row {
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 78%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    gap: 1.1rem;
    padding: 1rem .2rem 1.4rem;
  }
  .case-row::-webkit-scrollbar { display: none; }
  .case { scroll-snap-align: center; }
  .case:nth-child(2) { margin-top: 0; }
  .ready { grid-template-columns: 1fr; }
  .ready article:nth-child(2), .ready article:nth-child(3) { margin-top: 0; }
  .path-wrap::before, .path-cover { left: 12px; }
  .path-rider { left: 12px; }
  .steps li { width: auto; margin-left: 2.6rem !important; }
  .steps li:nth-child(even) { text-align: left; }
  .steps li:nth-child(even) .glyph { margin-left: 0; }
  .steps li::before { left: -2.6rem !important; right: auto !important; translate: -35% 0 !important; }
  .pain-line:nth-child(2) { margin-left: 0; }
  .turn-cloud--a { width: 150px; top: 5%; right: -34px; }
  .turn-cloud--b { display: none; }
  .flow-panel { padding-block: 2.6rem 3.2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  :root { --topbar-h: 64px; }
  body { font-size: 1rem; }
  /* nav volta no estado sólido: orientação sem hambúrguer */
  .topnav { display: none; }
  .topbar.is-solid .topnav { display: flex; gap: .9rem; }
  .topnav a { font-size: .8rem; font-weight: 600; }
  .brand img, .brand .wm-blue { height: 38px; }
  .hero { padding-top: 7rem; padding-bottom: clamp(11rem, 24vh, 14rem); }
  .hero::before { width: 110vw; height: 110vw; top: -12%; right: -38%; }
  .hero-sub { font-size: 1.08rem; }
  .hero-brain-wrap { width: 150px; left: 1%; top: 20%; }
  .spark { width: 7px; height: 7px; }
  .spark.s2 { width: 6px; height: 6px; }
  .hero-plane { width: 40px; top: 14%; }
  .u-swash path { stroke-width: 4; }
  .pain { background: radial-gradient(70% 40% at 92% 6%, rgb(255 220 228 / .55), transparent 70%), var(--paper); }
  .pain-br { display: none; }
  .stair { font-size: clamp(1.92rem, 8.4vw, 2.3rem); }
  .stair .s2 { margin-left: 1.6rem; }
  .stair .s3 { margin-left: 3.2rem; }
  .turn-copy { margin-left: 0; }
  .turn { padding-block: 5.5rem; }
  .flow-panel { border-radius: 20px; background: radial-gradient(80% 30% at 90% 4%, rgb(169 210 247 / .3), transparent 70%), var(--paper-dim); }
  .flow-sun { width: 96px; }
  .flow .link-cta { margin-top: 1rem; }
  .flow-sign { margin-top: 2.2rem; }
  .cases { padding-bottom: 4.5rem; }
  .case-row { grid-auto-columns: 84%; }
  .who-head h2 em { font-size: clamp(3rem, 13vw, 4rem); }
  .start { padding-block: clamp(4rem, 9vh, 5.5rem) calc(clamp(4rem, 9vh, 5.5rem) + 2.5rem); }
  .start-steps li { padding-left: 3.4rem; }
  .step-num { font-size: 3.6rem; }
  .faq-list { padding: .5rem 1.1rem .5rem 2.4rem; }
  .faq-list::before { left: 1.55rem; }
  .faq-list details p { padding-right: 1rem; }
  .faq-list summary { font-size: 1.08rem; }
  .container { width: min(var(--container), 100% - 2.2rem); }
  .wa-float { width: 54px; height: 54px; }
  .wa-float::after { display: none; }
  /* o cérebro vira selo centralizado acima do título: nunca atrás do texto */
  .outro { padding-top: 5rem; }
  .outro-brain-wrap {
    position: static;
    width: 104px;
    margin: 0 auto 1.6rem;
    animation: none;
    translate: 0 0;
    opacity: 1;
  }
  .outro h2 { font-size: clamp(2rem, 8.6vw, 2.5rem); }
  .outro-br { display: none; }
  .footer { margin-top: 3.2rem; }
  .footer-brand img { height: 34px; }
  .footer-legal { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .footer-brand { grid-column: auto; }
}
@media (max-width: 480px) {
  .topnav a:nth-child(3) { display: none; }
}
