/* ============================================================
   GFACTOR — Design System v5.1 / v5.3
   Claro, legível, consciência antes de oferta · modo noturno em html[data-theme="night"]
   ============================================================ */

:root {
  --bg: #f7f4ee;
  --bg-2: #efeae0;
  --card: #ffffff;
  --line: #e0d9cb;
  --line-2: #cfc6b4;
  --fg: #1a1e22;
  --fg-2: #4a5056;
  --fg-3: #767c80;
  --ocre: #b07a22;
  --ocre-bg: #f7ead2;
  --teal: #2c6b66;
  --teal-bg: #e1efed;
  --loss: #b8472f;
  --loss-bg: #f8e4de;
  --ink: #1d2328;
  --on-ink: #ffffff;
  --paper-rgb: 247,244,238;
  --card-rgb: 255,255,255;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Libre Franklin', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1240px;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(26,30,34,.04), 0 10px 30px -18px rgba(26,30,34,.18);
  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 140px; }
body { font-family: var(--font-body); background: var(--bg); color: var(--fg); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--ocre-bg); }
:focus-visible { outline: 2px solid var(--ocre); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--ocre); display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ''; width: 24px; height: 1px; background: currentColor; }
.h1, .h2, .h3 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.02em; }
.h1 { font-size: clamp(40px, 5.4vw, 76px); line-height: 1.04; }
.h2 { font-size: clamp(30px, 3.8vw, 52px); line-height: 1.08; }
.h3 { font-size: clamp(22px, 2vw, 28px); line-height: 1.18; letter-spacing: -0.01em; }
em.hl { font-style: italic; color: var(--ocre); }
.lead { font-size: clamp(17px, 1.4vw, 20px); color: var(--fg-2); max-width: 660px; }
.mono { font-family: var(--font-mono); }

.btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 24px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); font-weight: 600; font-size: 15px; transition: all .2s var(--ease); }
.btn:hover { border-color: var(--fg); transform: translateY(-1px); }
.btn--primary { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.btn--primary:hover { background: var(--ocre); border-color: var(--ocre); }
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn .arr { transition: transform .2s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; background: rgba(var(--paper-rgb),.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 20px; }
.nav__logo img { width: 124px; height: 38px; object-fit: cover; object-position: 50% 45%; }
.nav__links { display: flex; gap: 26px; font-size: 15px; color: var(--fg-2); }
.nav__links a:hover { color: var(--fg); }
.nav__menu { display: none; font-size: 22px; }
@media (max-width: 960px) {
  .nav__links { position: fixed; inset: 68px 0 auto 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: all .25s var(--ease); }
  .nav__links a { padding: 16px var(--gutter); border-top: 1px solid var(--line); }
  .nav.open .nav__links { opacity: 1; visibility: visible; transform: none; }
  .nav__menu { display: block; }
  .nav .btn { display: none; }
}

section { position: relative; }
.sec { padding: clamp(72px, 9vw, 120px) 0; }
.sec--alt { background: var(--bg-2); }
.sec-head { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: end; margin-bottom: clamp(36px, 5vw, 60px); }
.sec-head .eyebrow { margin-bottom: 18px; }
@media (max-width: 860px) { .sec-head { grid-template-columns: 1fr; gap: 16px; } }

/* ---------- Hero ---------- */
.hero { padding: 140px 0 72px; }
.hero__inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: center; }
.hero .eyebrow { margin-bottom: 24px; }
.hero .lead { margin-top: 26px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__note { margin-top: 18px; font-size: 14px; color: var(--fg-3); }
.signals { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.signals__h { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 14px; }
.signals ul { list-style: none; display: grid; }
.signals li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); cursor: pointer; font-size: 16px; color: var(--fg-2); transition: color .2s; }
.signals li:first-child { border-top: 0; }
.signals li:hover { color: var(--fg); }
.signals .box { flex: 0 0 20px; height: 20px; margin-top: 3px; border: 1.5px solid var(--line-2); border-radius: 5px; display: grid; place-items: center; font-size: 12px; color: var(--on-ink); transition: all .2s; }
.signals li.on { color: var(--fg); }
.signals li.on .box { background: var(--loss); border-color: var(--loss); }
.signals li.on .box::after { content: '✓'; }
.signals__out { margin-top: 16px; padding: 14px 16px; border-radius: 10px; background: var(--bg); font-size: 15px; color: var(--fg-2); min-height: 52px; }
.signals__out b { color: var(--fg); }
@media (max-width: 960px) { .hero__inner { grid-template-columns: 1fr; gap: 40px; } .hero { padding-top: 110px; } }

/* ---------- Seletor (perfil + segmento) ---------- */
.picker { position: sticky; top: 68px; z-index: 40; background: rgba(var(--paper-rgb),.95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.picker__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap; padding: 12px 0; }
.picker__group { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.picker__label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); }
.seg { display: inline-flex; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 3px; flex-wrap: wrap; }
.seg button { padding: 7px 14px; border-radius: 999px; font-size: 14px; color: var(--fg-2); transition: all .2s; white-space: nowrap; }
.seg button:hover { color: var(--fg); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }
@media (max-width: 700px) {
  .picker__inner { padding: 10px 0; gap: 8px; }
  .picker__label { display: none; }
  .seg { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
  .seg button { padding: 6px 11px; font-size: 13px; }
  .picker__group { width: 100%; }
}

/* ---------- Perfis ---------- */
.profiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.profile { text-align: left; background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 24px; transition: all .2s var(--ease); display: grid; gap: 8px; }
.profile:hover { border-color: var(--line-2); transform: translateY(-2px); }
.profile[aria-pressed="true"] { border-color: var(--ink); box-shadow: var(--shadow); }
.profile__k { font-weight: 700; font-size: 17px; display: flex; justify-content: space-between; align-items: center; }
.profile__k::after { content: ''; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--line-2); }
.profile[aria-pressed="true"] .profile__k::after { background: var(--ink); border-color: var(--ink); box-shadow: inset 0 0 0 3px var(--card); }
.profile__d { font-size: 15px; color: var(--fg-2); }
@media (max-width: 760px) { .profiles { grid-template-columns: 1fr; } }

/* Variantes por perfil/segmento */
[data-p], [data-s] { display: none; }
body[data-profile="dono"] [data-p="dono"],
body[data-profile="gestor"] [data-p="gestor"],
body[data-profile="time"] [data-p="time"],
body[data-seg="industria"] [data-s="industria"],
body[data-seg="distribuicao"] [data-s="distribuicao"],
body[data-seg="varejo"] [data-s="varejo"],
body[data-seg="servicos"] [data-s="servicos"] { display: inline; }

/* ---------- Dores (dor + custo + direção juntos) ---------- */
.pains { display: grid; gap: 22px; }
.pain { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); display: grid; grid-template-columns: 1.15fr 1fr 1.05fr; overflow: hidden; }
.pain > div { padding: clamp(22px, 2.6vw, 34px); }
.pain__col-h { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.pain__col-h i { width: 8px; height: 8px; border-radius: 50%; }
.pain__dor .pain__col-h { color: var(--fg-3); }
.pain__dor .pain__col-h i { background: var(--fg-3); }
.pain__cost { background: var(--loss-bg); border-left: 1px solid var(--line); }
.pain__cost .pain__col-h { color: var(--loss); }
.pain__cost .pain__col-h i { background: var(--loss); }
.pain__dir { background: var(--teal-bg); border-left: 1px solid var(--line); }
.pain__dir .pain__col-h { color: var(--teal); }
.pain__dir .pain__col-h i { background: var(--teal); }
.pain__tag { display: inline-block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--ocre-bg); color: var(--ocre); margin-bottom: 14px; }
.pain__q { font-family: var(--font-display); font-style: italic; font-size: 19px; color: var(--fg-2); margin-top: 12px; line-height: 1.35; }
.pain__feel { margin-top: 16px; font-size: 16px; }
.pain__feel b { font-weight: 600; }
.pain__ex { margin-top: 14px; padding: 14px 16px; border-radius: 10px; background: var(--bg); font-size: 15px; color: var(--fg-2); }
.pain__ex small { display: block; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 4px; }
.pain__ctext { font-size: 15.5px; color: var(--fg-2); }
.calc { display: grid; gap: 18px; margin-top: 18px; }
.calc__f label { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--fg-2); margin-bottom: 8px; }
.calc__f label b { font-family: var(--font-mono); font-weight: 500; color: var(--fg); white-space: nowrap; }
.calc__out { border-top: 1px dashed rgba(184,71,47,.35); padding-top: 16px; }
.calc__out small { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--loss); }
.calc__big { font-family: var(--font-display); font-size: clamp(36px, 3.4vw, 48px); line-height: 1.05; letter-spacing: -0.03em; color: var(--loss); margin-top: 4px; }
.calc__note { font-size: 12.5px; color: var(--fg-3); margin-top: 8px; line-height: 1.45; }
.nocalc__big { font-family: var(--font-display); font-size: 26px; line-height: 1.2; color: var(--loss); margin-top: 18px; letter-spacing: -0.01em; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 4px; background: rgba(184,71,47,.2); outline: none; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 2px solid var(--loss); cursor: grab; box-shadow: 0 2px 6px rgba(0,0,0,.12); }
input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid var(--loss); cursor: grab; }
.pain__dir ol { list-style: none; counter-reset: s; display: grid; gap: 12px; }
.pain__dir li { counter-increment: s; display: grid; grid-template-columns: 26px 1fr; gap: 10px; font-size: 15.5px; }
.pain__dir li::before { content: counter(s); width: 24px; height: 24px; border-radius: 50%; background: var(--teal); color: var(--on-ink); font-size: 12px; font-weight: 700; display: grid; place-items: center; margin-top: 1px; }
.pain__gf { margin-top: 18px; padding-top: 16px; border-top: 1px dashed rgba(44,107,102,.35); font-size: 15px; color: var(--fg-2); }
.pain__gf b { color: var(--teal); }
.pain__dir .btn { margin-top: 16px; background: var(--teal); border-color: var(--teal); color: var(--on-ink); }
.pain__dir .btn:hover { background: var(--ink); border-color: var(--ink); }
@media (max-width: 1020px) {
  .pain { grid-template-columns: 1fr 1fr; }
  .pain__dor { grid-column: 1 / -1; }
  .pain__cost { border-left: 0; border-top: 1px solid var(--line); }
  .pain__dir { border-top: 1px solid var(--line); }
}
@media (max-width: 680px) {
  .pain { grid-template-columns: 1fr; }
  .pain__dir { border-left: 0; }
}
.pains__total { margin-top: 28px; background: var(--ink); color: var(--on-ink); border-radius: var(--radius); padding: 24px 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; }
.pains__total span { color: #c9cdd0; font-size: 15px; max-width: 560px; }
.pains__total b { font-family: var(--font-display); font-weight: 500; font-size: clamp(30px, 3vw, 40px); color: #f2c97d; letter-spacing: -0.02em; }

/* ---------- Mudança de olhar ---------- */
.shift { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.shift__col { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); }
.shift__col h3 { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; color: var(--fg-3); }
.shift__col:last-child { border-color: var(--teal); background: var(--teal-bg); }
.shift__col:last-child h3 { color: var(--teal); }
.shift ul { list-style: none; display: grid; gap: 14px; }
.shift li { font-family: var(--font-display); font-size: clamp(19px, 1.8vw, 23px); line-height: 1.25; }
.shift__col:first-child li { color: var(--fg-3); }
.shift__col:last-child li::before { content: '→ '; color: var(--teal); }
@media (max-width: 760px) { .shift { grid-template-columns: 1fr; } }

/* ---------- Prova ---------- */
.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.feat__v { font-family: var(--font-display); font-size: clamp(42px, 4.4vw, 62px); letter-spacing: -0.035em; line-height: 1; }
.feat__v sup { font-size: .36em; color: var(--ocre); vertical-align: top; margin-left: 3px; letter-spacing: 0; }
.feat__v.word { font-size: clamp(24px, 2.2vw, 32px); line-height: 1.1; }
.feat__t { font-weight: 600; }
.feat__d { font-size: 15px; color: var(--fg-2); }
.cred { margin-top: 26px; font-size: 15px; color: var(--fg-2); }
.founder { margin-top: clamp(48px, 6vw, 80px); display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.founder img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; }
.founder__body { padding: 36px 40px 36px 0; }
.founder blockquote { font-family: var(--font-display); font-size: clamp(24px, 2.6vw, 34px); line-height: 1.2; letter-spacing: -0.015em; }
.founder p { margin-top: 18px; color: var(--fg-2); }
.founder__sig { margin-top: 16px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3); }
@media (max-width: 960px) { .feats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) {
  .feats { grid-template-columns: 1fr; }
  .founder { grid-template-columns: 1fr; gap: 0; }
  .founder img { aspect-ratio: 16/11; object-position: 50% 25%; }
  .founder__body { padding: 28px; }
}

/* ---------- Escada ---------- */
.ladder { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 12px; position: relative; }
.step__n { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ocre); }
.step__time { display: inline-block; align-self: flex-start; font-family: var(--font-mono); font-size: 13px; padding: 4px 10px; border-radius: 999px; background: var(--bg); }
.step p { font-size: 15.5px; color: var(--fg-2); }
.step ul { list-style: none; display: grid; gap: 8px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); font-size: 15px; }
.step li::before { content: '✓ '; color: var(--teal); font-weight: 700; }
.step:first-child { border: 1.5px solid var(--ink); }
.step:first-child::after { content: attr(data-badge); position: absolute; top: -12px; right: 20px; background: var(--ink); color: var(--on-ink); font-size: 12px; font-weight: 600; padding: 3px 12px; border-radius: 999px; }
@media (max-width: 860px) { .ladder { grid-template-columns: 1fr; } }

