:root {
  --ink: #131B2E;
  --body: #434655;
  --muted: #555B70;
  --canvas: #FAF8FF;
  --soft: #F2F3FF;
  --line: #E2E7FF;
  --line-soft: #EEF0FB;
  --primary: #1D4ED8;
  --primary-dark: #0037B0;
  --accent: #FEA619;
  --on-dark: #D5DCF3;
}

@font-face { font-family: Inter; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/inter-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Inter; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/inter-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 100 800; font-display: swap; src: url(/fonts/jetbrains-mono-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 100 800; font-display: swap; src: url(/fonts/jetbrains-mono-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; }
body { margin: 0; overflow-x: hidden; font-family: Inter, system-ui, sans-serif; color: var(--ink); background: var(--canvas); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p, dl, dd, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
svg, img { display: block; max-width: 100%; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding-inline: 24px; }
.section { padding-block: 100px; }
.tn { font-variant-numeric: tabular-nums; }
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }
.bp {
  color: #fff;
  background-color: var(--ink);
  background-image: linear-gradient(rgba(147,177,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(147,177,255,.07) 1px, transparent 1px), linear-gradient(rgba(147,177,255,.14) 1px, transparent 1px), linear-gradient(90deg, rgba(147,177,255,.14) 1px, transparent 1px);
  background-size: 24px 24px, 24px 24px, 120px 120px, 120px 120px;
}
.card { background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.band { background: var(--soft); border-block: 1px solid var(--line); }

h2 { max-width: 820px; font-size: clamp(32px, 4.2vw, 52px); line-height: 1.1; letter-spacing: -.03em; font-weight: 800; }
.section-lead { max-width: 680px; margin-top: 18px; font-size: 19px; line-height: 1.55; color: var(--body); }
.section-lead.small { font-size: 16px; }
.eyebrow { margin-bottom: 20px; font: 500 13px/1.4 'JetBrains Mono', monospace; letter-spacing: .04em; color: var(--accent); }
.eyebrow-blue { font-weight: 700; color: var(--primary-dark); }
.tag { display: inline-block; padding: 5px 10px; border-radius: 8px; background: #FFEDCF; color: #653E00; font-size: 12px; font-weight: 700; }
.text-link { display: inline-block; margin-top: 16px; font-weight: 600; color: var(--primary-dark); text-decoration: underline; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border: 1px solid transparent; border-radius: 12px; font-size: 17px; font-weight: 700; transition: background-color .15s; }
.btn-small { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn-wide { width: 100%; margin-top: 16px; }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { background: #FFB94A; color: var(--ink); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-primary:disabled { opacity: .6; cursor: progress; }
.btn-ghost { border-color: #5A6788; color: #fff; font-weight: 600; }
.btn-ghost:hover { background: rgba(255,255,255,.08); color: #fff; }
.btn-outline { border-color: #C4C5D7; background: #fff; color: var(--ink); font-weight: 600; }
.btn-outline:hover { background: var(--soft); }
.link-button { min-height: 44px; padding: 0; border: 0; background: none; color: inherit; font-size: inherit; font-weight: inherit; }
.link-button:hover { color: var(--accent); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.actions.centered { justify-content: center; margin-top: 32px; }

.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; }
.logo { display: flex; align-items: center; gap: 10px; color: #fff; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.logo:hover { color: #fff; }
.logo b { color: var(--accent); font-weight: 800; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-size: 15px; font-weight: 500; color: var(--on-dark); }

.hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 56px; align-items: center; padding-block: 56px 96px; }
h1 { font-size: clamp(42px, 6vw, 72px); line-height: 1.04; letter-spacing: -.035em; font-weight: 800; }
.lead { max-width: 520px; margin-top: 24px; font-size: 20px; line-height: 1.5; color: var(--on-dark); }

.demo { min-width: 0; overflow: hidden; border-radius: 16px; background: #fff; color: var(--ink); box-shadow: 0 24px 64px rgba(0,12,48,.45); }
.demo-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.demo-head strong { display: block; font-size: 15px; }
.demo-head span:not(.demo-clock) { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.demo-clock { font-size: 28px; font-weight: 700; color: var(--primary); }
.demo-plan { padding: 16px 20px; background: var(--ink); }
.demo-rows { padding: 8px 20px 4px; }
.demo-row { padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.demo-row > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.demo-row span { font-size: 14px; font-weight: 600; }
.demo-row strong { font-size: 17px; font-weight: 800; color: var(--primary-dark); }
.demo-row small { font-size: 13px; font-weight: 600; color: var(--muted); }
.demo-row i { display: block; height: 4px; margin-top: 7px; border-radius: 2px; background: linear-gradient(var(--primary), var(--primary)) no-repeat left / var(--fill, 100%) 100%, var(--line-soft); }
.demo-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px 18px; font-size: 13px; color: var(--muted); }

.compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 24px; margin-top: 48px; }
.compare-card { min-width: 0; padding: 28px; border-radius: 16px; }
.compare-card header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.compare-card h3 { font-size: 22px; font-weight: 700; }
.compare-time { font-size: 15px; font-weight: 700; color: var(--accent); }
.compare-time.bad { color: #BA1A1A; }
.table-scroll { overflow-x: auto; border: 1px solid #C4C5D7; border-radius: 8px; }
table { width: 100%; min-width: 400px; border-collapse: collapse; font-size: 14px; }
th { padding: 8px 12px; background: var(--soft); text-align: left; font-weight: 600; color: var(--body); }
td { padding: 8px 12px; border-top: 1px solid var(--line); }
.cell-error { background: #FFDAD6; color: #93000A; font-weight: 700; }
.cell-error-text { color: #93000A; }
.cell-warn { background: #FFEDCF; color: #653E00; font-weight: 700; }
.plain-list { display: grid; gap: 12px; margin-top: 20px; font-size: 16px; line-height: 1.45; color: var(--body); }
.compare-dark .plain-list { color: var(--on-dark); }
.result-list { padding: 6px 16px; border-radius: 8px; background: #fff; color: var(--ink); }
.result-list > div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); font-size: 15px; }
.result-list > div:last-child { border-bottom: 0; }
.result-list dd { font-weight: 700; }
.result-list dd.blue { color: var(--primary-dark); }

.quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 40px; align-items: center; margin-top: 32px; padding: clamp(24px, 4vw, 44px); border: 1px solid #DCE1FF; border-radius: 16px; background: var(--soft); }
.quick .eyebrow { margin-bottom: 14px; }
.quick h3 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.12; letter-spacing: -.025em; font-weight: 800; }
.quick p:not(.eyebrow) { margin-top: 14px; font-size: 18px; line-height: 1.5; color: var(--body); }
.quick-card { min-width: 0; padding: 24px; }

fieldset { display: flex; flex-wrap: wrap; gap: 0 20px; margin: 0; padding: 0; border: 0; }
legend { width: 100%; padding: 0; font-size: 14px; font-weight: 600; }
.choice { display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: 16px; }
.choice input, .consent input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--primary); }
.field-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; margin-top: 6px; }
.field-stack { display: grid; gap: 14px; margin-top: 8px; }
.field-grid label, .field-stack label { font-size: 14px; font-weight: 600; }
.field-grid input, .field-stack input, .field-stack textarea { display: block; width: 100%; min-height: 48px; margin-top: 6px; padding: 11px 14px; border: 1px solid #C4C5D7; border-radius: 12px; background: #fff; color: var(--ink); font-size: 16px; font-weight: 400; }
.field-stack textarea { resize: vertical; }
input:focus, textarea:focus { border-color: var(--primary); }
.consent { display: flex; align-items: flex-start; gap: 10px; margin-top: 14px; font-size: 14px; line-height: 1.45; color: var(--body); }
.consent a { text-decoration: underline; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { margin-top: 14px; padding: 10px 12px; border-radius: 10px; background: #FFDAD6; color: #93000A; font-size: 14px; font-weight: 500; }
.done { padding: 12px 4px; }
.done-icon { display: flex; width: 52px; height: 52px; align-items: center; justify-content: center; border-radius: 14px; background: #DCFCE7; color: #14532D; }
.done h4 { margin-top: 16px; font-size: 24px; font-weight: 800; }
.done p { margin-top: 8px; line-height: 1.5; color: var(--body); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 24px; margin-top: 40px; }
.stat { padding: 32px; border-radius: 16px; }
.stat > p:first-child { font-weight: 600; color: var(--body); }
.stat-value { margin-top: 8px; font-size: clamp(64px, 9vw, 112px); line-height: 1; letter-spacing: -.04em; font-weight: 800; color: var(--primary-dark); }
.stat-value small { margin-left: 8px; font-size: .32em; letter-spacing: 0; }
.stat-sub { margin-top: 12px; font-size: 18px; font-weight: 600; }
.stat-dark { background: var(--ink); color: #fff; }
.stat-dark > p:first-child, .stat-note { color: var(--on-dark); }
.stat-dark .stat-value { color: var(--accent); }
.stat-note { margin-top: 28px; line-height: 1.5; }
.stack { display: flex; gap: 2px; height: 14px; margin-top: 28px; overflow: hidden; border-radius: 4px; }
.stack span:nth-child(1) { flex: 186 1 0; background: var(--primary-dark); }
.stack span:nth-child(2) { flex: 142 1 0; background: #4F78E8; }
.stack span:nth-child(3) { flex: 84 1 0; background: #A9BDF8; }
.stack-legend { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 14px; font-size: 15px; color: var(--body); }
.stack-legend strong { color: var(--ink); }
.extras { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; margin-top: 24px; }
.extras .card { padding: 20px; }
.extras p { font-size: 15px; color: var(--body); }
.extras strong { display: block; margin-top: 6px; font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.extras small { font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--body); }

.how { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 64px; align-items: center; }
.steps { display: grid; gap: 28px; margin-top: 40px; }
.steps li { display: flex; gap: 18px; }
.steps .mono { font-size: 18px; font-weight: 700; color: var(--primary); }
.steps h3 { font-size: 20px; font-weight: 700; }
.steps p { margin-top: 6px; line-height: 1.5; color: var(--body); }
.phone-wrap { display: flex; justify-content: center; }
.phone { width: 320px; max-width: 100%; padding: 10px; border-radius: 40px; background: var(--ink); box-shadow: 0 24px 56px rgba(19,27,46,.28); }
.phone-screen { padding: 20px 14px 18px; overflow: hidden; border-radius: 31px; background: var(--canvas); }
.phone-title { display: block; font-size: 17px; }
.phone-chip { display: inline-block; margin-top: 8px; padding: 4px 10px; border-radius: 8px; background: #DCFCE7; color: #14532D; font-size: 12px; font-weight: 600; }
.phone-hero { margin-top: 14px; padding: 16px; border-radius: 14px; }
.phone-hero .mono { font-size: 11px; color: var(--on-dark); }
.phone-hero > div { display: flex; gap: 16px; margin-top: 10px; }
.phone-hero p { flex: 1; font-size: 12px; color: var(--on-dark); }
.phone-hero b { display: block; font-size: 25px; font-weight: 800; color: #fff; }
.phone-hero small { font-size: 13px; }
.phone-list { margin-top: 12px; padding: 2px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; font-size: 13px; }
.phone-list p { display: flex; justify-content: space-between; gap: 8px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); }
.phone-list p:last-child { border-bottom: 0; }
.phone-warn { margin-top: 12px; padding: 11px 13px; border-radius: 12px; background: #FFEDCF; color: #653E00; font-size: 12px; font-weight: 500; line-height: 1.4; }

.fix { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 56px; align-items: center; }
.fix h2 { margin-top: 16px; }
.fix-list { display: grid; gap: 16px; margin-top: 28px; font-size: 17px; line-height: 1.45; color: var(--body); }
.fix-list strong { color: var(--ink); }
.fix-card { min-width: 0; overflow: hidden; box-shadow: 0 16px 40px rgba(19,27,46,.1); }
.fix-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line); font-size: 15px; }
.fix-badge { padding: 5px 10px; border-radius: 8px; background: #FFEDCF; color: #653E00; font-size: 13px; font-weight: 600; }
.fix-badge.fixed { background: #DCFCE7; color: #14532D; }
.fix-card .result-list { padding-inline: 20px; border-radius: 0; }

.trust .section-lead, .scope { color: var(--on-dark); }
.formulas { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; margin-top: 44px; }
.formulas article { padding: 24px; border: 1px solid #3D4A6E; border-radius: 16px; background: rgba(255,255,255,.06); }
.formulas h3 { font-size: 18px; font-weight: 700; }
.formulas p { margin-top: 12px; font-size: 15px; line-height: 1.5; color: var(--on-dark); }
.scope { margin-top: 28px; font-size: 15px; line-height: 1.5; }

.prereg { text-align: center; }
.prereg .eyebrow { margin-bottom: 16px; }
.prereg h2 { margin-inline: auto; font-size: clamp(36px, 5vw, 60px); }
.prereg .section-lead { margin-inline: auto; }
.perks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; max-width: 820px; margin: 44px auto 0; text-align: left; }
.perks .card { padding: 24px; }
.perks h3 { font-size: 20px; font-weight: 700; }
.perks p { margin-top: 10px; line-height: 1.5; color: var(--body); }

.site-footer { border-top: 1px solid var(--line); font-size: 14px; color: var(--body); }
.site-footer .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-block: 20px; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; }
.site-footer a:hover, .site-footer .link-button:hover { color: var(--primary); }

dialog { position: fixed; width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 28px; border: 0; border-radius: 16px; color: var(--ink); }
dialog::backdrop { background: rgba(10,15,30,.72); }
dialog h2 { margin: 16px 44px 0 0; font-size: 26px; line-height: 1.15; letter-spacing: -.02em; }
dialog form h2 { margin-top: 0; }
dialog p:not(.form-error) { margin-top: 10px; line-height: 1.5; color: var(--body); }
dialog fieldset { margin-top: 18px; }
.dialog-close { position: absolute; top: 12px; right: 12px; display: flex; width: 44px; height: 44px; align-items: center; justify-content: center; border: 0; border-radius: 12px; background: transparent; color: var(--body); }
.dialog-close:hover { background: var(--soft); }
.dialog-actions { display: grid; gap: 10px; margin-top: 24px; }

.legal { max-width: 760px; margin: 0 auto; padding: 64px 24px 96px; line-height: 1.65; color: var(--body); }
.legal h1 { font-size: clamp(32px, 5vw, 44px); line-height: 1.1; color: var(--ink); }
.legal h2 { margin-top: 32px; font-size: 20px; letter-spacing: -.01em; color: var(--ink); }
.legal p { margin-top: 12px; }
.legal-header { padding-block: 16px; }
.reset { max-width: 480px; }
.reset form { margin-top: 24px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
