/* ShortShifted bespoke stylesheet: Porsche Motorsport x Simucube Pit-Wall Carbon Showroom.
   Palette: Anodized carbon (#0d0f13), pit-wall gunmetal (#151922), Monza apex curb red (#e11d48),
   machined billet aluminum (#eef2f6), and pure studio white hardware stages (#ffffff). */

:root {
  --carbon: #0d0f13;
  --carbon-mid: #151922;
  --carbon-card: #1b202c;
  --carbon-line: #293142;
  --carbon-muted: #94a3b8;
  --billet: #eef2f6;
  --billet-deep: #dfe6ef;
  --stage: #ffffff;
  --line: #cfd8e3;
  --line-strong: #aebdcb;
  --ink: #0d0f13;
  --ink-soft: #1e2532;
  --muted: #4b5565;
  --apex: #e11d48;
  --apex-bright: #fb7185;
  --apex-deep: #be123c;
  --apex-wash: #ffe4e6;
  --amber: #f59e0b;
  --amber-wash: #fef3c7;
  --tele-ok: #10b981;
  --tele-ok-wash: #d1fae5;
  --display: "Unbounded", system-ui, -apple-system, sans-serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --radius-xs: 3px;
  --radius-sm: 5px;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow-stage: 0 10px 26px rgba(13, 15, 19, 0.06), 0 1px 3px rgba(13, 15, 19, 0.05);
  --shadow-mosaic: 0 18px 38px rgba(0, 0, 0, 0.46), 0 0 0 1px rgba(255, 255, 255, 0.94);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  background: var(--carbon);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--billet);
  color: var(--ink);
  overflow-x: hidden;
}

/* Hide floating feedback button until triple-tap or Contact button triggers it */
#htfb-btn { display: none !important; }
body.show-feedback #htfb-btn { display: flex !important; }

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--apex-deep);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--apex);
  outline-offset: 2px;
}

.mono, code {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

code {
  font-size: 0.86em;
  background: rgba(13, 15, 19, 0.07);
  padding: 2px 6px;
  border-radius: var(--radius-xs);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 999;
  padding: 10px 16px;
  background: var(--apex);
  color: #ffffff;
  font-weight: 700;
  border-radius: var(--radius-sm);
}
.skip:focus {
  left: 12px;
}

/* FIA Monza Apex Curb Top Strip */
.curb-strip {
  height: 4px;
  width: 100%;
  background: repeating-linear-gradient(
    -55deg,
    var(--apex) 0,
    var(--apex) 18px,
    #ffffff 18px,
    #ffffff 32px,
    #1e2532 32px,
    #1e2532 46px
  );
}

.wrap {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 28px;
}

.main-view {
  flex: 1;
}

/* ---------------- Sticky Anodized Pit-Wall Header ---------------- */
.top {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(13, 15, 19, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--carbon-line);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.34);
}

.top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  min-height: 44px;
  flex-shrink: 0;
}
.logo:hover {
  color: #ffffff;
}

.logo-mark {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.08;
}

.wordmark {
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #ffffff;
}
.wordmark b {
  font-weight: 800;
  color: var(--apex);
}

.logo-sub {
  font-size: 0.55rem;
  letter-spacing: 0.14em;
  color: var(--carbon-muted);
  margin-top: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1px;
  flex-wrap: nowrap;
}

.nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 8px;
  font-family: var(--body);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #cbd5e1;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 6px;
  height: 2px;
  background: transparent;
  transform: skewX(-18deg);
  transition: background 0.15s ease;
}

.nav a:hover {
  color: #ffffff;
}
.nav a:hover::after {
  background: rgba(225, 29, 72, 0.55);
}

.nav a.active {
  color: #ffffff;
}
.nav a.active::after {
  background: var(--apex);
}

.nav a.nav-accent {
  color: #fda4af;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.icon-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--carbon-line);
  background: var(--carbon-mid);
  color: #e2e8f0;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.icon-pill:hover,
.icon-pill.active {
  border-color: var(--apex);
  color: #ffffff;
  background: #1d2230;
}

.icon-pill svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.saved-pill em {
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  background: var(--apex);
  color: #ffffff;
}

.menu-btn {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--carbon-line);
  background: var(--carbon-mid);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
}
.menu-ico {
  width: 16px;
  height: 12px;
  position: relative;
  display: inline-block;
}
.menu-ico::before,
.menu-ico::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--apex);
}
.menu-ico::before { top: 2px; }
.menu-ico::after { bottom: 2px; }

