/* ==========================================================
   STR Performance — Apple-grade design system
   Cinematic, dark, premium-feel. Built for performance cars.
   ========================================================== */

:root {
  --bg:          #050505;
  --bg-1:        #0a0a0a;
  --bg-2:        #111111;
  --bg-3:        #161616;
  --bg-elev:     #1a1a1a;
  --border:      #1f1f1f;
  --border-2:    #2a2a2a;

  --text:        #f7f7f7;
  --text-soft:   #d4d4d4;
  --text-dim:    #a3a3a3;
  --text-faint:  #6f6f6f;

  --accent:      #ef4444;
  --accent-2:    #b91c1c;
  --accent-glow: rgba(239, 68, 68, 0.35);

  --max:         1240px;
  --max-narrow:  860px;

  --r:           14px;
  --r-lg:        22px;

  --ease:        cubic-bezier(0.32, 0.72, 0, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display",
               "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.18s var(--ease);
}
a:hover { color: var(--text); }

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

/* ==== Typography ==== */
h1, h2, h3, h4 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display",
               "Inter", "Helvetica Neue", sans-serif;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 0.5em;
  color: var(--text);
}

h1 {
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  letter-spacing: -0.045em;
  font-weight: 800;
  line-height: 1.0;
}
h2 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  letter-spacing: -0.035em;
  font-weight: 700;
}
h3 {
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  letter-spacing: -0.015em;
  font-weight: 600;
}
h4 {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 600;
}
p { margin: 0 0 1.1em; }

