/* ============================================================
   APPLANDICA — design system
   Independent health-app testing lab. NY.
   ------------------------------------------------------------
   1. Tokens
   2. Reset & base
   3. Layout primitives
   4. Header / nav
   5. Type & editorial
   6. Components (cards, scores, badges, tables, notes)
   7. Page sections
   8. Footer
   9. Utilities & motion
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  /* ink & paper */
  --ink:        #12161c;
  --ink-2:      #39434f;
  --ink-3:      #6b7684;
  --paper:      #f6f4ee;
  --paper-2:    #fffdf8;
  --paper-3:    #ece8de;
  --line:       #ded8ca;
  --line-soft:  #e9e4d8;

  /* signal colours */
  --lime:       #c6f24e;   /* the biohacker accent */
  --lime-deep:  #8fbe14;
  --blue:       #2f5bff;
  --blue-soft:  #e3e9ff;
  --coral:      #ff5a3c;
  --coral-soft: #ffe6e0;
  --amber:      #ffb020;
  --mint:       #17b978;
  --violet:     #7b5cff;

  /* semantic */
  --bg:         var(--paper);
  --surface:    var(--paper-2);
  --surface-2:  var(--paper-3);
  --text:       var(--ink);
  --text-mute:  var(--ink-3);
  --border:     var(--line);
  --accent:     var(--blue);

  /* type */
  --sans: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --serif: "Instrument Serif", ui-serif, Georgia, "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* space & shape */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 28px;
  --shadow-1: 0 1px 2px rgba(18,22,28,.05), 0 2px 8px rgba(18,22,28,.04);
  --shadow-2: 0 2px 4px rgba(18,22,28,.06), 0 12px 28px rgba(18,22,28,.08);
  --shadow-lift: 0 4px 8px rgba(18,22,28,.07), 0 22px 48px rgba(18,22,28,.12);
  --maxw: 1180px;
  --gutter: clamp(18px, 4vw, 48px);
}

:root[data-theme="dark"],
html.dark {
  --bg:        #0d1014;
  --surface:   #14181e;
  --surface-2: #1b212a;
  --text:      #eef1f4;
  --text-mute: #93a0ae;
  --border:    #262e39;
  --line-soft: #1e242c;
  --paper-2:   #14181e;
  --paper-3:   #1b212a;
  --blue:      #7a94ff;
  --blue-soft: #1b2340;
  --coral-soft:#33191a;
  --shadow-1:  0 1px 2px rgba(0,0,0,.4);
  --shadow-2:  0 8px 28px rgba(0,0,0,.45);
  --shadow-lift: 0 20px 48px rgba(0,0,0,.55);
  color-scheme: dark;
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  font-feature-settings: "ss01", "cv01";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
hr { border: 0; border-top: 1px solid var(--border); margin: 40px 0; }
::selection { background: var(--lime); color: #12161c; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

/* ---------- 3. Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 760px; }
.wrap--wide { max-width: 1360px; }
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.row--between { justify-content: space-between; }
.section { padding: clamp(56px, 7vw, 96px) 0; }
.section--tight { padding: clamp(36px, 4vw, 56px) 0; }
.stack > * + * { margin-top: 18px; }

@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0,1fr); }
}

/* ---------- 4. Header ---------- */
.topbar {
  background: var(--ink);
  color: #f6f4ee;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 7px 0;
  overflow: hidden;
}
:root[data-theme="dark"] .topbar { background: #05070a; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.topbar b { color: var(--lime); font-weight: 600; }
.topbar .topbar__right { display: flex; gap: 18px; opacity: .75; }
@media (max-width: 720px) { .topbar .topbar__right { display: none; } }

.masthead {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--border);
}
.masthead__inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.03em; font-size: 21px; }
.logo__mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--ink); color: var(--lime);
  display: grid; place-items: center; flex: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
:root[data-theme="dark"] .logo__mark { background: var(--lime); color: #0d1014; }
.logo__mark svg { width: 18px; height: 18px; }
.logo em { font-style: normal; color: var(--text-mute); font-weight: 500; }

.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a {
  padding: 8px 12px; border-radius: 999px; font-size: 15px; font-weight: 500;
  color: var(--text-mute); transition: color .15s, background .15s;
}
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); font-weight: 600; }

