/* Tokens e componentes copiados de onixspark.com (BaseLayout, ContactForm, botões). */
:root {
  --c-black: #050505; --c-ink: #0c0c10; --c-white: #fff;
  --c-gray-50: #f4f4f5; --c-gray-200: #e4e4e7; --c-gray-400: #a1a1aa; --c-gray-500: #71717a; --c-gray-600: #52525b;
  --c-violet: #7c5cff; --c-violet-2: #a78bfa; --c-violet-ink: #5b3df5; --c-violet-soft: #7c5cff1f; --c-violet-glow: #7c5cff59;
  --bg: var(--c-white); --bg-muted: var(--c-gray-50); --surface: var(--c-white); --surface-2: var(--c-gray-50);
  --fg: var(--c-black); --fg-muted: var(--c-gray-600); --fg-subtle: #66666f;
  --line: #05050514; --line-strong: #05050524; --nav-glass: #ffffffb8;
  --inverse-bg: var(--c-black); --inverse-fg: var(--c-white);
  --danger: #b3261e; --danger-bg: #fdecec; --ok: #1d7a46; --ok-bg: #e8f5ee;
  --accent-text: var(--c-violet-ink); --focus: var(--c-violet);
  --bar: var(--c-violet); --bar-range: color-mix(in srgb, var(--c-violet) 30%, var(--surface));
  color-scheme: light;
  --font-display: "Michroma", "Eurostile", "Arial Black", system-ui, sans-serif;
  --font-body: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-sub: var(--font-display);
  --fs-display: clamp(1.75rem, .95rem + 3.6vw, 4rem); --fs-h2: clamp(1.45rem, .95rem + 2.15vw, 2.875rem);
  --fs-h3: clamp(1rem, .9rem + .45vw, 1.3rem); --fs-lead: clamp(1.0625rem, .98rem + .4vw, 1.3125rem);
  --fs-body: 1rem; --fs-sm: .9375rem; --fs-xs: .8125rem; --fs-2xs: .6875rem;
  --lh-tight: 1.14; --lh-body: 1.65; --tracking-display: -.02em; --tracking-label: .14em;
  --space-2: .5rem; --space-3: .75rem; --space-4: 1rem; --space-5: 1.5rem; --space-6: 2rem; --space-7: 3rem; --space-8: 4rem; --space-9: 6rem;
  --gutter: clamp(1.25rem, .45rem + 3.4vw, 3rem); --container: 80rem; --section-y: clamp(3.5rem, 2rem + 5vw, 6.5rem);
  --r-xs: 6px; --r-md: 16px; --r-lg: 24px; --r-xl: 32px; --r-pill: 999px;
  --shadow-lg: 0 4px 8px #0505050a, 0 30px 60px -20px #05050540;
  --ease-out: cubic-bezier(.22, 1, .36, 1); --ease-soft: cubic-bezier(.33, 1, .68, 1); --ease-in-out: cubic-bezier(.65, 0, .35, 1); --ease-spring: cubic-bezier(.34, 1.32, .64, 1);
  --dur-1: .18s; --dur-2: .32s; --dur-3: .6s; --dur-4: 1s;
  --nav-h: 64px;
}
:root[data-theme="dark"] {
  --bg: #09090b; --bg-muted: #0f0f13; --surface: #131318; --surface-2: #1a1a21;
  --fg: #fafafa; --fg-muted: #b4b4bd; --fg-subtle: #8e8e98;
  --line: #ffffff14; --line-strong: #ffffff29; --nav-glass: #09090bb8;
  --inverse-bg: #fafafa; --inverse-fg: var(--c-black);
  --danger: #ff8a80; --danger-bg: #ff63631f; --ok: #62de92; --ok-bg: #22b45a1f;
  --accent-text: var(--c-violet-2); --focus: var(--c-violet-2);
  --bar: var(--c-violet-2); --bar-range: color-mix(in srgb, var(--c-violet-2) 32%, var(--surface));
  --shadow-lg: 0 4px 8px #0000004d, 0 30px 60px -20px #000c;
  color-scheme: dark;
}

/* ---------- base ---------- */
*, ::before, ::after { box-sizing: border-box; }
* { margin: 0; }
[hidden] { display: none !important; }
html { text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 1rem); }
body { background: var(--bg); min-height: 100svh; color: var(--fg); font-family: var(--font-body); font-size: var(--fs-body); line-height: var(--lh-body); -webkit-font-smoothing: antialiased; overflow-x: clip; display: flex; flex-direction: column; }
main { flex: 1; }
img, svg { max-width: 100%; display: block; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { text-wrap: balance; font-weight: 400; }
::selection { background: var(--c-violet); color: var(--c-white); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
html.theme-fade, html.theme-fade *, html.theme-fade ::before, html.theme-fade ::after { transition: background-color var(--dur-3) var(--ease-soft), color var(--dur-3) var(--ease-soft), border-color var(--dur-3) var(--ease-soft) !important; }
.visually-hidden { clip: rect(0 0 0 0); white-space: nowrap; border: 0; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; position: absolute !important; }
.skip { position: absolute; left: var(--space-4); top: -100px; z-index: 300; background: var(--inverse-bg); color: var(--inverse-fg); padding: .6rem 1rem; border-radius: var(--r-pill); }
.skip:focus { top: var(--space-3); }
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); padding-inline: var(--gutter); margin-inline: auto; }
.section { padding-block: var(--section-y); }
.label { font-size: var(--fs-2xs); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--fg-subtle); font-weight: 500; }
.chip { border: 1px solid var(--line-strong); border-radius: var(--r-pill); font-size: var(--fs-xs); color: var(--fg-muted); white-space: nowrap; display: inline-flex; padding: .3rem .7rem; line-height: 1.4; }
.link { color: var(--accent-text); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 100; height: var(--nav-h); background: var(--nav-glass); border-bottom: 1px solid var(--line); backdrop-filter: blur(18px) saturate(1.6); }
.nav__bar { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); }
.nav__brand { display: inline-flex; align-items: center; min-height: 44px; border-radius: var(--r-xs); }
.brand-logo { height: 30px; aspect-ratio: 1809 / 454; background-color: currentColor; -webkit-mask: url(/brand/onix-spark-logo.svg) center / contain no-repeat; mask: url(/brand/onix-spark-logo.svg) center / contain no-repeat; }
.nav__actions { display: flex; align-items: center; gap: var(--space-2); }
.theme { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: border-color var(--dur-2) var(--ease-soft); }
.theme:hover { border-color: var(--fg); }
.theme svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; grid-area: 1 / 1; }
.theme__sun, :root[data-theme="dark"] .theme__moon { display: none; }
:root[data-theme="dark"] .theme__sun { display: block; }

