:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --surface-2: #f3f0e8;
  --text: #1c2230;
  --muted: #5a6273;
  --border: #e3ded2;
  --brand: #1f3a5f;
  --brand-ink: #ffffff;
  --accent: #b8892b;
  --accent-soft: #f6ecd6;
  --ok: #2f6b45;
  --err: #a33a2b;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(20, 24, 36, .06), 0 4px 16px rgba(20, 24, 36, .06);
  --max: 1080px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #12151c;
    --surface: #1a1e27;
    --surface-2: #222734;
    --text: #e9ebf0;
    --muted: #a3aab8;
    --border: #2e3442;
    --brand: #8fb3e0;
    --brand-ink: #0f1420;
    --accent: #d9ad55;
    --accent-soft: #2e2818;
    --ok: #7fc79a;
    --err: #ef8a7a;
    --shadow: none;
  }
}
:root[data-theme="dark"] {
  --bg: #12151c;
  --surface: #1a1e27;
  --surface-2: #222734;
  --text: #e9ebf0;
  --muted: #a3aab8;
  --border: #2e3442;
  --brand: #8fb3e0;
  --brand-ink: #0f1420;
  --accent: #d9ad55;
  --accent-soft: #2e2818;
  --ok: #7fc79a;
  --err: #ef8a7a;
  --shadow: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--brand); }
a:hover { text-decoration-thickness: 2px; }

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

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 64px;
}
.logo {
  font-weight: 700; letter-spacing: -.01em; text-decoration: none; color: var(--text);
  display: inline-flex; align-items: center; gap: 10px;
}
.logo-mark {
  width: 28px; height: 28px; border-radius: 7px; background: var(--brand);
  display: inline-grid; place-items: center; color: var(--brand-ink); font-size: 15px;
}
.nav { display: flex; gap: 20px; align-items: center; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--text); }
.nav a.btn, .nav a.btn:hover { color: var(--brand-ink); }
@media (max-width: 640px) { .nav .hide-sm { display: none; } }

/* Buttons */
.btn {
  display: inline-block; border: 0; cursor: pointer;
  background: var(--brand); color: var(--brand-ink);
  font: 600 16px/1 var(--font); padding: 14px 20px; border-radius: 10px;
  text-decoration: none; text-align: center;
}
.btn:hover { filter: brightness(1.08); }
.btn-sm { padding: 10px 14px; font-size: 14px; }
.btn-ghost { background: transparent; color: var(--brand); border: 1px solid var(--border); }

/* Hero */
.hero { padding: 72px 0 56px; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}
h1, h2, h3 { line-height: 1.2; letter-spacing: -.015em; }
h1 { font-family: var(--serif); font-size: clamp(34px, 5.4vw, 54px); margin: 0 0 18px; font-weight: 600; }
h2 { font-family: var(--serif); font-size: clamp(26px, 3.4vw, 34px); margin: 0 0 14px; font-weight: 600; }
h3 { font-size: 18px; margin: 0 0 6px; }
.lede { font-size: clamp(18px, 2.1vw, 21px); color: var(--muted); max-width: 680px; margin: 0 0 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-note { font-size: 14px; color: var(--muted); }

/* Sections */
section { padding: 56px 0; }
.section-alt { background: var(--surface-2); }
.section-head { max-width: 680px; margin-bottom: 28px; }
.section-head p { color: var(--muted); margin: 0; }

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow);
}
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.cite { display: block; margin-top: 10px; font-size: 13px; color: var(--accent); font-weight: 600; }

.callout {
  border-left: 4px solid var(--accent); background: var(--accent-soft);
  padding: 16px 18px; border-radius: 0 var(--radius) var(--radius) 0; margin: 24px 0;
}
.callout p { margin: 0; }
.callout p + p { margin-top: 8px; }

/* Pricing */
.pricing { align-items: stretch; }
.plan { display: flex; flex-direction: column; position: relative; }
.plan.featured { border: 2px solid var(--brand); }
.badge {
  position: absolute; top: -12px; left: 20px; background: var(--brand); color: var(--brand-ink);
  font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; letter-spacing: .03em;
}
.plan h3 { font-size: 20px; }
.price { font-size: 40px; font-weight: 700; letter-spacing: -.02em; margin: 8px 0 2px; color: var(--text); }
.price small { font-size: 16px; font-weight: 500; color: var(--muted); }
.price-alt { font-size: 14px; color: var(--muted); min-height: 22px; margin-bottom: 14px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 20px; font-size: 15px; flex: 1; }
.plan li { padding: 6px 0 6px 24px; position: relative; color: var(--text); }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }

table.compare { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.compare th, .compare td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.compare thead th { background: var(--surface-2); font-size: 14px; }
.compare td:first-child { color: var(--muted); }
.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.fineprint { font-size: 13px; color: var(--muted); margin-top: 10px; }

/* Steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 18px 48px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 32px; height: 32px;
  border-radius: 50%; background: var(--brand); color: var(--brand-ink);
  display: grid; place-items: center; font-weight: 700; font-size: 15px;
}
.steps p { margin: 2px 0 0; color: var(--muted); font-size: 15.5px; }

/* Waitlist form */
.form-card { max-width: 560px; }
.field { margin-bottom: 16px; }
label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
input[type="text"], input[type="email"], select {
  width: 100%; font: 16px var(--font); color: var(--text); background: var(--bg);
  border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px;
}
input:focus, select:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 13px; color: var(--muted); margin: 12px 0 0; }
.form-status { margin-top: 14px; font-weight: 600; font-size: 15px; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--err); }

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

/* Article (SEO page) */
.article { padding: 48px 0 24px; }
.article h1 { font-size: clamp(32px, 4.6vw, 46px); }
.article h2 { margin-top: 40px; font-size: clamp(24px, 3vw, 30px); }
.article p, .article li { font-size: 17.5px; }
.article ul, .article ol { padding-left: 22px; }
.article li { margin-bottom: 6px; }
.meta { color: var(--muted); font-size: 14px; margin-bottom: 28px; }
.toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; margin: 24px 0; }
.toc strong { display: block; margin-bottom: 6px; }
.toc ol { margin: 0; }
.toc li { font-size: 15.5px; margin-bottom: 2px; }
.cta-box {
  background: var(--brand); color: var(--brand-ink); border-radius: var(--radius);
  padding: 28px; margin: 40px 0;
}
.cta-box h2 { margin: 0 0 8px; color: var(--brand-ink); }
.cta-box p { margin: 0 0 18px; opacity: .9; }
.cta-box .btn { background: var(--accent); color: #1c1608; }
.sources { font-size: 15px; }
.sources li { font-size: 15px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 32px 0 40px; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.site-footer a { color: var(--muted); }
.disclaimer { font-weight: 600; color: var(--text); }