.gradient-text {
  background: linear-gradient(180deg, #ffffff 0%, #b8b8b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.accent-text {
  background: linear-gradient(135deg, #ff5757 0%, #b91c1c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ==== Layout ==== */
.wrap        { max-width: var(--max);        margin: 0 auto; padding: 0 1.5rem; }
.wrap-narrow { max-width: var(--max-narrow); margin: 0 auto; padding: 0 1.5rem; }

/* ==== Header ==== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(5, 5, 5, 0.72);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.3s var(--ease);
  /* iOS safe-area buffer: pushes header below Safari's address bar so taps don't fight with the chrome */
  padding-top: env(safe-area-inset-top);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.05rem 1.5rem;
  max-width: var(--max);
  margin: 0 auto;
}
.brand {
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0.12em;
  font-size: 0.95rem;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}
.brand .accent {
  color: var(--accent);
  font-weight: 800;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--text-soft);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  position: relative;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: -6px; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-2);
  color: var(--text);
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(5, 5, 5, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 1.25rem 1.5rem calc(1.25rem + env(safe-area-inset-bottom));
    gap: 0.35rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    max-height: min(70vh, 420px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav-links.open a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0.35rem 0;
    font-size: 1.05rem;
  }
  body {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
  .btn {
    min-height: 48px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
}

/* ==== Hero ==== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: 9rem 1.5rem 5rem;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 75% 20%, rgba(239, 68, 68, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 10% 100%, rgba(239, 68, 68, 0.10) 0%, transparent 55%),
    radial-gradient(ellipse 80% 50% at 50% 110%, rgba(50, 50, 50, 0.5) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
}

/* ==== Cinematic hero with Ken-Burns photo ==== */
.hero-cinematic { background: #050505; }
.hero-media {
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  overflow: hidden !important;
  width: 100% !important;
  height: 100% !important;
}
.hero-image {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  max-width: none !important;
  /* Cinematic grade — moody but lets the landscape and blue Porsche breathe */
  filter: saturate(1.0) contrast(1.14) brightness(0.85);
  animation: kenburns 36s ease-in-out infinite alternate;
  transform-origin: center center;
  will-change: transform;
}
@keyframes kenburns {
  0%   { transform: scale(1.04) translate3d(0, 0, 0); }
  100% { transform: scale(1.14) translate3d(-1.5%, -1%, 0); }
}
.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  /* Top-left darkened so headline reads cleanly; soft vignette; bottom fades to bg */
  background:
    radial-gradient(ellipse 70% 60% at 25% 30%, rgba(5,5,5,0.55) 0%, transparent 65%),
    radial-gradient(ellipse 120% 95% at 50% 50%, transparent 0%, rgba(0,0,0,0.22) 65%, rgba(5,5,5,0.85) 100%),
    linear-gradient(180deg, rgba(5,5,5,0.4) 0%, transparent 28%, rgba(5,5,5,0.55) 78%, var(--bg) 100%);
}
.hero-cinematic::before { z-index: 2; mix-blend-mode: screen; opacity: 0.6; }
@media (prefers-reduced-motion: reduce) {
  .hero-image, .hero-video { animation: none !important; }
}

/* ==== Hero responsive — iPad ==== */
@media (max-width: 1024px) {
  .hero {
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    padding: 7rem 1.5rem 4rem;
  }
  .hero-image { object-position: 50% 50%; }
}
/* ==== Hero responsive — mobile ==== */
@media (max-width: 760px) {
  .hero {
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    padding: 6rem 1.25rem 3.5rem;
  }
  .hero-image {
    object-position: 50% 50%;
    /* Slightly tighter Ken-Burns so it doesn't feel jittery on small screens */
    animation-duration: 44s;
  }
  .hero-vignette {
    background:
      radial-gradient(ellipse 130% 80% at 50% 50%, transparent 0%, rgba(0,0,0,0.3) 70%, rgba(5,5,5,0.9) 100%),
      linear-gradient(180deg, rgba(5,5,5,0.4) 0%, transparent 22%, rgba(5,5,5,0.7) 78%, var(--bg) 100%);
  }
  .hero-vignette {
    /* Stronger floor gradient so headline reads cleanly over the car */
    background:
      radial-gradient(ellipse 100% 75% at 50% 50%, transparent 0%, rgba(0,0,0,0.45) 65%, rgba(5,5,5,0.95) 100%),
      linear-gradient(180deg, rgba(5,5,5,0.6) 0%, rgba(5,5,5,0.25) 30%, rgba(5,5,5,0.7) 80%, var(--bg) 100%);
  }
  /* Stack hero CTAs vertically on narrow screens */
  .hero .btn { display: inline-flex; }
  .hero .btn + .btn { margin-left: 0; margin-top: 0.6rem; }
  .hero .reveal-delay-2 { display: flex; flex-direction: column; align-items: flex-start; gap: 0.6rem; }
}
/* ==== Hero responsive — very small / older iPhone SE ==== */
@media (max-width: 380px) {
  .hero { padding: 5.5rem 1rem 3rem; }
  .hero h1 { font-size: clamp(2.2rem, 11vw, 3rem); }
}
.hero::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(180deg, transparent, var(--bg) 90%);
  pointer-events: none;
  z-index: 1;
}
.hero .wrap { position: relative; z-index: 2; }
.hero h1 { margin-bottom: 1.5rem; }
.hero .lead {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--text-dim);
  max-width: 620px;
  margin-bottom: 2.4rem;
  font-weight: 400;
}

/* small hero variant for non-home pages */
.hero.compact {
  min-height: auto;
  padding: 8rem 1.5rem 4rem;
}
.hero.compact h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }

/* eyebrow chip */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(8px);
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(1.3); }
}

/* ==== Buttons ==== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.95rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.96rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.22s var(--ease);
  letter-spacing: 0.005em;
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: white;
  box-shadow: 0 4px 18px rgba(239, 68, 68, 0.35), inset 0 1px 0 rgba(255,255,255,0.15);
}
.btn-primary:hover {
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(239, 68, 68, 0.5), inset 0 1px 0 rgba(255,255,255,0.2);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-color: var(--border-2);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}
.btn-arrow::after {
  content: "→";
  transition: transform 0.18s var(--ease);
}
.btn-arrow:hover::after { transform: translateX(3px); }
.btn + .btn { margin-left: 0.9rem; }

/* CTA button-pair row — used anywhere two buttons sit side-by-side. Survives magnetic pull. */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: inherit;
  margin-top: 0.5rem;
}
.cta-row.center { justify-content: center; }
.cta-row .btn { margin-left: 0 !important; margin-top: 0 !important; }
@media (max-width: 600px) {
  .cta-row { flex-direction: column; align-items: stretch; gap: 1.4rem; }
  .cta-row .btn { width: 100%; justify-content: center; }
  /* Tone down the primary glow on mobile so it doesn't bleed onto the button below */
  .cta-row .btn-primary {
    box-shadow: 0 2px 10px rgba(239, 68, 68, 0.3), inset 0 1px 0 rgba(255,255,255,0.15);
  }
}

