/* Landing, /about, /privacy and /terms. Tokens and rules come from DESIGN.md. */
@font-face { font-family: 'Geist'; src: url('/fonts/Geist-Variable.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('/fonts/GeistMono-Variable.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  color-scheme: light;
  --bg: #ffffff; --surface: #f7f7f7; --ink: #171717; --muted: #5e5e5e; --line: #e5e5e5; --accent: #1d5fd6;
  --focus: #ffdd00; --highlight: #fff1a8;
  --shadow: 0 4px 16px rgb(0 0 0 / .08);
  --r-sm: 4px; --r-md: 8px;
  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    --bg: #0a0a0a; --surface: #141414; --ink: #ededed; --muted: #a1a1a1; --line: #2a2a2a; --accent: #5b9bff;
    --highlight: #4a3f00; --shadow: 0 4px 16px rgb(0 0 0 / .5);
  }
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #0a0a0a; --surface: #141414; --ink: #ededed; --muted: #a1a1a1; --line: #2a2a2a; --accent: #5b9bff;
  --highlight: #4a3f00; --shadow: 0 4px 16px rgb(0 0 0 / .5);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/28px var(--sans); font-feature-settings: 'ss01';
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; }
h1 { font-size: 32px; line-height: 40px; letter-spacing: -.01em; }
h2 { font-size: 24px; line-height: 32px; letter-spacing: -.005em; }
h3 { font-size: 19px; line-height: 28px; }
p { margin: 0; text-wrap: pretty; }
code, .mono { font-family: var(--mono); font-size: .88em; }
code { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 1px 4px; }
.num, dd { font-variant-numeric: tabular-nums; }