/* ---------- botões ---------- */
.btn { --btn-bg: var(--inverse-bg); --btn-fg: var(--inverse-fg); --btn-border: transparent; --btn-icon-bg: var(--c-violet); --btn-icon-fg: var(--c-white);
  border: 1px solid var(--btn-border); border-radius: var(--r-pill); background: var(--btn-bg); color: var(--btn-fg); max-width: 100%; min-height: 52px;
  font-family: var(--font-body); letter-spacing: .005em; text-align: left; isolation: isolate; display: inline-flex; justify-content: center; align-items: center; gap: .85rem;
  padding: .4rem .45rem .4rem 1.5rem; font-size: .875rem; font-weight: 500; line-height: 1.2; position: relative;
  transition: transform var(--dur-3) var(--ease-out), box-shadow var(--dur-3) var(--ease-soft), background-color var(--dur-2) var(--ease-soft), border-color var(--dur-2) var(--ease-soft); }
.btn__icon { background: var(--btn-icon-bg); color: var(--btn-icon-fg); width: 38px; height: 38px; border-radius: 50%; flex: none; display: grid; place-items: center; transition: transform var(--dur-3) var(--ease-out); }
.btn__icon svg { width: 15px; height: 15px; }
.btn--no-icon { padding-inline: 1.5rem; }
.btn--sm { min-height: 44px; font-size: var(--fs-xs); gap: .65rem; padding: .3rem .3rem .3rem 1.15rem; }
.btn--sm.btn--no-icon { padding-inline: 1.15rem; }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--fg); --btn-border: var(--line-strong); }
.btn--light { --btn-bg: var(--c-white); --btn-fg: var(--c-black); }
.btn--outline-light { --btn-bg: transparent; --btn-fg: var(--c-white); --btn-border: #ffffff40; }
.btn:active { transform: scale(.985); }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }
.btn:disabled { opacity: .5; cursor: default; }
@media (width >= 480px) { .btn { font-size: var(--fs-sm); white-space: nowrap; } }
@media (hover: hover) and (pointer: fine) {
  .btn:not(:disabled):hover { box-shadow: 0 10px 30px -10px var(--c-violet-glow); transform: translateY(-1px); }
  .btn--ghost:hover { --btn-bg: var(--surface); --btn-border: var(--line); }
  .btn--outline-light:hover { --btn-border: #ffffff80; }
  .btn:hover .btn__icon { transform: scale(1.06); }
}

/* ---------- abertura e card ---------- */
.diag__grid { display: grid; gap: var(--space-7); }
.diag__intro { display: grid; gap: var(--space-5); align-content: start; }
.eyebrow { display: inline-flex; align-items: center; gap: .75rem; }
.eyebrow__index { color: var(--accent-text); font-family: var(--font-display); font-size: var(--fs-2xs); }
.eyebrow__rule { width: 2.25rem; height: 1px; background: currentColor; opacity: .5; }
.diag__title { font-family: var(--font-display); font-size: var(--fs-h2); letter-spacing: var(--tracking-display); line-height: 1.18; }
.diag__text { font-family: var(--font-sub); font-size: var(--fs-lead); color: var(--fg-muted); line-height: 1.6; max-width: 32rem; }
.howto { list-style: none; padding: 0; display: grid; gap: var(--space-4); margin-top: var(--space-3); max-width: 32rem; }
.howto li { display: grid; grid-template-columns: 2.5rem 1fr; gap: var(--space-3); padding-top: var(--space-4); border-top: 1px solid var(--line); font-size: var(--fs-sm); color: var(--fg-muted); }
.howto b { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-xs); color: var(--accent-text); padding-top: .2rem; }
.howto strong { display: block; color: var(--fg); font-weight: 600; }
.card { border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow-lg); padding: clamp(1.25rem, .75rem + 2.5vw, 3rem); display: grid; gap: var(--space-6); align-content: start; min-width: 0; }
@media (width >= 1024px) {
  .diag__grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: var(--space-9); align-items: start; }
  .diag__intro { position: sticky; top: calc(var(--nav-h) + var(--space-7)); }
}
/* Coluna única: o formulário sobe para logo após o texto de abertura; o "como funciona" vai para baixo dele. */
@media (width < 1024px) {
  .diag__grid { gap: var(--space-5); }
  .diag__intro { display: contents; }
  .howto { order: 1; margin-top: var(--space-5); }
}
@media (width <= 767.98px) { .card { border-radius: var(--r-lg); padding: 1.25rem 1.1rem; } }

.progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.progress__item { color: var(--fg-subtle); display: grid; gap: .6rem; transition: color var(--dur-3) var(--ease-out); }
.progress__bar { background: var(--line); border-radius: 3px; height: 3px; overflow: hidden; }
.progress__bar i { display: block; height: 100%; background: var(--fg); transform-origin: 0 50%; transform: scaleX(0); transition: transform var(--dur-4) var(--ease-out); }
.progress__item.is-on { color: var(--fg); }
.progress__item.is-on .progress__bar i { transform: none; }
.progress__item.is-current .progress__bar i { background: var(--c-violet); }
.progress__label { font-size: var(--fs-2xs); letter-spacing: .04em; white-space: nowrap; font-weight: 500; }
.progress__label b { font-family: var(--font-display); font-weight: 400; margin-right: .2rem; }
@media (width < 420px) { .progress__label b { display: none; } }

/* ---------- formulários ---------- */
.form { display: grid; gap: var(--space-6); }
.step { border: 0; padding: 0; min-width: 0; display: none; }
.step.is-active { display: block; animation: step-in var(--dur-4) var(--ease-out); }
@keyframes step-in { from { opacity: 0; transform: translateX(12px); } }
.step__legend { float: left; width: 100%; padding: 0; font-family: var(--font-display); letter-spacing: var(--tracking-display); font-size: clamp(1.1rem, .95rem + .7vw, 1.5rem); line-height: 1.3; }
.step__legend:focus { outline: none; }
.step__legend + * { clear: both; padding-top: .35rem; }
.step__hint { font-size: var(--fs-xs); color: var(--fg-subtle); }
.step__body { display: grid; gap: var(--space-6); margin-top: var(--space-5); }
.fields { display: grid; gap: var(--space-4); margin-top: var(--space-5); }
@media (width >= 480px) { .fields { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }
.field { display: grid; gap: .45rem; align-content: start; }
.field__label { font-size: var(--fs-xs); font-weight: 600; }
.field__opt { color: var(--fg-subtle); font-weight: 400; }
.field input {
  border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--surface); width: 100%; min-height: 52px; padding: .85rem 1rem; font-size: 1rem; line-height: 1.5;
  transition: border-color var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out); }
.field input::placeholder { color: var(--c-gray-400); }
.field input:hover { border-color: color-mix(in srgb, var(--fg) 30%, transparent); }
.field input:focus { border-color: var(--fg); box-shadow: 0 0 0 4px var(--c-violet-soft); outline: none; }
input[aria-invalid="true"] { border-color: var(--danger); }
.field__error { font-size: var(--fs-xs); color: var(--danger); font-weight: 500; }
.field__error:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { margin-top: var(--space-5); display: grid; gap: var(--space-3); }
.consent__label { display: grid; grid-template-columns: auto 1fr; gap: .75rem; align-items: start; font-size: var(--fs-sm); color: var(--fg-muted); line-height: 1.55; cursor: pointer; }
.consent__label input { width: 20px; height: 20px; margin: .1rem 0 0; accent-color: var(--c-violet); cursor: pointer; }
.consent__label input[aria-invalid="true"] { outline: 2px solid var(--danger); outline-offset: 2px; }
.consent__label a { color: var(--accent-text); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.form__nav { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-3); padding-top: var(--space-5); border-top: 1px solid var(--line); }
.form__back { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; margin-left: -.5rem; padding: 0 .5rem; border-radius: var(--r-pill); font-size: var(--fs-sm); font-weight: 500; color: var(--fg-muted); transition: color var(--dur-2) var(--ease-out); }
.form__back:hover { color: var(--fg); }
.form__back svg { width: 16px; height: 16px; }
.form__submit { margin-left: auto; }
.form__status { font-size: var(--fs-sm); padding: var(--space-4); border-radius: var(--r-md); background: var(--surface-2); color: var(--fg-muted); }
.form__status:empty { display: none; }
.form__status[data-tone="error"] { background: var(--danger-bg); color: var(--danger); }
.form__status[data-tone="ok"] { background: var(--ok-bg); color: var(--ok); }
@media (width <= 767.98px) { .form__nav .btn { flex: 1; justify-content: space-between; } }

/* chips (iguais às opções do formulário do site) */
.choices { display: flex; flex-wrap: wrap; gap: .5rem; }
.choice { position: relative; }
.choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.choice__box { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .5rem 1rem .5rem .6rem; border: 1px solid var(--line-strong); border-radius: var(--r-pill); font-size: var(--fs-sm); font-weight: 500;
  transition: background-color var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out); }
.choice__check { width: 22px; height: 22px; border: 1px solid var(--line-strong); border-radius: 50%; display: grid; place-items: center; transition: background-color var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out); }
.choice__check svg { width: 13px; height: 13px; opacity: 0; transform: scale(.5); transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-3) var(--ease-spring); }
.choice:hover .choice__box { border-color: var(--fg); }
.choice input:checked + .choice__box { background: var(--inverse-bg); border-color: var(--inverse-bg); color: var(--inverse-fg); }
.choice input:checked + .choice__box .choice__check { background: var(--c-violet); border-color: var(--c-violet); color: var(--c-white); }
.choice input:checked + .choice__box .choice__check svg { opacity: 1; transform: none; }
.choice input:focus-visible + .choice__box { outline: 2px solid var(--focus); outline-offset: 3px; }
@media (width <= 767.98px) { .choice__box { font-size: var(--fs-xs); padding-right: .85rem; } }

