/* ============================================================
   PriceWatch NZ — design system v4 · AAA+++ STUDIO PREMIUM
   Mobile-first. Every breakpoint is min-width.

   IDENTITY B "Studio Instrument" REFERENCE STANDARD.
   Spec: _plans/AAA-PLUS-STUDIO-PREMIUM.md §2.2 / §2.2b / §3 / §4.
   This site is site-local (work order: SL) — apply.mjs never touches it — so
   the Identity B token diff is ported BY HAND from _shared/styles.css and the
   canonical token NAMES are declared here so the two files cannot drift. The
   site's own historical names (--r*, --e*) are kept as aliases pointing at the
   canonical tokens, which is why 246 product pages keep rendering unchanged.

   Elevation doctrine: exactly ONE lift shadow (--shadow), spent on the one
   object per page that asks for action (the price box). --shadow-lg is for
   popovers only. Dark mode has no decorative shadow at all — elevation there
   is a surface step plus a hairline.
   ============================================================ */

:root {
  /* ink */
  --ink:        #0A0F1C;
  --ink-2:      #3A465C;
  --muted:      #6B7789;

  /* surfaces */
  --paper:      #FBFBF9;
  --surface:    #FFFFFF;
  --surface-2:  #F6F7F5;
  --tint:       #F2F3F0;
  --line:       #E6E7E1;
  --line-soft:  #EFF0EB;
  --line-2:     #CFD2C9;

  /* brand */
  --accent:     #0E7A5F;
  --accent-hi:  #0A6B52;
  --accent-lo:  #34D399;
  --accent-soft:#ECFAF4;
  --accent-2:   var(--accent-hi);
  --accent-line:#B7E2D2;
  --deal:       #E4572E;
  --deal-soft:  #FDF1EC;
  --warn:       #92400E;
  --violet:     #6366F1;

  /* elevation — §2.2b. The four-step ramp was the loudest "free template"
     tell in the system; one lift shadow reads engineered. */
  --shadow-xs: none;
  --shadow-sm: none;
  --shadow:    0 1px 0 rgba(10, 16, 32, .04), 0 16px 36px -24px rgba(10, 16, 32, .22);
  --shadow-lg: 0 18px 44px -22px rgba(10, 16, 32, .24);   /* popovers/menus only */
  --e1: var(--shadow-xs);
  --e2: var(--shadow-sm);
  --e3: var(--shadow);
  --e4: var(--shadow-lg);
  --ring: 0 0 0 1px rgba(10,15,28,.06);
  --glow: none;

  /* radii — §2.2b. 14-18px pill radii read as a template; 8-14px reads as an
     instrument. border-radius affects no layout, so CLS stays 0.00. */
  --radius-sm: 8px;
  --radius:    10px;
  --radius-lg: 14px;
  --r-xs: 6px;
  --r-sm: var(--radius-sm);
  --r:    var(--radius);
  --r-lg: var(--radius-lg);

  --wrap: 1180px;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --display: "Sora", var(--sans);
  /* The third voice. System stack FIRST and no font <link> anywhere: naming a
     webfont first here is how the mono register silently fell through to
     whatever the OS picked on the rest of the network. Zero new requests. */
  --mono: ui-monospace, SFMono-Regular, "SF Mono", "Cascadia Code", Consolas, Menlo, monospace;

  /* ---- §2.2 additions (additive; nothing above renamed) ---- */
  --t-fast: 140ms;
  --t-med:  220ms;
  --ease: cubic-bezier(.16,1,.3,1);
  --ease-out: cubic-bezier(0.25, 1, 0.4, 1);
  --ink-num: var(--ink);        /* result numerals; lets site-local retint */
  --surface-sunken: #eef1f6;    /* input wells — never --surface-2 */
  --fs-mono: .8125rem;
  --track-label: .11em;
}

:root[data-theme="dark"] {
  --ink:        #EEF2F8;
  --ink-2:      #B8C3D2;
  --muted:      #8794A8;

  --paper:      #070B14;
  --surface:    #101725;
  --surface-2:  #161E2E;
  --tint:       #0C1320;
  --line:       #222D42;
  --line-soft:  #1B2537;
  --line-2:     #33405C;

  --accent:     #34D399;
  --accent-hi:  #6EE7B7;
  --accent-lo:  #10B981;
  --accent-soft:#0C2620;
  --accent-2:   var(--accent-hi);
  --accent-line:#1C4B3C;
  --deal:       #FB7A55;
  --deal-soft:  #2A1710;
  --warn:       #FCD34D;
  --violet:     #818CF8;

  /* Dark elevation is a surface step plus a hairline, never a shadow. The only
     survivor is --shadow-lg, and only for popovers (nav drawer, command
     palette, mega menu) where the layer really does leave the page. */
  --shadow-xs: none;
  --shadow-sm: none;
  --shadow:    none;
  --shadow-lg: 0 22px 56px -28px rgba(0, 0, 0, .9);
  --ring: 0 0 0 1px rgba(255,255,255,.06);
  --glow: none;
  --surface-sunken: #0b111d;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 16px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden; position: relative;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1,h2,h3,h4 { font-family: var(--display); line-height: 1.1; letter-spacing: -.03em; margin: 0; text-wrap: balance; }
p { margin: 0 0 1rem; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: #fff; }

/* The ambient "aurora" (three 44-52vw radial blobs behind the page at
   filter: blur(90px)) was removed in the AAA+++ pass. Identity B instruments
   are smooth and unlit — §3.5 gives paper grain to Identity A only, and that
   difference is itself a brand cue. It also cost three composited full-viewport
   layers on every scroll frame for zero information. Its markup is gone from
   lib/layout.mjs; do not reintroduce either half. */

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 800px; }
.section { padding: 64px 0; position: relative; }
.section-tint { background: var(--tint); border-block: 1px solid var(--line-soft); }
.sec { font-size: clamp(1.45rem, 3.6vw, 2.05rem); margin: 0 0 10px; }
.sec-note { color: var(--muted); margin: 0 0 32px; font-size: .95rem; max-width: 60ch; line-height: 1.6; }
.h1 { font-size: clamp(1.95rem, 6vw, 3.1rem); font-weight: 800; margin: 0 0 14px; }
.lead { font-size: clamp(1.04rem, 2.4vw, 1.2rem); color: var(--ink-2); max-width: 60ch; line-height: 1.62; text-wrap: pretty; }
.fineprint { font-size: .85rem; color: var(--muted); }

/* ---------- pre-launch banner ---------- */
.prelaunch {
  position: relative; z-index: 60;
  background: linear-gradient(90deg, var(--deal-soft), var(--surface));
  color: var(--warn); border-bottom: 1px solid var(--line);
  padding: 9px 20px; font-size: .84rem; text-align: center; line-height: 1.5;
  display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap;
}
.prelaunch a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.pl-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--deal); flex: none; animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.8); } }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.head-in { display: flex; align-items: center; gap: 14px; height: 62px; }
.logo {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--display); font-weight: 800; font-size: 1.16rem;
  color: var(--ink); letter-spacing: -.035em; margin-right: auto; white-space: nowrap;
}
.logo:hover { text-decoration: none; }
.logo b { color: var(--accent); }
.logo .nz { font-size: .58em; font-weight: 700; vertical-align: super; color: var(--muted); margin-left: 2px; letter-spacing: .08em; }
.logo-mark {
  width: 26px; height: 26px; border-radius: 9px; flex: none;
  background: linear-gradient(140deg, var(--accent-lo), var(--accent) 55%, var(--accent-hi));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35);
  position: relative;
}
.logo-mark::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(140deg, transparent 40%, rgba(255,255,255,.28));
  border-radius: inherit;
}
.logo-sm { font-size: 1.02rem; }