/* Mobile Menu Sheet */
.menu-sheet {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(13, 15, 19, 0.76);
  display: flex;
  justify-content: flex-end;
}
.menu-sheet[hidden] {
  display: none;
}
.menu-panel {
  width: min(370px, 94vw);
  height: 100%;
  background: var(--carbon);
  border-left: 1px solid var(--carbon-line);
  padding: 20px 24px;
  overflow-y: auto;
  color: #ffffff;
}
.menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--carbon-line);
  margin-bottom: 14px;
}
.menu-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.menu-links a {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #e2e8f0;
}
.menu-links a:hover,
.menu-links a.active {
  background: var(--carbon-card);
  color: #ffffff;
  border-left: 3px solid var(--apex);
}

/* ---------------- Typography & Buttons ---------------- */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--apex-deep);
}

.lede {
  font-size: 1.04rem;
  line-height: 1.62;
  color: var(--muted);
  max-width: 68ch;
  margin: 12px 0 0;
}

.fine {
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-family: var(--body);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.14s ease, background 0.14s ease, border-color 0.14s ease, color 0.14s ease;
  white-space: nowrap;
}
.btn:active {
  transform: translateY(1px);
}
.btn.sm {
  min-height: 44px;
  padding: 0 14px;
  font-size: 0.78rem;
}

.btn.crimson {
  background: var(--apex);
  color: #ffffff;
  border-color: var(--apex);
  box-shadow: 0 8px 24px rgba(225, 29, 72, 0.28);
}
.btn.crimson:hover {
  background: #f43f5e;
  border-color: #f43f5e;
  color: #ffffff;
}

.btn.primary {
  background: var(--carbon);
  color: #ffffff;
  border-color: var(--carbon);
}
.btn.primary:hover {
  background: #1d2330;
  border-color: var(--apex);
  color: #ffffff;
}

.btn.ghost {
  background: var(--stage);
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn.ghost:hover {
  border-color: var(--carbon);
  color: var(--carbon);
  background: #f8fafc;
}

.btn.carbon-ghost {
  background: rgba(27, 32, 44, 0.88);
  color: #f8fafc;
  border-color: #364156;
}
.btn.carbon-ghost:hover {
  border-color: var(--apex);
  color: #ffffff;
}

/* ---------------- Full-Bleed Porsche Motorsport / Simucube Pit-Wall Hero ---------------- */
.pitwall-hero {
  position: relative;
  background-color: var(--carbon);
  background-image:
    radial-gradient(circle at 78% 22%, rgba(225, 29, 72, 0.18) 0%, rgba(225, 29, 72, 0) 48%),
    repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.018) 0,
      rgba(255, 255, 255, 0.018) 2px,
      transparent 2px,
      transparent 10px
    );
  color: #f8fafc;
  border-bottom: 1px solid var(--carbon-line);
  overflow: hidden;
}

.pitwall-stage {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.16fr);
  gap: 40px;
  align-items: center;
  padding: 50px 0 42px;
}

.pitwall-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.pit-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-left: 3px solid var(--apex);
  background: rgba(225, 29, 72, 0.11);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fda4af;
  margin-bottom: 18px;
}

.pitwall-copy h1 {
  font-size: clamp(2.15rem, 3.6vw, 3.35rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: #ffffff;
}
.pitwall-copy h1 span {
  color: var(--apex);
  display: block;
}

.pit-sub {
  font-size: 1.04rem;
  line-height: 1.62;
  color: #cbd5e1;
  max-width: 50ch;
  margin: 18px 0 26px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pit-specs-bar {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.pit-spec-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.pit-spec-item small {
  font-family: var(--mono);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #fb7185;
}
.pit-spec-item strong {
  font-family: var(--mono);
  font-size: 0.88rem;
  color: #ffffff;
}
.pit-spec-item span {
  font-size: 0.76rem;
  color: var(--carbon-muted);
}

/* Right Side: 6-Card (3x2) Luminous #ffffff Studio Hardware Mosaic */
.mosaic-rack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.mosaic-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  color: var(--carbon);
  border-radius: var(--radius);
  border-top: 3px solid var(--apex);
  padding: 11px 12px 12px;
  box-shadow: var(--shadow-mosaic);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.mosaic-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.58), 0 0 0 2px var(--apex);
  color: var(--carbon);
}

.mosaic-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  margin-bottom: 6px;
}

.mosaic-tag {
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  background: var(--carbon);
  color: #ffffff;
}

.mosaic-sale {
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  background: var(--apex);
  color: #ffffff;
}

.mosaic-img {
  height: 118px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  padding: 2px;
}
.mosaic-img img {
  max-height: 112px;
  width: auto;
  object-fit: contain;
}

.mosaic-foot {
  margin-top: 6px;
  padding-top: 7px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mosaic-maker {
  font-family: var(--mono);
  font-size: 0.63rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
}
.mosaic-title {
  font-family: var(--body);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--carbon);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mosaic-price {
  font-family: var(--mono);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--apex-deep);
}

