/* ==========================================================================
   Shortlist - design system
   1. Tokens      6. Cards
   2. Reset/base  7. Review page
   3. Layout      8. Home sections
   4. Header      9. Footer
   5. Hero       10. Utilities / motion / print
   ========================================================================== */

/* ---------------------------------------------------------------- 1. Tokens */
:root {
  --accent: #ff5c2e;
  --accent-ink: #c93c12;
  --accent-soft: rgba(255, 92, 46, 0.12);
  --gold: #e0a03a;
  --good: #12855a;
  --good-soft: rgba(18, 133, 90, 0.1);
  --bad: #c94040;
  --bad-soft: rgba(201, 64, 64, 0.1);

  --bg: #fbfaf7;
  --bg-alt: #f4f2ed;
  --surface: #ffffff;
  --surface-2: #f8f7f4;
  --ink: #17161c;
  --ink-2: #3b3a44;
  --muted: #6a6875;
  --line: #e6e3dc;
  --line-strong: #d5d1c8;

  --shadow-sm: 0 1px 2px rgba(23, 22, 28, 0.05), 0 1px 3px rgba(23, 22, 28, 0.04);
  --shadow-md: 0 4px 12px rgba(23, 22, 28, 0.07), 0 2px 4px rgba(23, 22, 28, 0.04);
  --shadow-lg: 0 18px 40px -12px rgba(23, 22, 28, 0.18), 0 6px 14px -8px rgba(23, 22, 28, 0.1);

  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --wrap: 1180px;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --header-h: 68px;
}

[data-theme="dark"] {
  --accent: #ff6f42;
  --accent-ink: #ff8a63;
  --accent-soft: rgba(255, 111, 66, 0.16);
  --good: #3dd68c;
  --good-soft: rgba(61, 214, 140, 0.14);
  --bad: #ff7b7b;
  --bad-soft: rgba(255, 123, 123, 0.14);

  --bg: #0f1014;
  --bg-alt: #131419;
  --surface: #181a20;
  --surface-2: #1f2129;
  --ink: #ecedf1;
  --ink-2: #c8cad3;
  --muted: #9698a6;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.17);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 50px -16px rgba(0, 0, 0, 0.7), 0 8px 18px -10px rgba(0, 0, 0, 0.5);
}

/* ------------------------------------------------------------- 2. Reset/base */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.3rem, 1.35rem + 3.6vw, 4rem); }
h2 { font-size: clamp(1.7rem, 1.2rem + 1.9vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 1rem + 0.6vw, 1.45rem); }

p { text-wrap: pretty; }

a { color: inherit; text-decoration: none; }

img, svg { display: block; max-width: 100%; }

button, input, select, textarea { font: inherit; color: inherit; }

button { cursor: pointer; background: none; border: 0; }

ul, ol { padding: 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--accent); color: #fff; }

hr { border: 0; border-top: 1px solid var(--line); }

.skip-link {
  position: absolute;
  left: 50%;
  top: -100px;
  transform: translateX(-50%);
  z-index: 200;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 18px;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  transition: top 0.18s ease;
}
.skip-link:focus { top: 0; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* -------------------------------------------------------------- 3. Layout */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2rem);
}

.section { padding-block: clamp(3.2rem, 7vw, 5.5rem); }
.section--tight { padding-block: clamp(2.2rem, 5vw, 3.4rem); }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.section-head p { color: var(--muted); max-width: 58ch; margin-top: 0.5rem; }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.grid { display: grid; gap: 1.5rem; }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }

