/* ============================================================
   Green Line Investimentos — Simulador de Aposentadoria
   Sistema visual "quiet premium" · referências: private banking
   (J.P. Morgan Private Bank), Mercury, Stripe, Betterment.

   Tipografia
   · Display:  Instrument Serif — títulos e números-herói
   · UI/Texto: Satoshi — interface, corpo, labels
   Layout
   · Grid editorial, hairlines no lugar de caixas,
     whitespace generoso, sombras quase ausentes.
   ============================================================ */

:root {
    /* Cor */
    --green-deep: #0F5132;
    --green-deeper: #0B3D25;
    --green-emerald: #198754;
    --green-mid: #3E8B6D;
    --green-soft: #8FD6B4;
    --green-tint: #F0F6F1;

    --bg: #F6F4EE;
    --bg-deep: #EFECe3;
    --surface: #FFFFFF;
    --surface-2: #FAF9F5;

    --ink: #131A15;
    --ink-2: #39463E;
    --ink-3: #67746B;
    --ink-4: #98A29A;

    --line: rgba(19, 26, 21, .09);
    --line-strong: rgba(19, 26, 21, .16);

    --red: #A8432F;
    --red-tint: #FAEFEB;
    --amber: #8F6E1F;
    --amber-tint: #F6F0DC;

    /* Tipografia */
    --font-display: 'Instrument Serif', Georgia, 'Times New Roman', serif;
    --font-sans: 'Satoshi', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Escala */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 48px;
    --space-8: 72px;
    --space-9: 112px;

    --radius-lg: 16px;
    --radius: 12px;
    --radius-sm: 10px;

    --shadow-sm: 0 1px 2px rgba(19, 26, 21, .05);
    --shadow-md: 0 16px 48px rgba(15, 81, 50, .10);

    --ease: cubic-bezier(.22, 1, .36, 1);
    --t-fast: .18s var(--ease);
    --t-med: .34s var(--ease);

    --max-w: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
    font-size: 15.5px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

::selection { background: rgba(25, 135, 84, .18); }

img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
input, select { font-family: inherit; }

:focus-visible {
    outline: 2px solid var(--green-emerald);
    outline-offset: 3px;
    border-radius: 4px;
}

.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 48px);
}

/* Rótulo-editorial (eyebrow) */
.step-kicker,
.freedom-kicker,
.hero-panel-title,
.metric-label,
.gap-cell-label,
.waiting-opt-label,
.alt-num,
.scenario-badge,
.gauge-caption {
    font-family: var(--font-sans);
    text-transform: uppercase;
}

/* ============ CABEÇALHO ============ */
.topbar {
    background: rgba(246, 244, 238, .88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}
.brand img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
}
.brand-name {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--ink);
    line-height: 1.3;
}
.brand-name span {
    display: block;
    font-size: 9px;
    font-weight: 500;
    color: var(--ink-3);
    letter-spacing: .34em;
}
.topbar-tag {
    font-size: 12.5px;
    color: var(--ink-3);
    letter-spacing: .02em;
}
@media (max-width: 640px) {
    .topbar-tag { display: none; }
}

/* ============ PROGRESSO ============ */
.progress-rail {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(246, 244, 238, .92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.progress-steps {
    display: flex;
    align-items: center;
    justify-content: safe center;
    gap: var(--space-2);
    padding: 13px 0;
    overflow-x: auto;
    scrollbar-width: none;
}
.progress-steps::-webkit-scrollbar { display: none; }
.p-step {
    display: flex;
    align-items: center;
    gap: 9px;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink-4);
    background: none;
    border: none;
    padding: 4px 2px;
    transition: color var(--t-fast);
}
.p-step .p-num {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    font-size: 10.5px;
    width: 21px;
    height: 21px;
    border-radius: 6px;
    border: 1px solid var(--line-strong);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--t-fast);
}
.p-step.current { color: var(--ink); }
.p-step.current .p-num {
    background: var(--green-deep);
    border-color: var(--green-deep);
    color: #fff;
}
.p-step.done { color: var(--ink-3); cursor: pointer; }
.p-step.done .p-num {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--bg);
}
.p-sep {
    flex: 1;
    min-width: 14px;
    max-width: 42px;
    height: 1px;
    background: var(--line-strong);
    flex-shrink: 1;
}
@media (min-width: 641px) {
    .p-step .p-label-short { display: none; }
}
@media (max-width: 640px) {
    .p-step .p-label-full { display: none; }
}

