/* ============================================================
   SEVEN TUNING — upgrade.css
   Premium additions: hero matrix, 3D logos, header badges,
   language dropdown, scroll-to-top, appointment modal,
   tuning glow, enriched DTC card, equipment grouping.
   Uses only design tokens from base.css — no hard colors.
   ============================================================ */

/* ---------- hero matrix canvas ---------- */
.hero__matrix {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  /* Was 0.7 — strong enough over the dark hero photo that it read as a
     second, semi-visible page/site layered behind the real content
     instead of a subtle background effect. */
  opacity: 0.38;
  pointer-events: none;
}
[data-theme='light'] .hero__matrix {
  opacity: 0.22;
}
@media (prefers-reduced-motion: reduce) {
  .hero__matrix { opacity: 0.18; }
}

/* ---------- 3D brand logos ---------- */
.hero__logos {
  position: absolute;
  top: clamp(var(--space-12), 8vw, var(--space-20));
  right: clamp(var(--space-6), 4vw, var(--space-12));
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: clamp(var(--space-3), 1.5vw, var(--space-5));
  perspective: 900px;
  z-index: 1;
  pointer-events: none;
}
.hero__logo {
  font-family: var(--mono, ui-monospace, Menlo, monospace);
  font-weight: 700;
  font-size: clamp(0.7rem, 0.6rem + 0.4vw, 0.95rem);
  letter-spacing: 0.14em;
  color: var(--text);
  padding: 0.55em 1em;
  border: 1px solid var(--accent-dim);
  border-radius: 10px;
  background: rgba(11, 13, 19, 0.72);
  backdrop-filter: blur(4px);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 0 1px var(--accent-glow);
  transform: rotateY(18deg) rotateX(6deg) translateZ(0);
  transform-style: preserve-3d;
  animation: logoFloat 7s ease-in-out infinite;
  text-shadow: 0 0 14px var(--accent-glow);
}
.hero__logo:nth-child(2) { animation-delay: -3.5s; }
[data-theme='light'] .hero__logo {
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-lg);
  text-shadow: none;
  color: var(--text);
}
@keyframes logoFloat {
  0%, 100% { transform: rotateY(18deg) rotateX(6deg) translateY(0); }
  50% { transform: rotateY(22deg) rotateX(2deg) translateY(-8px); }
}
@media (prefers-reduced-motion: reduce) { .hero__logo { animation: none; } }
@media (max-width: 860px) { .hero__logos { display: none; } }

/* ---------- hero tagline ---------- */
.hero__tagline {
  display: inline-block;
  margin-top: var(--space-4);
  padding: 0.35em 0.8em;
  border: 1px solid var(--accent-dim);
  border-radius: 999px;
  color: var(--accent);
  background: var(--accent-glow);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
}