.head-actions { display: flex; align-items: center; gap: 7px; flex: none; }
.icon-btn {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm);
  width: 44px; height: 44px; display: grid; place-content: center; gap: 4px;
  cursor: pointer; color: var(--ink); padding: 0; box-shadow: var(--e1);
  transition: transform .16s var(--ease), border-color .16s, background .16s;
}
.icon-btn:hover { transform: translateY(-1px); border-color: var(--accent); }
.icon-btn:active { transform: translateY(0); }
.nav-toggle span { display: block; width: 16px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .22s var(--ease), opacity .16s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

[data-theme] .i-sun { display: none; }
:root[data-theme="dark"] .i-moon { display: none; }
:root[data-theme="dark"] .i-sun { display: block; }
:root:not([data-theme]) .i-sun { display: none; }

/* nav — mobile drawer */
.nav {
  position: fixed; inset: 62px 0 auto; background: var(--surface);
  border-bottom: 1px solid var(--line); display: none; flex-direction: column;
  padding: 10px 20px 20px; box-shadow: var(--e4);
  max-height: calc(100dvh - 62px); overflow-y: auto;
}
.nav.open { display: flex; animation: drop .28s var(--ease); }
@keyframes drop { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
.nav-group { border-bottom: 1px solid var(--line-soft); }
.nav-trigger {
  width: 100%; background: none; border: 0; color: var(--ink);
  font: 600 1rem var(--sans); padding: 14px 0; display: flex; align-items: center;
  justify-content: space-between; cursor: pointer; text-align: left;
}
.nav-trigger svg { transition: transform .24s var(--ease); opacity: .5; }
.nav-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.mega { display: none; padding-bottom: 8px; }
.nav-trigger[aria-expanded="true"] + .mega { display: block; }
.mega-item { display: block; padding: 9px 0 9px 14px; border-left: 2px solid var(--line); color: var(--ink-2); }
.mega-item:hover { text-decoration: none; border-left-color: var(--accent); color: var(--ink); }
.mega-name { display: block; font-weight: 600; font-size: .94rem; }
.mega-blurb { display: none; }
.nav-flat { padding: 14px 0; font-weight: 600; color: var(--ink); }
.nav-deals { color: var(--deal) !important; }

/* ---------- command palette search ---------- */
.cmd {
  position: fixed; inset: 0; z-index: 90; background: rgba(10,15,28,.42);
  backdrop-filter: blur(6px); padding: 14vh 20px 20px; display: flex; justify-content: center;
  animation: fade .18s var(--ease);
}
.cmd[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.cmd-panel {
  width: 100%; max-width: 620px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--e4); overflow: hidden; height: max-content;
  animation: rise .32s var(--ease);
}
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.cmd-bar { display: flex; align-items: center; gap: 11px; padding: 15px 18px; border-bottom: 1px solid var(--line-soft); color: var(--muted); }
.cmd-bar input { flex: 1; border: 0; background: none; font: 500 1.02rem var(--sans); color: var(--ink); outline: none; min-width: 0; }
.cmd-bar kbd {
  font: 600 .68rem var(--sans); background: var(--tint); border: 1px solid var(--line);
  border-radius: 6px; padding: 3px 6px; color: var(--muted); flex: none;
}
.cmd-out { max-height: 56vh; overflow-y: auto; }
.cmd-out a {
  display: flex; align-items: center; gap: 12px; padding: 12px 18px; color: var(--ink);
  border-bottom: 1px solid var(--line-soft);
}
.cmd-out a:last-child { border-bottom: 0; }
.cmd-out a:hover, .cmd-out a.on { background: var(--accent-soft); text-decoration: none; }
.cmd-n { flex: 1; min-width: 0; }
.cmd-n b { display: block; font-weight: 600; font-size: .95rem; }
.cmd-n span { display: block; font-size: .78rem; color: var(--muted); }
.cmd-p { font-family: var(--display); font-weight: 700; font-variant-numeric: tabular-nums; color: var(--accent); flex: none; }
.cmd-p.rrp { color: var(--muted); font-size: .84rem; font-weight: 600; }
.cmd-empty { padding: 24px 18px; color: var(--muted); font-size: .92rem; text-align: center; }

/* ---------- hero ---------- */
.hero { padding: 60px 0 52px; position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .74rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 18px; padding: 0;
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: var(--accent); display: inline-block; }
.hero h1 { font-size: clamp(2.3rem, 8.6vw, 4.4rem); font-weight: 800; margin: 0 0 20px; letter-spacing: -.042em; line-height: 1.03; max-width: 16ch; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { margin-bottom: 26px; }

.hero-search {
  display: flex; align-items: center; gap: 12px; width: 100%; max-width: 520px;
  padding: 15px 18px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--e3); color: var(--muted);
  cursor: text; text-align: left; font: 400 1rem var(--sans);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s;
}
.hero-search:hover { border-color: var(--accent); }
.hero-search span { flex: 1; }
.hero-search kbd { font: 600 .7rem var(--sans); background: var(--tint); border: 1px solid var(--line); border-radius: 6px; padding: 3px 7px; }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 30px; max-width: 560px; }
.stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 14px 16px; box-shadow: var(--e1);
}
.stat b { display: block; font-family: var(--display); font-size: 1.5rem; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.stat span { font-size: .78rem; color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 46px; padding: 0 20px; border-radius: var(--r-sm);
  font: 600 .95rem var(--sans); cursor: pointer; border: 1px solid transparent;
  transition: transform .16s var(--ease), box-shadow .16s var(--ease), background .16s;
  white-space: nowrap; position: relative;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
/* Buttons are furniture, not floating objects: an inset top highlight is the
   whole of their elevation. (These lists must not interpolate var(--e*) any
   more — those tokens now resolve to `none`, and `box-shadow: none, inset …`
   is invalid CSS that drops the entire declaration.) */
.btn-primary {
  background: linear-gradient(180deg, var(--accent-lo), var(--accent));
  color: #04231A; box-shadow: inset 0 1px 0 rgba(255,255,255,.3);
}
.btn-primary:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.3); }
:root:not([data-theme="dark"]) .btn-primary { background: linear-gradient(180deg, var(--accent), var(--accent-hi)); color: #fff; }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: none; }
.btn-ghost:hover { border-color: var(--accent); box-shadow: none; }

/* ---------- badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px; font-size: .73rem; font-weight: 600;
  padding: 4px 10px; border-radius: 999px;
}
.badge-ncp { background: var(--accent-soft); color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent); }
.badge-ncp:hover { text-decoration: none; background: color-mix(in srgb, var(--accent) 14%, transparent); }
.dot-ncp { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; box-shadow: 0 0 0 3px var(--accent-soft); }

/* ---------- category bento ---------- */
.grp { margin-bottom: 34px; }
.grp-h {
  display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px;
  font-family: var(--display); font-weight: 700; font-size: 1.02rem;
}
.grp-h::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }
.grp-h small { font-weight: 500; color: var(--muted); font-size: .8rem; font-family: var(--sans); }