/* ============ ETAPAS ============ */
.stage {
    min-height: calc(100vh - 150px);
    display: flex;
    flex-direction: column;
}
.step { display: none; animation: stepIn var(--t-med) both; }
.step.active { display: block; }
@keyframes stepIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
    * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
    html { scroll-behavior: auto; }
}

.step-narrow { max-width: 720px; margin: 0 auto; }

.step-head {
    padding: clamp(48px, 8vh, 88px) 0 clamp(32px, 5vh, 48px);
    text-align: center;
}
.step-kicker {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .24em;
    color: var(--green-emerald);
    margin-bottom: var(--space-4);
}
.step-head .step-kicker { justify-content: center; }
.step-kicker::before {
    content: '';
    width: 26px;
    height: 1px;
    background: var(--green-emerald);
}
.step-head .step-kicker::after {
    content: '';
    width: 26px;
    height: 1px;
    background: var(--green-emerald);
}
.step-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(34px, 4.6vw, 52px);
    line-height: 1.04;
    letter-spacing: -.015em;
    color: var(--ink);
    max-width: 22ch;
    margin-inline: auto;
}
.step-sub {
    margin-top: var(--space-4);
    margin-inline: auto;
    font-size: 16.5px;
    color: var(--ink-2);
    max-width: 58ch;
    line-height: 1.65;
}

/* ============ BOAS-VINDAS ============ */
.hero {
    padding: clamp(64px, 11vh, 128px) 0 clamp(56px, 8vh, 88px);
    position: relative;
}
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
    gap: clamp(40px, 6vw, 88px);
    align-items: center;
}
@media (max-width: 940px) {
    .hero-grid { grid-template-columns: 1fr; gap: var(--space-7); }
}
.hero h1 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(44px, 6.2vw, 82px);
    line-height: 1.01;
    letter-spacing: -.02em;
    color: var(--ink);
}
.hero h1 em {
    font-style: italic;
    color: var(--green-emerald);
}
.hero-sub {
    margin-top: var(--space-5);
    font-size: clamp(16.5px, 1.5vw, 19px);
    color: var(--ink-2);
    max-width: 52ch;
    line-height: 1.68;
}
.hero-actions {
    margin-top: var(--space-7);
    display: flex;
    align-items: center;
    gap: var(--space-4);
    flex-wrap: wrap;
}
.hero-meta {
    margin-top: var(--space-5);
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--ink-3);
}
.hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-left: var(--space-4);
    border-left: 1px solid var(--line-strong);
}
.hero-meta span:first-child { padding-left: 0; border-left: 0; }
.hero-meta svg { flex-shrink: 0; opacity: .7; }

.hero-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: clamp(24px, 2.6vw, 36px);
}
.hero-panel-title {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .26em;
    color: var(--ink-3);
    margin-bottom: var(--space-4);
}
.hero-figure { padding: var(--space-4) 0; border-top: 1px solid var(--line); }
.hero-figure:first-of-type { border-top: 0; padding-top: 0; }
.hero-figure-label {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .04em;
    color: var(--ink-3);
}
.hero-figure-value {
    font-family: var(--font-display);
    font-size: clamp(30px, 2.8vw, 38px);
    font-weight: 400;
    color: var(--ink);
    line-height: 1.12;
    margin-top: 3px;
    letter-spacing: -.01em;
}
.hero-figure-note { font-size: 12.5px; color: var(--ink-3); margin-top: 3px; }
.hero-figure-bar {
    margin-top: 12px;
    height: 3px;
    border-radius: 2px;
    background: var(--bg-deep);
    overflow: hidden;
}
.hero-figure-bar i {
    display: block;
    height: 100%;
    border-radius: 2px;
    background: var(--green-emerald);
    width: 0;
    transition: width 1.2s var(--ease) .35s;
}
.hero-disclaimer {
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid var(--line);
    font-size: 12px;
    color: var(--ink-3);
    line-height: 1.6;
}