/* 13-Maker Pit-Lane Strip */
.pitlane-strip {
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  background: #090b0e;
  padding: 12px 0;
}
.pitlane-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-right: 32px;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 93%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0%, #000 93%, transparent 100%);
}
.pitlane-inner::-webkit-scrollbar {
  display: none;
}
.pitlane-label {
  font-family: var(--mono);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--apex-bright);
  padding-right: 10px;
  border-right: 1px solid var(--carbon-line);
  white-space: nowrap;
}
.pitlane-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  font-family: var(--body);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #cbd5e1;
  white-space: nowrap;
  border-radius: var(--radius-xs);
}
.pitlane-link:hover {
  color: #ffffff;
  background: rgba(225, 29, 72, 0.16);
}

/* ---------------- Machined Billet Pit-Wall Engineering Split Console ---------------- */
.pitwall-bench-band {
  background: var(--billet-deep);
  border-bottom: 1px solid var(--line-strong);
  padding: 54px 0;
}

.bench-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 22px;
}

.bench-module {
  background: var(--stage);
  border: 1px solid var(--line-strong);
  border-top: 4px solid var(--carbon);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-stage);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bench-module.apex-top {
  border-top-color: var(--apex);
}

.bench-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.bench-head h3 {
  font-size: 1.15rem;
  margin-top: 4px;
}

.mini-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.seg-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.seg-btn {
  min-height: 44px;
  padding: 0 11px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: #f8fafc;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.14s ease;
}
.seg-btn:hover {
  border-color: var(--carbon);
  color: var(--carbon);
}
.seg-btn.on {
  background: var(--carbon);
  border-color: var(--carbon);
  color: #ffffff;
  box-shadow: inset 0 -2px 0 var(--apex);
}

/* Dark Carbon Readout Box inside Billet Module */
.fitment-readout {
  background: var(--carbon);
  color: #f1f5f9;
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  font-family: var(--mono);
  font-size: 0.71rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.status-pill.ok {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}
.status-pill.warn {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}
.status-pill.alert {
  background: rgba(225, 29, 72, 0.22);
  color: #fda4af;
  border: 1px solid rgba(225, 29, 72, 0.5);
}

.fitment-rules-compact {
  display: grid;
  gap: 8px;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #cbd5e1;
}
.fitment-rules-compact div {
  padding-left: 10px;
  border-left: 2px solid #334155;
}
.fitment-rules-compact b {
  color: #ffffff;
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  display: block;
  margin-bottom: 1px;
}

.fov-console-box {
  background: var(--carbon);
  color: #f8fafc;
  border-radius: var(--radius);
  padding: 16px;
  margin-top: auto;
}

.fov-kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.fov-mini-kpi {
  background: var(--carbon-mid);
  border: 1px solid var(--carbon-line);
  border-radius: var(--radius-sm);
  padding: 9px 10px;
}
.fov-mini-kpi small {
  display: block;
  font-family: var(--mono);
  font-size: 0.63rem;
  text-transform: uppercase;
  color: #94a3b8;
}
.fov-mini-kpi strong {
  display: block;
  font-family: var(--mono);
  font-size: 1.08rem;
  color: #ffffff;
  margin-top: 2px;
}
.fov-mini-kpi.hot strong {
  color: var(--apex-bright);
}

/* ---------------- Standard Sections & Headers ---------------- */
.sec-block {
  padding: 50px 0;
  border-bottom: 1px solid var(--line);
}
.sec-block:last-child {
  border-bottom: none;
}

.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 34px 0 20px;
  flex-wrap: wrap;
}
.sec-block .sec-head {
  margin-top: 0;
}
.sec-head h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
}

.page-head {
  padding: 38px 0 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.page-head h1 {
  font-size: clamp(1.75rem, 3vw, 2.55rem);
  margin-top: 6px;
}

/* ---------------- Dedicated #compat, #fov-calc & #specs Pages ---------------- */
.calc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 24px;
  margin-bottom: 32px;
  align-items: start;
}

.calc-panel {
  background: var(--stage);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-stage);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ctrl-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.opt-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.opt-grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.opt-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-height: 62px;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: #f8fafc;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: all 0.14s ease;
}
.opt-btn strong {
  font-family: var(--body);
  font-size: 0.88rem;
  font-weight: 700;
}
.opt-btn span {
  font-size: 0.76rem;
  color: var(--muted);
}
.opt-btn:hover {
  border-color: var(--carbon);
}
.opt-btn.on {
  background: var(--carbon);
  border-color: var(--carbon);
  color: #ffffff;
  box-shadow: inset 0 -3px 0 var(--apex);
}
.opt-btn.on span {
  color: #cbd5e1;
}

