/* =========================================================
   LynkSPhere — main stylesheet
   Dark, tech-forward design system. No framework.
   ========================================================= */

/* ---------- Fonts (self-hosted, no Google dependency) ---------- */
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Lexend Zetta";
  src: url("../fonts/lexend-zetta-latin-300-normal.woff2") format("woff2");
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "Lexend Zetta";
  src: url("../fonts/lexend-zetta-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #05070d;
  --bg-2: #080c17;
  --bg-3: #0c1222;
  --surface: rgba(148, 163, 184, 0.045);
  --surface-2: rgba(148, 163, 184, 0.08);
  --line: rgba(148, 163, 184, 0.13);
  --line-strong: rgba(148, 163, 184, 0.24);
  --text: #e9eef8;
  --text-2: #b4bfd3;
  --muted: #7d8aa3;
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --violet: #818cf8;
  --green: #34d399;
  --amber: #fbbf24;
  --red: #f87171;
  --grad: linear-gradient(115deg, #22d3ee 0%, #3b82f6 50%, #818cf8 100%);
  --grad-soft: linear-gradient(115deg, rgba(34, 211, 238, 0.16), rgba(129, 140, 248, 0.16));
  --glow: 0 0 0 1px rgba(59, 130, 246, 0.35), 0 10px 40px -10px rgba(59, 130, 246, 0.55);

  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --nav-h: 68px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: rgba(59, 130, 246, 0.45); color: #fff; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--blue); color: #fff; padding: 10px 14px; border-radius: 10px;
}
.skip-link:focus { top: 12px; }

/* ---------- Ambient background ---------- */
.bg-grid {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.055) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}
.bg-aurora {
  position: fixed; inset: -20vh -10vw auto; height: 90vh; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 50% at 25% 30%, rgba(34, 211, 238, 0.16), transparent 70%),
    radial-gradient(40% 50% at 75% 20%, rgba(99, 102, 241, 0.2), transparent 70%),
    radial-gradient(30% 40% at 50% 60%, rgba(59, 130, 246, 0.12), transparent 70%);
  filter: blur(20px);
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(72px, 10vw, 128px); position: relative; }
.section-tight { padding-block: clamp(48px, 7vw, 80px); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.section-head p { color: var(--text-2); font-size: clamp(1rem, 1.6vw, 1.125rem); margin-top: 16px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: ""; width: 18px; height: 1px; background: currentColor; opacity: 0.7;
}
.section-head.center .eyebrow::after {
  content: ""; width: 18px; height: 1px; background: currentColor; opacity: 0.7;
}

.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.mono { font-family: var(--font-mono); }
.muted { color: var(--muted); }

.divider {
  height: 1px; border: 0; margin: 0;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--surface-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--btn-bg);
  color: var(--text);
  font-weight: 600; font-size: 0.95rem; letter-spacing: -0.005em;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, border-color 0.25s;
}
.btn:hover { transform: translateY(-2px); border-color: rgba(148, 163, 184, 0.4); background: rgba(148, 163, 184, 0.12); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn-primary {
  border: 0;
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 30px -8px rgba(59, 130, 246, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-primary:hover { background: var(--grad); box-shadow: 0 14px 40px -8px rgba(59, 130, 246, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--line); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 0.875rem; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; pointer-events: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--cyan); font-weight: 600;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--nav-h);
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled,
.nav.is-open {
  background: rgba(5, 7, 13, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav-inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand { gap: 12px; }
.brand-emblem { height: 38px; width: auto; filter: drop-shadow(0 0 10px rgba(59,130,246,.35)); }
.brand-word {
  font-family: "Lexend Zetta", var(--font-display);
  font-weight: 400; font-size: 0.95rem; letter-spacing: 0.04em; text-transform: uppercase;
  color: #eef4ff; text-shadow: 0 0 14px rgba(59, 130, 246, 0.55);
  white-space: nowrap;
}
.logo-full { width: min(100%, 360px); height: auto; }
.nav-links {
  display: flex; align-items: center; gap: 4px;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  display: inline-flex; align-items: center; height: 38px; padding: 0 14px;
  white-space: nowrap;
  border-radius: 999px;
  color: var(--text-2); font-size: 0.925rem; font-weight: 500;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-links a[aria-current="page"],
.nav-links a.is-active { color: var(--text); background: var(--surface-2); }
.nav-actions { display: flex; align-items: center; gap: 8px; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface);
  position: relative;
}
.nav-toggle span {
  position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav.is-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: inline-block; }
  .nav-menu {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    height: calc(100dvh - var(--nav-h));
    padding: 20px var(--gutter) 32px;
    background: rgba(5, 7, 13, 0.97);
    backdrop-filter: blur(16px);
    display: flex; flex-direction: column; gap: 20px;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity 0.25s, transform 0.3s var(--ease), visibility 0.25s;
    overflow-y: auto;
  }
  .nav.is-open .nav-menu { transform: none; opacity: 1; visibility: visible; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-links a { height: 52px; font-size: 1.125rem; padding: 0 12px; border-radius: 12px; }
  .nav-actions { flex-direction: column; align-items: stretch; margin-top: auto; }
  .nav-actions .btn { min-height: 52px; }
  body.nav-locked { overflow: hidden; }
}
@media (min-width: 961px) {
  .nav-menu { display: flex; align-items: center; gap: 20px; flex: 1; justify-content: space-between; margin-left: 24px; }
}

/* ---------- Hero ---------- */
.hero {
  padding-top: calc(var(--nav-h) + clamp(40px, 7vw, 96px));
  padding-bottom: clamp(56px, 8vw, 96px);
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(40px, 6vw, 64px);
  align-items: center;
}
.hero-copy { max-width: 1000px; margin-inline: auto; text-align: center; }
.hero h1 {
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 600;
}
.hero-lead {
  margin: 24px auto 0;
  max-width: 640px;
  color: var(--text-2);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
}
.hero-cta { margin-top: 36px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(8, 12, 23, 0.7);
  font-size: 0.85rem; color: var(--text-2);
  margin-bottom: 28px;
  transition: border-color 0.2s;
}
.pill:hover { border-color: var(--line-strong); }
.pill-tag {
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em;
  padding: 4px 9px; border-radius: 999px;
  background: var(--grad-soft); color: var(--cyan);
  border: 1px solid rgba(34, 211, 238, 0.25);
}
.hero-meta {
  margin-top: 28px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px;
  color: var(--muted); font-size: 0.875rem;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 16px; height: 16px; color: var(--green); }

/* ---------- Head-unit device mock ---------- */
.stage { position: relative; max-width: 1200px; margin-inline: auto; width: 100%; }
.stage::before {
  content: ""; position: absolute; inset: 10% 8% -6%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(59, 130, 246, 0.35), transparent 70%);
  filter: blur(40px); z-index: -1;
}
.headunit {
  position: relative;
  border-radius: clamp(18px, 3vw, 34px);
  padding: clamp(8px, 1.2vw, 14px);
  background: linear-gradient(180deg, #1a2133, #0a0e18 40%, #0b0f1a);
  box-shadow:
    0 0 0 1px rgba(148, 163, 184, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 40px 100px -30px rgba(0, 0, 0, 0.9),
    0 0 80px -20px rgba(59, 130, 246, 0.45);
  transform: perspective(1800px) rotateX(8deg);
  transform-origin: 50% 100%;
  transition: transform 0.8s var(--ease);
}
.stage:hover .headunit { transform: perspective(1800px) rotateX(3deg); }
.headunit-screen {
  position: relative;
  border-radius: clamp(10px, 2vw, 22px);
  overflow: hidden;
  aspect-ratio: 16 / 7;
  background: #03050a;
}
.headunit-screen > img,
.headunit-screen > video { width: 100%; height: 100%; object-fit: cover; }
/* Hover layer: clip (or second still) that cross-fades in over the home-screen still */
.headunit-screen .shot-hover {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 0.7s var(--ease); pointer-events: none;
}
.headunit-screen.is-hover .shot-hover { opacity: 1; }
.headunit-screen.is-loaded { cursor: pointer; outline: none; }
.headunit-screen:focus-visible { box-shadow: 0 0 0 3px var(--cyan); }
.headunit-reflection {
  position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.07) 0%, transparent 30%, transparent 70%, rgba(255, 255, 255, 0.03) 100%);
}

/* Mock launcher UI (placeholder until real screenshots exist) */
.mock-ui {
  position: absolute; inset: 0;
  display: grid;
  grid-template-columns: 58px 1.15fr 1fr;
  gap: clamp(6px, 1vw, 12px);
  padding: clamp(8px, 1.2vw, 14px);
  background:
    radial-gradient(60% 80% at 80% 0%, rgba(99, 102, 241, 0.22), transparent 60%),
    radial-gradient(50% 70% at 10% 100%, rgba(34, 211, 238, 0.14), transparent 60%),
    #050811;
  font-size: clamp(8px, 1.05vw, 13px);
}
.mock-dock {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 10px 0; border-radius: 14px;
  background: rgba(148, 163, 184, 0.06); border: 1px solid rgba(148, 163, 184, 0.08);
}
.mock-dock i { width: 60%; aspect-ratio: 1; border-radius: 30%; background: rgba(148, 163, 184, 0.14); display: block; }
.mock-dock i:first-child { background: var(--grad); }
.mock-card {
  border-radius: 14px;
  background: rgba(148, 163, 184, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.1);
  padding: clamp(8px, 1.1vw, 14px);
  position: relative; overflow: hidden;
  min-width: 0;
}
.mock-map {
  background:
    linear-gradient(rgba(5, 8, 17, 0.2), rgba(5, 8, 17, 0.2)),
    repeating-linear-gradient(35deg, transparent 0 22px, rgba(148, 163, 184, 0.07) 22px 23px),
    repeating-linear-gradient(-55deg, transparent 0 34px, rgba(148, 163, 184, 0.06) 34px 35px),
    #0a1020;
}
.mock-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mock-turn {
  position: absolute; left: clamp(8px, 1.1vw, 14px); top: clamp(8px, 1.1vw, 14px);
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: 12px;
  background: rgba(5, 8, 17, 0.85); border: 1px solid rgba(34, 211, 238, 0.3);
}
.mock-turn b { font-family: var(--font-display); font-size: 1.5em; line-height: 1; }
.mock-turn small { color: var(--muted); display: block; }
.mock-turn svg { position: static; width: 2em; height: 2em; color: var(--cyan); }
.mock-right { display: grid; grid-template-rows: auto 1fr; gap: clamp(6px, 1vw, 12px); min-width: 0; }
.mock-media { display: flex; align-items: center; gap: 12px; }
.mock-art {
  width: 3.8em; aspect-ratio: 1; border-radius: 10px; flex: none;
  background: conic-gradient(from 200deg, #22d3ee, #6366f1, #ec4899, #22d3ee);
}
.mock-media b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-media small { color: var(--muted); }
.mock-bar { height: 3px; border-radius: 3px; background: rgba(148, 163, 184, 0.2); margin-top: 6px; position: relative; overflow: hidden; }
.mock-bar::after { content: ""; position: absolute; inset: 0 55% 0 0; background: var(--grad); }
.mock-apps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(6px, 0.9vw, 12px);
  align-content: center;
}
.mock-app { display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 0; }
.mock-app i {
  width: 70%; max-width: 54px; aspect-ratio: 1; border-radius: 28%;
  display: grid; place-items: center;
  font-style: normal; font-family: var(--font-display); font-weight: 700; color: #fff; font-size: 1.2em;
  background: var(--c, #334155);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.mock-app span { color: var(--text-2); font-size: 0.85em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

.float-chip {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(10, 14, 26, 0.82);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.7);
  font-size: 0.85rem;
  animation: float 6s ease-in-out infinite;
}
.float-chip small { display: block; color: var(--muted); font-size: 0.75rem; }
.float-chip .dot { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--grad-soft); color: var(--cyan); flex: none; }
.float-chip .dot svg { width: 16px; height: 16px; }
.float-chip.c1 { left: -3%; bottom: -14%; }
.float-chip.c2 { right: -3%; top: -10%; animation-delay: -3s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (max-width: 760px) {
  .float-chip { display: none; }
  .mock-ui { grid-template-columns: 1.2fr 1fr; }
  .mock-dock { display: none; }
  .headunit-screen { --ratio: 16 / 9 !important; }
  .headunit-screen > img, .headunit-screen .shot-hover { object-position: 22% 50%; }
  .mock-apps { grid-template-columns: repeat(3, 1fr); }
  .mock-apps .mock-app:nth-child(n+7) { display: none; }
}

/* ---------- Marquee (compat / apps) ---------- */
.marquee {
  position: relative; overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  display: flex; gap: 12px; width: max-content;
  animation: marquee 40s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee.reverse .marquee-track { animation-direction: reverse; animation-duration: 50s; }
@keyframes marquee { to { transform: translateX(-50%); } }
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
  color: var(--text-2); font-size: 0.925rem; white-space: nowrap;
}
.tag b { color: var(--text); font-weight: 600; }
.tag .tag-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }

.trust {
  padding-block: 28px;
  border-block: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(8, 12, 23, 0.4), rgba(8, 12, 23, 0.8));
}
.trust-label {
  text-align: center; color: var(--muted);
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  margin-bottom: 18px;
}

/* ---------- Cards / bento ---------- */
.card {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(148, 163, 184, 0.06), rgba(148, 163, 184, 0.02));
  padding: clamp(22px, 2.6vw, 32px);
  overflow: hidden;
  isolation: isolate;
  transition: border-color 0.3s, transform 0.4s var(--ease);
}
.card::before {
  /* cursor spotlight */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(59, 130, 246, 0.14), transparent 45%);
  transition: opacity 0.3s;
}
.card:hover { border-color: var(--line-strong); }
.card:hover::before { opacity: 1; }
.card h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); margin-bottom: 10px; }
.card p { color: var(--text-2); font-size: 0.975rem; }

