/* ==========================================================================
   CAUÊ FONTANA — Planejador Financeiro
   Layout: livro-objeto. Capítulos alternam papel claro e verde profundo;
   a espiral áurea (construção por adição) é o único gesto ornamental.
   ========================================================================== */

:root {
  /* Cor */
  --ink-green: #0b1a15;        /* verde quase preto */
  --deep-green: #0f2a21;       /* verde escuro */
  --emerald: #134634;          /* esmeralda profundo */
  --emerald-soft: #1d5a43;
  --gold: #b8975a;             /* dourado discreto */
  --gold-light: #d2b886;
  --paper: #f5f3ec;            /* branco quente */
  --paper-warm: #ebe7dc;
  --ink: #15211c;              /* texto sobre papel */
  --muted: #5d6862;            /* cinza com viés verde */
  --muted-on-dark: #a3b0a9;
  --rule: rgba(21, 33, 28, .14);
  --rule-on-dark: rgba(245, 243, 236, .14);
  --ok: #2f6b4f;               /* leitura favorável */
  --warn: #9a6f22;             /* atenção */
  --alert: #a4473b;            /* alerta */

  /* Tipo */
  --font-display: "Newsreader", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", "Helvetica Neue", Arial, system-ui, sans-serif;

  /* Escala */
  --step--1: .8125rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.45rem, 1.1rem + 1vw, 1.85rem);
  --step-3: clamp(2.1rem, 1.4rem + 2.8vw, 3.6rem);
  --step-4: clamp(2.5rem, 1.5rem + 4.2vw, 4.9rem);
  --step-5: clamp(2.7rem, 1.4rem + 5.4vw, 5.8rem);

  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --section-y: clamp(5rem, 3rem + 8vw, 9.5rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --radius-xl: clamp(28px, 3.5vw, 56px);
  --radius-l: 22px;
  --inset: clamp(8px, 1.2vw, 18px);

  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 2px; }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--gold); color: var(--ink-green);
  padding: .6rem 1rem; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: calc(1rem + env(safe-area-inset-top, 0px)); }

.wrap {
  width: 100%;
  max-width: 1220px;
  margin-inline: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter-r);
}

/* ---------- Tipografia ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.022em;
  text-wrap: balance;
}
.display em { font-style: italic; font-weight: 300; }
.display--l { font-size: var(--step-3); }
.display--xl { font-size: var(--step-4); }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex; align-items: center; gap: .9rem;
}

.eyebrow--gold { color: var(--gold); }

.lead { font-size: var(--step-1); line-height: 1.6; color: var(--muted); max-width: 38em; }

.prose { display: grid; gap: 1.25rem; max-width: 36em; }
.prose p { color: var(--muted); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .7rem;
  min-height: 3.25rem;
  padding: .9rem 1.6rem;
  font-family: var(--font-body);
  font-size: .9375rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn--gold { background: var(--gold); color: var(--ink-green); }
.btn--gold:hover { background: var(--gold-light); }
.btn--ghost { color: var(--paper); border-color: rgba(245, 243, 236, .32); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-light); }
.btn--large { min-height: 3.75rem; padding: 1.1rem 2rem; font-size: 1rem; }
.btn-icon { width: 1.2rem; height: 1.2rem; fill: currentColor; flex: none; }

.text-link {
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 600; font-size: .9375rem;
  color: var(--emerald);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: .15rem;
  transition: color .3s var(--ease), gap .3s var(--ease);
}
.text-link:hover { color: var(--gold); gap: .7rem; }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  color: var(--paper);
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(11, 26, 21, .92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--rule-on-dark);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  min-height: 4.75rem;
}
.wordmark { display: grid; line-height: 1.1; text-decoration: none; }
.wordmark-name {
  font-family: var(--font-body); font-weight: 600; font-size: .9375rem;
  letter-spacing: .26em; text-transform: uppercase;
}
.wordmark-role {
  font-family: var(--font-display); font-style: italic; font-size: 1rem; color: var(--gold-light);
}
.nav { display: flex; gap: 2.25rem; }
.nav a {
  font-size: .875rem; font-weight: 500; letter-spacing: .04em;
  text-decoration: none; color: var(--muted-on-dark);
  transition: color .3s var(--ease);
}
.nav a:hover { color: var(--paper); }
.header-cta {
  font-size: .8125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; color: var(--gold-light);
  border: 1px solid rgba(184, 151, 90, .5);
  padding: .6rem 1.1rem; border-radius: 999px;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.header-cta:hover { background: var(--gold); color: var(--ink-green); }

/* ---------- Textura sutil ---------- */
.hero, .statement, .section--deep, .invite, .site-footer { position: relative; isolation: isolate; }
.hero::after, .section--deep::after, .invite::after, .site-footer::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  opacity: .07; mix-blend-mode: soft-light;
  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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- 1 · Hero ---------- */
.hero {
  background:
    radial-gradient(120% 90% at 85% 40%, rgba(29, 90, 67, .55) 0%, rgba(15, 42, 33, 0) 60%),
    var(--ink-green);
  color: var(--paper);
  margin-top: calc(-1 * env(safe-area-inset-top, 0px));
  padding-top: calc(env(safe-area-inset-top, 0px) + clamp(8rem, 6rem + 6vw, 11rem));
  padding-bottom: 2.5rem;
  overflow: hidden;
  display: flex; flex-direction: column;
  min-height: min(100svh, 980px);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}
.hero-geometry {
  position: absolute; z-index: -1;
  top: 50%; right: -3%;
  width: min(66%, 1000px); height: auto; aspect-ratio: 89 / 55;
  transform: translateY(-50%) scaleX(-1);
  fill: none;
  opacity: .4;
}
.geo-grid rect {
  stroke: rgba(245, 243, 236, .07);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.geo-spiral {
  stroke: var(--gold);
  stroke-width: 1.25;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  opacity: .75;
  animation: draw 4.2s var(--ease) .3s both;
}
.geo-origin { fill: var(--gold); opacity: .9; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

.hero-inner {
  flex: 1; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  align-items: center; gap: 2rem clamp(2rem, 5vw, 5rem); padding-block: 1rem 3rem;
}
.hero-copy { display: grid; align-content: center; gap: 2rem; min-width: 0; }
.hero-photo {
  margin: 0; position: relative; justify-self: end; width: min(100%, 25rem);
  animation: rise 1.1s var(--ease) .25s both;
}
.hero-photo::before {
  content: ""; position: absolute; inset: -14px -14px 14px 14px; z-index: -1;
  border: 1px solid rgba(210, 184, 134, .45); border-radius: 999px 999px 26px 26px;
}
.hero-photo img {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 16%;
  border-radius: 999px 999px 22px 22px;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6);
}
.hero-title { font-size: clamp(2.5rem, 1.4rem + 3.6vw, 4.5rem); max-width: 12.5em; font-weight: 300; }
.hero-title em { color: var(--gold-light); }
.hero-lead { font-size: var(--step-1); line-height: 1.6; color: var(--muted-on-dark); max-width: 32em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: .5rem; }

.hero-foot {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  border-top: 1px solid var(--rule-on-dark);
  padding-block: 1.5rem 0;
}
.movements { display: flex; gap: clamp(1.25rem, 3vw, 3rem); counter-reset: mv; }
.movements li {
  counter-increment: mv;
  font-size: var(--step--1); font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--paper);
  display: flex; align-items: baseline; gap: .6rem;
}
.movements li::before {
  content: counter(mv, decimal-leading-zero);
  font-family: var(--font-display); font-style: italic; font-size: 1rem; letter-spacing: 0;
  color: var(--gold);
}
.scroll-cue {
  font-size: var(--step--1); letter-spacing: .08em; color: var(--muted-on-dark); text-decoration: none;
}
.scroll-cue:hover { color: var(--paper); }