.cat-grid { display: grid; grid-template-columns: 1fr; gap: 11px; }
.cat {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 18px; color: var(--ink); display: block; box-shadow: var(--e1);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .2s;
}
.cat::before {
  content: ""; position: absolute; inset: 0; opacity: 0;
  background: radial-gradient(420px circle at var(--mx,50%) var(--my,50%), color-mix(in srgb, var(--accent) 12%, transparent), transparent 42%);
  transition: opacity .3s; pointer-events: none;
}
.cat:hover { text-decoration: none; border-color: color-mix(in srgb, var(--accent) 32%, transparent); transform: translateY(-3px); box-shadow: var(--e3); }
.cat:hover::before { opacity: 1; }
.cat-name { font-family: var(--display); font-weight: 700; font-size: 1.04rem; display: block; }
.cat-count { font-size: .78rem; color: var(--accent); font-weight: 600; }
.cat-blurb { display: block; font-size: .86rem; color: var(--muted); margin-top: 7px; line-height: 1.55; }

.est { display: block; font-size: .76rem; color: var(--muted); margin-top: 2px; }

/* ---------- filter + sort toolbar ---------- */
.tools { margin: 0 0 20px; }
.tools-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 13px; }
.tools-sort { display: flex; align-items: center; gap: 9px; font-size: .88rem; color: var(--muted); font-weight: 500; }
.tools-sort select {
  font: 500 .9rem var(--sans); color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-sm); padding: 9px 12px;
  min-height: 42px; cursor: pointer; box-shadow: var(--e1);
}
.tools-sort select:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.tools-count { margin-left: auto; font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; }

