:root {
  --ink: #16202a;
  --muted: #5b6875;
  --line: #d9e0e7;
  --paper: #ffffff;
  --soft: #f4f7f9;
  --accent: #1c4f77;
  --accent-dark: #123852;
  --button-bg: #1c4f77;
  --button-bg-hover: #123852;
  --button-text: #ffffff;
  --surface: #ffffff;
  --header-bg: rgba(255,255,255,.96);
  --field-border: #bfc9d2;
  --focus-ring: rgba(28,79,119,.15);
  --badge-bg: #e7f0f6;
  --danger: #8a2f2f;
  --success: #245c3a;
  --success-bg: #f2f8f4;
  --success-line: #b8d1c0;
  --max: 1120px;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #edf2f7;
  --muted: #b2bec9;
  --line: #33414f;
  --paper: #0e151c;
  --soft: #151f29;
  --accent: #8fc7ea;
  --accent-dark: #b9def4;
  --button-bg: #245d86;
  --button-bg-hover: #2f739f;
  --button-text: #ffffff;
  --surface: #111b24;
  --header-bg: rgba(14,21,28,.96);
  --field-border: #536474;
  --focus-ring: rgba(143,199,234,.28);
  --badge-bg: #1c3445;
  --danger: #f0a5a5;
  --success: #9bd7ad;
  --success-bg: #12271a;
  --success-line: #356044;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
img { max-width: 100%; }

.shell { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; }
.site-header { border-bottom: 1px solid var(--line); background: var(--header-bg); position: sticky; top: 0; z-index: 10; }
.nav { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 28px; position: relative; }
.brand { color: var(--ink); text-decoration: none; font-weight: 800; letter-spacing: -.02em; font-size: 1.12rem; }
.brand span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 24px; font-size: .95rem; }
.nav-links a:not(.button) { color: var(--muted); text-decoration: none; }
.nav-links a:not(.button):hover { color: var(--ink); }

.theme-toggle,
.mobile-menu-toggle {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  line-height: 1;
  cursor: pointer;
}
.theme-toggle { font-size: 1.15rem; }
.theme-toggle:hover,
.mobile-menu-toggle:hover { background: var(--soft); color: var(--ink); }
.theme-toggle:focus-visible,
.mobile-menu-toggle:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }

.mobile-menu-toggle { display: none; flex-direction: column; gap: 4px; }
.mobile-menu-toggle span { display: block; width: 17px; height: 2px; border-radius: 2px; background: currentColor; }
.mobile-menu { display: none; }

.button { display: inline-flex; justify-content: center; align-items: center; min-height: 46px; padding: 0 20px; border-radius: 7px; border: 1px solid var(--button-bg); background: var(--button-bg); color: var(--button-text); font-weight: 700; text-decoration: none; cursor: pointer; font: inherit; }
.button:hover { background: var(--button-bg-hover); color: var(--button-text); }
.button.secondary { background: transparent; color: var(--accent); }
.button.secondary:hover { background: var(--soft); color: var(--accent-dark); }
.button.small { min-height: 38px; padding: 0 15px; font-size: .92rem; }
.button[disabled] { opacity: .6; cursor: wait; }

.hero { padding: 88px 0 72px; }
.eyebrow { color: var(--accent); font-size: .82rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
h1, h2, h3 { line-height: 1.16; letter-spacing: -.03em; }
h1 { font-size: clamp(2.55rem, 6vw, 4.7rem); max-width: 900px; margin: 14px 0 22px; }
h2 { font-size: clamp(1.75rem, 3.3vw, 2.7rem); margin: 0 0 18px; }
h3 { font-size: 1.2rem; margin: 0 0 8px; }
.lede { font-size: 1.24rem; color: var(--muted); max-width: 780px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.note { color: var(--muted); font-size: .92rem; }

.section { padding: 68px 0; border-top: 1px solid var(--line); }
.section.soft { background: var(--soft); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.card { border: 1px solid var(--line); border-radius: 12px; padding: 28px; background: var(--surface); }
.price { font-size: 3rem; font-weight: 800; letter-spacing: -.05em; margin: 8px 0; }
.muted { color: var(--muted); }

.signal { border-left: 4px solid var(--accent); background: var(--soft); padding: 22px 24px; margin: 24px 0; }
.signal strong { display: block; font-size: 1.06rem; margin-bottom: 6px; }
.metric-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; margin: 22px 0; }
.metric { border: 1px solid var(--line); background: var(--surface); padding: 18px; border-radius: 8px; }
.metric .label { color: var(--muted); font-size: .82rem; }
.metric .value { font-size: 1.45rem; font-weight: 800; }

.page-head { padding: 62px 0 36px; }
.page-head h1 { font-size: clamp(2.25rem, 5vw, 3.8rem); }
.content { max-width: 820px; padding-bottom: 80px; }
.content h2 { margin-top: 46px; }
.content h3 { margin-top: 30px; }
.content table { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: .95rem; }
.content th, .content td { padding: 11px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.content th { background: var(--soft); }
.source-list { padding-left: 20px; }
.source-list li { margin: 8px 0; }
.badge { display: inline-block; background: var(--badge-bg); color: var(--accent-dark); border-radius: 999px; padding: 4px 10px; font-weight: 700; font-size: .82rem; }

.form-wrap { max-width: 760px; padding-bottom: 90px; }
.form-section { padding: 24px 0; border-top: 1px solid var(--line); }
.form-section:first-of-type { border-top: 0; }
label { display: block; font-weight: 700; margin: 0 0 7px; }
.field { margin-bottom: 20px; }
input, select, textarea { width: 100%; font: inherit; color: var(--ink); border: 1px solid var(--field-border); border-radius: 7px; padding: 12px 13px; background: var(--surface); }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--focus-ring); border-color: var(--accent); }
textarea { min-height: 120px; resize: vertical; }
.help { display: block; margin-top: 5px; color: var(--muted); font-size: .88rem; }
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; }
.checkbox-row input { width: auto; margin-top: 5px; }
.checkbox-row label { font-weight: 500; }
.form-status { margin: 16px 0; min-height: 24px; color: var(--danger); font-weight: 650; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.footer { border-top: 1px solid var(--line); padding: 34px 0 42px; color: var(--muted); font-size: .9rem; }
.footer-row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer a { color: var(--muted); }

.success-box { border: 1px solid var(--success-line); background: var(--success-bg); color: var(--success); padding: 22px; border-radius: 10px; }

@media (max-width: 760px) {
  .nav { min-height: 62px; }
  .nav-links { gap: 8px; }
  .nav-links > a { display: none; }
  .mobile-menu-toggle { display: inline-flex; }
  .mobile-menu:not([hidden]) {
    position: absolute;
    top: calc(100% - 1px);
    right: 0;
    width: min(260px, calc(100vw - 40px));
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 10px 28px rgba(0,0,0,.14);
  }
  .mobile-menu a {
    display: block;
    padding: 10px 12px;
    border-radius: 6px;
    color: var(--ink);
    text-decoration: none;
    font-weight: 650;
  }
  .mobile-menu a:hover { background: var(--soft); color: var(--ink); }
  .hero { padding: 60px 0 54px; }
  .two-col, .metric-grid { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
}