/* -------------------------------------------------------------- 4. Header */
.announce {
  background: var(--ink);
  color: var(--bg);
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  text-align: center;
  padding: 0.55rem 1rem;
}
.announce a { text-decoration: underline; text-underline-offset: 3px; opacity: 0.85; }
.announce a:hover { opacity: 1; }
[data-theme="dark"] .announce { background: #101116; color: var(--ink-2); border-bottom: 1px solid var(--line); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
/* The frosted glass is desktop-only: backdrop-filter would make the header the
   containing block for the fixed-position mobile nav and collapse it. */
@media (min-width: 901px) {
  .site-header {
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: saturate(180%) blur(14px);
  }
}
.site-header[data-elevated="true"] { box-shadow: var(--shadow-sm); }

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-right: auto;
}
.brand__mark {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), #ffb03a);
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 4px 12px -3px color-mix(in srgb, var(--accent) 60%, transparent);
  flex: none;
}
.brand__mark svg { width: 17px; height: 17px; }

.nav { display: flex; align-items: center; gap: 0.35rem; }
.nav a {
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-2);
  transition: background 0.16s ease, color 0.16s ease;
}
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a[aria-current="page"] {
  color: var(--ink);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent);
}

.header-actions { display: flex; align-items: center; gap: 0.5rem; }

.icon-btn {
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-2);
  transition: transform 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}
