:root {
  --bg: #0a0b0a;
  --glow: rgba(74, 222, 128, 0.13);
  --surface: #141614;
  --raised: #1b1e1b;
  --hairline: #222522;
  --border: #2c302c;
  --text: #f4f6f4;
  --muted: #9da39d;
  --faint: #6e746e;
  --accent: #4ade80;
  --accent-strong: #86efac;
  --on-accent: #052e16;
  --font-head: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

/* Shared look for the app sites. Each site sets its own colours and fonts
   in site.json; build.mjs writes them as variables above this file. */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  background-image: radial-gradient(1100px 520px at 50% -160px, var(--glow), transparent 70%);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
}

img { max-width: 100%; height: auto; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-strong); }

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

/* ----- header and footer ----- */

.top {
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--font-head); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.brand img { border-radius: 8px; }

.top nav { margin-left: auto; display: flex; gap: 22px; }
.top nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--text); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  padding: 14px 22px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.12s ease, background 0.12s ease;
}
.btn:hover { background: var(--accent-strong); color: var(--on-accent); transform: translateY(-1px); }
.btn-small { font-size: 14px; padding: 9px 16px; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--surface); color: var(--text); }

.bottom { max-width: 1120px; margin: 96px auto 0; padding: 36px 20px 48px; border-top: 1px solid var(--hairline); color: var(--muted); font-size: 15px; }
.bottom-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.bottom-row p { margin: 0; }
.bottom-links { display: flex; gap: 20px; flex-wrap: wrap; margin: 18px 0 14px; }
.bottom-links a { color: var(--muted); text-decoration: none; }
.bottom-links a:hover { color: var(--text); }
.fine { font-size: 13px; color: var(--faint); margin: 0; }

/* ----- shared pieces ----- */

main { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

h1, h2, h3 { font-family: var(--font-head); letter-spacing: -0.02em; line-height: 1.15; color: var(--text); }

.kicker { display: inline-block; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }

.lede { font-size: 20px; line-height: 1.55; color: var(--muted); max-width: 46em; }

.page-head { padding: 56px 0 28px; }
.page-head h1 { font-size: clamp(34px, 5vw, 52px); margin: 12px 0 14px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.card { display: flex; flex-direction: column; gap: 10px; background: var(--surface); border: 1px solid var(--hairline); border-radius: 20px; padding: 24px; text-decoration: none; color: var(--text); transition: border-color 0.12s ease, transform 0.12s ease; }
.card:hover { border-color: var(--accent); color: var(--text); transform: translateY(-2px); }
.card h3 { font-size: 21px; margin: 0; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.card .meta { margin-top: auto; padding-top: 8px; font-family: var(--font-mono); font-size: 12px; color: var(--faint); }

.cta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 26px 28px; margin: 56px 0 0; }
.cta img { border-radius: 14px; }
.cta div { flex: 1 1 280px; }
.cta h2 { font-size: 22px; margin: 0 0 4px; }
.cta p { margin: 0; color: var(--muted); font-size: 16px; }

/* ----- article ----- */

.post { max-width: 780px; margin: 0 auto; padding-top: 40px; }
.crumbs { display: flex; gap: 8px; font-size: 14px; color: var(--faint); margin-bottom: 22px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.post h1 { font-size: clamp(32px, 5vw, 46px); margin: 12px 0 16px; }

.facts-row { display: flex; flex-wrap: wrap; gap: 10px 34px; margin: 26px 0 18px; padding: 16px 0; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.facts-row dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.facts-row dd { margin: 2px 0 0; font-size: 15px; color: var(--text); }

.disclosure { font-size: 15px; color: var(--muted); background: var(--surface); border-left: 3px solid var(--accent); border-radius: 0 12px 12px 0; padding: 12px 16px; margin: 0 0 26px; }

.toc { background: var(--surface); border: 1px solid var(--hairline); border-radius: 16px; padding: 18px 22px; margin: 0 0 12px; font-size: 15.5px; }
.toc strong { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); font-weight: 500; }
.toc ol { margin: 8px 0 0; padding-left: 20px; }
.toc li { margin: 4px 0; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--accent); }

.prose h2 { font-size: 28px; margin: 52px 0 14px; scroll-margin-top: 20px; }
.prose h3 { font-size: 20px; margin: 30px 0 8px; }
.prose p { margin: 0 0 18px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose strong { color: var(--text); font-weight: 700; }
.prose blockquote { margin: 0 0 18px; padding: 4px 0 4px 18px; border-left: 3px solid var(--border); color: var(--muted); }
.prose code { font-family: var(--font-mono); font-size: 0.9em; background: var(--surface); padding: 2px 6px; border-radius: 6px; }

.table-wrap { overflow-x: auto; margin: 0 0 22px; border: 1px solid var(--hairline); border-radius: 16px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 1.45; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--hairline); vertical-align: top; }
th { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); font-weight: 500; white-space: nowrap; background: var(--raised); }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 600; color: var(--text); }

.sources { font-size: 15px; }
.sources li { margin: 4px 0; }

.more { margin-top: 64px; }
.more h2 { font-size: 24px; margin: 0 0 18px; }

.legal h1 { font-size: 40px; }
.legal h2 { font-size: 22px; margin-top: 36px; }
.legal > a { display: inline-block; margin: 8px 18px 0 0; }

/* ----- home ----- */

.hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; padding: 56px 0 40px; }
.hero h1 { font-size: clamp(42px, 6.4vw, 76px); margin: 14px 0 18px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lede { font-size: 20px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 14px; }
.hero-note { font-size: 14px; color: var(--faint); margin: 0; }
.hero-shots { display: flex; gap: 14px; justify-content: center; }
.hero-shots img { width: 46%; border-radius: 22px; border: 1px solid var(--border); display: block; }
.hero-shots img:last-child { margin-top: 44px; }

.section { padding: 64px 0 0; }
.section > h2 { font-size: clamp(28px, 4vw, 40px); margin: 10px 0 12px; }
.section > .lede { margin: 0 0 28px; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--hairline); border-radius: 20px; padding: 22px; }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--font-mono); font-size: 13px; color: var(--accent); }
.steps h3 { font-size: 19px; margin: 10px 0 6px; }
.steps p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.55; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.panel { background: var(--surface); border: 1px solid var(--hairline); border-radius: 20px; padding: 26px; }
.panel h3 { font-size: 20px; margin: 0 0 6px; }
.panel .price { font-family: var(--font-head); font-size: 34px; font-weight: 700; letter-spacing: -0.02em; margin: 6px 0 2px; }
.panel .price small { font-family: var(--font-body); font-size: 15px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.panel ul { margin: 14px 0 0; padding-left: 20px; color: var(--muted); font-size: 15.5px; }
.panel li { margin: 5px 0; }
.panel-accent { border-color: var(--accent); }

.faq details { border-bottom: 1px solid var(--hairline); padding: 16px 0; }
.faq summary { cursor: pointer; font-family: var(--font-head); font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-family: var(--font-mono); }
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 10px 0 0; color: var(--muted); max-width: 48em; }

@media (max-width: 820px) {
  body { font-size: 16px; }
  .top { gap: 12px; padding: 14px 16px; }
  .top nav { gap: 14px; }
  .top nav a:not(:first-child) { display: none; }
  main { padding: 0 16px; }
  .hero { grid-template-columns: 1fr; gap: 32px; padding-top: 32px; }
  .hero-shots img { width: 44%; }
  .split { grid-template-columns: 1fr; }
  .lede, .hero .lede { font-size: 18px; }
  .prose h2 { font-size: 24px; }
  th, td { padding: 10px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card { transition: none; }
}