/* Entrada orquestrada do hero */
.hero-kicker, .hero-title, .hero-lead, .hero-actions, .hero-foot {
  animation: rise 1.1s var(--ease) both;
}
.hero-title { animation-delay: .12s; }
.hero-lead { animation-delay: .3s; }
.hero-actions { animation-delay: .45s; }
.hero-foot { animation-delay: .7s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Seções ---------- */
.section { padding-block: var(--section-y); }
.section--paper { background: var(--paper); }
.section--warm { background: var(--paper-warm); }
.section--deep { background: var(--deep-green); color: var(--paper); }
.section--deep, .statement, .invite {
  margin-inline: var(--inset); border-radius: var(--radius-xl); overflow: hidden;
}
.section--deep .lead { color: var(--muted-on-dark); }
.section--deep .display em { color: var(--gold-light); }
.section-head { display: grid; gap: 1.5rem; max-width: 52rem; }

/* ---------- 2 · Reflexão ---------- */
.reflection { display: grid; gap: clamp(3rem, 2rem + 4vw, 6rem); }
.reflection-head { display: grid; gap: 1.75rem; max-width: 60rem; }
.reflection-head .display em { color: var(--emerald); }
.reflection-body {
  display: grid; gap: 3rem;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: start;
  padding-bottom: var(--section-y);
}
.ledger { display: grid; }
.ledger li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  font-family: var(--font-display); font-size: var(--step-2); line-height: 1.2;
  padding-block: 1.05rem;
  border-bottom: 1px solid var(--rule);
}
.ledger li:first-child { border-top: 1px solid var(--rule); }
.ledger-mark { font-family: var(--font-body); font-size: 1rem; color: var(--muted); }
.ledger-open { color: var(--emerald); }
.ledger-open span:first-child { font-style: italic; }
.ledger-open .ledger-mark {
  font-family: var(--font-display); font-size: var(--step-2); color: var(--gold); font-style: italic;
}
.prose-turn {
  font-family: var(--font-display); font-size: var(--step-2); line-height: 1.3;
  color: var(--ink) !important; font-style: italic; margin-top: .5rem;
}

/* ---------- 2b · Rápido e devagar ----------
   Um teste interativo (Frederick, 2005) seguido de um pequeno glossário de vieses. */
