/* ============================================================
   PriceWatch NZ — design system v3
   Mobile-first. Every breakpoint is min-width.
   Depth model: 4 elevation tiers, one light source (top-left),
   colour-matched shadows rather than flat black.
   ============================================================ */

:root {
  /* ink */
  --ink:        #0A0F1C;
  --ink-2:      #3A465C;
  --muted:      #6B7789;

  /* surfaces */
  --paper:      #FBFBF9;
  --surface:    #FFFFFF;
  --surface-2:  #F6F7F5;
  --tint:       #F2F3F0;
  --line:       #E6E7E1;
  --line-soft:  #EFF0EB;

  /* brand */
  --accent:     #0E7A5F;
  --accent-hi:  #0A6B52;
  --accent-lo:  #34D399;
  --accent-soft:#ECFAF4;
  --deal:       #E4572E;
  --deal-soft:  #FDF1EC;
  --warn:       #92400E;
  --violet:     #6366F1;

  /* elevation — tinted, not black */
  --e1: 0 1px 2px rgba(10,15,28,.04), 0 1px 3px rgba(10,15,28,.03);
  --e2: 0 2px 4px rgba(10,15,28,.04), 0 8px 20px rgba(10,15,28,.06);
  --e3: 0 4px 8px rgba(10,15,28,.05), 0 18px 40px rgba(10,15,28,.09);
  --e4: 0 8px 16px rgba(10,15,28,.06), 0 32px 72px rgba(10,15,28,.14);
  --ring: 0 0 0 1px rgba(10,15,28,.06);
  --glow: none;

  --r-xs: 8px;
  --r-sm: 12px;
  --r:    18px;
  --r-lg: 26px;

  --wrap: 1180px;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --display: "Sora", var(--sans);

  --ease: cubic-bezier(.16,1,.3,1);
  --ease-out: cubic-bezier(.22,1,.36,1);
}

: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;

  --accent:     #34D399;
  --accent-hi:  #6EE7B7;
  --accent-lo:  #10B981;
  --accent-soft:#0C2620;
  --deal:       #FB7A55;
  --deal-soft:  #2A1710;
  --warn:       #FCD34D;
  --violet:     #818CF8;

  --e1: 0 1px 2px rgba(0,0,0,.4);
  --e2: 0 2px 6px rgba(0,0,0,.45), 0 10px 24px rgba(0,0,0,.35);
  --e3: 0 6px 14px rgba(0,0,0,.5), 0 22px 48px rgba(0,0,0,.45);
  --e4: 0 10px 22px rgba(0,0,0,.55), 0 40px 90px rgba(0,0,0,.6);
  --ring: 0 0 0 1px rgba(255,255,255,.06);
  --glow: 0 0 24px rgba(52,211,153,.14);
}

* { 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; }

/* ---------- ambient aurora ---------- */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora span {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5;
  will-change: transform;
}
.aurora span:nth-child(1) { width: 52vw; height: 52vw; left: -16vw; top: -20vw; background: radial-gradient(circle, var(--accent-lo), transparent 70%); opacity: .10; }
.aurora span:nth-child(2) { width: 44vw; height: 44vw; right: -18vw; top: 6vh; background: radial-gradient(circle, var(--violet), transparent 70%); opacity: .06; }
.aurora span:nth-child(3) { display: none; }
:root[data-theme="dark"] .aurora span:nth-child(1) { opacity: .10; }
:root[data-theme="dark"] .aurora span:nth-child(2) { opacity: .07; }

.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: color-mix(in srgb, var(--paper) 78%, transparent);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line-soft);
}
.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: var(--e2), 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 { transform: translateY(-2px); box-shadow: var(--e4); 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); }
.btn-primary {
  background: linear-gradient(180deg, var(--accent-lo), var(--accent));
  color: #04231A; box-shadow: var(--e2), inset 0 1px 0 rgba(255,255,255,.3);
}
.btn-primary:hover { box-shadow: var(--e3), inset 0 1px 0 rgba(255,255,255,.3), var(--glow); }
: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: var(--e1); }
.btn-ghost:hover { border-color: var(--accent); box-shadow: var(--e2); }

/* ---------- 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: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(14px); 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 ---------- */
[data-rv] { opacity: 0; transform: translateY(18px); }
[data-rv].in { opacity: 1; transform: none; transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }

/* ================= 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; }
  .aurora { display: none; }
}

@media print {
  .site-head, .site-foot, .sticky-cta, .prelaunch, .alert, .nav, .aurora, .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; }

/* Header: hairline light-edge above the blur, like a machined seam */
.site-head::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 35%, transparent) 50%, transparent);
  opacity: .6;
}
.site-head { border-bottom-color: color-mix(in srgb, var(--line) 72%, transparent); }

/* Logo mark: crisper facet */
.logo-mark { border-radius: 8px; box-shadow: var(--e2), 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: var(--e1), inset 0 2px 4px rgba(0,0,0,.12); }
.chip:active, .icon-btn:active { transform: translateY(1px); transition-duration: .06s; }

/* Cards: inner hairline ring + saturated border only at the top edge on hover */
.card, .cat, .vs-card, .pricebox, .side-card, .hist, .spec-wrap, .vs-wrap {
  box-shadow: var(--e1), inset 0 1px 0 color-mix(in srgb, #fff 55%, transparent);
}
:root[data-theme="dark"] .card, :root[data-theme="dark"] .cat, :root[data-theme="dark"] .vs-card,
:root[data-theme="dark"] .pricebox, :root[data-theme="dark"] .side-card, :root[data-theme="dark"] .hist,
:root[data-theme="dark"] .spec-wrap, :root[data-theme="dark"] .vs-wrap {
  box-shadow: var(--e1), inset 0 1px 0 rgba(255,255,255,.05);
}
.card:hover, .cat:hover, .vs-card:hover {
  box-shadow: var(--e3), inset 0 1px 0 color-mix(in srgb, #fff 55%, transparent);
}

/* 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: gentle idle shimmer on the border, once */
@keyframes sheen { from { background-position: -200% 0; } to { background-position: 200% 0; } }
.hero-search { position: relative; overflow: hidden; }
.hero-search::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 40%, color-mix(in srgb, var(--accent) 9%, transparent) 50%, transparent 60%);
  background-size: 220% 100%; animation: sheen 2.6s var(--ease) .8s 1 both;
}

/* Stat tiles: numbers get the display face at optical size */
.stat b { letter-spacing: -.04em; }
.stat { transition: transform .24s var(--ease), box-shadow .24s var(--ease); }
.stat:hover { transform: translateY(-2px); box-shadow: var(--e2); }

/* 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 ring: two-layer, sits off the element like hardware */
:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--accent); }

/* Sticky mobile CTA: hairline top light-edge */
.sticky-cta { border-top: 0; box-shadow: 0 -1px 0 var(--line), 0 -8px 30px rgba(10,15,28,.1); }

@media (prefers-reduced-motion: reduce) {
  .hero-search::after { animation: none; }
  .btn:active, .chip:active, .icon-btn:active, .stat:hover { transform: none; }
}