.chips { display: flex; gap: 7px; flex-wrap: wrap; }
.chip {
  font: 500 .82rem var(--sans); color: var(--ink-2); background: var(--surface);
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px;
  cursor: pointer; min-height: 36px; transition: border-color .16s, background .16s, color .16s, transform .16s var(--ease);
}
.chip:hover { border-color: var(--accent); transform: translateY(-1px); }
.chip.on { background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 600; }
:root[data-theme="dark"] .chip.on { color: #04231A; }

.no-hits { color: var(--muted); text-align: center; padding: 40px 0; font-size: .95rem; }
.card[hidden] { display: none; }

/* ---------- product cards ---------- */
.grid { display: grid; grid-template-columns: 1fr; gap: 13px; }
.card {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 18px; color: var(--ink); display: flex; flex-direction: column;
  box-shadow: var(--e1);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .2s;
}
.card::before {
  content: ""; position: absolute; inset: 0; opacity: 0; pointer-events: none;
  background: radial-gradient(400px circle at var(--mx,50%) var(--my,50%), color-mix(in srgb, var(--accent) 11%, transparent), transparent 44%);
  transition: opacity .3s;
}
.card:hover { text-decoration: none; border-color: color-mix(in srgb, var(--accent) 32%, transparent); transform: translateY(-3px); box-shadow: var(--e3); }
.card:hover::before { opacity: 1; }
.card-top { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.card-brand { font-size: .71rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.card-name { font-size: 1.02rem; font-weight: 700; margin: 0 0 7px; letter-spacing: -.02em; }
.card-blurb { font-size: .87rem; color: var(--muted); margin: 0 0 15px; flex: 1; line-height: 1.58; }
.card-foot { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; padding-top: 13px; border-top: 1px solid var(--line-soft); }
.card-price { font-family: var(--display); font-weight: 800; font-size: 1.34rem; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.card-rrp { color: var(--muted); font-weight: 700; }
.card-note { font-size: .74rem; color: var(--muted); }
.card-save { margin-left: auto; background: var(--deal-soft); color: var(--deal); font-size: .74rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; }

/* ---------- price box ---------- */
.pricebox {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; margin: 22px 0 36px; box-shadow: var(--e3);
}
.pb-head {
  padding: 26px; border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, var(--accent-soft), var(--surface) 72%);
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.pb-best { display: flex; flex-direction: column; }
.pb-label { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.pb-amt { font-family: var(--display); font-weight: 800; font-size: clamp(2.3rem, 7.4vw, 3.2rem); font-variant-numeric: tabular-nums; line-height: 1.04; letter-spacing: -.045em; margin: 2px 0 4px; }
.pb-at { font-size: .9rem; color: var(--ink-2); }
.pb-save {
  margin-left: auto; background: linear-gradient(180deg, var(--deal), color-mix(in srgb, var(--deal) 80%, #000));
  color: #fff; font-weight: 700; font-size: .82rem; padding: 7px 13px; border-radius: 999px;
  box-shadow: var(--e2);
}
.pb-foot { padding: 15px 22px; margin: 0; font-size: .79rem; color: var(--muted); border-top: 1px solid var(--line-soft); line-height: 1.6; }

.pr-list { list-style: none; margin: 0; padding: 0; }
.pr-head { display: none; }
.pr {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 12px;
  padding: 16px 22px; border-bottom: 1px solid var(--line-soft); align-items: center;
  transition: background .18s;
}
.pr:last-child { border-bottom: 0; }
.pr:hover { background: var(--surface-2); }
.pr-best { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.pr-best:hover { background: var(--accent-soft); }
.pr-store { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pr-name { font-weight: 600; }
.pr-tag {
  font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em;
  background: var(--accent); color: #fff; padding: 2px 8px; border-radius: 999px;
}
:root[data-theme="dark"] .pr-tag { color: #04231A; }
.pr-stock { font-size: .77rem; }
.pr-stock.in { color: var(--accent); }
.pr-stock.out { color: var(--muted); }
.pr-price { grid-column: 1; display: flex; flex-direction: column; }
.pr-amt { font-family: var(--display); font-weight: 700; font-size: 1.32rem; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.pr-diff { font-size: .77rem; color: var(--muted); }
.pr-when { font-size: .73rem; color: var(--muted); }
.pr-when.stale { color: var(--warn); }
.pr-go { grid-column: 2; grid-row: 1 / span 2; }
.pr-go .btn { min-width: 118px; }

.pricebox-empty { padding: 26px 22px; }
.pb-empty-h { font-family: var(--display); font-weight: 700; font-size: 1.12rem; margin: 0 0 9px; }
.pb-empty-p { color: var(--ink-2); font-size: .95rem; margin-bottom: 20px; }

/* ---------- history chart ---------- */
.hist { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; margin-bottom: 34px; box-shadow: var(--e1); }
.hist-svg { width: 100%; height: 200px; }
.hist-line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.hist-axis { stroke: var(--line); stroke-width: 1; }
.hist-rrp { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 4 4; opacity: .65; }
.hist-dot { fill: var(--accent); stroke: var(--surface); stroke-width: 3; }
.hist-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .79rem; color: var(--muted); margin-top: 12px; align-items: center; }
.hist-legend i { display: inline-block; width: 16px; height: 2px; margin-right: 6px; vertical-align: middle; }
.k-line { background: var(--accent); }
.k-rrp { background: var(--muted); }
.hist-low { margin-left: auto; font-weight: 600; color: var(--accent); }
.hist-empty { background: var(--surface-2); border: 1px dashed var(--line); border-radius: var(--r); padding: 26px; margin-bottom: 34px; }
.hist-empty p { margin: 0; color: var(--muted); font-size: .92rem; }

/* ---------- spec + pros/cons ---------- */
.spec-wrap, .vs-wrap {
  overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 30px;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: var(--e1);
}
.spec, .vs { width: 100%; border-collapse: collapse; font-size: .93rem; }
.spec th, .spec td, .vs th, .vs td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.spec tr:last-child th, .spec tr:last-child td, .vs tr:last-child td, .vs tr:last-child th { border-bottom: 0; }
.spec th[scope="row"], .vs th[scope="row"] { font-weight: 600; color: var(--muted); width: 38%; font-family: var(--sans); }
.vs { min-width: 580px; }
.vs thead th { font-family: var(--display); font-weight: 700; background: var(--surface-2); font-size: .95rem; position: sticky; top: 0; }
.vs td.win { background: var(--accent-soft); font-weight: 600; }
.vs .tick { color: var(--accent); font-weight: 800; margin-left: 6px; }

.pc-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 34px; }
.pc { border: 1px solid var(--line); border-radius: var(--r); padding: 20px; background: var(--surface); box-shadow: var(--e1); }
.pc h3 { font-size: 1rem; margin: 0 0 11px; display: flex; align-items: center; gap: 7px; }
.pc ul { margin: 0; padding-left: 18px; font-size: .92rem; color: var(--ink-2); }
.pc li { margin-bottom: 7px; }
.pc-pro { border-top: 3px solid var(--accent); }
.pc-pro h3 { color: var(--accent); }
.pc-con { border-top: 3px solid var(--deal); }
.pc-con h3 { color: var(--deal); }

/* ---------- product layout ---------- */
.p-grid { display: grid; grid-template-columns: 1fr; gap: 26px; }
.p-title { margin-bottom: 10px; }
.p-brand { font-size: .76rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin-right: 8px; }
.p-brand a { color: var(--muted); }
.side-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; box-shadow: var(--e2); }
.side-label { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); display: block; }
.side-amt { font-family: var(--display); font-weight: 800; font-size: 2.05rem; font-variant-numeric: tabular-nums; display: block; line-height: 1.15; letter-spacing: -.04em; }
.side-rrp { color: var(--muted); }
.side-at { font-size: .87rem; color: var(--muted); display: block; margin-bottom: 18px; }

/* ---------- vs pages ---------- */
.vs-grid { display: grid; grid-template-columns: 1fr; gap: 11px; }
.vs-card {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 17px; color: var(--ink); display: grid; gap: 3px; box-shadow: var(--e1);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .2s;
}
.vs-card:hover { text-decoration: none; border-color: color-mix(in srgb, var(--accent) 32%, transparent); transform: translateY(-3px); box-shadow: var(--e3); }
.vs-a, .vs-b { font-weight: 600; font-size: .94rem; }
.vs-mid { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--accent); }

.verdict {
  position: relative;
  background: linear-gradient(135deg, var(--accent-soft), var(--surface) 75%);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  border-left: 4px solid var(--accent);
  border-radius: var(--r); padding: 22px; margin: 22px 0 26px; box-shadow: var(--e1);
}
.verdict-label { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 9px; }
.verdict p { margin: 0; font-size: 1.02rem; line-height: 1.74; color: var(--ink); }

.vsp-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.vsp { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; text-align: center; box-shadow: var(--e1); }
.vsp-brand { font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.vsp h3 { font-size: 1.04rem; margin: 5px 0 11px; }
.vsp-amt { font-family: var(--display); font-weight: 800; font-size: 1.8rem; font-variant-numeric: tabular-nums; display: block; letter-spacing: -.03em; }
.vsp-rrp { color: var(--muted); }
.vsp-at { font-size: .81rem; color: var(--muted); display: block; margin-bottom: 15px; }

.when-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.when { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; box-shadow: var(--e1); }
.when h3 { font-size: 1rem; margin: 0 0 9px; }
.when p { font-size: .93rem; color: var(--ink-2); }

/* ---------- faq / steps / prose ---------- */
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); margin-bottom: 9px; box-shadow: var(--e1); overflow: hidden; }
.faq summary { padding: 16px 19px; font-weight: 600; cursor: pointer; list-style: none; position: relative; padding-right: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 19px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--accent); font-weight: 300; transition: transform .24s var(--ease); }
.faq details[open] summary::after { content: "−"; }
.faq p { padding: 0 19px 17px; margin: 0; color: var(--ink-2); font-size: .95rem; }

.steps { padding-left: 20px; }
.steps li { margin-bottom: 13px; color: var(--ink-2); }
.prose h2 { font-size: clamp(1.24rem, 3.4vw, 1.55rem); margin: 34px 0 11px; }
.prose ul { color: var(--ink-2); padding-left: 20px; }
.prose li { margin-bottom: 9px; }
.prose p { color: var(--ink-2); }

.empty-state { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--r); padding: 30px 24px; box-shadow: var(--e1); }
.empty-state h2 { font-size: 1.22rem; margin: 0 0 11px; }
.empty-state p { color: var(--muted); }

/* ---------- alert form ---------- */
.alert { margin: 0; }
.alert-label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 9px; }
.alert-row { display: flex; flex-direction: column; gap: 9px; }
.alert input[type=email] {
  flex: 1; min-height: 46px; padding: 0 15px; border: 1px solid var(--line);
  border-radius: var(--r-sm); background: var(--paper); color: var(--ink); font: 400 1rem var(--sans);
  transition: border-color .18s, box-shadow .18s;
}
.alert input[type=email]:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); outline: none; }
.alert .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.alert-note { font-size: .77rem; color: var(--muted); margin: 9px 0 0; }
.alert-done { color: var(--accent); font-weight: 600; font-size: .92rem; margin: 9px 0 0; }

