/* ECU IQ — site styles.
   Concept: an instrument cluster at night. Graphite surfaces, one cyan
   backlight accent, wide automotive display type, monospaced readouts.
   Green / yellow / red only ever mean engine health. Dark by design. */

:root {
  --bg: #090B0E;
  --bg-raised: #0D1116;
  --surface: #12161C;
  --surface-2: #181D25;
  --surface-3: #20262F;
  --line: #222932;
  --line-strong: #303844;
  --fg: #EEF1F4;
  --muted: #98A1AD;
  --faint: #5E6773;

  --accent: #46DFFF;
  --accent-deep: #0796B8;
  --accent-glow: rgba(70, 223, 255, .16);
  --on-accent: #06121A;

  --good: #3FD98A;
  --caution: #F4C54A;
  --critical: #FF5A5A;

  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Archivo", -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1200px;
  --radius: 16px;
  --radius-lg: 24px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: #8BEBFF; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--on-accent); }
h1, h2, h3, h4 { font-family: var(--f-display); margin: 0; text-wrap: balance; letter-spacing: -.01em; }
p { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- type ---------- */
.eyebrow {
  font-family: var(--f-mono); font-size: 12px; font-weight: 500; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
}
.eyebrow.accent { color: var(--accent); }
.display {
  font-size: clamp(44px, 7.4vw, 104px); font-weight: 800; font-stretch: 125%;
  line-height: .96; letter-spacing: -.025em;
}
.h2 { font-size: clamp(32px, 4.8vw, 60px); font-weight: 800; font-stretch: 120%; line-height: 1.02; letter-spacing: -.02em; }
.h3 { font-size: 22px; font-weight: 700; font-stretch: 110%; line-height: 1.2; }
.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 58ch; line-height: 1.55; }
.lede strong { color: var(--fg); font-weight: 500; }
.mono { font-family: var(--f-mono); }
.tnum { font-variant-numeric: tabular-nums; }
.dim { color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  --b-bg: var(--surface-2); --b-fg: var(--fg); --b-line: var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 12px;
  background: var(--b-bg); color: var(--b-fg); border: 1px solid var(--b-line);
  font: 600 16px/1 var(--f-body); text-decoration: none; cursor: pointer;
  transition: transform .15s var(--ease), background .2s, border-color .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn:hover { color: var(--b-fg); border-color: var(--faint); }
.btn:active { transform: translateY(1px); }
.btn.primary { --b-bg: var(--accent); --b-fg: var(--on-accent); --b-line: var(--accent); box-shadow: 0 0 0 0 var(--accent-glow); }
.btn.primary:hover { box-shadow: 0 0 0 6px var(--accent-glow); color: var(--on-accent); border-color: var(--accent); }
.btn.ghost { --b-bg: transparent; }
.btn.small { min-height: 38px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn.block { width: 100%; }
.btn[disabled], .btn[aria-busy="true"] { opacity: .6; cursor: progress; }
.btn .price { font-family: var(--f-mono); font-weight: 500; opacity: .8; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40;
  background: rgba(9, 11, 14, .78); backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; gap: 28px; height: 68px; }
.nav .logo { display: flex; align-items: center; flex: none; }
.nav .logo img { height: 26px; width: auto; display: block; }
.nav-links { display: flex; gap: 26px; margin-left: 12px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--fg); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-right .track { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; margin-right: 6px; }
.nav-right .track:hover { color: var(--fg); }
.cart-btn { position: relative; }
.cart-count {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--accent); color: var(--on-accent);
  font: 700 12px/20px var(--f-mono); text-align: center;
}
.cart-count[data-n="0"] { background: var(--surface-3); color: var(--muted); }
.menu-btn { display: none; }
@media (max-width: 900px) {
  .nav-links, .nav-right .track { display: none; }
  .menu-btn { display: inline-flex; }
}
.mobile-menu { display: none; border-top: 1px solid var(--line); padding-block: 8px 18px; }
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: 12px 0; color: var(--fg); text-decoration: none; font-size: 18px; font-weight: 600; border-bottom: 1px solid var(--line); }

/* ---------- sections ---------- */
section { position: relative; }
.section { padding-block: clamp(72px, 10vw, 140px); }
.section-head { display: grid; gap: 16px; margin-bottom: clamp(36px, 5vw, 64px); max-width: 820px; }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.raised { background: var(--bg-raised); border-block: 1px solid var(--line); }

/* ---------- hero ---------- */
.hero { padding-block: clamp(40px, 7vw, 96px) clamp(56px, 8vw, 110px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, rgba(70, 223, 255, .10), transparent 70%); pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; position: relative; }
.hero-copy { display: grid; gap: 26px; align-content: center; }
.hero-copy .display { font-size: clamp(44px, 5.7vw, 82px); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.proof { display: flex; flex-wrap: wrap; gap: 8px 22px; padding-top: 6px; }
.proof span { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.proof span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
@media (max-width: 980px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }

/* the live instrument */
.instrument {
  background: linear-gradient(180deg, var(--surface) 0%, #0F1318 100%);
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px;
  box-shadow: 0 40px 120px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .02) inset;
  display: grid; gap: 14px; min-width: 0;
}
.inst-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.inst-top .eyebrow { font-size: 11px; }
.live-pill { display: inline-flex; align-items: center; gap: 7px; font: 600 11px/1 var(--f-mono); letter-spacing: .1em; padding: 6px 10px; border-radius: 999px; background: rgba(63, 217, 138, .12); color: var(--good); }
.live-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.readouts { display: grid; grid-template-columns: 1.2fr 1fr 1.3fr .85fr; gap: 8px; }
.readout { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: grid; gap: 2px; min-width: 0; }
.readout small { font: 500 10.5px/1.2 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.readout b { font: 600 clamp(20px, 2.4vw, 28px)/1.1 var(--f-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.readout b sub { font-size: 11px; color: var(--muted); font-weight: 400; vertical-align: baseline; margin-left: 3px; }
.readout.rpm b { font-size: clamp(24px, 2.5vw, 34px); color: var(--fg); }
.readout .split { font-size: clamp(15px, 1.5vw, 18px); letter-spacing: -.02em; }
@media (max-width: 560px) { .readouts { grid-template-columns: 1fr 1fr; } }
.trace { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 10px 10px 6px; }
.trace-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 0 4px 4px; flex-wrap: wrap; }
.trace-head b { font-size: 13px; font-weight: 600; }
.legend { display: flex; gap: 12px; font-size: 11.5px; color: var(--muted); }
.legend i { display: inline-block; width: 14px; height: 2px; border-radius: 2px; vertical-align: middle; margin-right: 5px; }
.trace svg { display: block; width: 100%; height: auto; }
.trace text { font-family: var(--f-mono); font-size: 9px; fill: var(--faint); }
.verdict { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; min-height: 64px; }
.verdict .ring { width: 44px; height: 44px; }
.verdict .ring text { font: 600 11px var(--f-mono); fill: var(--fg); }
.verdict strong { display: block; font-size: 14px; font-weight: 600; }
.verdict .vsub { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.flag { display: inline-flex; align-items: center; gap: 6px; font: 600 10.5px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; padding: 4px 7px; border-radius: 6px; margin-right: 6px; vertical-align: 1px; }
.flag.good { background: rgba(63, 217, 138, .14); color: var(--good); }
.flag.caution { background: rgba(244, 197, 74, .16); color: var(--caution); }
.flag.critical { background: rgba(255, 90, 90, .15); color: var(--critical); }

/* ---------- platforms strip ---------- */
.platforms { padding-block: 28px; border-block: 1px solid var(--line); background: var(--bg-raised); }
.platforms .wrap { display: flex; align-items: center; gap: 14px 28px; flex-wrap: wrap; }
.platforms .eyebrow { flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: 500 13px/1 var(--f-mono); padding: 9px 12px; border-radius: 9px; border: 1px solid var(--line-strong); color: var(--fg); background: var(--surface); }
.chip b { color: var(--accent); font-weight: 600; margin-right: 6px; }
.chip.muted { color: var(--muted); border-style: dashed; background: transparent; }

/* ---------- statement ---------- */
.statement { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: end; }
.statement p { color: var(--muted); font-size: 18px; max-width: 52ch; }
.statement p + p { margin-top: 14px; }
@media (max-width: 860px) { .statement { grid-template-columns: minmax(0, 1fr); } }

/* ---------- checks bento ---------- */
.checks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.check-group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 18px; align-content: start; }
.check-group header { display: flex; align-items: center; gap: 12px; }
.check-group header svg { width: 34px; height: 34px; color: var(--accent); flex: none; }
.check-group h3 { font-size: 18px; font-weight: 700; font-stretch: 112%; }
.check-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.check-group li { display: grid; gap: 2px; padding-top: 14px; border-top: 1px solid var(--line); }
.check-group li b { font-size: 15px; font-weight: 600; }
.check-group li span { font-size: 14px; color: var(--muted); line-height: 1.45; }
@media (max-width: 1080px) { .checks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .checks { grid-template-columns: minmax(0, 1fr); } }

/* ---------- flags (answers) ---------- */
.answers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.answer { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 14px; align-content: start; border-top: 3px solid var(--c); }
.answer.good { --c: var(--good); } .answer.caution { --c: var(--caution); } .answer.critical { --c: var(--critical); }
.answer h3 { font-size: 19px; font-weight: 700; font-stretch: 106%; line-height: 1.25; }
.answer dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; margin: 0; font-size: 14px; }
.answer dt { font-family: var(--f-mono); font-size: 11.5px; color: var(--faint); text-transform: uppercase; letter-spacing: .08em; padding-top: 2px; }
.answer dd { margin: 0; color: var(--fg); font-variant-numeric: tabular-nums; }
.answer p { font-size: 14.5px; color: var(--muted); }
.answer p b { color: var(--fg); font-weight: 600; }
@media (max-width: 900px) { .answers { grid-template-columns: minmax(0, 1fr); } }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; counter-reset: step; }
.step { padding: 26px 24px 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 12px; align-content: start; }
.step .art { height: 120px; display: grid; place-items: center; color: var(--accent); margin-bottom: 6px; }
.step .art svg { height: 100%; width: auto; }
.step .n { font: 500 12px/1 var(--f-mono); color: var(--faint); letter-spacing: .12em; }
.step .n::before { counter-increment: step; content: "STEP " counter(step); }
.step h3 { font-size: 24px; font-weight: 800; font-stretch: 115%; }
.step p { color: var(--muted); font-size: 15.5px; }
@media (max-width: 860px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* ---------- app showcase ---------- */
.phones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 3vw, 40px); align-items: start; }
.phone-fig { margin: 0; display: grid; gap: 18px; justify-items: center; }
.phone-fig:nth-child(2) { transform: translateY(-28px); }
.phone-fig figcaption { text-align: center; max-width: 30ch; }
.phone-fig figcaption b { display: block; font-size: 17px; margin-bottom: 4px; }
.phone-fig figcaption span { color: var(--muted); font-size: 14.5px; }
@media (max-width: 900px) {
  .phones { grid-template-columns: minmax(0, 1fr); }
  .phone-fig:nth-child(2) { transform: none; }
}
.phone { width: 100%; max-width: 300px; background: #000; border: 1px solid var(--line-strong); border-radius: 44px; padding: 11px; box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .95); }
.phone img { display: block; width: 100%; height: auto; border-radius: 34px; }
.screen { background: #05070A; border-radius: 34px; padding: 14px 13px 10px; display: grid; gap: 9px; overflow: hidden; font-size: 13px; }
.sb { display: flex; justify-content: space-between; font: 600 12px/1 -apple-system, var(--f-body); padding: 4px 8px 6px; }
.app-head { display: flex; align-items: center; justify-content: space-between; padding: 0 4px; }
.app-head img { height: 15px; width: auto; display: block; }
.app-head h4 { font-size: 22px; font-weight: 800; font-stretch: 110%; }
.mini-live { font: 600 10px/1 var(--f-mono); background: var(--surface-2); color: var(--fg); padding: 5px 8px; border-radius: 999px; display: inline-flex; gap: 6px; align-items: center; }
.mini-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--good); }
.card { background: var(--surface); border-radius: 16px; padding: 11px 12px; display: grid; gap: 7px; }
.card h5 { margin: 0; font-size: 13.5px; font-weight: 600; }
.card p { font-size: 11.5px; color: var(--muted); line-height: 1.4; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; }
.row .k { color: var(--muted); }
.row .v { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.tile { background: var(--surface); border-radius: 13px; padding: 9px 11px; display: grid; gap: 1px; }
.tile small { font-size: 10px; color: var(--muted); }
.tile b { font: 600 20px/1.1 var(--f-mono); font-variant-numeric: tabular-nums; }
.tile b sub { font-size: 10px; color: var(--muted); font-weight: 400; vertical-align: baseline; margin-left: 2px; }
.tabbar { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); padding-top: 8px; margin-top: 2px; }
.tabbar span { display: grid; justify-items: center; gap: 4px; font-size: 9px; color: var(--faint); }
.tabbar span::before { content: ""; width: 17px; height: 17px; border: 1.6px solid currentColor; border-radius: 6px; }
.tabbar span.on { color: var(--accent); }
.bubble { border-radius: 14px; padding: 9px 11px; font-size: 12px; line-height: 1.42; max-width: 88%; }
.bubble.me { background: var(--accent); color: var(--on-accent); justify-self: end; border-bottom-right-radius: 4px; }
.bubble.ai { background: var(--surface); border-bottom-left-radius: 4px; }
.bubble.ai b { color: var(--fg); }
.check-row { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 8px; align-items: center; font-size: 12px; padding: 7px 0; border-top: 1px solid var(--line); }
.check-row:first-of-type { border-top: 0; }
.check-row i { width: 8px; height: 8px; border-radius: 50%; background: var(--good); }
.check-row i.c { background: var(--caution); }
.check-row em { font-style: normal; font-family: var(--f-mono); font-size: 11px; color: var(--muted); }

/* ---------- comparison ---------- */
.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.compare { width: 100%; border-collapse: collapse; min-width: 560px; }
.compare th, .compare td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); font-size: 15px; vertical-align: top; }
.compare tr:last-child td { border-bottom: 0; }
.compare thead th { font-family: var(--f-mono); font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); background: var(--bg-raised); }
.compare thead th.us { color: var(--accent); }
.compare td:first-child { color: var(--fg); font-weight: 500; width: 34%; }
.compare td { color: var(--muted); }
.compare td.us { color: var(--fg); background: rgba(70, 223, 255, .035); }
.yes, .no { display: inline-flex; align-items: center; gap: 8px; }
.yes::before, .no::before { font-family: var(--f-mono); font-weight: 700; }
.yes::before { content: "✓"; color: var(--accent); }
.no::before { content: "—"; color: var(--faint); }