/* perguntas do diagnóstico */
.q { display: grid; gap: .6rem; }
.q__label { font-size: var(--fs-sm); font-weight: 600; }
.q__hint { font-size: var(--fs-xs); color: var(--fg-subtle); margin-top: -.35rem; }

/* ---------- relatório ---------- */
.report__head { display: grid; gap: var(--space-4); padding-bottom: var(--space-6); }
.report__title { font-family: var(--font-display); font-size: var(--fs-h2); letter-spacing: var(--tracking-display); line-height: 1.18; }
.report__title:focus { outline: none; }
.report__meta { font-size: var(--fs-sm); color: var(--fg-subtle); }
.report__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.tags-legend { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); font-size: var(--fs-xs); color: var(--fg-subtle); }
.tag { display: inline-block; vertical-align: .1em; font-family: var(--font-body); font-size: var(--fs-2xs); font-weight: 600; letter-spacing: .04em; line-height: 1; padding: .3rem .5rem; border-radius: var(--r-pill); border: 1px solid transparent; white-space: nowrap; }
.tag--informado { border-color: var(--line-strong); color: var(--fg-muted); }
.tag--calculado { background: var(--inverse-bg); color: var(--inverse-fg); }
.tag--hipotese { background: var(--c-violet-soft); color: var(--accent-text); border-style: dashed; border-color: var(--c-violet); }
.tag--declarada { background: var(--danger-bg); color: var(--danger); }

.rsec { display: grid; gap: var(--space-5); padding-block: var(--space-7); border-top: 1px solid var(--line); }
.rsec__head { display: flex; align-items: baseline; gap: var(--space-4); }
.rsec__index { font-family: var(--font-display); font-size: var(--fs-xs); color: var(--accent-text); }
.rsec__title { font-family: var(--font-display); font-size: var(--fs-h3); letter-spacing: var(--tracking-display); line-height: 1.3; }
.rsec__intro { color: var(--fg-muted); font-size: var(--fs-sm); max-width: 48rem; }
.rsec__intro strong { color: var(--fg); font-weight: 600; }

.profile { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: var(--space-4) var(--space-6); }
.profile dt { font-size: var(--fs-xs); color: var(--fg-subtle); }
.profile dd { font-weight: 500; }
.profile--sm dd { font-size: var(--fs-sm); }
.more { font-size: var(--fs-sm); }
.more > summary { cursor: pointer; color: var(--accent-text); font-weight: 500; width: fit-content; min-height: 44px; display: flex; align-items: center; }
.more[open] > summary { margin-bottom: var(--space-3); }
.more__title { font-size: var(--fs-sm); font-weight: 600; margin: var(--space-4) 0 var(--space-2); }
.calc { padding-left: 1.1rem; display: grid; gap: .4rem; color: var(--fg-muted); }
.calc strong, .calc b { color: var(--fg); font-weight: 600; }


.chart { display: grid; gap: var(--space-4); padding: var(--space-5) 0; min-width: 0; max-width: 60rem; --bar-scale: .72; }
@media (width < 640px) { .chart { --bar-scale: .5; } }
.chart__title { font-weight: 600; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.chart__meta, .chart__note, .chart__key { font-size: var(--fs-xs); color: var(--fg-subtle); }
.chart__note { max-width: 48rem; }
.bars { display: grid; gap: var(--space-4); }
.bar { display: grid; gap: .3rem; }
.bar__label { font-size: var(--fs-sm); color: var(--fg-muted); }
.bar__label small { color: var(--fg-subtle); font-size: var(--fs-xs); }
.bar__track { display: flex; align-items: center; min-height: 22px; background: linear-gradient(var(--line), var(--line)) left / 1px 100% no-repeat; }
.bar__min, .bar__range { display: block; flex: none; height: 16px; width: calc(var(--w, 0) * var(--bar-scale) * 100%); }
.bar__min { background: var(--bar); }
.bar__range { background: var(--bar-range); margin-left: 2px; }
.bar__min:nth-last-child(2), .bar__range { border-radius: 0 4px 4px 0; }
.bar__value { margin-left: .6rem; font-size: var(--fs-sm); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.chart__table > summary { cursor: pointer; font-size: var(--fs-xs); color: var(--accent-text); font-weight: 500; width: fit-content; }

table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); margin-top: var(--space-3); }
caption { text-align: left; font-weight: 600; padding-bottom: var(--space-3); }
th, td { text-align: left; vertical-align: top; padding: .6rem .75rem .6rem 0; border-bottom: 1px solid var(--line); }
thead th { font-size: var(--fs-xs); color: var(--fg-subtle); font-weight: 500; }
tbody th { font-weight: 500; }
td { color: var(--fg-muted); font-variant-numeric: tabular-nums; }
.premissas { max-width: 64rem; }
@media (width <= 640px) { .premissas thead { display: none; } .premissas tr { display: grid; padding: .6rem 0; border-bottom: 1px solid var(--line); } .premissas th, .premissas td { border: 0; padding: .1rem 0; } }
.score__pts { white-space: nowrap; color: var(--fg); font-weight: 600; }