/* ---------- Final ---------- */
.final__box { background: var(--card); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); box-shadow: var(--shadow); padding: clamp(28px, 5vw, 64px); }
.final__form { margin-top: 28px; display: grid; grid-template-columns: 1fr auto; gap: 12px; }
.final__form textarea { font: inherit; font-size: 17px; padding: 18px 20px; border: 1.5px solid var(--line-2); border-radius: 12px; background: var(--bg); color: var(--fg); resize: vertical; min-height: 96px; outline: none; transition: border-color .2s; }
.final__form textarea:focus { border-color: var(--ink); background: var(--card); }
.final__form .btn { align-self: stretch; justify-content: center; border-radius: 12px; }
.final__alt { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 15px; color: var(--fg-2); }
.final__alt a { color: var(--ocre); font-weight: 600; border-bottom: 1px solid currentColor; }
@media (max-width: 680px) { .final__form { grid-template-columns: 1fr; } .final__form .btn { padding: 16px; } }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 48px 0 32px; color: var(--fg-2); font-size: 14px; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; }
.footer__brand img { width: 124px; height: 38px; object-fit: cover; object-position: 50% 45%; }
.footer__brand p { margin-top: 12px; max-width: 320px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 12px 26px; }
.footer__links a:hover { color: var(--ocre); }
.footer__bottom { margin-top: 36px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-family: var(--font-mono); font-size: 12px; color: var(--fg-3); }