/* ---------- crumbs, sticky cta, footer ---------- */
.crumbs { font-size: .83rem; color: var(--muted); padding: 16px 0 0; }
.crumbs a { color: var(--muted); }
.crumbs .sep { margin: 0 7px; opacity: .45; }

.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 11px 20px calc(11px + env(safe-area-inset-bottom));
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  box-shadow: 0 -8px 30px rgba(10,15,28,.1); font-size: .92rem;
}
.sticky-cta strong { font-family: var(--display); font-size: 1.16rem; font-variant-numeric: tabular-nums; }

.site-foot { background: var(--tint); border-top: 1px solid var(--line); margin-top: 48px; padding: 46px 0 0; position: relative; }
.foot-in { display: grid; grid-template-columns: 1fr; gap: 28px; }
.foot-brand p { font-size: .87rem; color: var(--muted); margin: 12px 0 0; max-width: 42ch; }
.foot-col h4 { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 11px; font-family: var(--sans); }
.foot-col a { display: block; color: var(--ink-2); font-size: .91rem; padding: 5px 0; }
.foot-col a:hover { color: var(--accent); }
.foot-legal { border-top: 1px solid var(--line); margin-top: 34px; padding-top: 24px; padding-bottom: 34px; }
.foot-legal p { font-size: .79rem; color: var(--muted); line-height: 1.68; margin-bottom: 11px; }

/* ---------- scroll reveal ----------
   Was `[data-rv] { opacity: 0 }` unconditionally, with app.js adding `.in` via
   IntersectionObserver. That stranded every product card invisible for anyone
   with JS disabled — the exact failure §3.7 warns about, and a hard fail of the
   "page complete with JS disabled" constraint. Entrance choreography is now
   CSS-only, above the fold only (.reveal below). [data-rv] keeps its hook for
   app.js but is visible by default and never animates layout. */
[data-rv] { opacity: 1; transform: none; }

/* ================= 600px ================= */
@media (min-width: 600px) {
  .grid, .cat-grid, .vs-grid { grid-template-columns: repeat(2, 1fr); }
  .pc-grid, .when-grid, .vsp-grid { grid-template-columns: 1fr 1fr; }
  .alert-row { flex-direction: row; }
  .stats { grid-template-columns: repeat(4, 1fr); }
}

/* ================= 768px — tablet: real tables ================= */
@media (min-width: 768px) {
  .section { padding: 88px 0; }
  .pr-head {
    display: grid; padding: 12px 22px; background: var(--surface-2);
    font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  }
  .pr { grid-template-columns: 1fr 190px 150px; align-items: center; gap: 16px; }
  .pr-price { grid-column: 2; grid-row: 1; }
  .pr-go { grid-column: 3; grid-row: 1; }
  .pr-go .btn { width: 100%; }
  .foot-in { grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; }
  .sticky-cta { display: none; }
  .spec th[scope="row"] { width: 30%; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ================= 1000px — desktop nav ================= */
@media (min-width: 1000px) {
  .nav-toggle { display: none; }
  .nav {
    position: static; display: flex; flex-direction: row; background: none;
    border: 0; box-shadow: none; padding: 0; gap: 2px; max-height: none; overflow: visible;
    align-items: center;
  }
  .nav-group { border: 0; position: relative; }
  .nav-trigger {
    width: auto; padding: 8px 12px; font-size: .89rem; font-weight: 500; gap: 5px;
    color: var(--ink-2); border-radius: var(--r-sm); transition: background .16s, color .16s;
  }
  .nav-trigger:hover { background: var(--surface-2); color: var(--ink); }
  .mega {
    display: block; position: absolute; top: calc(100% + 10px); left: 50%;
    transform: translateX(-50%) translateY(-6px); width: 520px; padding: 0;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
    box-shadow: var(--e4); opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
  }
  .nav-group:hover .mega, .nav-trigger[aria-expanded="true"] + .mega {
    opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0);
  }
  .mega-in { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 10px; }
  .mega-item { border: 0; border-radius: var(--r-sm); padding: 11px 13px; }
  .mega-item:hover { background: var(--surface-2); }
  .mega-blurb { display: block; font-size: .77rem; color: var(--muted); margin-top: 2px; line-height: 1.45; }
  .nav-flat { padding: 8px 12px; font-size: .89rem; border-radius: var(--r-sm); }
  .nav-flat:hover { background: var(--surface-2); text-decoration: none; }
  .head-in { height: 70px; gap: 18px; }
  .icon-btn { width: 40px; height: 40px; }   /* pointer devices don't need 44px */
  .grid, .vs-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .hero { padding: 112px 0 88px; }
}

/* ================= 1100px — product two-column ================= */
@media (min-width: 1100px) {
  .p-grid { grid-template-columns: minmax(0, 1fr) 330px; gap: 44px; align-items: start; }
  .p-side { position: sticky; top: 90px; }
  .grid { grid-template-columns: repeat(4, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .btn:hover, .card:hover, .cat:hover, .vs-card:hover, .hero-search:hover, .icon-btn:hover { transform: none; }
  [data-rv] { opacity: 1; transform: none; }
}

@media print {
  .site-head, .site-foot, .sticky-cta, .prelaunch, .alert, .nav, .cmd { display: none; }
  body { background: #fff; }
}


/* ============================================================
   v4 — studio polish layer
   Craft details: hairlines, optical alignment, tactile states.
   Nothing here adds colour; it adds precision.
   ============================================================ */

/* Custom scrollbar — the detail everyone notices on a "finished" site */
* { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--muted) 38%, transparent) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--muted) 32%, transparent); border-radius: 99px; border: 3px solid var(--paper); }
::-webkit-scrollbar-track { background: transparent; }

/* Logo mark: crisper facet */
.logo-mark { border-radius: 8px; box-shadow: inset 0 1px 0 rgba(255,255,255,.4), inset 0 -1px 0 rgba(0,0,0,.18); }

