:root {
  color-scheme: light dark;
  --accent: #0A5C63; --accent-strong: #073E44; --accent-tint: #E2EFEF; --on-accent: #FFFFFF;
  --text: #0B0F14; --muted: #5A6270; --bg: #F2F2F7; --card: #FFFFFF; --line: #E4E6EB; --field: #EEF0F3;
  --critical: #C4122F; --critical-text: #A30F27; --critical-tint: #FDEBEE;
  --good: #146C3A; --good-tint: #E3F4E8; --warn-text: #8A4B00; --warn-tint: #FFF0D9;
}
@media (prefers-color-scheme: dark) {
  :root {
    --accent: #5ED3CB; --accent-strong: #8FE3DD; --accent-tint: #0F2F31; --on-accent: #00282B;
    --text: #F5F7FA; --muted: #A1A8B3; --bg: #000000; --card: #1C1C1E; --line: #2C2C2E; --field: #2C2C2E;
    --critical: #FF6961; --critical-text: #FF8A84; --critical-tint: #3A1517;
    --good: #6FD39A; --good-tint: #12301F; --warn-text: #FFB340; --warn-tint: #3A2A10;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
a:hover { color: var(--accent-strong); }
img { max-width: 100%; height: auto; }

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

.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--text); text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav { display: flex; gap: 18px; align-items: center; font-size: 15px; }
.nav a { color: var(--text); text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--accent); }
.nav .cta { background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: 999px; font-weight: 600; }
.nav .cta:hover { color: var(--on-accent); background: var(--accent-strong); }
@media (max-width: 640px) { .nav a:not(.cta) { display: none; } }

h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 16px; }
h2 { font-size: clamp(26px, 4vw, 36px); line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 12px; }
h3 { font-size: 20px; margin: 0 0 6px; }
.lead { font-size: clamp(18px, 2.4vw, 21px); color: var(--muted); margin: 0 0 24px; max-width: 640px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin: 0 0 10px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

section { padding: 64px 0; }
.hero { padding: 72px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero-shot { justify-self: center; width: min(340px, 100%); border-radius: 44px; box-shadow: 0 0 0 9px #16181C, 0 30px 60px rgba(0,0,0,0.25); overflow: hidden; background: #F2F2F7; }
.hero-shot img { display: block; width: 100%; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero-shot { width: min(300px, 100%); } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: 17px; text-decoration: none; border: 0; cursor: pointer; font-family: inherit; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-strong); color: var(--on-accent); }
.btn-secondary { background: var(--accent-tint); color: var(--accent); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }
.card { background: var(--card); border-radius: 22px; padding: 24px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.card .icon { width: 44px; height: 44px; border-radius: 13px; background: var(--accent-tint); color: var(--accent); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.card p { margin: 0; color: var(--muted); }

.steps { counter-reset: step; display: grid; gap: 14px; padding: 0; margin: 0; list-style: none; }
.steps li { counter-increment: step; background: var(--card); border-radius: 18px; padding: 18px 18px 18px 64px; position: relative; }
.steps li::before { content: counter(step); position: absolute; left: 18px; top: 16px; width: 32px; height: 32px; border-radius: 16px; background: var(--accent); color: var(--on-accent); font-weight: 700; display: flex; align-items: center; justify-content: center; }

.pricing { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 720px; }
@media (max-width: 640px) { .pricing { grid-template-columns: 1fr; } }
.price { font-size: 40px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.plan-best { outline: 2.5px solid var(--accent); }
.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 8px; background: var(--accent); color: var(--on-accent); }

.waitlist { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.waitlist input[type=email] { flex: 1 1 240px; min-height: 52px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--text); padding: 0 16px; font: inherit; }
.form-note { font-size: 14px; color: var(--muted); margin-top: 8px; }
.form-ok { color: var(--good); font-weight: 600; }
.form-err { color: var(--critical-text); font-weight: 600; }

.faq details { background: var(--card); border-radius: 16px; padding: 16px 18px; margin-bottom: 10px; }
.faq summary { font-weight: 600; cursor: pointer; }
.faq details p { margin: 10px 0 0; color: var(--muted); }

.article { padding: 48px 0 72px; }
.article h1 { font-size: clamp(30px, 5vw, 44px); }
.article h2 { font-size: 26px; margin-top: 36px; }
.article p, .article li { max-width: 72ch; }
.article table { border-collapse: collapse; width: 100%; background: var(--card); border-radius: 14px; overflow: hidden; font-size: 15px; }
.article th, .article td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.article th { background: var(--field); }
.table-scroll { overflow-x: auto; }
.callout { background: var(--accent-tint); border-radius: 16px; padding: 16px 18px; margin: 20px 0; }
.formula { font-family: ui-monospace, Menlo, monospace; font-size: 15px; background: var(--card); border-radius: 12px; padding: 12px 14px; overflow-x: auto; }

.site-footer { border-top: 1px solid var(--line); padding: 32px 0 48px; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
.site-footer a { color: var(--muted); }

/* Calculator */
.calc { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 20px; align-items: start; }
@media (max-width: 900px) { .calc { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label, .legend { font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.field input, .field select { min-height: 48px; border-radius: 12px; border: 1px solid var(--line); background: var(--field); color: var(--text); padding: 0 12px; font: inherit; font-variant-numeric: tabular-nums; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 480px) { .row2 { grid-template-columns: 1fr; } }
.seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 4px; background: var(--field); border-radius: 12px; }
.seg label { text-transform: none; letter-spacing: 0; font-size: 15px; font-weight: 600; color: var(--text); display: flex; align-items: center; justify-content: center; min-height: 40px; border-radius: 9px; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg input:checked + span { background: var(--card); box-shadow: 0 1px 4px rgba(0,0,0,0.14); }
.seg span { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; border-radius: 9px; }
.adds { width: 100%; border-collapse: collapse; }
.adds td { padding: 4px 4px 4px 0; }
.adds input { width: 100%; min-height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--field); color: var(--text); padding: 0 10px; font: inherit; font-variant-numeric: tabular-nums; }
.adds .rm { min-width: 44px; min-height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-size: 22px; cursor: pointer; }
.linkbtn { background: none; border: 0; color: var(--accent); font: inherit; font-weight: 600; cursor: pointer; padding: 8px 0; min-height: 44px; }
.result { position: sticky; top: 76px; }
.result.over { box-shadow: inset 0 0 0 2px var(--critical); }
.big { font-size: 56px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.over .big { color: var(--critical); }
.bar { position: relative; height: 12px; border-radius: 6px; background: var(--field); margin: 16px 0 8px; }
.bar .fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px; background: var(--accent); }
.over .bar .fill { background: var(--critical); }
.bar .mark { position: absolute; top: -4px; bottom: -4px; width: 3px; margin-left: -1.5px; border-radius: 2px; background: var(--text); }
.banner { border-radius: 14px; padding: 12px 14px; font-weight: 600; margin-top: 12px; }
.banner.bad { background: var(--critical-tint); color: var(--critical-text); }
.banner.ok { background: var(--good-tint); color: var(--good); }
.banner.info { background: var(--warn-tint); color: var(--warn-text); }
.deadlines { list-style: none; padding: 0; margin: 14px 0 0; }
.deadlines li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.deadlines b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.explain { font-family: ui-monospace, Menlo, monospace; font-size: 13px; color: var(--muted); margin-top: 8px; }

/* Anchored sections land below the sticky header. */
section[id] { scroll-margin-top: 72px; }