/* ---------- Reveal ---------- */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Fundador sozinho (bloco de experiências oculto) ---------- */
.founder--solo { margin-top: 22px; }
.step__link { margin-top: 6px; font-weight: 600; font-size: 15px; color: var(--ocre); border-bottom: 1px solid currentColor; align-self: flex-start; }
.step__link:hover .arr { transform: translateX(3px); }

/* ---------- Página do Diagnóstico (Passo 1) ---------- */
.dg-hero { padding-bottom: clamp(56px, 7vw, 96px); }
.dg-back { display: block; width: max-content; margin-bottom: 28px; font-size: 14px; color: var(--fg-3); }
.dg-back:hover { color: var(--fg); }
.dg-title { max-width: 980px; }
.dg-facts { margin-top: 36px; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); max-width: 900px; }
.dg-facts div { padding: 18px 22px; }
.dg-facts div + div { border-left: 1px solid var(--line); }
.dg-facts dt { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); }
.dg-facts dd { margin-top: 6px; font-family: var(--font-display); font-size: clamp(18px, 1.7vw, 22px); line-height: 1.2; }
.dg-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.dg-split .eyebrow { margin-bottom: 18px; }
.dg-checks { list-style: none; display: grid; gap: 12px; }
.dg-checks li { position: relative; padding: 14px 18px 14px 46px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; font-size: 16.5px; }
.dg-checks li::before { content: '✓'; position: absolute; left: 18px; top: 13px; color: var(--teal); font-weight: 700; }
.dg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.dg-grid--2 { grid-template-columns: 1fr 1fr; }
.dg-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.dg-card p { color: var(--fg-2); font-size: 15.5px; }
.dg-n { font-family: var(--font-mono); font-size: 12px; color: var(--ocre); letter-spacing: .1em; }
.dg-time { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: t; }
.dg-time li { background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--ocre); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.dg-time p { color: var(--fg-2); font-size: 15.5px; }
.dg-when { align-self: flex-start; font-family: var(--font-mono); font-size: 12.5px; padding: 4px 10px; border-radius: 999px; background: var(--ocre-bg); color: var(--ocre); }
.dg-qs { list-style: none; counter-reset: q; display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; border-top: 1px solid var(--line); }
.dg-qs li { counter-increment: q; display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 20px 0; border-bottom: 1px solid var(--line); font-family: var(--font-display); font-size: clamp(18px, 1.6vw, 21px); line-height: 1.3; }
.dg-qs li::before { content: counter(q, decimal-leading-zero); font-family: var(--font-mono); font-size: 13px; color: var(--ocre); padding-top: 4px; }
.dg-qs li:first-child { grid-column: 1 / -1; font-size: clamp(22px, 2.2vw, 30px); }
.dg-deliver { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: start; }
.dg-map { margin: 0; }
.dg-map figcaption { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 12px; }
.dg-map__sheet { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 24px; }
.dg-map__h { font-family: var(--font-display); font-size: 26px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.dg-map__row { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 13px 0; border-bottom: 1px dashed var(--line-2); }
.dg-map__row span { grid-column: 1 / -1; font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3); }
.dg-map__row b { font-weight: 600; }
.dg-map__row em { font-style: normal; color: var(--fg-2); font-size: 14.5px; grid-column: 1; }
.dg-map__row i { grid-column: 2; grid-row: 2 / span 2; align-self: center; font-style: normal; font-family: var(--font-mono); color: var(--teal); background: var(--teal-bg); padding: 4px 10px; border-radius: 8px; font-size: 13px; }
.dg-map__note { margin-top: 10px; font-size: 13.5px; color: var(--fg-3); }
.dg-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dg-box { background: var(--teal-bg); border: 1px solid var(--teal); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); }
.dg-box .h3 { margin-bottom: 18px; }
.dg-box--muted { background: var(--card); border-color: var(--line); }
.dg-x { list-style: none; display: grid; gap: 12px; }
.dg-x li { position: relative; padding-left: 28px; font-size: 16.5px; color: var(--fg-2); }
.dg-x li::before { content: '×'; position: absolute; left: 4px; top: -2px; color: var(--loss); font-size: 20px; font-weight: 700; }
.dg-after { margin-top: clamp(48px, 6vw, 80px); padding-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--line); }
.dg-after .h2 { margin: 16px 0 14px; }
.dg-faq { display: grid; gap: 10px; max-width: 900px; }
.dg-faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; }
.dg-faq summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.dg-faq summary::-webkit-details-marker { display: none; }
.dg-faq summary::after { content: '+'; color: var(--ocre); font-size: 22px; line-height: 1; }
.dg-faq details[open] summary::after { content: '−'; }
.dg-faq details p { margin-top: 12px; color: var(--fg-2); }
@media (max-width: 1020px) { .dg-time { grid-template-columns: 1fr 1fr; } .dg-deliver { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .dg-facts { grid-template-columns: 1fr; }
  .dg-facts div + div { border-left: 0; border-top: 1px solid var(--line); }
  .dg-split, .dg-two, .dg-qs, .dg-grid, .dg-grid--2, .dg-time { grid-template-columns: 1fr; }
}

/* ---------- Impressão / PDF ---------- */
@media print {
  .nav, .footer, .dg-back, [data-print], .hero__actions, #agendar { display: none !important; }
  body { background: #fff; }
  .rv { opacity: 1 !important; transform: none !important; }
  .sec, .dg-hero { padding: 28px 0 !important; }
  .hero { padding-top: 0 !important; }
  .sec--alt { background: #fff; }
  .dg-faq details { display: block; }
  .dg-faq details > p { display: block; }
  .dg-card, .dg-time li, .dg-box, .dg-map__sheet, .dg-faq details, .dg-qs li { break-inside: avoid; }
  .dg-map__sheet { box-shadow: none; }
}

/* ---------- Diagnóstico de Uma Decisão ---------- */
.dg-pick { border-left: 3px solid var(--ocre); }
.dg-pick__q { font-family: var(--font-display); font-size: clamp(19px, 1.7vw, 22px) !important; line-height: 1.3; color: var(--fg) !important; }
.dg-hint { margin-top: 22px; font-size: 15px; color: var(--fg-2); }
.dg-hint a { color: var(--ocre); font-weight: 600; border-bottom: 1px solid currentColor; }
.dg-time--3 { grid-template-columns: repeat(3, 1fr); }
.dg-learn { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14.5px; font-weight: 600; color: var(--teal); }
.dg-learn::before { content: '◆ '; font-size: 11px; }
.dg-map__lead { font-size: 15px; color: var(--fg-2); padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.dg-sem { display: grid; grid-template-columns: 18px 110px 1fr; gap: 12px; align-items: center; padding: 13px 0; border-bottom: 1px dashed var(--line-2); font-size: 15px; }
.dg-sem span { color: var(--fg-2); font-size: 14px; }
.dg-dot { width: 14px; height: 14px; border-radius: 50%; display: inline-block; }
.dg-dot--g { background: #3f8f5a; } .dg-dot--y { background: #d9a52b; } .dg-dot--r { background: var(--loss); }
.dg-journey { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; position: relative; }
.dg-journey li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 10px; position: relative; }
.dg-journey li p { color: var(--fg-2); font-size: 15.5px; }
.dg-journey li:not(:last-child)::after { content: '→'; position: absolute; right: -14px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--on-ink); font-size: 13px; display: grid; place-items: center; z-index: 1; }
.dg-journey li.is-now { border: 1.5px solid var(--ink); }
.dg-journey li.is-now::before { content: attr(data-badge); position: absolute; top: -12px; left: 20px; background: var(--ink); color: var(--on-ink); font-size: 12px; font-weight: 600; padding: 3px 12px; border-radius: 999px; }
@media (max-width: 860px) {
  .dg-time--3, .dg-journey { grid-template-columns: 1fr; }
  .dg-journey li:not(:last-child)::after { content: '↓'; right: 50%; top: auto; bottom: -14px; transform: translateX(50%); }
  .dg-sem { grid-template-columns: 18px 90px 1fr; }
}

/* ============================================================
   v5.3 — movimento na tela inicial (inspirado no hero da v4.0)
   ============================================================ */
.hero--media { position: relative; overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -1; overflow: hidden; will-change: transform; }
.hero-media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 75% 35%;
  filter: grayscale(1) sepia(.3) contrast(1.05) brightness(1.04);
  opacity: 0; animation: heroFade 24s infinite;
}
.hero-media img:nth-child(1) { animation-delay: 0s; }
.hero-media img:nth-child(2) { animation-delay: 6s; }
.hero-media img:nth-child(3) { animation-delay: 12s; }
.hero-media img:nth-child(4) { animation-delay: 18s; }
@keyframes heroFade {
  0%, 20%, 100% { opacity: 0; transform: scale(1.08); }
  4%, 16% { opacity: 1; }
  8%, 12% { opacity: 1; transform: scale(1); }
}
/* véu de papel: texto sempre legível à esquerda, foto respirando à direita */
.hero-media::before {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, var(--bg) 0%, rgba(var(--paper-rgb),.94) 34%, rgba(var(--paper-rgb),.62) 62%, rgba(var(--paper-rgb),.42) 100%);
}
.hero-media::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(60% 70% at 85% 30%, rgba(176,122,34,.16), transparent 70%),
    linear-gradient(180deg, rgba(var(--paper-rgb),0) 60%, var(--bg) 100%);
}
@media (max-width: 960px) {
  .hero-media::before { background: linear-gradient(180deg, rgba(var(--paper-rgb),.86) 0%, rgba(var(--paper-rgb),.93) 45%, var(--bg) 100%); }
  .hero-media img { object-position: 60% 30%; }
}