.masthead__tools { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 36px; height: 36px; display: grid; place-items: center;
  border: 1px solid var(--border); background: var(--surface);
  border-radius: 10px; cursor: pointer; transition: .15s;
}
.icon-btn:hover { border-color: var(--text-mute); transform: translateY(-1px); }
.icon-btn svg { width: 17px; height: 17px; }
.nav-toggle { display: none; }
@media (max-width: 900px) {
  .nav {
    position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 12px var(--gutter) 22px; gap: 2px; margin: 0;
    transform: translateY(-120%); transition: transform .28s cubic-bezier(.4,0,.2,1);
    box-shadow: var(--shadow-2);
  }
  .nav[data-open="true"] { transform: translateY(0); }
  .nav a { padding: 12px 10px; font-size: 17px; border-radius: 10px; }
  .nav-toggle { display: grid; }
}

/* ---------- 5. Type ---------- */
h1, h2, h3, h4, .card__title, .h-label { line-height: 1.1; letter-spacing: -.03em; margin: 0; font-weight: 650; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); letter-spacing: -.02em; }
h4 { font-size: 1.08rem; letter-spacing: -.01em; }
p { margin: 0 0 1.1em; }
.lede { font-size: clamp(1.1rem, 1.9vw, 1.32rem); color: var(--ink-2); line-height: 1.55; }
:root[data-theme="dark"] .lede { color: #b9c4d0; }
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; }
.mono { font-family: var(--mono); }

.kicker {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--text-mute); font-weight: 500;
  display: inline-flex; align-items: center; gap: 8px;
}
.kicker::before {
  content: ""; width: 18px; height: 2px; background: var(--lime-deep); border-radius: 2px;
}
.kicker--plain::before { display: none; }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; flex-wrap: wrap; }
.section-head p { margin: 8px 0 0; color: var(--text-mute); max-width: 56ch; }

.link-arrow { font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; gap: 6px; color: var(--text); border-bottom: 2px solid var(--lime); padding-bottom: 2px; }
.link-arrow:hover { border-color: var(--text); }
.link-arrow span { transition: transform .2s; }
.link-arrow:hover span { transform: translateX(4px); }

/* ---------- 6. Components ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px; justify-content: center;
  padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: 15.5px;
  border: 1px solid transparent; cursor: pointer; transition: transform .16s, box-shadow .16s, background .16s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--ink); color: var(--paper-2); box-shadow: var(--shadow-1); }
.btn--primary:hover { box-shadow: var(--shadow-2); }
:root[data-theme="dark"] .btn--primary { background: var(--lime); color: #0d1014; }
.btn--lime { background: var(--lime); color: #12161c; }
.btn--ghost { border-color: var(--border); background: var(--surface); }
.btn--ghost:hover { border-color: var(--text-mute); }
.btn--sm { padding: 8px 15px; font-size: 14px; }

.tag {
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px; background: var(--surface-2); color: var(--text-mute);
  border: 1px solid var(--border); font-weight: 500; white-space: nowrap;
}
.tag--sleep   { background: #efeaff; color: #5b3fd6; border-color: #ded3ff; }
.tag--metabolic { background: #fff0e4; color: #b45b09; border-color: #ffdfc4; }
.tag--fitness { background: #e3f7ec; color: #0d7a4d; border-color: #c9eeda; }
.tag--mind    { background: #e6f0ff; color: #2246c9; border-color: #cfe0ff; }
.tag--news    { background: var(--lime); color: #333d0a; border-color: #b6e13c; }
.tag--vs      { background: #12161c; color: var(--lime); border-color: #12161c; }
:root[data-theme="dark"] .tag--sleep,
:root[data-theme="dark"] .tag--metabolic,
:root[data-theme="dark"] .tag--fitness,
:root[data-theme="dark"] .tag--mind { background: var(--surface-2); color: var(--text); border-color: var(--border); }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 24px; box-shadow: var(--shadow-1);
  transition: transform .22s cubic-bezier(.3,.8,.4,1), box-shadow .22s, border-color .22s;
  display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden;
}
a.card:hover, .card--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: color-mix(in srgb, var(--text-mute) 40%, var(--border)); }
.card__meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.card__title { font-size: 1.22rem; line-height: 1.22; letter-spacing: -.025em; font-weight: 650; }
.card__dek { color: var(--text-mute); font-size: 15px; margin: 0; }
.card__foot {
  margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line-soft);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 11.5px; color: var(--text-mute); letter-spacing: .04em;
}
.card__thumb {
  aspect-ratio: 16/9; border-radius: var(--r-md); margin: -4px 0 4px;
  background: linear-gradient(135deg, var(--surface-2), var(--bg));
  display: grid; place-items: center; border: 1px solid var(--line-soft); overflow: hidden;
}

/* score dial */
.score {
  --val: 0;
  width: 74px; height: 74px; flex: none; border-radius: 50%;
  background: conic-gradient(var(--score-color, var(--lime-deep)) calc(var(--val) * 1%), var(--surface-2) 0);
  display: grid; place-items: center; position: relative;
}
.score::after {
  content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--surface);
  border: 1px solid var(--line-soft);
}
.score__num { position: relative; z-index: 1; font-family: var(--mono); font-weight: 700; font-size: 20px; letter-spacing: -.04em; }
.score--sm { width: 50px; height: 50px; }
.score--sm::after { inset: 4px; }
.score--sm .score__num { font-size: 14px; }
.score--lg { width: 130px; height: 130px; }
.score--lg::after { inset: 9px; }
.score--lg .score__num { font-size: 38px; }
/* The caption lives below the ring, not inside it — at 130px the inner circle is
   ~112px across and a label like "Applandica score" is wider than that, so it used
   to overflow onto the track. */