/* Buttons: real press physics — down on :active, not just "un-hover" */
.btn { transition: transform .14s var(--ease), box-shadow .18s var(--ease), background .16s, border-color .16s; }
.btn:active { transform: translateY(1px) scale(.99); transition-duration: .06s; }
.btn-primary:active { box-shadow: inset 0 2px 4px rgba(0,0,0,.12); }
.chip:active, .icon-btn:active { transform: translateY(1px); transition-duration: .06s; }

/* Cards are flat (§3.2). The price box is the ONE floating object on a product
   page and takes the single lift shadow; nothing else on the page floats, which
   is what makes its elevation mean "act here". */
.card, .cat, .vs-card, .side-card, .hist, .spec-wrap, .vs-wrap, .pc, .when, .vsp,
.verdict, .stat, .faq details, .empty-state, .tools-sort select, .icon-btn,
.btn-ghost, .chip, .hero-search { box-shadow: none; }
.pricebox { box-shadow: var(--shadow); }
:root[data-theme="dark"] .pricebox { box-shadow: none; border-color: var(--line-2); }

/* Hover = the hairline darkens and the accent edge holds. No translate, no
   scale, no shadow change: card hover was the last place motion could shift
   layout, and CLS is budgeted at 0.00. */
.card, .cat, .vs-card { transition: border-color var(--t-med) var(--ease-out); }
.card:hover, .cat:hover, .vs-card:hover {
  transform: none; box-shadow: none;
  border-color: var(--accent);
}
.card::before, .cat::before { display: none; }   /* cursor-tracking glow: JS-driven decoration, not information */

/* Price figure: hairline underline ties the number to its store line */
.pb-best { position: relative; padding-bottom: 6px; }
.pb-best::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 44px; height: 2px;
  border-radius: 2px; background: var(--accent); opacity: .85;
}

/* Best-price row: leading edge glows very slightly */
.pr-best { box-shadow: inset 3px 0 0 var(--accent), inset 12px 0 18px -14px color-mix(in srgb, var(--accent) 55%, transparent); }

/* Store rows: separate hover affordance from the best-row highlight */
.pr { transition: background .16s ease; }

/* Tables: numerals align like a ledger */
.spec td, .vs td, .pr-amt, .pb-amt, .card-price, .side-amt, .vsp-amt, .cmd-p, .stat b { font-variant-numeric: tabular-nums lining-nums; }

/* kbd: keycap physics */
kbd, .cmd-bar kbd, .hero-search kbd {
  box-shadow: inset 0 -1.5px 0 var(--line), 0 1px 1px rgba(10,15,28,.06);
  border-radius: 6px;
}

/* FAQ: rotate the glyph rather than swapping characters */
.faq summary::after { content: "+"; transition: transform .26s var(--ease); }
.faq details[open] summary::after { content: "+"; transform: translateY(-50%) rotate(45deg); }

/* Hero search: the sheen sweep is gone. Identity B allows no decorative motion
   — only state-change feedback (focus, toast) and the one above-the-fold
   entrance. The field earns attention by being the sunken well on the page. */
.hero-search { position: relative; }
.hero-search:hover { transform: none; border-color: var(--accent); }

/* Stat tiles: numbers get the display face at optical size */
.stat b { letter-spacing: -.04em; }
.stat { transition: border-color var(--t-med) var(--ease-out); }
.stat:hover { transform: none; border-color: var(--line-2); }

/* Verdict: opening quote mark as a typographic ornament */
.verdict { padding-left: 26px; }
.verdict p::first-letter { font-weight: 600; }

/* Footer: fade the top rule out at the edges */
.site-foot { border-top: 0; }
.site-foot::before {
  content: ""; display: block; height: 1px; margin-bottom: -1px;
  background: linear-gradient(90deg, transparent, var(--line) 18%, var(--line) 82%, transparent);
}

/* Dark-mode selection: green-on-ink is illegible; use soft accent wash */
:root[data-theme="dark"] ::selection { background: color-mix(in srgb, var(--accent) 30%, transparent); color: var(--ink); }

/* Focus (§3.6): a real 2px accent outline at 2px offset, everywhere, never
   removed. The previous box-shadow ring vanished on any element that later set
   its own box-shadow — keyboard users lost the page on exactly the interactive
   controls that matter. */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; box-shadow: none; }

/* Sticky mobile CTA: solid, hairline only — no backdrop blur (§4). */
.sticky-cta {
  background: var(--surface);
  backdrop-filter: none; -webkit-backdrop-filter: none;
  border-top: 1px solid var(--line); box-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
  .btn:active, .chip:active, .icon-btn:active, .stat:hover { transform: none; }
}


/* ============================================================================
   AAA+++ STUDIO PREMIUM — Identity B ("Studio Instrument") mechanics
   Spec: _plans/AAA-PLUS-STUDIO-PREMIUM.md §2.2, §3, §4.
   Ported by hand from _shared/styles.css (this site is site-local; apply.mjs
   does not reach it). Identity B has no serif, so its premium register is
   weight discipline (400/500/700) plus the mono voice on every dated figure.

   ONE DELIBERATE DEVIATION from the shared file: the shared mono-voice selector
   list includes `.spec`, but on PriceWatch `.spec` is the product SPECIFICATION
   TABLE (table.spec). Applying the mono register to it would shrink every spec
   sheet on 246 pages to .8125rem. The register is carried here by .mspec
   instead; every other class name matches the shared file exactly.
   ========================================================================== */

/* ---- the mono "spec" voice --------------------------------------------- */
/* Dates, prices-as-of, SKUs, source vintages, units, step numbers. On a price
   comparison site this register IS the product: an undated number is a rumour,
   and the mono voice is what makes the date read as instrument-grade fact
   rather than fine print. */
.mspec,
.srcline,
.crumbs,
.vintage,
.freshness,
.kicker,
.eyebrow,
.cite {
  font-family: var(--mono);
  font-size: var(--fs-mono);
  letter-spacing: .06em;
  font-variant-numeric: tabular-nums lining-nums;
}
.mspec, .cite { color: var(--muted); }
.kicker, .eyebrow {
  text-transform: uppercase;
  letter-spacing: var(--track-label);
  color: var(--accent-2);
  font-weight: 500;
}
.eyebrow::before { background: var(--accent); }

/* Freshness chip — the visible half of the no-undated-prices rule. Every price
   on this site renders one; a price with no verification date does not render
   at all (enforced in lib/components.mjs + build.mjs, not by editorial care). */