/* ---------- header badges + phone ---------- */
.header__badges {
  display: inline-flex;
  gap: var(--space-2);
  flex: none;
}
.chip--badge {
  font-family: var(--mono, ui-monospace, Menlo, monospace);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  padding: 0.35em 0.7em;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--text-2);
  background: var(--surface-2);
  white-space: nowrap;
}
.site-bar__phone {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--text-2);
  text-decoration: none;
  margin-right: var(--space-4);
  flex: none;
  white-space: nowrap;
}
.site-bar__phone:hover { color: var(--accent); }
.site-bar__phone svg,
.site-bar__phone-ico {
  width: 18px;
  height: 18px;
  opacity: 1;
  color: var(--accent);
  flex: none;
  animation: site-phone-blink 1.35s ease-in-out infinite;
}
@keyframes site-phone-blink {
  0%, 100% {
    opacity: 1;
    filter: drop-shadow(0 0 6px var(--accent)) drop-shadow(0 0 14px color-mix(in oklab, var(--accent) 70%, transparent));
  }
  45% {
    opacity: 0.12;
    filter: drop-shadow(0 0 0 transparent);
  }
}
@media (prefers-reduced-motion: reduce) {
  .site-bar__phone svg {
    animation: none;
    opacity: 0.9;
  }
}
@media (max-width: 860px) { .header__badges { display: none; } }
@media (max-width: 720px) {
  .site-bar__status .type-caret {
    display: none;
  }
  .site-bar__status {
    min-width: 0;
    overflow: hidden;
  }
  .site-bar__phone span {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    font-size: 10px;
    letter-spacing: 0.04em;
    color: inherit;
  }
  .site-bar__phone {
    display: inline-flex;
    width: auto;
    height: 28px;
    padding: 0 8px;
    justify-content: center;
    align-items: center;
    margin-right: 0;
    margin-left: auto;
    flex-shrink: 0;
    border: 1px solid var(--border-strong);
    border-radius: var(--r-sm);
    gap: 6px;
  }
}
@media (max-width: 380px) {
  #barOnlineText {
    max-width: 9ch;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* ---------- language dropdown ---------- */
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  font-family: var(--mono, ui-monospace, Menlo, monospace);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  padding: 0.35em 0.6em;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--text-3);
  cursor: pointer;
}
.lang-btn svg { width: 12px; height: 12px; opacity: 0.7; }
.lang-btn:hover { color: var(--text-2); border-color: var(--border-strong); background: var(--surface); }
.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 200px;
  max-height: min(70vh, 420px);
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 6px;
  z-index: 60;
  display: grid;
  gap: 2px;
}
[dir='rtl'] .lang-menu { right: auto; left: 0; }
.lang-menu[hidden] { display: none; }
.lang-menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  width: 100%;
  text-align: left;
  padding: 0.5em 0.7em;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  font-size: var(--text-sm);
}
.lang-menu button:hover { background: var(--surface-2); color: var(--text); }
.lang-menu button[aria-selected='true'] { color: var(--accent); background: var(--accent-glow); }
.lang-menu button i { font-style: normal; opacity: 0.6; }
/* The header re-declares --surface to a near-transparent dark value while it
   floats over the hero photo (see css/parts.css "HERO IS ALWAYS DARK"). The
   language dropdown itself always renders over the page body though, so it
   must stay solidly opaque regardless of that ancestor override — otherwise
   in light theme it becomes a near-invisible, unreadable panel. */
