:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #eef1f8;
  --ink: #141a2e;
  --ink-2: #4a5270;
  --ink-3: #7a819c;
  --line: #dde2ee;
  --brand: #2b3a8f;
  --brand-ink: #ffffff;
  --brand-soft: #e6e9fb;
  --accent: #1a98ff;
  --accent-ink: #ffffff;
  --warn-bg: #eaf5ff;
  --warn-line: #a9d6ff;
  --warn-ink: #0b3a66;
  --ok: #1e7a4c;
  --bad: #a23232;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 26, 46, .06), 0 8px 24px rgba(20, 26, 46, .06);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1322;
    --surface: #171c30;
    --surface-2: #1f2540;
    --ink: #eef0f8;
    --ink-2: #b6bcd6;
    --ink-3: #8790b0;
    --line: #2c3354;
    --brand: #8fa0ff;
    --brand-ink: #0f1322;
    --brand-soft: #232a4d;
    --accent: #3aa8ff;
    --warn-bg: #10263d;
    --warn-line: #1e4f80;
    --warn-ink: #bfe0ff;
    --ok: #5fd39a;
    --bad: #ff8c8c;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--font); }
a { color: var(--brand); }
img, svg { max-width: 100%; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 820px; }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.logo-mark { width: 30px; height: 30px; border-radius: 8px; background: var(--brand); display: grid; place-items: center; }
.logo-mark svg { width: 18px; height: 18px; }
.nav { display: flex; gap: 18px; flex-wrap: wrap; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--ink); }
.nav .cta-link { color: var(--brand); font-weight: 700; }
@media (max-width: 640px) { .nav a:not(.cta-link) { display: none; } }

/* Hero */
.hero { padding: 56px 0 28px; text-align: center; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); background: var(--brand-soft); padding: 4px 10px; border-radius: 999px; }
h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.12; letter-spacing: -.02em; margin: 16px auto 12px; max-width: 760px; }
.lede { font-size: 18px; color: var(--ink-2); max-width: 640px; margin: 0 auto; }
.stats { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 28px; margin: 22px 0 0; padding: 0; list-style: none; color: var(--ink-2); font-size: 15px; }
.stats strong { color: var(--ink); }

/* Notice */
.notice { background: var(--warn-bg); border: 1px solid var(--warn-line); color: var(--warn-ink); border-radius: 10px; padding: 10px 14px; font-size: 14px; line-height: 1.5; }
.notice a { color: inherit; font-weight: 700; }
.notice.center { max-width: 760px; margin: 22px auto 0; text-align: left; }

/* Card / estimator */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.estimator { margin: 28px auto 0; max-width: 900px; display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; }
@media (max-width: 820px) { .estimator { grid-template-columns: 1fr; } }
.est-form { padding: 26px; border-right: 1px solid var(--line); }
@media (max-width: 820px) { .est-form { border-right: 0; border-bottom: 1px solid var(--line); } }
.est-form h2 { font-size: 18px; margin: 0 0 18px; }
.step { margin-bottom: 18px; }
.step label { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.step-num { width: 22px; height: 22px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font-size: 12px; display: grid; place-items: center; flex: none; }
select, input[type="number"], input[type="text"] {
  width: 100%; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; padding: 11px 12px; min-height: 46px;
}
select:focus, input:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: transparent; }
.hint { font-size: 13px; color: var(--ink-3); margin: 6px 0 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 700; border: 0; border-radius: 10px; padding: 12px 20px; min-height: 48px; cursor: pointer; text-decoration: none; }
.btn-primary { background: var(--brand); color: var(--brand-ink); width: 100%; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { filter: brightness(1.05); }
.btn[aria-disabled="true"], .btn:disabled { opacity: .45; cursor: not-allowed; filter: none; }

.est-result { padding: 26px; background: var(--surface-2); display: flex; flex-direction: column; gap: 14px; }
.result-empty { color: var(--ink-3); margin: auto 0; text-align: center; font-size: 15px; }
.result-label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); margin: 0; }
.result-big { font-size: 44px; font-weight: 800; letter-spacing: -.02em; line-height: 1.05; margin: 2px 0 0; font-variant-numeric: tabular-nums; }
.result-big small { font-size: 16px; font-weight: 600; color: var(--ink-2); letter-spacing: 0; }
.result-row { display: flex; gap: 24px; flex-wrap: wrap; font-size: 15px; color: var(--ink-2); }
.result-row strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.result-meta { font-size: 13px; color: var(--ink-3); margin: 0; }
.chart { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px; }
.chart svg { display: block; width: 100%; height: auto; }
.chart .axis { stroke: var(--line); }
.chart .curve { stroke: var(--brand); fill: none; stroke-width: 2.5; }
.chart .dot { fill: var(--accent); stroke: var(--surface); stroke-width: 2; }
.chart text { fill: var(--ink-3); font-size: 11px; font-family: var(--font); }
.result-warn { font-size: 13px; color: var(--warn-ink); background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: 8px; padding: 8px 10px; margin: 0; }