.opps { list-style: none; padding: 0; display: grid; }
.opp { display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: var(--space-4); padding-block: var(--space-6); border-top: 1px solid var(--line); }
.opp__rank { font-family: var(--font-display); font-size: var(--fs-h3); color: var(--fg-subtle); line-height: 1.3; }
.opp__body { display: grid; gap: var(--space-3); }
.opp__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2) var(--space-4); align-items: baseline; }
.opp__title { font-size: var(--fs-lead); font-weight: 600; line-height: 1.35; }
.opp__score { font-size: var(--fs-xs); color: var(--fg-subtle); border: 1px solid var(--line-strong); border-radius: var(--r-pill); padding: .25rem .75rem; white-space: nowrap; }
.opp__score b { font-family: var(--font-display); font-weight: 400; color: var(--fg); font-size: var(--fs-sm); }
.opp__desc { color: var(--fg-muted); font-size: var(--fs-sm); max-width: 52rem; }
.opp__why { font-size: var(--fs-sm); padding: var(--space-3) var(--space-4); background: var(--surface-2); border-radius: var(--r-md); }
.opp__why strong { font-weight: 600; }

.insights { list-style: none; padding: 0; display: grid; gap: var(--space-5); max-width: 56rem; }
.insights li { display: grid; gap: .35rem; padding-left: var(--space-4); border-left: 2px solid var(--line-strong); font-size: var(--fs-sm); color: var(--fg-muted); }
.insights__title { font-size: var(--fs-body); font-weight: 600; color: var(--fg); }
.rsec > .btn { justify-self: start; }
.limits { padding-left: 1.1rem; display: grid; gap: .4rem; color: var(--fg-muted); font-size: var(--fs-sm); max-width: 52rem; }

/* ---------- quiz ---------- */
.quiz__head { display: grid; gap: .6rem; }
.quiz__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem var(--space-4); font-size: var(--fs-xs); color: var(--fg-subtle); }
.quiz__bar { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.quiz__bar i { display: block; height: 100%; width: calc(var(--w, 0) * 100%); background: var(--c-violet); border-radius: 4px; transition: width var(--dur-3) var(--ease-out); }
.previa { font-size: var(--fs-sm); color: var(--fg-muted); padding: .7rem 1rem; border-radius: var(--r-md); background: var(--c-violet-soft); animation: step-in var(--dur-3) var(--ease-out); }
.previa b { color: var(--fg); font-weight: 600; }
.previa__label { font-size: var(--fs-2xs); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--accent-text); font-weight: 600; margin-right: .35rem; }
.step__ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--c-violet-soft); color: var(--accent-text); margin-bottom: var(--space-3); }
.ico { width: 22px; height: 22px; }
.opts { display: grid; gap: .6rem; }
@media (width >= 640px) { .opts { grid-template-columns: 1fr 1fr; } }
.opt { position: relative; }
.opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.opt__box { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .85rem; align-items: center; height: 100%; padding: .9rem 1rem; border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--surface);
  transition: border-color var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out), opacity var(--dur-2) var(--ease-out); }
.opt__ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--surface-2); transition: background-color var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out); }
.opt__txt strong { display: block; font-size: var(--fs-sm); font-weight: 600; line-height: 1.35; }
.opt__txt small { display: block; font-size: var(--fs-xs); color: var(--fg-subtle); line-height: 1.45; margin-top: .15rem; }
.opt__mark { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; color: var(--c-white); }
.opt__mark svg { width: 13px; height: 13px; opacity: 0; transform: scale(.5); transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-3) var(--ease-spring); }
.opt:hover .opt__box { border-color: var(--fg); }
.opt input:checked + .opt__box { border-color: var(--c-violet); box-shadow: 0 0 0 3px var(--c-violet-soft); }
.opt input:checked + .opt__box .opt__ico { background: var(--c-violet); color: var(--c-white); }
.opt input:checked + .opt__box .opt__mark { background: var(--c-violet); border-color: var(--c-violet); }
.opt input:checked + .opt__box .opt__mark svg { opacity: 1; transform: none; }
.opt input:focus-visible + .opt__box { outline: 2px solid var(--focus); outline-offset: 3px; }
.opt input:disabled { cursor: not-allowed; }
.opt input:disabled + .opt__box { opacity: .45; }
.opt input[aria-invalid="true"] + .opt__box { border-color: var(--danger); }
[data-se-principal] { margin-top: var(--space-2); }