/* entrada do hero em cascata */
.hero--media .rv { transition-duration: 1s; }
.hero--media .hero__inner > div > .rv:nth-child(1) { transition-delay: .05s; }
.hero--media .hero__inner > div > .rv:nth-child(2) { transition-delay: .18s; }
.hero--media .hero__inner > div > .rv:nth-child(3) { transition-delay: .34s; }
.hero--media .hero__inner > div > .rv:nth-child(4) { transition-delay: .48s; }
.hero--media .hero__inner > div > .rv:nth-child(5) { transition-delay: .6s; }
.hero--media .signals.rv { transform: translateX(28px); transition-delay: .55s; }
.hero--media .signals.rv.in { transform: none; }
.hero--media .signals { background: rgba(var(--card-rgb),.94); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }

/* marca-texto que se desenha no destaque do título */
.hero--media h1 em.hl {
  background: linear-gradient(transparent 64%, var(--ocre-bg) 64%) no-repeat;
  background-size: 0% 100%;
  transition: background-size 1.3s var(--ease) 1.1s;
}
.hero--media h1.in em.hl { background-size: 100% 100%; }

/* foto do fundador: zoom suave ao aparecer */
.founder img { transition: transform 1.8s var(--ease); }
.founder.rv img { transform: scale(1.08); }
.founder.rv.in img { transform: scale(1); }

