/* Bellow — shared styles for comparison + guide pages.
   Mirrors the tokens in index.html so content pages feel native to the
   brand without duplicating the landing page's full stylesheet. */

:root {
  --bg: #ffffff;
  --surface: #f7f8fa;
  --surface-warm: #fff6ed;
  --fg: #1f1f1f;
  --fg-2: #4b5563;
  --muted: #697386;
  --dim: #9ca3af;
  --border: #d9dce3;
  --border-soft: #eef0f4;
  --accent: #E87A1A;
  --accent-on: #ffffff;
  --accent-hover: color-mix(in oklab, var(--accent), black 8%);
  --accent-glow: color-mix(in oklab, var(--accent) 20%, transparent);
  --success: #22a06b;
  --warn: #c2410c;

  --max: 1120px;
  --prose: 720px;
  --pad: 32px;

  --font-display: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-body: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;

  --text-xs: 11px;
  --text-sm: 13px;
  --text-base: 16px;
  --text-lg: 18px;
  --text-xl: 22px;
  --text-2xl: 30px;
  --text-3xl: clamp(32px, 5vw, 46px);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;

  --ease: cubic-bezier(0.2, 0, 0, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--fg);
  background: var(--bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }

/* ── nav ─────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  max-width: var(--max); margin: 0 auto; padding: 16px var(--pad);
}
.nav::before {
  content: ''; position: fixed; top: 0; left: 0; right: 0; height: 64px;
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(40px) saturate(1.8);
  -webkit-backdrop-filter: blur(40px) saturate(1.8);
  border-bottom: 0.5px solid var(--border-soft);
  z-index: -1;
}
.wordmark {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display); font-weight: 800;
  letter-spacing: 0.14em; font-size: 16px; color: var(--fg);
  text-decoration: none;
}
.wordmark-icon { width: 24px; height: 24px; flex-shrink: 0; }
.nav nav { display: flex; gap: 24px; align-items: center; }
.nav nav a {
  font-size: var(--text-sm); font-weight: 500; color: var(--muted);
  text-decoration: none; transition: color 140ms var(--ease);
}
.nav nav a:hover { color: var(--fg); }
.nav .buy-link {
  background: var(--fg); color: var(--bg);
  padding: 8px 16px; border-radius: var(--radius-sm);
  font-weight: 600; white-space: nowrap;
  transition: all 140ms var(--ease);
}
.nav .buy-link:hover { background: var(--accent); color: var(--accent-on); transform: translateY(-1px); }

/* ── article shell ───────────────────────────────── */
.article { max-width: var(--prose); margin: 0 auto; padding: 56px var(--pad) 40px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 18px; height: 1.5px; background: var(--accent); }
.article h1 {
  font-family: var(--font-display);
  font-size: var(--text-3xl); font-weight: 800;
  letter-spacing: -0.03em; line-height: 1.08; margin-bottom: 16px;
}
.standfirst { font-size: var(--text-lg); color: var(--muted); line-height: 1.6; margin-bottom: 12px; }
.byline { font-size: var(--text-sm); color: var(--dim); padding-bottom: 28px; border-bottom: 0.5px solid var(--border-soft); }

.article h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl); font-weight: 800;
  letter-spacing: -0.02em; line-height: 1.2;
  margin: 44px 0 14px;
}
.article h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl); font-weight: 700;
  letter-spacing: -0.01em; margin: 32px 0 10px;
}
.article p { margin-bottom: 18px; color: var(--fg-2); }
.article p strong { color: var(--fg); font-weight: 700; }
.article ul, .article ol { margin: 0 0 18px 22px; color: var(--fg-2); }
.article li { margin-bottom: 8px; }
.article a:not(.cta):not(.wordmark) {
  color: var(--accent); text-decoration: underline;
  text-underline-offset: 3px; text-decoration-thickness: 1px;
}
.article a:not(.cta):not(.wordmark):hover { color: var(--accent-hover); }
code {
  font-family: var(--font-mono); font-size: 0.9em;
  background: var(--surface); border: 0.5px solid var(--border-soft);
  border-radius: 6px; padding: 2px 6px;
}