.icon-box {
  width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--grad-soft);
  border: 1px solid rgba(59, 130, 246, 0.28);
  color: var(--cyan);
  margin-bottom: 20px;
}
.icon-box svg { width: 24px; height: 24px; }

.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}
.bento > .card { grid-column: span 2; }
.bento > .span-3 { grid-column: span 3; }
.bento > .span-4 { grid-column: span 4; }
.bento > .span-6 { grid-column: span 6; }
.bento > .row-2 { grid-row: span 2; }
@media (max-width: 1024px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento > .card, .bento > .span-3 { grid-column: span 1; }
  .bento > .span-4, .bento > .span-6 { grid-column: span 2; }
  .bento > .row-2 { grid-row: auto; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: minmax(0, 1fr); }
  .bento > .card, .bento > .span-3, .bento > .span-4, .bento > .span-6 { grid-column: auto; }
}
.card-badge {
  position: absolute; top: 20px; right: 20px;
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--line-strong); color: var(--text-2);
}
.card-badge.beta { color: var(--amber); border-color: rgba(251, 191, 36, 0.35); }

.card-feature { display: flex; flex-direction: column; }
.card-feature .visual { margin-top: 24px; flex: 1; min-height: 140px; position: relative; }

/* mini visuals inside feature cards */
.aa-visual {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
}
.aa-phone, .aa-car {
  border: 1px solid var(--line-strong); background: #070b15;
  display: grid; place-items: center; color: var(--text-2);
}
.aa-phone { width: 64px; height: 118px; border-radius: 14px; justify-self: end; }
.aa-car { height: 96px; border-radius: 14px; }
.aa-phone svg, .aa-car svg { width: 28px; height: 28px; color: var(--cyan); }
.aa-link { display: flex; gap: 6px; }
.aa-link i { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); opacity: 0.25; animation: pulse 1.4s infinite; }
.aa-link i:nth-child(2) { animation-delay: 0.2s; }
.aa-link i:nth-child(3) { animation-delay: 0.4s; }
@keyframes pulse { 50% { opacity: 1; box-shadow: 0 0 10px var(--cyan); } }

.hud-mini {
  height: 100%; min-height: 160px;
  border-radius: 16px;
  background:
    radial-gradient(80% 60% at 50% 110%, rgba(34, 211, 238, 0.18), transparent 60%),
    linear-gradient(180deg, #0b1324, #04060c);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  position: relative; overflow: hidden;
}
.hud-mini .hud-glass {
  display: flex; align-items: center; gap: 18px;
  padding: 14px 22px; border-radius: 14px;
  color: #7ff3ff;
  text-shadow: 0 0 12px rgba(34, 211, 238, 0.8);
  font-family: var(--font-display);
  border: 1px solid rgba(34, 211, 238, 0.18);
  background: rgba(34, 211, 238, 0.04);
}
.hud-glass svg { width: 34px; height: 34px; filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.8)); }
.hud-glass b { font-size: 1.8rem; font-weight: 600; display: block; line-height: 1; }
.hud-glass small { font-size: 0.8rem; opacity: 0.8; }
.hud-glass .sep { width: 1px; align-self: stretch; background: rgba(34, 211, 238, 0.25); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 0.8rem; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(5, 7, 13, 0.6); color: var(--text-2);
}

.lang-swap {
  display: flex; align-items: center; gap: 12px; font-family: var(--font-display);
}
.lang-swap span {
  padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: #070b15; font-size: 1.1rem;
}
.lang-swap span:last-child { border-color: rgba(34, 211, 238, 0.35); color: var(--cyan); }
.lang-swap svg { width: 20px; height: 20px; color: var(--muted); }

/* ---------- Split sections ---------- */
.split {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 6vw, 80px); align-items: center;
}
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }
.split .section-head { margin-bottom: 28px; }

.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 14px; color: var(--text-2); }
.check-list li svg { width: 22px; height: 22px; flex: none; color: var(--cyan); margin-top: 1px; }
.check-list li b { color: var(--text); font-weight: 600; }

/* ---------- Media: screenshot slots / gallery ---------- */
.shot {
  position: relative; margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-3);
  aspect-ratio: var(--ratio, 16 / 9);
}
.shot img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.6s var(--ease); }
.headunit-screen.shot > img, .headunit-screen.shot .shot-hover { object-fit: cover; } /* hero keeps its own frame (cropped on phones) */
.shot.is-loaded { cursor: zoom-in; }
.shot.is-loaded:hover img { transform: scale(1.03); }
.shot.phone { --ratio: 9 / 19; max-width: 280px; border-radius: 28px; border-width: 6px; border-color: #1a2133; }

.shot-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  text-align: center; padding: 16px;
  color: var(--muted);
  background:
    linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px) 0 0 / 24px 24px,
    radial-gradient(70% 70% at 50% 40%, rgba(59, 130, 246, 0.12), transparent 70%),
    #070b15;
}
.shot-placeholder svg { width: 32px; height: 32px; color: var(--blue); opacity: 0.8; }
.shot-placeholder strong { color: var(--text-2); font-weight: 600; font-size: 0.9rem; }
.shot-placeholder .slot-file {
  display: none;
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--cyan);
  padding: 3px 8px; border-radius: 6px; background: rgba(34, 211, 238, 0.08); border: 1px dashed rgba(34, 211, 238, 0.35);
  word-break: break-all;
}
.show-slots .shot-placeholder .slot-file { display: inline-block; }
.shot-placeholder::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(148, 163, 184, 0.06) 50%, transparent 70%);
  background-size: 250% 100%;
  animation: shimmer 3.2s linear infinite;
}
@keyframes shimmer { from { background-position: 150% 0; } to { background-position: -100% 0; } }