.telemetry-card {
  background: var(--carbon);
  color: #f8fafc;
  border: 1px solid var(--carbon-line);
  border-top: 4px solid var(--apex);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: 0 20px 42px rgba(13, 15, 19, 0.22);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.telemetry-card h2 {
  color: #ffffff;
  font-size: 1.3rem;
  margin-top: 8px;
}
.telemetry-card .eyebrow {
  color: var(--apex-bright);
}

.verdict-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.verdict-row {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--carbon-mid);
  border-left: 3px solid var(--apex);
  font-size: 0.86rem;
  line-height: 1.52;
  color: #e2e8f0;
}
.verdict-row b {
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffffff;
  margin-bottom: 4px;
}

.fov-slider-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.fov-range {
  flex: 1;
  accent-color: var(--apex);
  height: 28px;
  cursor: pointer;
}

.tele-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.tele-kpi {
  padding: 14px;
  border-radius: var(--radius);
  background: var(--carbon-mid);
  border: 1px solid var(--carbon-line);
}
.tele-kpi.accent {
  border-color: rgba(225, 29, 72, 0.5);
  background: rgba(225, 29, 72, 0.1);
}
.k-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  color: #94a3b8;
}
.k-val {
  display: block;
  font-family: var(--mono);
  font-size: 1.48rem;
  font-weight: 700;
  color: #ffffff;
  margin: 4px 0 2px;
}
.k-sub {
  font-size: 0.75rem;
  color: #cbd5e1;
}

.fov-svg-box {
  background: #090b0e;
  border: 1px solid var(--carbon-line);
  border-radius: var(--radius);
  padding: 12px;
}
.fov-svg-box svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Spec Bench Cards */
.spec-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 16px 20px;
  border-radius: var(--radius);
  background: var(--carbon);
  color: #f8fafc;
  font-size: 0.9rem;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.spec-card {
  background: var(--stage);
  border: 1px solid var(--line);
  border-top: 3px solid var(--carbon);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-stage);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.spec-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.spec-head h3 {
  font-size: 1.06rem;
  margin-top: 4px;
}
.spec-pill {
  padding: 4px 8px;
  border-radius: var(--radius-xs);
  background: var(--billet);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.67rem;
  color: var(--ink-soft);
  white-space: nowrap;
}
.spec-dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}
.spec-dl div {
  padding: 10px;
  border-radius: var(--radius-sm);
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.spec-dl dt {
  font-family: var(--mono);
  font-size: 0.67rem;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 3px;
}
.spec-dl dd {
  margin: 0;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--ink);
}

/* ---------------- Filter Bars & Pills ---------------- */
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--stage);
  color: var(--ink-soft);
  font-family: var(--body);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.14s ease;
}
.chip:hover {
  border-color: var(--carbon);
  color: var(--carbon);
}
.chip.on {
  background: var(--carbon);
  border-color: var(--carbon);
  color: #ffffff;
  box-shadow: inset 0 -2px 0 var(--apex);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 16px;
  background: var(--stage);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 18px;
  box-shadow: var(--shadow-stage);
}

.input-ctrl,
.select-ctrl {
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: #f8fafc;
  color: var(--ink);
  font-family: var(--body);
  font-size: 0.88rem;
  font-weight: 600;
}
.input-ctrl {
  flex: 1 1 280px;
}

/* ---------------- Luminous #ffffff Product Hardware Cards ---------------- */
.pgrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.pcard {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-stage);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.pcard:hover {
  transform: translateY(-3px);
  border-color: var(--carbon);
  box-shadow: 0 18px 36px rgba(13, 15, 19, 0.12);
}

.pcard-stage {
  position: relative;
  height: 218px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border-bottom: 1px solid #edf2f7;
}
.pcard-stage a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.pcard-stage img {
  max-height: 186px;
  width: auto;
  object-fit: contain;
  transition: transform 0.2s ease;
}
.pcard:hover .pcard-stage img {
  transform: scale(1.03);
}

.badge-deal {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 8px;
  border-radius: var(--radius-xs);
  background: var(--apex);
  color: #ffffff;
  font-family: var(--mono);
  font-size: 0.71rem;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-date {
  position: absolute;
  bottom: 10px;
  left: 10px;
  padding: 3px 7px;
  border-radius: var(--radius-xs);
  background: var(--carbon);
  color: #e2e8f0;
  font-family: var(--mono);
  font-size: 0.68rem;
}

.save-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid #e2e8f0;
  background: rgba(255, 255, 255, 0.94);
  color: #475569;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.14s ease;
}
.save-btn svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}
.save-btn:hover {
  border-color: var(--carbon);
  color: var(--carbon);
}
.save-btn.saved {
  background: var(--apex);
  border-color: var(--apex);
  color: #ffffff;
}
.save-btn.saved svg {
  fill: currentColor;
}