a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color 120ms ease-out, background-color 120ms ease-out; }
a:hover { text-decoration-thickness: 2px; }
/* GOV.UK focus: yellow fill with a dark underline you can't miss. */
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid transparent; background: var(--focus); color: #0b0c0c; box-shadow: 0 -2px var(--focus), 0 4px #0b0c0c; text-decoration: none;
}
.btn:focus-visible, .mk-theme:focus-visible { box-shadow: 0 0 0 3px var(--focus), 0 0 0 6px #0b0c0c; background: var(--focus); color: #0b0c0c; }

.skip-link { position: absolute; left: 16px; top: -64px; z-index: 20; padding: 8px 12px; background: var(--focus); color: #0b0c0c; }
.skip-link:focus { top: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 32px; }
/* Narrow sections keep the page's left edge and limit only their measure. */
.narrow > * { max-width: 744px; }
.small { font-size: 13px; line-height: 20px; color: var(--muted); font-weight: 450; }
.label { font-size: 13px; line-height: 20px; color: var(--muted); font-weight: 500; margin-bottom: 8px; }
.lede { font-size: 19px; line-height: 30px; color: var(--muted); }
.hint { font-size: 15px; line-height: 24px; color: var(--muted); }
.icon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px;
  border-radius: var(--r-sm); font: 500 15px/24px var(--sans); text-decoration: none; white-space: nowrap;
  transition: background-color 120ms ease-out, border-color 120ms ease-out, color 120ms ease-out;
}
.btn-primary { background: var(--ink); color: var(--bg); border: 1px solid var(--ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--ink) 85%, var(--bg)); }
.btn-secondary { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-secondary:hover { border-color: var(--muted); }
.btn-start { height: 48px; padding: 0 20px; font-size: 17px; }
.btn-start .icon { transition: transform 120ms ease-out; }
.btn-start:hover .icon { transform: translateX(2px); }
.btn-small { height: 32px; padding: 0 12px; font-size: 14px; }
@media (pointer: coarse) { .btn { min-height: 44px; } .btn-small { height: 40px; } }

/* Header */
.mk-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.mk-header-inner { max-width: 1200px; height: 56px; margin: 0 auto; padding: 0 32px; display: flex; align-items: center; gap: 32px; }
.mk-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font: 600 16px/24px var(--sans); letter-spacing: -.01em; }
.mk-brand img { border-radius: 6px; }
.mk-nav { display: flex; gap: 24px; flex: 1; }
.mk-nav a, .mk-menu nav a { color: var(--muted); text-decoration: none; font: 450 15px/24px var(--sans); }
.mk-nav a:hover, .mk-nav a[aria-current='page'] { color: var(--ink); }
.mk-nav a[aria-current='page'] { box-shadow: inset 0 -2px 0 var(--accent); }
.mk-header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.mk-theme { display: inline-grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: var(--r-sm); background: transparent; color: var(--muted); cursor: pointer; transition: color 120ms ease-out, border-color 120ms ease-out; }
.mk-theme[hidden] { display: none; }
.mk-theme:hover { color: var(--ink); border-color: var(--muted); }
.mk-menu { display: none; position: relative; }
.mk-menu summary { list-style: none; cursor: pointer; height: 40px; padding: 0 12px; display: flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r-sm); font: 500 15px/24px var(--sans); }
.mk-menu summary::-webkit-details-marker { display: none; }
.mk-menu[open] summary { border-color: var(--ink); }
.mk-menu nav { position: fixed; left: 0; right: 0; top: 56px; display: grid; padding: 8px 16px 16px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
.mk-menu nav a { padding: 12px 0; font-size: 17px; color: var(--ink); border-bottom: 1px solid var(--line); }
.mk-menu nav a:last-child { border-bottom: 0; color: var(--accent); }
@media (pointer: coarse) {
  .mk-theme { width: 44px; height: 44px; }
  .mk-menu summary { min-height: 44px; }
}

/* Hero */
.hero { padding: 96px 0 64px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 64px; align-items: center; }
.hero h1 { font-size: 48px; line-height: 52px; letter-spacing: -.02em; max-width: 14ch; }
.hero .lede { margin-top: 24px; max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero .hint { margin-top: 16px; }

/* Product screenshots: real reader UI in a plain frame. */
.shot { margin: 0; }
.shot-frame { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: #fff; }
.shot-bar { display: flex; align-items: center; height: 32px; padding: 0 12px; border-bottom: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 13px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.shot-bar::before { content: ''; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; background: var(--line); box-shadow: 12px 0 var(--line), 24px 0 var(--line); margin-right: 36px; flex: none; }
.shot img { width: 100%; aspect-ratio: 9 / 8; object-fit: cover; object-position: top; }
.shot figcaption { margin-top: 12px; font-size: 13px; line-height: 20px; color: var(--muted); }
:root[data-theme='dark'] .shot img { filter: brightness(.92); }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .shot img { filter: brightness(.92); } }

/* Facts */
.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 32px 0; }
.facts dl { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; }
.facts dl > div { padding: 0 24px; border-left: 1px solid var(--line); }
.facts dl > div:first-child { padding-left: 0; border-left: 0; }
.facts dt { font-size: 15px; line-height: 24px; color: var(--muted); }
.facts dd { margin: 4px 0 0; font: 600 32px/40px var(--sans); letter-spacing: -.01em; }
.facts .small { margin-top: 16px; }

/* Sections */
.section { padding: 96px 0 0; }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head p { margin-top: 12px; color: var(--muted); }

/* Claim next to its source */
.claims { border-top: 1px solid var(--line); }
.claim { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.claim-model h3 { margin-bottom: 8px; }
.claim-model p:last-child { color: var(--muted); }
.claim-source blockquote { margin: 0 0 12px; padding: 12px 16px; background: var(--surface); border-left: 2px solid var(--line); border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: 15px; line-height: 24px; }
.claim-source > a { font-size: 15px; }
.chip { display: inline-block; padding: 0 6px; border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--accent); text-decoration: none; font-size: 13px; line-height: 20px; background: var(--bg); }
.chip:hover { border-color: var(--accent); }
.pull-quote { margin: 48px 0 0; padding-left: 24px; border-left: 2px solid var(--ink); max-width: 760px; }
.pull-quote blockquote { margin: 0; font-size: 24px; line-height: 34px; font-weight: 450; letter-spacing: -.005em; }
.pull-quote blockquote::before { content: '“'; }
.pull-quote blockquote::after { content: '”'; }
.pull-quote figcaption { margin-top: 16px; font-size: 15px; line-height: 24px; color: var(--muted); }
.pull-quote figcaption strong { color: var(--ink); font-weight: 600; }

/* Features */
.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: center; padding: 48px 0; border-top: 1px solid var(--line); }
.feature-flip .feature-copy { order: 2; }
.feature-copy p { margin: 12px 0 16px; color: var(--muted); }
.feature .shot img { aspect-ratio: 16 / 10; }
.feature-list { list-style: none; margin: 0; padding: 48px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.feature-list li { padding: 0 32px; border-left: 1px solid var(--line); }
.feature-list li:first-child { padding-left: 0; border-left: 0; }
.feature-list p { margin: 8px 0 12px; color: var(--muted); font-size: 15px; line-height: 24px; }
.feature-list a { font-size: 15px; }

/* Steps */
.steps { list-style: none; counter-reset: step; margin: 0 0 32px; padding: 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 32px 56px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; font: 500 15px/1 var(--mono); color: var(--ink); }
.steps li:not(:last-child)::after { content: ''; position: absolute; left: 16px; top: 40px; bottom: 8px; width: 1px; background: var(--line); }
.steps p { margin-top: 4px; color: var(--muted); }

/* Limits */
.limits { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; }
.limits h2 + p { margin-top: 16px; }
.plain { margin: 24px 0 0; padding-left: 20px; }
.plain li { margin-bottom: 8px; }
.uncertain { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); align-self: start; }
.uncertain ul { margin: 12px 0; padding-left: 20px; font-size: 15px; line-height: 24px; }
.uncertain li { margin-bottom: 8px; }

/* Call to action */
.cta-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; padding-top: 64px; border-top: 1px solid var(--line); }
.cta-grid h2 + p { margin-top: 16px; }
.topics { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.topics li { padding: 2px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; line-height: 24px; color: var(--muted); }
.cta-box { padding: 24px; border: 1px solid var(--line); border-radius: var(--r-md); align-self: start; }
.price { font-size: 32px; line-height: 40px; letter-spacing: -.01em; margin-bottom: 8px; }
.cta-box .btn { margin: 24px 0 12px; width: 100%; }

/* FAQ */
.faq { margin-top: 24px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font: 400 20px/28px var(--mono); color: var(--muted); }
.faq details[open] summary::after { content: '−'; }
.faq details p { padding: 0 0 20px; color: var(--muted); max-width: 64ch; }

/* Prose pages */
.prose-page { padding-top: 64px; padding-bottom: 32px; }
.prose-page .lede { margin-top: 16px; }
.prose-page h2 { margin: 48px 0 12px; }
.prose-page p, .prose-page li { max-width: 68ch; }
.prose-page p + p { margin-top: 16px; }
.prose-page ul, .prose-page ol { padding-left: 24px; margin: 12px 0 0; }
.prose-page li { margin-bottom: 12px; }
.prose-page .small { margin-top: 24px; }

/* Footer */
.mk-footer { margin-top: 96px; padding: 48px 0 64px; border-top: 1px solid var(--line); background: var(--surface); }
.mk-footer .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; }
.mk-footer-lede p { margin-top: 12px; font-size: 15px; line-height: 24px; color: var(--muted); max-width: 40ch; }
.mk-footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.mk-footer h2 { font-size: 15px; line-height: 24px; font-weight: 600; }
.mk-footer ul { list-style: none; margin: 8px 0 0; padding: 0; }
.mk-footer li { margin: 4px 0; }
.mk-footer-cols a { color: var(--muted); text-decoration: none; font-size: 15px; line-height: 28px; }
.mk-footer-cols a:hover { color: var(--ink); text-decoration: underline; }

