/* Handshake Collective Marketplace
   Visual language: a printed circuit board. Solder-mask green, copper pads and traces,
   silkscreen-white type. The copper "build meter" (20 pads) recurs everywhere a
   template's completeness is shown. */

/* Self-hosted fonts (SIL OFL 1.1). Archivo is variable on weight and width. */
@font-face {
  font-family: "Archivo"; font-style: normal; font-display: swap;
  font-weight: 100 900; font-stretch: 62% 125%;
  src: url(../fonts/archivo-wdth-latin.woff2) format("woff2-variations"), url(../fonts/archivo-wdth-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo"; font-style: normal; font-display: swap;
  font-weight: 100 900; font-stretch: 62% 125%;
  src: url(../fonts/archivo-wdth-latin-ext.woff2) format("woff2-variations"), url(../fonts/archivo-wdth-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/plex-mono-400.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/plex-mono-400-italic.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/plex-mono-500.woff2) format("woff2"); }

:root {
  --mask: #0c2117;
  --mask-2: #11291d;
  --mask-3: #173325;
  --trace: #24503a;
  --trace-2: #356b4f;
  --copper: #d4934f;
  --copper-2: #edb273;
  --copper-deep: #6b4524;
  --silk: #edf2ea;
  --silk-2: #aec3b5;
  --silk-3: #83a08f;
  --danger: #f0a08c;

  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --radius: 10px;
  --radius-lg: 16px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--mask);
  color: var(--silk-2);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { color: var(--silk); margin: 0; font-weight: 650; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
code, pre, .mono { font-family: var(--mono); }

:focus-visible { outline: 2px solid var(--copper-2); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--copper); color: var(--mask); }

.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: 12px; top: -60px; z-index: 100; background: var(--copper); color: var(--mask); padding: 10px 14px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* ───────── Type ───────── */

.display {
  font-stretch: 122%;
  font-weight: 680;
  font-size: clamp(46px, 7.4vw, 104px);
  line-height: .94;
  letter-spacing: -.035em;
  color: var(--silk);
}
.h2 {
  font-stretch: 116%;
  font-weight: 640;
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.04;
  letter-spacing: -.025em;
}
.h3 { font-stretch: 108%; font-size: 21px; line-height: 1.25; letter-spacing: -.01em; font-weight: 620; }
.lead { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; color: var(--silk-2); max-width: 60ch; }
.small { font-size: 14px; line-height: 1.55; }
.muted { color: var(--silk-3); }

/* ───────── Buttons ───────── */

.btn {
  --bg: transparent; --fg: var(--silk); --bd: var(--trace-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 20px;
  background: var(--bg); color: var(--fg);
  border: 1px solid var(--bd); border-radius: 999px;
  font-weight: 600; font-size: 15px; letter-spacing: .005em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease), transform .18s var(--ease);
}
.btn:hover { --bd: var(--silk-3); --bg: var(--mask-3); }
.btn:active { transform: translateY(1px); }
.btn--primary { --bg: var(--copper); --fg: var(--mask); --bd: var(--copper); }
.btn--primary:hover { --bg: var(--copper-2); --bd: var(--copper-2); }
.btn--small { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: progress; }

.link {
  color: var(--copper-2); text-decoration: underline; text-decoration-color: rgba(237, 178, 115, .35);
  text-underline-offset: 3px; text-decoration-thickness: 1px; cursor: pointer; background: none; border: 0; padding: 0;
}
.link:hover { text-decoration-color: currentColor; }

/* ───────── Build meter ─────────
   20 pads; lit pads = percent already built. */

.meter { display: inline-flex; align-items: center; gap: 10px; }
.meter__pads { display: inline-grid; grid-template-columns: repeat(20, 6px); gap: 3px; }
.meter__pads i {
  height: 12px; border-radius: 2px;
  border: 1px solid var(--trace-2);
  background: transparent;
  transition: background .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.meter__pads i.on { background: var(--copper); border-color: var(--copper); }
.meter__pads i.flash { background: var(--copper-2); border-color: var(--copper-2); box-shadow: 0 0 10px rgba(237, 178, 115, .7); }
.meter__label { font-size: 14px; color: var(--silk); font-weight: 600; font-variant-numeric: tabular-nums; }
.meter--lg .meter__pads { grid-template-columns: repeat(20, minmax(8px, 16px)); gap: 5px; }
.meter--lg .meter__pads i { height: 26px; border-radius: 3px; }

/* ───────── Platform mark ───────── */

.mark {
  display: inline-grid; place-items: center;
  width: 30px; height: 30px; border-radius: 7px;
  background: var(--mask-3); border: 1px solid var(--trace-2);
  color: var(--copper-2); font-weight: 750; font-size: 11.5px; font-stretch: 125%; letter-spacing: .02em;
}
.mark--lg { width: 44px; height: 44px; border-radius: 10px; font-size: 15px; }

/* ───────── Header ───────── */

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(12, 33, 23, .86);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--trace);
}
.site-header__row { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--silk); flex-shrink: 0; }
.brand img { width: 32px; height: 32px; }
.brand__name { font-weight: 680; font-stretch: 112%; letter-spacing: -.01em; font-size: 17px; line-height: 1.1; }
.brand__sub { display: block; font-weight: 450; font-stretch: 100%; font-size: 13px; color: var(--silk-3); letter-spacing: 0; }
.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav a {
  text-decoration: none; color: var(--silk-2); font-size: 15px; font-weight: 500;
  padding: 8px 12px; border-radius: 8px;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--silk); background: var(--mask-3); }