/* ── callout ─────────────────────────────────────── */
.callout {
  background: color-mix(in oklab, var(--accent) 5%, var(--bg));
  border: 0.5px solid color-mix(in oklab, var(--accent) 20%, var(--border-soft));
  border-radius: var(--radius-md);
  padding: 18px 20px; margin: 26px 0;
  font-size: var(--text-base); color: var(--fg-2);
}
.callout strong { color: var(--fg); }
.callout-label {
  display: block; font-size: var(--text-xs); font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 6px;
}

/* ── comparison table ────────────────────────────── */
.ctable-wrap { overflow-x: auto; margin: 26px 0; }
.ctable {
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: var(--bg); border: 0.5px solid var(--border-soft);
  border-radius: var(--radius-lg); overflow: hidden;
  font-size: var(--text-sm);
}
.ctable th, .ctable td {
  padding: 14px 16px; text-align: left;
  border-bottom: 0.5px solid var(--border-soft); vertical-align: top;
}
.ctable tr:last-child td { border-bottom: none; }
.ctable thead th {
  font-size: var(--text-xs); text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--muted); font-weight: 700;
}
.ctable thead th.col-bellow { color: var(--accent); }
.ctable td.row-label { font-weight: 600; color: var(--fg); width: 34%; }
.ctable td.col-bellow {
  font-weight: 600; color: var(--fg);
  background: color-mix(in oklab, var(--accent) 5%, transparent);
}
.ctable td.col-them { color: var(--muted); }
.yes { color: var(--success); font-weight: 700; }
.no  { color: var(--warn); font-weight: 600; }

/* ── cta block ───────────────────────────────────── */
.cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent); color: var(--accent-on);
  padding: 15px 26px; font-size: var(--text-base); font-weight: 700;
  border-radius: var(--radius-md); text-decoration: none;
  box-shadow: 0 4px 16px var(--accent-glow);
  transition: all 220ms var(--ease);
}
.cta:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 8px 28px var(--accent-glow); }
.end-cta {
  margin: 44px 0 8px; padding: 32px;
  background: var(--surface-warm);
  border: 0.5px solid color-mix(in oklab, var(--accent) 18%, var(--border-soft));
  border-radius: var(--radius-lg); text-align: center;
}
.end-cta h3 { margin: 0 0 8px; font-size: var(--text-xl); }
.end-cta p { margin-bottom: 18px; color: var(--muted); }
.end-cta .fine { margin: 14px 0 0; font-size: var(--text-xs); color: var(--dim); }

/* ── index / hub cards ───────────────────────────── */
.hub { max-width: var(--max); margin: 0 auto; padding: 56px var(--pad) 72px; }
.hub-head { max-width: var(--prose); margin-bottom: 40px; }
.hub-head h1 { font-size: var(--text-3xl); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 12px; }
.hub-head p { font-size: var(--text-lg); color: var(--muted); }
.hub-group-title {
  font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted);
  margin: 36px 0 14px;
}
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.card {
  display: block; text-decoration: none;
  background: var(--bg); border: 0.5px solid var(--border-soft);
  border-radius: var(--radius-lg); padding: 22px 24px;
  transition: all 200ms var(--ease);
}
.card:hover {
  border-color: color-mix(in oklab, var(--accent) 40%, transparent);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.06);
}
.card h3 { font-size: var(--text-lg); font-weight: 700; margin-bottom: 6px; letter-spacing: -0.01em; }
.card p { font-size: var(--text-sm); color: var(--muted); line-height: 1.55; }

/* ── breadcrumb + footer ─────────────────────────── */
.crumb { max-width: var(--prose); margin: 0 auto; padding: 20px var(--pad) 0; font-size: var(--text-sm); color: var(--dim); }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--accent); }