.freshness, .vintage {
  display: inline-block;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.vintage {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 3px 8px;
  background: var(--surface-2);
}
.freshness-stale { color: var(--warn); }

/* ---- tabular numerals with intent ------------------------------------- */
/* Any number a reader compares or copies. Price columns that jiggle by a
   fraction of an em between rows are the fastest way for a comparison table to
   look unmeasured. */
.num,
td.n,
.result-v,
table td,
table th,
.pager,
.pr-amt, .pb-amt, .card-price, .side-amt, .vsp-amt, .cmd-p, .stat b, .pr-diff,
input[type="number"] {
  font-variant-numeric: tabular-nums lining-nums;
}

/* ---- the keel (section datum line) ------------------------------------ */
/* A 2px x 44px accent rule above every section head. It is the cheapest
   possible signal that a grid exists and someone drew to it. */
h2.sec::before,
.keel::before {
  content: "";
  display: block;
  width: 44px;
  height: 2px;
  background: var(--accent);
  margin-bottom: 14px;
}

/* ---- header: solid, not blurred (§4) ---------------------------------- */
/* backdrop-filter on a sticky header costs a compositor pass on every scroll
   frame on mobile, and the frosted look is the most recognisable SaaS-template
   cue in the system. Solid surface + one hairline is cheaper and reads dearer. */
.site-head {
  background: var(--surface);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid var(--line);
}
.brand-sub {
  display: block;
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 1px;
  font-weight: 400;
}
@media (max-width: 520px) { .brand-sub { display: none; } }

/* ---- input wells ------------------------------------------------------- */
/* Pill inputs on a floating card read as a signup form. A sunken well with an
   inset hairline reads as a field on an instrument. 48px keeps the mobile tap
   target honest. */
.alert input[type="email"],
.tools-sort select,
.cmd-bar,
.hero-search {
  min-height: 48px;
  background: var(--surface-sunken);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  box-shadow: inset 0 1px 0 rgba(10, 16, 32, .05);
  transition: border-color var(--t-fast) var(--ease-out);
}
.hero-search { border-radius: var(--radius); }
.cmd-bar { border-radius: 0; border-width: 0 0 1px; }
.alert input[type="email"]:focus-visible,
.tools-sort select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-color: var(--accent);
}
.alert input[type="email"]:focus { box-shadow: inset 0 1px 0 rgba(10, 16, 32, .05); border-color: var(--accent); }
:root[data-theme="dark"] .alert input[type="email"],
:root[data-theme="dark"] .tools-sort select,
:root[data-theme="dark"] .hero-search,
:root[data-theme="dark"] .cmd-bar { box-shadow: inset 0 1px 0 rgba(0, 0, 0, .4); }

/* ---- the result figure ------------------------------------------------- */
.result-v {
  font-family: var(--display);
  font-size: clamp(2.1rem, 6vw, 2.9rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -.04em;
  color: var(--ink-num);
}

/* ---- draw-underline hover (§3.6) -------------------------------------- */
/* Hover on a text link draws its underline in, rather than swapping colour.
   Applied by hand with .draw on in-content links so chrome links stay quiet. */
a.draw,
.rel-card .rel-t {
  text-decoration: none;
  background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 1px no-repeat;
  transition: background-size var(--t-med) var(--ease-out);
}
a.draw:hover, a.draw:focus-visible, .rel-card:hover .rel-t { background-size: 100% 1px; text-decoration: none; }

/* ---- the promoted source line (§6.4) ---------------------------------- */
/* Doctrine #7 rendered as luxury: no figure without a source line, no source
   line without a date. Identical anatomy and identical position under every
   table on every page. */
.srcline {
  display: block;
  border-top: 1px solid var(--line);
  padding-top: 8px;
  margin: 12px 0 26px;
  color: var(--muted);
  text-transform: uppercase;
  line-height: 1.6;
}
.srcline .sep { color: var(--line-2); margin: 0 .5em; }
.srcline a { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line-2); }
.srcline a:hover { color: var(--ink-2); border-bottom-color: var(--accent); }

/* ---- the method mini-spec (§4) ---------------------------------------- */
/* "How we check this price" used to be a paragraph on /about that nobody read.
   As a numbered, hairline-ruled spec on the page carrying the price, it is the
   trust argument at the point of doubt. */
.method { margin: 0 0 26px; }
.method ol { list-style: none; margin: 0; padding: 0; counter-reset: mstep; }
.method li {
  counter-increment: mstep;
  border-top: 1px solid var(--line);
  padding: 14px 0 14px 44px;
  position: relative;
  color: var(--ink-2);
  font-size: .95rem;
}
.method li:last-child { border-bottom: 1px solid var(--line); }
.method li::before {
  content: counter(mstep, decimal-leading-zero);
  position: absolute; left: 0; top: 15px;
  font-family: var(--mono); font-size: var(--fs-mono);
  letter-spacing: .06em; color: var(--accent-2);
}
.method li strong { color: var(--ink); font-weight: 600; }
.method .formula {
  font-family: var(--mono);
  font-size: .84rem;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin: 14px 0 0;
  overflow-x: auto;
  white-space: pre;
  color: var(--ink-2);
}

/* ---- the entity bridge (§6.1.4) --------------------------------------- */
/* Sanctioned cross-family link (watts <-> price: cost to run vs cost to buy).
   It renders as an argument in body position, never as a card — a card would
   read as one more ring tile, and the point is that it is a different family. */
.entity-bridge {
  border-left: 2px solid var(--accent);
  padding: 4px 0 4px 18px;
  margin: 28px 0;
  max-width: 62ch;
}
.entity-bridge p { font-size: 1.04rem; line-height: 1.66; color: var(--ink); margin: 0; }
.entity-bridge .bridge-k {
  display: block;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 7px;
}

/* ---- related cards that earn the click (§6.1) ------------------------- */
.rel-grid { display: grid; gap: 14px; grid-template-columns: 1fr; margin: 24px 0 0; }
@media (min-width: 700px) { .rel-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); } }
.rel-card {
  display: flex; flex-direction: column; gap: 8px;
  padding: 17px 18px 13px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 2px solid var(--accent);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: none;
  text-decoration: none; color: inherit;
  transition: border-color var(--t-fast) var(--ease-out);
}
.rel-card:hover { border-color: var(--line-2); border-top-color: var(--accent); text-decoration: none; }
.rel-card .rel-t { font-weight: 700; color: var(--ink); font-size: 1.01rem; align-self: flex-start; font-family: var(--display); letter-spacing: -.02em; }
.rel-card .rel-why { color: var(--ink-2); font-size: .91rem; line-height: 1.55; margin: 0; }
.rel-card .freshness { margin-top: auto; padding-top: 10px; align-self: flex-end; }

/* ---- entrance choreography (§3.7) ------------------------------------- */
/* Above the fold, once, on load: kicker -> h1 -> lead, 60ms stagger. Gated
   behind no-preference so reduced-motion readers get the finished page rather
   than an empty one — the failure this rule exists to prevent. */
@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: aaa-rise 420ms var(--ease-out) both; }
  .reveal-2 { animation-delay: 60ms; }
  .reveal-3 { animation-delay: 120ms; }
  @keyframes aaa-rise { from { opacity: 0; transform: translateY(12px); } }
}