#reflexao + .decisions { padding-top: 0; }
.quiz {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 2.5rem clamp(2.5rem, 5vw, 5rem); align-items: center;
}
.quiz-intro { display: grid; gap: 1.25rem; }
.quiz-card {
  display: grid; gap: 1.5rem;
  padding: clamp(1.75rem, 3vw, 2.75rem);
  background: var(--paper-warm); border-radius: var(--radius-xl);
}
.quiz-question { font-family: var(--font-display); font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); line-height: 1.35; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--emerald); }
.quiz-options { display: flex; flex-wrap: wrap; gap: .75rem; }
.quiz-option {
  font: inherit; font-family: var(--font-display); font-size: 1.35rem;
  min-width: 8rem; padding: .7rem 1.5rem; cursor: pointer;
  border-radius: 999px; border: 1px solid var(--emerald);
  background: transparent; color: var(--emerald);
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.quiz-option:hover { background: var(--emerald); color: var(--paper); }
.quiz-option[aria-pressed="true"] { background: var(--emerald); color: var(--paper); }
.quiz-option.is-right { border-color: var(--gold); }
.quiz-result { display: grid; gap: .75rem; }
.quiz-verdict { font-family: var(--font-display); font-style: italic; font-size: 1.35rem; color: var(--emerald); }
.quiz-explain { color: var(--muted); }
.quiz-explain strong { color: var(--ink); font-weight: 600; }
.quiz-explain em { font-style: italic; color: var(--ink); }
.quiz-source { font-size: .75rem; letter-spacing: .04em; color: var(--muted); }
.quiz.is-answered .quiz-result { animation: rise .6s var(--ease) both; }

.biases {
  margin: clamp(4rem, 3rem + 4vw, 6.5rem) 0 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem clamp(2rem, 4vw, 4rem);
}
.bias { display: grid; gap: .75rem; align-content: start; }
.bias dt {
  font-family: var(--font-display); font-style: italic; font-weight: 300;
  font-size: clamp(1.8rem, 1.3rem + 1.4vw, 2.6rem); line-height: 1.05; color: var(--emerald);
}
.bias dd { margin: 0; color: var(--muted); }
.decisions-note {
  margin-top: clamp(3rem, 2rem + 3vw, 4.5rem);
  max-width: 40em; font-family: var(--font-display); font-size: var(--step-1); line-height: 1.45;
  padding-left: 1.25rem; border-left: 2px solid var(--gold);
}
cite { font-style: italic; }

/* ---------- 3 · Visão ---------- */
#reflexao { padding-bottom: 0; }
.dimensions {
  margin-top: clamp(3rem, 2rem + 3vw, 5rem);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2.5rem clamp(1.5rem, 2.5vw, 2.75rem);
  align-items: start;
}
.dimension { display: grid; align-content: start; gap: .9rem; }
.dimension:nth-child(even) { margin-top: 4.5rem; }
.dimension-mark {
  width: 3.5rem; height: 3.5rem; padding: .8rem; margin-bottom: .5rem;
  border-radius: 50%; background: var(--paper-warm);
  fill: none; stroke: var(--emerald); stroke-width: 1.2;
}
.dimension h3 { font-family: var(--font-display); font-weight: 500; font-size: var(--step-2); line-height: 1.15; }
.dimension p { color: var(--muted); font-size: .975rem; }
.dimension--last .dimension-mark { background: var(--deep-green); stroke: var(--gold-light); }
.dimension-note {
  margin-top: .25rem;
  font-family: var(--font-display); font-style: italic; font-size: 1.15rem !important;
  color: var(--emerald) !important;
}

/* Destaque */
.statement { background: var(--emerald); color: var(--paper); overflow: hidden; }
.statement::before {
  content: ""; position: absolute; z-index: -1;
  right: -8rem; top: 50%; width: 34rem; height: 34rem; translate: 0 -50%;
  border: 1px solid rgba(210, 184, 134, .22); border-radius: 50%;
  box-shadow: 0 0 0 5rem rgba(210, 184, 134, .03), 0 0 0 10rem rgba(210, 184, 134, .025);
}
.statement-inner {
  padding-block: clamp(4.5rem, 3rem + 5vw, 7.5rem);
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: 2.5rem 4rem; align-items: end;
}
.statement-text { font-size: var(--step-4); }
.statement-text em { color: var(--gold-light); }
.statement-sub { color: rgba(245, 243, 236, .78); font-size: 1.0625rem; max-width: 28em; }

/* ---------- 3c · Fases da vida ----------
   Gráfico ilustrativo (sem escala) com as estações de Burkhard e as fases financeiras.
   À esquerda (fixo ao rolar): idade, gráfico e setênios. À direita: a leitura do setênio. */
.phases-head { display: grid; gap: 1.5rem; max-width: 50rem; }
.phases-head .display em { color: var(--emerald); }
.phases-head strong { color: var(--emerald); font-weight: 600; }

.ph-board {
  margin-top: clamp(3rem, 2rem + 3vw, 4.5rem);
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 2rem clamp(2rem, 4vw, 4rem); align-items: start;
  padding: clamp(1.5rem, 3vw, 2.75rem);
  background: var(--paper-warm); border-radius: var(--radius-xl);
}
.ph-side { display: grid; gap: 1.1rem; min-width: 0; }
@media (min-width: 821px) and (min-height: 760px) { .ph-side { position: sticky; top: 6.5rem; } }
.ph-age-form { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; }
.ph-age-form label { font-family: var(--font-display); font-size: 1.3rem; }
.ph-age-form input {
  font: inherit; font-family: var(--font-display); font-size: 1.3rem; font-variant-numeric: tabular-nums;
  width: 6.5rem; padding: .4rem 1rem; border-radius: 999px;
  border: 1px solid rgba(19, 70, 52, .35); background: var(--paper); color: var(--ink);
}
.ph-age-form input:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.ph-result { font-family: var(--font-display); font-style: italic; font-size: 1.1rem; color: var(--muted); min-height: 1.6em; }

.ph-figure { margin: 0; display: grid; gap: .75rem; min-width: 0; }
.phases-chart { width: 100%; height: auto; display: block; overflow: visible; }
.row-label { font-family: var(--font-body); font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; fill: var(--muted); }
.row-label--phase { font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: 15px; letter-spacing: 0; text-transform: none; fill: var(--ink); }
.ribbon--spring { fill: #c3d4c1; }
.ribbon--summer { fill: #5f8a73; }
.ribbon--autumn { fill: #c8a668; }
.ribbon--winter { fill: #1f3d31; }
.ribbon--form { fill: #d6d3c8; }
.ribbon--acc { fill: var(--emerald); }
.ribbon--dist { fill: var(--gold); }
.plot { fill: rgba(255, 255, 255, .45); }
.focus { fill: rgba(184, 151, 90, .2); transition: x .45s var(--ease), width .45s var(--ease); }
.grid { stroke: rgba(21, 33, 28, .08); stroke-width: 1; }
.grid--major { stroke: rgba(21, 33, 28, .18); }
.axis { stroke: var(--ink); stroke-width: 1; opacity: .6; }
.tick-label { font-family: var(--font-body); font-size: 12px; text-anchor: middle; fill: var(--muted); font-variant-numeric: tabular-nums; }
.pat-area { fill: rgba(19, 70, 52, .12); }
.pat-line { fill: none; stroke: var(--emerald); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.inc-work { fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; }
.inc-pat { fill: none; stroke: var(--gold); stroke-width: 2; stroke-dasharray: 5 5; }
.turn { stroke: var(--emerald); stroke-width: 1; stroke-dasharray: 2 4; opacity: .6; }
.peak { fill: var(--paper); stroke: var(--emerald); stroke-width: 2; }
.inline { font-family: var(--font-display); font-style: italic; font-size: 15px; }
.inline--pat, .inline--turn { fill: var(--emerald); }
.inline--inc { fill: #8a6a32; }
.inline--muted { fill: var(--muted); font-size: 13.5px; }
.you { transition: transform .5s var(--ease); pointer-events: none; }
.you-line { stroke: #8a6a32; stroke-width: 1.5; stroke-dasharray: 3 4; }
.you-dot { fill: var(--gold); stroke: var(--paper); stroke-width: 3; }
.you-label { font-family: var(--font-body); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; text-anchor: middle; fill: #8a6a32; }
.hit { fill: transparent; cursor: pointer; }
.hit:hover { fill: rgba(184, 151, 90, .08); }
.goal { pointer-events: none; }
.goal-dot { fill: var(--gold); stroke: var(--paper); stroke-width: 1.5; opacity: .55; transform-box: fill-box; transform-origin: center; transition: transform .4s var(--ease), opacity .4s var(--ease); }
.goal-n { font-family: var(--font-body); font-size: 10.5px; font-weight: 700; text-anchor: middle; fill: var(--ink-green); opacity: 0; transition: opacity .3s var(--ease); }
.goal.is-on .goal-dot { transform: scale(2.5); opacity: 1; }
.goal.is-on .goal-n { opacity: 1; }
.ph-goals .goal-list { display: grid; gap: .9rem; }
.ph-goals li { display: grid; grid-template-columns: 1.6rem minmax(0, 1fr); gap: .75rem; align-items: start; }
.goal-badge {
  display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%;
  background: var(--gold); color: var(--ink-green); font-size: .75rem; font-weight: 700; margin-top: .1rem;
}
.goal-name { font-family: var(--font-display); font-size: 1.2rem; line-height: 1.3; color: var(--ink); }
.goal-age { font-family: var(--font-body); font-size: .75rem; letter-spacing: .04em; color: var(--muted); white-space: nowrap; margin-left: .35rem; }
.goal-note { font-size: .925rem; color: #414c46; line-height: 1.5; }
.ph-caption { font-size: .8125rem; color: var(--muted); font-style: italic; }

.ph-tabs-wrap { position: relative; min-width: 0; overflow-x: auto; padding-bottom: .25rem; scroll-behavior: smooth; }
.ph-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .4rem; }
.ph-tab {
  font: inherit; font-size: .8125rem; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap;
  padding: .55rem .5rem; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(19, 70, 52, .25); background: transparent; color: var(--emerald);
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.ph-tab:hover { border-color: var(--emerald); }
.ph-tab.is-active { background: var(--emerald); border-color: var(--emerald); color: var(--paper); }
.ph-tab.is-you { box-shadow: inset 0 0 0 2px var(--gold); }

/* Painel: sem JS, todos os setênios aparecem em sequência */
.ph-panels { display: grid; gap: 3rem; min-width: 0; }
.has-js .ph-panel { display: none; }
.has-js .ph-panel.is-active { display: grid; animation: rise .5s var(--ease) both; }
.ph-panel { display: grid; gap: 1.5rem; align-content: start; }
.ph-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .5rem; }
.ph-age { font-family: var(--font-display); font-style: italic; font-size: 1.2rem; color: var(--gold); margin-right: .35rem; font-variant-numeric: tabular-nums; }
.ph-chip {
  font-size: .625rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  padding: .25rem .6rem; border-radius: 999px; background: var(--paper); color: var(--muted);
}
.ph-chip--primavera { background: #e3ebe0; color: var(--emerald); }
.ph-chip--verao { background: #cfe0d4; color: var(--emerald); }
.ph-chip--outono { background: #ecdcbd; color: #7a5a26; }
.ph-chip--inverno { background: var(--deep-green); color: var(--gold-light); }
.ph-chip--phase { background: transparent; border: 1px solid rgba(21, 33, 28, .15); }
.ph-chip--distribuicao { background: var(--gold); border-color: var(--gold); color: var(--ink-green); }
.ph-chip--you { background: var(--gold); color: var(--ink-green); }
.ph-title { font-size: clamp(2rem, 1.5rem + 1.6vw, 2.9rem); }
.ph-image { font-family: var(--font-display); font-style: italic; font-weight: 300; font-size: 1.3rem; line-height: 1.35; color: var(--emerald); margin-top: -.5rem; }
.ph-block { display: grid; gap: .85rem; }
.ph-block > p { color: #414c46; font-size: .975rem; }
.ph-label { margin: 0; font-family: var(--font-body); font-size: var(--step--1); font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.ph-note {
  display: grid; gap: .3rem; margin-top: .25rem;
  padding: 1rem 1.2rem; border-radius: var(--radius-l);
  background: rgba(255, 255, 255, .6); color: var(--ink); font-size: .925rem; line-height: 1.55;
}
.ph-note span { font-family: var(--font-display); font-style: italic; font-size: 1.15rem; color: var(--emerald); }
.ph-note--bias { background: transparent; border: 1px solid rgba(184, 151, 90, .45); }
.ph-note--bias span { font-family: var(--font-body); font-style: normal; font-size: .6875rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ph-questions { padding-top: 1.25rem; border-top: 1px solid var(--rule); }
.ph-questions ol { display: grid; gap: 1.1rem; }
.q { display: grid; gap: .3rem; }
.q p { font-family: var(--font-display); font-weight: 300; font-size: 1.3rem; line-height: 1.3; color: var(--ink); text-wrap: pretty; }
.q cite { font-style: normal; font-size: .75rem; letter-spacing: .06em; color: var(--muted); }
.q cite::before { content: "— "; }
.q--own p { color: var(--emerald); font-style: italic; }

.phases-foot { margin-top: clamp(3.5rem, 2rem + 4vw, 6rem); display: grid; gap: 1.25rem; max-width: 52rem; }
.phases-turn { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); line-height: 1.25; }
.phases-turn em { color: var(--emerald); }
.phases-turn-sub { color: var(--muted); max-width: 40em; }
.phases-source { font-size: .8125rem; color: var(--muted); max-width: 52em; }

/* ---------- 3d · Fotografia financeira ----------
   Formulário à esquerda, cinco indicadores à direita. Estado (ok/atenção/alerta)
   aparece no selo, na barra e no texto; cor semântica separada do acento da marca. */
.diag-head { display: grid; gap: 1.25rem; max-width: 50rem; }
.diag-head .display em { color: var(--emerald); }
.diag-privacy { display: flex; gap: .6rem; align-items: baseline; font-size: .875rem; color: var(--emerald); }
.diag-privacy span { font-size: .6rem; }
.diag-board {
  margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 2rem clamp(2rem, 4vw, 3.5rem); align-items: start;
}
.diag-form {
  display: grid; gap: 1.1rem; padding: clamp(1.5rem, 2.5vw, 2.25rem);
  background: var(--deep-green); color: var(--paper); border-radius: var(--radius-xl);
}
@media (min-width: 821px) and (min-height: 760px) { .diag-form { position: sticky; top: 6.5rem; } }
.dg-form-title { font-family: var(--font-display); font-size: 1.6rem; }
.dg-field { display: grid; gap: .35rem; }
.dg-field label { font-size: .875rem; font-weight: 600; }
.dg-input {
  display: flex; align-items: center; gap: .5rem;
  padding: .55rem 1rem; border-radius: 999px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(245, 243, 236, .18);
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.dg-input:focus-within { border-color: var(--gold-light); background: rgba(255, 255, 255, .11); }
.dg-input span { font-size: .8125rem; color: var(--muted-on-dark); }
.dg-input input {
  flex: 1; min-width: 0; border: 0; background: transparent; outline: none;
  font: inherit; font-family: var(--font-display); font-size: 1.25rem; color: var(--paper); font-variant-numeric: tabular-nums;
}
.dg-input input::placeholder { color: rgba(245, 243, 236, .3); }
.dg-hint { font-size: .75rem; color: var(--muted-on-dark); line-height: 1.45; }
.dg-example {
  justify-self: start; margin-top: .25rem; font: inherit; font-size: .8125rem; font-weight: 600; cursor: pointer;
  background: none; border: 0; padding: 0; color: var(--gold-light); text-decoration: underline; text-underline-offset: 3px;
}

.diag-results { display: grid; gap: 1rem; min-width: 0; }
.dg-card {
  --state: var(--muted);
  display: grid; gap: .8rem; padding: clamp(1.25rem, 2vw, 1.75rem);
  background: var(--paper-warm); border-radius: var(--radius-l);
  border-left: 4px solid transparent; transition: border-color .4s var(--ease);
}
.dg-card[data-state="ok"] { --state: var(--ok); border-left-color: var(--ok); }
.dg-card[data-state="warn"] { --state: var(--warn); border-left-color: var(--warn); }
.dg-card[data-state="alert"] { --state: var(--alert); border-left-color: var(--alert); }
.dg-card[data-state="info"] { --state: var(--emerald); border-left-color: var(--gold); }
.dg-card-head { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.dg-num { font-family: var(--font-display); font-style: italic; font-size: 1.2rem; color: var(--gold); }
.dg-title { margin: 0; flex: 1; min-width: 12rem; font-family: var(--font-display); font-weight: 400; font-size: 1.35rem; line-height: 1.2; }
.dg-status {
  font-size: .625rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  padding: .3rem .65rem; border-radius: 999px; background: var(--paper); color: var(--state);
  border: 1px solid currentColor;
}
.dg-card:not([data-state]) .dg-status { border-color: var(--rule); color: var(--muted); }
.dg-value { font-family: var(--font-display); font-size: clamp(1.9rem, 1.5rem + 1.2vw, 2.5rem); line-height: 1.05; color: var(--state); font-variant-numeric: tabular-nums; }
.dg-value small { font-family: var(--font-body); font-size: .875rem; color: var(--muted); margin-left: .35rem; }
.dg-meter { position: relative; height: 8px; border-radius: 999px; background: rgba(21, 33, 28, .08); overflow: visible; }
.dg-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 999px; background: var(--state); transition: width .6s var(--ease), background-color .4s var(--ease); }
.dg-ref { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--ink); opacity: 0; transform: translateX(-1px); }
.dg-ref.is-on { opacity: .55; }
.dg-read { color: #414c46; font-size: .95rem; }
.dg-read strong { color: var(--ink); font-weight: 600; }
.dg-formula { display: grid; gap: .15rem; font-size: .8125rem; color: var(--muted); }
.dg-formula span { font-size: .625rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.dg-src { font-size: .75rem; color: var(--muted); font-style: italic; }
.dg-src cite { font-style: normal; }
.dg-milestones { display: flex; flex-wrap: wrap; gap: .35rem; }
.dg-milestones span { font-size: .75rem; font-variant-numeric: tabular-nums; padding: .25rem .55rem; border-radius: 999px; background: var(--paper); color: var(--muted); }
.dg-milestones span.is-next { background: var(--emerald); color: var(--paper); }

.diag-cta {
  display: grid; gap: 1rem; justify-items: start; margin-top: .5rem;
  padding: clamp(1.5rem, 2.5vw, 2rem); border-radius: var(--radius-l); background: var(--emerald); color: var(--paper);
}
.diag-cta p:first-child { font-family: var(--font-display); font-size: 1.3rem; line-height: 1.4; }
.diag-cta-note { font-size: .75rem; color: var(--muted-on-dark); }
.diag-disclaimer { margin-top: 1.5rem; font-size: .8125rem; color: var(--muted); max-width: 52em; }

/* Diagnóstico: linha dupla, casal e 13º */
.dg-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.dg-check { display: flex; align-items: center; gap: .6rem; font-size: .875rem; cursor: pointer; }
.dg-check input { width: 1.05rem; height: 1.05rem; margin: 0; accent-color: var(--gold); }
.dg-couple { display: grid; gap: .6rem; padding: 1rem; border-radius: 16px; background: rgba(255, 255, 255, .06); }
.dg-sep { border: 0; border-top: 1px solid var(--rule-on-dark); margin: .25rem 0; width: 100%; }
.dg-row .dg-input input { font-size: 1.1rem; }
.dg-field { min-width: 0; grid-template-columns: minmax(0, 1fr); }
.dg-input { min-width: 0; }
.dg-input input { width: 100%; }

/* ---------- Podcast: episódios completos ---------- */
.pod-label {
  font-size: var(--step--1); font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 1.25rem;
}
.episodes { margin-top: clamp(3rem, 2rem + 3vw, 4.5rem); }
.ep-feature {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 1.5rem clamp(1.5rem, 3vw, 3rem);
  align-items: center;
}
.ep-stage {
  position: relative; aspect-ratio: 16 / 9; max-width: 100%; overflow: hidden; border-radius: var(--radius-l);
  background: radial-gradient(120% 90% at 20% 10%, rgba(29, 90, 67, .9), transparent 70%), var(--ink-green);
  border: 1px solid var(--rule-on-dark);
}
.ep-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ep-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ep-play {
  position: absolute; inset: 0; margin: auto; width: 5rem; height: 5rem; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--gold); background: rgba(11, 26, 21, .55);
  display: grid; place-items: center; transition: background-color .3s var(--ease), transform .3s var(--ease);
}
.ep-play::before { content: ""; margin-left: 5px; border-left: 18px solid var(--gold-light); border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.ep-play:hover:not(:disabled) { background: var(--gold); transform: scale(1.05); }
.ep-play:hover:not(:disabled)::before { border-left-color: var(--ink-green); }
.ep-play:disabled { cursor: default; opacity: .6; }
.ep-feature.is-draft .ep-stage { border-style: dashed; border-color: rgba(184, 151, 90, .45); }
.ep-info { display: grid; gap: .8rem; align-content: center; min-width: 0; }
.ep-kicker { font-size: var(--step--1); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-on-dark); }
.ep-title { font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.4rem); }
.ep-meta { font-size: .875rem; color: var(--muted-on-dark); }
.ep-desc { color: rgba(245, 243, 236, .82); }
.ep-feature.is-draft .ep-title, .ep-feature.is-draft .ep-meta, .ep-feature.is-draft .ep-desc { opacity: .7; }
.ep-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.ep-link {
  font-size: .8125rem; font-weight: 600; text-decoration: none; color: var(--gold-light);
  padding: .4rem .9rem; border-radius: 999px; border: 1px solid rgba(210, 184, 134, .45);
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.ep-link:hover { background: var(--gold); color: var(--ink-green); }
.ep-list { margin-top: 1.5rem; display: grid; }
.ep-row {
  display: grid; grid-template-columns: 2.5rem minmax(0, 1fr) auto; gap: 1rem; align-items: center;
  padding-block: 1rem; border-top: 1px solid var(--rule-on-dark);
}
.ep-n { font-family: var(--font-display); font-style: italic; font-size: 1.2rem; color: var(--gold); font-variant-numeric: tabular-nums; }
.ep-row-body { display: grid; gap: .15rem; min-width: 0; }
.ep-row-title { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.3; }
.ep-row.is-draft .ep-row-title, .ep-row.is-draft .ep-meta { opacity: .65; }
.cuts { margin-top: clamp(3rem, 2rem + 3vw, 4.5rem); }
.cuts .shelf-wrap { margin-top: 0; }

/* ---------- 6d · Indicações ---------- */
.refer-inner {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 2.5rem clamp(2.5rem, 5vw, 5rem); align-items: center;
}
.refer-text { display: grid; gap: 1.25rem; }
.refer-text .display em { color: var(--emerald); }
.refer-note { color: var(--muted); max-width: 34em; }
.refer-card {
  display: grid; gap: 1.75rem; padding: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--paper-warm); border-radius: var(--radius-xl);
}
.refer-form { display: grid; gap: 1rem; }
.refer-form-title { font-family: var(--font-display); font-weight: 400; font-size: 1.7rem; line-height: 1.15; }
.refer-form-lead { color: var(--muted); font-size: .95rem; margin-top: -.35rem; }
.rf-field { display: grid; gap: .35rem; min-width: 0; }
.rf-field label { font-size: .875rem; font-weight: 600; color: var(--ink); }
.rf-field label span { font-weight: 400; color: var(--muted); }
.rf-field input {
  width: 100%; min-width: 0; font: inherit; font-size: 1rem; color: var(--ink);
  padding: .7rem 1rem; border-radius: 14px; border: 1px solid rgba(19, 70, 52, .25); background: var(--paper);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.rf-field input::placeholder { color: #8a948e; }
.rf-field input:focus-visible { outline: none; border-color: var(--emerald); box-shadow: 0 0 0 3px rgba(184, 151, 90, .35); }
.rf-field input.is-bad { border-color: #a4473b; }
.rf-err { font-size: .8125rem; color: #a4473b; }
.rf-check { display: flex; gap: .7rem; align-items: flex-start; font-size: .9rem; line-height: 1.45; color: var(--ink); cursor: pointer; padding: .25rem 0; }
.rf-check input { flex: none; width: 1.15rem; height: 1.15rem; margin: .15rem 0 0; accent-color: var(--emerald); }
.rf-check.is-bad span { color: #a4473b; }
.rf-submit { justify-self: start; margin-top: .25rem; }
.rf-submit:not(.is-ready) { opacity: .8; }
.rf-note { font-size: .8125rem; color: var(--muted); }
.refer-alt { display: grid; gap: .8rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); }
.refer-alt-title { font-family: var(--font-display); font-size: 1.15rem; }
.refer-alt-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.btn--line { color: var(--emerald); border-color: rgba(19, 70, 52, .35); min-height: 2.75rem; padding: .6rem 1.2rem; font-size: .875rem; }
.btn--line:hover { border-color: var(--emerald); background: var(--emerald); color: var(--paper); }
.refer-copy { display: flex; gap: .5rem; flex: 1; min-width: 15rem; }
.refer-copy input {
  flex: 1; min-width: 0; font: inherit; font-size: .875rem; color: var(--ink);
  padding: .55rem .9rem; border-radius: 999px; border: 1px solid var(--rule); background: var(--paper);
}
.refer-copy-btn {
  font: inherit; font-size: .8125rem; font-weight: 600; cursor: pointer; white-space: nowrap;
  padding: .55rem 1.1rem; border-radius: 999px; border: 1px solid var(--emerald); background: var(--emerald); color: var(--paper);
}
.refer-copy-btn:hover { background: var(--emerald-soft); }

/* ---------- 4 · Processo ----------
   Jornada vertical: uma linha conecta ponto de partida, três etapas e o ciclo de revisão.
   --p (0–1) é a fração da linha preenchida em dourado; o JS atualiza ao rolar. */
.process-intro {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 2rem 4rem; align-items: end;
}
.process-lead { font-size: 1.0625rem; }

.journey {
  --p: 1;
  --node-col: 4rem;
  position: relative;
  margin-top: clamp(3.5rem, 2rem + 4vw, 6rem);
}
.journey::before, .journey::after {
  content: ""; position: absolute; width: 1px;
  left: calc(var(--node-col) / 2 - .5px);
  top: 1.6rem; bottom: 1.6rem;
}
.journey::before { background: var(--rule-on-dark); }
.journey::after {
  background: linear-gradient(180deg, var(--gold), var(--gold-light));
  transform-origin: top; transform: scaleY(var(--p));
}

.j-row {
  position: relative;
  display: grid;
  grid-template-columns: var(--node-col) minmax(0, 4fr) minmax(0, 5fr) minmax(0, 4fr);
  gap: 1.5rem 3rem;
  padding-block: 2.75rem;
}
.j-row--edge { padding-block: 1.75rem; }

.j-node {
  position: relative; z-index: 1;
  justify-self: center; align-self: start;
  width: 1.5rem; height: 1.5rem; margin-top: .35rem;
  border-radius: 50%;
  border: 1px solid var(--gold); background: var(--deep-green);
  display: grid; place-items: center;
  transition: background-color .5s var(--ease), border-color .5s var(--ease);
}
.j-node span {
  border-radius: 50%; background: var(--gold);
  width: .45rem; height: .45rem;
  transition: transform .5s var(--ease), background-color .5s var(--ease);
}
.j-step:nth-child(3) .j-node span { width: .7rem; height: .7rem; }
.j-step:nth-child(4) .j-node span { width: .95rem; height: .95rem; }
.j-node--start { width: .75rem; height: .75rem; margin-top: .45rem; background: var(--gold); }
.j-node--loop { width: 2.25rem; height: 2.25rem; margin-top: 0; }
.j-node--loop svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* estado "ainda não alcançado", só quando o JS acompanha a rolagem */
.journey.is-tracking .j-row:not(.is-reached) .j-node { border-color: var(--rule-on-dark); }
.journey.is-tracking .j-row:not(.is-reached) .j-node span { transform: scale(.4); background: var(--muted-on-dark); }
.journey.is-tracking .j-row:not(.is-reached) .j-node--start { background: var(--deep-green); }
.journey.is-tracking .j-row:not(.is-reached) .j-node--loop svg { stroke: var(--muted-on-dark); }

.j-edge { grid-column: 2 / -1; display: grid; gap: .5rem; max-width: 46rem; }
.j-kicker {
  font-size: var(--step--1); font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold);
}
.j-edge-text { color: var(--muted-on-dark); }

.j-title { display: grid; align-content: start; gap: .35rem; }
.step-index {
  font-family: var(--font-display); font-style: italic; font-size: 1.15rem; color: var(--gold);
}
.step-title { font-size: clamp(2.4rem, 1.6rem + 2.4vw, 3.6rem); }
.step-sub {
  font-size: var(--step--1); font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-light);
}
.j-body { display: grid; align-content: start; gap: 1rem; }
.j-question {
  font-family: var(--font-display); font-style: italic; font-weight: 300;
  font-size: var(--step-2); line-height: 1.2; color: var(--gold-light);
}
.step-text { color: var(--muted-on-dark); max-width: 28em; }
.process-cta {
  margin-top: 2rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.process-cta-text { font-family: var(--font-display); font-size: var(--step-2); }

/* ---------- 5 · Para quem ----------
   A lista vira texto corrido, frases alternando tinta e esmeralda. */
.audience { display: grid; gap: 2.5rem; }
.audience-head { display: grid; gap: 1.25rem; max-width: 46rem; }
.audience-list {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(1.6rem, 1.1rem + 1.7vw, 2.55rem); line-height: 1.38; letter-spacing: -.01em;
  max-width: 62rem;
}
.audience-list li { display: inline; }
.audience-list li:nth-child(even) { color: var(--emerald); font-style: italic; }
.audience-list li:not(:last-child)::after {
  content: ""; display: inline-block; width: .32em; height: .32em; border-radius: 50%;
  background: var(--gold); margin: 0 .55em; vertical-align: .22em;
}
.audience-close { display: grid; gap: 1.25rem; justify-items: start; color: var(--muted); max-width: 36em; }

/* ---------- 6 · Sobre ---------- */
.about {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 3rem clamp(3rem, 2rem + 5vw, 7rem); align-items: start;
}
.portrait { position: sticky; top: 7rem; display: grid; gap: 1rem; }
.portrait-frame {
  position: relative; aspect-ratio: 4 / 5; max-width: 100%;
  background: var(--deep-green); overflow: hidden;
  border-radius: 999px 999px var(--radius-l) var(--radius-l);
}
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.portrait-placeholder {
  position: absolute; inset: 0; display: grid; place-items: center;
  background:
    radial-gradient(90% 70% at 30% 20%, rgba(29, 90, 67, .7), transparent 70%),
    var(--deep-green);
}
.portrait-placeholder svg {
  position: absolute; inset: 1.25rem; width: calc(100% - 2.5rem); height: calc(100% - 2.5rem);
  fill: none; stroke: rgba(210, 184, 134, .4); stroke-width: .4; vector-effect: non-scaling-stroke;
}
.portrait-placeholder span {
  font-size: var(--step--1); letter-spacing: .18em; text-transform: uppercase; color: var(--muted-on-dark);
}
.portrait figcaption { font-size: var(--step--1); letter-spacing: .08em; color: var(--muted); }
.about-text { display: grid; gap: 1.75rem; justify-items: start; }
.about-text .display em { color: var(--emerald); }
.signature {
  font-family: var(--font-display); font-style: italic; font-size: 2.1rem; color: var(--emerald);
  line-height: 1;
}


/* TCC como objeto: capa de monografia em papel, levemente inclinada */
.thesis-feature {
  margin-top: clamp(4.5rem, 3rem + 5vw, 7.5rem);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 3rem clamp(3rem, 2rem + 5vw, 7rem); align-items: center;
}
.cover { margin: 0; display: grid; place-items: center; padding: 1.5rem 0; }
.cover-page {
  width: min(100%, 22rem); aspect-ratio: 210 / 297;
  display: grid; grid-template-rows: auto 1fr auto auto; justify-items: center; text-align: center;
  gap: 1rem; padding: 2.25rem 1.75rem;
  background: #fbfaf6; color: #222;
  font-family: "Times New Roman", Times, serif;
  border-radius: 4px;
  box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 24px 50px -22px rgba(11, 26, 21, .45), 14px 14px 0 -2px var(--paper), 14px 14px 0 -1px rgba(184,151,90,.45);
  transform: rotate(-3deg);
  transition: transform .6s var(--ease);
}
.cover:hover .cover-page { transform: rotate(-1deg) translateY(-4px); }
.cover-inst { font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; line-height: 1.5; }
.cover-author { align-self: center; font-size: .85rem; }
.cover-title { font-size: .95rem; line-height: 1.45; }
.cover-place { font-size: .72rem; line-height: 1.5; margin-top: 1rem; }
.thesis-text { display: grid; gap: 1.5rem; justify-items: start; }
.thesis-label { font-size: var(--step--1); font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.thesis-quote { margin: 0; }
.thesis-quote p {
  font-family: var(--font-display); font-weight: 300; font-style: italic;
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); line-height: 1.25; color: var(--emerald);
}
.thesis-body { color: var(--muted); max-width: 34em; }
.thesis-topics { display: grid; gap: .9rem; width: 100%; }
.thesis-topics li { display: grid; gap: .1rem; font-family: var(--font-display); font-size: 1.25rem; line-height: 1.25; }
.thesis-topics span { font-family: var(--font-body); font-size: .8125rem; color: var(--muted); }

/* ---------- 6 · Trajetória ----------
   Linha do tempo horizontal: uma linha dourada liga as paradas; no celular, desliza. */
#sobre + .path { margin-top: clamp(2rem, 4vw, 3.5rem); }
.path-head { display: grid; gap: 1rem; max-width: 40rem; }
.path-scroll {
  margin-top: clamp(3rem, 2rem + 3vw, 4.5rem);
  overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem;
  scrollbar-width: thin; scrollbar-color: rgba(184, 151, 90, .5) transparent;
}
.path-track {
  position: relative;
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(13.5rem, 1fr);
  gap: 2rem;
  padding-top: 1.75rem;
}
.path-track::before {
  content: ""; position: absolute; left: 0; right: 0; top: .35rem; height: 1px;
  background: linear-gradient(90deg, var(--gold), rgba(184, 151, 90, .3));
}
.stop { position: relative; display: grid; align-content: start; gap: .6rem; scroll-snap-align: start; min-width: 0; }
.stop::before {
  content: ""; position: absolute; left: 0; top: calc(-1.75rem + .05rem);
  width: .65rem; height: .65rem; border-radius: 50%;
  background: var(--deep-green); border: 1px solid var(--gold);
}
.stop:nth-last-child(-n+2)::before { background: var(--gold); }
.stop-year { font-family: var(--font-display); font-style: italic; font-size: 1.15rem; color: var(--gold); font-variant-numeric: tabular-nums; }
.stop-figure { font-family: var(--font-display); font-weight: 300; font-size: 1.4rem; line-height: 1; color: var(--muted-on-dark); }
.stop-figure span { font-size: clamp(3rem, 2.2rem + 2.4vw, 4.4rem); color: var(--paper); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stop-figure--word { font-size: clamp(1.9rem, 1.5rem + 1.2vw, 2.5rem); color: var(--paper); line-height: 1.15; min-height: clamp(3rem, 2.2rem + 2.4vw, 4.4rem); display: flex; align-items: flex-end; }
.stop-name { font-family: var(--font-display); font-weight: 400; font-size: 1.2rem; line-height: 1.3; color: var(--gold-light); margin-top: .4rem; }
.stop-detail { font-size: .9rem; line-height: 1.55; color: var(--muted-on-dark); }

/* ---------- 7 · Convite ---------- */
.invite {
  background:
    radial-gradient(70% 90% at 50% 120%, rgba(184, 151, 90, .16), transparent 60%),
    radial-gradient(80% 80% at 10% 0%, rgba(29, 90, 67, .6), transparent 60%),
    var(--emerald);
  color: var(--paper);
  overflow: hidden;
}
.invite-inner {
  padding-block: clamp(6rem, 4rem + 8vw, 11rem);
  display: grid; gap: 2rem; justify-items: start; max-width: 1220px;
}
.invite .display { max-width: 15em; }
.invite .display em { color: var(--gold-light); }
.invite-text { font-size: var(--step-1); line-height: 1.6; color: rgba(245, 243, 236, .78); max-width: 34em; }
.invite-note { font-size: .9rem; color: var(--muted-on-dark); max-width: 34em; }

/* ---------- 8 · Rodapé ---------- */
.site-footer {
  background: var(--ink-green); color: var(--paper);
  padding-block: clamp(4.5rem, 3rem + 5vw, 7rem) calc(2rem + env(safe-area-inset-bottom, 0px));
}
.footer-thesis {
  font-size: var(--step-3); max-width: 16em; color: var(--paper);
  padding-bottom: clamp(3rem, 2rem + 3vw, 5rem);
  border-bottom: 1px solid var(--rule-on-dark);
}
.footer-thesis em { color: var(--gold-light); }
.footer-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem;
  padding-block: 2.75rem;
}
.footer-name { font-weight: 600; letter-spacing: .26em; text-transform: uppercase; font-size: .9375rem; }
.footer-role { font-family: var(--font-display); font-style: italic; font-size: 1.15rem; color: var(--gold-light); }
.footer-motto { font-family: var(--font-display); font-size: 1.3rem; line-height: 1.35; color: var(--muted-on-dark); }
.footer-links { display: grid; gap: .6rem; justify-items: end; }
.footer-links a {
  text-decoration: none; color: var(--paper); font-size: .9375rem;
  border-bottom: 1px solid transparent; transition: border-color .3s var(--ease), color .3s var(--ease);
}
.footer-links a:hover { color: var(--gold-light); border-color: currentColor; }
.footer-links span { color: var(--muted-on-dark); }
.footer-legal {
  font-size: .8125rem; color: var(--muted-on-dark);
  border-top: 1px solid var(--rule-on-dark); padding-top: 1.75rem;
}


/* ---------- 3b · Quatro pilares ----------
   Composição centrada: arcos concêntricos, cada camada apoiada na anterior.
   Base (organização, proteção) em verde sólido; crescimento em contorno dourado. */
#pilares { padding-top: var(--section-y); }
.pillars { display: grid; gap: clamp(3rem, 2rem + 3vw, 4.5rem); }
.pillars-head { display: grid; gap: 1.5rem; justify-items: center; text-align: center; max-width: 48rem; margin-inline: auto; }
.pillars-head .lead { margin-inline: auto; }
.arches { margin: 1rem 0 0; width: min(100%, 36rem); display: grid; gap: 1rem; justify-items: center; }
.arches svg { width: 100%; height: auto; display: block; }
.arch { stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.arch--4 { fill: var(--paper); stroke: var(--gold); stroke-dasharray: 5 5; }
.arch--3 { fill: #efe8d8; stroke: var(--gold); }
.arch--2 { fill: var(--deep-green); stroke: none; }
.arch--1 { fill: var(--ink-green); stroke: none; }
.arch-ground { stroke: var(--rule); }
.arch-label { font-family: var(--font-display); font-size: 15px; text-anchor: middle; fill: var(--ink); }
.arch-label--light { fill: var(--paper); }
.arches figcaption {
  display: flex; align-items: center; gap: .5rem;
  font-size: var(--step--1); letter-spacing: .08em; color: var(--muted);
}
.dot { display: inline-block; width: .7rem; height: .7rem; border-radius: 50%; margin-left: .75rem; }
.dot:first-child { margin-left: 0; }
.dot--base { background: var(--deep-green); }
.dot--growth { border: 1px solid var(--gold); background: #efe8d8; }

.pillars-list {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem clamp(2rem, 5vw, 5rem);
}
.pillar-group { display: grid; gap: 1.75rem; align-content: start; }
.pillar-group-label {
  font-size: var(--step--1); font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold);
}
.pillar { display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 1rem; }
.pillar-num { font-family: var(--font-display); font-style: italic; font-size: 1.6rem; line-height: 1.1; color: var(--gold); }
.pillar-body { display: grid; gap: .6rem; }
.pillar h3 { font-family: var(--font-display); font-weight: 500; font-size: var(--step-2); line-height: 1.15; }
.pillar-body > p { color: var(--muted); max-width: 36em; }
.pillar-body > .pillar-items { font-size: .9rem; color: var(--emerald); }
.pillars-note {
  grid-column: 1 / -1; justify-self: center; text-align: center; max-width: 44rem;
  padding: 1.75rem 2.25rem; border-radius: var(--radius-l);
  background: var(--deep-green); color: var(--paper);
  font-family: var(--font-display); font-size: var(--step-1); line-height: 1.45;
}

/* Processo: detalhes práticos */
.step-detail {
  display: grid; align-content: start; gap: .7rem;
  padding-top: .5rem;
}
.step-detail li {
  position: relative; padding-left: 1.1rem;
  font-size: .9rem; line-height: 1.5; color: rgba(245, 243, 236, .82);
}
.step-detail li::before {
  content: ""; position: absolute; left: 0; top: .7em; width: .5rem; height: 1px; background: var(--gold);
}

/* ---------- 6a · Podcast ----------
   Prateleira de cortes verticais (9:16), como uma fileira de Reels. */
.podcast-head {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: 2rem 4rem; align-items: center;
}
.podcast-head .section-head { justify-items: start; }
.podcast-photo {
  margin: 0; position: relative; aspect-ratio: 4 / 5; max-width: 100%; overflow: hidden;
  border-radius: var(--radius-xl) var(--radius-xl) var(--radius-xl) 6px;
}
.podcast-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.podcast-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(15, 42, 33, .45));
}
.text-link--light { color: var(--gold-light); }
.text-link--light:hover { color: var(--paper); }
.is-draft-text { opacity: .75; }

.shelf-wrap {
  margin-top: clamp(3rem, 2rem + 3vw, 4.5rem);
  overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: thin; scrollbar-color: rgba(184, 151, 90, .5) transparent;
  padding-bottom: 1rem;
}
.shelf {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: minmax(13rem, calc((100% - 3 * 1.5rem) / 4));
  gap: 1.5rem;
}
.clip { scroll-snap-align: start; min-width: 0; }
.clip-card { display: grid; gap: .75rem; text-decoration: none; color: inherit; }
.clip-frame {
  position: relative; aspect-ratio: 9 / 16; max-width: 100%; overflow: hidden;
  border-radius: var(--radius-l);
  background:
    radial-gradient(120% 70% at 30% 15%, rgba(29, 90, 67, .9), transparent 70%),
    var(--ink-green);
  border: 1px solid var(--rule-on-dark);
}
.clip-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.clip-frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(11, 26, 21, .65));
}
.clip-play {
  position: absolute; z-index: 1; left: 1rem; bottom: 1rem;
  width: 3rem; height: 3rem; border-radius: 50%;
  border: 1px solid var(--gold); background: rgba(11, 26, 21, .5);
  display: grid; place-items: center;
  transition: background-color .3s var(--ease);
}
.clip-play::before {
  content: ""; margin-left: 3px;
  border-left: 11px solid var(--gold-light);
  border-top: 7px solid transparent; border-bottom: 7px solid transparent;
}
a.clip-card:hover .clip-play { background: var(--gold); }
a.clip-card:hover .clip-play::before { border-left-color: var(--ink-green); }
a.clip-card:hover .clip-title { color: var(--gold-light); }
.clip-title { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.25; transition: color .3s var(--ease); }
.clip-detail { font-size: .8125rem; letter-spacing: .04em; color: var(--muted-on-dark); }
.clip.is-draft .clip-frame { border-style: dashed; border-color: rgba(184, 151, 90, .45); }
.clip.is-draft .clip-title, .clip.is-draft .clip-detail { opacity: .7; }

/* ---------- 6b · Depoimentos ----------
   Citações soltas, sem caixas: a primeira em destaque, as demais em duas colunas. */
.testimonial-list {
  margin-top: clamp(3rem, 2rem + 3vw, 4.5rem);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3.5rem clamp(2rem, 5vw, 5rem);
}
.testimonial { position: relative; margin: 0; display: grid; gap: 1.25rem; padding-left: 3.25rem; align-content: start; }
.testimonial:first-child { grid-column: 1 / -1; max-width: 56rem; }
.testimonial-mark {
  position: absolute; left: 0; top: -.1em;
  font-family: var(--font-display); font-size: 4.5rem; line-height: 1; color: var(--gold);
}
.testimonial-text { margin: 0; }
.testimonial-text p { font-family: var(--font-display); font-weight: 300; font-size: 1.4rem; line-height: 1.45; color: var(--ink); }
.testimonial:first-child .testimonial-text p { font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.5rem); line-height: 1.3; }
.testimonial-author { display: grid; gap: .1rem; }
.testimonial-name { font-weight: 600; font-size: .9375rem; }
.testimonial-context { font-size: .8125rem; color: var(--muted); }
.testimonial.is-draft {
  padding: 3rem 1.75rem 1.75rem 4.5rem;
  border: 1px dashed rgba(184, 151, 90, .6); border-radius: var(--radius-l);
}
.testimonial.is-draft .testimonial-mark { left: 1.25rem; top: 2.75rem; }
.testimonial.is-draft .testimonial-text p, .testimonial.is-draft .testimonial-author { color: var(--muted); }

.draft-tag {
  position: absolute; z-index: 2; top: .75rem; right: .75rem;
  font-size: .625rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  padding: .25rem .55rem; border-radius: 999px;
  background: var(--gold); color: var(--ink-green);
}

/* ---------- 6c · Perguntas ---------- */
.faq {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 3rem clamp(3rem, 2rem + 5vw, 7rem); align-items: start;
}
.faq-head { display: grid; gap: 1.5rem; }
.faq-list { border-top: 1px solid var(--rule); }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem;
  padding-block: 1.4rem;
  font-family: var(--font-display); font-size: var(--step-1); line-height: 1.3;
  transition: color .3s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; flex: none;
  font-family: var(--font-body); font-weight: 400; font-size: 1.4rem; line-height: 1; color: var(--gold);
  transition: transform .3s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--emerald); }
.faq-item p { color: var(--muted); padding-bottom: 1.5rem; max-width: 38em; }

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed; z-index: 60;
  right: calc(1.25rem + env(safe-area-inset-right, 0px));
  bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: .6rem;
  height: 3.25rem; padding: 0 1.25rem 0 1rem;
  background: var(--gold); color: var(--ink-green);
  border-radius: 999px; text-decoration: none;
  font-size: .875rem; font-weight: 600; letter-spacing: .04em;
  box-shadow: 0 10px 30px -10px rgba(11, 26, 21, .55);
  transition: background-color .3s var(--ease), transform .3s var(--ease);
}
.wa-float:hover { background: var(--gold-light); transform: translateY(-2px); }
.wa-float svg { width: 1.35rem; height: 1.35rem; fill: currentColor; }

/* ---------- Animação ao rolar ----------
   O conteúdo é sempre visível em repouso; a classe .is-in apenas toca a entrada. */
.reveal.is-in { animation: rise 1s var(--ease) both; }
.dimensions .reveal.is-in:nth-child(2) { animation-delay: .12s; }
.dimensions .reveal.is-in:nth-child(3) { animation-delay: .24s; }
.dimensions .reveal.is-in:nth-child(4) { animation-delay: .36s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 820px) {
  .pillars, .faq, .podcast-head, .quiz, .ph-board, .diag-board, .ep-feature, .refer-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-photo { order: -1; justify-self: start; width: min(46%, 11rem); margin: 14px 0 0 0; }
  .hero-photo::before { inset: -10px 10px 10px -10px; }
  .ph-tabs { display: flex; }
  .ph-tab { flex: none; padding: .55rem .85rem; font-size: .875rem; }
  .tick-label { display: none; font-size: 26px; }
  .tick-label--key { display: inline; }
  .row-label { font-size: 17px; letter-spacing: .06em; }
  .row-label--phase { font-size: 21px; }
  .inline { font-size: 22px; }
  .ph-board { padding: 1.25rem; }
  .inline--muted, .inline--late { display: none; }
  .you-label { font-size: 24px; }
  .goal.is-on .goal-dot { transform: scale(2.6); }
  .goal-n { font-size: 12px; y: 4.4px; }
  .pat-line { stroke-width: 4.5; }
  .inc-work, .inc-pat { stroke-width: 3.5; }
  .biases { grid-template-columns: minmax(0, 1fr); }
  .shelf { grid-auto-columns: minmax(12rem, 62%); gap: 1rem; }
  .podcast-photo { max-width: 26rem; aspect-ratio: 1 / 1; }
  .pillars-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .ep-row { grid-template-columns: 2rem minmax(0, 1fr); }
  .rf-submit { justify-self: stretch; }
  .refer-copy { min-width: 0; flex-basis: 100%; }
  .btn--line { width: 100%; }
  .ep-row .ep-links { grid-column: 2; }
  .dg-row { grid-template-columns: minmax(0, 1fr); }
  .pillar { grid-template-columns: 2.25rem minmax(0, 1fr); }
  .pillars-list, .testimonial-list { grid-template-columns: minmax(0, 1fr); }
  .testimonial { padding-left: 2.5rem; }
  .testimonial-mark { font-size: 3.5rem; }
}

@media (max-width: 1024px) {
  .j-row { grid-template-columns: var(--node-col) minmax(0, 1fr) minmax(0, 1.3fr); }
  .step-detail { grid-column: 3; }
  .j-step .step-detail { grid-row: 2; }
  .nav { display: none; }
  .dimensions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dimension:nth-child(even) { margin-top: 3rem; }
  .dimension:nth-child(3) { margin-top: -1.5rem; }
  .statement-inner { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 820px) {
  .reflection-body, .audience, .about { grid-template-columns: minmax(0, 1fr); }
  .audience-head { position: static; }
  .audience-close { grid-column: 1; }
  .about .portrait { max-width: 26rem; position: static; }
  .thesis-feature { grid-template-columns: minmax(0, 1fr); }
  .path-track { grid-auto-columns: minmax(15rem, 78%); gap: 1.5rem; }
  .process-intro { grid-template-columns: minmax(0, 1fr); }
  .journey { --node-col: 2.25rem; }
  .j-row { grid-template-columns: var(--node-col) minmax(0, 1fr); gap: 1.25rem 1rem; }
  .j-title, .j-body, .step-detail, .j-edge { grid-column: 2; }
  .j-title, .j-step .j-node { grid-row: 1; }
  .j-step .j-body, .j-step .step-detail { grid-row: auto; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-links { justify-items: start; }
  .hero-geometry { width: 150%; right: -45%; opacity: .45; }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .wordmark-role { display: none; }
  .header-cta { padding: .5rem .85rem; }
  .hero { min-height: auto; padding-top: calc(env(safe-area-inset-top, 0px) + 7.5rem); }
  .hero-actions .btn { width: 100%; }
  .movements { gap: 1rem; flex-wrap: wrap; }
  .movements li { letter-spacing: .14em; }
  .dimensions { grid-template-columns: minmax(0, 1fr); }
  .dimension:nth-child(n) { margin-top: 0; }
  .ledger li { font-size: 1.35rem; }
  .btn--large { width: 100%; padding-inline: 1.25rem; }
  .wa-float { width: 3.5rem; height: 3.5rem; padding: 0; justify-content: center; }
  .wa-float-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