/* ==== Magnetic button effect (hover-capable devices only) ==== */
.btn.magnetic {
  transition: transform 0.4s cubic-bezier(.2,.7,.2,1), box-shadow 0.22s var(--ease), background 0.22s var(--ease), border-color 0.22s var(--ease), color 0.22s var(--ease);
}
.btn.magnetic.is-pulling {
  transition: transform 0.06s linear, box-shadow 0.22s var(--ease), background 0.22s var(--ease), border-color 0.22s var(--ease), color 0.22s var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  .btn.magnetic { transform: none !important; }
}

/* ==== Reg-plate lookup row (contact form) ==== */
.reg-row {
  display: flex;
  gap: 0.6rem;
  align-items: stretch;
}
.reg-row input {
  flex: 1;
  min-width: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  font-family: 'SF Mono', 'Menlo', 'Consolas', monospace;
}
.reg-row .btn-sm {
  padding: 0 1.1rem;
  font-size: 0.85rem;
  white-space: nowrap;
  border-radius: 12px;
}
.reg-status {
  font-size: 0.85rem;
  margin-top: 0.4rem;
  min-height: 1.2em;
  color: var(--text-soft);
  transition: color 0.2s var(--ease);
}
.reg-status.error { color: var(--accent); }
.reg-status.ok { color: #4ade80; }

/* ==== Price anchor on feature blocks ==== */
.price-anchor {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem !important;
  color: var(--text-soft) !important;
  margin-bottom: 1rem !important;
  padding: 0.5rem 0.95rem;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(8px);
  width: fit-content;
}
.price-anchor strong {
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.005em;
}

/* ==== Platforms strip ==== */
.platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 3rem;
  justify-content: flex-start;
}
.platform-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.15rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.92rem;
  letter-spacing: 0.005em;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
}
.platform-pill strong {
  color: var(--accent);
  font-weight: 700;
  margin-right: 0.6rem;
  letter-spacing: 0.04em;
}
.platform-pill:hover {
  border-color: rgba(239,68,68,0.4);
  background: linear-gradient(180deg, rgba(239,68,68,0.08) 0%, rgba(255,255,255,0.02) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -8px rgba(239,68,68,0.3);
}
@media (max-width: 600px) {
  .platforms { gap: 0.5rem; }
  .platform-pill {
    font-size: 0.86rem;
    padding: 0.6rem 0.95rem;
    white-space: normal;
  }
}

/* ==== FAQ accordion ==== */
.faq {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-top: 2.5rem;
}
.faq-item {
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 0.2rem 0;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.faq-item:hover { border-color: rgba(255,255,255,0.14); }
.faq-item[open] { border-color: rgba(239,68,68,0.35); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.2rem 3rem 1.2rem 1.4rem;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--text);
  position: relative;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1.4rem; top: 50%;
  transform: translateY(-50%);
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--text-dim);
  transition: transform 0.25s var(--ease), color 0.25s var(--ease);
  line-height: 1;
}
.faq-item[open] summary::after {
  content: "−";
  color: var(--accent);
  transform: translateY(-50%) rotate(180deg);
}
.faq-item p {
  margin: 0;
  padding: 0 1.4rem 1.3rem;
  color: var(--text-dim);
  font-size: 0.96rem;
  line-height: 1.6;
}
.faq-item p strong { color: var(--text); }
.faq-item p a { color: var(--accent); }

/* ==== "How it works" steps ==== */
.steps {
  list-style: none;
  padding: 0;
  margin: 3.5rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 2rem 1.6rem 1.6rem;
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: all 0.35s var(--ease);
  overflow: hidden;
}
.step::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.step:hover {
  border-color: rgba(255,255,255,0.18);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -12px rgba(0,0,0,0.4);
}
.step:hover::before { opacity: 1; }
.step-num {
  position: absolute;
  top: 1.1rem; right: 1.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-feature-settings: 'tnum';
}
.step h3 {
  font-size: 1.2rem;
  margin: 0 0 0.6rem;
  letter-spacing: -0.015em;
}
.step p {
  font-size: 0.95rem;
  color: var(--text-dim);
  line-height: 1.5;
  margin: 0;
}

