:root {
  --red: #e6002d;
  --red-dark: #b8001f;
  --black: #0a0a0a;
  --ink: #141414;
  --ink-2: #333;
  --ink-dim: #6b6b6b;
  --line: #e8e8e8;
  --line-dark: rgba(255,255,255,0.1);
  --bg: #ffffff;
  --bg-soft: #f5f5f5;
  --bg-dark: #0a0a0a;
  --green: #1fa362;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: #fff; color: var(--ink); font-family: "Manrope", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
body { overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
img, svg { display: block; max-width: 100%; }

.wrap { max-width: 1360px; margin: 0 auto; padding: 0 32px; }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--red); }
.eyebrow.dim { color: var(--ink-dim); }
h1, h2, h3 { font-family: "Manrope", sans-serif; letter-spacing: -0.02em; line-height: 1.05; }

/* ============ 01 · ANNOUNCEMENT BAR ============ */
.annc {
  background: var(--black); color: #fff;
  display: flex; justify-content: center; gap: 48px; align-items: center;
  padding: 9px 32px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.02em;
  overflow: hidden; white-space: nowrap;
}
.annc span strong { color: #fff; }
.annc .red { color: var(--red); font-weight: 700; }
.annc .sep { width: 1px; height: 12px; background: rgba(255,255,255,0.2); }
.annc .pulse { width: 7px; height: 7px; background: var(--red); border-radius: 50%; animation: pulse 2s infinite; display: inline-block; margin-right: 8px; vertical-align: middle;}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ============ 02 · NAV ============ */
.nav {
  position: sticky; top: 0; z-index: 90;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1360px; margin: 0 auto;
  padding: 16px 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  font-family: "Manrope", sans-serif; font-weight: 800;
  font-size: 22px; letter-spacing: -0.02em;
  display: flex; align-items: center; gap: 10px;
}
.logo-mark {
  width: 38px; height: 28px;
  background: var(--red);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 14px; letter-spacing: 0.05em;
  border-radius: 3px;
}
.nav-links { display: flex; gap: 28px; font-size: 14px; font-weight: 500; color: var(--ink); }
.nav-links a { transition: color 0.15s; position: relative; padding: 4px 0; }
.nav-links a:hover { color: var(--red); }
.nav-links a.has-caret::after { content: ' ⌄'; color: var(--ink-dim); font-size: 11px; }
.nav-actions { display: flex; gap: 10px; align-items: center; }
.nav-icon {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink); transition: background 0.15s;
}
.nav-icon:hover { background: var(--bg-soft); }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
  border-radius: 4px; cursor: pointer;
  transition: all 0.18s;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn-black { background: var(--black); color: #fff; }
.btn-black:hover { background: #222; }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-ghost { color: var(--ink); }
.btn-ghost:hover { background: var(--bg-soft); }
.btn-lg { padding: 14px 28px; font-size: 14px; }
.btn .arrow { transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ============ 03 · HERO ============ */
.hero {
  background: linear-gradient(180deg, #f8f8f8 0%, #ebebeb 50%, #d8d8d8 100%);
  position: relative;
  overflow: hidden;
  padding: 64px 32px 0;
  min-height: 680px;
  display: flex; flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--red); margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(44px, 6vw, 78px);
  font-weight: 800;
  max-width: 20ch;
  margin-bottom: 18px;
}
.hero h1 em { font-style: normal; color: var(--red); }
.hero-sub {
  max-width: 56ch; font-size: 16px; color: #444; line-height: 1.6; margin-bottom: 30px;
}
.hero-ctas { display: flex; gap: 12px; margin-bottom: 50px; }
.hero-car {
  width: 100%; max-width: 1100px;
  aspect-ratio: 16/7;
  position: relative;
  margin-top: auto;
}
.hero-car-img {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 40% at 50% 95%, rgba(0,0,0,0.4), transparent 70%),
    linear-gradient(180deg, transparent 0%, transparent 35%, #d8d8d8 100%);
  display: flex; align-items: center; justify-content: center;
}
.hero-car-shape {
  width: 75%; aspect-ratio: 16/5;
  background: linear-gradient(180deg, #f0ece4 0%, #d9d3c7 55%, #8a8578 100%);
  border-radius: 50% 50% 8% 8% / 80% 80% 20% 20%;
  position: relative;
  box-shadow:
    0 60px 80px -30px rgba(0,0,0,0.35),
    inset 0 -30px 40px -20px rgba(0,0,0,0.25);
}
.hero-car-shape::before {
  content: ''; position: absolute; top: 30%; left: 15%; right: 15%; height: 35%;
  background: linear-gradient(180deg, rgba(30,30,30,0.55), rgba(10,10,10,0.8));
  border-radius: 40% 40% 6% 6% / 90% 90% 20% 20%;
}
.hero-car-shape::after {
  content: '';
  position: absolute; bottom: 6%; left: 10%; width: 20%; aspect-ratio: 1/1;
  background: radial-gradient(circle, #0a0a0a 35%, #333 45%, #0a0a0a 50%);
  border-radius: 50%;
  box-shadow: 56vw 0 0 0 #0a0a0a;
  transform: scale(0.32) translateY(140%);
  transform-origin: left center;
}
.hero-car-label {
  position: absolute; top: 8px; right: 12px;
  font-family: "Inter", monospace; font-size: 10px; letter-spacing: 0.2em;
  color: rgba(0,0,0,0.35); text-transform: uppercase;
}

/* ============ 04 · STATS BAND ============ */
.stats {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 60px 0;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  align-items: center;
}
.stat {
  text-align: center;
  position: relative;
  padding: 0 24px;
}
.stat:not(:last-child)::after {
  content: ''; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 1px; height: 60px; background: var(--line);
}
.stat-val {
  font-size: 48px; font-weight: 800; letter-spacing: -0.03em;
  color: var(--black);
  display: flex; align-items: baseline; justify-content: center; gap: 4px;
}
.stat-val .plus { color: var(--red); }
.stat-label { font-size: 13px; color: var(--ink-dim); margin-top: 4px; font-weight: 500; }

/* ============ 05 · POPULAR VEHICLES ============ */
.section { padding: 96px 0; }
.section.dark { background: var(--bg-dark); color: #fff; }
.section.soft { background: var(--bg-soft); }
.section-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 48px; gap: 32px;
}
.section-head h2 {
  font-size: clamp(32px, 3.8vw, 48px); font-weight: 800;
}
.section-head .right { display: flex; gap: 12px; align-items: center; }
.section-intro { max-width: 40ch; color: var(--ink-dim); font-size: 14px; line-height: 1.6; margin-top: 8px; }

.pop-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 20px; }
.pop-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1);
  min-height: 300px;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 24px;
  color: #fff;
}
.pop-card:hover { transform: translateY(-4px); }
.pop-card.big { min-height: 420px; grid-row: span 2; }
.pop-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  z-index: 0;
}
.pop-bg.lime {
  background:
    radial-gradient(ellipse at 50% 90%, rgba(0,0,0,0.5), transparent 60%),
    linear-gradient(160deg, #c8e24a 0%, #86b020 100%);
}
.pop-bg.matte {
  background:
    radial-gradient(ellipse at 50% 90%, rgba(0,0,0,0.6), transparent 60%),
    linear-gradient(160deg, #2a2a2a 0%, #0f0f0f 100%);
}
.pop-bg.white {
  background:
    radial-gradient(ellipse at 50% 90%, rgba(0,0,0,0.3), transparent 60%),
    linear-gradient(160deg, #f2ecdf 0%, #c8c0b0 100%);
}
.pop-bg.silver {
  background:
    radial-gradient(ellipse at 50% 90%, rgba(0,0,0,0.4), transparent 60%),
    linear-gradient(160deg, #c8ccd2 0%, #808690 100%);
}
.pop-bg.red {
  background:
    radial-gradient(ellipse at 50% 90%, rgba(0,0,0,0.5), transparent 60%),
    linear-gradient(160deg, #e84a3f 0%, #aa1a18 100%);
}
.pop-bg .car {
  position: absolute; top: 20%; left: 12%; right: 12%;
  aspect-ratio: 16/7;
  background: linear-gradient(180deg, rgba(255,255,255,0.15), rgba(0,0,0,0.2));
  border-radius: 50% 50% 5% 5% / 80% 80% 20% 20%;
  mix-blend-mode: screen;
  box-shadow: inset 0 -10px 20px rgba(0,0,0,0.3);
}
.pop-bg.matte .car, .pop-bg.red .car, .pop-bg.lime .car { background: linear-gradient(180deg, rgba(255,255,255,0.3), rgba(0,0,0,0.3)); }
.pop-card .pop-bg::after {
  content: '[ VEHICLE SHOT ]';
  position: absolute; top: 12px; right: 14px;
  font-family: "Inter", monospace; font-size: 9px; letter-spacing: 0.2em;
  color: rgba(255,255,255,0.4);
}
.pop-bg.white::after, .pop-bg.silver::after { color: rgba(0,0,0,0.4); }
.pop-card .pop-content { position: relative; z-index: 1; }
.pop-card.light { color: var(--black); }
.pop-card .cat { font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.85; margin-bottom: 6px; }
.pop-card h3 { font-size: 28px; font-weight: 700; margin-bottom: 4px; }
.pop-card.big h3 { font-size: 40px; }
.pop-card .price {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 14px;
  padding: 8px 14px;
  background: var(--red);
  border-radius: 999px;
  font-size: 13px; font-weight: 700;
  color: #fff;
}
.pop-card .price .strike { text-decoration: line-through; opacity: 0.6; font-weight: 500; margin-right: 4px; }
.pop-card .specs { display: flex; gap: 18px; margin-top: 14px; font-size: 12px; font-weight: 500; opacity: 0.9; }
.pop-card .specs span strong { display: block; font-size: 16px; font-weight: 700; margin-top: 2px; opacity: 1; }
.pop-card .actions { display: flex; gap: 8px; margin-top: 18px; }
.pop-card .actions .b {
  padding: 8px 14px; border-radius: 4px; font-size: 12px; font-weight: 600;
}
.pop-card.light .actions .b { background: var(--black); color: #fff; }
.pop-card:not(.light) .actions .b { background: #fff; color: var(--black); }
.pop-card .actions .b.g { background: rgba(255,255,255,0.15); color: inherit; border: 1px solid rgba(255,255,255,0.3); }
.pop-card.light .actions .b.g { background: transparent; color: var(--black); border-color: var(--black); }

/* ============ 06 · CATEGORY TABS ============ */
.cat-strip {
  background: #000; color: #fff;
  padding: 0;
  position: relative;
  overflow: hidden;
}
.cat-strip-inner { padding: 72px 32px; max-width: 1360px; margin: 0 auto; position: relative; }
.cat-strip h2 { text-align: center; font-size: 32px; font-weight: 700; margin-bottom: 36px; }
.cat-tabs {
  display: flex; justify-content: center; gap: 0;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  padding: 6px;
  background: rgba(255,255,255,0.03);
  max-width: max-content;
  margin: 0 auto;
  flex-wrap: wrap;
}
.cat-tab {
  padding: 12px 24px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.04em;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
  color: rgba(255,255,255,0.7);
  display: flex; align-items: center; gap: 8px;
}
.cat-tab.active { background: var(--red); color: #fff; }
.cat-tab:not(.active):hover { color: #fff; }

/* ============ 07 · LATEST FOR SALE ============ */
.sale-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
.sale-list { display: flex; flex-direction: column; gap: 16px; }
.sale-row {
  display: grid; grid-template-columns: 200px 1fr auto; gap: 20px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  transition: border-color 0.2s, transform 0.2s;
  cursor: pointer;
  align-items: center;
}
.sale-row:hover { border-color: var(--red); transform: translateY(-2px); }
.sale-thumb {
  aspect-ratio: 4/3;
  border-radius: 6px;
  background: linear-gradient(160deg, #c8e24a, #86b020);
  position: relative; overflow: hidden;
}
.sale-thumb.matte { background: linear-gradient(160deg, #2a2a2a, #0f0f0f); }
.sale-thumb.white { background: linear-gradient(160deg, #f2ecdf, #c8c0b0); }
.sale-thumb::before {
  content: ''; position: absolute; top: 30%; left: 10%; right: 10%; bottom: 25%;
  background: linear-gradient(180deg, rgba(255,255,255,0.2), rgba(0,0,0,0.25));
  border-radius: 40% 40% 8% 8% / 80% 80% 20% 20%;
}
.sale-thumb::after {
  content: '[ CAR ]'; position: absolute; bottom: 6px; right: 8px;
  font-family: "Inter", monospace; font-size: 9px; letter-spacing: 0.15em; color: rgba(0,0,0,0.4);
}
.sale-info h4 { font-size: 20px; font-weight: 700; margin-bottom: 2px; }
.sale-info .meta { font-size: 12px; color: var(--ink-dim); margin-bottom: 10px; }
.sale-info .badges { display: flex; gap: 8px; flex-wrap: wrap; }
.sale-badge {
  font-size: 11px; font-weight: 600; letter-spacing: 0.05em;
  padding: 4px 10px; border-radius: 999px;
  background: var(--bg-soft); color: var(--ink);
}
.sale-badge.red { background: var(--red); color: #fff; }
.sale-badge.green { background: var(--green); color: #fff; }
.sale-price { text-align: right; }
.sale-price .new { font-size: 22px; font-weight: 800; color: var(--black); letter-spacing: -0.02em; }
.sale-price .old { font-size: 13px; color: var(--ink-dim); text-decoration: line-through; }
.sale-price .save { font-size: 11px; color: var(--green); font-weight: 700; margin-top: 4px; }

.sale-side { display: flex; flex-direction: column; gap: 16px; }
.side-card {
  border-radius: 10px; padding: 28px;
  color: #fff;
  min-height: 200px;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
}
.side-card.dark { background: linear-gradient(160deg, #1a1a1a, #0a0a0a); border: 1px solid rgba(255,255,255,0.08); }
.side-card.red { background: linear-gradient(160deg, var(--red), #a0001f); }
.side-card h4 { font-size: 22px; font-weight: 700; line-height: 1.15; margin-bottom: 10px; }
.side-card p { font-size: 13px; line-height: 1.5; opacity: 0.88; margin-bottom: 16px; }
.side-card .cta {
  align-self: flex-start;
  padding: 10px 18px; background: #fff; color: var(--black);
  border-radius: 4px; font-size: 12px; font-weight: 700; letter-spacing: 0.05em;
  display: inline-flex; align-items: center; gap: 6px;
}

/* ============ 08 · BLADE BATTERY ============ */
.blade {
  position: relative;
  min-height: 620px;
  background:
    radial-gradient(ellipse at 60% 50%, rgba(0,102,255,0.25) 0%, transparent 50%),
    linear-gradient(135deg, #001a3d 0%, #000814 70%, #000 100%);
  color: #fff;
  overflow: hidden;
  display: flex; align-items: center;
  padding: 80px 32px;
  margin: 0;
}
.blade-bg {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(90deg,
      rgba(80,160,255,0.12) 0 2px,
      transparent 2px 30px),
    repeating-linear-gradient(0deg,
      rgba(80,160,255,0.06) 0 1px,
      transparent 1px 30px);
  mask-image: radial-gradient(ellipse at 70% 50%, black 30%, transparent 80%);
  animation: bladeDrift 20s linear infinite;
}
@keyframes bladeDrift {
  from { transform: translateX(0); }
  to { transform: translateX(30px); }
}
.blade-sweep {
  position: absolute; top: 30%; right: -10%; width: 50%; aspect-ratio: 2/1;
  background: radial-gradient(ellipse at left, rgba(100,200,255,0.3), transparent 70%);
  filter: blur(40px);
  animation: bladeSweep 8s ease-in-out infinite alternate;
}
@keyframes bladeSweep { 0% { transform: translateY(0); } 100% { transform: translateY(-40px); } }
.blade-inner {
  position: relative; z-index: 1;
  max-width: 1360px; margin: 0 auto; width: 100%;
}
.blade h2 {
  font-size: clamp(40px, 5vw, 72px); font-weight: 800; max-width: 20ch;
  margin-bottom: 40px;
}
.blade h2 em { font-style: normal; color: #7cc0ff; }
.blade-sub { font-size: 16px; max-width: 52ch; opacity: 0.85; line-height: 1.6; margin-bottom: 36px; }
.blade-stats { display: flex; gap: 48px; margin-bottom: 40px; flex-wrap: wrap; }
.blade-stat-val { font-size: 40px; font-weight: 800; letter-spacing: -0.02em; }
.blade-stat-val sub { font-size: 14px; font-weight: 500; opacity: 0.7; margin-left: 4px; vertical-align: baseline; }
.blade-stat-lbl { font-size: 12px; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; opacity: 0.7; margin-top: 4px; }
.blade-tag {
  position: absolute; bottom: 30px; right: 30px;
  font-family: "Inter", monospace; font-size: 10px; letter-spacing: 0.2em; opacity: 0.4;
}

/* ============ 09 · INVESTMENT PLANS ============ */
.plans-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.plan {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  display: flex; flex-direction: column;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.plan:hover { transform: translateY(-4px); border-color: var(--red); box-shadow: 0 16px 40px -16px rgba(230,0,45,0.25); }
.plan.featured { border-color: var(--red); position: relative; }
.plan.featured::before {
  content: 'MOST POPULAR'; position: absolute; top: 14px; right: 14px;
  background: var(--red); color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em;
  padding: 4px 8px; border-radius: 999px;
}
.plan-img {
  aspect-ratio: 5/3;
  background: linear-gradient(160deg, #cc6b2f, #8a3d0f);
  position: relative;
  overflow: hidden;
}
.plan-img.silver { background: linear-gradient(160deg, #c0c4ca, #6d717a); }
.plan-img.gold { background: linear-gradient(160deg, #e8c87b, #a8862f); }
.plan-img.diamond { background: linear-gradient(160deg, #1e3a6e, #0a0f1e); }
.plan-img::before {
  content: ''; position: absolute; top: 35%; left: 12%; right: 12%; bottom: 20%;
  background: linear-gradient(180deg, rgba(255,255,255,0.2), rgba(0,0,0,0.2));
  border-radius: 40% 40% 8% 8% / 80% 80% 20% 20%;
}
.plan-img::after {
  content: '[ TIER CAR ]'; position: absolute; bottom: 8px; right: 10px;
  font-family: "Inter", monospace; font-size: 9px; letter-spacing: 0.15em; color: rgba(255,255,255,0.5);
}
.plan-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.plan-name {
  font-size: 12px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  margin-bottom: 10px;
}
.plan-name.bronze { color: #a05a1f; }
.plan-name.silver { color: #6d717a; }
.plan-name.gold { color: #a8862f; }
.plan-name.diamond { color: #2a4a8e; }
.plan-price {
  font-size: 36px; font-weight: 800; letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.plan-price sub { font-size: 13px; font-weight: 500; color: var(--ink-dim); margin-left: 6px; vertical-align: baseline; }
.plan-roi { font-size: 13px; color: var(--green); font-weight: 600; margin-bottom: 18px; }
.plan-features { list-style: none; flex: 1; margin-bottom: 24px; }
.plan-features li {
  padding: 7px 0;
  font-size: 13px;
  display: flex; align-items: center; gap: 10px;
  color: var(--ink-2);
}
.plan-features li::before {
  content: '✓'; color: var(--red); font-weight: 700; font-size: 14px;
}
.plan-cta {
  padding: 13px; border-radius: 6px;
  background: var(--black); color: #fff;
  font-size: 13px; font-weight: 700; letter-spacing: 0.04em;
  text-align: center; cursor: pointer;
  transition: background 0.2s;
  border: none;
  width: 100%;
}
.plan.featured .plan-cta { background: var(--red); }
.plan-cta:hover { background: var(--red-dark); }

/* ============ 10 · INSTALLMENT CALCULATOR ============ */
.calc-wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: center; }
.calc-left h2 { font-size: clamp(32px, 3.5vw, 48px); font-weight: 800; margin-bottom: 16px; }
.calc-left p { color: var(--ink-dim); line-height: 1.6; max-width: 44ch; }
.calc-panel {
  background: var(--black); color: #fff;
  border-radius: 12px; padding: 36px;
}
.calc-row { margin-bottom: 24px; }
.calc-row label {
  display: flex; justify-content: space-between;
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.6); margin-bottom: 10px;
}
.calc-row label strong { color: var(--red); font-size: 14px; letter-spacing: 0; text-transform: none; }
.calc-slider {
  width: 100%; appearance: none; height: 4px;
  background: rgba(255,255,255,0.15); border-radius: 2px; outline: none;
}
.calc-slider::-webkit-slider-thumb {
  appearance: none; width: 20px; height: 20px; border-radius: 50%;
  background: var(--red); cursor: pointer; border: 3px solid #fff;
  box-shadow: 0 0 0 1px var(--red);
}
.calc-slider::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--red); cursor: pointer; border: 3px solid #fff;
}
.calc-result {
  margin-top: 28px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
.calc-result-item .l { font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255,255,255,0.6); }
.calc-result-item .v { font-size: 32px; font-weight: 800; letter-spacing: -0.02em; color: #fff; margin-top: 4px; }
.calc-result-item .v.red { color: var(--red); }

/* ============ 11 · GLOBAL SHIPPING ============ */
.shipping { background: var(--bg-soft); }
.ship-wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: center; }
.ship-map {
  aspect-ratio: 16/10;
  background: #fff;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  padding: 24px;
}
.ship-map-svg { width: 100%; height: 100%; }
.ship-dot { fill: var(--red); }
.ship-dot.pulse { animation: shipPulse 2s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes shipPulse { 0%,100% { r: 3; } 50% { r: 6; opacity: 0.4; } }
.ship-content h2 { font-size: clamp(32px, 3.5vw, 48px); font-weight: 800; margin-bottom: 18px; }
.ship-content p { color: var(--ink-dim); font-size: 15px; line-height: 1.6; margin-bottom: 28px; max-width: 44ch; }
.ship-steps {
  display: grid; gap: 18px;
  margin-bottom: 32px;
}
.ship-step { display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start; }
.ship-step-n {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--red); color: #fff;
  font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.ship-step-t { font-weight: 700; font-size: 15px; margin-bottom: 2px; }
.ship-step-d { font-size: 13px; color: var(--ink-dim); line-height: 1.5; }

/* ============ 12 · SUSTAINABILITY ============ */
.sus {
  position: relative;
  min-height: 520px;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(31,163,98,0.3) 0%, transparent 60%),
    linear-gradient(135deg, #05130a 0%, #040d06 100%);
  color: #fff;
  padding: 120px 32px;
  overflow: hidden;
  text-align: center;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
}
.sus::before {
  content: ''; position: absolute; inset: 0;
  background:
    repeating-linear-gradient(135deg,
      rgba(255,255,255,0.03) 0 6px,
      transparent 6px 24px);
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 90%);
}
.sus-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.25em; text-transform: uppercase; color: #7ccfa0; margin-bottom: 24px; position: relative; z-index: 1;}
.sus h2 {
  font-size: clamp(36px, 5vw, 64px); font-weight: 300;
  max-width: 20ch; line-height: 1.1;
  position: relative; z-index: 1;
}
.sus h2 em { font-style: normal; color: #7ccfa0; font-weight: 500; }
.sus-tag {
  position: absolute; bottom: 20px; right: 20px;
  font-family: "Inter", monospace; font-size: 10px; letter-spacing: 0.2em;
  color: rgba(255,255,255,0.3);
}

/* ============ 13 · TRACK ORDER ============ */
.track {
  background: linear-gradient(135deg, #e6002d 0%, #b8001f 100%);
  color: #fff;
  padding: 80px 32px;
  text-align: center;
  position: relative; overflow: hidden;
}
.track::before {
  content: ''; position: absolute; inset: 0;
  background:
    repeating-linear-gradient(45deg,
      rgba(255,255,255,0.05) 0 10px,
      transparent 10px 30px);
}
.track-inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.track h2 { font-size: clamp(28px, 3.5vw, 40px); font-weight: 800; margin-bottom: 12px; }
.track p { opacity: 0.9; margin-bottom: 28px; font-size: 15px; }
.track-form {
  display: flex; gap: 8px; max-width: 520px; margin: 0 auto;
  background: #fff; padding: 6px; border-radius: 6px;
  box-shadow: 0 12px 40px -12px rgba(0,0,0,0.3);
}
.track-form input {
  flex: 1; padding: 12px 16px; border: none; outline: none;
  font-size: 14px; font-family: inherit; color: var(--black);
  background: transparent;
}
.track-form button {
  background: var(--black); color: #fff;
  padding: 12px 24px; border-radius: 4px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.04em;
  white-space: nowrap;
}

/* ============ 14 · REVIEWS ============ */
.rev-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.rev-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 28px;
}
.rev-stars {
  color: var(--green);
  font-size: 16px; letter-spacing: 2px;
  margin-bottom: 14px;
}
.rev-stars .rating {
  color: var(--black); font-weight: 700; margin-left: 8px; font-size: 13px; letter-spacing: 0;
}
.rev-card .q { font-size: 15px; line-height: 1.6; margin-bottom: 20px; color: var(--ink); }
.rev-who { display: flex; gap: 12px; align-items: center; padding-top: 16px; border-top: 1px solid var(--line); }
.rev-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--ink); font-size: 14px;
}
.rev-who-name { font-size: 13px; font-weight: 700; }
.rev-who-meta { font-size: 11px; color: var(--ink-dim); letter-spacing: 0.05em; }

/* ============ 15 · DUAL CTA ============ */
.dual { background: var(--bg-soft); padding: 0; }
.dual-wrap {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  max-width: 1360px; margin: 0 auto; padding: 96px 32px;
}
.dual-card {
  position: relative;
  min-height: 420px;
  border-radius: 14px;
  overflow: hidden;
  padding: 56px;
  display: flex; flex-direction: column; justify-content: space-between;
  color: #fff;
  cursor: pointer;
  transition: transform 0.4s;
}
.dual-card:hover { transform: translateY(-4px); }
.dual-car-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #1a1a1a 0%, #000 100%);
  z-index: 0;
}
.dual-card.own .dual-car-bg {
  background:
    radial-gradient(ellipse at 80% 50%, rgba(230,0,45,0.3), transparent 60%),
    linear-gradient(135deg, #2a0a0e 0%, #0a0a0a 100%);
}
.dual-car-bg::before {
  content: ''; position: absolute; top: 30%; left: 30%; right: 5%; bottom: 10%;
  background: linear-gradient(160deg, rgba(240,236,228,0.6), rgba(80,75,67,0.9));
  border-radius: 50% 50% 8% 8% / 80% 80% 20% 20%;
  mix-blend-mode: lighten;
  opacity: 0.8;
}
.dual-card.invest .dual-car-bg::before { background: linear-gradient(160deg, rgba(200,228,74,0.5), rgba(134,176,32,0.9)); }
.dual-content { position: relative; z-index: 1; max-width: 24ch; }
.dual-card .kicker { font-size: 11px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--red); margin-bottom: 14px; }
.dual-card.invest .kicker { color: #c8e24a; }
.dual-card h3 { font-size: 36px; font-weight: 800; line-height: 1.05; margin-bottom: 14px; }
.dual-card p { font-size: 14px; line-height: 1.5; opacity: 0.85; margin-bottom: 24px; }
.dual-card .btn { align-self: flex-start; position: relative; z-index: 1; }
.dual-card-tag {
  position: absolute; top: 20px; right: 24px; z-index: 2;
  font-family: "Inter", monospace; font-size: 10px; letter-spacing: 0.15em;
  color: rgba(255,255,255,0.4);
}

/* ============ 16 · FAQ ============ */
.faq-wrap { max-width: 820px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.faq-q {
  padding: 22px 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 16px; font-weight: 600;
  gap: 20px;
  transition: color 0.2s;
}
.faq-item:hover .faq-q { color: var(--red); }
.faq-icon {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--bg-soft); color: var(--black);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700;
  transition: transform 0.3s, background 0.2s;
  flex-shrink: 0;
}
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--red); color: #fff; }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  font-size: 14px; color: var(--ink-dim); line-height: 1.7;
}
.faq-item.open .faq-a { max-height: 220px; padding-bottom: 22px; }

/* ============ 17 · NEWSLETTER ============ */
.nl {
  background: var(--black); color: #fff;
  padding: 80px 32px;
  text-align: center;
}
.nl-inner { max-width: 640px; margin: 0 auto; }
.nl h2 { font-size: clamp(28px, 3vw, 40px); font-weight: 800; margin-bottom: 12px; }
.nl p { opacity: 0.7; font-size: 15px; margin-bottom: 28px; }
.nl-form {
  display: flex; gap: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px; padding: 6px;
  max-width: 480px; margin: 0 auto;
}
.nl-form input {
  flex: 1; background: transparent; border: none; outline: none;
  padding: 12px 16px; font-size: 14px; font-family: inherit; color: #fff;
}
.nl-form input::placeholder { color: rgba(255,255,255,0.4); }
.nl-form button { background: var(--red); padding: 12px 22px; border-radius: 4px; font-size: 13px; font-weight: 700; color: #fff; }

/* ============ 18 · FOOTER ============ */
footer {
  background: #050505; color: rgba(255,255,255,0.6);
  padding: 72px 32px 32px;
}
.foot-grid {
  max-width: 1360px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.foot-brand .logo { color: #fff; margin-bottom: 16px; }
.foot-brand p { font-size: 13px; line-height: 1.6; max-width: 32ch; }
.foot-social { display: flex; gap: 10px; margin-top: 20px; }
.foot-social a {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600;
  transition: background 0.2s, color 0.2s;
}
.foot-social a:hover { background: var(--red); border-color: var(--red); color: #fff; }
.foot-col h5 { font-size: 12px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.foot-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.foot-col a:hover { color: #fff; }
.foot-bottom {
  max-width: 1360px; margin: 32px auto 0;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 12px;
}
.foot-bottom .right { display: flex; gap: 20px; }

/* Tweaks */
.tweaks {
  position: fixed; right: 20px; bottom: 20px;
  width: 300px;
  background: rgba(10,10,10,0.95);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 18px;
  z-index: 9999;
  font-family: "Manrope", sans-serif;
  font-size: 13px;
  display: none;
  max-height: 80vh; overflow-y: auto;
}
.tweaks.open { display: block; }
.tweaks h4 { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255,255,255,0.6); margin-bottom: 14px; font-weight: 600; }
.tweak-row { margin-bottom: 14px; }
.tweak-row label { display: block; font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255,255,255,0.6); margin-bottom: 6px; }
.tweak-row input, .tweak-row select {
  width: 100%; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.15);
  color: #fff; padding: 8px 10px; border-radius: 4px; font: inherit; outline: none;
}
.swatch-row { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch { width: 28px; height: 28px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; transition: transform 0.15s; }
.swatch:hover { transform: scale(1.1); }
.swatch.active { border-color: #fff; }

@media (max-width: 1100px) {
  .pop-grid { grid-template-columns: 1fr 1fr; }
  .pop-card.big { grid-column: span 2; grid-row: auto; }
  .plans-grid { grid-template-columns: 1fr 1fr; }
  .calc-wrap, .ship-wrap { grid-template-columns: 1fr; }
  .dual-wrap { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .sale-layout { grid-template-columns: 1fr; }
  .rev-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2)::after { display: none; }
}
@media (max-width: 700px) {
  .nav-links { display: none; }
  .pop-grid { grid-template-columns: 1fr; }
  .pop-card.big { grid-column: span 1; }
  .plans-grid { grid-template-columns: 1fr; }
  .sale-row { grid-template-columns: 1fr; }
  .annc { gap: 20px; font-size: 10px; }
  .section { padding: 64px 0; }
  .wrap { padding: 0 20px; }
}

/* Progressive enhancement: .reveal defaults to visible so SSR/print/no-JS + */
/* full-page screenshotters never see empty sections. JS (initReveal) adds  */
/* the .js-reveal class to <html> so the fade-up animation only runs when   */
/* JS is available. */
.reveal { opacity: 1; transform: none; transition: opacity 0.7s, transform 0.7s; }
html.js-reveal .reveal { opacity: 0; transform: translateY(24px); }
html.js-reveal .reveal.in { opacity: 1; transform: none; }
/* Reduced-motion users always see content immediately. */
@media (prefers-reduced-motion: reduce) {
  html.js-reveal .reveal { opacity: 1; transform: none; }
}

/* ============ HANDOFF-V2 INNER PAGE PRIMITIVES ============ */
/* Ported from handoff-v2/shared/inner.css 2026-04-18. Used by every
   non-homepage template served by the byd-cms-pages plugin. */
.btn-outline-white { border-color: rgba(255,255,255,0.4); color: #fff; }
.btn-outline-white:hover { background: #fff; color: var(--ink); }

.page-hero {
  background: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 100%);
  color: #fff;
  padding: 88px 0 72px;
  border-bottom: 4px solid var(--red);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 80% 20%, rgba(230,0,45,0.15), transparent 40%),
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 100% 100%, 80px 80px, 80px 80px;
  opacity: 0.6;
}
.page-hero .wrap { position: relative; }
.breadcrumb { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.5); display: flex; gap: 10px; align-items: center; margin-bottom: 24px; }
.breadcrumb a { color: rgba(255,255,255,0.75); }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb .sep { color: rgba(255,255,255,0.3); }
.page-title { font-size: clamp(44px, 5.5vw, 72px); font-weight: 800; letter-spacing: -0.025em; line-height: 1.02; max-width: 20ch; }
.page-title em { font-style: normal; color: var(--red); }
.page-sub { margin-top: 22px; max-width: 62ch; font-size: 16px; color: rgba(255,255,255,0.75); line-height: 1.6; }

.section.dark .section-head h2, .section.dark h2, .section.dark h3 { color: #fff; }
.section-sub { max-width: 52ch; font-size: 15px; color: var(--ink-dim); line-height: 1.6; }
.section.dark .section-sub { color: rgba(255,255,255,0.65); }

/* CTA band used by most inner pages */
.cta-band { background: var(--red); color: #fff; padding: 80px 0; }
.cta-band .cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(28px, 3.2vw, 44px); color: #fff; max-width: 22ch; }
.cta-band p { font-size: 15px; opacity: 0.9; margin-top: 10px; max-width: 48ch; }
.cta-band .cta-actions { display: flex; gap: 12px; flex-shrink: 0; flex-wrap: wrap; }

/* Legal / prose pages */
.byd-prose { max-width: 760px; margin: 0 auto; padding: 72px 32px; font-size: 15px; line-height: 1.75; color: var(--ink-2); }
.byd-prose h2 { font-size: 28px; font-weight: 800; margin: 40px 0 14px; color: var(--ink); }
.byd-prose h3 { font-size: 20px; font-weight: 700; margin: 28px 0 10px; color: var(--ink); }
.byd-prose p, .byd-prose ul, .byd-prose ol { margin-bottom: 14px; }
.byd-prose ul, .byd-prose ol { padding-left: 22px; }
.byd-prose .legal-meta { font-size: 13px; color: var(--ink-dim); border-bottom: 1px solid var(--line); padding-bottom: 18px; margin-bottom: 28px; }

/* Error-state pages (404 / 500 / maintenance) */
.byd-error { min-height: 70vh; display: flex; align-items: center; justify-content: center; padding: 80px 32px; background: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 100%); color: #fff; text-align: center; }
.byd-error .code { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 14px; letter-spacing: 0.25em; color: var(--red); margin-bottom: 18px; }
.byd-error h1 { font-size: clamp(40px, 5vw, 64px); font-weight: 800; max-width: 18ch; margin: 0 auto 16px; letter-spacing: -0.02em; }
.byd-error h1 em { font-style: normal; color: var(--red); }
.byd-error p { max-width: 52ch; margin: 0 auto 28px; font-size: 16px; color: rgba(255,255,255,0.7); line-height: 1.6; }
.byd-error .actions { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* Homepage C hero carousel (Section 1) */
.byd-hero-carousel { position: relative; overflow: hidden; }
.byd-hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.9s ease; pointer-events: none; }
.byd-hero-slide.is-active { opacity: 1; pointer-events: auto; position: relative; }
.byd-hero-slide .hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: 0; }
.byd-hero-slide .hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,0.0) 30%, rgba(255,255,255,0.85) 100%); }
.byd-hero-dots { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 3; }
.byd-hero-dots button { width: 10px; height: 10px; border-radius: 50%; background: rgba(0,0,0,0.25); border: none; padding: 0; cursor: pointer; transition: background 0.2s, transform 0.2s; }
.byd-hero-dots button.is-active { background: var(--red); transform: scale(1.25); }

/* === BYD Automotive Group — build tweaks === */
/* Canvas template reset for Elementor pages */
body.elementor-template-canvas { background: #fff; color: var(--ink); }
/* Ensure our global chrome sits above Elementor's wrapping */
.byd-annc, .byd-nav { z-index: 95; }
/* Disclosure footnote below Investment Plans */
.plan-disclosure { text-align: center; color: var(--ink-dim); font-size: 11px; letter-spacing: 0.04em; margin-top: 32px; max-width: 72ch; margin-left: auto; margin-right: auto; line-height: 1.65; }
.plan-disclosure strong { color: var(--ink); }
/* Reveal fallback if JS fails */
.no-js .reveal { opacity: 1; transform: none; }
/* Logo in nav */
.byd-nav .logo-svg { height: 40px; width: auto; display: block; }
/* Logo in footer */
.byd-footer .logo-svg { height: 56px; width: auto; display: block; margin-bottom: 20px; }
/* Dropdown menu styles */
.nav-links .has-dropdown { position: relative; }
.nav-links .dropdown-menu {
  position: absolute; top: 100%; left: 0; min-width: 240px;
  background: #fff; border: 1px solid var(--line);
  box-shadow: 0 16px 40px -16px rgba(0,0,0,0.25);
  padding: 14px 0; margin-top: 8px;
  opacity: 0; pointer-events: none; transform: translateY(-4px);
  transition: opacity 0.15s, transform 0.15s;
  z-index: 100;
}
.nav-links .has-dropdown:hover .dropdown-menu { opacity: 1; pointer-events: auto; transform: none; }
.nav-links .dropdown-menu a { display: block; padding: 9px 22px; font-size: 13px; color: var(--ink); white-space: nowrap; }
.nav-links .dropdown-menu a:hover { color: var(--red); background: var(--bg-soft); }
@media (max-width: 960px) {
  .nav-links .dropdown-menu { display: none; }
}

/* ============ 20 · BYD ACCORDION (investment/financing/giveaway FAQ) ============ */
.byd-accordion { max-width: 900px; margin: 0 auto; border-top: 1px solid var(--line); }
.byd-accordion-item { border-bottom: 1px solid var(--line); cursor: pointer; }
.byd-accordion-q {
  padding: 20px 48px 20px 0; position: relative;
  font-size: 16px; font-weight: 600; color: var(--ink);
  transition: color 0.2s;
}
.byd-accordion-q::after {
  content: '+'; position: absolute; right: 8px; top: 50%;
  transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--bg-soft); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700;
  transition: transform 0.3s, background 0.2s, color 0.2s;
}
.byd-accordion-item:hover .byd-accordion-q { color: var(--red); }
.byd-accordion-item.open .byd-accordion-q::after {
  transform: translateY(-50%) rotate(45deg);
  background: var(--red); color: #fff;
}
.byd-accordion-a {
  max-height: 0; overflow: hidden;
  font-size: 14px; line-height: 1.75; color: #333;
  transition: max-height 0.35s ease, padding 0.3s ease;
}
.byd-accordion-item.open .byd-accordion-a { max-height: 480px; padding: 0 48px 22px 0; }
/* Dark-context variant (if ever used inside dark sections) */
.section.dark .byd-accordion-q, .dark .byd-accordion-q { color: #fff; }
.section.dark .byd-accordion-a, .dark .byd-accordion-a { color: rgba(255,255,255,0.8); }

/* ============ 21 · GIVEAWAY PAST-WINNER CARDS ============ */
.gv-winners-empty {
  padding: 48px; text-align: center; color: var(--ink-dim);
  border: 1px dashed var(--line); border-radius: 6px;
}
.gv-winner-card {
  background: #fff; border: 1px solid var(--line); border-radius: 6px;
  overflow: hidden; display: flex; flex-direction: column;
  transition: border-color 0.2s, transform 0.2s;
}
.gv-winner-card:hover { border-color: var(--red); transform: translateY(-2px); }
.gv-winner-photo {
  aspect-ratio: 4/3; background: var(--bg-soft); overflow: hidden;
}
.gv-winner-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gv-winner-card:not(:has(.gv-winner-photo)) .gv-winner-body {
  padding-top: 24px;
}
.gv-winner-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 4px; }
.gv-winner-name { font-size: 16px; font-weight: 800; margin: 0; color: var(--ink); }
.gv-winner-location {
  font-size: 12px; color: var(--ink-dim);
  letter-spacing: 0.04em;
}
.gv-winner-prize {
  margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--red);
}
.gv-winner-meta {
  font-family: "JetBrains Mono", monospace; font-size: 10px;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-dim);
  margin-top: 4px;
}
.gv-winner-quote {
  margin: 10px 0 0; padding: 10px 0 0;
  border-top: 1px solid var(--line);
  font-size: 13px; line-height: 1.55; color: #333; font-style: italic;
}
@media (max-width: 720px) {
  .gv-winners { grid-template-columns: repeat(2, 1fr) !important; }
}

/* ============ 22 · VEHICLE DETAIL HIGHLIGHT + PROGRAM + FAQ CARDS ============ */
.vd-highlight-grid, .vd-programs-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px;
}
.vd-programs-grid { grid-template-columns: repeat(4, 1fr); }
.vd-highlight-card, .vd-program-card {
  background: #fff; border: 1px solid var(--line); padding: 28px 24px;
  border-radius: 6px; transition: border-color 0.2s, transform 0.2s;
  text-decoration: none; color: inherit; display: block;
}
.vd-highlight-card:hover, .vd-program-card:hover {
  border-color: var(--red); transform: translateY(-2px);
}
.vd-highlight-card h4, .vd-program-card h4 {
  font-size: 18px; font-weight: 800; margin: 0 0 8px; color: var(--ink);
}
.vd-highlight-card p, .vd-program-card p {
  font-size: 14px; line-height: 1.6; color: #333; margin: 0;
}
.vd-faq { max-width: 900px; }
.vd-faq-item {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.vd-faq-item summary {
  font-size: 16px; font-weight: 700; cursor: pointer;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
}
.vd-faq-item summary::-webkit-details-marker { display: none; }
.vd-faq-item summary::after {
  content: '+'; width: 28px; height: 28px; border-radius: 50%;
  background: var(--bg-soft); display: inline-flex; align-items: center;
  justify-content: center; font-size: 18px; font-weight: 700;
  flex-shrink: 0;
  transition: transform 0.3s, background 0.2s, color 0.2s;
}
.vd-faq-item[open] summary::after {
  transform: rotate(45deg); background: var(--red); color: #fff;
}
.vd-faq-item p {
  margin: 10px 0 0; font-size: 14px; line-height: 1.7; color: #333;
}
@media (max-width: 960px) {
  .vd-highlight-grid, .vd-programs-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
}
@media (max-width: 600px) {
  .vd-highlight-grid, .vd-programs-grid { grid-template-columns: 1fr; }
}

/* ============ 23 · ELEMENTOR KIT OVERRIDE ============ */
/* The Elementor kit (.elementor-kit-12) applies background:#0B0D10 + color:#FFF
   globally, which turns our light pages into unreadable dark. We override on
   the body scope so BYD pages stay white by default. */
body.byd-page,
body.elementor-default {
  background: #fff !important;
  color: var(--ink) !important;
}
body.byd-page .byd-cms-template,
body.elementor-default .byd-cms-template {
  background: #fff;
  color: var(--ink);
}
/* Elementor kit also forces h1-h4 to white — override for BYD pages. */
body.byd-page .byd-cms-template h1,
body.byd-page .byd-cms-template h2,
body.byd-page .byd-cms-template h3,
body.byd-page .byd-cms-template h4,
body.byd-page .byd-cms-template h5,
body.byd-page .byd-cms-template h6 { color: var(--ink); }
/* Dark hero / dark sections explicitly reset heading color to white. */
body.byd-page .byd-cms-template .page-hero h1,
body.byd-page .byd-cms-template .page-hero .page-sub,
body.byd-page .byd-cms-template .section.dark h1,
body.byd-page .byd-cms-template .section.dark h2,
body.byd-page .byd-cms-template .section.dark h3,
body.byd-page .byd-cms-template .section.dark h4,
body.byd-page .byd-cms-template .blade h1,
body.byd-page .byd-cms-template .blade h2,
body.byd-page .byd-cms-template .nl h2,
body.byd-page .byd-cms-template .dual h2,
body.byd-page .byd-cms-template .dual h3,
body.byd-page .byd-cms-template .sus h2,
body.byd-page .byd-cms-template .track h2,
body.byd-page .byd-cms-template .inv-hero h1,
body.byd-page .byd-cms-template .gw-hero h1,
body.byd-page .byd-cms-template .fin-hero h1 { color: #fff; }

/* ============ 24 · LEGAL PROSE CONTRAST FIX (privacy/terms) ============ */
/* Force dark ink on light bg; override Elementor kit's global white text. */
body.byd-page .byd-prose,
body.byd-page .byd-prose p,
body.byd-page .byd-prose li,
body.byd-page .byd-prose strong,
body.byd-page .byd-prose h2,
body.byd-page .byd-prose h3,
body.byd-page .byd-prose h4 { color: var(--ink); }
body.byd-page .byd-prose strong { font-weight: 700; }
body.byd-page .byd-prose a { color: var(--red); }
body.byd-page .byd-prose a:hover { text-decoration: underline; }

/* byd-cms body text defaults for elig cards, accordion answers, etc. */
body.byd-page .byd-cms-template p { color: var(--ink); }
body.byd-page .byd-cms-template .page-hero p,
body.byd-page .byd-cms-template .section.dark p,
body.byd-page .byd-cms-template .blade p,
body.byd-page .byd-cms-template .dual p,
body.byd-page .byd-cms-template .sus p,
body.byd-page .byd-cms-template .track p,
body.byd-page .byd-cms-template .nl p,
body.byd-page .byd-cms-template .inv-stocks p,
body.byd-page .byd-cms-template .inv-compliance p,
body.byd-page .byd-cms-template .gw-hero p,
body.byd-page .byd-cms-template .fin-hero p,
body.byd-page .byd-cms-template .fin-lead p { color: inherit; }

/* ============ 25 · CHROME REVISIONS (Phase-7 port) ============ */
/* Designer's footer is a 4-column + brand layout (5 columns total, but brand     */
/* is double-wide). Our port follows Vehicles / Ownership / Investors / Company. */
.byd-footer .foot-grid {
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
}
/* Social icons: real brand SVGs live in mu-plugin/byd-design-system/img/social/.
   Strip the pill border on SVG icons so the mark itself reads cleanly, but keep
   the hover affordance. */
.byd-footer .foot-social a.has-svg {
  border: 1px solid rgba(255,255,255,0.15);
  padding: 0;
}
.byd-footer .foot-social a.has-svg img,
.byd-footer .foot-social a.has-svg svg {
  width: 16px; height: 16px;
  filter: brightness(0) invert(1);
  opacity: 0.8;
  transition: opacity 0.2s;
}
.byd-footer .foot-social a.has-svg:hover img,
.byd-footer .foot-social a.has-svg:hover svg { opacity: 1; }

/* Legal bar EN / USD badge */
.byd-footer .foot-bottom .locale {
  display: inline-flex; align-items: center; gap: 6px;
  color: rgba(255,255,255,0.6);
}

/* Dropdown menu invisible gap bridge so the menu doesn't disappear when the
   cursor transitions from trigger to items. */
.nav-links .dropdown-menu::before {
  content: ''; position: absolute; top: -10px; left: 0; right: 0; height: 10px;
}


/* ===================================================================== */
/* ROUND 2 SURGICAL FIXES — 2026-04-18 late                              */
/* User feedback: WP title bleeding, menu broken, logo small, etc.       */
/* ===================================================================== */

/* FIX 1: hide theme-emitted WP page title on all BYD CMS templates.
 *
 * PATCHED 2026-04-19 — removed `.page-title` and `.entry-header .page-title`
 * from the list because designer's `pages/*.html` templates use
 * `.page-title` as the class for their INTENTIONAL hero H1 (inside
 * `.page-hero`). The original rule hid those too. Kept the WP/Elementor
 * auto-generated selectors only. */
body.byd-page h1.entry-title,
body.byd-page .entry-header,
body.byd-page .wp-block-post-title,
body.byd-page article > header:first-child,
body.byd-page .elementor-page-title,
body.byd-page header.page-header {
  display: none !important;
}

/* Logo sizing — the theme uses <nav class="nav"> (not .byd-nav). Cap the
   logo img/svg to a readable header size on both desktop and mobile. */
.nav .logo,
.nav a.logo,
.byd-brand-logo {
  display: inline-flex;
  align-items: center;
  max-width: 160px;
}
.nav .logo img,
.nav a.logo img,
.nav .logo svg,
.nav .logo-img,
.nav .logo-svg,
.byd-brand-logo img,
.byd-brand-logo svg {
  height: 36px !important;
  max-height: 36px !important;
  width: auto !important;
  max-width: 160px !important;
  display: block;
}
/* Footer logo: bigger than nav but still sane */
.byd-footer .logo-img,
.byd-footer a.logo img,
.byd-footer .foot-brand img,
.byd-footer .foot-brand svg,
footer.byd-footer img[alt*="BYD" i],
footer .foot-brand img {
  height: 52px !important;
  max-height: 52px !important;
  width: auto !important;
  max-width: 200px !important;
  display: block;
}

/* FIX 4 + 5: menu color (kill the pink/red inheritance from elementor kit) + working dropdowns */
.byd-nav .nav-links > a,
.byd-nav .nav-links > a:visited {
  color: #141414 !important;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  padding: 8px 4px;
  position: relative;
  display: inline-block;
  transition: color 0.15s ease;
}
.byd-nav .nav-links > a:hover,
.byd-nav .nav-links > a.has-dropdown:hover {
  color: #e6002d !important;
}

/* Dropdown container: hidden by default, revealed on hover of parent */
.byd-nav .nav-links a.has-dropdown > .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  min-width: 240px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.byd-nav .nav-links a.has-dropdown:hover > .dropdown-menu,
.byd-nav .nav-links a.has-dropdown:focus-within > .dropdown-menu,
.byd-nav .nav-links a.has-dropdown.open > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.byd-nav .nav-links .dropdown-menu a {
  display: block;
  padding: 10px 14px;
  color: #141414 !important;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 500;
  border-radius: 2px;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.byd-nav .nav-links .dropdown-menu a:hover {
  background: #f5f5f5;
  color: #e6002d !important;
}

/* Invisible 10px bridge below parent link so dropdown doesn't flicker on move */
.byd-nav .nav-links a.has-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: -8px;
  right: -8px;
  height: 10px;
  pointer-events: auto;
}

/* Chevron: only on dropdown parents */
.byd-nav .nav-links a.has-dropdown::before {
  content: none;
}

/* FIX 6: track input in nav (replaces search icon) */
.byd-nav .nav-track-form {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f5f5f5;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  padding: 4px 4px 4px 12px;
  margin-right: 8px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.byd-nav .nav-track-form:focus-within {
  border-color: #e6002d;
  background: #fff;
}
.byd-nav .nav-track-form input {
  border: 0;
  background: transparent;
  outline: none;
  font-family: inherit;
  font-size: 13px;
  width: 120px;
  padding: 5px 2px;
  color: #141414;
}
.byd-nav .nav-track-form input::placeholder {
  color: #6b6b6b;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 11px;
}
.byd-nav .nav-track-form button {
  background: transparent;
  border: 0;
  cursor: pointer;
  color: #6b6b6b;
  padding: 4px 6px;
  font-size: 13px;
  line-height: 1;
  transition: color 0.15s ease;
}
.byd-nav .nav-track-form button:hover { color: #e6002d; }

/* Responsive: collapse track form on tablet/mobile */
@media (max-width: 1100px) {
  .byd-nav .nav-track-form input { width: 90px; }
}
@media (max-width: 900px) {
  .byd-nav .nav-track-form { display: none; }
}

/* FIX 14: stats band spacing — tighten gap below hero */
body.byd-page-home .stats,
body.byd-page-home section.stats {
  margin-top: 0 !important;
  padding-top: 56px !important;
}

/* FIX 12: kill the hero placeholder caption if still rendered */
body.byd-page-home .hero-car-label {
  display: none !important;
}

/* Nav-links container: make sure it's flex so dropdowns position right */
.byd-nav .nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: nowrap;
}



/* ═══════════════════════════════════════════════════════════════════════
   Nav burger visibility — hidden on desktop (>960px). inner.mobile.css
   already handles the <=960px "show" via its media query; this block just
   closes the default gap where the injected <button> would otherwise
   render as inline-block because no rule hid it.
   ═══════════════════════════════════════════════════════════════════════ */
@media (min-width: 961px) {
  .nav-burger,
  [data-nav-toggle] { display: none; }
}


/* ═══════════════════════════════════════════════════════════════════════
   Page-specific grid collapse at mobile
   ────────────────────────────────────────────────────────────────────────
   inner.mobile.css stacks the common design-system grids (.g-2, .g-3,
   .foot-grid, .auth-shell, .flow-wrap, etc.), but individual page
   templates (contact.html, about.html, financing.html …) define their
   own scoped grid classes (.contact-grid, .channels, .field-2, .faqs,
   .office-grid, .team-grid, .plans-grid, …). Those weren't covered in
   the designer's handoff because the designer doesn't own the per-page
   CSS.
   This sweeping override collapses every multi-column grid that lives
   under a <main>, <article>, <section> or <.container> to a single
   column at <=700px. Cheaper than enumerating 40+ class names, and
   safer (it only targets grids, never flexboxes or explicit inline
   styles on individual elements).
   ═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 700px) {
  /* Drop the <main> prefix — WP themes use <article>, <div.site-content>,
     <div.entry-content> as alternate wrappers, and the page-hero +
     hero-carousel lives OUTSIDE <main> entirely. Unconditional for any
     element with "-grid" / "-layout" / "-wrap" in its class or an inline
     grid-template-columns. Contact-page + about-page + financing
     inner-page classes enumerated explicitly as belt-and-braces. */
  [style*="grid-template-columns"],
  [class*="-grid"],
  [class*="-layout"],
  [class*="-wrap"],
  .contact-grid,
  .channels,
  .field-2,
  .faqs,
  .office,
  .office-grid,
  .hq-card .grid,
  .plans-grid, .pillars-grid, .team-grid, .leader-grid, .press-grid,
  .perks-grid, .num-grid, .stats-grid, .targ-grid, .trust-grid,
  .voice-grid, .scope-grid, .life-flow, .manif-grid, .pledge-grid,
  .intro-grid, .legal-grid, .rev-grid, .pop-grid, .pr-contact-grid,
  .dl-grid, .dual-wrap, .ship-wrap, .sale-layout {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  /* Ensure card-like children can't overflow their now-1fr parent. */
  .office, .hq-card, .channels a, .contact-grid > *,
  .info-block, .contact-form {
    max-width: 100%;
    box-sizing: border-box;
  }
  .hq-card .grid {
    gap: 10px !important;
  }

  /* Nav-actions: allow wrap + clip so legacy toggle + CTA don't push the
     nav wider than viewport. 390px phones can't fit the full desktop
     row even after mobile.css hides the outline button. */
  .nav-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: 100%;
  }

}

/* Legacy .byd-nav-toggle coexists with inner.mobile.css — the existing
   button already has the `data-nav-toggle` attribute the new CSS targets,
   so we keep it rendered rather than injecting a duplicate. Earlier
   attempt to hide it caused phase0-regression's hamburger visibility
   assertion to fail (test probe finds this element at ≤960). */


/* ═══════════════════════════════════════════════════════════════════════
   Cascade-final nav-links hide at <=960px
   ────────────────────────────────────────────────────────────────────────
   byd-extras.css line 65 defines `.nav-links { display: flex; }` as a
   no-media-query rule, which (because this file loads after
   inner.mobile.css) overrides the designer's `@media (max-width:960) {
   .nav-links { display: none; } }`. This !important tail wins the
   cascade so mobile/tablet hide the desktop nav-links as intended.
   Kept here (not in inner.mobile.css which is designer-owned).
   ═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 960px) {
  .nav-links { display: none !important; }
  /* Exempt the mobile panel's nav list — same class name but the panel
     IS the mobile nav, so it must stay visible. */
  .byd-mobile-panel .nav-links { display: flex !important; flex-direction: column !important; }
}

/* Leaflet map container on homepage (.ship-map) inherits a wide default
   size from the library. Force it to match its parent column at mobile
   so body.scrollWidth doesn't blow past viewport. */
@media (max-width: 960px) {
  .ship-map,
  .ship-map-leaflet,
  #byd-ship-map,
  #byd-admin-logistics-map {
    max-width: 100% !important;
    width: 100% !important;
  }
}


/* ═══════════════════════════════════════════════════════════════════════
   Top-nav dropdown (designer-canonical, 2026-04-22)
   ────────────────────────────────────────────────────────────────────────
   Ported from byd-cms-pages/designer/_archive/nav.html inline <style>.
   Without these rules the .dd-menu sub-menus render as expanded bulleted
   lists on every page (caught during E2E visual review). Original port
   missed moving the nav CSS out of the archived inline style block.
   ═══════════════════════════════════════════════════════════════════════ */
.byd-nav-dd { position: relative; display: inline-block; }
.byd-nav-dd > a { cursor: pointer; }
.byd-nav-dd .dd-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 240px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 2px;
  list-style: none;
  margin: 0;
}
.byd-nav-dd:hover .dd-menu,
.byd-nav-dd:focus-within .dd-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.byd-nav-dd::after {
  content: '';
  position: absolute;
  top: 100%;
  left: -12px;
  right: -12px;
  height: 12px;
  pointer-events: auto;
}
.byd-nav-dd .dd-menu li { list-style: none; margin: 0; padding: 0; }
.byd-nav-dd .dd-menu a {
  display: block;
  padding: 10px 14px;
  color: #141414;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  border-radius: 2px;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}
.byd-nav-dd .dd-menu a:hover {
  background: #f5f5f5;
  color: #e6002d;
}

/* Mobile: override the absolute-positioned desktop dropdown behaviour.
   The hamburger drawer already lists all items vertically. */
@media (max-width: 960px) {
  .byd-nav-dd .dd-menu {
    display: none !important;
  }
}


/* ═══════════════════════════════════════════════════════════════════════
   Mobile slide-out panel (hidden by default, slides in on hamburger tap)
   ────────────────────────────────────────────────────────────────────────
   theme/byd-site/header.php emits <aside id="byd-mobile-panel"> with no
   styling. Without these rules the aside renders inline below the nav
   on every page (caught during E2E review of /404/ page).
   ═══════════════════════════════════════════════════════════════════════ */
.byd-mobile-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: none;
  background: #0a0a0a;
  color: #fff;
  box-shadow: -12px 0 32px rgba(0, 0, 0, 0.5);
  z-index: 9998;
  transform: translateX(100%);
  transition: transform 0.28s ease;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  border-top: 3px solid var(--red, #e6002d);
}
.byd-mobile-panel.is-open { transform: translateX(0); }
.byd-mobile-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.byd-mobile-panel-logo img {
  height: 24px;
  /* Invert logo to white variant when only red variant is embedded */
  filter: brightness(0) invert(1);
}
.byd-mobile-panel-close {
  background: transparent;
  border: 0;
  font-size: 24px;
  cursor: pointer;
  color: #fff;
  padding: 4px 10px;
}
.byd-mobile-panel-body {
  flex: 1;
  padding: 0;
}
.byd-mobile-track-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.byd-mobile-track-link:hover { color: #fff; }
.byd-mobile-track-link::after { content: '›'; font-size: 22px; color: rgba(255,255,255,0.45); }
/* Primary nav items inside the panel: one per row, chevron-down to the right. */
.byd-mobile-panel .nav-links,
.byd-mobile-panel ul.nav-links {
  display: flex;
  flex-direction: column;
  list-style: none;
  margin: 0;
  padding: 0;
}
.byd-mobile-panel .nav-links > li,
.byd-mobile-panel ul.nav-links > li { display: block; border-bottom: 1px solid rgba(255,255,255,0.06); }
.byd-mobile-panel .nav-links > li > a,
.byd-mobile-panel ul.nav-links > li > a,
.byd-mobile-panel .byd-nav-dd > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.005em;
}
.byd-mobile-panel .byd-nav-dd > a::after {
  content: '';
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(255,255,255,0.45);
  border-bottom: 2px solid rgba(255,255,255,0.45);
  transform: rotate(45deg) translate(-2px,-2px);
  transition: transform 0.18s ease;
}
/* Expanded state: parent label turns red, chevron flips to up. */
.byd-mobile-panel .byd-nav-dd.is-open > a,
.byd-mobile-panel .byd-nav-dd[aria-expanded="true"] > a { color: var(--red, #e6002d); }
.byd-mobile-panel .byd-nav-dd.is-open > a::after,
.byd-mobile-panel .byd-nav-dd[aria-expanded="true"] > a::after {
  transform: rotate(-135deg) translate(-2px,-2px);
  border-color: rgba(255,255,255,0.7);
}
/* Designer submenus inside mobile panel: hidden by default, shown when
   the parent nav-dd gets .is-open (JS toggles on tap). */
.byd-mobile-panel .dd-menu {
  display: none;
  position: static;
  transform: none;
  background: transparent;
  box-shadow: none;
  border: 0;
  padding: 0 0 12px;
  margin: 0;
  list-style: none;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.byd-mobile-panel .byd-nav-dd.is-open .dd-menu,
.byd-mobile-panel .byd-nav-dd[aria-expanded="true"] .dd-menu {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: none !important;
  position: static !important;
  box-shadow: none !important;
  background: transparent !important;
  border: 0 !important;
  min-width: 0 !important;
}
.byd-mobile-panel .dd-menu > li,
.byd-mobile-panel .dd-menu li { list-style: none; border: 0; }
.byd-mobile-panel .dd-menu a {
  display: block;
  padding: 12px 24px 12px 40px;
  color: rgba(255,255,255,0.78);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
}
.byd-mobile-panel .dd-menu a:hover { color: #fff; }
.byd-mobile-panel-footer {
  padding: 20px 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #0a0a0a;
}
.byd-mobile-panel-footer .byd-mobile-login {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 3px;
  font-weight: 700;
  text-decoration: none;
}
.byd-mobile-panel-footer .byd-mobile-booknow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  background: var(--red, #e6002d);
  color: #fff;
  border: 0;
  border-radius: 3px;
  font-weight: 700;
  text-decoration: none;
}
/* Scrim backdrop when panel is open */
.byd-mobile-panel-scrim,
[data-nav-scrim] {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 9997;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.byd-mobile-panel-scrim.is-open,
[data-nav-scrim].is-open {
  opacity: 1;
  pointer-events: auto;
}
/* The legacy .byd-nav-toggle hamburger is always hidden on desktop;
   inner.mobile.css shows it at <=960px. */
@media (min-width: 961px) {
  .byd-mobile-panel,
  .byd-mobile-panel-scrim,
  [data-nav-scrim],
  .byd-nav-toggle {
    display: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════════
   Header nav — Track input collapse + mobile hamburger (actual class names)
   ────────────────────────────────────────────────────────────────────────
   The designer HTML uses .byd-nav-track / .byd-nav-track-toggle / etc.
   (not .nav-track-form as the old rules targeted). Without these rules
   the Track form renders fully expanded in the nav flow and overlaps
   the About dropdown — and the mobile hamburger .byd-nav-toggle never
   appears because no CSS shows it.
   ═══════════════════════════════════════════════════════════════════════ */

/* Track-order = always-visible pill input per designer reference.
   Grey rounded pill containing "TRACK" placeholder + right-arrow submit. */
.byd-nav-track {
  display: inline-flex;
  align-items: stretch;
  position: relative;
  background: #f4f4f2;
  border: 1px solid #e8e8e6;
  border-radius: 999px;
  overflow: hidden;
  padding: 0;
  height: 36px;
  min-width: 170px;
}
.byd-nav-track:focus-within { border-color: #c8c8c6; }
.byd-nav-track-toggle {
  display: none;                       /* hidden; search-icon is inline in input placeholder via designer intent */
}
.byd-nav-track-input {
  display: block;
  border: 0;
  outline: none;
  background: transparent;
  padding: 0 12px 0 18px;
  flex: 1;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: #141414;
  min-width: 0;
  width: 100%;
}
.byd-nav-track-input::placeholder {
  color: #9a9a97;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}
.byd-nav-track-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: #141414;
  padding: 0 16px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
}
.byd-nav-track-submit:hover { color: #e6002d; }
.byd-nav-track-label { display: none; }
/* When users haven't initiated the "compact" JS state, keep pill full width.
   The JS toggles data-collapsed="true/false" but we ignore it for visual. */

/* Mobile hamburger — show at <=960px, hide desktop CTAs that don't fit. */
.byd-nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid #e4e4e4;
  border-radius: 4px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  color: #141414;
}
.byd-nav-toggle-lines {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 18px;
}
.byd-nav-toggle-lines span {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
@media (max-width: 960px) {
  .byd-nav-toggle { display: inline-flex !important; }
  /* Collapse the Track form + desktop CTAs so mobile header stays tight */
  .byd-nav-track,
  .byd-cta-login { display: none !important; }
  .nav-actions { gap: 8px; }
  .byd-cta-booknow { padding: 8px 14px; font-size: 12px; }
  /* Reduce logo on tablet/mobile */
  .nav .logo img,
  .nav a.logo img,
  .nav .logo svg,
  .nav .logo-img,
  .nav .logo-svg,
  .byd-brand-logo img,
  .byd-brand-logo svg {
    height: 30px !important;
    max-height: 30px !important;
    max-width: 120px !important;
  }
  .nav .nav-inner { padding: 10px 16px; align-items: center; }
  .byd-footer .logo-img,
  .byd-footer .foot-brand img,
  .byd-footer .foot-brand svg,
  footer.byd-footer img[alt*="BYD" i] {
    height: 40px !important;
    max-height: 40px !important;
    max-width: 160px !important;
  }
}
@media (max-width: 480px) {
  .byd-cta-booknow { display: none !important; }
  .nav .logo img,
  .nav .logo svg,
  .byd-brand-logo img,
  .byd-brand-logo svg {
    height: 26px !important;
    max-height: 26px !important;
    max-width: 100px !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════════
   /technology/ page styles — ported from byd-cms-listings.css because the
   conditional listings-CSS enqueue isn't firing on this template. Keeping
   the rules here ensures the page renders styled regardless of the CMS
   pages plugin's enqueue path.
   ═══════════════════════════════════════════════════════════════════════ */
.byd-cms-technology { display: block; }
.byd-cms-technology .wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.byd-cms-technology .tech-hero {
  background: #0a0a0a;
  color: #fff;
  border-bottom: 4px solid var(--red, #e6002d);
  padding: 80px 0 64px;
}
.byd-cms-technology .tech-hero .breadcrumb {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
  color: rgba(255,255,255,0.55) !important;
}
.byd-cms-technology .tech-hero .breadcrumb a { color: rgba(255,255,255,0.55) !important; text-decoration: none; }
.byd-cms-technology .tech-hero .sep { margin: 0 8px; color: rgba(255,255,255,0.3) !important; }
.byd-cms-technology .tech-hero .page-title {
  font-size: 56px;
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 800;
  margin: 0 0 18px;
  max-width: 18ch;
  color: #fff !important;
}
.byd-cms-technology .tech-hero .page-title em { color: var(--red, #e6002d); font-style: normal; }
.byd-cms-technology .tech-hero .page-sub {
  font-size: 17px;
  line-height: 1.55;
  color: rgba(255,255,255,0.75) !important;
  max-width: 60ch;
  margin: 0;
}
.byd-cms-technology .section { padding: 72px 0; }
.byd-cms-technology .tech-blade { background: #fff; }
.byd-cms-technology .tech-eplatform { background: var(--bg-soft, #fafafa); }
.byd-cms-technology .tech-dipilot { background: #fff; }
.byd-cms-technology .tech-manufacturing { background: #0a0a0a; color: #fff; }
.byd-cms-technology .tech-manufacturing .eyebrow { color: rgba(255,255,255,0.65); }
.byd-cms-technology .tech-manufacturing h2 { color: #fff; }
.byd-cms-technology .tech-manufacturing .tech-lead { color: rgba(255,255,255,0.7); }
.byd-cms-technology .tech-manufacturing .tech-pillar {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-top: 3px solid var(--red, #e6002d);
}
.byd-cms-technology .tech-manufacturing .tech-pillar h4 { color: #fff; }
.byd-cms-technology .tech-manufacturing .tech-pillar p { color: rgba(255,255,255,0.7); }
.byd-cms-technology .eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--red, #e6002d);
  margin-bottom: 12px;
  display: inline-block;
}
.byd-cms-technology h2 {
  font-size: 40px;
  letter-spacing: -0.015em;
  font-weight: 800;
  margin: 0 0 20px;
  max-width: 18ch;
  line-height: 1.1;
}
.byd-cms-technology h2 em { color: var(--red, #e6002d); font-style: italic; }
.byd-cms-technology .tech-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
}
.byd-cms-technology .tech-row p {
  font-size: 16px;
  color: var(--ink-dim, #6b6b6b);
  line-height: 1.7;
  margin: 0 0 14px;
}
.byd-cms-technology .tech-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.byd-cms-technology .tech-stat {
  padding: 28px 20px;
  background: var(--bg-soft, #f5f5f5);
  border-left: 3px solid var(--red, #e6002d);
}
.byd-cms-technology .tech-stat-k {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}
.byd-cms-technology .tech-stat-v {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-dim, #6b6b6b);
  margin-top: 8px;
}
.byd-cms-technology .tech-lead {
  font-size: 16px;
  max-width: 780px;
  color: var(--ink-dim, #6b6b6b);
  line-height: 1.7;
  margin: 0 0 32px;
}
.byd-cms-technology .tech-pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.byd-cms-technology .tech-pillar {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line, #e8e8e8);
  border-top: 3px solid var(--red, #e6002d);
}
.byd-cms-technology .tech-pillar h4 {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 8px;
  letter-spacing: -0.005em;
}
.byd-cms-technology .tech-pillar p {
  font-size: 13px;
  color: var(--ink-dim, #6b6b6b);
  line-height: 1.55;
  margin: 0;
}
/* CTA band at bottom */
.byd-cms-technology .byd-lst-compare-band {
  background: var(--red, #e6002d);
  color: #fff;
  padding: 56px 0;
}
.byd-cms-technology .byd-lst-compare-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.byd-cms-technology .byd-lst-compare-band h3 {
  font-size: 28px;
  letter-spacing: -0.015em;
  font-weight: 800;
  margin: 0 0 6px;
  max-width: 28ch;
}
.byd-cms-technology .byd-lst-compare-band p { margin: 0; opacity: 0.85; max-width: 50ch; }
.byd-cms-technology .byd-lst-compare-band .btn-black {
  background: #0a0a0a;
  color: #fff;
  padding: 14px 24px;
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
@media (max-width: 1100px) {
  .byd-cms-technology .tech-pillar-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .byd-cms-technology .tech-row { grid-template-columns: 1fr; gap: 36px; }
  .byd-cms-technology .tech-hero .page-title { font-size: 40px; }
  .byd-cms-technology h2 { font-size: 32px; }
}
@media (max-width: 640px) {
  .byd-cms-technology .tech-pillar-grid { grid-template-columns: 1fr; }
  .byd-cms-technology .tech-stats { grid-template-columns: 1fr; }
}