/* ---- confident emptiness --------------------------------------------- */
.breathe { min-height: 18vh; }
@media (max-width: 640px) { .breathe { min-height: 10vh; } }

/* ---- price-row provenance -------------------------------------------- */
/* The verification date moves into the mono register and sits with the price it
   qualifies, not in a caption somewhere below it. */
.pr-when { font-family: var(--mono); font-size: .72rem; letter-spacing: .04em; color: var(--muted); }
.pr-when.stale { color: var(--warn); }
.pb-label, .side-label, .verdict-label, .vsp-brand, .card-brand, .p-brand, .cat-count, .foot-col h4, .pr-tag, .pr-head {
  font-family: var(--mono); letter-spacing: .1em;
}
.pb-foot { font-size: .8rem; }
.pb-vintage { margin: 0; padding: 14px 22px 0; }
.cat-vintage { margin: 16px 0 0; }

/* The brand lockup's mono function line stacks under the wordmark. */
.logo { align-items: center; }
.logo-txt { display: block; line-height: 1.12; }

/* Freshness chips sit under the figure they date, never inline with it — the
   price stays the largest thing on the row and the date stays legible. */
.pb-best .freshness, .side-card .freshness, .vsp .freshness { display: block; margin-top: 6px; }
.pr-price .freshness { display: block; margin-top: 3px; }
.card-foot .freshness { flex-basis: 100%; margin-top: 5px; }
.cmd-p .freshness { display: block; font-size: .62rem; font-weight: 400; letter-spacing: .05em; }
.sticky-cta .freshness { font-size: .6rem; }

/* Section heads inside prose pages also take the keel. */
.prose h2.sec { margin-top: 40px; }

/* ---------- storage-variant family strip (phones) ---------- */
.fam { margin: 0 0 34px; }
.fam-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface); box-shadow: var(--e1); }
.fam-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line-soft); }
.fam-row:last-child { border-bottom: 0; }
.fam-here { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.fam-name { font-weight: 600; font-size: .95rem; color: var(--ink); display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.fam-tag { font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; background: var(--accent); color: #fff; padding: 2px 8px; border-radius: 999px; }
:root[data-theme="dark"] .fam-tag { color: #04231A; }
.fam-price { font-family: var(--display); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fam-diff { font-size: .78rem; color: var(--muted); font-family: var(--sans); font-weight: 500; margin-left: 7px; }

/* ---------- category explainer note ---------- */
.explain { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--r); padding: 20px 22px; margin: 0 0 26px; box-shadow: var(--e1); }
.explain h2 { font-size: 1.02rem; margin: 0 0 9px; }
.explain p { font-size: .93rem; color: var(--ink-2); margin: 0 0 9px; }
.explain p:last-child { margin-bottom: 0; }

/* ---- advertising + the network strip ---------------------------------- */
/* An ad on a price-comparison site is only defensible because it cannot
   reach the numbers: the sort function receives a price and no other
   argument. What the CSS has to carry is the other half — the slot must
   never be mistakable for content. Hence the mono "Advertisement" label
   above every one of them, including the house ads, and a boxed treatment
   that deliberately does not match .rel-card or .pricebox. */
.ad-slot { max-width: var(--wrap, 1180px); margin: 34px auto; padding: 0 20px; }
.ad-label {
  font-family: var(--mono); font-size: .62rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 8px; text-align: center;
}
.ad-slot ins { display: block; min-height: 90px; }

.ad-house .house {
  display: grid; gap: 6px;
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--surface-2);
  padding: 18px 20px;
  text-decoration: none; color: inherit;
  transition: border-color .18s ease, background .18s ease;
}
.ad-house .house:hover { border-color: var(--accent); background: var(--surface); }
.house-eyebrow {
  font-family: var(--mono); font-size: .64rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent);
}
.house-head { font-family: var(--display, inherit); font-size: 1.12rem; font-weight: 700; color: var(--ink); }
.house-body { font-size: .93rem; line-height: 1.55; color: var(--ink-2); max-width: 62ch; }
.house-cta {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 6px; font-weight: 650; font-size: .92rem; color: var(--accent);
}

.netstrip { border-top: 1px solid var(--line); margin-top: 46px; padding: 34px 0 6px; }
.netstrip-k {
  font-family: var(--mono); font-size: .66rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 8px;
}
.netstrip h2 { font-size: 1.35rem; margin: 0 0 18px; max-width: 40ch; }
.netstrip-cards { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .netstrip-cards { grid-template-columns: 1fr 1fr; } }
.netcard {
  display: grid; gap: 6px; text-decoration: none; color: inherit;
  border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px;
  background: var(--surface);
  transition: border-color .18s ease, transform .18s ease;
}
.netcard:hover { border-color: var(--accent); transform: translateY(-2px); }
.netcard-name { font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.netcard-tag {
  font-family: var(--mono); font-size: .66rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
}
.netcard-why { font-size: .92rem; line-height: 1.55; color: var(--ink-2); }

@media (prefers-reduced-motion: reduce) {
  .netcard { transition: border-color .18s ease; }
  .netcard:hover { transform: none; }
}

/* ---- the top 100 ------------------------------------------------------- */
/* A ranked list has to make the RANK legible at a glance and the EVIDENCE
   legible on a second look. The evidence line is what stops "top 100" being
   a claim the reader has to take on trust. */
.t100 { list-style: none; margin: 26px 0 0; padding: 0; counter-reset: none; }
.t100-row {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 4px 14px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
}
.t100-rank {
  font-family: var(--mono); font-size: .9rem; font-weight: 700;
  color: var(--muted); padding-top: 2px;
}
.t100-main { min-width: 0; }
.t100-name { display: block; font-weight: 650; font-size: 1.02rem; line-height: 1.35; }
.t100-name a { color: var(--ink); text-decoration: none; }
.t100-name a:hover { color: var(--accent); text-decoration: underline; }
.t100-off {
  font-family: var(--mono); font-size: .6rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); white-space: nowrap;
}
.t100-meta { display: block; margin-top: 3px; font-size: .86rem; color: var(--ink-2); line-height: 1.5; }
.t100-right {
  grid-column: 2; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin-top: 6px;
}
.t100-price { font-family: var(--mono); font-weight: 700; font-size: 1rem; color: var(--ink); }
.t100-sub { font-size: .82rem; color: var(--muted); }

/* From 720px the price moves to its own right-hand column and stops
   competing with the evidence line for the same reading position. */
@media (min-width: 720px) {
  .t100-row { grid-template-columns: 2.6rem 1fr auto; align-items: center; }
  .t100-right { grid-column: 3; margin-top: 0; justify-content: flex-end; text-align: right; }
}