/* Tablet */
@media (max-width: 1079px) {
  .mk-nav { gap: 16px; }
  .hero-grid, .feature, .limits, .cta-grid, .mk-footer .wrap { grid-template-columns: 1fr; gap: 40px; }
  .feature-flip .feature-copy { order: 0; }
  .hero h1 { max-width: 18ch; }
  .shot { max-width: 680px; }
}
@media (max-width: 899px) {
  .mk-nav, .mk-header-actions > .btn { display: none; }
  .mk-menu { display: block; }
  .claim { grid-template-columns: 1fr; gap: 16px; }
  .feature-list { grid-template-columns: 1fr; gap: 32px; }
  .feature-list li { padding: 0; border-left: 0; }
  .facts dl { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
  .facts dl > div:nth-child(3) { padding-left: 0; border-left: 0; }
}
/* Mobile */
@media (max-width: 599px) {
  body { font-size: 17px; }
  .wrap, .mk-header-inner { padding-left: 16px; padding-right: 16px; }
  .prose-page { padding-top: 48px; }
  .mk-header-inner { gap: 12px; }
  .hero { padding: 48px 0 48px; }
  .hero h1 { font-size: 36px; line-height: 40px; }
  h1 { font-size: 28px; line-height: 36px; }
  .actions .btn { width: 100%; }
  .section { padding-top: 64px; }
  .section-head { margin-bottom: 32px; }
  .facts dd { font-size: 24px; line-height: 32px; }
  .facts dl > div { padding: 0 16px; }
  .facts dl > div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .pull-quote { padding-left: 16px; }
  .pull-quote blockquote { font-size: 19px; line-height: 30px; }
  .mk-footer-cols { grid-template-columns: 1fr 1fr; }
  .mk-footer { margin-top: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; }
}
