:root {
  color-scheme: dark;
  --bg: #1c1c1e;
  --surface: #242426;
  --surface-raised: #2c2c2f;
  --text: #f5f0e8;
  --muted: #b8b1a7;
  --accent: #e85d4e;
  --accent-hover: #f06f61;
  --border: #454247;
  --success: #74c991;
  --warning: #f3bd72;
  --danger: #f1847a;
  --shadow: 0 24px 70px rgb(0 0 0 / 24%);
  --radius: 8px;
  --max: 1200px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.65; }
a { color: inherit; text-underline-offset: 0.2em; }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--warning); outline-offset: 3px; }

.shell { width: min(calc(100% - 48px), var(--max)); margin-inline: auto; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 8px 16px; border-radius: var(--radius); background: var(--text); color: var(--bg); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgb(245 240 232 / 10%); background: rgb(28 28 30 / 90%); backdrop-filter: blur(18px); }
.header-inner { min-height: 72px; display: flex; align-items: center; gap: 32px; }
.wordmark { display: inline-flex; font-family: "Space Grotesk", Inter, sans-serif; font-size: 24px; font-weight: 700; letter-spacing: -0.04em; text-decoration: none; }
.wordmark span { color: var(--accent); }
.header-inner nav { display: flex; gap: 24px; margin-left: auto; }
.header-inner nav a { color: var(--muted); font-size: 14px; font-weight: 650; text-decoration: none; }
.header-inner nav a:hover { color: var(--text); }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 20px; border: 1px solid var(--accent); border-radius: var(--radius); background: var(--accent); color: var(--bg); font-weight: 750; text-decoration: none; cursor: pointer; transition: background 160ms ease, transform 160ms ease; }
.button:hover { background: var(--accent-hover); color: var(--bg); transform: translateY(-1px); }
.button-secondary { border-color: var(--border); background: transparent; color: var(--text); }
.button-secondary:hover { background: var(--surface-raised); color: var(--text); }
.button-small { min-height: 40px; padding: 8px 14px; font-size: 14px; }