.gallery-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter-btn {
  min-height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text-2);
  font-size: 0.9rem; font-weight: 500;
  transition: all 0.2s;
}
.filter-btn:hover { color: var(--text); border-color: var(--line-strong); }
.filter-btn[aria-pressed="true"] { background: var(--grad-soft); color: var(--text); border-color: rgba(59, 130, 246, 0.5); }
.filter-btn .count { font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); margin-left: 6px; }

.gallery {
  display: grid; gap: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-flow: dense; align-items: start;
}
@media (max-width: 760px) { .gallery { grid-template-columns: minmax(0, 1fr); } }
.gallery-item { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.gallery-item[hidden] { display: none; }
/* ultra-wide head-unit captures (> 2.2:1) take a full row so nothing is cropped or tiny */
.gallery-item.is-wide, .video-card.is-wide, .preview-grid .shot.is-wide { grid-column: 1 / -1; }
.gallery-item figcaption b { display: block; font-weight: 600; font-size: 1rem; }
.gallery-item figcaption span { color: var(--muted); font-size: 0.9rem; }
.gallery-item .cat {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cyan);
}

.preview-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-flow: dense; align-items: start;
}
.preview-grid > :first-child { grid-column: 1 / -1; }
.preview-grid .shot { height: auto; }
@media (max-width: 760px) {
  .preview-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Home preview: screenshot rows, items share one height per row */
.preview-grid.is-rows { display: flex; flex-direction: column; gap: 22px; }
.preview-row { display: flex; gap: 18px; align-items: flex-start; }
.preview-item { margin: 0; flex: var(--r) 1 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.preview-item .shot { aspect-ratio: var(--r); width: 100%; }
.preview-item figcaption { font-size: 0.9rem; font-weight: 600; color: var(--text-2); }
@media (max-width: 640px) {
  .preview-row { flex-direction: column; gap: 22px; }
  .preview-item { flex: none; width: 100%; }
}
/* Home: installation video instead of the three steps */
.how-video { max-width: 980px; margin-inline: auto; }
.how-video .video-grid { grid-template-columns: minmax(0, 1fr); }
.how-video .video-card > div:last-child { display: none; }

/* Home: videos flow in rows sized by their aspect ratio (no half-empty rows) */
.video-grid.is-flow { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.video-grid.is-flow .video-card { flex: var(--r, 1.78) 1 calc(var(--r, 1.78) * 230px); min-width: 0; }
@media (max-width: 760px) { .video-grid.is-flow .video-card { flex-basis: 100%; } }

/* Video */
.video-grid { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: dense; align-items: start; }
@media (max-width: 760px) { .video-grid { grid-template-columns: minmax(0, 1fr); } }
.video-card { display: flex; flex-direction: column; gap: 12px; }
.video {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: #03050a; aspect-ratio: 16 / 9;
}
.video iframe, .video video, .video img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: contain; }
.video-play {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: linear-gradient(180deg, rgba(3, 5, 10, 0.1), rgba(3, 5, 10, 0.55));
  border: 0; width: 100%; color: #fff;
}
.video-play span {
  width: 72px; height: 72px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--grad);
  box-shadow: 0 0 0 10px rgba(59, 130, 246, 0.18), 0 20px 40px -10px rgba(59, 130, 246, 0.8);
  transition: transform 0.3s var(--ease);
}
.video-play:hover span { transform: scale(1.08); }
.video-play svg { width: 26px; height: 26px; margin-left: 4px; }
.video-card b { font-weight: 600; }
.video-card p { color: var(--muted); font-size: 0.9rem; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(3, 5, 10, 0.92);
  backdrop-filter: blur(10px);
  display: grid; grid-template-rows: auto 1fr auto;
  opacity: 0; visibility: hidden; transition: opacity 0.25s, visibility 0.25s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox-top { display: flex; justify-content: space-between; align-items: center; padding: 16px var(--gutter); }
.lightbox-top .counter { font-family: var(--font-mono); color: var(--muted); font-size: 0.85rem; }
.lightbox-stage { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 0 var(--gutter); min-height: 0; }
.lightbox-stage img { max-height: 78vh; margin: auto; border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); }
.lightbox-caption { text-align: center; padding: 18px var(--gutter) 28px; color: var(--text-2); }
.lightbox-caption b { color: var(--text); display: block; }
.icon-btn {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong); background: rgba(148, 163, 184, 0.08);
  transition: background 0.2s;
}
.icon-btn:hover { background: rgba(148, 163, 184, 0.18); }
.icon-btn svg { width: 20px; height: 20px; }
@media (max-width: 640px) {
  .lightbox-stage { grid-template-columns: 1fr; }
  .lightbox-stage .icon-btn { display: none; }
}

/* ---------- Steps (home) ---------- */
.steps {
  display: grid; gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  counter-reset: step;
  position: relative;
}
@media (max-width: 900px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.step-card { counter-increment: step; }
.step-card .step-num {
  font-family: var(--font-mono); font-size: 0.8rem; color: var(--cyan);
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px;
}
.step-card .step-num::before {
  content: counter(step, decimal-leading-zero);
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  border: 1px solid rgba(34, 211, 238, 0.35);
  background: rgba(34, 211, 238, 0.06);
  font-size: 0.95rem; font-weight: 600;
}

/* ---------- Downloads ---------- */
.downloads { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .downloads { grid-template-columns: minmax(0, 1fr); } }
.dl-card {
  display: flex; align-items: center; gap: 20px;
}
.dl-card .icon-box { margin: 0; width: 56px; height: 56px; flex: none; }
.dl-card .dl-body { flex: 1; min-width: 0; }
.dl-card h3 { margin-bottom: 4px; font-size: 1.15rem; }
.dl-card .file { font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); display: block; margin-top: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 480px) {
  .dl-card { flex-wrap: wrap; }
  .dl-card .btn { width: 100%; }
}