.header-tools { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.search-btn {
  display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 10px 0 14px;
  background: var(--mask-2); border: 1px solid var(--trace); border-radius: 999px;
  color: var(--silk-3); cursor: pointer; font-size: 14px; min-width: 220px;
}
.search-btn:hover { border-color: var(--trace-2); color: var(--silk-2); }
.search-btn svg { width: 16px; height: 16px; }
.kbd {
  margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--silk-3);
  border: 1px solid var(--trace-2); border-radius: 6px; padding: 1px 6px;
}
.cart-btn {
  position: relative; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px;
  border: 1px solid var(--trace-2); border-radius: 999px; background: transparent; cursor: pointer;
  color: var(--silk); font-weight: 600; font-size: 14px;
}
.cart-btn:hover { background: var(--mask-3); }
.cart-btn svg { width: 18px; height: 18px; }
.cart-count {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 6px;
  display: inline-grid; place-items: center; font-size: 12px; font-variant-numeric: tabular-nums;
  background: var(--mask-3); color: var(--silk-3); border: 1px solid var(--trace-2);
}
.cart-count.has { background: var(--copper); color: var(--mask); border-color: var(--copper); }
.cart-count.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.25); } }
.icon-btn.menu-btn { display: none; }

/* ───────── Sections ───────── */

.section { padding: clamp(72px, 9vw, 128px) 0; }
.section + .section { border-top: 1px solid var(--trace); }
.section__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 64px; align-items: end; margin-bottom: 48px; }
.section__head .lead { justify-self: start; }

/* ───────── Hero ───────── */

.hero { padding: clamp(56px, 8vw, 104px) 0 clamp(56px, 6vw, 88px); position: relative; overflow: hidden; }
.hero__intro { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px 64px; align-items: end; }
.hero__copy { display: grid; gap: 28px; padding-bottom: 6px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__tally {
  margin-top: 56px; display: flex; flex-wrap: wrap; gap: 8px 28px; color: var(--silk-3); font-size: 15px;
}
.hero__tally b { color: var(--silk); font-weight: 650; font-variant-numeric: tabular-nums; }

/* ───────── Board (schematic) ───────── */

.board {
  position: relative; margin-top: 56px;
  background:
    radial-gradient(circle at 1px 1px, rgba(174, 195, 181, .09) 1px, transparent 1.4px) 0 0 / 22px 22px,
    var(--mask-2);
  border: 1px solid var(--trace);
  border-radius: var(--radius-lg);
  padding: 20px clamp(16px, 2.6vw, 32px) 28px;
}
.board::before, .board::after {
  /* mounting holes */
  content: ""; position: absolute; top: 14px; width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid var(--trace-2); background: var(--mask);
}
.board::before { left: 14px; }
.board::after { right: 14px; }
.board__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 0 18px 18px; border-bottom: 1px solid var(--trace); }
.tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--mask); border: 1px solid var(--trace); border-radius: 999px; flex-wrap: wrap; }
.tab {
  border: 0; background: transparent; color: var(--silk-3); cursor: pointer;
  font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 999px;
}
.tab:hover { color: var(--silk); }
.tab[aria-selected="true"] { background: var(--mask-3); color: var(--silk); box-shadow: inset 0 0 0 1px var(--trace-2); }
.board__open { font-size: 14px; }

.board__grid {
  position: relative;
  display: grid; grid-template-columns: minmax(170px, .85fr) minmax(220px, 1fr) minmax(300px, 1.45fr);
  gap: 72px; padding-top: 26px; align-items: center;
}
.board__col { position: relative; z-index: 1; display: grid; gap: 14px; align-content: center; }
.board__label { font-size: 13px; font-weight: 600; color: var(--silk-3); letter-spacing: .01em; }
.board__traces { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; overflow: visible; }
.board__caption { margin: 22px 18px 0; color: var(--silk-2); font-size: 15px; max-width: 72ch; }

