/* CrimsonSpeed: dark "pit wall" theme. Crimson for brand and actions; green/amber/red for fit status. */
:root {
  --bg: #0b0c10;
  --bg-2: #101218;
  --surface: #14171e;
  --surface-2: #1b1f28;
  --surface-3: #232835;
  --line: #2a303d;
  --line-2: #394152;
  --text: #eef0f4;
  --muted: #a3aab8;
  --faint: #6f7787;
  --crimson: #e0243f;
  --crimson-hi: #ff3b55;
  --crimson-ink: #ff6f82;      /* crimson for text on dark */
  --ok: #34d17f;
  --ok-bg: rgba(52, 209, 127, .12);
  --warn: #f4b63f;
  --warn-bg: rgba(244, 182, 63, .12);
  --block: #ff6363;
  --block-bg: rgba(255, 99, 99, .12);
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, .7);
  --display: 'Chakra Petch', 'Archivo', system-ui, sans-serif;
  --body: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', monospace;
  --wrap: 1240px;
  --gutter: clamp(16px, 3vw, 32px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.1; margin: 0; letter-spacing: .005em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--crimson-hi); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--crimson); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }

.proto-bar {
  background: repeating-linear-gradient(-45deg, #2a1218 0 10px, #22101a 10px 20px);
  color: #ffc2cb; font-size: 13px; text-align: center; padding: 6px 16px; border-bottom: 1px solid #3a1823;
}

/* ── Kerb motif ── */
.kerb {
  display: inline-block; width: 28px; height: 8px; border-radius: 1px; margin-right: 10px; vertical-align: middle;
  background: repeating-linear-gradient(90deg, var(--crimson) 0 7px, #f3f3f3 7px 14px);
  transform: skewX(-20deg);
}
.eyebrow {
  font: 600 13px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--crimson-ink);
  margin-bottom: 14px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 8px; border: 1px solid transparent;
  font: 600 15px/1 var(--body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--crimson); color: #fff; }
.btn-primary:hover { background: var(--crimson-hi); }
.btn-primary[disabled] { background: var(--surface-3); color: var(--faint); cursor: not-allowed; }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--muted); background: var(--surface-2); }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 14px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 14px; }
.link-btn:hover { color: var(--text); }

/* ── Header ── */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(11, 12, 16, .88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 21px/1 var(--display); letter-spacing: .02em; text-transform: uppercase; }
.logo b { color: var(--crimson); font-weight: 700; }
.logo-mark { width: 36px; height: 22px; fill: var(--crimson); }
.logo-sm { font-size: 17px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--muted); padding: 8px 12px; border-radius: 6px; font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--text); }
.cart-btn {
  position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 8px;
  background: var(--surface-2); border: 1px solid var(--line); cursor: pointer;
}
.cart-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cart-count {
  position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: var(--crimson); color: #fff; font: 600 12px/20px var(--mono); text-align: center;
}
.cart-count[data-zero] { background: var(--surface-3); color: var(--muted); }
@media (max-width: 760px) {
  .nav { display: none; }
  .cart-btn { margin-left: auto; }
}

/* ── Hero ── */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background:
  radial-gradient(900px 380px at 85% 10%, rgba(224, 36, 63, .16), transparent 60%), var(--bg); }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding-block: clamp(40px, 6vw, 72px); }