/* ---------- Pricing ---------- */
.pricing { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
@media (max-width: 960px) { .pricing { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin-inline: auto; } }
.price-card { display: flex; flex-direction: column; gap: 24px; }
.price-card.featured {
  border-color: transparent;
  background:
    linear-gradient(var(--bg-2), var(--bg-2)) padding-box,
    var(--grad) border-box;
  border: 1px solid transparent;
  box-shadow: 0 30px 80px -30px rgba(59, 130, 246, 0.6);
}
.price-card.featured::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(80% 50% at 50% 0%, rgba(59, 130, 246, 0.18), transparent 70%);
}
.price-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.price-top h3 { margin: 0 0 4px; }
.price-top p { color: var(--muted); font-size: 0.9rem; }
.price-badge {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px; white-space: nowrap;
  background: var(--grad); color: #fff; font-weight: 600;
}
.price-badge.alt { background: rgba(251, 191, 36, 0.12); color: var(--amber); border: 1px solid rgba(251, 191, 36, 0.35); }
.price-amount { display: flex; align-items: baseline; gap: 8px; }
.price-amount .cur { font-family: var(--font-mono); color: var(--muted); font-size: 0.9rem; }
.price-amount .val { font-family: var(--font-display); font-size: clamp(2.6rem, 5vw, 3.4rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.price-amount .per { color: var(--muted); font-size: 0.9rem; }
.price-card .check-list { gap: 12px; font-size: 0.95rem; }
.price-card .check-list svg { width: 18px; height: 18px; }
.price-card .btn { margin-top: auto; }
.pricing-note { text-align: center; color: var(--muted); font-size: 0.9rem; margin-top: 24px; }

/* ---------- FAQ / accordion ---------- */
.faq { max-width: 860px; margin-inline: auto; display: grid; gap: 10px; }
.faq details {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.2s, background 0.2s;
}
.faq details[open] { border-color: var(--line-strong); background: var(--surface-2); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 22px;
  font-weight: 600; font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 12px; height: 12px; flex: none;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq .faq-body { padding: 0 22px 22px; color: var(--text-2); }
.faq .faq-body p + p { margin-top: 10px; }
.faq .faq-body code, .prose code {
  font-family: var(--font-mono); font-size: 0.85em;
  padding: 2px 7px; border-radius: 6px;
  background: rgba(34, 211, 238, 0.08); color: var(--cyan);
  border: 1px solid rgba(34, 211, 238, 0.18);
}

/* ---------- Contact / forms ---------- */
.contact-grid { display: grid; gap: clamp(28px, 5vw, 64px); grid-template-columns: 1fr 1.1fr; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.channels { display: grid; gap: 12px; margin-top: 28px; }
.channel { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: var(--radius); }
.channel .icon-box { margin: 0; width: 44px; height: 44px; }
.channel b { display: block; font-weight: 600; }
.channel span { color: var(--muted); font-size: 0.925rem; }
.channel .arrow { margin-left: auto; color: var(--muted); width: 18px; height: 18px; transition: transform 0.25s var(--ease), color 0.2s; }
.channel:hover .arrow { transform: translateX(4px); color: var(--cyan); }

.form { display: grid; gap: 16px; }
.form-row { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .form-row { grid-template-columns: minmax(0, 1fr); } }
.form-row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .form-row-3 { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: 8px; }
.field > span { font-size: 0.875rem; color: var(--text-2); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(3, 5, 10, 0.6);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
  font-size: 16px; /* avoids iOS zoom */
}
.field textarea { resize: vertical; min-height: 120px; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237d8aa3' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
  padding-right: 40px;
}
.field select option { background: #0a0f1c; }
.field input::placeholder, .field textarea::placeholder { color: #56627a; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.18);
}
.form-honey { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

.form-status {
  padding: 12px 16px; border-radius: 12px; font-size: 0.925rem;
  border: 1px solid var(--line);
}
.form-status[hidden] { display: none; }
.form-status.is-success { border-color: rgba(52, 211, 153, 0.4); background: rgba(52, 211, 153, 0.08); color: #a7f3d0; }
.form-status.is-error { border-color: rgba(248, 113, 113, 0.4); background: rgba(248, 113, 113, 0.08); color: #fecaca; }
.form-status.is-loading { border-color: rgba(59, 130, 246, 0.4); background: rgba(59, 130, 246, 0.08); color: #bfdbfe; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden;
  border-radius: var(--radius-xl);
  padding: clamp(40px, 7vw, 80px) clamp(24px, 5vw, 64px);
  text-align: center;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(60% 100% at 50% 0%, rgba(59, 130, 246, 0.25), transparent 70%),
    linear-gradient(180deg, var(--bg-3), var(--bg-2));
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 60% 80% at 50% 0%, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 80% at 50% 0%, #000, transparent 70%);
}
.cta-band > * { position: relative; }
.cta-band h2 { font-size: clamp(1.9rem, 4.4vw, 3rem); max-width: 720px; margin-inline: auto; }
.cta-band p { color: var(--text-2); margin: 16px auto 0; max-width: 560px; }
.cta-band .hero-cta { margin-top: 32px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 56px 0 32px; margin-top: 40px; background: linear-gradient(180deg, transparent, rgba(8, 12, 23, 0.9)); }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1.6fr repeat(3, 1fr); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand .brand-emblem { height: 44px; }
.footer-brand p { color: var(--muted); font-size: 0.9rem; max-width: 340px; }
.footer h4 { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer ul a { color: var(--text-2); font-size: 0.925rem; transition: color 0.2s; }
.footer ul a:hover { color: var(--text); }
.footer-bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  color: var(--muted); font-size: 0.8rem;
}
.status-dot { display: inline-flex; align-items: center; gap: 8px; }
.status-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }

/* ---------- Page hero (sub pages) ---------- */
.page-hero {
  padding-top: calc(var(--nav-h) + clamp(48px, 7vw, 88px));
  padding-bottom: clamp(32px, 5vw, 56px);
}
.page-hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); letter-spacing: -0.03em; }
.page-hero p.lead { color: var(--text-2); font-size: clamp(1.05rem, 1.8vw, 1.2rem); margin-top: 18px; max-width: 680px; }
.page-hero.center { text-align: center; }
.page-hero.center p.lead { margin-inline: auto; }
.breadcrumbs { font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); margin-bottom: 20px; display: flex; gap: 8px; }
.page-hero.center .breadcrumbs { justify-content: center; }
.breadcrumbs a:hover { color: var(--text); }

.stat-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.page-hero.center .stat-row { justify-content: center; }
.stat {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
  font-size: 0.9rem; color: var(--text-2);
}
.stat svg { width: 18px; height: 18px; color: var(--cyan); }

/* ---------- Install guide ---------- */
.guide-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 1024px) { .guide-layout { grid-template-columns: minmax(0, 1fr); } }
.toc {
  position: sticky; top: calc(var(--nav-h) + 24px);
  border-left: 1px solid var(--line);
  padding-left: 4px;
}
.toc h4 { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px 16px; font-weight: 500; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.toc a {
  display: block; padding: 8px 16px; margin-left: -5px;
  border-left: 2px solid transparent;
  color: var(--muted); font-size: 0.9rem;
  transition: color 0.2s, border-color 0.2s;
}
.toc a:hover { color: var(--text); }
.toc a.is-active { color: var(--text); border-left-color: var(--cyan); }
@media (max-width: 1024px) { .toc { display: none; } }

.tabs {
  display: inline-flex; gap: 4px; padding: 4px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  margin-bottom: 28px;
}
.tab {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 42px; padding: 0 18px; border-radius: 999px; border: 0;
  background: transparent; color: var(--text-2); font-weight: 600; font-size: 0.925rem;
  transition: background 0.2s, color 0.2s;
}
.tab svg { width: 18px; height: 18px; }
.tab[aria-selected="true"] { background: var(--grad); color: #fff; box-shadow: 0 6px 20px -8px rgba(59, 130, 246, 0.8); }
[data-platform-only][hidden] { display: none !important; }

.req-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.req { display: flex; gap: 14px; padding: 18px; border-radius: var(--radius); }
.req .icon-box { margin: 0; width: 40px; height: 40px; border-radius: 12px; flex: none; }
.req .icon-box svg { width: 20px; height: 20px; }
.req b { display: block; font-weight: 600; margin-bottom: 2px; }
.req span { color: var(--muted); font-size: 0.9rem; }

.timeline { position: relative; display: grid; gap: 20px; counter-reset: gstep; }
.timeline::before {
  content: ""; position: absolute; left: 23px; top: 24px; bottom: 24px; width: 1px;
  background: linear-gradient(180deg, var(--cyan), var(--violet) 60%, transparent);
  opacity: 0.4;
}
.g-step { position: relative; padding-left: 72px; counter-increment: gstep; }
.g-step::before {
  content: counter(gstep);
  position: absolute; left: 0; top: 0;
  width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 600; font-size: 1.1rem;
  background: var(--bg-2);
  border: 1px solid rgba(59, 130, 246, 0.45);
  box-shadow: 0 0 0 6px var(--bg), 0 0 24px -4px rgba(59, 130, 246, 0.6);
  color: var(--text);
}
.g-step .card { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 36px); align-items: start; }
.g-step .card.no-media { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 760px) {
  .g-step { padding-left: 0; padding-top: 60px; }
  .timeline::before { display: none; }
  .g-step .card { grid-template-columns: minmax(0, 1fr); }
}
.g-step h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); margin-bottom: 12px; }
.g-step .meta { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cyan); margin-bottom: 10px; display: block; }
.prose { color: var(--text-2); }
.prose p + p, .prose p + ul, .prose ul + p, .prose ol + p, .prose p + ol { margin-top: 12px; }
.prose ul, .prose ol { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 8px; }
.prose li::marker { color: var(--cyan); }
.prose b, .prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(34, 211, 238, 0.4); }
.ui-label {
  display: inline-block; font-weight: 600; color: var(--text);
  padding: 1px 8px; border-radius: 6px; border: 1px solid var(--line-strong); background: var(--surface-2);
  font-size: 0.9em; white-space: nowrap;
}

.callout {
  display: flex; gap: 14px;
  padding: 16px 18px; border-radius: 14px; margin-top: 16px;
  border: 1px solid rgba(59, 130, 246, 0.3); background: rgba(59, 130, 246, 0.07);
  color: var(--text-2); font-size: 0.925rem;
}
.callout svg { width: 20px; height: 20px; flex: none; color: var(--blue); margin-top: 2px; }
.callout.warn { border-color: rgba(251, 191, 36, 0.3); background: rgba(251, 191, 36, 0.06); }
.callout.warn svg { color: var(--amber); }
.callout.ok { border-color: rgba(52, 211, 153, 0.3); background: rgba(52, 211, 153, 0.06); }
.callout.ok svg { color: var(--green); }
.callout b { color: var(--text); }