/* Sections */
section { padding: 56px 0; }
section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2.section-title { font-size: clamp(24px, 3.4vw, 32px); letter-spacing: -.015em; line-height: 1.2; margin: 0 0 10px; }
.section-lede { color: var(--ink-2); margin: 0 0 28px; max-width: 680px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 820px) { .grid-3 { grid-template-columns: 1fr; } }
.tile { padding: 22px; }
.tile h3 { margin: 10px 0 6px; font-size: 17px; }
.tile p { margin: 0; color: var(--ink-2); font-size: 15px; }
.tile .num { width: 34px; height: 34px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); font-weight: 800; display: grid; place-items: center; }

/* Buy */
.buy { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: start; }
@media (max-width: 860px) { .buy { grid-template-columns: 1fr; } }
.ticks { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; }
.ticks li { padding-left: 30px; position: relative; color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--brand-soft); }
.ticks li::after { content: ""; position: absolute; left: 6px; top: 8px; width: 6px; height: 9px; border: solid var(--brand); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.ticks strong { color: var(--ink); }
.buy-card { padding: 26px; }
.price { font-size: 46px; font-weight: 800; letter-spacing: -.02em; margin: 0; }
.price small { font-size: 16px; color: var(--ink-3); font-weight: 600; }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); margin: 16px 0; line-height: 1.5; }
.agree input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--brand); }
.fine { font-size: 12.5px; color: var(--ink-3); margin: 12px 0 0; line-height: 1.5; }
.preview { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; margin-top: 20px; background: var(--surface); }
.preview table { border-collapse: collapse; width: 100%; font-size: 13px; font-variant-numeric: tabular-nums; }
.preview th, .preview td { padding: 7px 10px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.preview th:first-child, .preview td:first-child { text-align: left; }
.preview thead th { background: var(--surface-2); color: var(--ink-2); font-weight: 700; }
.preview .blur { color: transparent; text-shadow: 0 0 7px var(--ink-3); user-select: none; }
.preview-cap { font-size: 12.5px; color: var(--ink-3); margin: 6px 0 0; }

/* Prose / explainer */
.prose h3 { font-size: 19px; margin: 26px 0 8px; }
.prose p, .prose li { color: var(--ink-2); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 36px; }
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; } }

/* FAQ */
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 16px; color: var(--ink-2); }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 36px 0 44px; font-size: 14px; color: var(--ink-2); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 28px; }
@media (max-width: 720px) { .foot-grid { grid-template-columns: 1fr; } }
.site-footer h4 { margin: 0 0 8px; font-size: 14px; color: var(--ink); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--ink-2); }
.legal-small { font-size: 12.5px; color: var(--ink-3); line-height: 1.55; margin: 0 0 10px; }

/* Legal pages */
.legal { padding: 40px 0 64px; }
.legal h1 { font-size: clamp(28px, 4vw, 38px); margin: 0 0 6px; text-align: left; }
.legal .meta { color: var(--ink-3); font-size: 14px; margin: 0 0 22px; }
.legal h2 { font-size: 20px; margin: 34px 0 10px; padding-top: 6px; border-top: 1px solid var(--line); }
.legal h3 { font-size: 16px; margin: 18px 0 6px; }
.legal p, .legal li { color: var(--ink-2); font-size: 15.5px; }
.legal ol, .legal ul { padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal .caps { text-transform: uppercase; font-weight: 600; color: var(--ink); font-size: 14.5px; }
.legal .box { background: var(--warn-bg); border: 1px solid var(--warn-line); color: var(--warn-ink); padding: 14px 16px; border-radius: 10px; }
.legal .box p { color: var(--warn-ink); margin: 0 0 8px; }
.legal .box p:last-child { margin: 0; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; columns: 2; column-gap: 30px; font-size: 14.5px; }
@media (max-width: 640px) { .toc { columns: 1; } }
.toc a { color: var(--ink-2); text-decoration: none; display: block; padding: 2px 0; }
.toc a:hover { color: var(--brand); }

/* Success page */
.success { max-width: 620px; margin: 56px auto; padding: 32px; text-align: center; }
.status-ok { color: var(--ok); font-weight: 700; }
.status-bad { color: var(--bad); font-weight: 700; }
.spinner { width: 28px; height: 28px; border: 3px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; margin: 10px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }

.checkout { margin-top: 16px; min-height: 360px; }
.asof { font-size: 13px; color: var(--ink-3); margin: 10px 0 14px; }

.est-section { padding-top: 24px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.est-result .btn { align-self: flex-start; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.btn-inline { width: auto; }
.btn-big { font-size: 18px; padding: 16px 28px; min-height: 58px; }

.btn-huge { display: inline-flex; flex-direction: column; gap: 6px; width: min(100%, 680px); padding: 28px 36px; border-radius: 18px;
  font-size: clamp(24px, 4vw, 36px); line-height: 1.15; letter-spacing: -.01em; box-shadow: 0 10px 30px rgba(26,152,255,.35); }
.btn-huge:hover { transform: translateY(-1px); }
.huge-top { font-size: .55em; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; opacity: .9; }
.huge-main { font-weight: 800; }
.huge-price { font-size: .8em; font-weight: 800; background: rgba(255,255,255,.18); border-radius: 999px; padding: 4px 18px; align-self: center; }
