/* =========================================================
   INCADE — Aplicação Oficial (Thiago Quint)
   Identidade: branco + Poppins + trio Corpo/Alma/Espírito.
   Cada ato do formulário veste a própria cor (--act).
   ========================================================= */

:root {
  /* Trio INCADE */
  --corpo: #EF6350;     /* coral — corpo, vitalidade */
  --alma: #2FB4A0;      /* teal — alma, serenidade */
  --espirito: #E3A93E;  /* ouro-mostarda — espírito */

  /* Tinta e apoios */
  --ink: #12151A;
  --ink-soft: #4A4F57;
  --gray: #6E747C;
  --gray-2: #A8ADB5;
  --hairline: #E8EAED;
  --hairline-2: #D5D9DE;
  --error: #D0452F;

  /* Cor do ato vigente (redefinida por [data-act]) */
  --act: var(--ink);
  --act-rgb: 18, 21, 26;
  --act-ink: var(--ink);

  --font-geo: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --radius: 14px;
  --maxw: 560px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* Cada ato veste a própria cor (telas, nós do progresso e brilho do fundo) */
.step[data-act="corpo"], .node[data-act="corpo"], body[data-act="corpo"] {
  --act: var(--corpo); --act-rgb: 239, 99, 80; --act-ink: #C94B3B;
}
.step[data-act="alma"], .node[data-act="alma"], body[data-act="alma"] {
  --act: var(--alma); --act-rgb: 47, 180, 160; --act-ink: #178273;
}
.step[data-act="espirito"], .node[data-act="espirito"], body[data-act="espirito"] {
  --act: var(--espirito); --act-rgb: 227, 169, 62; --act-ink: #A87A1C;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-geo);
  color: var(--ink);
  background: #FFFFFF;
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(47, 180, 160, .24); }

/* ---------- Shell ---------- */
.app {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
}
.app[data-view="hero"] { max-width: 920px; }

.stage {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center; /* herói e sucesso: splash centralizado */
  padding: 8px 0;
}
/* telas de pergunta/revisão: conteúdo ancorado no topo, logo abaixo do progresso */
.app[data-view="form"] .stage {
  justify-content: flex-start;
  padding-top: clamp(14px, 3.5vh, 32px);
}

/* ---------- Steps ---------- */
.step { display: none; width: 100%; }
.step.is-active { display: block; animation: stepIn .45s var(--ease) both; }
/* herói: só fade, nunca transform — a intro (position:fixed) é filha do step e
   um transform no ancestral prende as cartelas na caixa do step (tela cortada) */
.step.step-hero.is-active { animation-name: fadeIn; }

.step-inner { width: 100%; max-width: 460px; margin: 0 auto; }
.step-inner.center { text-align: center; }

/* cascata dos elementos ao entrar na tela */
.step.is-active .stagger { animation: riseIn .5s var(--ease) both; }
.step.is-active .stagger:nth-child(1) { animation-delay: .03s; }
.step.is-active .stagger:nth-child(2) { animation-delay: .09s; }
.step.is-active .stagger:nth-child(3) { animation-delay: .15s; }
.step.is-active .stagger:nth-child(4) { animation-delay: .21s; }
.step.is-active .stagger:nth-child(5) { animation-delay: .27s; }
.step.is-active .stagger:nth-child(6) { animation-delay: .33s; }
.step.is-active .stagger:nth-child(7) { animation-delay: .39s; }
.step.is-active .stagger:nth-child(8) { animation-delay: .45s; }

/* ---------- Tipografia base ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--gray);
  margin: 0 0 14px;
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--act);
  flex: none;
}

.q {
  font-family: var(--font-geo);
  font-weight: 600;
  font-size: clamp(23px, 5.6vw, 29px);
  line-height: 1.28;
  letter-spacing: -.015em;
  color: var(--ink);
  margin: 0 0 6px;
  display: block;
}

.help {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--gray);
  margin: 4px 0 0;
}
.help.wide { max-width: 36ch; margin-inline: auto; }

/* ---------- Atmosfera (brilho do ato + grão) ---------- */
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
/* um halo suave no alto da tela, na cor do ato vigente; cruza em fade */
.glow {
  position: absolute;
  width: 130vmax;
  height: 130vmax;
  top: -86vmax;
  left: 50%;
  margin-left: -65vmax;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 1.2s ease;
}
/* dois degradês desalinhados por cor: some o banding (anéis) do degradê único */
.glow-corpo {
  background:
    radial-gradient(circle at 50% 42%, rgba(239, 99, 80, .07) 0%, rgba(239, 99, 80, 0) 56%),
    radial-gradient(circle at 47% 38%, rgba(239, 99, 80, .07) 0%, rgba(239, 99, 80, 0) 66%);
  animation: drift-a 47s ease-in-out infinite alternate;
}
.glow-alma {
  background:
    radial-gradient(circle at 50% 42%, rgba(47, 180, 160, .06) 0%, rgba(47, 180, 160, 0) 56%),
    radial-gradient(circle at 53% 38%, rgba(47, 180, 160, .06) 0%, rgba(47, 180, 160, 0) 66%);
  animation: drift-b 59s ease-in-out infinite alternate;
}
.glow-espirito {
  background:
    radial-gradient(circle at 50% 42%, rgba(227, 169, 62, .07) 0%, rgba(227, 169, 62, 0) 56%),
    radial-gradient(circle at 47% 38%, rgba(227, 169, 62, .07) 0%, rgba(227, 169, 62, 0) 66%);
  animation: drift-c 53s ease-in-out infinite alternate;
}
body[data-act="corpo"] .glow-corpo,
body[data-act="alma"] .glow-alma,
body[data-act="espirito"] .glow-espirito { opacity: 1; }
/* capa: branco puro, sem brilho */
body[data-view="hero"] .glow { display: none; }

.grain {
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='170' height='170'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='170' height='170' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  background-size: 170px 170px;
}

/* ---------- Herói INCADE ---------- */
/* Intro: cartelas em tela cheia (Corpo → Alma → Espírito) que colapsam na órbita */
.intro {
  position: fixed;
  inset: 0;
  z-index: 25;
  pointer-events: none;
  animation: hideEl 0s 2.8s forwards;
}
.cartela {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding-left: 8vw;
}
.cartela-word {
  font-family: var(--font-geo);
  font-weight: 500;
  font-size: clamp(52px, 13vw, 120px);
  letter-spacing: -.02em;
  color: #fff;
  opacity: 0;
}
.c-corpo { background: var(--corpo); z-index: 1; animation: hideEl 0s 1.2s forwards; }
.c-alma {
  background: var(--alma); z-index: 2;
  transform: translateY(100%);
  animation: wipeUp .45s cubic-bezier(.7, 0, .2, 1) .62s forwards, hideEl 0s 1.8s forwards;
}
.c-espirito {
  background: var(--espirito); z-index: 3;
  transform: translateY(100%);
  transform-origin: 50% 42%;
  animation: wipeUp .45s cubic-bezier(.7, 0, .2, 1) 1.24s forwards,
             collapse .55s cubic-bezier(.55, 0, .3, 1) 2.05s forwards;
}
.c-corpo .cartela-word { animation: cartelaWord .5s var(--ease) .05s both; }
.c-alma .cartela-word { animation: cartelaWord .5s var(--ease) .78s both; }
.c-espirito .cartela-word {
  animation: cartelaWord .5s var(--ease) 1.4s both, hideEl 0s 2.05s forwards;
}

/* shell da capa */
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: calc(100dvh - 16px);
  padding-top: max(20px, env(safe-area-inset-top));
  padding-bottom: max(14px, env(safe-area-inset-bottom));
}