.terminal {
  margin-top: 16px;
  border-radius: 14px; border: 1px solid var(--line);
  background: #03050a;
  font-family: var(--font-mono); font-size: 0.8rem; line-height: 1.7;
  overflow: hidden;
}
.terminal-bar { display: flex; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: rgba(148, 163, 184, 0.04); }
.terminal-bar i { width: 10px; height: 10px; border-radius: 50%; background: #334155; }
.terminal-bar span { margin-left: 8px; color: var(--muted); font-size: 0.72rem; }
.terminal pre { margin: 0; padding: 14px 16px; overflow-x: auto; color: var(--text-2); white-space: pre; }
.terminal .ok { color: var(--green); }
.terminal .dim { color: #56627a; }
.terminal .hl { color: var(--cyan); }

.tips-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.tip .icon-box { margin-bottom: 16px; }
.tip h3 { font-size: 1.1rem; }

/* ---------- Register page ---------- */
.auth-wrap { min-height: 100dvh; display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 960px) { .auth-wrap { grid-template-columns: minmax(0, 1fr); } .auth-aside { display: none; } }
.auth-aside {
  position: relative; overflow: hidden;
  padding: 48px clamp(32px, 5vw, 72px);
  display: flex; flex-direction: column; justify-content: space-between;
  border-right: 1px solid var(--line);
  background:
    radial-gradient(70% 60% at 30% 20%, rgba(59, 130, 246, 0.22), transparent 70%),
    radial-gradient(60% 60% at 80% 90%, rgba(34, 211, 238, 0.12), transparent 70%),
    var(--bg-2);
}
.auth-aside h2 { font-size: clamp(2rem, 3.4vw, 2.8rem); margin-top: 24px; }
.auth-aside .check-list { margin-top: 32px; }
.auth-main { display: flex; flex-direction: column; padding: 32px var(--gutter); }
.auth-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.auth-card { width: 100%; max-width: 480px; margin: auto; padding-block: 40px; }
.auth-card h1 { font-size: clamp(2rem, 4vw, 2.6rem); }
.auth-card .lead { color: var(--text-2); margin-top: 12px; }
.auth-steps { display: flex; gap: 8px; margin: 24px 0; }
.auth-steps span {
  flex: 1; font-size: 0.75rem; color: var(--muted); font-family: var(--font-mono);
  padding-top: 10px; border-top: 2px solid var(--line-strong);
}
.auth-steps span.on { color: var(--text); border-top-color: var(--cyan); }
.auth-footer-links { margin-top: 24px; color: var(--muted); font-size: 0.9rem; text-align: center; }
.auth-footer-links a { color: var(--text-2); }
.auth-footer-links a:hover { color: var(--cyan); }
.success-box { text-align: center; }
.success-box[hidden] { display: none; }
.success-box .icon-box { margin: 0 auto 20px; width: 64px; height: 64px; border-radius: 20px; color: var(--green); background: rgba(52, 211, 153, 0.1); border-color: rgba(52, 211, 153, 0.35); }
.success-box .icon-box svg { width: 30px; height: 30px; }
.success-box h2 { font-size: 1.8rem; }
.success-box p { color: var(--text-2); margin-top: 12px; }
.success-box .actions { display: grid; gap: 10px; margin-top: 28px; }
.success-box #post-payment-actions { display: grid; gap: 10px; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: 0.08s; }
.js .reveal[data-delay="2"] { transition-delay: 0.16s; }
.js .reveal[data-delay="3"] { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } }

/* ---------- Misc ---------- */
.grid-2 { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .grid-2 { grid-template-columns: minmax(0, 1fr); } }
.mt-0 { margin-top: 0 !important; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.center { text-align: center; }
.back-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all 0.3s var(--ease);
  background: rgba(10, 14, 26, 0.9);
}
.back-top.is-visible { opacity: 1; visibility: visible; transform: none; }

@media (max-width: 520px) {
  .hud-mini .hud-glass { gap: 12px; padding: 12px 14px; }
  .hud-glass b { font-size: 1.35rem; white-space: nowrap; }
  .hud-glass svg { width: 26px; height: 26px; }
  .aa-phone { width: 52px; height: 96px; }
  .aa-car { height: 76px; }
}

@media (max-width: 960px) {
  .nav.is-open { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav-menu { background: var(--bg); backdrop-filter: none; }
}

@media (max-width: 420px) {
  .hud-glass .sep, .hud-glass > div:last-child { display: none; }
}

.hero-logo { width: clamp(280px, 36vw, 460px); height: auto; margin: -32px auto 12px; }

/* ---------- Fine print / legal ---------- */
.fineprint {
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.6;
}
.fineprint a { color: var(--text-2); text-decoration: underline; text-underline-offset: 2px; }
.fineprint a:hover { color: var(--cyan); }
.fineprint b { color: var(--text-2); font-weight: 600; }

.hero-sub {
  margin: 18px auto 0;
  max-width: 660px;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-legal {
  margin-top: 40px; padding-top: 24px;
  border-top: 1px solid var(--line);
  display: grid; gap: 10px;
}
.footer-legal h4 { margin-bottom: 4px; }
.footer-legal p { color: var(--muted); font-size: 0.8125rem; max-width: 900px; line-height: 1.6; }

.legal-page { max-width: 780px; }
.legal-page h2 {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  margin: 36px 0 12px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.legal-page h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 8px; }
.legal-page p, .legal-page li { color: var(--text-2); }
.legal-page a { color: var(--cyan); }

/* ---------- Account page ---------- */
.account-main { padding: calc(var(--nav-h) + 40px) 0 80px; min-height: 100dvh; }
.account-banner { margin-bottom: 28px; }
.account-login-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 900px) { .account-login-grid { grid-template-columns: minmax(0, 1fr); } .account-intro .logo-full { display: none; } }
.account-intro h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.account-intro .lead { color: var(--text-2); margin-top: 14px; max-width: 520px; }
.account-card h3 { margin-bottom: 8px; }
.account-card > p { color: var(--text-2); font-size: 0.95rem; }
.account-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 32px; }
.account-head h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.license-pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--surface); font-weight: 600; font-size: 0.925rem;
}
.license-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); }
.license-pill[data-state="active"] .license-dot { background: var(--green); box-shadow: 0 0 10px var(--green); }
.license-pill[data-state="pending"] .license-dot { background: var(--amber); box-shadow: 0 0 10px var(--amber); }
.license-pill[data-state="expired"] .license-dot, .license-pill[data-state="blocked"] .license-dot { background: var(--red); box-shadow: 0 0 10px var(--red); }
.account-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.account-grid .span-2 { grid-column: span 2; }
@media (max-width: 860px) { .account-grid { grid-template-columns: minmax(0, 1fr); } .account-grid .span-2 { grid-column: auto; } }
.kv { display: grid; gap: 10px; margin: 16px 0 0; }
.kv div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.kv dt { color: var(--muted); font-size: 0.9rem; }
.kv dd { margin: 0; font-weight: 600; text-align: right; }
.dl-list { display: grid; gap: 10px; }
.dl-row {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface);
  color: var(--text); transition: border-color 0.2s, background 0.2s;
}
.dl-row:hover:not([disabled]) { border-color: var(--line-strong); background: var(--surface-2); }
.dl-row[disabled] { opacity: 0.45; cursor: not-allowed; }
.dl-row .icon-box { margin: 0; width: 40px; height: 40px; border-radius: 12px; flex: none; }
.dl-row .icon-box svg { width: 20px; height: 20px; }
.dl-row .dl-body { flex: 1; min-width: 0; display: grid; }
.dl-row .dl-body b { font-weight: 600; }
.dl-row .dl-body small { color: var(--muted); font-size: 0.72rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-row .dl-action { font-family: var(--font-mono); font-size: 0.75rem; color: var(--cyan); padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(34, 211, 238, 0.3); }
.dl-row.is-busy .dl-action { opacity: 0.5; }
.plan-row { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .plan-row { grid-template-columns: minmax(0, 1fr); } }
.plan-opt {
  display: grid; gap: 4px; text-align: left; padding: 18px; border-radius: 16px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  transition: border-color 0.2s, transform 0.25s var(--ease), background 0.2s;
}
.plan-opt:hover:not([disabled]) { border-color: rgba(59, 130, 246, 0.5); transform: translateY(-2px); background: var(--surface-2); }
.plan-opt[disabled] { opacity: 0.6; cursor: wait; }
.plan-opt b { font-family: var(--font-display); font-size: 1.05rem; }
.plan-opt .plan-price { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--text); }
.plan-opt small { color: var(--muted); }
.plan-opt.is-current { border-color: rgba(52, 211, 153, 0.5); }
.plan-opt.is-current::after { content: "current plan"; font-family: var(--font-mono); font-size: 0.68rem; color: var(--green); text-transform: uppercase; letter-spacing: 0.08em; }
.btn.is-disabled { opacity: 0.5; cursor: not-allowed; }
.account-main [hidden], .nav-actions [hidden] { display: none !important; }
.account-loading { display: flex; align-items: center; gap: 12px; justify-content: center; color: var(--muted); padding: 80px 0; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-strong); border-top-color: var(--cyan); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- In-page checkout drawer (Stripe Elements in the site theme) ---------- */
.ck { position: fixed; inset: 0; z-index: 200; }
.ck[hidden] { display: none !important; }
.ck-backdrop { position: absolute; inset: 0; background: rgba(3, 5, 10, 0.72); backdrop-filter: blur(6px); opacity: 0; transition: opacity 0.3s var(--ease); }
.ck-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(520px, 100%);
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, #0b1020, #070a13 60%, var(--bg));
  border-left: 1px solid var(--line-strong);
  box-shadow: -30px 0 80px -20px rgba(0, 0, 0, 0.9), 0 0 60px -20px rgba(59, 130, 246, 0.35);
  transform: translateX(100%); transition: transform 0.36s var(--ease); outline: none;
}
.ck.is-open .ck-backdrop { opacity: 1; }
.ck.is-open .ck-panel { transform: none; }
.ck-head { display: flex; align-items: center; gap: 14px; padding: 20px 24px 16px; border-bottom: 1px solid var(--line); }
.ck-head img { width: 44px; height: auto; }
.ck-head > div { flex: 1; min-width: 0; }
.ck-eyebrow { margin: 0; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cyan); }
.ck-head h2 { margin: 2px 0 0; font-size: 1.15rem; }
.ck-close { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text-2); display: grid; place-items: center; cursor: pointer; }
.ck-close:hover { color: var(--text); border-color: var(--line-strong); }
.ck-close svg { width: 18px; height: 18px; }
.ck-body { flex: 1; overflow-y: auto; padding: 20px 24px; display: grid; gap: 22px; align-content: start; }
.ck-summary { display: grid; gap: 10px; padding: 16px 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.ck-line { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.ck-line b { display: block; font-weight: 600; }
.ck-line small { display: block; color: var(--muted); font-size: 0.8rem; margin-top: 2px; }
.ck-amt { font-family: var(--font-mono); font-size: 1rem; white-space: nowrap; }
.ck-discount .ck-amt { color: var(--green); }
.ck-total { padding-top: 10px; border-top: 1px solid var(--line); }
.ck-total .ck-amt { font-size: 1.35rem; font-weight: 600; color: var(--text); }
.ck-account { margin: 0; font-size: 0.8rem; color: var(--muted); }
.ck-promo-label { display: flex; align-items: center; gap: 8px; font-size: 0.875rem; color: var(--text-2); font-weight: 500; margin-bottom: 8px; }
.ck-promo-label svg { width: 16px; height: 16px; color: var(--cyan); }
.ck-promo-form { display: flex; gap: 8px; }
.ck-promo-form[hidden] { display: none; }
.ck-promo-form input {
  flex: 1; min-width: 0; min-height: 46px; padding: 10px 14px; border-radius: 12px;
  border: 1px solid var(--line-strong); background: var(--bg-2); color: var(--text); font: inherit; text-transform: uppercase; letter-spacing: 0.06em;
}
.ck-promo-form input::placeholder { color: #56627a; text-transform: none; letter-spacing: 0; }
.ck-promo-form input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.18); }
.ck-promo-applied { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 14px; border-radius: 12px; border: 1px solid rgba(52, 211, 153, 0.35); background: rgba(52, 211, 153, 0.08); color: var(--green); font-family: var(--font-mono); font-size: 0.9rem; }
.ck-promo-applied[hidden] { display: none; }
.ck-promo-applied svg { width: 16px; height: 16px; }
.ck-promo-applied button { margin-left: auto; background: none; border: 0; color: var(--muted); font: inherit; font-size: 0.8rem; cursor: pointer; text-decoration: underline; }
/* ---------- dealer programme (dealer-register.html, dealer.html) ---------- */
.dealer-reg-grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.dealer-intro { position: sticky; top: calc(var(--nav-h) + 24px); }
.dealer-intro h1 { font-size: clamp(2rem, 4.2vw, 3rem); margin: 10px 0 14px; }
.dealer-reg-card h3 { font-size: 1.05rem; margin: 0; color: var(--text); }
.dealer-reg-card [hidden] { display: none !important; }
.dealer-tier-table { display: grid; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.dealer-tier-table > div { display: grid; grid-template-columns: 1.3fr 0.8fr 1fr; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 0.9rem; color: var(--text-2); font-variant-numeric: tabular-nums; }
.dealer-tier-table > div:first-child { border-top: 0; }
.dealer-tier-table b { color: var(--cyan); }
.dealer-tier-table .dealer-tier-head { background: rgba(148, 163, 184, 0.06); color: var(--muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; }
.dealer-tier-table .is-current { background: rgba(59, 130, 246, 0.12); color: var(--text); box-shadow: inset 3px 0 0 var(--blue); }
.dealer-models { border: 0; padding: 0; margin: 0; min-width: 0; }
.dealer-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px 14px; }
.dealer-checks label, .dealer-accept { display: flex; align-items: flex-start; gap: 10px; color: var(--text-2); font-size: 0.925rem; cursor: pointer; }
.dealer-checks input[type="checkbox"], .dealer-accept input[type="checkbox"] {
  -webkit-appearance: checkbox; appearance: auto; width: 18px; height: 18px; min-height: 0; padding: 0; margin: 2px 0 0;
  border: 0; border-radius: 4px; background: none; box-shadow: none; accent-color: var(--blue); flex: none;
}
.dealer-checks label { align-items: center; }
.dealer-checks input[type="checkbox"] { margin-top: 0; }
.dealer-accept a { color: var(--cyan); }
.dealer-state { max-width: 560px; margin: 0 auto; text-align: center; }
.dealer-state .icon-box { margin: 0 auto 18px; }
.dealer-state h2 { font-size: 1.6rem; }
.dealer-state-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.dealer-head-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dealer-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.dealer-stat { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(148, 163, 184, 0.045); display: grid; gap: 6px; align-content: start; }
.dealer-stat small { color: var(--muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }
.dealer-stat b { font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, 2rem); color: var(--text); font-variant-numeric: tabular-nums; }
.dealer-strike { color: var(--muted); text-decoration: line-through; font-size: 0.85rem; }
.dealer-progress { height: 6px; border-radius: 99px; background: rgba(148, 163, 184, 0.15); overflow: hidden; margin-top: 4px; }
.dealer-progress span { display: block; height: 100%; width: 0; background: var(--grad, var(--blue)); border-radius: inherit; transition: width 0.4s ease; }
.dealer-qty { display: grid; grid-template-columns: 48px 1fr 48px; gap: 8px; }
.dealer-qty input { text-align: center; font-size: 1.15rem; font-weight: 600; }
.dealer-qty .btn { min-height: 48px; padding: 0; font-size: 1.2rem; }
.dealer-quick { display: flex; flex-wrap: wrap; gap: 6px; }
.dealer-quick button { font: inherit; font-size: 0.8rem; color: var(--text-2); background: transparent; border: 1px solid var(--line); border-radius: 99px; padding: 4px 12px; cursor: pointer; }
.dealer-quick button:hover { border-color: var(--line-strong); color: var(--text); }
.dealer-card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.dealer-search { min-width: 220px; }
.dealer-table-wrap { overflow-x: auto; }
.dealer-table { width: 100%; border-collapse: collapse; font-size: 0.925rem; }
.dealer-table th { text-align: left; font-weight: 500; color: var(--muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.dealer-table td { padding: 12px 10px; border-bottom: 1px solid var(--line); color: var(--text-2); vertical-align: middle; }
.dealer-table td b { color: var(--text); font-weight: 600; }
.dealer-table td small { display: block; color: var(--muted); font-size: 0.8rem; margin-top: 2px; }
.dealer-table .right { text-align: right; }
.dealer-actions { white-space: nowrap; }
.dealer-actions .btn { margin: 3px 0 3px 6px; }
.dealer-badge { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 99px; font-size: 0.72rem; text-transform: capitalize; border: 1px solid var(--line-strong); color: var(--muted); }
.dealer-badge.is-expired, .dealer-badge.is-blocked { color: #fecaca; border-color: rgba(248, 113, 113, 0.4); }
.dealer-empty { padding: 18px 10px; }
.dealer-empty[hidden] { display: none; }
@media (max-width: 960px) {
  .dealer-reg-grid { grid-template-columns: 1fr; }
  .dealer-intro { position: static; }
  .dealer-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .dealer-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .dealer-stat { padding: 14px; }
  .dealer-table thead { display: none; }
  .dealer-table tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .dealer-table td { border: 0; padding: 0; }
  .dealer-table td.right { grid-column: 1 / -1; text-align: left; white-space: normal; }
  .dealer-actions .btn { margin: 6px 6px 0 0; }
  .dealer-tier-table > div { grid-template-columns: 1fr 0.7fr 0.9fr; padding: 9px 10px; font-size: 0.85rem; }
}
/* ---------- licence texts (third-party.html) ---------- */
.license-text { margin: 12px 0; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(148, 163, 184, 0.04); }
.license-text summary { cursor: pointer; padding: 12px 16px; font-weight: 600; color: var(--text); }
.license-text pre { margin: 0; padding: 0 16px 16px; white-space: pre-wrap; word-break: break-word; font-family: var(--font-mono); font-size: 0.78rem; line-height: 1.55; color: var(--text-2); }
/* ---------- sign in with your phone (QR) ---------- */
.qr-signin-or { display: flex; align-items: center; gap: 12px; margin: 4px 0 2px; color: var(--muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; }
.qr-signin-or::before, .qr-signin-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.qr-signin-open svg { width: 18px; height: 18px; }
.qr-signin-open[hidden], .qr-signin-panel[hidden] { display: none; }
.qr-signin-panel { margin-top: 12px; padding: 18px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(148, 163, 184, 0.045); text-align: center; }
.qr-signin-lead { margin: 0 0 14px; color: var(--text-2); font-size: 0.925rem; }
.qr-signin-code { display: grid; place-items: center; width: min(240px, 100%); aspect-ratio: 1; margin: 0 auto; padding: 10px; border-radius: 14px; background: #fff; transition: opacity 0.2s ease; }
.qr-signin-code svg { display: block; width: 100%; height: 100%; }
.qr-signin-code .spinner { border-color: #cbd5e1; border-top-color: var(--blue); }
.qr-signin-code.is-expired { opacity: 0.18; }
.qr-signin-code.is-done { opacity: 0.35; }
.qr-signin-status { margin: 14px 0 0; font-size: 0.9rem; color: var(--text-2); font-variant-numeric: tabular-nums; }
.qr-signin-status.is-success { color: var(--green); }
.qr-signin-status.is-error { color: var(--red); }
.qr-signin-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; }
.qr-signin-actions .btn[hidden] { display: none; }
.qr-signin-actions svg { width: 16px; height: 16px; }
/* phone confirmation page (qr-login.html) */
.qr-approve { max-width: 480px; margin: 0 auto; }
.qr-approve h1 { font-size: clamp(1.7rem, 6vw, 2.4rem); margin-bottom: 20px; }
.qr-approve .account-loading { padding: 8px 0; }
.qr-approve [hidden] { display: none !important; }
.qr-approve-device { display: flex; gap: 14px; align-items: center; margin: 18px 0; padding: 16px; border-radius: var(--radius); border: 1px solid var(--line-strong); background: var(--bg-2); }
.qr-approve-device svg { width: 30px; height: 30px; flex: none; color: var(--cyan); }
.qr-approve-device b { display: block; color: var(--text); }
.qr-approve-device small { display: block; color: var(--muted); font-size: 0.85rem; margin-top: 2px; }
.qr-approve-who { color: var(--text-2); font-size: 0.925rem; margin: 0 0 16px; }
.qr-approve-who b { color: var(--text); }
.qr-approve-who a { color: var(--cyan); }
.qr-approve .btn + .btn { margin-top: 10px; }
.qr-approve-state { text-align: center; }
.qr-approve-state > svg { width: 44px; height: 44px; margin: 0 auto 12px; display: block; color: var(--green); }
.qr-approve-state.is-error > svg { color: var(--red); }
.ck-pay { position: relative; min-height: 120px; }
.ck-express { margin: 0 0 18px; padding: 14px; border-radius: 14px; border: 1px solid rgba(148, 163, 184, 0.13); background: rgba(148, 163, 184, 0.045); }
.ck-express[hidden] { display: none; }
.ck-express-label { margin: 0 0 10px; font-size: 0.875rem; font-weight: 500; color: var(--text-2); }
.ck-or { display: flex; align-items: center; gap: 12px; margin: 16px -14px -2px; padding: 0 14px; color: var(--muted); font-size: 0.8rem; }
.ck-or::before, .ck-or::after { content: ""; flex: 1; height: 1px; background: rgba(148, 163, 184, 0.18); }
.ck-loading { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 0.925rem; padding: 12px 0; }
.ck-loading[hidden] { display: none; }
.ck-msg { margin: 10px 0 0; font-size: 0.9rem; color: var(--text-2); }
.ck-msg[hidden] { display: none; }
.ck-msg.is-error { color: var(--red); }
.ck-msg.is-loading { color: var(--muted); }
.ck-foot { padding: 16px 24px calc(20px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(5, 7, 13, 0.7); backdrop-filter: blur(10px); }
.ck-foot .btn svg { width: 18px; height: 18px; }
.ck-foot .fineprint { margin: 12px 0 0; font-size: 0.72rem; }
@media (max-width: 600px) {
  .ck-panel { width: 100%; border-left: 0; }
  .ck-head { padding: 16px 18px 12px; }
  .ck-body { padding: 16px 18px; gap: 18px; }
  .ck-foot { padding-left: 18px; padding-right: 18px; }
}
@media (prefers-reduced-motion: reduce) { .ck-panel, .ck-backdrop { transition: none; } }

/* ===== Location — send to car ===== */
.loc-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 20px; align-items: start; margin-top: 28px; }
.loc-side { display: grid; gap: 20px; }
.loc-map-wrap { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-strong); background: #0b1020; }
#loc-map { height: clamp(320px, 52vh, 460px); width: 100%; z-index: 0; }
#loc-map .leaflet-tile-pane { filter: brightness(0.82) contrast(1.05) saturate(0.85); }
#loc-map .leaflet-control-attribution { font-size: 11px; background: rgba(5, 7, 13, 0.72); color: var(--muted); }
#loc-map .leaflet-control-attribution a { color: var(--cyan); }
#loc-map .leaflet-bar a { background: #0f1526; color: var(--text); border-color: var(--line-strong); }
#loc-map .leaflet-bar a:hover { background: #1a2238; }
.loc-locate { position: absolute; right: 12px; bottom: 28px; z-index: 500; background: rgba(5, 7, 13, 0.86); border: 1px solid var(--line-strong); color: var(--text); backdrop-filter: blur(6px); }
.loc-locate svg { width: 16px; height: 16px; }
.loc-coords { margin: 10px 2px 0; font-size: 13px; color: var(--muted); }
.loc-live { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green); }
.loc-live span { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6); animation: loc-pulse 1.8s infinite; }
@keyframes loc-pulse { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); } 70% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }
.loc-queue { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.loc-queue:empty { display: none; }
.loc-queue li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.loc-queue li > div:first-child { display: grid; gap: 2px; min-width: 0; }
.loc-queue li b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.loc-queue small { color: var(--muted); font-size: 12px; }
.loc-queue-actions { display: flex; gap: 6px; flex-shrink: 0; }
.loc-empty[hidden] { display: none; }
.loc-empty { margin: 14px 0 0; }
.loc-steps { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 10px; color: var(--muted); }
.loc-steps b { color: var(--text); }
.loc-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; z-index: 1000; padding: 12px 20px; border-radius: 999px; background: rgba(15, 21, 38, 0.95); border: 1px solid rgba(52, 211, 153, 0.5); color: var(--text); box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.7); transition: opacity 0.25s var(--ease), transform 0.25s var(--ease); max-width: calc(100vw - 32px); text-align: center; }
.loc-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.leaflet-container { font-family: var(--font-body); }
@media (max-width: 900px) {
  .loc-grid { grid-template-columns: 1fr; }
  .loc-queue li { flex-wrap: wrap; }
}

/* ===== Documents / manuals ===== */
.doc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.doc-tile { display: flex; align-items: center; gap: 16px; padding: 18px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); color: var(--text); text-decoration: none; text-align: left; font: inherit; cursor: pointer; transition: border-color 0.2s var(--ease), transform 0.2s var(--ease); }
a.doc-tile:hover { border-color: var(--cyan); transform: translateY(-2px); }
.doc-tile .icon-box { flex-shrink: 0; }
.doc-tile b { display: block; font-family: var(--font-display); font-size: 17px; }
.doc-tile small { display: block; color: var(--muted); margin-top: 2px; }
.doc-tile > svg { width: 18px; height: 18px; margin-left: auto; color: var(--muted); flex-shrink: 0; }
.doc-tile.is-soon { cursor: default; opacity: 0.6; }
.doc-badge { margin-left: auto; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted); white-space: nowrap; }
@media (max-width: 700px) { .doc-grid { grid-template-columns: 1fr; } }