/* ==== Trust strip (under shop hero) ==== */
.trust-strip {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
}
.trust-strip li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--text-soft);
  letter-spacing: 0.005em;
}
.trust-strip li svg { color: #4ade80; flex-shrink: 0; }

/* ==== Service-deposit card polish ==== */
.icon-svg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px !important;
  height: 44px !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, rgba(239,68,68,0.18) 0%, rgba(185,28,28,0.08) 100%) !important;
  border: 1px solid rgba(239,68,68,0.2);
  color: #ff8585;
  margin-bottom: 1.2rem !important;
}
.price-line {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 1.2rem !important;
  font-variant-numeric: tabular-nums;
}
.price-line strong {
  color: var(--text);
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 0%, #cfd2d6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.price-line span {
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* ==== "Most popular" badge ==== */
.card-popular { position: relative; border-color: rgba(239,68,68,0.35) !important; }
.card-popular::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 100% at 50% 0%, rgba(239,68,68,0.10) 0%, transparent 60%);
  pointer-events: none;
  border-radius: inherit;
}
.badge-popular {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #ff5757 0%, #b91c1c 100%);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(239,68,68,0.45);
  z-index: 2;
  white-space: nowrap;
}

/* ==== Premium gift-voucher cards ==== */
.voucher-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
  margin-top: 3rem;
}
.voucher {
  position: relative;
  padding: 1.6rem 1.5rem 1.5rem;
  border-radius: 18px;
  background:
    linear-gradient(135deg, #1a1a1a 0%, #0e0e0e 50%, #1a0c0c 100%);
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(.2,.7,.2,1), border-color 0.3s var(--ease), box-shadow 0.4s var(--ease);
  isolation: isolate;
}
.voucher::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(239,68,68,0.18) 0%, transparent 45%),
    radial-gradient(circle at 100% 100%, rgba(80,80,180,0.10) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}
.voucher:hover {
  transform: translateY(-6px) rotateX(2deg);
  border-color: rgba(255,255,255,0.18);
  box-shadow: 0 30px 60px -20px rgba(239,68,68,0.35), 0 0 0 1px rgba(255,255,255,0.04);
}
.voucher-shine {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.08) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.8s ease;
  pointer-events: none;
  z-index: 1;
}
.voucher:hover .voucher-shine { transform: translateX(50%); }
.voucher > * { position: relative; z-index: 1; }
.voucher-brand {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--text);
  margin-bottom: 1.4rem;
}
.voucher-brand span {
  display: block;
  font-weight: 500;
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  color: var(--text-dim);
  margin-top: 0.15rem;
}
.voucher-amount {
  font-size: clamp(2.6rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.4rem;
  background: linear-gradient(135deg, #ffffff 0%, #cfd2d6 50%, #9ea4ad 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.voucher-tag {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
  font-weight: 700;
}
.voucher-blurb {
  color: var(--text-dim);
  font-size: 0.92rem;
  margin: 0 0 1.4rem;
  line-height: 1.5;
  min-height: 4.2em;
}
.voucher .btn {
  width: 100%;
  justify-content: center;
}
.voucher-popular { border-color: rgba(239,68,68,0.45) !important; }

/* ==== Parts notify form ==== */
.parts-notify {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2.5rem;
  padding: 1.2rem;
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.parts-notify input {
  flex: 1 1 180px;
  min-width: 0;
  padding: 0.85rem 1rem;
  background: var(--bg-1);
  border: 1px solid var(--border-2);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.96rem;
}
.parts-notify input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(239,68,68,0.12);
}
.parts-notify .btn { flex: 0 0 auto; }
@media (max-width: 600px) {
  .parts-notify { flex-direction: column; }
  .parts-notify .btn { width: 100%; justify-content: center; }
}

/* ==== Sticky mobile CTA ==== */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 90;
  padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(5,5,5,0) 0%, rgba(5,5,5,0.85) 35%, rgba(5,5,5,0.96) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  pointer-events: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.mobile-cta.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.mobile-cta-inner {
  display: flex;
  align-items: stretch;
  gap: 0.55rem;
  max-width: var(--max);
  margin: 0 auto;
}
.mobile-cta-inner .btn {
  flex: 1;
  min-height: 48px;
  justify-content: center;
  font-size: 0.98rem;
}
.mobile-cta-inner .btn-ghost {
  flex: 0 1 auto;
  min-width: 5.25rem;
  padding-left: 1rem;
  padding-right: 1rem;
}
.mobile-cta-share {
  flex: 0 0 48px;
  width: 48px;
  min-width: 48px;
  padding: 0;
  border: 1px solid var(--border-2);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border-radius: 999px;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.mobile-cta-share:active { transform: scale(0.96); }
body.mobile-bar-on {
  padding-bottom: calc(5.25rem + env(safe-area-inset-bottom));
}
.mobile-cta .btn {
  width: auto;
  box-shadow: 0 10px 32px rgba(239,68,68,0.45), inset 0 1px 0 rgba(255,255,255,0.15);
}
.mobile-cta-inner .btn-primary {
  box-shadow: 0 10px 32px rgba(239,68,68,0.45), inset 0 1px 0 rgba(255,255,255,0.15);
}
@media (max-width: 760px) {
  .mobile-cta { display: block; }
  section.block:last-of-type,
  .site-footer { scroll-margin-bottom: 5rem; }
}

/* ==== Sections ==== */
section.block {
  padding: 7rem 1.5rem;
  position: relative;
}
section.block.tight { padding: 4.5rem 1.5rem; }
section.block.alt { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-1) 50%, var(--bg) 100%); }

.section-head { margin-bottom: 3.5rem; max-width: 780px; }
.section-head h4 { margin-bottom: 1rem; }
.section-head h2 { margin-bottom: 1rem; }
.section-head p {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--text-dim);
  max-width: 640px;
}