.hero-nav {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hairline);
  animation: fadeIn .6s var(--ease) 2.45s both;
}
.logotype {
  font-family: var(--font-geo);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .06em;
  color: var(--ink);
}
.hero-nav-tag {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--gray);
  white-space: nowrap;
}

.hero-center {
  margin: auto 0;
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* órbita: 3 bolas com rastro girando em volta de um centro invisível */
.orbit { position: relative; width: 232px; height: 232px; margin-bottom: 4px; }
/* rastro: arco degradê atrás de cada bola (gira junto no .orbit-spin);
   máscara radial recorta o anel por onde as bolas passam */
.trail {
  position: absolute; inset: 0;
  animation: fadeIn .9s ease 2.55s both;
  -webkit-mask: radial-gradient(circle, transparent 84px, #000 88px, #000 96px, transparent 100px);
          mask: radial-gradient(circle, transparent 84px, #000 88px, #000 96px, transparent 100px);
}
.trail-corpo    { background: conic-gradient(from -80deg, rgba(239, 99, 80, 0) 0deg,  rgba(239, 99, 80, .45)  80deg, rgba(239, 99, 80, 0)  80deg); }
.trail-alma     { background: conic-gradient(from 40deg,  rgba(47, 180, 160, 0) 0deg, rgba(47, 180, 160, .45) 80deg, rgba(47, 180, 160, 0) 80deg); }
.trail-espirito { background: conic-gradient(from 160deg, rgba(227, 169, 62, 0) 0deg, rgba(227, 169, 62, .45) 80deg, rgba(227, 169, 62, 0) 80deg); }
.orbit-spin {
  position: absolute; inset: 0;
  /* giro acelerado 720° em 1,5s (desacelerando) e depois lento contínuo — 720°≡0°, sem salto */
  animation: spinFast 1.5s cubic-bezier(.14, .8, .26, 1) 2.4s both,
             spinSlow 26s linear 3.9s infinite;
}
.orb {
  position: absolute; left: 50%; top: 50%;
  width: 24px; height: 24px; margin: -12px;
}
.orb::after {
  content: "";
  display: block;
  width: 100%; height: 100%;
  border-radius: 50%;
  transform: scale(0);
  animation: orbPop .45s cubic-bezier(.34, 1.56, .64, 1) both;
}
.orb-corpo    { transform: rotate(-90deg) translateX(92px); }
.orb-alma     { transform: rotate(30deg)  translateX(92px); }
.orb-espirito { transform: rotate(150deg) translateX(92px); }
.orb-corpo::after    { background: var(--corpo);    animation-delay: 2.2s; }
.orb-alma::after     { background: var(--alma);     animation-delay: 2.3s; }
.orb-espirito::after { background: var(--espirito); animation-delay: 2.4s; }

/* wordmark + tagline */
.wordmark {
  margin: 10px 0;
  font-family: var(--font-geo);
  font-weight: 600;
  font-size: clamp(44px, 13vw, 92px);
  letter-spacing: -.02em;
  line-height: 1;
  color: var(--ink);
  animation: riseIn .7s var(--ease) 2.55s both;
}
.tagline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  margin: 0 0 18px;
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--gray);
  animation: riseIn .7s var(--ease) 2.7s both;
}
.tagline span { display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.dot-corpo { background: var(--corpo); }
.dot-alma { background: var(--alma); }
.dot-espirito { background: var(--espirito); }

.hero-intro {
  max-width: 46ch;
  font-family: var(--font-geo);
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink-soft);
  text-wrap: balance;
  margin: 0;
  animation: riseIn .7s var(--ease) 2.8s both;
}
/* Virou bloco de 2 parágrafos (a descrição do Forms tem dois) — zera a margem
   padrão do <p> e separa só entre eles. */
.hero-intro p { margin: 0; }
.hero-intro p + p { margin-top: 12px; }

.hero-cta {
  margin: 26px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: riseIn .7s var(--ease) 2.95s both;
}
.btn.ink {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 17px 30px;
  font-family: var(--font-geo);
  font-size: 16px;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 12px 28px -14px rgba(18, 21, 26, .5);
}
.btn.ink:hover { background: #23272E; }
.btn.ink:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(18, 21, 26, .22); }
.btn-arrow { display: inline-block; transition: transform .25s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* base: ticker */
.hero-foot {
  width: 100%;
  margin-top: auto;
  animation: fadeIn .8s var(--ease) 3.15s both;
}

.hero-ticker {
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.ticker-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: tick 38s linear infinite;
}
.ticker-track > * { margin-right: 22px; }
.ticker-track span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #B3B8BE;
  white-space: nowrap;
}
.ticker-track b { font-weight: 400; }
.ticker-track b:nth-of-type(3n+1) { color: var(--corpo); }
.ticker-track b:nth-of-type(3n+2) { color: var(--alma); }
.ticker-track b:nth-of-type(3n)   { color: var(--espirito); }

@media (min-width: 700px) {
  .step-hero .orbit { width: 272px; height: 272px; }
  .step-hero .trail {
    -webkit-mask: radial-gradient(circle, transparent 104px, #000 108px, #000 116px, transparent 120px);
            mask: radial-gradient(circle, transparent 104px, #000 108px, #000 116px, transparent 120px);
  }
  .step-hero .orb-corpo    { transform: rotate(-90deg) translateX(112px); }
  .step-hero .orb-alma     { transform: rotate(30deg)  translateX(112px); }
  .step-hero .orb-espirito { transform: rotate(150deg) translateX(112px); }
  .hero-nav-tag { font-size: 10.5px; }
  .hero-intro { font-size: 16.5px; }
}

/* janelas baixas (notebook com barra de tarefas etc.): capa compacta, tudo numa tela */
@media (max-height: 760px) {
  .hero-inner { padding-top: 12px; }
  .hero-nav { padding-bottom: 10px; }
  .hero-center { padding: 10px 0; }
  .step-hero .orbit { transform: scale(.72); margin: -38px 0 -34px; }
  .wordmark { font-size: clamp(40px, min(13vw, 9.5vh), 92px); margin: 6px 0; }
  .tagline { margin-bottom: 12px; }
  .hero-cta { margin-top: 16px; }
}

/* reduzir movimento: pula a intro inteira (conteúdo e órbita já no estado final) */
@media (prefers-reduced-motion: reduce) {
  .intro { display: none; }
}

/* ---------- Sucesso: mini órbita comemorativa ---------- */
.success-mark { display: flex; justify-content: center; }
.step-success.is-active .success-mark { animation: glowIn .9s var(--ease) both; }
/* reusa a órbita da capa em escala menor (geometria mobile, encolhida) */
.orbit--mini {
  width: 232px; height: 232px;
  transform: scale(.62);
  margin: -36px 0 -32px;
}
/* na chegada do sucesso, giro rápido de comemoração e depois lento — ecoa a capa */
.step-success .orbit-spin {
  animation: spinFast 1.2s cubic-bezier(.14, .8, .26, 1) .3s both,
             spinSlow 26s linear 1.5s infinite;
}
.step-success .orb::after { animation: orbPop .4s cubic-bezier(.34, 1.56, .64, 1) both; }
.step-success .orb-corpo::after    { animation-delay: .12s; }
.step-success .orb-alma::after     { animation-delay: .22s; }
.step-success .orb-espirito::after { animation-delay: .32s; }
.step-success .trail { animation: fadeIn .7s var(--ease) .5s both; }

.step-success .q { margin-top: 10px; }
.step-success .tagline {
  justify-content: center;
  margin: 22px 0 0;
  animation: none; /* cascata via .stagger, não o delay da capa */
}

/* ---------- Campos ---------- */
.field { margin-top: 18px; }
.field:first-of-type { margin-top: 22px; }

.lbl {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
  margin: 0 0 7px;
}

.input {
  width: 100%;
  font-family: var(--font-geo);
  font-size: 17px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 15px 16px;
  transition: border-color .2s, box-shadow .2s;
}
.input::placeholder { color: var(--gray-2); }
.input:focus {
  outline: none;
  border-color: var(--act);
  box-shadow: 0 0 0 4px rgba(var(--act-rgb), .13);
}
.area { resize: vertical; min-height: 118px; line-height: 1.55; }

/* label como enunciado quando é .q usado em <label> */
label.q { margin-bottom: 10px; }

.field.invalid .input {
  border-color: var(--error);
  box-shadow: 0 0 0 4px rgba(208, 69, 47, .10);
}

.err {
  color: var(--error);
  font-size: 13px;
  margin: 7px 2px 0;
  opacity: 0;
  transform: translateY(-2px);
  transition: opacity .2s, transform .2s;
}
.err.block { margin-top: 12px; }
.err.show { opacity: 1; transform: none; animation: errShake .3s var(--ease); }

/* ---------- Escolhas (radio como cartões) ---------- */
.choices { border: 0; margin: 0; padding: 0; }
.choices .q { margin-bottom: 16px; }
.choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 16px;
  margin-top: 10px;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color .18s, background .18s, box-shadow .18s, transform .18s var(--ease);
}
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.choice-label { font-size: 15.5px; color: var(--ink); }
.choice-mark {
  margin-left: auto;
  flex: 0 0 auto;
  position: relative;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--hairline-2);
  transition: border-color .18s, background .18s, transform .18s;
}
.choice:hover {
  border-color: var(--hairline-2);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px -10px rgba(18, 21, 26, .18);
}
.choice:has(input:focus-visible) {
  border-color: var(--act);
  box-shadow: 0 0 0 4px rgba(var(--act-rgb), .13);
}
.choice:has(input:checked) {
  border-color: var(--act);
  background: rgba(var(--act-rgb), .06);
}
.choice:has(input:checked) .choice-mark {
  border-color: var(--act);
  background: var(--act);
  transform: scale(1.04);
}
.choice:has(input:checked) .choice-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  animation: pop .2s var(--ease) both;
}