.man-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.man-top h1 { font-size: clamp(26px, 4vw, 40px); margin: 4px 0 6px; }
.man-top .eyebrow a { color: inherit; text-decoration: none; }
.man-edition { margin: 0; font-size: 14px; }
.man-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 22px; margin-top: 26px; align-items: start; }
.man-side { position: sticky; top: calc(var(--nav-h) + 16px); max-height: calc(100vh - var(--nav-h) - 32px); overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(10, 14, 26, 0.72); overscroll-behavior: contain; }
.man-side-inner { padding: 14px; }
.man-search { display: flex; align-items: center; gap: 8px; padding: 0 12px; height: 42px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: rgba(5, 7, 13, 0.6); }
.man-search:focus-within { border-color: var(--cyan); }
.man-search svg { width: 16px; height: 16px; color: var(--muted); flex-shrink: 0; }
.man-search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--text); font: inherit; font-size: 14px; }
.man-nav-home { display: block; margin: 14px 4px 6px; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.man-nav-home:hover { color: var(--cyan); }
.man-nav, .man-nav-secs { list-style: none; margin: 0; padding: 0; }
.man-nav-ch-btn { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 8px; border: 0; border-radius: 10px; background: none; color: var(--text); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.man-nav-ch-btn:hover { background: rgba(148, 163, 184, 0.08); }
.man-nav-ch.is-current > .man-nav-ch-btn { background: var(--grad-soft); }
.man-nav-num { font-family: var(--font-mono); font-size: 11px; color: var(--cyan); width: 20px; flex-shrink: 0; }
.man-nav-t { flex: 1; }
.man-nav-ch-btn svg { width: 14px; height: 14px; color: var(--muted); transition: transform 0.2s var(--ease); flex-shrink: 0; }
.man-nav-ch.is-open .man-nav-ch-btn svg { transform: rotate(90deg); }
.man-nav-secs { margin: 2px 0 8px 18px; border-left: 1px solid var(--line); }
.man-nav-secs a { display: block; padding: 5px 10px 5px 14px; font-size: 13px; line-height: 1.35; color: var(--muted); text-decoration: none; border-left: 2px solid transparent; margin-left: -1px; }
.man-nav-secs a:hover { color: var(--text); }
.man-nav-secs a.is-current { color: var(--cyan); border-left-color: var(--cyan); }

.man-content { padding: clamp(18px, 3vw, 36px); min-width: 0; }
.man-content h2 { font-size: clamp(24px, 3vw, 34px); margin: 4px 0 14px; }
.man-lead { color: var(--muted); margin-top: 0; }
.man-ch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-top: 18px; }
.man-ch-card { display: flex; flex-direction: column; gap: 4px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); text-decoration: none; transition: border-color 0.2s var(--ease), transform 0.2s var(--ease); }
.man-ch-card:hover { border-color: var(--cyan); transform: translateY(-2px); }
.man-ch-num { font-family: var(--font-mono); font-size: 12px; color: var(--cyan); }
.man-ch-card b { font-family: var(--font-display); font-size: 16px; }
.man-ch-card small { color: var(--muted); }
.man-ch-head { border-bottom: 1px solid var(--line); padding-bottom: 18px; margin-bottom: 8px; }
.man-toc { columns: 2; column-gap: 28px; list-style: none; padding: 0; margin: 0; font-size: 14px; }
.man-toc li { break-inside: avoid; padding: 3px 0; }
.man-toc a { color: var(--muted); text-decoration: none; }
.man-toc a:hover { color: var(--cyan); }
.man-sec { padding-top: 26px; scroll-margin-top: calc(var(--nav-h) + 16px); }
.man-sec + .man-sec { border-top: 1px solid var(--line); margin-top: 18px; }
.man-sec h3 { font-size: 21px; margin: 0 0 12px; }
.man-sec p { margin: 10px 0; line-height: 1.65; }
.man-list { margin: 10px 0; padding-left: 20px; line-height: 1.6; }
.man-list li { margin: 5px 0; }
.man-list li::marker { color: var(--cyan); }
.man-steps { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 10px; }
.man-steps li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.6; }
.man-step-n { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #05070d; font-weight: 700; font-size: 13px; margin-top: 1px; }
.man-mark span { display: inline-block; min-width: 26px; padding: 1px 6px; margin-right: 8px; border-radius: 4px; background: #ff475b; color: #fff; font-family: var(--font-mono); font-size: 12px; text-align: center; }
.man-fig { margin: 16px 0; }
.man-fig-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 16px 0; align-items: start; }
.man-fig-row .man-fig { margin: 0; }
.man-fig-row .man-fig img { max-width: 100% !important; }
.man-zoom { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; max-width: 100%; }
.man-fig img { display: block; width: 100%; height: auto; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.man-fig.is-table img { border-radius: 8px; }
.man-icon-row { display: flex; gap: 14px; align-items: center; margin: 10px 0; }
.man-icon-row p { margin: 0; }
.man-icon { width: auto; height: 34px; max-width: 64px; border-radius: 6px; background: #fff; padding: 3px; flex-shrink: 0; }
.man-note { margin: 16px 0; padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid rgba(34, 211, 238, 0.35); background: rgba(34, 211, 238, 0.06); }
.man-note.is-warn { border-color: rgba(248, 113, 113, 0.45); background: rgba(248, 113, 113, 0.07); }
.man-note-t { display: flex; align-items: center; gap: 8px; margin: 0 0 6px !important; font-weight: 700; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cyan); }
.man-note.is-warn .man-note-t { color: var(--red); }
.man-note-t svg { width: 17px; height: 17px; }
.man-note ul { margin: 0; padding-left: 18px; }
.man-note li { margin: 5px 0; line-height: 1.55; }
.man-note p { margin: 0; line-height: 1.55; }
.man-pager { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); }
.man-results { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.man-results a { display: grid; gap: 3px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); text-decoration: none; }
.man-results a:hover { border-color: var(--cyan); }
.man-results small { color: var(--cyan); font-size: 12px; }
.man-results span { color: var(--muted); font-size: 14px; }
.man-copy { margin-bottom: 4px; }
.man-menu-btn { display: none; position: fixed; right: 16px; bottom: 16px; z-index: 60; box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.7); }
.man-menu-btn svg { width: 16px; height: 16px; }
.man-scrim { display: none; }
.man-lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(3, 5, 10, 0.92); display: grid; place-items: center; padding: 20px; cursor: zoom-out; }
.man-lightbox[hidden] { display: none; }
.man-lightbox img { max-width: 100%; max-height: 100%; border-radius: 10px; background: #fff; }
.man-lightbox-close { position: absolute; top: 14px; right: 14px; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(15, 21, 38, 0.9); color: var(--text); display: grid; place-items: center; cursor: pointer; }
.man-lightbox-close svg { width: 18px; height: 18px; }
@media (max-width: 960px) {
  .man-layout { grid-template-columns: minmax(0, 1fr); }
  body.man-ready .man-menu-btn { display: inline-flex; }
  .man-side { position: fixed; top: 0; bottom: 0; left: 0; width: min(86vw, 340px); max-height: none; z-index: 80; border-radius: 0 var(--radius) var(--radius) 0; background: #0a0e1a; transform: translateX(-104%); transition: transform 0.25s var(--ease); }
  .man-drawer-open .man-side { transform: none; }
  .man-drawer-open .man-scrim { display: block; position: fixed; inset: 0; z-index: 70; background: rgba(3, 5, 10, 0.6); }
  .man-toc { columns: 1; }
}
@media (max-width: 600px) {
  .man-fig-row { grid-template-columns: 1fr; }
  .man-content { padding: 16px; }
}

/* ===== Manuals: workshop manual additions ===== */
.man-steps li > div { flex: 1; min-width: 0; }
.man-steps li > div > p { margin: 0 0 6px; }
.man-steps li > div > .man-fig { margin: 8px 0 12px; }
.man-sp { margin-left: 38px !important; }
.man-h4 { font-size: 16px; margin: 22px 0 8px; color: var(--cyan); letter-spacing: 0.01em; }
.man-topic h2 { font-size: clamp(22px, 2.6vw, 30px); margin: 6px 0 14px; }
.man-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); }
.man-crumbs a { color: var(--cyan); text-decoration: none; }
.man-toc-groups { margin-top: 10px; }
.man-toc-g { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cyan); margin: 22px 0 6px; }
.man-toc-list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 28px; font-size: 14px; }
.man-toc-list li { break-inside: avoid; padding: 3px 0; }
.man-toc-list a { color: var(--muted); text-decoration: none; }
.man-toc-list a:hover { color: var(--text); }
.man-nav-g { list-style: none; padding: 10px 10px 3px 14px; font-size: 11px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--cyan); opacity: 0.8; }
.man-loading { display: flex; align-items: center; gap: 10px; color: var(--muted); padding: 20px 0; }
.man-tbl { overflow-x: auto; margin: 14px 0; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.man-tbl table { width: 100%; border-collapse: collapse; font-size: 13.5px; line-height: 1.45; }
.man-tbl th, .man-tbl td { padding: 8px 10px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.man-tbl th { background: rgba(34, 211, 238, 0.08); color: var(--text); font-weight: 600; }
.man-tbl tr:last-child td { border-bottom: 0; }
.man-tbl td + td, .man-tbl th + th { border-left: 1px solid var(--line); }
.man-dia img { max-width: 100%; background: #fff; }
.man-dia figcaption { margin-top: 6px; font-size: 13px; }
.man-dia figcaption a { color: var(--cyan); }
.man-lightbox.is-diagram { overflow: auto; place-items: start center; }
.man-lightbox.is-diagram img { cursor: zoom-in; max-height: none; }
.man-lightbox.is-diagram.is-zoom { place-items: start start; }
.man-lightbox.is-diagram.is-zoom img { max-width: none; width: 260%; cursor: zoom-out; }
@media (max-width: 960px) { .man-toc-list { columns: 1; } }
.man-pager .btn { max-width: 48%; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; }
@media (max-width: 600px) { .man-pager .btn { max-width: 100%; } }

/* ===== Dealer programme teaser (public page, no prices) ===== */
.dealer-teaser { padding: 18px 20px; border: 1px solid rgba(34, 211, 238, 0.35); border-radius: var(--radius); background: var(--grad-soft); }
.dealer-teaser p { margin: 0 0 14px; }
.dealer-teaser-actions { display: flex; flex-wrap: wrap; gap: 10px; }
#dealer-form { scroll-margin-top: calc(var(--nav-h) + 16px); }

/* ==== i18n START ==== */
/* ===== Languages: switch in the header, loading state, Arabic / RTL ===== */
html.i18n-pending body { opacity: 0; }
.brand-group { display: flex; align-items: center; gap: 10px; flex: none; min-width: 0; }
.lang-switch { position: relative; flex: none; }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font: inherit; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; cursor: pointer; transition: border-color 0.2s; }
.lang-btn:hover, .lang-btn[aria-expanded="true"] { border-color: var(--cyan); }
.lang-btn svg { width: 16px; height: 16px; color: var(--cyan); }
.lang-menu { position: absolute; top: calc(100% + 8px); inset-inline-start: 0; min-width: 170px; list-style: none; margin: 0; padding: 6px; background: rgba(10, 14, 26, 0.98); border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.7); z-index: 200; }
.lang-menu[hidden] { display: none; }
.lang-menu button { display: block; width: 100%; text-align: start; padding: 9px 12px; border: 0; border-radius: 8px; background: none; color: var(--text-2, var(--text)); font: inherit; font-size: 14px; cursor: pointer; }
.lang-menu button:hover { background: var(--surface-2, rgba(148, 163, 184, 0.08)); color: var(--text); }
.lang-menu button[aria-checked="true"] { color: var(--cyan); font-weight: 600; }
.lang-switch.is-floating { position: fixed; top: 14px; inset-inline-start: 14px; z-index: 300; }
.i18n-legal-note { width: min(100% - 2 * var(--gutter), var(--container)); margin: calc(var(--nav-h) + 16px) auto -40px; padding: 10px 16px; border: 1px solid rgba(34, 211, 238, 0.35); border-radius: var(--radius-sm); background: rgba(34, 211, 238, 0.06); color: var(--text); font-size: 14px; position: relative; z-index: 2; }
@media (max-width: 480px) { .brand-group .brand-word { display: none; } }
html[lang="ar"] body { font-family: "Segoe UI", Tahoma, "Noto Sans Arabic", "Noto Naskh Arabic", var(--font-body); }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4, html[lang="ar"] .btn, html[lang="ar"] .eyebrow { font-family: "Segoe UI", Tahoma, "Noto Sans Arabic", var(--font-display); letter-spacing: 0; }
html[lang="ru"] h1, html[lang="de"] h1 { hyphens: auto; overflow-wrap: anywhere; }
[dir="rtl"] svg use[href="#i-arrow-right"], [dir="rtl"] svg use[href="#i-chevron-right"], [dir="rtl"] svg use[href="#i-chevron-left"] { transform: scaleX(-1); transform-origin: center; transform-box: fill-box; }
@media (min-width: 961px) and (max-width: 1440px) {
  .nav-links a { padding: 0 10px; font-size: 0.875rem; }
  .nav-menu { margin-inline-start: 16px; gap: 14px; }
}
@media (min-width: 961px) and (max-width: 1240px) {
  .brand-group .brand-word { display: none; }
  .nav-links a { padding: 0 8px; }
}
@media (min-width: 961px) and (max-width: 1120px) {
  .nav-links a { padding: 0 6px; font-size: 0.8125rem; }
  .nav-menu { margin-inline-start: 10px; gap: 10px; }
  .nav-actions { gap: 4px; }
  .nav-actions .btn { padding-inline: 12px; font-size: 0.8125rem; }
  .nav-actions .btn svg { display: none; }
}

/* English-only labels inside Arabic pages: resolve punctuation per paragraph */
html[dir="rtl"] .man-nav-t, html[dir="rtl"] .man-nav-secs, html[dir="rtl"] #man-title, html[dir="rtl"] #man-edition,
html[dir="rtl"] #man-copy, html[dir="rtl"] .man-crumbs, html[dir="rtl"] .man-ch-card b, html[dir="rtl"] .man-results b,
html[dir="rtl"] .man-results span, html[dir="rtl"] .man-results small, html[dir="rtl"] .man-pager a { unicode-bidi: plaintext; }

/* Translated pages: longer words and labels on small screens */
html:not([lang="en"]) h1, html:not([lang="en"]) h2, html:not([lang="en"]) h3 { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: anywhere; }
@media (max-width: 640px) {
  html:not([lang="en"]) .btn { white-space: normal; max-width: 100%; text-align: center; padding-block: 10px; line-height: 1.3; }
  html:not([lang="en"]) .btn svg { flex: none; }
  html:not([lang="en"]) .site-footer, html:not([lang="en"]) footer { overflow-wrap: anywhere; }
}
@media (max-width: 480px) { html[lang="de"] .hero h1, html[lang="ru"] .hero h1 { font-size: 1.95rem; } }
/* ==== i18n END ==== */

/* ---------- account: delete account ---------- */
.btn.btn-danger {
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.45);
  color: var(--red);
}
.btn.btn-danger:hover { background: rgba(248, 113, 113, 0.2); }
.form label.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--text-2);
  font-size: 0.925rem;
  cursor: pointer;
}
.form label.check input { margin-top: 3px; accent-color: var(--red); }
#delete-account .icon-box { color: var(--red); }