.hero h1 { font-size: clamp(36px, 5.2vw, 64px); font-weight: 700; text-transform: uppercase; letter-spacing: -.005em; }
.hero h1 em { font-style: normal; color: var(--crimson); display: block; }
.lede { margin-top: 18px; color: var(--muted); font-size: clamp(16px, 1.6vw, 18px); max-width: 560px; }
.hero-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 28px; }
.hero-pick-label { font: 600 14px/1 var(--display); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); width: 100%; }
.pf-btn {
  min-height: 52px; padding: 0 22px; border-radius: 8px; cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--line-2);
  font: 600 18px/1 var(--display); text-transform: uppercase; letter-spacing: .04em;
  transition: border-color .15s, background .15s;
}
.pf-btn:hover { border-color: var(--crimson); background: #22141a; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 26px 0 0; list-style: none; color: var(--muted); font-size: 14px; }
.hero-stats b { color: var(--text); font-family: var(--mono); font-weight: 500; }
.hero-art { min-width: 0; }
.trace { width: 100%; height: auto; }
.trace .grid-lines path { stroke: var(--line); stroke-width: 1; fill: none; }
.trace .tl { font: 500 11px var(--mono); fill: var(--faint); letter-spacing: .08em; }
.trace .tl-hot { fill: var(--text); }
.trace-thr { fill: none; stroke: var(--ok); stroke-width: 2.5; stroke-linejoin: round; opacity: .9; }
.trace-brk { fill: none; stroke: url(#tr); stroke-width: 2.5; stroke-linejoin: round; }
.trace .dot { fill: var(--text); }
.trace-thr, .trace-brk { stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 2.4s ease-out .2s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 520px; opacity: .8; }
}

/* ── Builder layout ── */
.builder { padding-block: clamp(36px, 5vw, 64px); background: var(--bg-2); border-bottom: 1px solid var(--line); scroll-margin-top: 64px; }
.builder-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.builder-head h2 { font-size: clamp(26px, 3vw, 34px); text-transform: uppercase; }
.steps { position: relative; display: flex; gap: 6px; list-style: none; padding: 0; margin: 0; overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; }
.steps button {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px 0 10px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer;
  font: 500 14px/1 var(--body); color: var(--muted); white-space: nowrap;
}
.steps button:hover { color: var(--text); border-color: var(--line-2); }
.steps button[aria-current="step"] { color: var(--text); border-color: var(--crimson); background: #1d1218; }
.steps .num { font: 500 12px/1 var(--mono); color: var(--faint); }
.steps .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--surface-3); flex: none; }
.steps .dot[data-s="ok"] { background: var(--ok); }
.steps .dot[data-s="warn"] { background: var(--warn); }
.steps .dot[data-s="block"] { background: var(--block); }
.steps .dot[data-s="inc"] { background: var(--muted); }

.builder-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.builder-main { min-width: 0; }

/* Step panel */
.step-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 18px; }
.step-kicker { font: 500 12px/1 var(--mono); color: var(--faint); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; }
.step-head h3 { font-size: clamp(22px, 2.4vw, 28px); }
.step-why { color: var(--muted); margin-top: 8px; max-width: 640px; font-size: 15px; }
.step-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.select {
  min-height: 38px; padding: 0 32px 0 12px; border-radius: 8px; border: 1px solid var(--line-2);
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23a3aab8' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 12px center / 11px;
  appearance: none; color: var(--text); font: 500 14px var(--body);
}
.chipset { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.chip-btn {
  min-height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: transparent;
  color: var(--muted); font: 500 13px/1 var(--body); cursor: pointer;
}
.chip-btn:hover { color: var(--text); border-color: var(--line-2); }
.chip-btn[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }

.step-nav { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.step-nav .grow { flex: 1; }

.notice {
  display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius); margin-bottom: 16px;
  background: var(--surface); border: 1px solid var(--line); font-size: 15px;
}
.notice svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.notice b { font-weight: 600; }
.notice.inc { border-left: 3px solid var(--muted); }
.notice.warn { border-left: 3px solid var(--warn); }
.notice.block { border-left: 3px solid var(--block); }
.notice.ok { border-left: 3px solid var(--ok); }

/* Platform / display tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 26px; }
.tile {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-height: 96px; padding: 16px;
  border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); cursor: pointer; text-align: left;
  transition: border-color .15s, background .15s;
}
.tile:hover { border-color: var(--line-2); background: var(--surface-2); }
.tile[aria-pressed="true"] { border-color: var(--crimson); background: #1f1319; box-shadow: inset 0 0 0 1px var(--crimson); }
.tile b { font: 600 19px/1.1 var(--display); text-transform: uppercase; letter-spacing: .03em; }
.tile span { color: var(--muted); font-size: 13px; line-height: 1.4; }
.tile[aria-disabled="true"] { opacity: .45; }
.sub-h { font: 600 14px/1 var(--display); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 12px; }

/* Presets */
.presets { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.preset {
  display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: var(--radius); text-align: left; cursor: pointer;
  background: linear-gradient(160deg, var(--surface-2), var(--surface)); border: 1px solid var(--line);
}
.preset:hover { border-color: var(--crimson); }
.preset .tag { font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--crimson-ink); }
.preset b { font: 600 18px/1.15 var(--display); }
.preset span { color: var(--muted); font-size: 13px; }
.preset .pp { margin-top: auto; padding-top: 6px; font: 500 15px var(--mono); color: var(--text); }

/* ── Product cards ── */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.card {
  position: relative; display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); transition: border-color .15s, transform .15s;
}
.card:hover { border-color: var(--line-2); }
.card[data-selected] { border-color: var(--crimson); box-shadow: inset 0 0 0 1px var(--crimson); }
.card-art {
  position: relative; display: grid; place-items: center; height: 108px;
  background: radial-gradient(160px 90px at 50% 110%, rgba(224, 36, 63, .18), transparent), var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.card-art svg { width: 58px; height: 58px; fill: none; stroke: var(--text); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; opacity: .9; }
.card-art .brand-tag { position: absolute; left: 10px; top: 10px; font: 500 11px/1 var(--mono); letter-spacing: .06em; color: var(--muted); text-transform: uppercase; }
.card-art .sel-tag { position: absolute; right: 10px; top: 10px; font: 600 11px/1 var(--mono); letter-spacing: .06em; color: #fff; background: var(--crimson); padding: 4px 7px; border-radius: 4px; text-transform: uppercase; }
.card-body { display: flex; flex-direction: column; gap: 8px; padding: 14px 14px 0; flex: 1; }
.card h4 { font: 600 17px/1.2 var(--display); }
.card-blurb { color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; list-style: none; padding: 0; margin: 0; }
.chips li { font: 500 11.5px/1 var(--mono); padding: 5px 7px; border-radius: 4px; background: var(--surface-3); color: #d3d7df; }
.fit { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; line-height: 1.4; padding: 8px 10px; border-radius: 6px; margin-top: 2px; }
.fit svg { width: 15px; height: 15px; flex: none; margin-top: 1px; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.fit b { font-weight: 600; }
.fit-ok { background: var(--ok-bg); color: #b9f2d3; } .fit-ok svg { color: var(--ok); }
.fit-warn { background: var(--warn-bg); color: #fbe2ad; } .fit-warn svg { color: var(--warn); }
.fit-block { background: var(--block-bg); color: #ffc4c4; } .fit-block svg { color: var(--block); }
.fit-none { background: var(--surface-2); color: var(--muted); }
.card-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 12px 14px 14px; }
.price { font: 500 18px/1 var(--mono); }
.price .est { color: var(--faint); margin-right: 1px; }
.ship { flex-basis: 100%; font-size: 12px; color: var(--faint); order: -1; }
.ship.ours::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--crimson); margin-right: 6px; vertical-align: 1px; }
.card-foot .btn { margin-left: auto; }
.card-foot .link-btn { font-size: 13px; }
.card.is-block .card-art svg { opacity: .35; }
.card.is-block h4, .card.is-block .card-blurb { opacity: .7; }

.misfits { margin-top: 18px; border: 1px dashed var(--line-2); border-radius: var(--radius); padding: 4px 14px; }
.misfits summary { cursor: pointer; padding: 12px 0; color: var(--muted); font-weight: 500; list-style-position: inside; }
.misfits[open] summary { margin-bottom: 8px; }
.misfits .cards { padding-bottom: 14px; }
.empty { padding: 28px; text-align: center; border: 1px dashed var(--line-2); border-radius: var(--radius); color: var(--muted); }

.desk-card .card-art svg { stroke: var(--muted); }

/* Extras step sub-sections */
.extra-block + .extra-block { margin-top: 30px; }

/* Review */
.checklist { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); font-size: 14.5px; }
.checklist li svg { width: 18px; height: 18px; flex: none; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.checklist li[data-s="ok"] svg { color: var(--ok); }
.checklist li[data-s="warn"] svg { color: var(--warn); }
.checklist li[data-s="block"] svg { color: var(--block); }
.checklist li[data-s="todo"] svg { color: var(--muted); }
.checklist .ck-t { font-weight: 600; margin-right: 6px; }
.guide { padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); margin-bottom: 24px; }
.guide ul { margin: 10px 0 0; padding-left: 18px; color: var(--muted); }
.guide li + li { margin-top: 6px; }
.buy-split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.buy-box { padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.buy-box h4 { font-size: 17px; margin-bottom: 4px; }
.buy-box p { color: var(--muted); font-size: 14px; }
.buy-box ul { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 6px; font-size: 14px; }
.buy-box li { display: flex; justify-content: space-between; gap: 10px; }
.buy-box li a { color: var(--text); }
.buy-box .btn { width: 100%; margin-top: 4px; }
@media (max-width: 640px) { .buy-split { grid-template-columns: 1fr; } }

/* ── Side panel ── */
.builder-side { position: sticky; top: 80px; }
.side-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; box-shadow: var(--shadow); }
.side-top { display: flex; align-items: center; justify-content: space-between; }
.side-top h3 { font-size: 18px; text-transform: uppercase; letter-spacing: .04em; }
.side-toggle { display: none; }
.rig { width: 100%; height: auto; margin: 8px 0 6px; }
.rig .floor { stroke: var(--line-2); stroke-width: 1.5; }
.rig g { fill: none; stroke: var(--line-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 4 4; transition: stroke .25s; }
.rig g[data-s] { stroke-dasharray: none; }
.rig g[data-s="ok"] { stroke: var(--crimson-hi); }
.rig g[data-s="inc"] { stroke: #c9ced8; }
.rig g[data-s="warn"] { stroke: var(--warn); }
.rig g[data-s="block"] { stroke: var(--block); }
.rig g[data-s="ok"] rect, .rig g[data-s="ok"] ellipse { fill: rgba(224, 36, 63, .14); }
.side-status { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; padding: 10px 12px; border-radius: 8px; background: var(--surface-2); }
.side-status svg { width: 16px; height: 16px; flex: none; margin-top: 2px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.side-status[data-s="ok"] { color: #b9f2d3; } .side-status[data-s="ok"] svg { color: var(--ok); }
.side-status[data-s="warn"] { color: #fbe2ad; } .side-status[data-s="warn"] svg { color: var(--warn); }
.side-status[data-s="block"] { color: #ffc4c4; } .side-status[data-s="block"] svg { color: var(--block); }
.side-list { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 2px; }
.side-list button {
  width: 100%; display: grid; grid-template-columns: 10px 96px 1fr auto; gap: 10px; align-items: center; text-align: left;
  padding: 7px 8px; border-radius: 6px; border: 0; background: transparent; cursor: pointer; font-size: 13.5px;
}
.side-list button:hover { background: var(--surface-2); }
.side-list .lbl { color: var(--faint); font-size: 11.5px; white-space: nowrap; text-transform: uppercase; letter-spacing: .04em; }
.side-list .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-list .nm.dim { color: var(--faint); }
.side-list .pr { font: 500 12.5px var(--mono); color: var(--muted); }
.side-list .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--surface-3); }
.side-list .dot[data-s="ok"] { background: var(--ok); }
.side-list .dot[data-s="warn"] { background: var(--warn); }
.side-list .dot[data-s="block"] { background: var(--block); }
.side-list .dot[data-s="inc"] { background: var(--muted); }
.side-totals { margin: 0 0 14px; padding-top: 12px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; font-size: 14px; }
.side-totals dt { color: var(--muted); }
.side-totals dd { margin: 0; font: 500 14px var(--mono); text-align: right; }
.side-totals .tot dt { color: var(--text); font-weight: 600; }
.side-totals .tot dd { font-size: 20px; color: var(--text); }
.side-totals > div { display: contents; }
.side-actions { display: grid; gap: 8px; }
.side-actions-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.side-actions .btn { width: 100%; }

@media (max-width: 1020px) {
  .builder-grid { grid-template-columns: 1fr; }
  .builder-side { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 30; }
  .side-card { border-radius: 16px 16px 0 0; border-bottom: 0; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); max-height: 82vh; overflow: auto; }
  .side-toggle { display: inline-flex; min-height: 36px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; font-size: 14px; }
  .builder-side:not(.open) .rig,
  .builder-side:not(.open) .side-list,
  .builder-side:not(.open) .side-actions { display: none; }
  .builder-side:not(.open) .side-card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 12px; }
  .builder-side:not(.open) .side-top { grid-column: 1 / -1; }
  .builder-side:not(.open) .side-top h3 { font-size: 15px; }
  .builder-side:not(.open) .side-status { padding: 0; background: none; font-size: 13px; }
  .builder-side:not(.open) .side-totals { margin: 0; padding: 0; border: 0; }
  .builder-side:not(.open) .side-totals > :not(.tot) { display: none; }
  .builder-side:not(.open) .side-totals .tot dt { display: none; }
  .side-top h3 small { display: none; }
  .builder-side .rig { max-width: 360px; margin-inline: auto; }
  body.has-sidebar { padding-bottom: 130px; }
  .card-art { height: 84px; }
}

/* ── How it works ── */
.how { padding-block: clamp(48px, 7vw, 88px); }
.how h2, .channel h2, .faq h2 { font-size: clamp(26px, 3.4vw, 40px); max-width: 760px; text-transform: uppercase; }
.how-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1px; margin-top: 32px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.how-grid article { background: var(--bg); padding: 24px; }
.how-grid h3 { font-size: 19px; margin-bottom: 10px; }
.how-grid h3::before { content: ''; display: block; width: 22px; height: 4px; background: var(--crimson); margin-bottom: 14px; transform: skewX(-20deg); }
.how-grid p { color: var(--muted); font-size: 15px; }
.how-grid strong { color: var(--text); font-weight: 600; }

/* ── Channel ── */
.channel { padding-block: clamp(48px, 7vw, 88px); background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-block: 1px solid var(--line); }
.channel-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.channel p { color: var(--muted); margin-top: 16px; max-width: 560px; }
.channel-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.video-slot {
  aspect-ratio: 16 / 9; display: grid; place-items: center; align-content: center; gap: 10px; border-radius: var(--radius-lg);
  border: 1px dashed var(--line-2); background: var(--surface); color: var(--faint); font: 500 13px var(--mono); text-transform: uppercase; letter-spacing: .08em;
}
.video-slot svg { width: 44px; height: 44px; fill: var(--crimson); }
@media (max-width: 820px) { .channel-inner { grid-template-columns: 1fr; } }

/* ── FAQ ── */
.faq { padding-block: clamp(48px, 7vw, 88px); }
.faq-inner { max-width: 860px; }
.faq h2 { margin-bottom: 24px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 0; font: 600 18px/1.3 var(--display); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font: 400 24px/1 var(--mono); color: var(--crimson); }
.faq details[open] summary::after { content: '–'; }
.faq details p { padding-bottom: 18px; color: var(--muted); }

/* ── Footer ── */
.site-footer { padding-block: 36px 48px; border-top: 1px solid var(--line); color: var(--faint); font-size: 13px; }
.footer-inner { display: grid; gap: 10px; }
.footer-inner p { max-width: 860px; }

/* ── Modal + cart drawer ── */
dialog { color: var(--text); }
dialog::backdrop { background: rgba(4, 5, 8, .72); backdrop-filter: blur(3px); }
.modal {
  width: min(680px, calc(100vw - 24px)); max-height: calc(100vh - 48px); padding: 0; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow);
}
.modal-head { display: flex; gap: 16px; align-items: flex-start; padding: 20px 20px 0; }
.modal-head .card-art { width: 96px; height: 96px; border-radius: var(--radius); border: 1px solid var(--line); flex: none; }
.modal-head .card-art svg { width: 50px; height: 50px; }
.modal-head h2 { font-size: 24px; margin-top: 4px; }
.modal-head .brand { font: 500 12px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.modal-x { margin-left: auto; width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--line); background: transparent; cursor: pointer; font-size: 20px; }
.modal-body { padding: 16px 20px 20px; display: grid; gap: 16px; }
.modal-body > p { color: var(--muted); }
.spec { display: grid; grid-template-columns: 150px 1fr; gap: 0; margin: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; font-size: 14px; }
.spec dt, .spec dd { margin: 0; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.spec dt { color: var(--muted); background: var(--surface-2); }
.spec dt:nth-last-of-type(1), .spec dd:last-of-type { border-bottom: 0; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding-top: 4px; }
.modal-actions .price { font-size: 24px; }
.modal-actions .row { display: flex; gap: 8px; flex-wrap: wrap; }

.drawer {
  margin: 0 0 0 auto; height: 100vh; max-height: 100vh; width: min(440px, 100vw); padding: 0; border: 0; border-left: 1px solid var(--line-2);
  background: var(--surface); display: none; flex-direction: column;
}
.drawer[open] { display: flex; animation: slide .2s ease-out; }
@keyframes slide { from { transform: translateX(30px); opacity: 0; } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 20px; text-transform: uppercase; }
.drawer-body { flex: 1; overflow: auto; padding: 16px 20px; display: grid; align-content: start; gap: 20px; }
.drawer-sec h3 { font: 600 13px/1 var(--display); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 10px; }
.drawer-sec > p { color: var(--faint); font-size: 13px; margin-bottom: 10px; }
.line { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.line .nm { font-weight: 600; }
.line .br { color: var(--faint); font-size: 12px; grid-column: 1; }
.line .pr { font: 500 14px var(--mono); text-align: right; }
.line .ctl { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 6px; }
.qty button { width: 32px; height: 32px; border: 0; background: transparent; cursor: pointer; font-size: 16px; }
.qty span { min-width: 24px; text-align: center; font: 500 13px var(--mono); }
.line .rm { margin-left: auto; }
.line a.btn { margin-left: auto; }
.drawer-foot { padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: grid; gap: 10px; }
.drawer-foot .sum { display: flex; justify-content: space-between; font: 500 18px var(--mono); }
.drawer-foot .sum span:first-child { font: 600 16px var(--body); }
.drawer-foot .note { font-size: 13px; color: var(--warn); }
.drawer-empty { color: var(--muted); text-align: center; padding: 40px 0; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 80;
  background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: 8px; font-weight: 600; font-size: 14px;
  transition: opacity .2s, transform .2s; max-width: calc(100vw - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 1020px) { body.has-sidebar .toast { bottom: 120px; } }

/* ── Shop page ── */
.shop-head { padding-block: clamp(32px, 5vw, 56px) 20px; border-bottom: 1px solid var(--line); }
.shop-head h1 { font-size: clamp(30px, 4vw, 48px); text-transform: uppercase; }
.shop-head p { color: var(--muted); margin-top: 10px; max-width: 640px; }
.build-bar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-top: 20px; padding: 12px 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); font-size: 14px; }
.build-bar b { font-weight: 600; }
.build-bar a { margin-left: auto; }
.shop-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; padding-block: 28px 64px; }
.filters { display: grid; gap: 22px; align-content: start; position: sticky; top: 84px; }
.filters fieldset { border: 0; padding: 0; margin: 0; }
.filters legend { font: 600 13px/1 var(--display); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 10px; padding: 0; }
.filters .chipset { margin: 0; }
.shop-count { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
@media (max-width: 860px) {
  .shop-grid { grid-template-columns: 1fr; }
  .filters { position: static; }
}