/* ============ BOTÕES ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    font-size: 14.5px;
    font-weight: 600;
    letter-spacing: .012em;
    padding: 15px 30px;
    transition: all var(--t-fast);
    text-align: center;
    min-height: 50px;
}
.btn-primary {
    background: var(--green-deep);
    color: #fff;
}
.btn-primary:hover { background: var(--green-deeper); box-shadow: var(--shadow-md); }
.btn-primary:active { transform: translateY(1px); box-shadow: none; }
.btn-secondary {
    background: var(--surface);
    color: var(--ink);
    border-color: var(--line-strong);
}
.btn-secondary:hover { border-color: var(--ink-3); }
.btn-ghost {
    background: transparent;
    color: var(--ink-3);
    min-height: 46px;
    padding: 10px 16px;
}
.btn-ghost:hover { color: var(--ink); }
.btn[disabled] { opacity: .4; cursor: not-allowed; box-shadow: none; }
.btn-block { width: 100%; }

.step-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-6) 0 var(--space-8);
    margin-top: auto;
    border-top: 1px solid var(--line);
}
.step-nav.single { justify-content: flex-end; }

/* ============ CARTÕES DE PERGUNTA ============ */
.qcard {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: clamp(22px, 2.6vw, 32px);
    margin-bottom: var(--space-4);
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.qcard:focus-within {
    border-color: rgba(25, 135, 84, .45);
    box-shadow: 0 0 0 4px rgba(25, 135, 84, .06);
}
.qcard.invalid { border-color: rgba(168, 67, 47, .5); }
.q-label {
    display: block;
    font-size: 15.5px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 3px;
    letter-spacing: .002em;
}
.q-hint {
    font-size: 13.5px;
    color: var(--ink-3);
    margin-bottom: var(--space-4);
    line-height: 1.55;
}
.q-error {
    display: none;
    font-size: 12.5px;
    color: var(--red);
    margin-top: var(--space-2);
}
.qcard.invalid .q-error { display: block; }

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}
@media (max-width: 640px) {
    .field-row { grid-template-columns: 1fr; }
}

/* Inputs de moeda / número */
.money-input {
    position: relative;
    display: flex;
    align-items: center;
}
.money-input .prefix {
    position: absolute;
    left: 18px;
    font-size: 16px;
    color: var(--ink-4);
    pointer-events: none;
}
.input-lg {
    width: 100%;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    font-size: 23px;
    font-weight: 500;
    color: var(--ink);
    padding: 15px 18px 15px 50px;
    letter-spacing: .005em;
    transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
    font-variant-numeric: tabular-nums;
}
.input-lg.no-prefix { padding-left: 18px; }
.input-lg:focus {
    outline: none;
    border-color: var(--green-emerald);
    background: var(--surface);
    box-shadow: 0 0 0 4px rgba(25, 135, 84, .1);
}
.input-lg::placeholder { color: var(--ink-4); font-weight: 400; }
.input-suffix {
    position: absolute;
    right: 18px;
    font-size: 13px;
    color: var(--ink-4);
    pointer-events: none;
}

/* Sliders */
.slider-field { padding: var(--space-2) 0 0; }
.slider-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: var(--space-3);
    gap: var(--space-3);
}
.slider-value {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 400;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    letter-spacing: -.01em;
}
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 28px;
    background: transparent;
    cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(to right, var(--green-emerald) var(--fill, 50%), #E5E2D8 var(--fill, 50%));
}
input[type="range"]::-moz-range-track {
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(to right, var(--green-emerald) var(--fill, 50%), #E5E2D8 var(--fill, 50%));
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: var(--surface);
    border: 1.5px solid var(--green-deep);
    box-shadow: 0 1px 4px rgba(19, 26, 21, .18);
    margin-top: -8px;
    transition: transform var(--t-fast);
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.12); }
input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--surface);
    border: 1.5px solid var(--green-deep);
    box-shadow: 0 1px 4px rgba(19, 26, 21, .18);
}
.slider-scale {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--ink-4);
    margin-top: 4px;
    letter-spacing: .04em;
}