[data-theme='light'] .lang-menu {
  background: #ffffff;
  border-color: rgba(15, 23, 32, 0.14);
  box-shadow: 0 18px 40px rgba(15, 23, 32, 0.18);
}
[data-theme='light'] .lang-menu button { color: #1c2530; }
[data-theme='light'] .lang-menu button:hover { background: rgba(15, 23, 32, 0.06); color: #0d1319; }
[data-theme='light'] .lang-menu button[aria-selected='true'] { color: #0284a8; background: rgba(2, 132, 168, 0.12); }
[data-theme='light'] .lang-menu button i { opacity: 0.55; }
#langSwitch,
#langFloat,
#langHead { position: relative; }

.theme-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 168px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 6px;
  z-index: 60;
  display: grid;
  gap: 2px;
}
.theme-menu[hidden] { display: none; }
.theme-menu button {
  display: flex;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 0.5em 0.7em;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  font-size: var(--text-sm);
}
.theme-menu button:hover { background: var(--surface-2); color: var(--text); }
.theme-menu button[aria-selected='true'] { color: var(--accent); background: var(--accent-glow); }
[data-theme='light'] .theme-menu {
  background: #ffffff;
  border-color: rgba(15, 23, 32, 0.14);
  box-shadow: 0 18px 40px rgba(15, 23, 32, 0.18);
}
[data-theme='light'] .theme-menu button { color: #1c2530; }
[data-theme='light'] .theme-menu button:hover { background: rgba(15, 23, 32, 0.06); color: #0d1319; }
[data-theme='light'] .theme-menu button[aria-selected='true'] { color: #0284a8; background: rgba(2, 132, 168, 0.12); }

.lang-float {
  display: none !important;
}

/* ---------- scroll-to-top ---------- */
.to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  /* desktop: above the 50px WhatsApp pill, not inside it */
  bottom: calc(clamp(1rem, 3vw, 2rem) + 50px + 12px + env(safe-area-inset-bottom, 0px));
  z-index: 71;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transition: transform 0.2s var(--ease-io, ease), opacity 0.2s;
}
.to-top:hover { transform: translateY(-3px); color: var(--accent); border-color: var(--accent-dim); }
.to-top svg { width: 20px; height: 20px; }
.to-top[hidden] { display: none; }
@media (max-width: 899px) {
  .to-top {
    right: max(6px, env(safe-area-inset-right, 0px));
    bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    width: 42px;
    height: 42px;
  }
}

/* ---------- appointment modal ----------
   Markup: .af > .af__head, .af__topic, form#afForm.af__form > label
   (each label wraps its own input), .af__row (2-up date/time),
   .af__acts (submit + close). Style the actual structure emitted by
   AFSpraak.html() in app.js — no .af__grid/.af__field wrapper exists. */
.af { display: grid; gap: var(--space-2); }
.af__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-2);
}
.af__head h3 {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-lg);
  font-weight: 700;
  margin: 0;
}
.af__topic {
  display: inline-block;
  margin-bottom: var(--space-4);
  padding: 0.3em 0.7em;
  border-radius: 999px;
  background: var(--accent-glow);
  color: var(--accent);
  width: fit-content;
}
.af__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
.af__form > label {
  display: grid;
  gap: 0.4em;
  font-size: var(--text-xs);
  color: var(--text-3);
  font-family: var(--mono, ui-monospace, Menlo, monospace);
  letter-spacing: 0.04em;
}
.af__form > label:has(#afSvc) { grid-column: 1 / -1; }
.af__form > label:has(#afPlate) { grid-column: 1 / -1; }
.af__row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
.af__row > label { display: grid; gap: 0.4em; font-size: var(--text-xs); color: var(--text-3); font-family: var(--mono, ui-monospace, Menlo, monospace); letter-spacing: 0.04em; }
.af__form input, .af__form select, .af__row input {
  width: 100%;
  padding: 0.65em 0.8em;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text);
  font-size: var(--text-sm);
  font-family: inherit;
  color-scheme: dark;
}
[data-theme='light'] .af__form input,
[data-theme='light'] .af__form select,
[data-theme='light'] .af__row input { color-scheme: light; }
.af__form input:focus, .af__form select:focus, .af__row input:focus {
  outline: none;
  border-color: var(--accent-dim);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.af__acts {
  grid-column: 1 / -1;
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-2);
}
.af__acts .btn--wa {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.85em 1.2em;
  font-weight: 700;
}
@media (max-width: 560px) {
  .af__form, .af__row { grid-template-columns: 1fr; }
}

/* ---------- tuning glow ---------- */
.grow__v--glow {
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.55), 0 0 22px var(--accent-glow);
  animation: twinPulse 2.4s ease-in-out infinite;
}
.grow__v--glow em { color: var(--accent); }
[data-theme='light'] .grow__v--glow { color: var(--text); text-shadow: 0 0 10px var(--accent-glow); }
@keyframes twinPulse {
  0%, 100% { text-shadow: 0 0 8px rgba(255, 255, 255, 0.4), 0 0 18px var(--accent-glow); }
  50% { text-shadow: 0 0 14px rgba(255, 255, 255, 0.75), 0 0 30px var(--accent-glow); }
}
@media (prefers-reduced-motion: reduce) { .grow__v--glow { animation: none; } }
.twin__est { margin-left: auto; }

/* ---------- enriched DTC card ----------
   The base .dtc-hit li is display:grid (14px bullet + 1fr text) —
   do not override li layout, only enrich headings, cost & spacing. */
.dtc-block { margin-top: var(--space-4); }
.dtc-block + .dtc-block { margin-top: var(--space-5); }
.dtc-block > h4,
.dtc-block > p {
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-family: var(--mono, ui-monospace, Menlo, monospace);
  margin-bottom: 6px;
}
.dtc-block .dtc-cost {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-2);
  padding: 0.5em 0.9em;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-weight: 700;
}