.hero { padding: 112px 0 88px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr); gap: 72px; align-items: center; }
.eyebrow { margin: 0 0 16px; color: var(--accent); font-size: 13px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; font-family: "Space Grotesk", Inter, sans-serif; line-height: 1.12; letter-spacing: -0.035em; text-wrap: balance; }
h1 { max-width: 850px; font-size: clamp(48px, 7vw, 88px); }
h2 { font-size: clamp(28px, 4vw, 44px); }
h3 { font-size: 21px; }
.lead { max-width: 720px; margin: 24px 0 0; color: var(--muted); font-size: clamp(18px, 2vw, 22px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.evidence-card { position: relative; padding: 32px; border: 1px solid var(--border); border-radius: 20px; background: linear-gradient(145deg, #302a2c, var(--surface)); box-shadow: var(--shadow); }
.evidence-card::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; background: linear-gradient(140deg, rgb(232 93 78 / 55%), transparent 40%); mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; padding: 1px; pointer-events: none; }
.evidence-card dl { display: grid; gap: 0; margin: 0; }
.evidence-card div { padding: 20px 0; border-bottom: 1px solid var(--border); }
.evidence-card div:last-child { border: 0; }
.evidence-card dt { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; }
.evidence-card dd { margin: 5px 0 0; font-size: 26px; font-weight: 750; }

.section { padding: 88px 0; }
.section-muted { border-block: 1px solid var(--border); background: #202022; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.section-heading p { max-width: 600px; margin: 12px 0 0; color: var(--muted); }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; min-height: 220px; padding: 24px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); text-decoration: none; transition: border 160ms ease, transform 160ms ease; }
.card:hover { border-color: var(--accent); color: var(--text); transform: translateY(-2px); }
.card p { margin: 12px 0; color: var(--muted); }
.card .card-link { margin-top: auto; color: var(--text); font-weight: 700; }
.tag, .channel, .freshness { display: inline-flex; width: fit-content; align-items: center; min-height: 24px; padding: 3px 8px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); font-size: 12px; font-weight: 750; text-transform: uppercase; letter-spacing: 0.04em; }
.tag-deep { border-color: rgb(116 201 145 / 45%); color: var(--success); }
.tag-stub { color: var(--muted); }

.page-hero { padding: 64px 0 48px; border-bottom: 1px solid var(--border); }
.page-hero h1 { max-width: 900px; font-size: clamp(40px, 6vw, 68px); }
.page-hero .lead { max-width: 800px; }
.page-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.breadcrumbs { margin-bottom: 24px; color: var(--muted); font-size: 14px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; color: #6e686d; }

.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; }
.prose { max-width: 780px; }
.prose > * + * { margin-top: 24px; }
.prose h2 { margin-top: 56px; font-size: 34px; }
.prose h3 { margin-top: 32px; }
.prose p, .prose li { color: #d2ccc2; }
.prose ul, .prose ol { padding-left: 24px; }
.sidebar { align-self: start; position: sticky; top: 104px; padding: 24px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.sidebar h2 { font-size: 22px; }
.sidebar a { display: block; margin-top: 12px; }
.facts { display: grid; gap: 16px; margin: 24px 0 0; }
.facts div { display: grid; gap: 3px; }
.facts dt { color: var(--muted); font-size: 13px; }
.facts dd { margin: 0; font-weight: 650; overflow-wrap: anywhere; }

.table-wrap { margin-top: 24px; overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
caption { padding: 16px 20px; text-align: left; color: var(--muted); font-size: 13px; }
th, td { padding: 18px 20px; border-top: 1px solid var(--border); text-align: left; vertical-align: top; }
thead th { color: var(--muted); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
tbody th { min-width: 170px; }
tbody th span, td span { display: block; margin-top: 6px; }
.freshness-stale { border-color: rgb(243 189 114 / 50%); color: var(--warning); }
.freshness-aging { color: var(--warning); }
.freshness-fresh { color: var(--success); }
.evidence-note { padding: 16px 20px; border-left: 3px solid var(--warning); background: rgb(243 189 114 / 7%); color: var(--muted); }
.empty-state { padding: 32px; border: 1px dashed var(--border); border-radius: 12px; }
.empty-state h2 { font-size: 24px; }
.empty-state p { color: var(--muted); }

.compare-table th:first-child { width: 22%; }
.source-list { display: grid; gap: 12px; padding: 0; list-style: none; }
.source-list li { padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.source-list span { display: block; color: var(--muted); font-size: 14px; }
.questions { margin-top: 64px; }
.questions h2 { margin-bottom: 20px; }
details { border-top: 1px solid var(--border); }
details:last-child { border-bottom: 1px solid var(--border); }
summary { padding: 18px 0; font-weight: 700; cursor: pointer; }
details p { margin: -4px 0 20px; color: var(--muted); }

.email-capture { width: min(calc(100% - 48px), var(--max)); margin: 88px auto; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; padding: 40px; border: 1px solid rgb(232 93 78 / 55%); border-radius: 16px; background: linear-gradient(125deg, rgb(232 93 78 / 12%), var(--surface)); }
.email-capture h2 { font-size: 36px; }
.email-capture p { color: var(--muted); }
.subscribe-form label { display: block; margin-bottom: 8px; font-weight: 700; }
.form-row { display: flex; gap: 8px; }
input, select { width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid var(--border); border-radius: var(--radius); background: #171719; color: var(--text); }
.consent { display: grid !important; grid-template-columns: 20px 1fr; gap: 8px; margin-top: 12px; color: var(--muted); font-size: 13px; font-weight: 500 !important; }
.consent input { width: 18px; min-height: 18px; margin: 2px 0 0; }
.form-status { min-height: 24px; margin: 12px 0 0; }

.calculator { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 32px; margin-top: 32px; }
.calculator-form, .calculator-result { padding: 24px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 6px; font-weight: 700; }
.field small { display: block; margin-top: 5px; color: var(--muted); }
.result-card { padding: 20px; border-bottom: 1px solid var(--border); }
.result-card:last-child { border: 0; }
.result-card strong { display: block; font-size: 28px; }
.notice { padding: 16px; border: 1px solid rgb(243 189 114 / 45%); border-radius: var(--radius); background: rgb(243 189 114 / 7%); color: var(--muted); }

.site-footer { margin-top: 96px; padding: 56px 0 24px; border-top: 1px solid var(--border); background: #18181a; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; }
.footer-grid p { max-width: 420px; color: var(--muted); }
.footer-grid h2 { margin-bottom: 16px; color: var(--muted); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.footer-grid > div > a:not(.wordmark) { display: block; margin: 9px 0; color: var(--muted); text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; }

@media (max-width: 920px) {
  .header-inner { flex-wrap: wrap; padding-block: 12px; }
  .header-inner nav { order: 3; width: 100%; margin-left: 0; padding-bottom: 4px; overflow-x: auto; scrollbar-width: thin; }
  .header-inner nav a { flex: 0 0 auto; min-height: 40px; display: inline-flex; align-items: center; }
  .header-inner .button { margin-left: auto; }
  .hero-grid, .content-grid, .email-capture, .calculator { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sidebar { position: static; }
}

@media (max-width: 620px) {
  .shell { width: min(calc(100% - 32px), var(--max)); }
  .header-inner { min-height: 64px; gap: 12px 20px; }
  .header-inner .button { margin-left: auto; }
  .hero { padding: 72px 0 56px; }
  h1 { font-size: 46px; }
  .page-hero h1 { font-size: 40px; }
  .section { padding: 64px 0; }
  .card-grid { grid-template-columns: 1fr; }
  .section-heading { align-items: start; flex-direction: column; }
  .form-row { flex-direction: column; }
  .email-capture { width: min(calc(100% - 32px), var(--max)); margin-block: 64px; padding: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