/* ---------- resumo do relatório ---------- */
.hero { display: grid; gap: var(--space-6); padding: clamp(1.5rem, 1rem + 2.5vw, 3rem); border-radius: var(--r-xl); background: var(--c-black); color: var(--c-white); margin-bottom: var(--space-5); }
:root[data-theme="dark"] .hero { background: var(--surface-2); border: 1px solid var(--line); }
.hero .tag--calculado { background: var(--c-white); color: var(--c-black); }
.hero .tag--declarada { background: #ff63632e; color: #ffb4ab; }
.hero__big { display: flex; flex-wrap: wrap; align-items: baseline; gap: .15em .4em; font-size: clamp(2.75rem, 1.6rem + 5vw, 5.5rem); font-weight: 600; line-height: 1; letter-spacing: -.03em; }
.hero__big span { font-size: var(--fs-lead); font-weight: 500; letter-spacing: 0; color: #ffffffb3; }
.hero__lead { font-family: var(--font-sub); font-size: var(--fs-lead); line-height: 1.5; color: #ffffffcc; max-width: 40rem; margin-top: var(--space-4); }
.hero__people { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-5); margin-top: var(--space-5); font-size: var(--fs-sm); color: #ffffffb3; }
.hero__people b { color: var(--c-white); font-weight: 600; }
.people { display: flex; gap: 6px; }
.person { position: relative; width: 22px; height: 32px; background: #ffffff26; -webkit-mask: url(/person.svg) left / 22px 32px no-repeat; mask: url(/person.svg) left / 22px 32px no-repeat; }
.person i { position: absolute; inset: 0 auto 0 0; width: calc(var(--w, 0) * 100%); }
.person__range { background: color-mix(in srgb, var(--c-violet-2) 45%, transparent); }
.person__min { background: var(--c-violet-2); }
.hero__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: var(--space-5) var(--space-6); padding-top: var(--space-5); border-top: 1px solid #ffffff1f; }
.hstat__value { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); font-weight: 600; line-height: 1.2; }
.hstat__label { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; font-size: var(--fs-sm); color: #ffffffcc; }
.hstat__sub { font-size: var(--fs-xs); color: #ffffff8c; margin-top: .2rem; }
.dist { display: grid; gap: .75rem; }
.dist__title { font-size: var(--fs-2xs); letter-spacing: var(--tracking-label); text-transform: uppercase; color: #ffffff8c; font-weight: 500; }
.dist__bar { display: flex; gap: 2px; height: 14px; border-radius: 4px; overflow: hidden; }
.dist__bar i { flex: var(--w, 0) 1 0; min-width: 3px; }
.c1 { background: var(--c-violet); }
.c2 { background: var(--c-violet-2); }
.c3 { background: var(--c-white); }
.dist__legend { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem var(--space-5); font-size: var(--fs-sm); color: #ffffffcc; }
.dist__legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: .45rem; }
.dist__legend b { color: var(--c-white); font-weight: 600; margin-left: .2rem; }
.dist__legend span { color: #ffffff8c; margin-left: .3rem; }
.missing { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-3) var(--space-5); padding: var(--space-4) var(--space-5); border: 1px dashed var(--c-violet); border-radius: var(--r-md); background: var(--c-violet-soft); font-size: var(--fs-sm); }
.missing p { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.missing strong { font-weight: 600; margin-right: .25rem; }

/* ---------- problemas ---------- */
.prob { display: grid; gap: var(--space-4); padding-block: var(--space-6); border-top: 1px solid var(--line); }
article.prob:first-of-type { border-top: 0; padding-top: var(--space-2); }
.prob__head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.prob__ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--c-violet-soft); color: var(--accent-text); }
.prob__title { font-size: var(--fs-lead); font-weight: 600; line-height: 1.35; }
.chip--accent { border-color: var(--c-violet); background: var(--c-violet-soft); color: var(--accent-text); font-weight: 600; }
.prob__grid { display: grid; gap: var(--space-5); }
@media (width >= 900px) { .prob__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-8); } }
.prob__big { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); font-weight: 600; line-height: 1.1; letter-spacing: -.02em; }
.prob__big small, .prob__money small { font-size: var(--fs-sm); font-weight: 500; letter-spacing: 0; color: var(--fg-subtle); }
.prob__big--empty { font-size: var(--fs-lead); font-weight: 500; color: var(--fg-subtle); }
.prob__money { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem; margin-top: .4rem; font-size: var(--fs-lead); font-weight: 600; }
.prob__como { font-size: var(--fs-xs); color: var(--fg-subtle); margin-top: var(--space-3); }
.prob__label { font-size: var(--fs-2xs); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--fg-subtle); font-weight: 600; margin-bottom: .4rem; }
.prob__why > p:not(.prob__label) { font-size: var(--fs-sm); color: var(--fg-muted); max-width: 34rem; }
.share { display: flex; align-items: center; gap: .75rem; margin-top: var(--space-3); font-size: var(--fs-xs); color: var(--fg-subtle); }
.share__bar { flex: 0 1 12rem; height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.share__bar i { display: block; height: 100%; width: calc(var(--w, 0) * 100%); background: var(--c-violet); border-radius: 6px; }
.funnel { display: grid; gap: .45rem; max-width: 46rem; margin-top: var(--space-3); }
.funnel .chart__title { margin-bottom: .35rem; }
.funnel__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: var(--space-4); align-items: center; }
.funnel__bar { display: flex; justify-content: center; height: 26px; }
.funnel__bar i { width: calc(var(--w, 0) * 100%); min-width: 4px; border-radius: 4px; background: color-mix(in srgb, var(--fg) 82%, transparent); }
.funnel__row.is-leak .funnel__bar i { background: var(--c-violet); }
.funnel__txt { font-size: var(--fs-sm); color: var(--fg-muted); }
.funnel__txt b { color: var(--fg); font-weight: 600; font-variant-numeric: tabular-nums; }
.funnel__row.is-leak .funnel__txt { color: var(--accent-text); font-weight: 600; }

/* ---------- cenários ---------- */
.bar__min.is-ink { background: var(--fg); }
.bar__range.is-ink { background: color-mix(in srgb, var(--fg) 22%, var(--surface)); }
.scen { display: grid; border-top: 1px solid var(--line); max-width: 64rem; }
.scen__row { display: grid; grid-template-columns: minmax(9rem, 1.2fr) repeat(3, minmax(0, 1fr)); gap: var(--space-4); padding-block: var(--space-4); border-bottom: 1px solid var(--line); align-items: start; }
.scen__row > span { display: grid; gap: .15rem; font-size: var(--fs-sm); }
.scen__row b { font-size: var(--fs-lead); font-weight: 600; font-variant-numeric: tabular-nums; }
.scen__row small { font-size: var(--fs-xs); color: var(--fg-subtle); }
.scen__row--head > span { font-size: var(--fs-xs); font-weight: 500; color: var(--fg-subtle); }
.scen__row > .is-mid { margin-block: calc(-1 * var(--space-4)); padding: var(--space-4) var(--space-3); background: var(--c-violet-soft); }
.scen__row--head > .is-mid { color: var(--accent-text); font-weight: 600; }
@media (width < 640px) {
  .scen__row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2) var(--space-3); }
  .scen__row > :first-child { grid-column: 1 / -1; font-weight: 600; }
  .scen__row--head > :first-child { display: none; }
  .scen__row b { font-size: var(--fs-sm); }
  .scen__row > .is-mid { margin-block: 0; padding: .4rem; border-radius: var(--r-xs); }
}