/* ==== Materials marquee / showcase ==== */
.materials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 3rem;
}
.material {
  position: relative;
  padding: 2rem 1.6rem;
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: all 0.3s var(--ease);
  overflow: hidden;
}
.material::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.material:hover {
  border-color: var(--border-2);
  transform: translateY(-3px);
  background: linear-gradient(180deg, var(--bg-3) 0%, var(--bg-2) 100%);
}
.material:hover::before { opacity: 1; }
.material .grade {
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.material .name {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 0.7rem;
  color: var(--text);
}
.material .desc {
  font-size: 0.94rem;
  color: var(--text-dim);
  line-height: 1.55;
  margin: 0;
}

/* ==== Story / feature blocks ==== */
.feature {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 5rem;
  align-items: center;
  padding: 3rem 0;
}
.feature.flip { grid-template-columns: 1fr 1.2fr; }
.feature.flip .feature-text { order: 2; }
.feature.flip .feature-visual { order: 1; }
@media (max-width: 880px) {
  .feature, .feature.flip {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 2rem 0;
  }
  .feature.flip .feature-text { order: unset; }
  .feature.flip .feature-visual { order: unset; }
}
.feature-text h2 { margin-bottom: 1.2rem; }
.feature-text p {
  font-size: 1.05rem;
  color: var(--text-dim);
  margin-bottom: 1rem;
}
.feature-text .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.6rem;
  margin-bottom: 1.6rem;
}
.chip {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-2);
  color: var(--text-soft);
  letter-spacing: 0.01em;
}

.feature-visual {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background:
    radial-gradient(ellipse 60% 80% at 70% 30%, rgba(239, 68, 68, 0.18) 0%, transparent 60%),
    linear-gradient(135deg, var(--bg-2) 0%, var(--bg-1) 100%);
  border: 1px solid var(--border);
  transition: transform 0.6s cubic-bezier(.2,.7,.2,1);
}
.feature-visual[data-label]::after {
  content: attr(data-label);
  position: absolute;
  left: 1.1rem;
  bottom: 1.1rem;
  z-index: 3;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.95);
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(15,15,15,0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.08);
}
.feature:hover .feature-visual { transform: translateY(-4px); }
.feature:hover .feature-visual img { transform: scale(1.04); }
.feature-visual img { transition: transform 0.8s cubic-bezier(.2,.7,.2,1); }

/* ==== Stat row ==== */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-top: 3rem;
}
.stat {
  background: var(--bg-1);
  padding: 2rem 1.6rem;
  text-align: center;
}
.stat .num {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, #ff7575 0%, #b91c1c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.4rem;
}
.stat .label {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 600;
}