/* ---------- Revisão ---------- */
.review-list { margin-top: 20px; border-top: 1px solid var(--hairline); }
.review-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 2px;
  border-bottom: 1px solid var(--hairline);
}
/* cada resposta entra em cascata (—i vem do app.js) */
.step.is-active .review-item {
  animation: riseIn .45s var(--ease) both;
  animation-delay: calc(.16s + var(--i, 0) * .05s);
}
.ri-body { flex: 1 1 auto; min-width: 0; }
.ri-q {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--gray);
  margin: 0 0 4px;
}
.ri-a {
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.ri-edit {
  flex: 0 0 auto;
  background: none;
  border: 0;
  font-family: var(--font-geo);
  font-size: 13px;
  font-weight: 600;
  color: var(--act-ink);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: background .18s;
}
.ri-edit:hover { background: rgba(var(--act-rgb), .09); }

/* ---------- Progresso (tríade) ---------- */
.progress { padding: max(20px, env(safe-area-inset-top)) 0 4px; }
.triad {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 300px;
  margin: 0 auto;
}
.triad-track {
  position: absolute;
  left: 10px;
  right: 10px;
  top: 8px;
  height: 2px;
  background: var(--hairline);
  border-radius: 2px;
  overflow: hidden;
}
/* preenchimento em degradê do trio, revelado por clip (largura fixa = degradê estável) */
.triad-fill {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  background: linear-gradient(90deg, var(--corpo), var(--alma), var(--espirito));
  border-radius: 2px;
  clip-path: inset(0 100% 0 0);
  transition: clip-path .55s var(--ease);
}
.node {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.node-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--hairline-2);
  transition: background .3s, border-color .3s, box-shadow .3s;
}
.node-name {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--gray);
  transition: color .3s;
}
.node.is-done .node-dot { background: var(--act); border-color: var(--act); }
.node.is-done .node-name { color: var(--act-ink); }
.node.is-active .node-dot {
  background: #fff;
  border-color: var(--act);
  animation: nodeBreath 3.2s var(--ease) infinite;
}
.node.is-active .node-name { color: var(--act-ink); }