@media (prefers-reduced-motion: reduce) {
  .hero-media img { animation: none; }
  .hero-media img:first-child { opacity: 1; }
  .hero-media { transform: none !important; }
  .hero--media h1 em.hl { transition: none; background-size: 100% 100%; }
  .founder.rv img { transform: none; }
}
@media print { .hero-media { display: none; } }

/* ============================================================
   v5.3 — ferramentas do menu (idioma + tema) e logos dia/noite
   ============================================================ */
.logo-night { display: none; }
html[data-theme="night"] .logo-day { display: none; }
html[data-theme="night"] .logo-night { display: block; }
.footer__brand .logo-day, .footer__brand .logo-night { width: 124px; height: 38px; object-fit: cover; object-position: 50% 45%; }
.nav__tools { display: flex; align-items: center; gap: 8px; }
.tool { height: 38px; min-width: 38px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .06em; color: var(--fg-2); display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: all .2s var(--ease); }
.tool:hover { color: var(--fg); border-color: var(--fg); }
.tool--theme { padding: 0; width: 38px; font-size: 16px; }
.tool--theme .i-day { display: none; }
html[data-theme="night"] .tool--theme .i-night { display: none; }
html[data-theme="night"] .tool--theme .i-day { display: inline; }
.lang { position: relative; }
.lang__menu { position: absolute; top: calc(100% + 8px); right: 0; min-width: 170px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; display: grid; opacity: 0; visibility: hidden; transform: translateY(-4px); transition: all .18s var(--ease); z-index: 60; }
.lang.open .lang__menu { opacity: 1; visibility: visible; transform: none; }
.lang__menu a { padding: 9px 12px; border-radius: 8px; font-size: 14px; color: var(--fg-2); }
.lang__menu a:hover { background: var(--bg-2); color: var(--fg); }
.lang__menu a[aria-current="true"] { color: var(--ocre); font-weight: 600; }
@media (max-width: 960px) { .nav__tools { gap: 6px; } .nav__menu { margin-left: 4px; } }