/* Presets / segmentos */
.preset-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
    margin-bottom: var(--space-5);
}
@media (max-width: 560px) {
    .preset-row { grid-template-columns: 1fr; }
}
.preset {
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    padding: 15px 17px;
    text-align: left;
    transition: all var(--t-fast);
}
.preset:hover { border-color: var(--ink-3); }
.preset.selected {
    border-color: var(--green-deep);
    background: var(--green-tint);
    box-shadow: inset 0 0 0 1px var(--green-deep);
}
.preset-name {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--ink);
}
.preset-detail {
    font-size: 12.5px;
    color: var(--ink-3);
    margin-top: 2px;
}

/* Opções tipo rádio (INSS) */
.opt-list { display: flex; flex-direction: column; gap: var(--space-2); }
.opt {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    padding: 15px 17px;
    cursor: pointer;
    transition: all var(--t-fast);
}
.opt:hover { border-color: var(--ink-3); }
.opt input { margin-top: 3px; accent-color: var(--green-deep); }
.opt.selected {
    border-color: var(--green-deep);
    background: var(--green-tint);
    box-shadow: inset 0 0 0 1px var(--green-deep);
}
.opt-title { font-size: 14px; font-weight: 700; color: var(--ink); }
.opt-desc { font-size: 12.5px; color: var(--ink-3); }
.opt-extra { display: none; margin-top: var(--space-3); }
.opt-extra.visible { display: block; }

/* Toggle simples/avançado */
.mode-toggle {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 13.5px;
    color: var(--ink-2);
    user-select: none;
    cursor: pointer;
}
.switch {
    position: relative;
    width: 40px;
    height: 22px;
    border-radius: 11px;
    background: #DDD9CC;
    border: none;
    transition: background var(--t-fast);
    flex-shrink: 0;
}
.switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition: transform var(--t-fast);
}
.switch[aria-checked="true"] { background: var(--green-deep); }
.switch[aria-checked="true"]::after { transform: translateX(18px); }

.advanced-block { display: none; }
.advanced-block.visible { display: block; animation: stepIn var(--t-med) both; }

.microcopy {
    font-size: 12.5px;
    color: var(--ink-3);
    line-height: 1.55;
}
.microcopy.warn { color: var(--amber); }

/* ============ RESULTADO ============ */
.result-wrap { padding-bottom: var(--space-6); }

.freedom-hero {
    background: var(--green-deep);
    border-radius: 18px;
    color: #fff;
    padding: clamp(36px, 5.4vw, 68px);
    position: relative;
    overflow: hidden;
    margin-top: var(--space-6);
}
.freedom-hero::before {
    content: '';
    position: absolute;
    right: -140px;
    top: -160px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    border: 1px solid rgba(143, 214, 180, .22);
    pointer-events: none;
}
.freedom-hero::after {
    content: '';
    position: absolute;
    right: -60px;
    top: -80px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    border: 1px solid rgba(143, 214, 180, .14);
    pointer-events: none;
}
.freedom-kicker {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .28em;
    color: var(--green-soft);
}
.freedom-value {
    font-family: var(--font-display);
    font-size: clamp(54px, 8.4vw, 104px);
    font-weight: 400;
    line-height: .98;
    letter-spacing: -.015em;
    margin-top: var(--space-4);
    font-variant-numeric: tabular-nums;
}
.freedom-desc {
    margin-top: var(--space-4);
    max-width: 60ch;
    font-size: 15px;
    color: rgba(255, 255, 255, .78);
    line-height: 1.7;
}
.freedom-split {
    margin-top: var(--space-6);
    padding-top: var(--space-5);
    border-top: 1px solid rgba(255, 255, 255, .16);
    display: flex;
    gap: clamp(28px, 4vw, 64px);
    flex-wrap: wrap;
}
.freedom-split-item {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .55);
}
.freedom-split-item strong {
    display: block;
    font-size: 21px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: #fff;
    margin-top: 5px;
    font-variant-numeric: tabular-nums;
}