.trace { fill: none; stroke: var(--trace-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.trace.live { stroke: var(--copper); transition: stroke-dashoffset .7s var(--ease), stroke .4s var(--ease); }
.trace-ghost { fill: none; stroke: var(--trace); stroke-width: 2; stroke-dasharray: 2 5; }
.via { fill: var(--mask); stroke: var(--copper); stroke-width: 2; }
.pulse { fill: var(--copper-2); filter: drop-shadow(0 0 4px rgba(237, 178, 115, .9)); opacity: 0; }

.nodes { list-style: none; display: grid; gap: 10px; }
.node {
  position: relative; display: grid; gap: 1px;
  padding: 11px 26px 11px 14px; border-radius: 9px;
  background: var(--mask); border: 1px solid var(--trace);
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.node__name { color: var(--silk); font-weight: 600; font-size: 15px; line-height: 1.3; }
.node__kind { color: var(--silk-3); font-size: 13px; line-height: 1.35; }
.node .pad {
  position: absolute; right: -7px; top: 50%; width: 12px; height: 12px; margin-top: -6px;
  border-radius: 3px; background: var(--mask-2); border: 2px solid var(--trace-2);
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.node--out { padding: 11px 14px 11px 26px; }
.node--out .pad { right: auto; left: -7px; }
.node.on { border-color: var(--trace-2); }
.node.on .pad { background: var(--copper); border-color: var(--copper); }

/* The chip: an IC package with pins down both sides. */
.chip { position: relative; padding: 0 12px; }
.chip::before, .chip::after {
  content: ""; position: absolute; top: 18px; bottom: 18px; width: 12px;
  background: repeating-linear-gradient(to bottom, var(--trace-2) 0 6px, transparent 6px 16px);
}
.chip::before { left: 0; }
.chip::after { right: 0; }
.chip__body {
  position: relative; display: grid; gap: 14px;
  padding: 24px 22px 22px; border-radius: 10px;
  background: linear-gradient(180deg, #16231c, #101a15);
  border: 1px solid #2c3d33;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .04);
}
.chip__body::before {
  /* pin-1 dot */
  content: ""; position: absolute; left: 12px; top: 12px; width: 7px; height: 7px; border-radius: 50%; background: #2c3d33;
}
.chip__name { font-stretch: 112%; font-size: 19px; line-height: 1.2; letter-spacing: -.01em; }
.chip__size { color: var(--silk-3); font-size: 14px; font-variant-numeric: tabular-nums; }
.chip__status { font-size: 14px; color: var(--silk-2); min-height: 1.5em; }
.chip__status b { color: var(--copper-2); font-weight: 600; }
.chip .meter__pads { grid-template-columns: repeat(20, minmax(5px, 1fr)); width: 100%; }
.chip .meter { display: grid; gap: 8px; }

/* Output previews */
.out {
  position: relative; min-height: 360px; border-radius: 12px; overflow: hidden;
  background: var(--mask); border: 1px solid var(--trace);
}
.out-wrap { position: relative; }
.out-wrap .pad-in {
  position: absolute; left: -7px; z-index: 2; width: 12px; height: 12px; margin-top: -6px; border-radius: 3px;
  background: var(--mask-2); border: 2px solid var(--trace-2); transition: background .3s, border-color .3s;
}
.out-wrap.live .pad-in { background: var(--copper); border-color: var(--copper); }

/* Items inside an output preview wait for .live, then arrive in order using --d. */
.out .step { opacity: .0; transform: translateY(6px); transition: opacity .45s var(--ease), transform .45s var(--ease); transition-delay: var(--d, 0ms); }
.out.live .step { opacity: 1; transform: none; }
.out .ghost { transition: opacity .35s var(--ease); transition-delay: var(--d, 0ms); }
.out.live .ghost { opacity: 0; }

/* Scenario A: app mock */
.app-mock { display: grid; grid-template-rows: auto 1fr; height: 100%; min-height: 360px; background: #f4f6f3; color: #1d2a22; font-size: 12.5px; }
.app-mock__bar { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #fff; border-bottom: 1px solid #e2e7e2; }
.app-mock__logo { width: 26px; height: 26px; border-radius: 6px; background: #d9dfda; position: relative; overflow: hidden; }
.app-mock__logo .step { position: absolute; inset: 0; background: var(--copper); }
.app-mock__logo .step::after { content: ""; position: absolute; inset: 7px; border: 2.5px solid #fff; border-radius: 3px; border-right-color: transparent; }
.app-mock__title { position: relative; font-weight: 700; font-size: 13.5px; min-width: 130px; height: 18px; }
.app-mock__title .ghost { position: absolute; inset: 3px 20px 3px 0; background: #e2e7e2; border-radius: 4px; }
.app-mock__title .step { position: absolute; inset: 0; white-space: nowrap; }
.app-mock__cart { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: #3c4b42; }
.app-mock__cart b { display: inline-grid; place-items: center; min-width: 20px; height: 20px; border-radius: 6px; background: #1d2a22; color: #fff; font-size: 11px; }
.app-mock__body { display: grid; grid-template-columns: 92px 1fr; min-height: 0; }
.app-mock__rail { padding: 12px 10px; display: grid; gap: 4px; align-content: start; border-right: 1px solid #e2e7e2; background: #fafbf9; }
.app-mock__rail span { padding: 5px 8px; border-radius: 6px; color: #55665c; }
.app-mock__rail span:first-child { background: #1d2a22; color: #fff; }
.app-mock__grid { padding: 12px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; align-content: start; }
.tile { position: relative; background: #fff; border: 1px solid #e2e7e2; border-radius: 8px; padding: 7px; display: grid; gap: 5px; min-height: 104px; }
.tile__img { aspect-ratio: 4 / 3; border-radius: 5px; background: #e9ede9; position: relative; overflow: hidden; }
.tile__img .step { position: absolute; inset: 0; }
.tile__name { font-weight: 600; font-size: 11.5px; line-height: 1.25; position: relative; min-height: 14px; }
.tile__name .ghost { position: absolute; inset: 2px 8px 2px 0; background: #e9ede9; border-radius: 3px; }
.tile__price { font-size: 11px; color: #55665c; }
.app-mock__toast {
  position: absolute; left: 50%; bottom: 14px; translate: -50% 0; white-space: nowrap;
  background: #1d2a22; color: #fff; font-weight: 600; font-size: 12px; padding: 9px 14px; border-radius: 8px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .25);
}

/* Scenario B: documents */
.docs-mock { display: grid; gap: 12px; padding: 16px; height: 100%; min-height: 360px; align-content: start; font-size: 13px; }
.picker { border: 1px solid var(--trace); border-radius: 9px; overflow: hidden; background: var(--mask-2); }
.picker__head { display: flex; justify-content: space-between; padding: 8px 12px; border-bottom: 1px solid var(--trace); color: var(--silk); font-weight: 600; }
.picker__head span:last-child { color: var(--copper-2); font-variant-numeric: tabular-nums; }
.picker__row { display: grid; grid-template-columns: 16px 1fr auto; gap: 10px; align-items: center; padding: 6px 12px; color: var(--silk-2); }
.picker__row + .picker__row { border-top: 1px solid rgba(36, 80, 58, .6); }
.picker__row.done { color: var(--silk-3); text-decoration: line-through; text-decoration-color: rgba(131, 160, 143, .5); }
.check { width: 14px; height: 14px; border-radius: 3px; border: 1.5px solid var(--trace-2); position: relative; }
.check .step { position: absolute; inset: -1.5px; border-radius: 3px; background: var(--copper); }
.check .step::after { content: ""; position: absolute; left: 4px; top: 1px; width: 4px; height: 8px; border: solid var(--mask); border-width: 0 2px 2px 0; rotate: 45deg; }
.docs-row { display: grid; grid-template-columns: 132px 1fr; gap: 14px; align-items: start; }
.pdf-fan { position: relative; height: 150px; }
.pdf {
  position: absolute; top: 0; width: 96px; height: 124px; border-radius: 6px; background: #f6f3ec; color: #2a2a26;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .35); padding: 10px 9px; font-size: 9px; line-height: 1.3;
  display: grid; align-content: start; gap: 5px;
}
.pdf b { font-size: 10px; font-weight: 700; }
.pdf i { display: block; height: 3px; background: #ddd7ca; border-radius: 2px; }
.pdf .seal { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--copper); justify-self: end; margin-top: 6px; }
.pdf__tag { position: absolute; bottom: -18px; left: 0; font-family: var(--mono); font-size: 10.5px; color: var(--silk-3); white-space: nowrap; }
.drafts { display: grid; gap: 6px; }
.draft { border: 1px solid var(--trace); border-radius: 8px; padding: 7px 10px; background: var(--mask-2); display: grid; gap: 1px; }
.draft b { color: var(--silk); font-weight: 600; font-size: 13px; }
.draft span { color: var(--silk-3); font-size: 12px; }
.draft__clip { color: var(--copper-2) !important; }

/* Scenario C: terminal */
.term { height: 100%; min-height: 360px; display: grid; grid-template-rows: auto 1fr auto; background: #08150f; font-family: var(--mono); font-size: 12.5px; line-height: 1.75; }
.term__bar { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--trace); }
.term__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--trace-2); }
.term__body { padding: 12px 16px; color: var(--silk-2); white-space: pre; overflow: hidden; }
.term__body .cmd { color: var(--silk); }
.term__body .ok { color: #8fd1ae; }
.term__body .warn { color: var(--copper-2); }
.term__files { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 16px; border-top: 1px solid var(--trace); }
.file-chip { border: 1px solid var(--trace-2); border-radius: 6px; padding: 2px 8px; color: var(--silk); font-size: 12px; }

/* ───────── Platforms strip ───────── */

.platforms { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border: 1px solid var(--trace); border-radius: var(--radius-lg); overflow: hidden; }
.platforms li + li { border-left: 1px solid var(--trace); }
.platforms a { display: grid; gap: 10px; padding: 22px 20px 24px; height: 100%; text-decoration: none; transition: background .2s var(--ease); }
.platforms a:hover { background: var(--mask-2); }
.platforms__name { color: var(--silk); font-weight: 620; font-size: 16px; line-height: 1.25; }
.platforms__count { color: var(--silk-3); font-size: 14px; }
.platforms__blurb { color: var(--silk-2); font-size: 14px; line-height: 1.5; }

/* ───────── Product cards ───────── */

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card {
  position: relative; display: grid; grid-template-rows: auto auto 1fr auto auto; gap: 14px;
  padding: 22px 22px 20px; border-radius: var(--radius-lg);
  background: var(--mask-2); border: 1px solid var(--trace);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.card:hover { border-color: var(--trace-2); background: #132d20; }
.card__top { display: flex; align-items: center; gap: 10px; color: var(--silk-3); font-size: 14px; }
.card__name { font-stretch: 108%; font-size: 21px; line-height: 1.2; letter-spacing: -.012em; }
.card__name a { text-decoration: none; }
.card__name a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card__summary { font-size: 15px; line-height: 1.55; color: var(--silk-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__build { display: grid; gap: 6px; padding-top: 14px; border-top: 1px solid var(--trace); }
.card__size { font-size: 13.5px; color: var(--silk-3); font-variant-numeric: tabular-nums; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card__foot .btn { position: relative; z-index: 2; }
.price { color: var(--silk); font-weight: 650; font-size: 20px; font-stretch: 108%; font-variant-numeric: tabular-nums; }
.price--strike { color: var(--silk-3); font-weight: 450; text-decoration: line-through; font-size: 15px; margin-left: 8px; }

/* ───────── Split table: built vs bring ───────── */

.split { border: 1px solid var(--trace); border-radius: var(--radius-lg); overflow: hidden; }
.split__row { display: grid; grid-template-columns: 220px 1fr 1fr; }
.split__row + .split__row { border-top: 1px solid var(--trace); }
.split__row > * { padding: 22px 26px; }
.split__row > * + * { border-left: 1px solid var(--trace); }
.split__head { background: var(--mask-2); color: var(--silk); font-weight: 620; font-size: 15px; }
.split__head > * { padding-top: 16px; padding-bottom: 16px; }
.split__platform { display: flex; align-items: center; gap: 12px; color: var(--silk); font-weight: 620; }
.split__row p { font-size: 15px; line-height: 1.6; }
.split__row .bring { color: var(--silk); }

.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 56px; }
.steps li { counter-increment: step; display: grid; gap: 8px; padding-top: 18px; border-top: 2px solid var(--trace-2); position: relative; }
.steps li::before {
  content: counter(step); position: absolute; top: -13px; left: 0;
  width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center;
  background: var(--mask); border: 2px solid var(--copper); color: var(--copper-2); font-size: 12px; font-weight: 700;
}
.steps h3 { font-size: 17px; font-stretch: 106%; margin-top: 8px; }
.steps p { font-size: 15px; }

/* ───────── Engineering ───────── */

.eng { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
.principles { list-style: none; display: grid; gap: 4px; }
.principle {
  display: grid; gap: 4px; padding: 16px 18px; border-radius: 12px; border: 1px solid transparent; cursor: default;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.principle[tabindex] { cursor: pointer; }
.principle:hover, .principle:focus-visible, .principle.active { background: var(--mask-2); border-color: var(--trace); }
.principle h3 { font-size: 17px; font-stretch: 106%; }
.principle p { font-size: 15px; }

/* ───────── Code block ───────── */

.code { border: 1px solid var(--trace); border-radius: 12px; overflow: hidden; background: #08150f; }
.code__bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--trace); background: var(--mask-2); }
.code__file { font-family: var(--mono); font-size: 13px; color: var(--silk-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.code__copy { margin-left: auto; }
.code pre { margin: 0; padding: 14px 0; overflow-x: auto; font-size: 13px; line-height: 1.7; tab-size: 4; }
.code .ln { display: block; padding: 0 18px 0 0; transition: background .2s var(--ease); }
.code .ln::before {
  content: attr(data-n); display: inline-block; width: 44px; padding-right: 14px; text-align: right;
  color: #44624f; user-select: none;
}
.code .ln.hl { background: rgba(212, 147, 79, .13); box-shadow: inset 2px 0 0 var(--copper); }
.code.dim .ln:not(.hl) { opacity: .45; }
.tok-c { color: #6f8c7b; font-style: italic; }
.tok-s { color: #e3b07a; }
.tok-k { color: #8fd1ae; }
.tok-f { color: #f1f4ee; font-weight: 500; }
.tok-n { color: #a9cbe6; }
.tok-v { color: #c4d99a; }

/* ───────── CTA ───────── */

.cta { display: grid; grid-template-columns: minmax(0, 1.2fr) auto; gap: 32px 48px; align-items: end; padding: clamp(32px, 5vw, 56px); border-radius: 20px; border: 1px solid var(--trace-2); background: linear-gradient(135deg, #12301f, #0e2519 60%); }
.cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ───────── FAQ ───────── */

.faq { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 48px; }
.faq__list { border-top: 1px solid var(--trace); }
.faq__item { border-bottom: 1px solid var(--trace); }
.faq__q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; background: none; border: 0; cursor: pointer; text-align: left;
  color: var(--silk); font-size: 17px; font-weight: 580;
}
.faq__icon { flex-shrink: 0; width: 22px; height: 22px; position: relative; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 4px; right: 4px; top: 10px; height: 2px; background: var(--copper); border-radius: 2px; transition: transform .3s var(--ease); }
.faq__icon::after { transform: rotate(90deg); }
.faq__q[aria-expanded="true"] .faq__icon::after { transform: rotate(0); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s var(--ease); }
.faq__a > div { overflow: hidden; }
.faq__a p { padding: 0 40px 24px 0; max-width: 64ch; }
.faq__q[aria-expanded="true"] + .faq__a { grid-template-rows: 1fr; }

/* ───────── Footer ───────── */

.site-footer { border-top: 1px solid var(--trace); padding: 56px 0 40px; margin-top: 0; }
.site-footer__row { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 32px; }
.site-footer h4 { font-size: 14px; color: var(--silk); margin-bottom: 12px; font-weight: 600; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; color: var(--silk-3); font-size: 14.5px; }
.site-footer a:hover { color: var(--silk); }
.site-footer__base { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--trace); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: var(--silk-3); font-size: 13.5px; }

/* ───────── Catalog ───────── */

.page-head { padding: 56px 0 36px; border-bottom: 1px solid var(--trace); }
.page-head__row { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.page-head .h2 { font-size: clamp(36px, 4.6vw, 60px); }
.page-head p { margin-top: 12px; }
.catalog { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 40px; padding-top: 36px; padding-bottom: 96px; }
.filters { position: sticky; top: 96px; align-self: start; display: grid; gap: 28px; }
.filters h2 { font-size: 14px; color: var(--silk-3); font-weight: 600; margin-bottom: 8px; }
.filter-list { list-style: none; display: grid; gap: 2px; }
.filter-list button {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 9px 12px; border: 0; border-radius: 8px; background: transparent; cursor: pointer;
  color: var(--silk-2); font-size: 15px; text-align: left;
}
.filter-list button:hover { background: var(--mask-2); color: var(--silk); }
.filter-list button[aria-pressed="true"] { background: var(--mask-3); color: var(--silk); box-shadow: inset 2px 0 0 var(--copper); }
.filter-list .count { color: var(--silk-3); font-size: 13px; font-variant-numeric: tabular-nums; }
.toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 20px; }
.toolbar__count { color: var(--silk-3); font-size: 14px; margin-right: auto; }
.field { display: grid; gap: 6px; }
.field label, .field .label { font-size: 14px; color: var(--silk); font-weight: 560; }
.field .hint { font-size: 13px; color: var(--silk-3); }
.input, .select, .textarea {
  width: 100%; min-height: 46px; padding: 10px 14px;
  background: var(--mask); border: 1px solid var(--trace-2); border-radius: 10px; color: var(--silk);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.input::placeholder, .textarea::placeholder { color: #6b8777; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--copper); box-shadow: 0 0 0 3px rgba(212, 147, 79, .2); }
.input[aria-invalid="true"] { border-color: var(--danger); }
.error { color: var(--danger); font-size: 13.5px; }
.select { appearance: none; padding-right: 38px; background-image: linear-gradient(45deg, transparent 50%, var(--silk-3) 50%), linear-gradient(135deg, var(--silk-3) 50%, transparent 50%); background-position: right 18px center, right 13px center; background-size: 5px 5px; background-repeat: no-repeat; min-width: 200px; width: auto; }
.textarea { min-height: 110px; resize: vertical; }
.search-input { position: relative; min-width: min(360px, 100%); }
.search-input .input { padding-left: 40px; }
.search-input svg { position: absolute; left: 14px; top: 50%; translate: 0 -50%; width: 16px; height: 16px; color: var(--silk-3); }
.empty { border: 1px dashed var(--trace-2); border-radius: var(--radius-lg); padding: 48px 32px; display: grid; gap: 14px; justify-items: start; }
.empty h2 { font-size: 22px; font-stretch: 108%; }

/* ───────── Product page ───────── */

.crumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: 14px; color: var(--silk-3); padding-top: 28px; }
.crumbs a { color: var(--silk-3); text-decoration: none; }
.crumbs a:hover { color: var(--silk); }
.product { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; padding: 28px 0 96px; align-items: start; }
.product__head { display: grid; gap: 18px; }
.product > * { min-width: 0; }
.product__platform { display: flex; align-items: center; gap: 12px; color: var(--silk-2); font-weight: 560; }
.product__name { font-stretch: 120%; font-weight: 680; font-size: clamp(36px, 5vw, 64px); line-height: 1; letter-spacing: -.03em; }
.product__build { margin-top: 36px; padding: 26px 28px; border-radius: var(--radius-lg); background: var(--mask-2); border: 1px solid var(--trace); display: grid; gap: 20px; }
.product__build-top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.product__pct { font-stretch: 120%; font-size: 40px; font-weight: 680; color: var(--silk); line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.product__pct span { font-size: 17px; font-weight: 500; color: var(--silk-2); letter-spacing: 0; margin-left: 8px; font-stretch: 100%; }
.product__bring { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: baseline; }
.product__bring h3 { font-size: 15px; color: var(--silk); font-weight: 600; }
.product__bring ul { list-style: none; display: grid; gap: 6px; }
.product__bring li { position: relative; padding-left: 20px; font-size: 15px; color: var(--silk-2); }
.product__bring li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 9px; height: 9px; border-radius: 2px; border: 1.5px solid var(--trace-2); }

.board--compact { margin-top: 24px; padding-bottom: 22px; }
.board--compact .board__grid { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr) minmax(0, 1fr); gap: 56px; padding-top: 8px; }
.board--compact::before, .board--compact::after { display: none; }

.ptabs { margin-top: 48px; }
.ptabs__list { display: flex; gap: 2px; border-bottom: 1px solid var(--trace); overflow-x: auto; scrollbar-width: none; }
.ptabs__list button {
  background: none; border: 0; cursor: pointer; padding: 12px 16px; color: var(--silk-3); font-weight: 600; font-size: 15px;
  border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap;
}
.ptabs__list button:hover { color: var(--silk); }
.ptabs__list button[aria-selected="true"] { color: var(--silk); border-bottom-color: var(--copper); }
.ptabs__panel { padding-top: 28px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.ptabs__panel[hidden] { display: none; }
.prose { display: grid; gap: 16px; max-width: 68ch; }
.prose p { font-size: 16.5px; line-height: 1.7; }
.ticks { list-style: none; display: grid; gap: 10px; max-width: 72ch; }
.ticks li { position: relative; padding-left: 28px; font-size: 15.5px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 10px; height: 10px; border-radius: 2px; background: var(--copper); }
.manifest { border: 1px solid var(--trace); border-radius: 12px; overflow: hidden; }
.manifest__row { display: grid; grid-template-columns: minmax(180px, .9fr) 1.1fr; gap: 16px; padding: 13px 18px; font-size: 15px; }
.manifest__row + .manifest__row { border-top: 1px solid var(--trace); }
.manifest__row code { color: var(--silk); font-size: 13.5px; word-break: break-word; }
.numbered { list-style: none; counter-reset: n; display: grid; gap: 14px; max-width: 72ch; }
.numbered li { counter-increment: n; display: grid; grid-template-columns: 30px 1fr; gap: 14px; font-size: 15.5px; }
.numbered li::before {
  content: counter(n); width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center;
  border: 1.5px solid var(--trace-2); color: var(--copper-2); font-size: 13px; font-weight: 700;
}

.buy { position: sticky; top: 96px; display: grid; gap: 20px; padding: 24px; border-radius: var(--radius-lg); background: var(--mask-2); border: 1px solid var(--trace-2); }
.buy__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.buy__price .price { font-size: 34px; }
.buy fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.buy legend { font-size: 14px; color: var(--silk); font-weight: 600; margin-bottom: 8px; padding: 0; }
.choice { position: relative; display: grid; grid-template-columns: 20px 1fr auto; gap: 4px 12px; padding: 13px 14px; border: 1px solid var(--trace); border-radius: 11px; cursor: pointer; transition: border-color .15s var(--ease), background .15s var(--ease); }
.choice:hover { border-color: var(--trace-2); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice__dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--trace-2); margin-top: 2px; transition: border-color .15s, box-shadow .15s; }
.choice__box { width: 18px; height: 18px; border-radius: 5px; border: 2px solid var(--trace-2); margin-top: 2px; position: relative; }
.choice__name { color: var(--silk); font-weight: 600; font-size: 15px; }
.choice__val { color: var(--silk); font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; }
.choice__note { grid-column: 2 / -1; font-size: 13.5px; color: var(--silk-3); line-height: 1.45; }
.choice:has(input:checked) { border-color: var(--copper); background: rgba(212, 147, 79, .06); }
.choice:has(input:checked) .choice__dot { border-color: var(--copper); box-shadow: inset 0 0 0 4px var(--mask-2), inset 0 0 0 10px var(--copper); }
.choice:has(input:checked) .choice__box { background: var(--copper); border-color: var(--copper); }
.choice:has(input:checked) .choice__box::after { content: ""; position: absolute; left: 4px; top: 0; width: 5px; height: 10px; border: solid var(--mask); border-width: 0 2px 2px 0; rotate: 45deg; }
.choice:has(input:focus-visible) { outline: 2px solid var(--copper-2); outline-offset: 2px; }
.buy__note { font-size: 13.5px; color: var(--silk-3); line-height: 1.55; }
.related { padding: 0 0 112px; }
.related .h3 { margin-bottom: 20px; font-size: 24px; }

/* Mobile purchase bar on product pages */
.buy-bar { display: none; }
@media (max-width: 960px) {
  .buy-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    display: flex; align-items: center; gap: 10px; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
    background: rgba(17, 41, 29, .96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--trace-2); transition: translate .25s var(--ease);
  }
  .buy-bar .price { margin-right: auto; font-size: 19px; }
  .buy-bar.away { translate: 0 110%; }
  body.has-buy-bar .toast { bottom: 92px; }
  body.has-buy-bar .site-footer { padding-bottom: 110px; }
}

/* ───────── Drawer (cart) ───────── */

.scrim { position: fixed; inset: 0; background: rgba(4, 12, 8, .6); opacity: 0; pointer-events: none; transition: opacity .25s var(--ease); z-index: 60; }
.scrim.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); z-index: 70;
  background: var(--mask); border-left: 1px solid var(--trace-2);
  display: grid; grid-template-rows: auto 1fr auto;
  transform: translateX(100%); transition: transform .32s var(--ease); visibility: hidden;
}
.drawer.open { transform: none; visibility: visible; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--trace); }
.drawer__head h2 { font-size: 20px; font-stretch: 110%; }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--trace-2); background: transparent; cursor: pointer; color: var(--silk-2); }
.icon-btn:hover { background: var(--mask-3); color: var(--silk); }
.icon-btn svg { width: 16px; height: 16px; }
.drawer__body { overflow-y: auto; padding: 8px 24px; }
.drawer__foot { padding: 20px 24px 24px; border-top: 1px solid var(--trace); display: grid; gap: 12px; background: var(--mask-2); }
.line { display: grid; grid-template-columns: auto 1fr auto; gap: 6px 14px; padding: 18px 0; align-items: start; }
.line + .line { border-top: 1px solid var(--trace); }
.line__name { color: var(--silk); font-weight: 600; font-size: 15.5px; line-height: 1.3; text-decoration: none; }
.line__name:hover { text-decoration: underline; text-underline-offset: 3px; }
.line__meta { grid-column: 2; font-size: 13.5px; color: var(--silk-3); display: grid; gap: 8px; }
.line__price { color: var(--silk); font-weight: 600; font-variant-numeric: tabular-nums; }
.line__actions { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; font-size: 13.5px; }
.mini-select { background: var(--mask-2); border: 1px solid var(--trace-2); color: var(--silk); border-radius: 8px; padding: 4px 8px; font-size: 13.5px; }
.mini-check { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; color: var(--silk-2); }
.mini-check input { accent-color: var(--copper); width: 15px; height: 15px; }
.totals { display: grid; gap: 6px; }
.totals__row { display: flex; justify-content: space-between; font-size: 15px; font-variant-numeric: tabular-nums; }
.totals__row--grand { color: var(--silk); font-weight: 650; font-size: 19px; padding-top: 8px; border-top: 1px solid var(--trace); margin-top: 4px; }
.summary__line + .totals__row--grand { border-top: 0; padding-top: 4px; margin-top: 0; }

/* ───────── Checkout ───────── */

.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 56px; padding-top: 40px; padding-bottom: 112px; align-items: start; }
.form { display: grid; gap: 22px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; }
.form legend { font-size: 14px; color: var(--silk); font-weight: 560; margin-bottom: 8px; padding: 0; }
.form__group { display: grid; gap: 18px; padding-bottom: 28px; border-bottom: 1px solid var(--trace); }
.form__group h2 { font-size: 20px; font-stretch: 110%; }
.summary { position: sticky; top: 96px; padding: 24px; border-radius: var(--radius-lg); border: 1px solid var(--trace-2); background: var(--mask-2); display: grid; gap: 16px; }
.summary h2 { font-size: 20px; font-stretch: 110%; }
.summary__line { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; font-size: 14.5px; padding-bottom: 12px; border-bottom: 1px solid var(--trace); }
.summary__line b { color: var(--silk); font-weight: 600; }
.summary__line span { color: var(--silk-3); font-size: 13.5px; }
.notice { padding: 14px 16px; border-radius: 10px; border: 1px solid var(--trace-2); background: var(--mask); font-size: 14px; }
.notice--err { border-color: var(--danger); color: var(--danger); }

.confirm { padding: 72px 0 120px; display: grid; gap: 28px; max-width: 760px; }
.confirm__id { font-family: var(--mono); color: var(--copper-2); font-size: 15px; }
.confirm .meter { margin-bottom: 8px; }

/* ───────── Search palette ───────── */

.palette { position: fixed; inset: 0; z-index: 80; display: none; place-items: start center; padding: 12vh 16px 16px; background: rgba(4, 12, 8, .66); }
.palette.open { display: grid; }
.palette__box { width: min(640px, 100%); background: var(--mask); border: 1px solid var(--trace-2); border-radius: 16px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); overflow: hidden; }
.palette__input { display: flex; align-items: center; gap: 12px; padding: 0 18px; border-bottom: 1px solid var(--trace); }
.palette__input svg { width: 18px; height: 18px; color: var(--silk-3); flex-shrink: 0; }
.palette__input input { flex: 1; height: 58px; background: none; border: 0; color: var(--silk); font-size: 17px; }
.palette__input input:focus { outline: none; }
.palette__results { max-height: min(56vh, 460px); overflow-y: auto; padding: 8px; list-style: none; }
.palette__group { padding: 10px 12px 6px; font-size: 13px; color: var(--silk-3); }
.palette__item { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px; cursor: pointer; }
.palette__item[aria-selected="true"] { background: var(--mask-3); box-shadow: inset 2px 0 0 var(--copper); }
.palette__item b { color: var(--silk); font-weight: 600; font-size: 15px; display: block; }
.palette__item span { color: var(--silk-3); font-size: 13.5px; }
.palette__item .price { font-size: 14px; }
.palette__empty { padding: 28px 16px; color: var(--silk-3); text-align: center; }
.palette__hint { display: flex; gap: 16px; padding: 10px 16px; border-top: 1px solid var(--trace); font-size: 12.5px; color: var(--silk-3); }

/* ───────── Toast ───────── */

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 90; translate: -50% 20px; opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: 16px; padding: 12px 12px 12px 18px; border-radius: 12px;
  background: var(--silk); color: var(--mask); font-weight: 560; font-size: 15px; box-shadow: 0 16px 40px rgba(0, 0, 0, .4);
  transition: opacity .25s var(--ease), translate .25s var(--ease); max-width: calc(100vw - 32px);
}
.toast.show { opacity: 1; translate: -50% 0; pointer-events: auto; }
.toast button { background: var(--mask); color: var(--silk); border: 0; border-radius: 8px; padding: 7px 12px; font-weight: 600; cursor: pointer; font-size: 14px; white-space: nowrap; }

/* ───────── Responsive ───────── */

@media (max-width: 1100px) {
  .board__grid { grid-template-columns: minmax(150px, .8fr) minmax(200px, 1fr) minmax(260px, 1.3fr); gap: 52px; }
  .platforms { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .platforms li:nth-child(4) { border-left: 0; }
  .platforms li:nth-child(n + 4) { border-top: 1px solid var(--trace); }
  .search-btn { min-width: 0; }
  .search-btn .label-long { display: none; }
  .product { grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; }
  .checkout { grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; }
}

@media (max-width: 960px) {
  .nav { display: none; }
  .nav.open {
    display: grid; position: absolute; top: 72px; left: 0; right: 0; padding: 12px var(--gutter) 20px;
    background: var(--mask); border-bottom: 1px solid var(--trace); gap: 2px;
  }
  .nav.open a { padding: 12px; font-size: 16px; }
  .icon-btn.menu-btn { display: grid; }
  .hero__intro, .section__head, .eng, .faq, .cta { grid-template-columns: minmax(0, 1fr); }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .board__grid, .board--compact .board__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .board__traces { display: none; }
  .board__col + .board__col::before {
    /* vertical trace between stacked columns */
    content: ""; position: absolute; left: 50%; top: -40px; height: 40px; width: 2px; background: var(--copper); opacity: .7;
  }
  .node .pad, .out-wrap .pad-in, .node--out .pad { display: none; }
  .split__row { grid-template-columns: 1fr; }
  .split__row > * + * { border-left: 0; border-top: 1px solid var(--trace); }
  .split__head { display: none; }
  .split__row p::before { display: block; font-size: 13px; color: var(--silk-3); margin-bottom: 4px; }
  .split__row .built::before { content: "Already built"; }
  .split__row .bring::before { content: "You bring"; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .catalog { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .filters { position: static; }
  .filter-list { display: flex; flex-wrap: wrap; gap: 6px; }
  .filter-list button { border: 1px solid var(--trace); border-radius: 999px; padding: 7px 12px; width: auto; }
  .filters__tags { display: none; }
  .product, .checkout { grid-template-columns: minmax(0, 1fr); }
  .buy, .summary { position: static; }
  .site-footer__row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .site-header__row { gap: 8px; }
  .header-tools { gap: 6px; }
  .brand { gap: 9px; }
  .brand img { width: 28px; height: 28px; }
  .brand__name { font-size: 15px; font-stretch: 100%; }
  .brand__sub { display: none; }
  .cart-btn { padding: 0 10px; gap: 6px; }
  .site-footer .brand__sub { display: block; }
  .search-btn { width: 40px; padding: 0; justify-content: center; }
  .search-btn .kbd { display: none; }
  .cart-btn .label { display: none; }
  .grid { grid-template-columns: 1fr; }
  .platforms { grid-template-columns: 1fr 1fr; }
  .platforms li:nth-child(n) { border-left: 0; border-top: 1px solid var(--trace); }
  .platforms li:nth-child(-n + 2) { border-top: 0; }
  .platforms li:nth-child(even) { border-left: 1px solid var(--trace); }
  .board { padding-left: 12px; padding-right: 12px; }
  .board::before, .board::after { display: none; }
  .board__bar { padding: 0 4px 16px; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
  .tab { white-space: nowrap; flex-shrink: 0; }
  .steps { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .manifest__row { grid-template-columns: 1fr; gap: 2px; }
  .product__bring { grid-template-columns: 1fr; }
  .site-footer__row { grid-template-columns: 1fr; }
  .meter--lg .meter__pads { gap: 3px; }
  .app-mock__body { grid-template-columns: 1fr; }
  .app-mock__rail { display: none; }
  .docs-row { grid-template-columns: 110px 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; transition-delay: 0ms !important; }
}