/* ---------- prioridades ---------- */
.mx-wrap { display: grid; gap: var(--space-5); align-items: center; }
@media (width >= 900px) { .mx-wrap { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--space-4) var(--space-7); } .mx__note { grid-column: 1 / -1; } }
.mx { max-width: 40rem; }
.mx__legend { list-style: none; padding: 0; display: grid; gap: var(--space-4); }
.mx__legend li { display: grid; grid-template-columns: 1.75rem minmax(0, 1fr); gap: .75rem; align-items: start; }
.mx__legend strong { display: block; font-size: var(--fs-sm); font-weight: 600; }
.mx__legend small { display: block; font-size: var(--fs-xs); color: var(--fg-subtle); }
.mx__num { display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--fg); color: var(--bg); font-size: var(--fs-xs); font-weight: 600; }
.mx__num.is-top { background: var(--c-violet); color: var(--c-white); }
.mx svg { width: 100%; height: auto; }
.mx__quick { fill: var(--c-violet-soft); }
.mx__axis, .mx__grid { stroke: var(--line-strong); stroke-width: 1; }
.mx__q, .mx__label { font: 500 12px var(--font-body); fill: var(--fg-subtle); }
.mx__q--accent { fill: var(--accent-text); font-weight: 600; }
.mx__dot circle { fill: var(--fg); stroke: var(--surface); stroke-width: 2; }
.mx__dot.is-top circle { fill: var(--c-violet); }
.mx__dot text { font: 600 13px var(--font-body); fill: var(--bg); text-anchor: middle; }
.mx__dot.is-top text { fill: var(--c-white); }
.rec { display: grid; gap: var(--space-4); margin-top: var(--space-5); padding: clamp(1.25rem, 1rem + 1.5vw, 2.25rem); border: 1px solid var(--c-violet); border-radius: var(--r-lg); background: linear-gradient(180deg, var(--c-violet-soft), transparent 70%); }
.rec__eyebrow, .next-title { font-size: var(--fs-2xs); letter-spacing: var(--tracking-label); text-transform: uppercase; font-weight: 600; color: var(--accent-text); }
.next-title { color: var(--fg-subtle); margin-top: var(--space-6); }
.rec__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--space-2) var(--space-4); }
.rec__title { display: flex; align-items: baseline; gap: .75rem; font-family: var(--font-display); font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); letter-spacing: var(--tracking-display); line-height: 1.25; }
.rec__title span { font-size: .65em; color: var(--accent-text); }
.rec__desc { color: var(--fg-muted); max-width: 52rem; }
.rec__grid { display: grid; gap: var(--space-5); }
@media (width >= 900px) { .rec__grid { grid-template-columns: 1fr 1fr; gap: var(--space-7); } }
.rec__steps { list-style: none; padding: 0; counter-reset: s; display: grid; gap: .6rem; }
.rec__steps li { counter-increment: s; display: grid; grid-template-columns: 1.75rem 1fr; gap: .5rem; font-size: var(--fs-sm); }
.rec__steps li::before { content: counter(s); display: grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--c-violet); color: var(--c-white); font-size: var(--fs-2xs); font-weight: 600; }
.rec__facts { display: grid; gap: var(--space-3); align-content: start; font-size: var(--fs-sm); }
.rec__facts dt { display: flex; gap: .4rem; align-items: center; font-size: var(--fs-xs); color: var(--fg-subtle); }
.rec__facts dd { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.dots { display: inline-flex; gap: 3px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.dots i.on { background: var(--fg); }
.opps .opp:first-child { border-top: 0; padding-top: var(--space-4); }
.opp__desc b { color: var(--fg); font-weight: 600; }
.score-bar { display: block; max-width: 20rem; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.score-bar i { display: block; height: 100%; width: calc(var(--w, 0) * 100%); background: var(--c-violet); }

/* ---------- próximos passos ---------- */
.timeline { list-style: none; padding: 0; display: grid; gap: var(--space-5); }
.timeline li { position: relative; display: grid; gap: .35rem; padding-left: 3.25rem; }
.timeline__node { position: absolute; left: 0; top: 0; z-index: 2; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); font-family: var(--font-display); font-size: var(--fs-2xs); color: var(--fg-subtle); }
.timeline li:first-child .timeline__node { background: var(--inverse-bg); border-color: var(--inverse-bg); color: var(--inverse-fg); box-shadow: 0 0 0 5px var(--c-violet-soft); }
.timeline li:not(:last-child)::after { content: ""; position: absolute; left: calc(1.25rem - .5px); top: 2.5rem; bottom: calc(-1 * var(--space-5)); width: 1px; background: var(--line-strong); }
/* Trilho violeta por cima do cinza (mesma geometria); é ele que se desenha na revelação. */
.timeline li:not(:last-child)::before { content: ""; position: absolute; z-index: 1; left: calc(1.25rem - 1px); top: 2.5rem; bottom: calc(-1 * var(--space-5)); width: 2px; background: linear-gradient(180deg, var(--c-violet-2), var(--c-violet)); transform-origin: top; }
.timeline__fase { font-family: var(--font-display); font-size: var(--fs-xs); color: var(--accent-text); padding-top: .55rem; }
.timeline__txt { font-size: var(--fs-sm); color: var(--fg-muted); }
@media (width >= 900px) {
  .timeline { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--space-4); }
  .timeline li { padding: 3.5rem 0 0; }
  .timeline li:not(:last-child)::after, .timeline li:not(:last-child)::before { left: 2.5rem; right: calc(-1 * var(--space-4)); top: 1.25rem; bottom: auto; width: auto; height: 1px; }
  .timeline li:not(:last-child)::before { top: calc(1.25rem - 1px); height: 2px; background: linear-gradient(90deg, var(--c-violet-2), var(--c-violet)); transform-origin: left; }
  .timeline__fase { padding-top: 0; }
}

/* Revelação única, ao entrar na tela: cada etapa surge e o trilho se desenha até a próxima.
   Só com movimento permitido; com movimento reduzido a linha do tempo aparece pronta. */
.timeline li:nth-child(2) { --i: 1; }
.timeline li:nth-child(3) { --i: 2; }
.timeline li:nth-child(4) { --i: 3; }
.timeline li:nth-child(5) { --i: 4; }
@media (prefers-reduced-motion: no-preference) {
  .timeline[data-reveal] li { --d: calc(var(--i, 0) * 150ms); }
  .timeline[data-reveal] .timeline__node {
    opacity: 0; transform: scale(.9);
    transition: opacity var(--dur-2) var(--ease-out) var(--d), transform var(--dur-2) var(--ease-out) var(--d);
  }
  .timeline[data-reveal] :is(.timeline__fase, .timeline__txt) {
    opacity: 0; transform: translateY(8px);
    transition: opacity var(--dur-2) var(--ease-out) calc(var(--d) + 60ms), transform var(--dur-2) var(--ease-out) calc(var(--d) + 60ms);
  }
  .timeline[data-reveal] li::before { transform: scaleY(0); transition: transform var(--dur-3) var(--ease-in-out) calc(var(--d) + 120ms); }
  @media (width >= 900px) { .timeline[data-reveal] li::before { transform: scaleX(0); } }
  .timeline[data-visible] :is(.timeline__node, .timeline__fase, .timeline__txt) { opacity: 1; transform: none; }
  .timeline[data-visible] li::before { transform: none; }
}

/* CTA: faixa escura como a chamada final do site */
.cta { background: var(--c-black); color: var(--c-white); padding-block: var(--section-y); }
:root[data-theme="dark"] .cta { background: var(--surface-2); border-top: 1px solid var(--line); }
.cta__inner { display: grid; gap: var(--space-7); align-items: end; }
.cta__copy { display: grid; gap: var(--space-4); }
.cta .label { color: #ffffff99; }
.cta__title { font-family: var(--font-display); font-size: var(--fs-h2); letter-spacing: var(--tracking-display); line-height: 1.18; }
.cta__text { font-family: var(--font-sub); font-size: var(--fs-lead); line-height: 1.6; color: #ffffffb3; max-width: 40rem; }
.cta__form { display: grid; gap: var(--space-5); }
.cta .consent__label { color: #ffffffb3; }
.cta .field__opt { color: #ffffff80; }
.cta__buttons { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.cta .form__status { background: #ffffff14; color: #ffffffd9; }
.cta .form__status[data-tone="error"] { background: #ff63632e; color: #ffb4ab; }
@media (width >= 1024px) { .cta__inner { grid-template-columns: 1.1fr .9fr; gap: var(--space-9); } }
@media (width <= 479.98px) { .cta__buttons .btn { width: 100%; justify-content: space-between; } }

.footer { border-top: 1px solid var(--line); font-size: var(--fs-xs); color: var(--fg-subtle); }
.footer__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3); padding-block: var(--space-5); }
.footer a:hover { color: var(--fg); }

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

@media print {
  :root { --bg: #fff; --surface: #fff; --surface-2: #f4f4f5; --fg: #050505; --fg-muted: #3f3f46; --fg-subtle: #52525b; }
  .nav, .footer, .report__actions, .cta__form, .rsec > .btn, .skip { display: none !important; }
  .cta { background: none; color: #050505; padding-block: var(--space-6); }
  .cta__text, .cta .label { color: #3f3f46; }
  .rsec { break-inside: avoid-page; }
  .missing, .rec .btn { display: none !important; }
  * { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .timeline :is(.timeline__node, .timeline__fase, .timeline__txt), .timeline li::before { opacity: 1 !important; transform: none !important; }
}