/* Indicadores — células editoriais separadas por hairline */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: var(--space-6);
    border-top: 1px solid var(--line-strong);
}
@media (max-width: 960px) { .metrics-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .metrics-grid { grid-template-columns: 1fr; } }
.metric-card {
    padding: var(--space-5) var(--space-5) var(--space-5) 0;
    border-bottom: 1px solid var(--line);
}
@media (min-width: 961px) {
    .metric-card { padding-right: var(--space-5); border-right: 1px solid var(--line); }
    .metric-card:last-child { border-right: 0; padding-right: 0; }
}
@media (min-width: 521px) and (max-width: 960px) {
    .metric-card:nth-child(odd) { border-right: 1px solid var(--line); padding-right: var(--space-5); }
    .metric-card:nth-child(even) { padding-left: var(--space-5); }
    .metric-card:nth-child(n+3) { border-bottom: 0; }
}
@media (max-width: 520px) {
    .metric-card { border-bottom: 1px solid var(--line); }
    .metric-card:last-child { border-bottom: 0; }
}
.metric-label {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .18em;
    color: var(--ink-3);
}
.metric-value {
    font-family: var(--font-display);
    font-size: clamp(32px, 3.4vw, 44px);
    font-weight: 400;
    color: var(--ink);
    line-height: 1.08;
    margin-top: var(--space-3);
    letter-spacing: -.015em;
}
.metric-note { font-size: 12.5px; color: var(--ink-3); margin-top: var(--space-2); line-height: 1.5; }

.section-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: clamp(26px, 3.6vw, 48px);
    margin-top: var(--space-4);
}
.section-card h2 {
    font-family: var(--font-display);
    font-size: clamp(25px, 2.8vw, 33px);
    font-weight: 400;
    color: var(--ink);
    line-height: 1.12;
    letter-spacing: -.012em;
}
.section-card .section-sub {
    font-size: 14.5px;
    color: var(--ink-3);
    margin-top: var(--space-2);
    max-width: 66ch;
    line-height: 1.62;
}
.section-head-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-4);
    flex-wrap: wrap;
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-5);
    border-bottom: 1px solid var(--line);
}

/* Índice de preparação */
.readiness-layout {
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
}
@media (max-width: 720px) {
    .readiness-layout { grid-template-columns: 1fr; justify-items: start; }
}
.gauge { position: relative; width: 210px; padding-bottom: 34px; }
.gauge svg { width: 100%; height: auto; display: block; }
.gauge-center {
    position: absolute;
    inset: 0;
    bottom: 34px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 54px;
    pointer-events: none;
}
.gauge-score {
    font-family: var(--font-display);
    font-size: 46px;
    font-weight: 400;
    color: var(--ink);
    line-height: 1;
    font-variant-numeric: tabular-nums;
    letter-spacing: -.02em;
}
.gauge-score small { font-size: 19px; color: var(--ink-4); }
.gauge-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 6px;
    text-align: center;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .2em;
    color: var(--ink-3);
}
.readiness-copy h3 {
    font-size: 17.5px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: var(--space-2);
    letter-spacing: .002em;
}
.readiness-copy p { font-size: 14.5px; color: var(--ink-2); max-width: 58ch; line-height: 1.65; }
.readiness-scale {
    margin-top: var(--space-5);
    display: flex;
    gap: 5px;
    max-width: 420px;
}
.readiness-scale i {
    flex: 1;
    height: 3px;
    border-radius: 2px;
    background: #E5E2D8;
}
.readiness-scale i.filled { background: var(--green-emerald); }
.readiness-scale-labels {
    display: flex;
    justify-content: space-between;
    max-width: 420px;
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ink-4);
    margin-top: 8px;
}

/* Gráficos */
.chart-container { position: relative; width: 100%; }
.chart-tooltip {
    position: absolute;
    z-index: 5;
    background: var(--ink);
    color: #fff;
    border-radius: 8px;
    padding: 9px 13px;
    font-size: 12px;
    line-height: 1.5;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-md);
    white-space: nowrap;
}
.chart-tooltip strong { font-weight: 700; }
.chart-legend {
    display: flex;
    gap: var(--space-5);
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--ink-3);
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid var(--line);
}
.chart-legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend-dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