.icon-btn:hover { color: var(--ink); border-color: var(--line-strong); transform: translateY(-1px); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn--plain { border-color: transparent; background: transparent; }
.icon-btn--moon, .icon-btn--sun { display: grid; place-items: center; }
[data-theme="dark"] .icon-btn--moon { display: none; }
[data-theme="light"] .icon-btn--sun { display: none; }

.menu-toggle { display: none; }

@media (max-width: 900px) {
  .menu-toggle { display: grid; }
  /* Anchored to the sticky header (top: 100%), so it lands directly beneath the
     header whether or not the announcement bar above it has scrolled away. */
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    padding: 1rem clamp(1.1rem, 4vw, 2rem) 2rem;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .nav[data-open="true"] { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav a { padding: 0.85rem 0.75rem; border-radius: var(--r-sm); font-size: 1.05rem; }
}

/* ---------------------------------------------------------------- 5. Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 8vw, 6rem) clamp(2.5rem, 6vw, 4.5rem);
}
.hero::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto -10%;
  height: 130%;
  background:
    radial-gradient(46% 60% at 12% 8%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
    radial-gradient(42% 55% at 88% 0%, rgba(255, 176, 58, 0.2), transparent 70%),
    radial-gradient(50% 50% at 50% 100%, color-mix(in srgb, var(--good) 10%, transparent), transparent 70%);
  filter: blur(6px);
  pointer-events: none;
}
.hero > .wrap { position: relative; }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 940px) { .hero__grid { grid-template-columns: 1fr; } }

.hero h1 { margin: 1rem 0 1.1rem; }
.hero h1 em {
  font-style: italic;
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent);
  text-underline-offset: 6px;
}
.hero__lede { font-size: clamp(1.05rem, 1rem + 0.4vw, 1.22rem); color: var(--muted); max-width: 56ch; }

.hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.9rem; }

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  margin-top: 2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
}
.trust-row span { display: inline-flex; align-items: center; gap: 0.45rem; }
.trust-row svg { width: 15px; height: 15px; color: var(--good); }

/* ------------------------------------------------------------- Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72rem 1.3rem;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, color 0.16s ease;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 18px -6px color-mix(in srgb, var(--accent) 70%, transparent);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -8px color-mix(in srgb, var(--accent) 75%, transparent); }
.btn--ghost { border-color: var(--line-strong); color: var(--ink); background: var(--surface); }
.btn--ghost:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--quiet { color: var(--muted); padding-inline: 0.5rem; }
.btn--quiet:hover { color: var(--accent); }
.btn--sm { padding: 0.5rem 0.95rem; font-size: 0.86rem; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--accent);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform 0.18s ease; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------------------------------------------------------- Badges/chips */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  background: var(--surface);
  color: var(--ink-2);
  border: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.badge--accent { background: var(--accent); color: #fff; border-color: transparent; }
.badge--gold { background: var(--gold); color: #2a1d05; border-color: transparent; }
.badge--good { background: var(--good-soft); color: var(--good); border-color: color-mix(in srgb, var(--good) 30%, transparent); }

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-2);
  transition: all 0.16s ease;
}
.chip:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip__count { opacity: 0.55; font-variant-numeric: tabular-nums; margin-left: 0.15rem; }

/* --------------------------------------------------------------- 6. Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s cubic-bezier(0.2, 0.7, 0.3, 1), box-shadow 0.22s ease, border-color 0.22s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }

.card__art {
  position: relative;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}
.card__art svg.card__glyph {
  width: 42%;
  height: 42%;
  color: rgba(255, 255, 255, 0.94);
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.28));
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.card:hover .card__art svg.card__glyph { transform: scale(1.07) rotate(-2deg); }
.card__art::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.35) 0 1px, transparent 1px),
    radial-gradient(circle at 78% 66%, rgba(255, 255, 255, 0.25) 0 1px, transparent 1px);
  background-size: 44px 44px, 62px 62px;
  mix-blend-mode: overlay;
  opacity: 0.8;
}
.card__art-badges {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  right: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  z-index: 2;
}

/* Category artwork palettes */
.art--audio { background: linear-gradient(140deg, #6d5efc, #a855f7 45%, #ec4899); }
.art--kitchen { background: linear-gradient(140deg, #f97316, #f43f5e 55%, #b91c1c); }
.art--smart-home { background: linear-gradient(140deg, #0891b2, #0ea5e9 45%, #6366f1); }
.art--computing { background: linear-gradient(140deg, #1e293b, #475569 50%, #0f766e); }
.art--fitness { background: linear-gradient(140deg, #059669, #84cc16 60%, #eab308); }
.art--sleep { background: linear-gradient(140deg, #4338ca, #7c3aed 45%, #2dd4bf); }

.card__body { padding: 1.15rem 1.25rem 1.35rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.card__meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.card__meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: 0.6; }
.card__title { font-size: 1.16rem; }
.card__title a:hover { color: var(--accent); }
.card__tagline { font-size: 0.92rem; color: var(--muted); flex: 1; }
.card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.score-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3rem;
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.score-pill b { font-size: 1.25rem; }
.score-pill span { font-size: 0.72rem; color: var(--muted); font-weight: 600; }

.score-chip {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  font-variant-numeric: tabular-nums;
  flex: none;
  box-shadow: var(--shadow-sm);
}
.score-chip[data-band="high"] { background: var(--good); }
.score-chip[data-band="mid"] { background: var(--gold); color: #2a1d05; }
.score-chip[data-band="low"] { background: var(--bad); }

.stars { display: inline-flex; gap: 1px; color: var(--gold); }
.stars svg { width: 15px; height: 15px; }
.stars .empty { opacity: 0.25; }

/* Compact horizontal card (list rows) */
.card--row { flex-direction: row; align-items: stretch; }
.card--row .card__art { aspect-ratio: auto; width: 190px; flex: none; }
.card--row .card__body { padding: 1.2rem 1.4rem; }
@media (max-width: 640px) {
  .card--row { flex-direction: column; }
  .card--row .card__art { width: 100%; aspect-ratio: 16 / 8; }
}

/* ---------------------------------------------------------- Toolbar/filter */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: calc(var(--header-h) + 10px);
  z-index: 40;
}
.field {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  flex: 1 1 240px;
  min-width: 0;
}
.field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field svg { width: 17px; height: 17px; color: var(--muted); flex: none; }
.field input {
  border: 0;
  background: none;
  outline: none;
  width: 100%;
  min-width: 0;
  font-size: 0.94rem;
}
.field input::placeholder { color: var(--muted); }

.select {
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
}

.toolbar__row { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.result-count { font-size: 0.88rem; color: var(--muted); margin-left: auto; white-space: nowrap; }

/* Quick search dropdown */
.quicksearch { position: relative; flex: 1 1 260px; }
.quicksearch__results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  z-index: 60;
  max-height: min(60vh, 420px);
  overflow-y: auto;
}
.quicksearch__results[hidden] { display: none; }
.qs-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  width: 100%;
}
.qs-item:last-child { border-bottom: 0; }
.qs-item:hover, .qs-item[data-active="true"] { background: var(--surface-2); }
.qs-item__swatch { width: 34px; height: 34px; border-radius: 9px; flex: none; }
.qs-item__text { min-width: 0; }
.qs-item__text strong { display: block; font-size: 0.92rem; font-weight: 600; }
.qs-item__text span { font-size: 0.78rem; color: var(--muted); }
.qs-empty { padding: 1rem; font-size: 0.9rem; color: var(--muted); }

/* ----------------------------------------------------------- 7. Review page */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.84rem;
  color: var(--muted);
  padding-block: 1.5rem 0;
}
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs svg { width: 13px; height: 13px; opacity: 0.5; }

.review-hero { padding-bottom: clamp(2rem, 5vw, 3rem); }
.review-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.85fr);
  gap: clamp(1.6rem, 4vw, 3rem);
  align-items: start;
}
@media (max-width: 960px) { .review-hero__grid { grid-template-columns: 1fr; } }

.review-hero h1 { margin: 0.7rem 0 0.9rem; }

.review-hero__art {
  aspect-ratio: 16 / 9;
  border-radius: var(--r-lg);
  display: grid;
  place-items: center;
  margin-bottom: 1.6rem;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-md);
}
.review-hero__art svg { width: 34%; height: 34%; color: rgba(255, 255, 255, 0.95); filter: drop-shadow(0 8px 22px rgba(0, 0, 0, 0.3)); }

.byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.86rem;
  color: var(--muted);
}
.avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #ffb03a);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.8rem;
  flex: none;
}

/* Score panel */
.score-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: calc(var(--header-h) + 16px);
}
.score-panel__top { display: flex; align-items: center; gap: 1.1rem; }
.score-ring {
  width: 88px; height: 88px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--ring-color) calc(var(--pct) * 1%), var(--surface-2) 0);
  position: relative;
}
.score-ring::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: var(--surface);
}
.score-ring b {
  position: relative;
  z-index: 1;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.score-ring b i { font-style: normal; font-size: 0.72rem; color: var(--muted); font-weight: 600; }
.score-panel__label { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; line-height: 1.25; }
.score-panel__sub { font-size: 0.82rem; color: var(--muted); margin-top: 0.35rem; }

.score-bars { margin: 1.4rem 0 0; padding: 1.2rem 0 0; border-top: 1px solid var(--line); display: grid; gap: 0.85rem; }
.score-bar { display: grid; gap: 0.35rem; }
.score-bar__head { display: flex; justify-content: space-between; font-size: 0.84rem; }
.score-bar__head b { font-variant-numeric: tabular-nums; font-weight: 700; }
.score-bar__track { height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.score-bar__fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent), #ffb03a); }

.score-panel__actions { margin-top: 1.3rem; display: grid; gap: 0.6rem; }
.price-tag {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--muted);
  padding-bottom: 0.9rem;
  margin-bottom: 0.3rem;
  border-bottom: 1px dashed var(--line);
}
.price-tag b { font-size: 1.5rem; color: var(--ink); letter-spacing: -0.02em; font-weight: 700; }

/* Pros / cons / verdict */
.callout {
  border-radius: var(--r-md);
  padding: 1.3rem 1.4rem;
  border: 1px solid var(--line);
  background: var(--surface);
}
.callout--verdict {
  border-left: 3px solid var(--accent);
  background: linear-gradient(90deg, var(--accent-soft), transparent 60%);
  font-size: 1.08rem;
}
.callout--verdict strong { font-family: var(--font-display); }
.callout h3 { margin-bottom: 0.75rem; font-size: 1rem; font-family: var(--font-sans); font-weight: 700; letter-spacing: 0.02em; }
.callout--pros { border-top: 3px solid var(--good); }
.callout--cons { border-top: 3px solid var(--bad); }

.checklist { list-style: none; display: grid; gap: 0.65rem; }
.checklist li { display: flex; gap: 0.7rem; font-size: 0.94rem; align-items: flex-start; }
.checklist svg { width: 17px; height: 17px; flex: none; margin-top: 0.25rem; }
.callout--pros .checklist svg { color: var(--good); }
.callout--cons .checklist svg { color: var(--bad); }

/* Prose */
.prose { max-width: 68ch; }
.prose h2 { margin: 2.4rem 0 0.8rem; }
.prose h3 { margin: 1.8rem 0 0.6rem; }
.prose p { margin-bottom: 1.05rem; color: var(--ink-2); font-size: 1.03rem; }
.prose > :first-child { margin-top: 0; }
.prose .dropcap::first-letter {
  font-family: var(--font-display);
  float: left;
  font-size: 3.4rem;
  line-height: 0.82;
  padding: 0.14em 0.1em 0 0;
  color: var(--accent);
  font-weight: 600;
}
.pull {
  margin: 2rem 0;
  padding-left: 1.4rem;
  border-left: 3px solid var(--accent);
  font-family: var(--font-display);
  font-size: 1.28rem;
  line-height: 1.45;
  color: var(--ink);
}

/* Spec table */
.spec-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.spec-table caption { text-align: left; font-weight: 700; padding-bottom: 0.7rem; }
.spec-table th, .spec-table td { padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--line); text-align: left; }
.spec-table th { color: var(--muted); font-weight: 500; width: 42%; }
.spec-table td { font-weight: 600; font-variant-numeric: tabular-nums; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-table tbody tr:hover { background: var(--surface-2); }

/* Alternatives */
.alt-card { display: flex; gap: 1rem; align-items: center; padding: 1rem; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); transition: all 0.18s ease; }
.alt-card:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.alt-card__art { width: 56px; height: 56px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.alt-card__art svg { width: 26px; height: 26px; color: #fff; }
.alt-card strong { display: block; font-size: 0.95rem; }
.alt-card span { font-size: 0.8rem; color: var(--muted); }

.toc {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  font-size: 0.88rem;
}
.toc ol { list-style: none; display: grid; gap: 0.1rem; counter-reset: t; }
.toc a { display: block; padding: 0.35rem 0.7rem; border-left: 2px solid var(--line); color: var(--muted); }
.toc a:hover { color: var(--ink); border-color: var(--accent); background: var(--surface-2); }

/* --------------------------------------------------------- 8. Home sections */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.stat {
  background: var(--surface);
  padding: 1.2rem 1.3rem;
}
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.15rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat span { font-size: 0.82rem; color: var(--muted); display: block; margin-top: 0.45rem; }

.cat-card {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  min-height: 168px;
}
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.cat-card__icon { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; color: #fff; }
.cat-card__icon svg { width: 21px; height: 21px; }
.cat-card strong { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; }
.cat-card p { font-size: 0.86rem; color: var(--muted); flex: 1; }
.cat-card span.count { font-size: 0.78rem; font-weight: 700; color: var(--accent); letter-spacing: 0.04em; text-transform: uppercase; }

.steps { counter-reset: step; display: grid; gap: 1.1rem; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; align-items: start; }
.step__num {
  counter-increment: step;
  width: 40px; height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.95rem;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-variant-numeric: tabular-nums;
}
.step__num::before { content: "0" counter(step); }
.step h3 { font-size: 1.08rem; margin-bottom: 0.3rem; }
.step p { font-size: 0.92rem; color: var(--muted); }

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.4rem, 3vw, 2.2rem);
  box-shadow: var(--shadow-sm);
}

.newsletter {
  border-radius: var(--r-lg);
  padding: clamp(1.8rem, 4vw, 3rem);
  background:
    radial-gradient(80% 140% at 100% 0%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 65%),
    var(--surface);
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
  gap: 2rem;
  align-items: center;
}
@media (max-width: 780px) { .newsletter { grid-template-columns: 1fr; } }
.newsletter h2 { margin-bottom: 0.6rem; }
.newsletter p { color: var(--muted); max-width: 46ch; }
.newsletter form { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.newsletter input[type="email"] {
  flex: 1 1 200px;
  padding: 0.78rem 1.05rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  outline: none;
}
.newsletter input[type="email"]:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.form-note { font-size: 0.78rem; color: var(--muted); margin-top: 0.7rem; }
.form-status { font-size: 0.86rem; font-weight: 600; margin-top: 0.6rem; display: none; }
.form-status[data-state="ok"] { display: block; color: var(--good); }
.form-status[data-state="err"] { display: block; color: var(--bad); }

/* --------------------------------------------------------------- 9. Footer */
.site-footer {
  margin-top: auto;
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  padding-block: clamp(2.5rem, 5vw, 3.6rem) 1.6rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(auto-fit, minmax(140px, 1fr));
  gap: 2rem;
  margin-bottom: 2.4rem;
}
.footer-grid p { font-size: 0.9rem; color: var(--muted); max-width: 34ch; margin-top: 0.9rem; }
.footer-col h3 {
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.9rem;
}
.footer-col ul { list-style: none; display: grid; gap: 0.55rem; font-size: 0.9rem; }
.footer-col a { color: var(--ink-2); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--muted);
}
.disclosure {
  font-size: 0.78rem;
  color: var(--muted);
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-sm);
  padding: 0.7rem 0.9rem;
  margin-top: 1.2rem;
}

/* --------------------------------------------------------- 10. Utilities */
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.6rem; }
.mt-2 { margin-top: 1.2rem; }
.mt-3 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1.2rem; }
.text-muted { color: var(--muted); }
.text-center { text-align: center; }
.stack { display: grid; gap: 1.2rem; }
.row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.center-x { display: flex; justify-content: center; }