/* ==== Card grid (services overview) ==== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
  margin-top: 3rem;
}
.card {
  position: relative;
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2rem 1.8rem;
  transition: all 0.3s var(--ease);
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(239, 68, 68, 0.3), transparent);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-2);
  background: linear-gradient(180deg, var(--bg-3) 0%, var(--bg-2) 100%);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}
.card:hover::before { opacity: 1; }
.card h3 {
  color: var(--text);
  margin-bottom: 0.6rem;
  font-size: 1.25rem;
}
.card .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(185, 28, 28, 0.05));
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  margin-bottom: 1.4rem;
}
.card p {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.55;
}

/* ==== Why-us / list ==== */
ul.checks {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 0;
}
ul.checks li {
  position: relative;
  padding: 0.55rem 0 0.55rem 2rem;
  color: var(--text-soft);
  font-size: 1rem;
  border-bottom: 1px solid var(--border);
}
ul.checks li:last-child { border-bottom: none; }
ul.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 14px; height: 1px;
  background: var(--accent);
}

/* ==== Big CTA section ==== */
.cta {
  text-align: center;
  padding: 8rem 1.5rem;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 50% 50%, rgba(239, 68, 68, 0.15) 0%, transparent 60%);
  pointer-events: none;
}
.cta .wrap { position: relative; z-index: 1; max-width: 720px; }
.cta h2 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  margin-bottom: 1.5rem;
}
.cta p { color: var(--text-dim); margin-bottom: 2.5rem; font-size: 1.1rem; }

/* ==== Policy / long-form pages ==== */
.policy {
  padding: 8rem 1.5rem 6rem;
}
.policy .wrap { max-width: var(--max-narrow); margin: 0 auto; }
.policy h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  margin-bottom: 0.4rem;
}
.policy .updated {
  color: var(--text-faint);
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  margin-bottom: 3rem;
  display: block;
}
.policy h2 {
  margin-top: 3.5rem;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.policy h3 { margin-top: 1.8rem; font-size: 1.1rem; }
.policy ul, .policy ol { padding-left: 1.5rem; color: var(--text-dim); }
.policy li { margin-bottom: 0.5rem; line-height: 1.6; }
.policy p {
  color: var(--text-dim);
  line-height: 1.7;
  font-size: 1rem;
}
.policy strong { color: var(--text); font-weight: 600; }
.policy table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.93rem;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
}
.policy th, .policy td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-dim);
  vertical-align: top;
}
.policy th {
  color: var(--text);
  background: var(--bg-2);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}
.policy tr:last-child td { border-bottom: none; }

/* ==== Contact ==== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  margin-top: 3rem;
}
@media (max-width: 760px) {
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
}

.form label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.45rem;
  color: var(--text);
  font-weight: 500;
  letter-spacing: 0.01em;
}
.form input, .form select, .form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg-1);
  border: 1px solid var(--border-2);
  border-radius: 11px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.96rem;
  margin-bottom: 1.25rem;
  transition: all 0.2s var(--ease);
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-2);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}
.form textarea { min-height: 150px; resize: vertical; }

.contact-info dt {
  color: var(--text-faint);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  font-weight: 600;
}
.contact-info dd {
  margin: 0 0 2rem;
  color: var(--text);
  font-size: 1.1rem;
}

/* ==== Warning panel ==== */
.warn {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, rgba(185, 28, 28, 0.04) 100%);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-left: 3px solid var(--accent);
  border-radius: var(--r);
  padding: 1.2rem 1.4rem;
  color: var(--text-soft);
  margin: 2rem 0;
  font-size: 0.96rem;
  line-height: 1.6;
}
.warn strong { color: var(--accent); }

/* ==== Footer ==== */
.site-footer {
  padding: 5rem 1.5rem 2.5rem;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg) 0%, #000 100%);
  margin-top: 5rem;
}
.site-footer .wrap {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}
@media (max-width: 760px) {
  .site-footer .wrap { grid-template-columns: 1fr; gap: 2rem; }
}
.site-footer h4 {
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 1.1rem;
  font-weight: 600;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 0.6rem; }
.site-footer ul a { color: var(--text-dim); font-size: 0.94rem; }
.site-footer ul a:hover { color: var(--text); }
.site-footer .legal {
  grid-column: 1 / -1;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  color: var(--text-faint);
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==== Scroll reveal animation ==== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .eyebrow::before { animation: none; }
  html { scroll-behavior: auto; }
}

