:root {
  --ink: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --surface: #ffffff;
  --bg: #f8fafc;
  --brand: #0c66e4;
  --brand-dark: #09326c;
  --brand-soft: #e9f2ff;
  --green: #15803d;
  --green-soft: #dcfce7;
  --amber-soft: #fef9c3;
  --amber: #854d0e;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 16px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: var(--ink); }
.logo:hover { text-decoration: none; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; font-size: 14px; font-weight: 500; }
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-links a.btn-primary,
.nav-links a.btn-primary:hover { color: #ffffff; }

.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--brand); color: #ffffff; }
.btn-primary:hover { background: #0055cc; color: #ffffff; text-decoration: none; }
.btn-outline { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-outline:hover { background: #f1f5f9; text-decoration: none; }

.hero {
  background: linear-gradient(180deg, #ffffff 0%, #eff6ff 100%);
  border-bottom: 1px solid var(--line);
  padding: 72px 0 64px;
}
.pill {
  display: inline-block;
  background: var(--green-soft);
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 99px;
  margin-bottom: 16px;
}
.hero h1 { font-size: clamp(32px, 4.5vw, 48px); line-height: 1.12; margin: 0 0 18px; max-width: 820px; letter-spacing: -0.02em; }
.hero p.lead { font-size: 18px; color: var(--muted); max-width: 700px; margin: 0 0 28px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.trust-strip {
  display: flex; flex-wrap: wrap; gap: 20px; margin-top: 28px; font-size: 13px; color: var(--muted); font-weight: 600;
}

section { padding: 64px 0; }
.section-title { font-size: 28px; margin: 0 0 10px; letter-spacing: -0.015em; }
.section-sub { color: var(--muted); margin: 0 0 32px; max-width: 680px; }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 24px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
}
.card h3 { margin: 0 0 8px; font-size: 17px; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }

.calc-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 24px; align-items: start; }
@media (max-width: 820px) { .calc-grid { grid-template-columns: 1fr; } }

.field { margin-bottom: 16px; }
.field label { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.field input[type="range"] { width: 100%; accent-color: var(--brand); }
.field input[type="number"], .field input[type="email"], .field input[type="text"], .field textarea {
  width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; font-family: inherit;
}

.result-box {
  background: linear-gradient(135deg, #09326c 0%, #0c66e4 100%);
  color: #fff;
  border-radius: 12px;
  padding: 26px;
}
.result-metric { margin-bottom: 18px; }
.result-metric .lbl { font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.85; }
.result-metric .val { font-size: 32px; font-weight: 800; font-variant-numeric: tabular-nums; }
.result-divider { border: none; border-top: 1px solid rgba(255,255,255,0.2); margin: 16px 0; }

.prose { max-width: 820px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 36px; margin: 36px auto; }
.prose h1 { margin-top: 0; font-size: 30px; }
.prose h2 { margin-top: 28px; font-size: 19px; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 6px; color: var(--muted); }
.prose p { color: var(--muted); }

table { width: 100%; border-collapse: collapse; background: var(--surface); font-size: 14px; }
th, td { border: 1px solid var(--line); padding: 11px 14px; text-align: left; }
th { background: #f8fafc; font-size: 12px; text-transform: uppercase; color: var(--muted); }

footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 36px 0;
  font-size: 13px;
  color: var(--muted);
}
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