.step-label {
  margin: 14px 0 0;
  font-size: 12.5px;
  letter-spacing: .01em;
  color: var(--gray);
  text-align: center;
}

/* ---------- Navegação ---------- */
.nav {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0 max(20px, env(safe-area-inset-bottom));
}
.nav-spacer { flex: 1 1 auto; }

.btn {
  font-family: var(--font-geo);
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 14px 24px;
  cursor: pointer;
  transition: transform .12s var(--ease), background .2s, box-shadow .2s, color .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn.primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(18, 21, 26, .55);
}
.btn.primary:hover { background: #23272E; transform: translateY(-1px); }
.btn.primary:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(18, 21, 26, .22); }
.btn.ghost { background: transparent; color: var(--gray); }
.btn.ghost:hover { color: var(--ink); background: rgba(18, 21, 26, .05); }
.btn.ghost:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(18, 21, 26, .14); }
.btn[disabled] { opacity: .45; cursor: default; transform: none; box-shadow: none; }

#btnBack::before { content: "‹"; margin-right: 8px; font-weight: 400; opacity: .8; }
#btnNext::after { content: "›"; margin-left: 8px; font-weight: 400; }
#btnNext.is-final::after { content: none; }
#btnNext.is-busy { pointer-events: none; opacity: .8; }