/* ==== Utility ==== */
.center  { text-align: center; }
.muted   { color: var(--text-dim); }
.faint   { color: var(--text-faint); }
.mt-0    { margin-top: 0; }
.mt-2    { margin-top: 1.4rem; }
.mt-3    { margin-top: 2rem; }

/* ==== Anchor offset for sticky header ==== */
:target { scroll-margin-top: 100px; }

/* ==== Scroll progress bar ==== */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, var(--accent) 0%, #ff8a8a 50%, var(--accent) 100%);
  transform: scaleX(0);
  transform-origin: 0 0;
  z-index: 200;
  pointer-events: none;
  box-shadow: 0 0 12px var(--accent-glow);
  transition: transform 0.05s linear;
}

/* ==== Cursor glow (desktop only) ==== */
.cursor-glow {
  position: fixed;
  top: -180px; left: -180px;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.16) 0%, rgba(239, 68, 68, 0.06) 35%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: screen;
  filter: blur(28px);
  will-change: transform;
}

/* ==== Header elevated state ==== */
.site-header.scrolled {
  background: rgba(5, 5, 5, 0.86);
  border-bottom-color: rgba(255, 255, 255, 0.10);
}

/* ==== Brand logo ==== */
.brand img {
  height: 34px;
  max-width: min(220px, 58vw);
  width: auto;
  display: block;
}
.brand-footer img {
  height: 32px;
  width: auto;
  display: block;
  margin-bottom: 1rem;
  opacity: 0.92;
}

/* ==== Card 3D tilt prep ==== */
.card, .material {
  transform-style: preserve-3d;
  perspective: 800px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

/* ==== Feature-visual: drop in an <img> and it just works ==== */
.feature-visual img,
.feature-visual video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.feature-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.55) 100%);
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.feature-visual:has(img)::before { opacity: 1; }

/* ==== Materials marquee strip ==== */
.marquee {
  position: relative;
  overflow: hidden;
  padding: 1.4rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-1);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
}
.marquee-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: marquee 28s linear infinite;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.marquee-track span {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 3rem;
}
.marquee-track .dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ================================================
   CONFIGURATOR
   ================================================ */

/* Reg lookup */
.reg-lookup-wrap {
  margin-bottom: 3rem;
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.8rem;
}
.reg-lookup-wrap h4 { margin-bottom: 0.6rem; }
.reg-lookup-wrap p.helper { color: var(--text-dim); font-size: 0.95rem; margin-bottom: 1rem; }
.reg-lookup-form {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
#reg-input {
  flex: 1 1 200px;
  font-family: 'SF Mono', 'Menlo', Monaco, Consolas, monospace;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  padding: 0.85rem 1rem;
  background: #fbcc34;
  color: #050505;
  border: 2px solid #050505;
  border-radius: 8px;
}
#reg-input::placeholder { color: rgba(0,0,0,0.5); }
#reg-input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.4);
}

.reg-card {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1rem 1.2rem;
  background: var(--bg-1);
  border: 1px solid var(--border-2);
  border-radius: var(--r);
  margin-top: 1rem;
}
.reg-plate {
  background: #fbcc34;
  color: #050505;
  padding: 0.5rem 0.85rem;
  border-radius: 5px;
  font-family: 'SF Mono', 'Menlo', monospace;
  font-weight: 800;
  letter-spacing: 0.12em;
  font-size: 1.05rem;
  white-space: nowrap;
}
.reg-make { font-weight: 600; color: var(--text); }
.reg-meta { color: var(--text-dim); font-size: 0.92rem; margin-top: 0.2rem; }

/* Configurator layout */
.cfg-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 880px) {
  .cfg-layout { grid-template-columns: 1fr; gap: 2rem; }
}

.cfg-form select {
  width: 100%;
  padding: 1rem 1.1rem;
  background: var(--bg-1);
  border: 1px solid var(--border-2);
  border-radius: 11px;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  margin-bottom: 1.5rem;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23a3a3a3' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.1rem center;
  cursor: pointer;
}
.cfg-form select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}
/* Pulse highlight when DVLA finds multiple model candidates and asks user to pick */
.cfg-form select.highlight-pulse {
  animation: cfg-pulse 1.2s ease-in-out 2;
}
@keyframes cfg-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); border-color: var(--border-2); }
  50%      { box-shadow: 0 0 0 8px rgba(239,68,68,0.18); border-color: var(--accent); }
}