.compare-bars { display: flex; flex-direction: column; gap: var(--space-6); }
.compare-row.highlight .compare-bar { background: var(--green-deep); }
.compare-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 9px;
    gap: var(--space-3);
}
.compare-label { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.compare-value {
    font-family: var(--font-display);
    font-size: 19px;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
    letter-spacing: -.01em;
}
.compare-track {
    height: 10px;
    border-radius: 5px;
    background: #EFEDE4;
    overflow: hidden;
}
.compare-bar {
    height: 100%;
    width: 0;
    border-radius: 5px;
    background: var(--green-mid);
    transition: width 1s var(--ease);
}
.compare-note { font-size: 12.5px; color: var(--ink-3); margin-top: 8px; }

/* Análise de gap */
.gap-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    flex-wrap: wrap;
    border-radius: var(--radius);
    padding: var(--space-4) var(--space-5);
    margin: var(--space-5) 0;
}
.gap-banner.negative { background: var(--red-tint); }
.gap-banner.positive { background: var(--green-tint); }
.gap-banner-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.gap-banner.negative .gap-banner-label { color: var(--red); }
.gap-banner.positive .gap-banner-label { color: var(--green-deep); }
.gap-banner-value {
    font-family: var(--font-display);
    font-size: 34px;
    font-weight: 400;
    letter-spacing: -.015em;
}
.gap-banner.negative .gap-banner-value { color: var(--red); }
.gap-banner.positive .gap-banner-value { color: var(--green-deep); }
.gap-compare {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: var(--space-4);
    align-items: stretch;
    text-align: center;
    margin-bottom: var(--space-5);
}
@media (max-width: 560px) {
    .gap-compare { grid-template-columns: 1fr; }
    .gap-vs { display: none; }
}
.gap-cell {
    padding: var(--space-5);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-2);
}
.gap-cell-label {
    font-size: 10.5px;
    font-weight: 600;
    color: var(--ink-3);
    letter-spacing: .18em;
}
.gap-cell-value {
    font-family: var(--font-display);
    font-size: clamp(26px, 2.8vw, 34px);
    font-weight: 400;
    color: var(--ink);
    margin-top: var(--space-2);
    font-variant-numeric: tabular-nums;
    letter-spacing: -.015em;
}
.gap-vs {
    display: flex;
    align-items: center;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .22em;
    color: var(--ink-4);
}

.alt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
    gap: var(--space-4);
}
.alt-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: var(--space-5);
    background: var(--surface-2);
}
.alt-num {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .22em;
    color: var(--green-emerald);
}
.alt-title { font-size: 14px; font-weight: 600; margin-top: 8px; color: var(--ink); }
.alt-value {
    font-family: var(--font-display);
    font-size: 29px;
    font-weight: 400;
    color: var(--ink);
    margin-top: var(--space-2);
    font-variant-numeric: tabular-nums;
    letter-spacing: -.015em;
}
.alt-desc { font-size: 12.5px; color: var(--ink-3); margin-top: var(--space-2); line-height: 1.58; }
.alt-unavailable { font-size: 14px; color: var(--ink-3); font-style: italic; }

/* Cenários */
.scenario-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
}
@media (max-width: 800px) { .scenario-grid { grid-template-columns: 1fr; } }
.scenario-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: var(--space-5);
    background: var(--surface-2);
    position: relative;
    transition: all var(--t-fast);
}
.scenario-card.base-scenario {
    border-color: var(--green-deep);
    box-shadow: inset 0 0 0 1px var(--green-deep);
    background: var(--green-tint);
}
.scenario-badge {
    position: absolute;
    top: -9px;
    right: 16px;
    background: var(--green-deep);
    color: #fff;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .16em;
    border-radius: 20px;
    padding: 4px 11px;
}
.scenario-name { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.scenario-rate {
    font-size: 12px;
    color: var(--ink-3);
    margin-top: 2px;
    letter-spacing: .04em;
}
.scenario-stats {
    margin-top: var(--space-5);
    padding-top: var(--space-4);
    border-top: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 11px;
}
.scenario-stat {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--space-3);
    font-size: 12.5px;
    color: var(--ink-3);
}
.scenario-stat strong {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 400;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
    text-align: right;
    letter-spacing: -.01em;
}