/* ---------- equipment grouping ---------- */
.tool--featured {
  grid-template-columns: 1fr;
  border: 1px solid var(--accent-dim);
  background: linear-gradient(145deg, var(--surface-2), var(--surface));
  box-shadow: 0 0 0 1px var(--accent-glow), 0 18px 40px -18px rgba(0, 0, 0, 0.5);
  position: relative;
}
.tool--featured .tool__chip {
  position: absolute;
  top: -10px;
  left: var(--space-4);
  padding: 0.25em 0.7em;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-family: var(--mono, ui-monospace, Menlo, monospace);
  text-transform: uppercase;
}
.tool--group {
  grid-template-columns: 1fr;
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px dashed var(--border-strong);
}

/* ============================================================
   UPGRADE v2 — premium polish additions
   ============================================================ */

/* Reset button pulses so it is obvious after a scan. */
#vitReset {
  animation: resetPulse 2.6s ease-in-out infinite;
}
@keyframes resetPulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow); border-color: var(--border-strong); }
  50% { box-shadow: 0 0 0 4px var(--accent-glow); border-color: var(--accent-dim); color: var(--accent); }
}
@media (prefers-reduced-motion: reduce) { #vitReset { animation: none; } }

/* Vehicle-report plate: real-sized Dutch EU plate (blue NL strip + number). */
.vid__plate {
  height: 46px;
  border: 1px solid rgba(0, 0, 0, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 4px 14px -6px rgba(0, 0, 0, 0.6);
}
.vid__plate__eu {
  width: 32px;
}
.vid__plate__eu .plate__stars {
  width: 15px;
  height: 15px;
}
.vid__plate__eu b {
  font-size: 10px;
}
.vid__plate__num {
  padding-inline: var(--space-4);
  font-size: clamp(1.05rem, 2.4vw, 1.4rem);
  letter-spacing: 0.18em;
}

/* Flagship tuner chip must not wrap/truncate. */
.tool--featured .tool__n { word-break: break-word; }
.tool--featured .tool__chip { white-space: nowrap; max-width: calc(100% - var(--space-4)); }

/* ---------- Light mode: garage lights on ----------
   Top scrim protects header + kicker/marquee readability while the mid/bottom
   of the photo brightens like garage lights turning on. */
[data-theme='light'] .hero__media img { filter: brightness(1.14) contrast(1.02) saturate(1.05); }
[data-theme='light'] .hero__media::after { background: linear-gradient(180deg, rgba(0,0,0,0.34) 0%, rgba(0,0,0,0.12) 30%, rgba(255,255,255,0.16) 68%, rgba(255,255,255,0.55) 100%); opacity: 1; }
[data-theme='light'] .hero__media::before { background: radial-gradient(120% 70% at 50% 6%, rgba(0,0,0,0.38), rgba(0,0,0,0) 55%); opacity: 1; }
/* Header must stay readable in light mode (hero extends up behind it). */
[data-theme='light'] .site-header { background: color-mix(in oklab, var(--bg) 86%, transparent); backdrop-filter: blur(18px) saturate(1.4); border-bottom-color: var(--divider); }
[data-theme='light'] .site-bar { background: var(--bg-deep); }

/* ---------- Hero 3D brand emblems (BMW + VAG only) ---------- */
.hero__logos {
  position: absolute;
  top: 12%;
  right: 4%;
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 22px);
  perspective: 900px;
  z-index: 4;
  pointer-events: none;
}
.hero__logo {
  display: grid;
  place-items: center;
  width: clamp(72px, 6vw, 88px);
  height: clamp(72px, 6vw, 88px);
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.22), rgba(8, 10, 14, 0.66));
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.8), inset 0 1px 1px rgba(255, 255, 255, 0.3);
  transform: rotateY(-18deg) rotateX(6deg);
  transform-style: preserve-3d;
  transition: transform 0.4s var(--ease);
}
.hero__logo svg { width: 78%; height: 78%; display: block; }
.hero__logo:hover { transform: rotateY(0) rotateX(0) scale(1.06); }
[data-theme='light'] .hero__logo {
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.55), rgba(20, 24, 32, 0.2));
  border-color: rgba(16, 19, 24, 0.12);
  box-shadow: var(--shadow-sm), inset 0 1px 1px rgba(255, 255, 255, 0.45);
  padding: 0;
  border-radius: 50%;
  text-shadow: none;
}
@media (max-width: 860px) {
  .hero__logos { top: calc(var(--header-h, 64px) + 6px); right: var(--space-3); bottom: auto; transform: none; gap: 10px; }
  .hero__logo { width: 52px; height: 52px; }
}

