/* AIO Trading Softwares - "Switchboard" on a black void.
   Pure black, one violet for buttons, amber for what is switched on.
   Signal blue = up, ember = down, for charts only (colour-blind safe, per the PRD). */

:root {
  --petrol: #000000;
  --petrol-2: #0d0d11;
  --petrol-3: #8d6bff;
  --bone: #000000;
  --white: #08080b;
  --graphite: #ffffff;
  --muted: #a3a3ab;
  --mist: #9a9a9a;
  --mist-light: #bdbdbd;
  --chalk: #ffffff;
  --line: #2b2b33;
  --line-soft: #1d1d23;
  --field-line: #7a7a86;
  --lamp: #ffb829;
  --lamp-soft: rgba(255, 184, 41, 0.3);
  --board-line: rgba(255, 255, 255, 0.13);
  --blue: #a78bff;
  --iris: #8052ff;
  --blue-ink: #ffb829;
  --ember: #e07a2e;
  --ember-ink: #ff9a55;

  --display: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radius-sm: 12px;
  --radius: 24px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.03rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--graphite);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--lamp); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: #fff; }
h1, h2, h3 { margin: 0 0 0.5em; font-family: var(--display); font-weight: 400; line-height: 1.06; letter-spacing: -0.035em; }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1em; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 20;
  background: var(--lamp); color: #000; padding: 0.5rem 1rem; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 1rem; }

.wrap { width: min(1240px, 100% - 3rem); margin-inline: auto; }
.wrap.narrow { width: min(820px, 100% - 3rem); }
.lede { font-size: 1.2rem; font-weight: 200; line-height: 1.55; max-width: 58ch; }

/* ---------- banner, header, footer ---------- */

.proto-banner {
  background: var(--petrol); color: var(--mist);
  font-size: 0.8rem; text-align: center; padding: 0.45rem 1rem; letter-spacing: 0.01em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.site-header {
  background: var(--petrol);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky; top: 0; z-index: 10;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--chalk); }
.brand:hover { color: var(--chalk); }
.brand-text { font-weight: 600; font-size: 1rem; letter-spacing: -0.01em; }
.brand-text span { font-weight: 400; color: var(--mist); }
.main-nav ul { display: flex; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  display: flex; align-items: center; min-height: 44px; color: var(--mist); text-decoration: none;
  font-size: 0.82rem; font-weight: 500; letter-spacing: 0.025em; text-transform: uppercase;
}
.main-nav a:hover { color: var(--chalk); }
.main-nav a[aria-current="page"] { color: var(--chalk); }

