:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-alt: #eef1f5;
  --text: #121826;
  --muted: #5b6474;
  --border: #dde2ea;
  --accent: #2f5bea;
  --accent-ink: #ffffff;
  --ghl: #b4472f;
  --save: #1d7f4e;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 8px 24px rgba(16, 24, 40, .06);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1116;
    --surface: #161a22;
    --surface-alt: #121620;
    --text: #e7eaf0;
    --muted: #9aa3b2;
    --border: #2a303c;
    --accent: #6d8cff;
    --accent-ink: #0b0e14;
    --ghl: #ff8a70;
    --save: #4cc38a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .3);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 760px; }

.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--border); }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; font-weight: 700; }
.brand-mark { width: 28px; height: 28px; color: var(--accent); }
.nav { display: flex; align-items: center; gap: 18px; }
.nav a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.nav a:hover { color: var(--text); }
.nav a.btn { color: var(--accent-ink); }
@media (max-width: 720px) { .nav a:not(.btn) { display: none; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 10px; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); font: 600 1rem var(--font); text-decoration: none; cursor: pointer; transition: transform .08s ease, opacity .15s; }
.btn:hover { opacity: .92; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn-small { padding: 8px 14px; font-size: .9rem; }
.btn-ghost { background: transparent; color: var(--accent); }

.hero { padding: 56px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; } }
.eyebrow { color: var(--accent); font-weight: 600; font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 60ch; }
.lead strong { color: var(--text); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 12px; }
.hero-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.hero-card-label { color: var(--muted); font-size: .9rem; margin-bottom: 6px; }
.hero-card-big { font-size: 2.4rem; font-weight: 750; color: var(--ghl); margin-bottom: 8px; line-height: 1.1; }
.hero-card-big .unit { display: block; margin-top: 6px; }
.unit { font-size: .95rem; font-weight: 500; color: var(--muted); }
.hero-card-note { color: var(--muted); font-size: .95rem; }
.src { font-size: .85rem; }

.section { padding: 64px 0; }
.section-alt { background: var(--surface-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-lead { color: var(--muted); font-size: 1.05rem; margin-bottom: 28px; }
.fineprint { color: var(--muted); font-size: .85rem; }

.calc { display: grid; grid-template-columns: 1fr 1.6fr; gap: 24px; align-items: start; }
.calc > *, .hero-grid > *, .result-cards > * { min-width: 0; }
@media (max-width: 880px) { .calc { grid-template-columns: 1fr; } }
.calc-inputs, .calc-results { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field > span { font-weight: 600; font-size: .95rem; }
.field small { color: var(--muted); font-size: .82rem; }
input[type="number"], input[type="text"], input[type="email"], select, textarea {
  width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg); color: var(--text); font: 1rem var(--font);
}
input:focus-visible, select:focus-visible, textarea:focus-visible, .btn:focus-visible, summary:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; }
input[type="range"] { width: 100%; accent-color: var(--accent); }
.advanced summary { cursor: pointer; color: var(--muted); font-weight: 600; margin-bottom: 12px; }

.result-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
@media (max-width: 600px) { .result-cards { grid-template-columns: 1fr; } }
.card { border: 1px solid var(--border); border-radius: 12px; padding: 16px; background: var(--bg); }
.card-label { color: var(--muted); font-size: .85rem; margin-bottom: 4px; }
.card-value { font-size: 1.9rem; font-weight: 750; margin-bottom: 4px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.card-sub { color: var(--muted); font-size: .85rem; margin: 0; }
.card-ghl .card-value { color: var(--ghl); }
.card-vault .card-value { color: var(--accent); }
.card-save .card-value { color: var(--save); }

.table-wrap { overflow-x: auto; }
table.growth { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; margin-bottom: 12px; }
table.growth caption { text-align: left; font-weight: 600; margin-bottom: 8px; }
table.growth th, table.growth td { text-align: right; padding: 8px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
table.growth th:first-child, table.growth td:first-child { text-align: left; }
table.growth thead th { color: var(--muted); font-weight: 600; font-size: .85rem; }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 880px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 700; margin-bottom: 10px; }
.steps p, .feature p { color: var(--muted); margin: 0; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 880px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }
.feature { padding: 18px; border-radius: var(--radius); border: 1px dashed var(--border); }

.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 12px; }
@media (max-width: 720px) { .pricing { grid-template-columns: 1fr; } }
.price-card { background: var(--surface); border: 2px solid var(--accent); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.price-card-muted { border: 1px solid var(--border); box-shadow: none; }
.price-name { font-weight: 700; margin-bottom: 4px; }
.price-amount { font-size: 2rem; font-weight: 750; margin-bottom: 12px; }
.price-card ul { margin: 0; padding-left: 18px; color: var(--muted); }

.waitlist { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 600px) { .grid-2 { grid-template-columns: 1fr; } }
textarea { resize: vertical; }
.cf-turnstile { margin: 4px 0 16px; }
.form-status { margin: 12px 0 0; font-weight: 600; min-height: 1.4em; }
.form-status.ok { color: var(--save); }
.form-status.error { color: var(--ghl); }

.faq { border-bottom: 1px solid var(--border); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { color: var(--muted); margin: 10px 0 0; }

.site-footer { border-top: 1px solid var(--border); padding: 24px 0; color: var(--muted); font-size: .9rem; }
.footer-row { display: flex; justify-content: space-between; gap: 12px; }
.footer-row p { margin: 0; }