/* E se */
.whatif-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(32px, 4.5vw, 64px);
}
@media (max-width: 860px) { .whatif-layout { grid-template-columns: 1fr; } }
.whatif-sliders { display: flex; flex-direction: column; gap: var(--space-5); }
.whatif-results {
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: var(--space-5) var(--space-5);
    align-self: start;
    position: sticky;
    top: 86px;
}
@media (max-width: 860px) { .whatif-results { position: static; } }
.wi-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--line);
    gap: var(--space-3);
}
.wi-row:first-child { padding-top: 0; }
.wi-row:last-child { border-bottom: 0; padding-bottom: 0; }
.wi-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ink-3);
}
.wi-value {
    font-family: var(--font-display);
    font-size: 21px;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
    text-align: right;
    letter-spacing: -.01em;
}
.wi-delta { font-size: 12px; margin-left: 8px; font-weight: 500; font-family: var(--font-sans); }
.wi-delta.up { color: var(--green-emerald); }
.wi-delta.down { color: var(--red); }
.whatif-reset {
    margin-top: var(--space-4);
    font-size: 13px;
    background: none;
    border: none;
    color: var(--ink-3);
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: var(--line-strong);
}
.whatif-reset:hover { color: var(--ink); }

/* Custo de esperar */
.waiting-layout {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: var(--space-5);
    align-items: stretch;
    margin-top: var(--space-5);
}
@media (max-width: 700px) {
    .waiting-layout { grid-template-columns: 1fr; }
    .waiting-arrow { transform: rotate(90deg); justify-content: center; }
}
.waiting-option {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: var(--space-6) var(--space-5);
    background: var(--surface-2);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.waiting-option.later { border-color: rgba(168, 67, 47, .35); background: #FCF8F4; }
.waiting-opt-label {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .2em;
    color: var(--ink-3);
}
.waiting-opt-value {
    font-family: var(--font-display);
    font-size: clamp(34px, 4vw, 48px);
    font-weight: 400;
    color: var(--ink);
    margin-top: var(--space-3);
    font-variant-numeric: tabular-nums;
    letter-spacing: -.015em;
    line-height: 1.05;
}
.waiting-option.later .waiting-opt-value { color: var(--red); }
.waiting-opt-note {
    font-size: 12.5px;
    color: var(--ink-3);
    margin-top: var(--space-2);
    letter-spacing: .02em;
}
.waiting-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-4);
}
.waiting-insight {
    margin-top: var(--space-5);
    padding: var(--space-5) var(--space-6);
    background: var(--amber-tint);
    border-radius: var(--radius);
    font-size: 14.5px;
    color: #57451A;
    line-height: 1.7;
    max-width: none;
}

/* Longevidade */
.longevity-callout {
    margin-top: var(--space-5);
    border-top: 1px solid var(--line);
    padding: var(--space-5) 0 0;
    font-size: 15px;
    color: var(--ink-2);
    line-height: 1.7;
    max-width: 76ch;
}
.longevity-callout strong { color: var(--ink); font-weight: 700; }

/* Como calculamos */
details.how {
    margin-top: var(--space-4);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}