footer { margin-top: 40px; padding: 0; }
.footer-inner {
  max-width: var(--max); margin: 0 auto;
  padding: 44px var(--pad) 60px; position: relative;
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
}
.footer-inner::before {
  content: ""; position: absolute; top: 0; left: var(--pad); right: var(--pad);
  height: 0.5px; background: var(--border-soft);
}
.footer-tag {
  font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.12em;
  color: var(--muted); text-transform: uppercase;
}
.footer-fine { font-size: var(--text-xs); color: var(--dim); }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 4px; }
.footer-links a { font-size: var(--text-xs); color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }

@media (max-width: 760px) {
  .nav nav a:not(.buy-link) { display: none; }
  .article { padding: 36px var(--pad) 32px; }
  .end-cta { padding: 24px 20px; }
}

/* ─── blog ──────────────────────────────────────────────────────────
   Extends the existing content sheet; no new tokens, no second design
   system. The post list reuses the card language from the hub page. */

.feedlink { margin-top: 14px; }
.feedlink a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 0.5px solid var(--border-soft);
  padding-bottom: 1px;
}
.feedlink a:hover { color: var(--accent); border-bottom-color: var(--accent); }

.postlist {
  display: grid;
  gap: 16px;
  margin-top: 34px;
}
.postcard {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--bg);
  border: 0.5px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.postcard:hover {
  border-color: color-mix(in oklab, var(--accent), transparent 55%);
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(0,0,0,.05);
}
.postcard-meta {
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px;
}
.postcard h2 {
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -.02em;
  margin: 0 0 8px;
}
.postcard p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}
.postcard-more {
  display: inline-block;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

/* post page */
.post h1 { max-width: 22ch; }
.post .byline {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 30px;
}
.post pre {
  background: var(--surface-warm);
  border: 0.5px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  overflow-x: auto;          /* long commands scroll, page never does */
  font-size: 13.5px;
  line-height: 1.55;
}
.post pre code { background: none; padding: 0; }

/* previous / next */
.postnav {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
  margin: 44px 0 8px;
}
.postnav a {
  text-decoration: none;
  color: inherit;
  border: 0.5px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  font-weight: 600;
  line-height: 1.35;
  transition: border-color .18s ease;
}
.postnav a:hover { border-color: color-mix(in oklab, var(--accent), transparent 55%); }
.postnav span {
  display: block;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 6px;
}
.postnav .older { text-align: right; }
.postnav .newer:only-child { grid-column: 1; }
.postnav .older:only-child { grid-column: 2; }

@media (max-width: 620px) {
  .postnav { grid-template-columns: 1fr; }
  .postnav .older { text-align: left; }
  .postcard { padding: 22px 20px; }
}

/* blog banners */
.posthero {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;      /* reserves space so the headline never jumps */
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin: 0 0 28px;
  background: var(--surface-warm);
}
.postcard-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin: 0 0 18px;
  background: var(--surface-warm);
}

/* Index cards go horizontal on desktop. Ten full-width 16:9 banners
   stacked makes the index a scroll rather than a list; putting the
   image beside the text keeps each post scannable at a glance while
   the banner still does its job. Stacks back to vertical on narrow
   screens where a side-by-side would squeeze both. */
@media (min-width: 720px) {
  .postcard {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 24px;
    align-items: center;
  }
  /* Keep the thumbnail at the banner's own 16:9 so nothing is cropped.
     Two earlier attempts failed here: a centred 4:3 crop landed on the
     banner's empty left half and rendered as a blank rectangle, and
     anchoring that crop to the right landed on the empty margin PAST
     Bo, because he sits centre-right rather than flush right. Matching
     the ratio removes the crop, and the whole illustration survives. */
  .postcard-img { margin: 0; aspect-ratio: 16 / 9; }
  .postcard-body { min-width: 0; }
}