.pcard-body {
  padding: 15px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}

.pcard-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  color: var(--muted);
}
.pcard-brand {
  font-weight: 700;
  color: var(--apex-deep);
}

.pcard-title {
  font-family: var(--body);
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.32;
}
.pcard-title a {
  color: var(--carbon);
}
.pcard-title a:hover {
  color: var(--apex-deep);
}

.pcard-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.sz-pill {
  padding: 2px 7px;
  border-radius: var(--radius-xs);
  background: #f1f5f9;
  border: 1px solid #dbe3ed;
  font-family: var(--mono);
  font-size: 0.69rem;
  color: var(--ink-soft);
}
.sz-pill.deal {
  background: var(--apex-wash);
  border-color: #fda4af;
  color: var(--apex-deep);
}

.pcard-foot {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #edf2f7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.price-wrap {
  display: flex;
  align-items: baseline;
  gap: 7px;
}
.price-now {
  font-family: var(--mono);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--carbon);
}
.price-was {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: #64748b;
  text-decoration: line-through;
}

.store-go {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  background: var(--carbon);
  color: #ffffff;
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.store-go:hover {
  background: var(--apex);
  color: #ffffff;
}

/* ---------------- Cockpit BOM Kits, Makers & Trackside Videos ---------------- */
.kgrid,
.bgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.kcard,
.bcard {
  background: var(--stage);
  border: 1px solid var(--line);
  border-left: 4px solid var(--apex);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-stage);
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.kcard h3 {
  font-size: 1.12rem;
}
.kcard h3 a {
  color: var(--carbon);
}
.kcard-thumbs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.kcard-thumbs a {
  width: 68px;
  height: 68px;
  padding: 6px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.kcard-thumbs a:hover {
  border-color: var(--apex);
}
.kcard-thumbs img {
  max-height: 54px;
  width: auto;
  object-fit: contain;
}

.vgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.vcard {
  background: var(--stage);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-stage);
}
.vcard-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--carbon);
}
.vcard-stage img,
.vcard-stage iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}
.vdur {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 2px 7px;
  border-radius: var(--radius-xs);
  background: rgba(13, 15, 19, 0.9);
  color: #ffffff;
  font-family: var(--mono);
  font-size: 0.72rem;
}
.vplay-btn {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(13, 15, 19, 0.24);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.vplay-pill {
  padding: 9px 15px;
  border-radius: var(--radius-sm);
  background: rgba(13, 15, 19, 0.9);
  border: 1px solid var(--apex);
  color: #ffffff;
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}
.vcard-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.vcard-title {
  font-family: var(--body);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
}
.vcard-title a {
  color: var(--carbon);
}

/* Product Detail & Policies */
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 28px;
  margin: 16px 0 32px;
  align-items: start;
}
.detail-stage {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-stage);
}
.detail-info {
  background: var(--stage);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-stage);
}
.detail-price {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
}
.detail-price .price-now {
  font-size: 1.75rem;
}

.policy-strip {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: #f8fafc;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.84rem;
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  margin: 26px 0 10px;
}

/* Legal / Trust / Empty / Toast / Footer */
.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding-bottom: 48px;
}
.legal-card,
.remove-box,
.empty-box {
  background: var(--stage);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-stage);
}
.partners-wrap {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
  padding-bottom: 48px;
}
.faq-list details {
  background: var(--stage);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 10px;
}
.faq-list summary {
  font-weight: 700;
  cursor: pointer;
}

.toast {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 200;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  background: var(--carbon);
  border-left: 4px solid var(--apex);
  color: #ffffff;
  font-family: var(--mono);
  font-size: 0.82rem;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.toast.on {
  opacity: 1;
  transform: translateY(0);
}

.foot {
  background: var(--carbon);
  color: #cbd5e1;
  border-top: 2px solid var(--apex);
  padding: 48px 0 56px;
  margin-top: 40px;
}
.foot-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 36px;
  align-items: start;
}
.foot-tag {
  font-size: 0.92rem;
  color: #94a3b8;
  margin: 10px 0;
  max-width: 48ch;
}
.foot-fine,
.foot-fee {
  font-size: 0.78rem;
  color: #64748b;
  margin: 6px 0 0;
}
.foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}
.foot-nav a,
.foot-link,
.foot-fb-dot {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #cbd5e1;
  font-size: 0.85rem;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: var(--body);
}
.foot-nav a:hover,
.foot-link:hover {
  color: var(--apex-bright);
}