/* ---------- Brand marquee under location ---------- */
.hero__marquee {
  margin-top: var(--space-3);
  overflow: hidden;
  max-width: min(640px, 92vw);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.hero__marquee__track {
  display: inline-flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  animation: marquee 38s linear infinite;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  color: var(--text-2);
}
.hero__marquee__track i { color: var(--accent); margin: 0 0.7em; font-style: normal; }
@media (max-width: 860px) {
  .hero__marquee { max-width: 92vw; }
}
@media (prefers-reduced-motion: reduce) { .hero__marquee__track { animation: none; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Professor tags (doors): typewriter + L→R blink sweep ---------- */
.proffesor-tag {
  position: relative;
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  max-width: 100%;
  gap: 0;
  margin: 0;
  padding: 0.4em 0.85em;
  border-radius: 999px;
  background: var(--accent-glow);
  border: 1px solid var(--accent-dim);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  white-space: normal;
  overflow: hidden;
  isolation: isolate;
  overflow-anchor: none;
}
.proffesor-tag__text {
  position: relative;
  z-index: 1;
  min-height: 1.2em;
}
.proffesor-tag__caret {
  position: relative;
  z-index: 1;
  display: inline-block;
  width: 0.55ch;
  height: 1.05em;
  margin-left: 1px;
  background: currentColor;
  vertical-align: -0.12em;
  opacity: 0;
  flex-shrink: 0;
}
.proffesor-tag.is-typing .proffesor-tag__caret {
  opacity: 1;
  animation: profCaret 0.9s steps(1) infinite;
}
.proffesor-tag.is-done .proffesor-tag__caret { opacity: 0; animation: none; }
/* Left→right blink / scan pass over the typed line */
.proffesor-tag::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent 0%,
    transparent 35%,
    color-mix(in oklab, #fff 55%, transparent) 50%,
    transparent 65%,
    transparent 100%
  );
  transform: translateX(-120%);
  opacity: 0;
  animation: profSlideBlink 3.2s ease-in-out infinite;
}
.proffesor-tag.is-done::after { animation-play-state: running; }
.proffesor-tag[data-typewrite='prof.kod']::after { animation-delay: 1.1s; }
@keyframes profSlideBlink {
  0%, 12% { transform: translateX(-120%); opacity: 0; }
  18% { opacity: 0.95; }
  42% { transform: translateX(120%); opacity: 0.55; }
  55%, 70% { transform: translateX(120%); opacity: 0; }
  71%, 78% { opacity: 0.2; } /* brief full-tag dim between sweeps */
  85%, 100% { opacity: 0; transform: translateX(120%); }
}
@keyframes profCaret {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .proffesor-tag::after { animation: none; opacity: 0; }
  .proffesor-tag__caret { display: none; }
}

/* ---------- Clickable stat counters ---------- */
button.stat { border: 0; font: inherit; text-align: left; width: 100%; color: inherit; background: transparent; }
.stat { cursor: pointer; transition: transform 0.2s var(--ease), color 0.2s; border-radius: 0; }
.stat:hover { transform: translateY(-3px); }
.stat:hover .stat__v { color: var(--accent); }
.stat .stat__v { transition: color 0.2s; }
button.stat:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

/* ---------- Floating deal button (Fırsatı yakala) ----------
   Hidden on the hero so it never covers hero copy/badges; slides in once the
   user scrolls past the hero (mirrors the WhatsApp float behaviour). */
.deal-float {
  position: fixed;
  left: 0;
  bottom: max(28px, calc(env(safe-area-inset-bottom, 0px) + 18px));
  top: auto;
  z-index: 35;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.7em 1em 0.7em 0.7em;
  border-radius: 0 999px 999px 0;
  background: linear-gradient(135deg, var(--accent), #0aa6c4);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  border: 0;
  white-space: nowrap;
  transform: translateY(140%);
  transition: transform 0.4s var(--ease), filter 0.18s, width 0.2s, padding 0.2s;
  opacity: 0;
  pointer-events: none;
}
.deal-float__dot {
  display: none;
}
.deal-float.show { transform: none; opacity: 1; animation: dealBob 3.2s ease-in-out 0.4s infinite; pointer-events: auto; }
.deal-float:hover { filter: brightness(1.08); }
@keyframes dealBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
@keyframes dealDot {
  0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent-ink) 55%, transparent); }
  70% { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
@media (prefers-reduced-motion: reduce) { .deal-float { animation: none; } }
@media (max-width: 720px) {
  .deal-float {
    top: 42vh;
    bottom: auto;
    z-index: 60;
    width: 18px;
    min-width: 18px;
    height: 48px;
    padding: 0;
    justify-content: center;
    gap: 0;
    border-radius: 0 12px 12px 0;
    box-shadow: 6px 0 22px -8px color-mix(in oklab, var(--accent) 55%, transparent);
  }
  .deal-float.show { animation: none; }
  .deal-float svg,
  .deal-float [data-t] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .deal-float__dot {
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-ink);
    animation: dealDot 1.8s ease-out infinite;
  }
}
@media (prefers-reduced-motion: reduce) {
  .deal-float__dot { animation: none; }
}

/* ---------- Safe-area + non-overlap for fixed FABs ---------- */
/* The mobile sticky dock covers ~120px at the bottom; reserve space so the
   footer / final content isn't hidden behind it. */
@media (max-width: 899px) {
  body { padding-bottom: 128px; }
}
.wa-float {
  bottom: max(clamp(1rem, 3vw, 2rem), calc(env(safe-area-inset-bottom, 0px) + 14px));
}
.deal-float {
  bottom: max(28px, calc(env(safe-area-inset-bottom, 0px) + 18px));
}

/* ---------- CAN-bus diagram labels ---------- */
.busmap__foot { flex-wrap: wrap; gap: var(--space-3); }
.busmap__foot span b { color: var(--accent); font-weight: 600; }

/* ---------- Appointment: full-width fields ---------- */
.af__form > label.af__full { grid-column: 1 / -1; }
.af__form textarea { width: 100%; resize: vertical; min-height: 48px; }

/* ---------- Twin fuel-savings estimate ---------- */
.twin__fuel {
  margin-top: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: 12px;
  background: var(--accent-glow);
  border: 1px solid var(--accent-dim);
}
.twin__fuel p { margin: 4px 0 0; font-size: var(--text-sm); color: var(--text-2); }
.twin__fuel b { color: var(--accent); font-weight: 700; font-family: var(--font-mono); }

/* Mobile dock: each CTA keeps its own solid colour + glow (bar stays glassy). */
.dock .btn.btn--primary {
  background: #f4f6fa !important;
  color: #030407 !important;
  border-color: #f4f6fa !important;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.35);
}
.dock .btn.btn--ghost {
  background: #ffffff !important;
  color: #030407 !important;
  border-color: #ffffff !important;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.4);
}
.dock .btn.btn--book {
  background: var(--warn) !important;
  color: #1a1000 !important;
  border-color: var(--warn) !important;
  box-shadow: 0 0 18px color-mix(in oklab, var(--warn) 55%, transparent);
}
.dock .btn.btn--accent {
  background: var(--accent) !important;
  color: #04121a !important;
  border-color: var(--accent) !important;
  box-shadow: 0 0 18px color-mix(in oklab, var(--accent) 60%, transparent);
}
.dock .btn.btn--wa {
  background: var(--ok) !important;
  color: #04170e !important;
  border-color: var(--ok) !important;
  box-shadow: 0 0 18px color-mix(in oklab, var(--ok) 55%, transparent);
}
.dock .btn svg {
  color: inherit;
}
[data-theme='light'] .dock .btn.btn--primary {
  background: #12141a !important;
  color: #f4f6fa !important;
  border-color: #12141a !important;
  box-shadow: none;
}

.noscript {
  padding: 12px 16px;
  background: var(--warn);
  color: var(--text-inverse);
  text-align: center;
  font-size: var(--text-sm);
}
.noscript a { color: inherit; font-weight: 700; }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  align-items: center;
  padding: 0.4rem var(--gutter);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.crumbs[hidden] { display: none; }
.crumbs a { color: var(--text-2); }
.crumbs a:hover { color: var(--accent); }
.crumbs span { color: var(--text-3); }
.crumbs strong { color: var(--text); font-weight: 600; }

.hero__punch { color: var(--text-2); margin: 0 0 var(--space-3); }
.hero__motto {
  margin: 0 0 var(--space-3);
  min-height: 1.35em;
  max-width: 36ch;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.4;
  color: var(--accent);
  overflow-anchor: none;
}
.hero__motto-caret {
  display: inline-block;
  width: 0.55ch;
  height: 1em;
  margin-left: 1px;
  background: currentColor;
  vertical-align: -0.1em;
  opacity: 0;
}
.hero__motto.is-typing {
  text-shadow: 0 0 18px color-mix(in oklab, var(--accent) 42%, transparent);
}
.hero__motto.is-typing .hero__motto-caret {
  opacity: 1;
  animation: profCaret 0.9s steps(1) infinite;
}
.hero__motto.is-done {
  color: var(--text);
  opacity: 0.34;
  letter-spacing: 0.08em;
  transition: opacity 0.85s ease, color 0.85s ease, letter-spacing 0.85s ease;
}
.hero__motto.is-done .hero__motto-caret {
  opacity: 0;
  animation: none;
}
@media (prefers-reduced-motion: reduce) {
  .hero__motto-caret { display: none; }
  .hero__motto.is-done { opacity: 0.4; letter-spacing: 0.04em; }
}
.hero__slogan {
  max-width: 22ch;
}
.hero__slogan span {
  display: block;
}
.hero__do {
  margin: var(--space-3) 0 0;
  font-size: var(--text-lg);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text-2);
  max-width: 36ch;
}
.hero__punch span + span::before { content: ' · '; color: var(--text-3); }
.hero__diff {
  margin: var(--space-3) 0 0;
  color: var(--accent);
  max-width: 46ch;
}
.hero__cta-quiet { opacity: 0.78; }
@media (max-width: 720px) {
  .hero__cta { flex-wrap: wrap; }
  .hero__cta .btn { min-height: 48px; }
  .hero__cta-quiet { width: 100%; }
}