.cfg-group {
  margin: 0 0 1.6rem;
  padding: 1.4rem 1.4rem 0.6rem;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.cfg-group h4 {
  margin: 0 0 1rem;
  color: var(--text);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
}

.cfg-opt {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.9rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s var(--ease);
}
.cfg-opt:first-of-type { border-top: none; }
.cfg-opt:hover { background: rgba(255,255,255,0.02); border-radius: 6px; }
.cfg-opt input { accent-color: var(--accent); width: 18px; height: 18px; }
.cfg-opt-label { display: flex; flex-direction: column; }
.cfg-opt-name { color: var(--text); font-weight: 500; }
.cfg-opt-note { color: var(--text-dim); font-size: 0.85rem; margin-top: 0.15rem; }
.cfg-opt-price {
  font-variant-numeric: tabular-nums;
  color: var(--text-soft);
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
}
.cfg-opt input:checked ~ .cfg-opt-label .cfg-opt-name { color: var(--accent); }
/* Stronger selected-state — full row tint + accent border so it's unmistakable */
.cfg-opt:has(input:checked) {
  background: rgba(239, 68, 68, 0.07) !important;
  box-shadow: inset 3px 0 0 var(--accent);
  border-radius: 8px;
}

/* Optgroup styling in the car dropdown */
.cfg-form select optgroup {
  font-weight: 700;
  color: var(--accent);
  background: var(--bg-2);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.cfg-form select option {
  background: var(--bg-1);
  color: var(--text);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

/* Trust line under summary actions */
.cfg-trust {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 1rem 0 0;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.cfg-trust li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.85rem;
  color: var(--text-soft);
}
.cfg-trust li svg { color: #4ade80; flex-shrink: 0; }

/* Animated total transition */
#cfg-total, #cfg-deposit, #cfg-mobile-total {
  font-variant-numeric: tabular-nums;
  display: inline-block;
}

/* ==== Mobile sticky configurator bar ==== */
.cfg-mobile-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 90;
  padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
  background: rgba(8, 8, 8, 0.92);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-top: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 -8px 28px rgba(0,0,0,0.5);
}
.cfg-mobile-bar-inner {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  max-width: var(--max);
  margin: 0 auto;
}
.cfg-mobile-price {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.cfg-mobile-price span {
  color: var(--text-dim);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.cfg-mobile-price strong {
  color: var(--text);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, #ff5757 0%, #b91c1c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.cfg-mobile-bar .btn {
  padding: 0.75rem 1.2rem;
  font-size: 0.9rem;
  white-space: nowrap;
}
.cfg-mobile-bar .btn[disabled] { opacity: 0.45; pointer-events: none; }
@media (max-width: 880px) {
  .cfg-mobile-bar { display: block; }
  /* Pad bottom of page so sticky bar doesn't cover the footer */
  body:has(.cfg-mobile-bar) .site-footer { padding-bottom: 5rem; }
}

/* Sticky price summary */
.cfg-summary {
  position: sticky;
  top: 100px;
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 100%);
  border: 1px solid var(--border-2);
  border-radius: var(--r-lg);
  padding: 1.8rem;
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
}
.cfg-summary h4 { margin-bottom: 1rem; }
.cfg-row { display: flex; justify-content: space-between; align-items: center; padding: 0.4rem 0; color: var(--text-dim); font-size: 0.92rem; }
.cfg-row.big {
  font-size: 1.05rem;
  color: var(--text);
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  margin-top: 0.6rem;
}
.cfg-row.total {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-top: 0.4rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}
.cfg-row.total span:last-child {
  background: linear-gradient(135deg, #ff5757 0%, #b91c1c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.cfg-breakdown {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  font-size: 0.9rem;
  color: var(--text-dim);
  max-height: 240px;
  overflow-y: auto;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0.8rem 0;
}
.cfg-breakdown li {
  display: flex;
  justify-content: space-between;
  padding: 0.25rem 0;
  font-variant-numeric: tabular-nums;
}

.cfg-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1.5rem;
}
.cfg-actions .btn { width: 100%; justify-content: center; }
.cfg-actions .btn[disabled] { opacity: 0.4; pointer-events: none; }

#cfg-offroad {
  display: none;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-left: 3px solid var(--accent);
  padding: 0.8rem 1rem;
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--text);
  margin-top: 1rem;
}