/* ---------------- Responsive Breakpoints ---------------- */
@media (max-width: 1140px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .pitwall-stage,
  .bench-split,
  .calc-grid,
  .detail-grid,
  .partners-wrap,
  .foot-inner {
    grid-template-columns: 1fr;
  }
  .pgrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .vgrid,
  .spec-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .hide-sm { display: none; }
  .mosaic-rack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pgrid,
  .kgrid,
  .bgrid,
  .vgrid,
  .spec-grid,
  .spec-dl,
  .opt-grid,
  .opt-grid.cols-3,
  .tele-kpis,
  .legal-grid,
  .pit-specs-bar {
    grid-template-columns: 1fr;
  }
  .fov-kpi-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 374px) {
  .wrap { padding: 0 12px; }
  .wordmark { font-size: 0.94rem; }
  .logo-sub { display: none; }
  .mosaic-rack { grid-template-columns: 1fr; }
  .btn { padding: 0 12px; font-size: 0.76rem; }
}


/* ==========================================================================
   V4 Overhaul: Full-Bleed 5-Column Tilted Mosaic Hero, Creator Hub & Makers
   ========================================================================== */
.logo-mark {
  width: 42px;
  height: 42px;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
}
.wordmark {
  font-size: 1.08rem;
  letter-spacing: -0.015em;
}
.nav a.nav-shop {
  background: var(--apex);
  color: #ffffff !important;
  border-radius: 999px;
  padding: 0 15px;
  min-height: 36px;
  margin-right: 6px;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.38);
}
.nav a.nav-shop:hover {
  background: var(--apex-bright);
  color: #0d0f13 !important;
}
.nav a.nav-yt {
  color: #fda4af;
}
.nav a.nav-yt:hover,
.nav a.nav-yt.active {
  color: #ffffff;
}

.v4-hero {
  position: relative;
  overflow: hidden;
  background: #090b0f;
  color: #f8fafc;
  min-height: min(650px, calc(100svh - 76px));
  display: flex;
  align-items: flex-end;
  border-bottom: 2px solid var(--apex);
  isolation: isolate;
}
.v4-wall {
  position: absolute;
  inset: -18% -5% -18% -5%;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  transform: rotate(-7deg);
  z-index: -2;
  pointer-events: none;
}
.v4-wall-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: lcrWallFloat 78s linear infinite;
  will-change: transform;
}
.v4-wall-col.wc1 { animation-duration: 92s; animation-direction: reverse; }
.v4-wall-col.wc2 { animation-duration: 68s; }
.v4-wall-col.wc3 { animation-duration: 96s; animation-direction: reverse; }
.v4-wall-col.wc4 { animation-duration: 82s; }
@keyframes lcrWallFloat {
  to { transform: translateY(-50%); }
}
.v4-wall-cell {
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
  padding: 12px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.48);
  flex: none;
}
.v4-wall-cell img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.v4-hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(64% 62% at 18% 82%, rgba(225, 29, 72, 0.24), transparent 65%),
    linear-gradient(96deg, rgba(9, 11, 15, 0.96) 0%, rgba(9, 11, 15, 0.89) 42%, rgba(9, 11, 15, 0.52) 76%, rgba(9, 11, 15, 0.34) 100%),
    linear-gradient(180deg, rgba(9, 11, 15, 0.30) 0%, rgba(9, 11, 15, 0.48) 54%, rgba(9, 11, 15, 0.95) 100%);
}
.v4-hero-inner {
  padding: 112px 0 46px;
  width: 100%;
}
.v4-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 6px 15px;
  border-radius: 999px;
  background: rgba(13, 15, 19, 0.76);
  border: 1px solid rgba(251, 113, 133, 0.48);
  color: #f8fafc;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  backdrop-filter: blur(8px);
}
.v4-live-pill:hover {
  color: #ffffff;
  border-color: #fb7185;
}
.v4-live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--apex);
  box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.28);
}
.v4-hero-copy {
  max-width: 720px;
}
.v4-hero-copy h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.5rem, 5.4vw, 4.45rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 16px 0 14px;
  color: #ffffff;
  text-shadow: 0 8px 34px rgba(0, 0, 0, 0.55);
}
.v4-hero-copy h1 span {
  color: var(--apex-bright);
}
.v4-hero-sub {
  font-size: 1.08rem;
  line-height: 1.55;
  color: #e2e8f0;
  max-width: 56ch;
  margin: 0 0 22px;
}
.v4-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.v4-hero-ctas .btn {
  min-height: 48px;
  padding: 0 22px;
  font-size: 0.9rem;
}
.v4-btn-yt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 19, 27, 0.82);
  color: #ffffff !important;
  border: 1.5px solid rgba(248, 250, 252, 0.55);
  border-radius: var(--radius-sm);
  font-weight: 700;
  backdrop-filter: blur(8px);
}
.v4-btn-yt:hover {
  background: #ffffff;
  color: #0d0f13 !important;
  border-color: #ffffff;
}
.v4-hero-disclose {
  margin: 16px 0 0;
  font-size: 0.78rem;
  color: rgba(226, 232, 240, 0.82);
}
.v4-hero-disclose a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Creator Channel Directory Grid */
.creator-grid-v4 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
  gap: 16px;
}
.ccard-v4 {
  background: var(--stage);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-stage);
  transition: transform 0.16s ease, border-color 0.16s ease;
}
.ccard-v4:hover {
  transform: translateY(-2px);
  border-color: var(--apex);
}
.ccard-v4.active {
  border: 2px solid var(--apex);
  background: #fffafa;
}
.ccard-top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ccard-avatar {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--carbon) 0%, #273043 100%);
  color: #ffffff;
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.88rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 1.5px solid rgba(225, 29, 72, 0.55);
}
.ccard-ident {
  min-width: 0;
  flex: 1;
}
.ccard-name {
  font-family: var(--display);
  font-size: 0.96rem;
  font-weight: 700;
  margin: 0;
  color: var(--ink);
  line-height: 1.2;
}
.ccard-handle {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--muted);
}
.ccard-subs {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--carbon);
  color: #ffffff;
  padding: 4px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.ccard-bio {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.45;
  flex: 1;
}
.ccard-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--billet-deep);
}