.svc-rec {
  margin: 0 0 var(--space-5);
  padding: 0.7rem 1rem;
  border: 1px solid var(--accent-dim);
  background: var(--accent-soft);
  color: var(--text);
  border-radius: var(--r-md);
}

.trust-strip { max-width: 72ch; }
.trust-facts[hidden] {
  display: none !important;
}
.trust-facts li {
  padding: 0.85rem 1rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.reviews {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-8);
}
.review {
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
}
.review__meta { color: var(--text-3); margin-top: var(--space-2); }

.bk-more {
  margin: var(--space-3) 0;
  padding: var(--space-3);
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-md);
  background: var(--surface-2);
}
.bk-more summary {
  cursor: pointer;
  color: var(--text);
  font-weight: 560;
  list-style: none;
}
.bk-more summary::-webkit-details-marker { display: none; }
.bk-more summary::after {
  content: ' ▾';
  color: var(--accent);
}
.bk-more[open] summary { margin-bottom: var(--space-3); }
.req { font-size: 9px; letter-spacing: 0.12em; color: var(--text-3); }

.exit-prompt {
  position: fixed;
  right: 16px;
  bottom: 88px;
  z-index: 80;
  max-width: 320px;
  padding: 1rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
}
.exit-prompt[hidden] { display: none; }
.exit-prompt__t { font-weight: 700; margin: 0 0 0.35rem; }
.exit-prompt__p { margin: 0 0 0.8rem; color: var(--text-2); font-size: var(--text-sm); }
.exit-prompt__act { display: flex; flex-wrap: wrap; gap: 0.5rem; }