details.how summary {
    list-style: none;
    cursor: pointer;
    padding: var(--space-4) var(--space-5);
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
details.how summary::-webkit-details-marker { display: none; }
details.how summary::after {
    content: '+';
    font-size: 20px;
    color: var(--ink-4);
    font-weight: 400;
    font-family: var(--font-display);
}
details.how[open] summary::after { content: '–'; }
details.how .how-body {
    padding: 0 var(--space-5) var(--space-5);
    font-size: 13.5px;
    color: var(--ink-2);
    line-height: 1.75;
}
details.how .how-body p + p { margin-top: var(--space-3); }

/* ============ LEAD / CTA FINAL ============ */
.lead-section {
    background: var(--surface);
    border-top: 1px solid var(--line);
    padding: var(--space-9) 0;
    margin-top: var(--space-8);
}
.lead-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(40px, 6vw, 96px);
    align-items: start;
}
@media (max-width: 860px) { .lead-grid { grid-template-columns: 1fr; } }
.lead-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 4.4vw, 52px);
    font-weight: 400;
    color: var(--ink);
    line-height: 1.06;
    letter-spacing: -.018em;
}
.lead-text {
    margin-top: var(--space-5);
    font-size: 16px;
    color: var(--ink-2);
    max-width: 50ch;
    line-height: 1.72;
}
.lead-points {
    margin-top: var(--space-6);
    display: flex;
    flex-direction: column;
}
.lead-point {
    display: flex;
    gap: 12px;
    font-size: 14.5px;
    color: var(--ink-2);
    align-items: baseline;
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--line);
}
.lead-point:first-child { border-top: 1px solid var(--line); }
.lead-point svg { flex-shrink: 0; transform: translateY(2px); }
.lead-form {
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    padding: clamp(26px, 3vw, 40px);
    box-shadow: var(--shadow-md);
}
.lead-form-title {
    font-family: var(--font-display);
    font-size: 27px;
    font-weight: 400;
    color: var(--ink);
    letter-spacing: -.012em;
}
.lead-form-sub {
    font-size: 13.5px;
    color: var(--ink-3);
    margin-top: 6px;
    margin-bottom: var(--space-6);
    line-height: 1.6;
}
.form-field { margin-bottom: var(--space-4); }
.form-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink-2);
    margin-bottom: 8px;
}
.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"] {
    width: 100%;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    font-size: 16px;
    padding: 13px 15px;
    color: var(--ink);
    transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.form-field input:focus {
    outline: none;
    border-color: var(--green-emerald);
    background: var(--surface);
    box-shadow: 0 0 0 4px rgba(25, 135, 84, .1);
}
.form-field .field-error { display: none; font-size: 12px; color: var(--red); margin-top: 6px; }
.form-field.invalid input { border-color: var(--red); }
.form-field.invalid .field-error { display: block; }
.consent-row {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    font-size: 13px;
    color: var(--ink-2);
    margin: var(--space-5) 0 var(--space-5);
    line-height: 1.6;
}
.consent-row input { margin-top: 3px; accent-color: var(--green-deep); }
.hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px; height: 1px;
    overflow: hidden;
}
.lead-success {
    display: none;
    text-align: center;
    padding: var(--space-6) var(--space-4);
}
.lead-success.visible { display: block; animation: stepIn var(--t-med) both; }
.lead-success-icon {
    width: 54px; height: 54px;
    border-radius: 50%;
    background: var(--green-tint);
    border: 1px solid rgba(25, 135, 84, .3);
    color: var(--green-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-5);
}
.lead-success h3 {
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 400;
    color: var(--ink);
    letter-spacing: -.012em;
}
.lead-success p { font-size: 14px; color: var(--ink-3); margin-top: var(--space-3); line-height: 1.65; }
.lead-loading { display: none; text-align: center; padding: var(--space-6) 0; color: var(--ink-3); font-size: 14px; }
.lead-loading.visible { display: block; }
.spinner {
    width: 28px; height: 28px;
    border: 2px solid #E5E2D8;
    border-top-color: var(--green-deep);
    border-radius: 50%;
    margin: 0 auto var(--space-4);
    animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.final-cta {
    background: var(--green-deep);
    color: #fff;
    padding: clamp(72px, 11vh, 128px) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.final-cta::before {
    content: '';
    position: absolute;
    left: 50%;
    top: -320px;
    transform: translateX(-50%);
    width: 640px;
    height: 640px;
    border-radius: 50%;
    border: 1px solid rgba(143, 214, 180, .16);
    pointer-events: none;
}
.final-cta h2 {
    font-family: var(--font-display);
    font-size: clamp(34px, 5vw, 58px);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -.018em;
    max-width: 24ch;
    margin: 0 auto;
}
.final-cta p {
    margin: var(--space-5) auto 0;
    max-width: 60ch;
    font-size: 15.5px;
    color: rgba(255, 255, 255, .78);
    line-height: 1.72;
}
.final-cta-actions {
    margin-top: var(--space-7);
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
}
.btn-white { background: #fff; color: var(--green-deep); }
.btn-white:hover { background: var(--green-tint); box-shadow: var(--shadow-md); }
.btn-outline-white {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, .38);
}
.btn-outline-white:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }

/* ============ RODAPÉ ============ */
.footer {
    background: var(--bg);
    border-top: 1px solid var(--line);
    padding: var(--space-7) 0;
}
.footer-disclaimer {
    font-size: 12px;
    color: var(--ink-3);
    line-height: 1.75;
    max-width: 92ch;
}
.footer-brand {
    margin-top: var(--space-5);
    padding-top: var(--space-4);
    border-top: 1px solid var(--line);
    font-size: 11.5px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ink-4);
    display: flex;
    justify-content: space-between;
    gap: var(--space-4);
    flex-wrap: wrap;
}

/* Ações flutuantes do resultado */
.result-actions {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
    margin-top: var(--space-6);
    padding-top: var(--space-5);
    border-top: 1px solid var(--line);
}