/* ============================================================
   v5.3 — MODO NOTURNO
   ============================================================ */
html[data-theme="night"] {
  --bg: #121518;
  --bg-2: #171b1f;
  --card: #1d2227;
  --line: #2b3238;
  --line-2: #3b444b;
  --fg: #ece6da;
  --fg-2: #b9b3a8;
  --fg-3: #8d9296;
  --ocre: #d9a54c;
  --ocre-bg: rgba(217,165,76,.18);
  --teal: #6cbcb2;
  --teal-bg: rgba(108,188,178,.10);
  --loss: #e8826a;
  --loss-bg: rgba(232,130,106,.10);
  --ink: #ece6da;
  --on-ink: #121518;
  --paper-rgb: 18,21,24;
  --card-rgb: 29,34,39;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 14px 34px -18px rgba(0,0,0,.6);
  color-scheme: dark;
}
html[data-theme="night"] .pains__total { background: var(--card); border: 1px solid var(--line-2); }
html[data-theme="night"] .pains__total span { color: var(--fg-2); }
html[data-theme="night"] .pains__total b { color: var(--ocre); }
html[data-theme="night"] .hero-media img { filter: grayscale(1) sepia(.25) contrast(1.05) brightness(.6); }
html[data-theme="night"] .hero-media::after {
  background:
    radial-gradient(60% 70% at 85% 30%, rgba(217,165,76,.14), transparent 70%),
    linear-gradient(180deg, rgba(18,21,24,0) 60%, var(--bg) 100%);
}
html[data-theme="night"] input[type=range]::-webkit-slider-thumb { background: var(--card); }
html[data-theme="night"] input[type=range]::-moz-range-thumb { background: var(--card); }
html[data-theme="night"] .dg-dot--g { background: #5fb27a; }
body { transition: background-color .3s var(--ease), color .3s var(--ease); }

/* PDF sempre no visual claro, mesmo com o modo noturno ligado */
@media print {
  html[data-theme="night"] {
    --bg: #f7f4ee; --bg-2: #efeae0; --card: #ffffff; --line: #e0d9cb; --line-2: #cfc6b4;
    --fg: #1a1e22; --fg-2: #4a5056; --fg-3: #767c80; --ocre: #b07a22; --ocre-bg: #f7ead2;
    --teal: #2c6b66; --teal-bg: #e1efed; --loss: #b8472f; --loss-bg: #f8e4de; --ink: #1d2328; --on-ink: #fff;
    --paper-rgb: 247,244,238; --card-rgb: 255,255,255;
  }
}
html[data-theme="night"] .hero-media::before { background: linear-gradient(90deg, var(--bg) 0%, rgba(18,21,24,.9) 34%, rgba(18,21,24,.5) 62%, rgba(18,21,24,.28) 100%); }
html[data-theme="night"] .hero-media img { filter: grayscale(1) sepia(.25) contrast(1.05) brightness(.72); }
@media (max-width: 960px) { html[data-theme="night"] .hero-media::before { background: linear-gradient(180deg, rgba(18,21,24,.8) 0%, rgba(18,21,24,.9) 45%, var(--bg) 100%); } }

/* ============================================================
   v5.4 — foco no próximo passo
   ============================================================ */
/* Sinais → Assessment */
.signals__cta { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; padding: 14px 16px; border-radius: 10px; border: 1.5px solid var(--ink); font-weight: 600; font-size: 15px; color: var(--fg); transition: all .2s var(--ease); }
.signals__cta:hover { background: var(--ink); color: var(--on-ink); }
.signals__cta:hover .arr { transform: translateX(3px); }

/* Dor → Diagnóstico */
.pain__next { margin-top: 10px; font-size: 13.5px; color: var(--fg-3); }

/* Total honesto + ponte para a oferta */
#grandTotal.is-empty { font-family: var(--font-body); font-size: 15px; font-weight: 500; color: #c9cdd0; letter-spacing: 0; }
html[data-theme="night"] #grandTotal.is-empty { color: var(--fg-3); }
.pains__cta { flex-basis: 100%; display: inline-flex; gap: 8px; align-items: center; font-weight: 600; font-size: 15px; color: #f2c97d; border-top: 1px solid rgba(255,255,255,.14); padding-top: 14px; }
html[data-theme="night"] .pains__cta { color: var(--ocre); border-top-color: var(--line); }
.pains__cta:hover .arr { transform: translateX(3px); }

/* Dores 4–7 recolhidas */
.fold { margin-top: clamp(40px, 5vw, 56px); }
.fold__h { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 14px; font-weight: 500; }
.fold__item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; overflow: hidden; }
.fold__item > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "tag t more" "tag q more"; gap: 4px 18px; align-items: center; padding: 18px 22px; }
.fold__item > summary::-webkit-details-marker { display: none; }
.fold__item .pain__tag { grid-area: tag; align-self: start; margin-top: 3px; }
.fold__t { grid-area: t; font-family: var(--font-display); font-size: clamp(19px, 1.7vw, 23px); line-height: 1.2; }
.fold__q { grid-area: q; font-size: 14.5px; color: var(--fg-2); font-style: italic; }
.fold__more { grid-area: more; font-size: 14px; font-weight: 600; color: var(--ocre); white-space: nowrap; }
.fold__more::after { content: attr(data-open) '  +'; }
.fold__item[open] .fold__more::after { content: attr(data-close) '  −'; }
.fold__item[open] > summary { border-bottom: 1px solid var(--line); }
.fold__item .pains { margin: 0; }
.fold__item .pain { border: 0; border-radius: 0; box-shadow: none; }
@media (max-width: 680px) {
  .fold__item > summary { grid-template-columns: 1fr; grid-template-areas: "tag" "t" "q" "more"; padding: 16px 18px; }
}