/* ---------- SD logging ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.split .copy { display: grid; gap: 22px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.stat { border-top: 1px solid var(--line-strong); padding-top: 12px; display: grid; gap: 4px; }
.stat b { font: 600 clamp(24px, 3vw, 34px)/1 var(--f-mono); font-variant-numeric: tabular-nums; }
.stat span { font-size: 13.5px; color: var(--muted); line-height: 1.35; }
.samples { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; display: grid; gap: 12px; }
.samples canvas { width: 100%; height: 220px; display: block; border-radius: 10px; background: var(--bg); }
.samples .row { font-size: 12.5px; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }

/* ---------- shop ---------- */
.shop-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 14px; }
.shop-side { display: grid; gap: 14px; }
.product { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.product.featured { grid-template-rows: 1fr auto; }
.product .art { background: radial-gradient(120% 90% at 50% 0%, #17202A 0%, var(--bg-raised) 60%); display: grid; place-items: center; padding: 28px; border-bottom: 1px solid var(--line); position: relative; }
.product .art svg { width: 100%; height: auto; max-height: 260px; }
.product.featured .art { padding: 40px 32px; }
.product.featured .art svg { max-height: 340px; }
.product .badge { position: absolute; top: 16px; left: 16px; font: 600 11px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; padding: 6px 9px; border-radius: 7px; background: var(--accent); color: var(--on-accent); }
.product .body { padding: 22px 22px 24px; display: grid; gap: 14px; align-content: start; }
.product h3 { font-size: 24px; font-weight: 800; font-stretch: 112%; }
.product .sub { color: var(--muted); font-size: 15px; margin-top: -8px; }
.product ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; font-size: 14.5px; color: var(--muted); }
.product li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 8px; }
.product li::before { content: ""; width: 6px; height: 6px; margin-top: 8px; border-radius: 50%; background: var(--accent); }
.buy { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 6px; flex-wrap: wrap; }
.buy .amount { font: 600 28px/1 var(--f-mono); font-variant-numeric: tabular-nums; }
.buy .amount small { display: block; font: 400 12px/1.4 var(--f-body); color: var(--muted); margin-top: 4px; }
.product.compact .art { padding: 20px; }
.product.compact .art svg { max-height: 190px; }
.product.compact h3 { font-size: 20px; }
.product.compact .buy .amount { font-size: 24px; }
.product[data-soldout="true"] .btn { pointer-events: none; opacity: .5; }
.shop-notes { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 22px; color: var(--muted); font-size: 14px; }
.shop-notes span { display: inline-flex; gap: 8px; align-items: center; }
.shop-notes span::before { content: "✓"; color: var(--accent); font-family: var(--f-mono); }
@media (max-width: 900px) { .shop-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- tuners ---------- */
.tuners { background: linear-gradient(135deg, #0F151C 0%, #0B0F14 60%); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(28px, 5vw, 60px); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.tuners ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.tuners li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; color: var(--muted); font-size: 15.5px; }
.tuners li::before { content: "→"; color: var(--accent); font-family: var(--f-mono); }
.tuners .h2 { font-size: clamp(28px, 3.6vw, 46px); }
@media (max-width: 860px) { .tuners { grid-template-columns: minmax(0, 1fr); } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); max-width: 880px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 18px; align-items: center; padding: 22px 2px; font-size: 18px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 24px/1 var(--f-mono); color: var(--accent); transition: transform .2s var(--ease); flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 2px 24px; color: var(--muted); max-width: 70ch; display: grid; gap: 10px; }

/* ---------- final CTA ---------- */
.final { text-align: center; display: grid; gap: 26px; justify-items: center; }
.final .display { font-size: clamp(40px, 7vw, 92px); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-raised); padding-block: 56px 36px; margin-top: 0; }
.foot { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, .7fr)); gap: 40px; }
.foot img { height: 26px; width: auto; }
.foot p { color: var(--muted); font-size: 15px; margin-top: 14px; max-width: 40ch; }
.foot h4 { font-family: var(--f-mono); font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot ul a { color: var(--fg); text-decoration: none; font-size: 15px; }
.foot ul a:hover { color: var(--accent); }
.signup { display: flex; gap: 8px; margin-top: 22px; max-width: 420px; flex-wrap: wrap; }
.signup input { flex: 1 1 200px; min-width: 0; }
.legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--faint); font-size: 13px; }
@media (max-width: 760px) { .foot { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .foot > :first-child { grid-column: 1 / -1; } }

/* ---------- forms ---------- */
.field { display: grid; gap: 7px; }
.field label { font-size: 14px; font-weight: 500; }
.field .hint { font-size: 13px; color: var(--faint); }
input, select, textarea {
  width: 100%; font: 400 16px/1.4 var(--f-body); color: var(--fg); background: var(--bg);
  border: 1px solid var(--line-strong); border-radius: 11px; padding: 12px 14px; min-height: 48px;
  transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-glow); }