.site-footer { background: var(--petrol); color: var(--mist); font-size: 0.92rem; padding: 4rem 0 2rem; }
.site-footer a { color: var(--mist-light); }
.site-footer a:hover { color: var(--chalk); }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 2.5rem 4rem; }
.footer-name { font-family: var(--display); font-weight: 400; font-size: 2rem; color: var(--chalk); margin-bottom: 0.4rem; line-height: 1.1; }
.footer-brand p:last-child { max-width: 42ch; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, auto); gap: 0.6rem 3rem; }
.footer-links a { display: inline-block; padding-block: 0.2rem; text-decoration: none; }
.risk-note {
  grid-column: 1 / -1; margin: 0; padding-top: 2rem; max-width: 90ch;
  border-top: 1px solid var(--board-line); color: var(--mist);
}
.risk-note strong { color: var(--chalk); font-weight: 500; }
.copyright { grid-column: 1 / -1; margin: 0; font-size: 0.85rem; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 0.8rem 1.6rem; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-size: 0.86rem; font-weight: 600; letter-spacing: 0.025em; text-transform: uppercase; text-decoration: none; cursor: pointer; line-height: 1.2;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn-lg { padding: 1rem 1.9rem; font-size: 0.9rem; }
.btn-block { width: 100%; }
.btn-dark { background: var(--iris); color: #fff; }
.btn-dark:hover { background: var(--petrol-3); color: #fff; }
.btn-dark .icon { color: currentColor; }
.btn-gold { background: var(--iris); color: #fff; }
.btn-gold:hover { background: var(--petrol-3); color: #fff; }
.btn-quiet { background: transparent; color: #fff; border-color: var(--field-line); }
.btn-quiet:hover { border-color: #fff; color: #fff; }
.icon { flex: none; }

/* ---------- hero ---------- */

.hero { background: var(--petrol); color: var(--chalk); padding: clamp(3rem, 7vw, 6rem) 0 clamp(2rem, 4vw, 3.5rem); }
.hero-title { font-size: clamp(2.8rem, 7.2vw, 6.6rem); line-height: 1.02; letter-spacing: -0.045em; margin-bottom: 1.75rem; }
.hero .lede { color: var(--mist-light); margin: 0; }

/* ---------- the board: products in rows, platforms in columns ---------- */

.catalogue { background: var(--petrol); color: var(--chalk); padding-bottom: clamp(3.5rem, 7vw, 6rem); }
.catalogue-head { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.catalogue-head h2 { font-size: 1.6rem; margin: 0; }
.result-count { color: var(--mist); margin: 0; font-variant-numeric: tabular-nums; }

.toolbar { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; margin-bottom: 2rem; }
.type-filter { display: inline-flex; flex-wrap: wrap; gap: 1.5rem; }
.chip {
  min-height: 44px; padding: 0.35rem 0; border: 0; border-bottom: 2px solid transparent; background: transparent;
  font: inherit; font-size: 0.82rem; font-weight: 500; letter-spacing: 0.025em; text-transform: uppercase; color: var(--mist); cursor: pointer;
}
.chip:hover { color: var(--chalk); }
.chip[aria-pressed="true"] { color: var(--chalk); border-bottom-color: var(--lamp); }
.search { flex: 0 1 340px; }
.search input {
  width: 100%; min-height: 44px; padding: 0.5rem 0; font: inherit; font-size: 0.98rem; color: var(--chalk);
  background: transparent; border: 0; border-bottom: 1px solid var(--mist); border-radius: 0;
}
.search input:focus { outline: none; border-bottom-color: var(--lamp); box-shadow: 0 1px 0 var(--lamp); }
.search input::placeholder { color: var(--mist); }

.board-head,
.row { display: grid; grid-template-columns: minmax(0, 1fr) repeat(5, 72px) 168px; }
.board-head { position: relative; align-items: end; border-bottom: 1px solid var(--mist); }
.board-intro { position: absolute; top: 0; left: 0; right: calc(528px + 2.5rem); }
.platform-picker { display: contents; }
.platform-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 0.6rem;
  padding: 0 0 0.8rem; background: none; border: 0; cursor: pointer; color: var(--mist); font: inherit;
}
.platform-btn:hover { color: var(--chalk); }
.platform-btn[aria-pressed="true"] { color: var(--lamp); }
.pb-name {
  font-family: var(--display); font-weight: 400; letter-spacing: -0.03em; font-size: clamp(1.6rem, 2.4vw, 2.1rem); line-height: 1;
  writing-mode: vertical-rl; transform: rotate(180deg);
}
.pb-count { font-size: 0.82rem; font-variant-numeric: tabular-nums; }
.platform-btn[data-platform="all"] { flex-direction: row; align-items: baseline; justify-content: flex-start; gap: 0.6rem; justify-self: start; }
.platform-btn[data-platform="all"] .pb-name { writing-mode: horizontal-tb; transform: none; font-size: 1.5rem; }
.lh-price { padding: 0 0 0.8rem; text-align: right; font-size: 0.82rem; color: var(--mist); }

.ledger[hidden] { display: none; }
.card-grid { list-style: none; margin: 0; padding: 0; }
.card { border-bottom: 1px solid var(--board-line); }
.card[hidden] { display: none; }
.row { align-items: center; padding-block: 1.3rem; color: inherit; text-decoration: none; }
.row:hover { background: var(--petrol-2); color: inherit; }
.row:hover .row-name { color: var(--lamp); }
.row:focus-visible { outline-offset: -3px; border-radius: 0; }
.row-main { display: block; min-width: 0; padding-right: 2.5rem; }
.row-type { display: block; font-size: 0.84rem; color: var(--mist-light); margin: 0; }
.row-name { margin: 0.1rem 0 0.35rem; font-size: clamp(1.6rem, 2.4vw, 2.2rem); letter-spacing: -0.035em; }
.row-desc { margin: 0; color: var(--mist-light); font-size: 0.95rem; font-weight: 300; max-width: 58ch; }
.row .row-pills { display: none; margin-top: 0.7rem; }
.row .pill { background: transparent; border-color: var(--mist); color: var(--mist-light); }
.row-price { text-align: right; font-family: var(--display); font-weight: 400; letter-spacing: -0.03em; font-size: 1.4rem; line-height: 1; white-space: nowrap; font-variant-numeric: tabular-nums; }

.matrix { grid-column: 2 / 7; display: grid; grid-template-columns: repeat(5, 72px); justify-items: center; }
.dot { width: 11px; height: 11px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--board-line); }
.dot.on {
  background: var(--lamp); box-shadow: 0 0 14px var(--lamp-soft);
  transition: background-color 0.35s var(--ease), box-shadow 0.35s var(--ease), opacity 0.3s var(--ease);
}
.dot.on:nth-child(2) { transition-delay: 50ms; }
.dot.on:nth-child(3) { transition-delay: 100ms; }
.dot.on:nth-child(4) { transition-delay: 150ms; }
.dot.on:nth-child(5) { transition-delay: 200ms; }
.has-motion .card:not(.lit) .dot.on { background: transparent; box-shadow: inset 0 0 0 1px var(--board-line); }
.board:not([data-platform="all"]) .dot.on { opacity: 0.3; box-shadow: none; }
.board[data-platform="mt5"] .dot.on:nth-child(1),
.board[data-platform="mt4"] .dot.on:nth-child(2),
.board[data-platform="ctrader"] .dot.on:nth-child(3),
.board[data-platform="quantower"] .dot.on:nth-child(4),
.board[data-platform="ninjatrader"] .dot.on:nth-child(5) { opacity: 1; box-shadow: 0 0 14px var(--lamp-soft); }

.pills { display: flex; flex-wrap: wrap; gap: 0.35rem; list-style: none; margin: 0; padding: 0; }
.pill {
  font-size: 0.8rem; font-weight: 500; padding: 0.2rem 0.7rem; border-radius: 999px;
  background: var(--bone); border: 1px solid var(--line); color: var(--graphite);
}
.pills-lg .pill { font-size: 0.9rem; padding: 0.35rem 0.75rem; }

.empty-state { padding: 4rem 0; }
.empty-state h3 { font-size: 2.2rem; }
.empty-state p { color: var(--mist-light); max-width: 52ch; }
.empty-state .btn-quiet { color: var(--chalk); border-color: var(--mist); }
.empty-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.5rem; }

.custom-cta { background: var(--bone); color: var(--graphite); padding: clamp(4rem, 8vw, 7rem) 0; }
.cta-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2.5rem 5rem; align-items: end; }
.cta-inner h2 { font-size: clamp(2.4rem, 5.6vw, 4.8rem); line-height: 1.02; letter-spacing: -0.045em; margin: 0; }
.cta-side p { color: var(--muted); margin-bottom: 1.6rem; }

/* ---------- page heroes ---------- */

.page-hero,
.product-hero {
  background: var(--petrol);
  color: var(--chalk);
  padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 4.5rem);
}
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 4.2rem); letter-spacing: -0.045em; max-width: 20ch; }
.page-hero .lede,
.product-hero .lede { color: var(--mist-light); }
.page-hero .btn { margin-top: 1rem; }
.draft-note { color: var(--lamp); font-size: 0.88rem; margin: 0; }

/* ---------- product page ---------- */

.breadcrumb ol { display: flex; flex-wrap: wrap; list-style: none; margin: 0 0 2.5rem; padding: 0; font-size: 0.9rem; color: var(--mist); }
.breadcrumb a { color: var(--mist-light); text-decoration: none; }
.breadcrumb a:hover { color: var(--chalk); }
.breadcrumb li + li::before { content: "/"; margin: 0 0.65rem; color: var(--lamp); }
.product-hero .row-type { margin-bottom: 0.6rem; }
.product-hero h1 { font-size: clamp(2.3rem, 5vw, 4.4rem); letter-spacing: -0.045em; margin-bottom: 1.1rem; }

.product { padding-block: clamp(2.5rem, 5vw, 3.5rem) clamp(3.5rem, 7vw, 5.5rem); }
.product-grid { display: grid; gap: 3.5rem; grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
.product-section { margin-top: 3.5rem; }
.product-section h2 { font-size: 1.7rem; }

.gallery-main { border-radius: var(--radius); overflow: hidden; background: var(--petrol-2); aspect-ratio: 16 / 9; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 0.75rem; list-style: none; margin: 0.9rem 0 0; padding: 0; overflow-x: auto; }
.thumb {
  padding: 0; border: 0; border-radius: var(--radius-sm); overflow: hidden; background: none; cursor: pointer;
  width: 128px; flex: none; opacity: 0.55; box-shadow: 0 0 0 1px var(--line); border-radius: 12px; transition: opacity 0.2s var(--ease);
}
.thumb:hover { opacity: 0.85; }
.thumb[aria-pressed="true"] { opacity: 1; box-shadow: 0 0 0 2px var(--lamp); }
.video-link { margin-top: 1rem; }
.video-link a { display: inline-flex; gap: 0.4rem; align-items: center; font-weight: 500; }

.prose p { max-width: 68ch; }
.feature-list { padding: 0; margin: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0.85rem 2rem; }
.feature-list li { display: flex; gap: 0.75rem; align-items: flex-start; }
.feature-list svg {
  flex: none; margin-top: 0.25rem; padding: 4px; box-sizing: content-box;
  color: var(--lamp); background: rgba(255, 184, 41, 0.12); border-radius: 50%;
}
.risk-box {
  margin-top: 3.5rem; padding: 1.25rem 1.5rem; font-size: 0.93rem; color: var(--muted);
  background: var(--white); border: 0; border-left: 3px solid var(--ember); border-radius: 0 12px 12px 0;
}
.risk-box strong { color: var(--graphite); font-weight: 600; }

.buy-panel { position: sticky; top: 96px; }
.buy-card { background: var(--white); border-radius: var(--radius); padding: 1.75rem; }
.buy-price { font-family: var(--display); font-weight: 400; letter-spacing: -0.045em; font-size: 3rem; line-height: 1; margin-bottom: 1.25rem; font-variant-numeric: tabular-nums; }
.buy-note { font-size: 0.86rem; color: var(--muted); margin: 0.9rem 0 1.75rem; }
.buy-actions { display: grid; gap: 0.6rem; }
.buy-actions [hidden], .library [hidden] { display: none !important; }
.buy-card .form-status { margin-bottom: 0.9rem; }
.library { margin-top: 2.5rem; }
.library h2 { margin-bottom: 1rem; }
.row-message { display: block; margin-top: 0.35rem; font-size: 0.86rem; color: var(--muted); }
.row-meta { display: block; margin-top: 0.25rem; font-size: 0.8rem; color: var(--muted); }
.side-h { font-family: var(--sans); font-size: 0.86rem; font-weight: 500; color: var(--muted); margin: 0 0 0.6rem; line-height: 1.4; }
.meta-list { margin: 1.5rem 0 0; }
.meta-list div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.7rem 0; border-top: 1px solid var(--line-soft); font-size: 0.93rem; }
.meta-list dt { color: var(--muted); }
.meta-list dd { margin: 0; font-weight: 500; text-align: right; }
.currency-note { font-size: 0.8rem; color: var(--muted); margin: 1rem 0 0; }
.side-cta { font-size: 0.92rem; margin-top: 1.1rem; padding: 0 0.5rem; color: var(--muted); }

/* ---------- forms and text pages ---------- */

.form-wrap { padding-block: clamp(2.5rem, 5vw, 3.5rem) clamp(3.5rem, 7vw, 5.5rem); }
.form {
  display: grid; gap: 1.6rem; background: var(--white);
  border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.75rem);
}
.field { margin: 0; padding: 0; border: 0; min-width: 0; }
.field > label, .field > legend { display: block; font-weight: 500; margin-bottom: 0.45rem; padding: 0; }
.opt { font-weight: 400; color: var(--muted); font-size: 0.86rem; margin-left: 0.35rem; }
.hint { font-size: 0.88rem; color: var(--muted); margin: -0.15rem 0 0.55rem; }
.field input[type="text"],
.field input[type="email"],
.field input[type="date"],
.field select,
.field textarea {
  width: 100%; min-height: 3.25rem; padding: 0.8rem 0.95rem; font: inherit; color: var(--graphite);
  background: #000; border: 1px solid var(--field-line); border-radius: var(--radius-sm);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(167, 139, 255, 0.2); outline: none; }
.field textarea { resize: vertical; }
.field [aria-invalid="true"] { border-color: var(--ember-ink); box-shadow: 0 0 0 3px rgba(255, 154, 85, 0.2); }
.field-error { color: var(--ember-ink); font-size: 0.9rem; font-weight: 500; margin: 0.45rem 0 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.choice-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.choice {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.55rem 1rem;
  border: 1px solid var(--field-line); border-radius: 999px; background: transparent; cursor: pointer;
  font-size: 0.95rem; transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.choice:hover { border-color: #fff; }
.choice:has(input:checked) { background: rgba(128, 82, 255, 0.2); border-color: var(--blue); color: #fff; }
.choice:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 3px; }
.choice input { accent-color: var(--lamp); margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 0.85rem 1.1rem; border-radius: var(--radius-sm); background: rgba(255, 154, 85, 0.12); color: var(--ember-ink); font-weight: 500; margin: 0; }
.form button[type="submit"] { justify-self: start; }

.confirmation {
  background: var(--white); border-radius: var(--radius);
  padding: clamp(1.75rem, 4vw, 2.75rem);
}
.confirmation h2 { font-size: 2.1rem; }
.proto-note { font-size: 0.88rem; color: var(--muted); }

.legal { padding-block: 1rem clamp(3.5rem, 7vw, 5.5rem); }
.legal h2 { margin-top: 2.5rem; font-size: 1.6rem; }

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); margin-bottom: 2.5rem; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.data-table th, .data-table td { text-align: left; padding: 0.75rem 1rem; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.data-table th { background: var(--white); font-weight: 500; color: var(--muted); }
.form-wrap h2 { font-size: 1.7rem; }

/* ---------- motion ---------- */

.hero-inner { position: relative; }
.tl { display: block; overflow: hidden; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.tl > span { display: block; animation: line-rise 0.9s var(--ease) both; }
.tl:nth-child(2) > span { animation-delay: 90ms; }
.tl:nth-child(3) > span { animation-delay: 180ms; }
@keyframes line-rise { from { transform: translateY(105%); } }
.hero .lede { animation: fade-in 0.8s 0.5s var(--ease) both; }
@keyframes fade-in { from { opacity: 0; } }

.hero-title, .hero .lede { position: relative; z-index: 1; }
.hero-chart {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%); z-index: 0;
  width: min(640px, 54vw); height: min(440px, 40vw);
  animation: fade-in 1.6s 0.3s var(--ease) both;
}
.hero-chart canvas {
  display: block; width: 100%; height: 100%; cursor: grab; touch-action: none;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 30%);
          mask-image: linear-gradient(to right, transparent, #000 30%);
}
.hero-chart canvas.dragging { cursor: grabbing; }
@media (max-width: 1000px) { .hero-chart { display: none; } }

.card.reveal { animation: row-in 0.45s calc(var(--i, 0) * 45ms) var(--ease) both; }
@keyframes row-in { from { opacity: 0; transform: translateY(12px); } }
.row { transition: background-color 0.2s var(--ease); }
.row-name { transition: color 0.2s var(--ease), transform 0.25s var(--ease); }
.row:hover .row-name { transform: translateX(6px); }
.row:hover .dot.on { box-shadow: 0 0 20px var(--lamp); }
.platform-btn, .chip { transition: color 0.2s var(--ease), border-color 0.2s var(--ease); }
.platform-btn:not([data-platform="all"]) .pb-name { transition: translate 0.25s var(--ease); }
.platform-btn:not([data-platform="all"]):hover .pb-name { translate: 0 -6px; }
.btn:active { transform: translateY(1px); }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .board-head { display: block; border-bottom: 0; }
  .board-intro { position: static; }
  .platform-picker { position: relative; display: flex; gap: 1.25rem; overflow-x: auto; padding-bottom: 0.4rem; border-bottom: 1px solid var(--mist); scrollbar-width: none; }
  .platform-btn, .platform-btn[data-platform="all"] { min-height: 44px; flex: none; flex-direction: row; align-items: baseline; gap: 0.35rem; padding-bottom: 0.4rem; }
  .pb-name, .platform-btn[data-platform="all"] .pb-name { writing-mode: horizontal-tb; transform: none; font-size: 1.4rem; }
  .lh-price { display: none; }
  .row { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
  .row-main { padding-right: 1rem; }
  .row .matrix { display: none; }
  .row .row-pills { display: flex; }
  .product-grid { grid-template-columns: minmax(0, 1fr); }
  .buy-panel { position: static; }
  .cta-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .wrap, .wrap.narrow { width: calc(100% - 2rem); }
  .brand-text span { display: none; }
  .header-inner { gap: 0.5rem; }
  .main-nav ul { gap: 0.9rem; }
  .main-nav a { font-size: 0.7rem; letter-spacing: 0.015em; white-space: nowrap; }
  .field-row { grid-template-columns: 1fr; }
  .search { flex-basis: 100%; }
  .type-filter { flex-wrap: nowrap; max-width: 100%; overflow-x: auto; scrollbar-width: none; gap: 1.1rem; }
  .chip { white-space: nowrap; flex: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before { transition: none !important; animation: none !important; }
}

/* ---------- accounts ---------- */

.field input[type="password"] {
  width: 100%; min-height: 3.25rem; padding: 0.8rem 0.95rem; font: inherit; color: var(--graphite);
  background: var(--white); border: 1px solid var(--field-line); border-radius: var(--radius-sm);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.main-nav .nav-account { color: var(--lamp); }
.main-nav .nav-account:hover, .main-nav .nav-account[aria-current="page"] { color: var(--chalk); }
.auth { display: grid; gap: 1.5rem; }
.auth-tabs { display: flex; gap: 1.5rem; }
.auth-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.auth-intro { margin: 0; color: var(--muted); }
.link-btn {
  background: none; border: 0; padding: 0; font: inherit; color: var(--lamp); cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px;
}
.link-btn:hover { color: #fff; }
.auth-loading { color: var(--muted); }
.account-meta { margin: 0 0 1.5rem; }
.form-saved { margin: 0; color: var(--lamp); font-weight: 500; }
.auth-signout { margin-top: 1.5rem; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