.scoreblock { display: inline-flex; flex-direction: column; align-items: center; gap: 10px; }
.score__caption {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-mute); font-weight: 600; text-align: center; line-height: 1.3; max-width: 15ch;
}

/* verdict panel */
.verdict {
  border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface);
  padding: 26px; display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center;
  box-shadow: var(--shadow-1);
}
@media (max-width: 620px) { .verdict { grid-template-columns: 1fr; text-align: left; } }

/* rubric bars */
.rubric { display: grid; gap: 14px; margin: 0; padding: 0; }
.rubric__row { display: grid; grid-template-columns: minmax(140px, 190px) 1fr auto; gap: 16px; align-items: center; }
.rubric__label { font-size: 14.5px; font-weight: 550; }
.rubric__bar { height: 9px; border-radius: 999px; background: var(--surface-2); overflow: hidden; border: 1px solid var(--line-soft); }
.rubric__fill { height: 100%; border-radius: 999px; background: var(--score-color, var(--lime-deep)); width: 0; transition: width 1s cubic-bezier(.2,.7,.3,1); }
.rubric__val { font-family: var(--mono); font-size: 13px; color: var(--text-mute); }
@media (max-width: 560px) { .rubric__row { grid-template-columns: 1fr auto; } .rubric__bar { grid-column: 1 / -1; order: 3; } }

/* pros / cons */
.pc { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 620px) { .pc { grid-template-columns: 1fr; } }
.pc__col { border: 1px solid var(--border); border-radius: var(--r-md); padding: 18px 20px; background: var(--surface); }
.pc__col h3 { font-size: 1.08rem; display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.pc__col ul { margin: 0; padding-left: 18px; font-size: 15.5px; }
.pc__col li { margin-bottom: 7px; }
.pc__col--good h3 { color: var(--mint); }
.pc__col--bad h3 { color: var(--coral); }

/* data table */
.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); }
table.data { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
table.data th, table.data td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
table.data thead th {
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-mute); font-weight: 600; background: var(--surface-2); position: sticky; top: 0;
}
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
table.data td:first-child { font-weight: 600; }
.cell-win { color: var(--mint); font-weight: 650; }
.cell-lose { color: var(--text-mute); }

/* callouts */
.note {
  border-left: 3px solid var(--lime-deep); background: var(--surface-2);
  padding: 16px 20px; border-radius: 0 var(--r-md) var(--r-md) 0; font-size: 15.5px;
}
.note--warn { border-color: var(--coral); background: var(--coral-soft); }
.note--info { border-color: var(--blue); background: var(--blue-soft); }
.note p:last-child { margin-bottom: 0; }
.note strong { font-weight: 650; }

/* stat tiles */
.stat { border: 1px solid var(--border); border-radius: var(--r-md); padding: 18px 20px; background: var(--surface); }
.stat__num { font-family: var(--mono); font-size: clamp(1.7rem, 3vw, 2.2rem); font-weight: 700; letter-spacing: -.05em; }
.stat__label { font-size: 13.5px; color: var(--text-mute); margin-top: 2px; }

/* sticker / stamp */
.stamp {
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  border: 2px solid currentColor; border-radius: 8px; padding: 6px 10px; font-weight: 700;
  display: inline-block; transform: rotate(-3deg); color: var(--coral);
}
.stamp--pass { color: var(--mint); }
.stamp--lime { color: var(--lime-deep); }

