:root {
  --navy: #0B1220;
  --panel: #0F1A2B;
  --line: #1C2A3D;
  --line-2: #22344B;
  --input-line: #2A3D55;
  --teal: #10B981;
  --teal-light: #34D399;
  --blue: #3B82F6;
  --amber: #FBBF24;
  --red: #F87171;
  --text: #F1F5F9;
  --text-2: #C7D2DE;
  --muted: #B6C3D1;
  --faint: #9FB0C3;
  --display: 'Space Grotesk', system-ui, sans-serif;
  --body: 'IBM Plex Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--navy); color: var(--text); font-family: var(--body); line-height: 1.55; }
a { color: #7FB0FF; }
a:hover { color: #B3D0FF; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); }
.mono { font-family: var(--mono); }
.muted { color: var(--faint); }
.small { font-size: 13px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--teal); color: #04251D; padding: 8px 12px; border-radius: 6px; z-index: 10; }

.wrap { max-width: 1180px; margin: 0 auto; padding-inline: clamp(16px, 4vw, 32px); }
.narrow { max-width: 820px; }
.band { border-bottom: 1px solid var(--line); padding-block: clamp(40px, 7vw, 80px); }
.card { border: 1px solid var(--line-2); border-radius: 16px; background: var(--panel); }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-block: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -0.5px; }
.accent { color: var(--teal-light); }
.nav-links { display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: 14px; }
.nav-links a { color: var(--text-2); text-decoration: none; padding-block: 12px; }
.nav-links a:hover { color: var(--teal-light); }

/* Hero */
.hero { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.hero-copy { flex: 1 1 380px; min-width: 0; padding-top: 8px; }
.eyebrow { margin: 0; font-family: var(--mono); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--teal-light); }
h1 { margin: 16px 0 20px; font-weight: 700; font-size: clamp(38px, 5.2vw, 60px); line-height: 1.04; letter-spacing: -1.8px; }
.lede { margin: 0 0 24px; max-width: 470px; font-size: 17px; color: var(--text-2); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; color: var(--text-2); }
.checks li { position: relative; padding-left: 28px; }
.checks li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 12px; height: 7px; border-left: 2.2px solid var(--teal-light); border-bottom: 2.2px solid var(--teal-light); transform: rotate(-45deg); }

/* Calculator */
.calc { flex: 1 1 520px; min-width: 0; padding: clamp(18px, 3vw, 28px); }
.calc-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.calc-head h2 { margin: 0; font-size: 20px; font-weight: 600; }
.calc-head span { font-size: 12px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; color: var(--muted); }
.input { display: flex; align-items: center; gap: 6px; border: 1px solid var(--input-line); border-radius: 8px; background: var(--navy); padding-inline: 12px; }
.input:focus-within { border-color: var(--teal); }
.input span { color: var(--faint); }
.input input { flex: 1; min-width: 0; height: 44px; border: 0; background: transparent; color: var(--text); font: 500 16px var(--mono); }
.input input:focus { outline: none; }
.input input::-webkit-outer-spin-button, .input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.input input[type=number] { -moz-appearance: textfield; }

.results { margin-top: 22px; }
.stat { border-radius: 12px; padding: 16px; }
.stat-cost { border: 1px solid #5B2A33; background: #1A1420; }
.stat-hurdle { border: 1px solid #1F5E4C; background: #0E2420; }
.stat-label { font-size: 13px; }
.stat-cost .stat-label { color: #F3B4B4; }
.stat-hurdle .stat-label { color: #A7E9CF; }
.stat-num { font-family: var(--mono); font-weight: 600; font-size: clamp(24px, 3.4vw, 34px); letter-spacing: -1px; }
.stat-cost .stat-num { color: var(--red); }
.stat-hurdle .stat-num { color: var(--teal-light); }
.stat-note { font-size: 13px; color: var(--muted); }

.compare { margin-top: 14px; border: 1px solid var(--line-2); border-radius: 12px; padding: 14px 16px; display: grid; gap: 8px; font-size: 14px; }
.row { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); }
.row .mono { color: var(--text); }
.row.total { border-top: 1px solid var(--line-2); padding-top: 8px; }
.row.total .mono { font-weight: 600; }
[data-tone="good"] { color: var(--teal-light) !important; }
[data-tone="warn"] { color: var(--amber) !important; }
.verdict { margin: 0; color: var(--muted); }
.fine { margin: 14px 0 0; font-size: 12px; color: var(--faint); }

/* Sections */
.section-title { margin: 0 0 8px; font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -0.8px; }
.section-lede { margin: 0 0 32px; max-width: 640px; color: var(--text-2); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.step { padding: 22px; }
.step .num { color: var(--teal-light); font-size: 14px; }
.step h3 { margin: 8px 0 6px; font-size: 18px; }
.step p { margin: 0; color: var(--muted); }

.split { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.split-copy { flex: 1 1 360px; min-width: 0; }
.soon { display: inline-block; margin: 0 0 10px; padding: 6px 12px; border: 1px solid #6B5320; border-radius: 999px; color: var(--amber); font-family: var(--mono); font-size: 13px; }
.features { flex: 1 1 460px; min-width: 0; list-style: none; margin: 0; padding: 8px 22px; }
.features li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.features li:last-child { border-bottom: 0; }
.features h3 { margin: 0; font-size: 16px; font-family: var(--body); font-weight: 600; }
.features p { margin: 2px 0 0; font-size: 14px; color: var(--muted); }

.faq { display: grid; gap: 22px; }
.faq h3 { margin: 0 0 6px; font-size: 17px; font-family: var(--body); font-weight: 600; }
.faq p { margin: 0; color: var(--muted); }

.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-block: 28px 40px; font-size: 13px; color: var(--faint); }

@media (max-width: 480px) {
  .grid2 { grid-template-columns: 1fr; }
}

/* Case studies (home) */
.cs-card { display: block; padding: 24px; text-decoration: none; color: var(--text); max-width: 760px; }
.cs-card:hover { border-color: var(--teal); color: var(--text); }
.cs-card h3 { margin: 6px 0 8px; font-size: 22px; }
.cs-card p { margin: 0; color: var(--muted); }
.cs-card .more { display: inline-block; margin-top: 14px; color: var(--teal-light); font-weight: 600; }

/* Article */
.article { max-width: 720px; padding-block: clamp(36px, 6vw, 64px); font-size: 17px; line-height: 1.7; }
.article h1 { font-size: clamp(32px, 4.6vw, 46px); line-height: 1.1; letter-spacing: -1.2px; margin: 12px 0 10px; }
.article h2 { font-size: 24px; letter-spacing: -0.4px; margin: 40px 0 10px; }
.article p, .article li { color: var(--text-2); }
.article strong { color: var(--text); }
.article ul { padding-left: 22px; }
.article li { margin-bottom: 8px; }
.byline { margin: 0 0 28px; font-family: var(--mono); font-size: 13px; color: var(--faint); }
.article-lede { font-size: 19px; color: var(--text) !important; }
.callout { border: 1px solid #1F5E4C; background: #0E2420; border-radius: 12px; padding: 16px 18px; }
.table-box { overflow-x: auto; margin: 20px 0; border: 1px solid var(--line-2); border-radius: 12px; }
.article table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 420px; }
.article th, .article td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.article th { color: var(--muted); font-weight: 600; background: var(--panel); }
.article tr:last-child td { border-bottom: 0; }
.article td.num, .article th.num { text-align: right; font-family: var(--mono); white-space: nowrap; }
.article td.pos { color: var(--teal-light); }
.article td.neg { color: var(--amber); }
.btn-link { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 8px; background: var(--teal); color: #04251D !important; font-weight: 600; text-decoration: none; }
.btn-link:hover { filter: brightness(1.08); }

/* Newsletter signup */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.signup-band { background: var(--panel); }
.signup { display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; justify-content: space-between; }
.signup-copy { flex: 1 1 360px; min-width: 0; }
.signup-copy h2 { margin: 0 0 6px; font-size: clamp(22px, 2.8vw, 28px); letter-spacing: -0.5px; }
.signup-copy p { margin: 0; color: var(--text-2); max-width: 520px; }
.signup-form { flex: 1 1 380px; min-width: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.signup-form input { flex: 1 1 220px; min-width: 0; height: 48px; border: 1px solid var(--input-line); border-radius: 8px; background: var(--navy); color: var(--text); font: 16px var(--body); padding: 0 14px; }
.signup-form input:focus { outline: none; border-color: var(--teal); }
.signup-form button { height: 48px; padding: 0 22px; border: 0; border-radius: 8px; background: var(--teal); color: #04251D; font: 600 15px var(--body); cursor: pointer; }
.signup-form button:hover { filter: brightness(1.08); }
.signup-form button:disabled { opacity: 0.6; cursor: wait; }
.signup-status { flex-basis: 100%; margin: 0; min-height: 1.5em; font-size: 14px; color: var(--muted); }