/* Ecosystem Makers Strip & Cards */
.maker-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.maker-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 13px;
  border-radius: 999px;
  background: var(--stage);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.14s ease, background 0.14s ease;
}
.maker-pill:hover {
  border-color: var(--apex);
}
.maker-pill.on {
  background: var(--carbon);
  color: #ffffff;
  border-color: var(--carbon);
}
.ecogrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
}
.ecocard {
  background: var(--stage);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow-stage);
}
.ecocard h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .v4-wall {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    inset: -12% -14% -12% -14%;
  }
  .v4-wall-col.wc3,
  .v4-wall-col.wc4 {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .v4-wall-col {
    animation: none;
  }
}

/* ---------------- V5 Subpage & Brand Mosaic Showcase Overhaul ---------------- */
.brands-hero-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0 18px;
  flex-wrap: wrap;
}
.brands-hero-head h1 {
  margin: 6px 0 6px;
}
.brands-hero-head .lede {
  margin: 0;
  max-width: 68ch;
}
.brands-sort-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.bgrid-v5 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}
.bcard-v5 {
  background: var(--stage);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-stage);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.bcard-v5:hover {
  transform: translateY(-2px);
  border-color: var(--apex);
  box-shadow: 0 14px 28px rgba(13, 15, 19, 0.11);
}
.bmosaic {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  gap: 4px;
  aspect-ratio: 16 / 9.5;
  overflow: hidden;
  background: #e2e8f0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.bmosaic-cell {
  background: #ffffff;
  padding: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
}
.bmosaic-cell.hero {
  grid-row: 1 / span 2;
  padding: 14px;
}
.bmosaic-cell img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.18s ease;
}
.bcard-v5:hover .bmosaic-cell img {
  transform: scale(1.03);
}
.bcard-v5-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
}
.bcard-meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.bcard-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  font-family: var(--mono);
  font-size: 0.69rem;
  font-weight: 600;
  line-height: 1.2;
}
.bcard-pill.domain {
  background: #f1f5f9;
  color: var(--ink-soft);
  border: 1px solid #dbe3ed;
}
.bcard-pill.skus {
  background: var(--carbon);
  color: #ffffff;
}
.bcard-pill.deal {
  background: var(--apex-wash);
  color: var(--apex-deep);
  border: 1px solid #fda4af;
}
.bcard-v5-title {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.24;
}
.bcard-v5-title a {
  color: var(--carbon);
}
.bcard-v5-title a:hover {
  color: var(--apex-deep);
}
.bcard-focus {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bcard-ship-line {
  margin: auto 0 0;
  padding-top: 8px;
  border-top: 1px solid #edf2f7;
  font-size: 0.77rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bcard-v5-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 4px;
}
.brands-eco-band {
  background: var(--stage);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-stage);
}

/* Upgraded Cockpit BOM Kit Cards */
.kcard.kcard-v5 {
  padding: 0;
  border-left: 1px solid var(--line);
  overflow: hidden;
  gap: 0;
}
.kcard-mosaic {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  aspect-ratio: 16 / 4.6;
  background: #e2e8f0;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.kcard-mosaic-cell {
  background: #ffffff;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}
.kcard-mosaic-cell img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.kcard-v5-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.kcard-bom-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.kcard-bom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--ink);
}
.kcard-bom-row span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kcard-bom-row:hover {
  color: var(--apex-deep);
}