input::placeholder, textarea::placeholder { color: var(--faint); }
.form { display: grid; gap: 18px; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .form .two { grid-template-columns: minmax(0, 1fr); } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { border-radius: 12px; padding: 12px 14px; font-size: 14.5px; border: 1px solid var(--line-strong); background: var(--surface); }
.notice.ok { border-color: rgba(63, 217, 138, .4); background: rgba(63, 217, 138, .08); }
.notice.err { border-color: rgba(255, 90, 90, .45); background: rgba(255, 90, 90, .08); }

/* ---------- cart drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 60; display: none; }
.drawer.open { display: block; }
.drawer .scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); backdrop-filter: blur(2px); animation: fade .2s; }
.drawer .panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--bg-raised);
  border-left: 1px solid var(--line); display: grid; grid-template-rows: auto 1fr auto;
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px);
  animation: slide .28s var(--ease);
}
@keyframes slide { from { transform: translateX(30px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .drawer .panel, .drawer .scrim { animation: none; } }
.drawer header { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer header h2 { font-size: 20px; font-weight: 800; font-stretch: 112%; }
.icon-btn { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-strong); background: transparent; color: var(--fg); display: grid; place-items: center; cursor: pointer; font-size: 18px; }
.icon-btn:hover { border-color: var(--faint); }
.cart-items { overflow-y: auto; padding: 8px 20px; }
.cart-empty { padding: 40px 0; text-align: center; color: var(--muted); display: grid; gap: 14px; justify-items: center; }
.line { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.line .thumb { width: 64px; height: 64px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.line .thumb svg { width: 52px; height: 52px; }
.line b { font-size: 15px; display: block; }
.line .each { font-size: 13px; color: var(--muted); font-family: var(--f-mono); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 10px; margin-top: 8px; }
.qty button { width: 34px; height: 32px; background: none; border: 0; color: var(--fg); cursor: pointer; font-size: 16px; }
.qty output { min-width: 26px; text-align: center; font: 600 14px var(--f-mono); }
.line .total { font: 600 15px var(--f-mono); text-align: right; display: grid; gap: 8px; justify-items: end; }
.line .remove { background: none; border: 0; color: var(--faint); font-size: 13px; cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.line .remove:hover { color: var(--fg); }
.drawer footer { border-top: 1px solid var(--line); padding: 18px 20px 20px; display: grid; gap: 14px; }
.subtotal { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; }
.subtotal b { font: 600 22px var(--f-mono); }
.fine { font-size: 12.5px; color: var(--faint); text-align: center; }

/* ---------- inner pages ---------- */
.page-hero { padding-block: clamp(56px, 8vw, 100px) clamp(32px, 4vw, 48px); }
.page-hero .h2 { max-width: 18ch; }
.page-hero .lede { margin-top: 16px; }
.panel-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 4vw, 36px); }
.two-col { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 24px; align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: minmax(0, 1fr); } }
.side-list { display: grid; gap: 18px; }
.side-list div { display: grid; gap: 4px; }
.side-list b { font-size: 15px; }
.side-list span, .side-list a { font-size: 14.5px; color: var(--muted); }
.side-list a { color: var(--accent); }
.prose { max-width: 72ch; color: var(--muted); font-size: 16.5px; }
.prose h2 { color: var(--fg); font-size: 24px; font-weight: 700; font-stretch: 110%; margin: 44px 0 12px; }
.prose h3 { color: var(--fg); font-size: 18px; margin: 28px 0 8px; }
.prose p, .prose ul { margin: 0 0 14px; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--fg); font-weight: 600; }
.updated { font-family: var(--f-mono); font-size: 12.5px; color: var(--faint); }

/* order tracking */
.progress { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 8px 0 4px; }
.progress div { display: grid; gap: 8px; font-size: 13px; color: var(--faint); }
.progress div::before { content: ""; height: 4px; border-radius: 2px; background: var(--surface-3); }
.progress div.done { color: var(--fg); }
.progress div.done::before { background: var(--accent); }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); align-items: baseline; font-size: 15px; }
.timeline li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); transform: translateY(-1px); }
.timeline time { font-family: var(--f-mono); font-size: 12.5px; color: var(--faint); white-space: nowrap; }
.status-big { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.status-big .pill { font: 600 12px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; padding: 7px 10px; border-radius: 8px; background: rgba(70, 223, 255, .12); color: var(--accent); }
.status-big .pill.refunded, .status-big .pill.canceled { background: var(--surface-3); color: var(--muted); }
.status-big .pill.delivered { background: rgba(63, 217, 138, .14); color: var(--good); }

/* reveal on scroll: visible at rest, nudges in once JS marks it */
.reveal { transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.pre { opacity: 0; transform: translateY(18px); }
@media (prefers-reduced-motion: reduce) { .js .reveal.pre { opacity: 1; transform: none; } }