#afspraak { padding-bottom: calc(var(--space-16) + 72px); }

.btn, .dock .btn, .site-bar__phone {
  min-height: 44px;
}

.chip, .nav a, .btn span {
  overflow-wrap: anywhere;
}

@media (orientation: landscape) and (max-height: 500px) {
  .hero { min-height: auto; }
  .dock { padding-bottom: max(8px, env(safe-area-inset-bottom)); }
}

/* Footer socials — logos only, currentColor so light/dark stay in token */
.socials {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: var(--space-5);
}
.socials__a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  background: transparent;
  text-decoration: none;
}
.socials__a:hover,
.socials__a:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  outline: none;
}
.socials__a svg {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
}

.foot-followdeal {
  margin-top: var(--space-5);
  padding: var(--space-5);
  border: 1px solid var(--accent-dim);
  border-radius: var(--r-md);
  background: color-mix(in oklab, var(--accent) 8%, var(--surface));
  display: none;
  gap: var(--space-3);
  scroll-margin-bottom: 140px;
}
.foot-followdeal.is-on,
.foot-followdeal:not([hidden]) {
  display: grid;
}
.foot-followdeal[hidden] { display: none !important; }
.foot-followdeal__k { color: var(--accent); margin: 0; }
.foot-followdeal h3 {
  margin: 0;
  font-size: var(--text-base);
  letter-spacing: 0.01em;
}
.foot-followdeal p { margin: 0; color: var(--text-2); font-size: var(--text-sm); line-height: 1.55; }
.foot-followdeal__note { color: var(--text-3); }
.foot-followdeal .btn { justify-self: start; }

@media (max-width: 759.98px) {
  .foot-followdeal {
    margin-top: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    gap: 0;
  }
  .foot-followdeal.is-on,
  .foot-followdeal:not([hidden]) {
    display: block;
  }
  .foot-followdeal__k {
    font-size: 9px;
    letter-spacing: 0.1em;
    margin: 0 0 2px;
  }
  .foot-followdeal h3 {
    font-size: 12px;
    font-weight: 620;
    margin: 0 0 4px;
    letter-spacing: 0;
  }
  .foot-followdeal p {
    font-size: 11px;
    line-height: 1.4;
  }
  .foot-followdeal__note {
    margin-top: 4px;
    font-size: 9px;
    letter-spacing: 0.08em;
  }
  .foot-followdeal__wa {
    display: none;
  }
}