/* Scroll reveals are opt-in: without JS the content is simply visible. */
html.js .reveal { opacity: 0; transform: translateY(18px); }
html.js .reveal[data-shown="true"] {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  html.js .reveal { opacity: 1; transform: none; }
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 20px);
  background: var(--ink);
  color: var(--bg);
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  z-index: 300;
  max-width: calc(100vw - 2rem);
  text-align: center;
}
.toast[data-show="true"] { opacity: 1; transform: translate(-50%, 0); }

.empty-state {
  text-align: center;
  padding: 3.5rem 1rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-lg);
  color: var(--muted);
}
.empty-state svg { width: 34px; height: 34px; margin: 0 auto 0.9rem; opacity: 0.5; }

.noscript { padding: 2rem; text-align: center; }

@media print {
  .site-header, .announce, .site-footer, .score-panel__actions, .newsletter, .toast { display: none !important; }
  body { background: #fff; }
  .card, .panel, .callout { box-shadow: none; }
}
/* Review page body + table-of-contents split */
.review-body__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 232px;
  gap: clamp(1.6rem, 4vw, 3.5rem);
  align-items: start;
}
@media (max-width: 900px) {
  .review-body__grid { grid-template-columns: 1fr; }
  .review-body__grid > div:last-child { order: -1; }
  .toc { position: static; }
  .toc ol { display: flex; flex-wrap: wrap; gap: 0.4rem; }
  .toc a { border-left: 0; border: 1px solid var(--line); border-radius: 999px; padding: 0.3rem 0.75rem; }
}

/* Inner page titles: one h1 per page, sized below the homepage hero. */
h1.page-title {
  font-size: clamp(2rem, 1.3rem + 2.4vw, 3rem);
  margin-top: 0.6rem;
}