/* people */
.person { text-align: left; border-top: 2px solid var(--border); padding-top: 16px; transition: border-color .2s; }
.person:hover { border-top-color: var(--lime-deep); }
.person h3 { margin-bottom: 4px; font-size: 1.15rem; }
.person__role { font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--lime-deep); font-weight: 600; }
.person p { font-size: 14.5px; color: var(--text-mute); margin: 10px 0 0; }

/* ticker */
.ticker { border-block: 1px solid var(--border); background: var(--surface); overflow: hidden; padding: 11px 0; }
.ticker__track { display: flex; gap: 42px; width: max-content; animation: slide 46s linear infinite; font-family: var(--mono); font-size: 12.5px; letter-spacing: .04em; color: var(--text-mute); }
.ticker__track > span { display: inline-flex; gap: 9px; align-items: center; white-space: nowrap; }
.ticker b { color: var(--text); font-weight: 600; }
.ticker .up { color: var(--mint); }
.ticker .down { color: var(--coral); }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker:hover .ticker__track { animation-play-state: paused; }

/* article body */
.prose { font-size: 18px; line-height: 1.72; }
.prose h2 { margin: 48px 0 14px; font-size: clamp(1.5rem, 2.6vw, 1.95rem); }
.prose h3 { margin: 34px 0 10px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 1.2em; }
.prose li { margin-bottom: 8px; }
.prose blockquote {
  margin: 30px 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--lime);
  font-family: var(--serif); font-size: 1.35rem; line-height: 1.4;
}
.prose blockquote p { margin: 0; }
.prose figure { margin: 32px 0; }
.prose figcaption { font-family: var(--mono); font-size: 12px; color: var(--text-mute); margin-top: 10px; }
.prose a:not(.btn):not(.link-arrow) { border-bottom: 1px solid var(--lime-deep); font-weight: 550; }
.prose a:not(.btn):not(.link-arrow):hover { background: var(--lime); }
.prose code { font-family: var(--mono); font-size: .88em; background: var(--surface-2); padding: 2px 6px; border-radius: 5px; }

.byline { display: flex; align-items: center; gap: 12px; font-size: 14.5px; color: var(--text-mute); }
.byline__pic { width: 38px; height: 38px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--border); display: grid; place-items: center; font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--text); flex: none; }
.byline b { color: var(--text); font-weight: 600; }

/* disclosure strip */
.disclosure {
  font-family: var(--mono); font-size: 12px; line-height: 1.6; color: var(--text-mute);
  border: 1px dashed var(--border); border-radius: var(--r-md); padding: 14px 18px;
}
.disclosure b { color: var(--text); }