/* Escada da home: só o Passo 1 + o que vem depois */
.ladder--one { grid-template-columns: 1.15fr 1fr; align-items: stretch; }
.ladder__next { background: transparent; border: 1px dashed var(--line-2); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 18px; justify-content: center; }
.ladder__nx { display: grid; gap: 4px; }
.ladder__nx b { font-weight: 600; }
.ladder__nx span { font-size: 15px; color: var(--fg-2); }
@media (max-width: 860px) { .ladder--one { grid-template-columns: 1fr; } }

/* Diagnóstico: decisões escolhíveis */
.dg-pick { font: inherit; text-align: left; cursor: pointer; transition: all .2s var(--ease); }
.dg-pick:hover { border-color: var(--line-2); transform: translateY(-2px); }
.dg-pick[aria-pressed="true"] { border-color: var(--ink); border-left-color: var(--ocre); box-shadow: var(--shadow); background: var(--ocre-bg); }
.dg-pick[aria-pressed="true"] .dg-n::after { content: '  ✓'; }
.dg-picked { margin-top: 18px; padding: 12px 16px; border-radius: 10px; background: var(--ocre-bg); color: var(--fg); font-size: 15px; max-width: 760px; }

/* Barra de contato fixa no celular */
.mbar { display: none; }
@media (max-width: 960px) {
  .mbar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: rgba(var(--paper-rgb), .96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .3s var(--ease); }
  .mbar.on { transform: none; }
  .mbar .btn { justify-content: center; padding: 12px 10px; }
  /* no celular, perfil e setor deixam de ficar presos no topo */
  .picker { position: static; }
}
@media print { .mbar { display: none !important; } }

/* ---------- Rodapé: newsletter Consciência Analítica ---------- */
.news54 { display: inline-flex; flex-direction: column; gap: 8px; margin-top: 18px; font-size: 13px; color: var(--fg-2); }
.footer__brand .news54 img, .foot54__brand .news54 img { display: block; width: 200px; height: auto; object-fit: contain; border-radius: 6px; }
.news54:hover span { color: var(--ocre); }