/* Esconde progresso/navegação no herói e no sucesso */
.app[data-view="hero"] .progress,
.app[data-view="hero"] .nav,
.app[data-view="success"] .progress,
.app[data-view="success"] .nav,
.app[data-view="unconfirmed"] .progress,
.app[data-view="unconfirmed"] .nav { display: none; }

/* tela de envio não confirmado: botão próprio (a nav global fica oculta).
   Sem o delay de 2,95s da capa — aqui a pessoa precisa do botão na hora. */
.retry-cta { margin: 26px 0 0; display: flex; justify-content: center; }

/* Aviso de privacidade na tela de revisão: presente e legível, sem competir com o botão. */
.privacy-note {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--gray);
}
.privacy-note a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.privacy-note a:hover { color: var(--act); }

/* Escala 0–10 ("quanto isso te incomoda"): 11 opções não cabem na lista vertical
   das outras múltiplas escolhas, então viram botões numerados que quebram linha. */
.scale { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.scale-opt { position: relative; flex: 1 1 44px; }
.scale-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.scale-opt > span {
  display: grid;
  place-items: center;
  height: 48px;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .18s, background .18s, color .18s, transform .18s var(--ease);
}
.scale-opt:hover > span { border-color: var(--hairline-2); transform: translateY(-1px); }
.scale-opt input:checked + span {
  background: var(--act);
  border-color: var(--act);
  color: #fff;
}
.scale-opt input:focus-visible + span {
  border-color: var(--act);
  box-shadow: 0 0 0 4px rgba(var(--act-rgb), .13);
}

/* iframe oculto do envio */
#gform_sink { position: absolute; width: 0; height: 0; border: 0; visibility: hidden; }

/* ---------- Keyframes ---------- */
@keyframes stepIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes riseIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes glowIn { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes tick { to { transform: translateX(-50%); } }
@keyframes errShake {
  0%, 100% { transform: none; }
  25% { transform: translateX(3px); }
  75% { transform: translateX(-3px); }
}
@keyframes drift-a { to { transform: translate3d(6vmax, 4vmax, 0) scale(1.07); } }
@keyframes drift-b { to { transform: translate3d(-5vmax, 6vmax, 0) scale(1.1); } }
@keyframes drift-c { to { transform: translate3d(5vmax, -4vmax, 0) scale(1.06); } }

/* intro INCADE */
@keyframes wipeUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes cartelaWord { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes collapse {
  from { transform: translateY(0) scale(1); border-radius: 0; opacity: 1; }
  85%  { opacity: 1; }
  to   { transform: translateY(0) scale(.002); border-radius: 50%; opacity: 0; }
}
@keyframes hideEl { to { visibility: hidden; } }
@keyframes orbPop { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes spinFast { from { transform: rotate(0deg); } to { transform: rotate(720deg); } }
@keyframes spinSlow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes nodeBreath {
  0%, 100% { box-shadow: 0 0 0 3px rgba(var(--act-rgb), .16); }
  50%      { box-shadow: 0 0 0 8px rgba(var(--act-rgb), .06); }
}

/* ---------- Telas menores ---------- */
@media (max-width: 360px) {
  .app { padding: 0 16px; }
  .choice-label { font-size: 15px; }
  .input { font-size: 16px; }
}

/* ---------- Reduzir movimento ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
  }
  .step.is-active,
  .step.is-active .stagger,
  .step.is-active .review-item { animation: none !important; opacity: 1 !important; transform: none !important; }
  .triad-fill { transition: none !important; }
}