/* ---------- 7. Sections ---------- */
.hero { padding: clamp(48px, 7vw, 92px) 0 clamp(36px, 5vw, 64px); position: relative; }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; } }
.hero h1 { margin: 18px 0 20px; }
.hero h1 mark { background: var(--lime); color: #12161c; padding: 0 .12em; border-radius: 6px; box-decoration-break: clone; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

.dotgrid {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(color-mix(in srgb, var(--text-mute) 30%, transparent) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 20%, #000, transparent 75%);
}

.feature {
  display: grid; grid-template-columns: 1.35fr 1fr; gap: 0; overflow: hidden;
  border: 1px solid var(--border); border-radius: var(--r-xl); background: var(--surface);
  box-shadow: var(--shadow-1);
}
.feature__body { padding: clamp(24px, 3.4vw, 40px); display: flex; flex-direction: column; gap: 16px; }
.feature__side {
  background: linear-gradient(160deg, var(--surface-2), var(--bg));
  border-left: 1px solid var(--border); padding: clamp(24px, 3vw, 34px);
  display: flex; flex-direction: column; gap: 18px; justify-content: center;
}
@media (max-width: 820px) { .feature { grid-template-columns: 1fr; } .feature__side { border-left: 0; border-top: 1px solid var(--border); } }

.band { background: var(--ink); color: #f2f0ea; border-radius: var(--r-xl); padding: clamp(30px, 5vw, 56px); }
:root[data-theme="dark"] .band { background: var(--surface-2); border: 1px solid var(--border); }
.band h2 { color: #fff; }
.band .kicker { color: var(--lime); }
.band .kicker::before { background: var(--lime); }
.band p { color: #b8bec7; }

.newsletter { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter input {
  flex: 1 1 240px; padding: 13px 16px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font: inherit; font-size: 15px;
}
.newsletter input::placeholder { color: var(--text-mute); }
.band .newsletter input { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); color: #fff; }
.band .newsletter input::placeholder { color: #8a929c; }

.crumbs { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--text-mute); padding: 22px 0 0; }
.crumbs a:hover { color: var(--text); text-decoration: underline; }

.toolbar { display: flex; gap: 8px; flex-wrap: wrap; padding: 4px 0 26px; }
.chip {
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface);
  font-size: 14px; font-weight: 550; cursor: pointer; transition: .15s; color: var(--text-mute);
}
.chip:hover { border-color: var(--text-mute); color: var(--text); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper-2); border-color: var(--ink); }
:root[data-theme="dark"] .chip[aria-pressed="true"] { background: var(--lime); color: #0d1014; border-color: var(--lime); }

/* news list */
.newsrow {
  display: grid; grid-template-columns: 120px 1fr auto; gap: 22px; align-items: baseline;
  padding: 22px 0; border-bottom: 1px solid var(--line-soft);
}
.newsrow:hover .newsrow__title { text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.newsrow__date { font-family: var(--mono); font-size: 12px; color: var(--text-mute); letter-spacing: .04em; }
.newsrow__title { font-size: 1.15rem; font-weight: 620; letter-spacing: -.02em; line-height: 1.3; }
.newsrow p { color: var(--text-mute); font-size: 15px; margin: 6px 0 0; }
@media (max-width: 700px) { .newsrow { grid-template-columns: 1fr; gap: 6px; } }

/* ---------- 8. Footer ---------- */
.footer { border-top: 1px solid var(--border); background: var(--surface); margin-top: 40px; }
.footer__top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 36px; padding: 56px 0 40px; }
@media (max-width: 860px) { .footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__top { grid-template-columns: 1fr; } }
.footer .h-label { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-mute); margin: 0 0 14px; font-weight: 600; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 15px; }
.footer ul a { color: var(--text-mute); }
.footer ul a:hover { color: var(--text); }
.footer__bottom {
  border-top: 1px solid var(--line-soft); padding: 20px 0 40px; display: flex;
  justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 11.5px; color: var(--text-mute); letter-spacing: .04em;
}

/* ---------- 9. Utilities ---------- */
.mute { color: var(--text-mute); }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-s { margin-top: 12px; } .mt-m { margin-top: 24px; } .mt-l { margin-top: 44px; }
.hide-sm { }
@media (max-width: 640px) { .hide-sm { display: none !important; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.3,1); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   10. Comparison / evidence components (added for head-to-head pieces)
   Optimised for scannability by humans AND extraction by AI answer
   engines: answer-first blocks, dense tables, explicit sourcing.
   ============================================================ */

/* answer-first block — the 40-60 word direct answer near the top */
.answer {
  border: 1px solid var(--border); border-left: 4px solid var(--lime-deep);
  background: var(--surface); border-radius: 0 var(--r-lg) var(--r-lg) 0;
  padding: 22px 26px; box-shadow: var(--shadow-1);
}
.answer__label {
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--lime-deep); font-weight: 600; display: block; margin-bottom: 8px;
}
.answer p { font-size: 1.12rem; line-height: 1.55; margin: 0; font-weight: 500; }
.answer p + p { margin-top: 10px; }

/* article meta bar */
.metabar {
  display: flex; gap: 20px; flex-wrap: wrap; align-items: center;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .05em; color: var(--text-mute);
  border-block: 1px solid var(--line-soft); padding: 12px 0; margin: 24px 0;
}
.metabar b { color: var(--text); font-weight: 600; }

/* comparison table: sticky first column, winner highlight */
table.data--compare { min-width: 640px; }
table.data--compare td:first-child, table.data--compare th:first-child {
  position: sticky; left: 0; background: var(--surface); z-index: 1;
  box-shadow: 1px 0 0 var(--line-soft);
}
table.data--compare thead th:first-child { background: var(--surface-2); }
table.data--compare tbody tr:hover td:first-child { background: var(--surface); }
.win-cell { background: color-mix(in srgb, var(--lime) 22%, transparent); font-weight: 650; }
:root[data-theme="dark"] .win-cell { background: color-mix(in srgb, var(--lime-deep) 22%, transparent); }

/* evidence cards — one published study each */
.study {
  border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface);
  padding: 18px 20px; display: grid; gap: 8px;
}
.study__head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.study__title { font-weight: 650; font-size: 15.5px; line-height: 1.35; }
.study__n { font-family: var(--mono); font-size: 12px; color: var(--text-mute); white-space: nowrap; }
.study p { font-size: 14.5px; color: var(--text-mute); margin: 0; }
.flag {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px; font-weight: 600; white-space: nowrap;
}
.flag--coi { background: var(--coral-soft); color: var(--coral); }
.flag--indep { background: #e3f7ec; color: #0d7a4d; }
:root[data-theme="dark"] .flag--indep { background: #10281e; color: #35d492; }

/* signed opinion block */
.opinion {
  border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface-2);
  padding: 26px 28px; position: relative;
}
.opinion__head { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.opinion__head .byline__pic { background: var(--ink); color: var(--lime); border-color: var(--ink); }
:root[data-theme="dark"] .opinion__head .byline__pic { background: var(--lime); color: #0d1014; border-color: var(--lime); }
.opinion h3 { font-size: 1.2rem; margin: 0; }
.opinion__role { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-mute); }
.opinion p { font-size: 16.5px; line-height: 1.65; }
.opinion p:last-child { margin-bottom: 0; }

/* "who should buy" buckets */
.picks { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
@media (max-width: 780px) { .picks { grid-template-columns: 1fr; } }
.pick { border: 1px solid var(--border); border-radius: var(--r-md); padding: 20px; background: var(--surface); }
.pick h3 { font-size: 1.08rem; margin-bottom: 8px; }
.pick ul { margin: 0; padding-left: 18px; font-size: 15px; color: var(--text-mute); }
.pick li { margin-bottom: 6px; }
.pick--a { border-top: 3px solid var(--blue); }
.pick--b { border-top: 3px solid var(--violet); }
.pick--none { border-top: 3px solid var(--coral); }

/* key stat pulled out of prose */
.keystat {
  display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center;
  border: 1px solid var(--border); border-radius: var(--r-md); padding: 20px 24px;
  background: var(--surface); margin: 28px 0;
}
.keystat__n { font-family: var(--mono); font-size: clamp(2rem, 5vw, 2.9rem); font-weight: 700; letter-spacing: -.05em; line-height: 1; color: var(--lime-deep); }
.keystat p { margin: 0; font-size: 15.5px; }
.keystat cite { display: block; font-family: var(--mono); font-size: 11.5px; font-style: normal; color: var(--text-mute); margin-top: 6px; }

/* FAQ */
.faq { border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.faq details { border-bottom: 1px solid var(--line-soft); }
.faq details:last-child { border-bottom: 0; }
.faq summary {
  cursor: pointer; padding: 18px 22px; font-weight: 600; font-size: 16.5px; list-style: none;
  display: flex; justify-content: space-between; gap: 16px; align-items: center; transition: background .15s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: var(--surface-2); }
.faq summary::after { content: "+"; font-family: var(--mono); font-size: 20px; color: var(--text-mute); flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details[open] summary { background: var(--surface-2); }
.faq__body { padding: 4px 22px 20px; font-size: 16px; color: var(--text-mute); line-height: 1.65; }
.faq__body p:last-child { margin-bottom: 0; }

/* sources */
.sources { font-size: 14.5px; }
.sources ol { padding-left: 0; list-style: none; counter-reset: src; margin: 0; }
.sources li { counter-increment: src; padding: 12px 0 12px 42px; border-bottom: 1px solid var(--line-soft); position: relative; }
.sources li:last-child { border-bottom: 0; }
.sources li::before {
  content: counter(src); position: absolute; left: 0; top: 12px;
  font-family: var(--mono); font-size: 11px; font-weight: 600; color: var(--text-mute);
  border: 1px solid var(--border); border-radius: 6px; width: 26px; height: 22px;
  display: grid; place-items: center;
}
.sources a { border-bottom: 1px solid var(--lime-deep); }
.sources .mono { color: var(--text-mute); font-size: 12px; }

/* author box */
.authorbox {
  display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start;
  border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px; background: var(--surface);
}
.authorbox .byline__pic { width: 56px; height: 56px; font-size: 17px; }
.authorbox h3 { font-size: 1.08rem; margin-bottom: 2px; }
.authorbox p { font-size: 14.5px; color: var(--text-mute); margin: 8px 0 0; }

/* jump nav / table of contents */
.toc { border: 1px solid var(--border); border-radius: var(--r-md); padding: 18px 22px; background: var(--surface-2); }
.toc .h-label { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-mute); margin: 0 0 10px; }
.toc ol { margin: 0; padding-left: 20px; font-size: 15px; display: grid; gap: 6px; }
.toc a:hover { border-bottom: 1px solid var(--lime-deep); }