/* Inline Shoppable Hardware Rows for #specs, #compat & #fov-calc */
.spec-shop-list,
.tele-shop-inline {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}
.tele-shop-inline {
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.mini-shop-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: #f8fafc;
  border: 1px solid var(--line);
}
.telemetry-card .mini-shop-row {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(255, 255, 255, 0.25);
}
.mini-shop-thumb {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: var(--radius-xs);
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.mini-shop-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.mini-shop-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.mini-shop-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--carbon);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mini-shop-title:hover {
  color: var(--apex-deep);
}
.mini-shop-meta {
  display: flex;
  align-items: center;
  gap: 6px;
}
.mini-shop-meta .price-now {
  font-size: 0.9rem;
}
.mini-shop-acts {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.mini-save-btn {
  padding: 0 9px;
  font-size: 0.72rem;
  color: var(--carbon);
}

@media (max-width: 1100px) {
  .bgrid-v5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  .bgrid-v5 {
    grid-template-columns: 1fr;
  }
  .kcard-mosaic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    aspect-ratio: 16 / 9;
  }
  .mini-shop-row {
    flex-wrap: wrap;
  }
}

/* ---------------- V6 Mobile fit: no side-to-side scroll at 320-480px ---------------- */
@media (max-width: 640px) {
  .pitwall-stage,
  .bench-split,
  .calc-grid,
  .detail-grid,
  .partners-wrap,
  .foot-inner,
  .bgrid-v5,
  .pgrid,
  .kgrid,
  .bgrid,
  .vgrid,
  .spec-grid,
  .spec-dl,
  .opt-grid,
  .opt-grid.cols-3,
  .legal-grid,
  .pit-specs-bar,
  .creator-grid-v4 {
    grid-template-columns: minmax(0, 1fr);
  }
  .fov-kpi-strip,
  .tele-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bench-module,
  .calc-panel,
  .telemetry-card,
  .spec-card,
  .kcard,
  .bcard-v5 {
    min-width: 0;
    max-width: 100%;
    padding: 16px;
  }
  .fov-svg-box svg {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
  }
  .sec-head,
  .bench-head,
  .spec-head,
  .spec-banner,
  .pcard-foot,
  .seg-row {
    flex-wrap: wrap;
  }
  .spec-pill {
    white-space: normal;
  }
  select,
  .select-ctrl,
  .input-ctrl,
  input:not([type="checkbox"]):not([type="radio"]) {
    max-width: 100%;
    min-width: 0;
    width: 100%;
  }
  .fov-slider-row {
    flex-wrap: nowrap;
    min-width: 0;
  }
  .fov-slider-row .fov-range {
    min-width: 0;
    flex: 1 1 auto;
  }
  .toast {
    left: 12px;
    right: 12px;
    max-width: calc(100vw - 24px);
  }
  .vmodal,
  .vmodal-box {
    max-width: 100%;
  }
}
@media (max-width: 480px) {
  .top-inner {
    gap: 8px;
  }
  .top-inner > .logo {
    min-width: 0;
    flex-shrink: 1;
    gap: 7px;
  }
  .logo > * {
    min-width: 0;
  }
  .logo .logo-mark {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
  }
  .logo .logo-box {
    flex-shrink: 0;
  }
  .logo .wordmark,
  .logo .wordmark-main {
    font-size: clamp(0.76rem, 3.5vw, 1.02rem);
    letter-spacing: 0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .logo .wordmark-sub,
  .logo .logo-sub {
    display: none;
  }
  .top-actions {
    gap: 6px;
    flex-shrink: 0;
    min-width: 0;
  }
  .top-actions .hide-sm {
    display: none;
  }
  .top-actions > a {
    min-width: 42px;
    min-height: 42px;
    padding: 0 9px;
    gap: 5px;
    justify-content: center;
  }
  .top-actions .menu-btn {
    min-width: 42px;
    min-height: 42px;
    padding: 0 12px;
    justify-content: center;
  }
  .top-actions .menu-btn > span:not(.menu-ico) {
    display: none;
  }
}
@media (max-width: 374px) {
  .top-actions {
    gap: 4px;
  }
  .top-actions > a {
    min-width: 40px;
    min-height: 40px;
    padding: 0 7px;
    gap: 4px;
  }
  .top-actions .menu-btn {
    min-width: 40px;
    min-height: 40px;
    padding: 0 11px;
  }
  .logo .logo-mark {
    width: 28px;
    height: 28px;
  }
}

html, body {
  overflow-x: clip;
}
