/* =========================================================
   DriveBW: light theme. Botswana blue on white, road motif.
   Mobile-first. Breakpoints: 600px, 768px, 900px, 1100px
   ========================================================= */
:root {
  /* ---- Brand blue ----
     --blue      DriveBW sky blue (logo). Decoration only: pins, washes, focus glows. Too light for text on white (2.5:1).
     --blue-500  big display text only: headline highlights, stat numbers, prices (4.1:1 on white, passes AA for large text).
     --blue-600  buttons, links, small blue text, active nav (5.7:1 on white; white text on it passes AA). */
  --blue: #49a9f6;
  --blue-500: #1e7fd8;
  --blue-600: #005ee2;
  --blue-700: #004bb5;
  --blue-50: #eaf4fe;           /* icon circles, soft fills */
  --blue-100: #d6eafd;
  --blue-200: #b2d7fb;          /* tinted borders */

  /* ---- Accents: small doses only (tags, success states, little icons) ---- */
  --green: #01964d;
  --green-ink: #027a48;         /* green text / white text on it: AA */
  --green-50: #ecf8f1;
  --green-200: #abefc6;
  --orange: #f85d01;
  --purple: #6e15c0;
  --red: #d92d20;               /* white text on it: AA */
  --red-ink: #b42318;
  --red-50: #fef3f2;
  --red-200: #fecdca;
  --amber: #f79009;
  --amber-ink: #b54708;
  --star: #fbbc04;
  --sign-red: #e3262e;
  --success: var(--green);
  --danger: var(--red);
  --lime: var(--green);         /* old name, kept so nothing breaks */
  --app-blue: var(--blue-600);

  /* ---- Surfaces ---- */
  --bg: #fff;
  --bg-alt: #f6f9fc;            /* alternating sections */
  --bg-tint: #f3f8fe;           /* hero / page heroes */
  --bg-footer: #f8fafc;
  --surface: #fff;              /* cards */
  --surface-2: #f9fafb;         /* inset panels inside cards */
  --surface-3: #f2f4f7;         /* neutral fills (unanswered, chips) */
  --border: #e6ebf1;
  --border-strong: #d0d5dd;     /* inputs, options: borders that must be seen */
  --asphalt: #3a3f47;           /* road dividers + "how it works" road */

  /* ---- Text ---- */
  --heading: #0f0f10;           /* near-black */
  --ink-2: #344054;             /* strong secondary (nav links, list text) */
  --text: #475467;              /* body: 7.6:1 on white */
  --muted: #667085;             /* 5:1 on white, 4.6:1 on --bg-alt */
  --white: #fff;
  --black: #000;

  --font-display: "Bebas Neue", "League Gothic", Impact, "Arial Narrow", sans-serif;
  --font-body: "Poppins", "Poppins Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 18px;
  --radius-lg: 22px;
  --container: 1200px;
  --header-h: 68px;
  --section-y: clamp(2.75rem, 5vw, 4.25rem);   /* ~44px on phones, ~64px at 1280px, max 68px */
  --ease: cubic-bezier(.2, .7, .2, 1);

  --shadow-xs: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow-card: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .06);
  --shadow-hover: 0 2px 4px rgba(16, 24, 40, .05), 0 16px 36px rgba(16, 24, 40, .10);
  --shadow-pop: 0 4px 8px rgba(16, 24, 40, .06), 0 24px 56px rgba(16, 24, 40, .16);
  --ring-blue: 0 0 0 4px rgba(0, 94, 226, .14);

  /* theme helpers */
  --blue-fill: #005ee2;         /* filled blue (buttons, badges): the same DriveBW blue in light and dark */
  --blue-fill-hover: #004bb5;
  --hover-tint: #f5faff;
  --amber-50: #fffaeb;
  --glass: rgba(255, 255, 255, .88);

  /* Store badges: visible badge height (both badges identical) */
  --badge-h: 48px;
}

/* Arial sized to match Poppins, so text doesn't jump (layout shift) when the web font arrives */
@font-face { font-family: "Poppins Fallback"; src: local("Arial"); size-adjust: 112.2%; ascent-override: 93.6%; descent-override: 31.2%; line-gap-override: 8.9%; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-body); font-size: 1rem; line-height: 1.65;
  color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
html.nav-open, html.nav-open body { overflow: hidden; }
img { max-width: 100%; display: block; }
svg { display: block; }
a { color: var(--blue-600); text-underline-offset: 3px; }
a:hover { color: var(--blue-700); }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.1; color: var(--heading); }
p { margin: 0 0 1em; }
strong { color: var(--heading); font-weight: 600; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--heading); color: var(--white); padding: .6rem 1rem; z-index: 200; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; color: var(--white); }
:focus-visible { outline: 3px solid var(--blue-600); outline-offset: 3px; border-radius: 10px; }
.hl { color: var(--blue-500); }

/* ---------- Scroll reveal (only when JS is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ---------- Cards (shared surface) ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-card); }
.card--hover, .pain, .feature, .rating-card, .ad-card, .review-card {
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.card--hover:hover, .pain:hover, .feature:hover, .rating-card:hover, .ad-card:hover {
  transform: translateY(-4px); border-color: var(--blue-100); box-shadow: var(--shadow-hover);
}

/* One icon style: every road-sign icon sits in a soft blue circle */
.sign-ico { width: 60px; height: 60px; padding: 12px; margin-bottom: 1.2rem; border-radius: 50%; background: var(--blue-50); box-shadow: 0 0 0 1px rgba(0, 94, 226, .06) inset; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .8rem 1.4rem; border-radius: 999px; border: 0; cursor: pointer;
  font-weight: 600; font-size: .98rem; line-height: 1.2; text-decoration: none; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s, border-color .2s;
}
.btn svg { width: 20px; height: 20px; flex: none; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--sm { min-height: 44px; padding: .6rem 1.15rem; font-size: .92rem; }
.btn--lg { min-height: 54px; padding: .95rem 1.7rem; font-size: 1.02rem; }
.btn--primary { color: var(--white); background: var(--blue-fill); box-shadow: 0 1px 2px rgba(16,24,40,.08), 0 6px 16px -6px rgba(0,94,226,.55); }
.btn--primary:hover { color: var(--white); background: var(--blue-fill-hover); box-shadow: var(--ring-blue), 0 10px 24px -8px rgba(0,94,226,.6); }
.btn--ghost { background: var(--surface); color: var(--heading); border: 1.5px solid var(--border-strong); box-shadow: var(--shadow-xs); }
.btn--ghost:hover { color: var(--blue-600); border-color: var(--blue-600); background: var(--hover-tint); }
.btn--wa { background: #25d366; color: #062b14; box-shadow: 0 1px 2px rgba(16,24,40,.08), 0 6px 16px -6px rgba(37,211,102,.6); }
.btn--wa:hover { color: #062b14; box-shadow: 0 0 0 4px rgba(37,211,102,.18), 0 10px 24px -8px rgba(37,211,102,.7); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn:focus-visible { outline: 3px solid var(--blue-600); outline-offset: 3px; border-radius: 999px; }

.text-link { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; font-weight: 600; text-decoration: none; }
.text-link svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.text-link:hover svg { transform: translateX(3px); }

.pill-btn {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: .5rem 1.1rem; border-radius: 999px;
  background: var(--surface); color: var(--ink-2); border: 1px solid var(--border-strong); box-shadow: var(--shadow-xs);
  cursor: pointer; font-size: .85rem; font-weight: 500; transition: border-color .2s, color .2s;
}
.pill-btn:hover { border-color: var(--blue-600); color: var(--blue-600); }
.pill-btn svg { width: 14px; height: 14px; }
.round-btn {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--heading);
  background: var(--surface); border: 1px solid var(--border); box-shadow: 0 1px 2px rgba(16,24,40,.06), 0 4px 12px rgba(16,24,40,.08);
  transition: color .2s, border-color .2s, box-shadow .2s;
}
.round-btn svg { width: 20px; height: 20px; }
.round-btn:hover { color: var(--blue-600); border-color: var(--blue-200); box-shadow: 0 2px 4px rgba(16,24,40,.06), 0 8px 20px rgba(16,24,40,.12); }

/* ---------- Header ---------- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 60; height: var(--header-h); }
.site-header::before { /* frosted layer: kept on a pseudo-element so the fixed mobile menu isn't trapped by backdrop-filter */
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .3s;
  background: var(--glass); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border); box-shadow: 0 1px 12px rgba(16,24,40,.04);
}
.site-header.is-scrolled::before, html.nav-open .site-header::before { opacity: 1; }
.header-inner { position: relative; display: flex; align-items: center; gap: 1rem; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--heading); text-decoration: none; margin-right: auto; }
.brand:hover { color: var(--heading); }
.brand img { width: 44px; height: 44px; border-radius: 11px; box-shadow: 0 0 0 1px rgba(16,24,40,.06), 0 4px 10px -4px rgba(0,94,226,.4); }
.brand-word { font-family: var(--font-display); font-size: 1.95rem; letter-spacing: .09em; line-height: 1; padding-top: 4px; }
.header-cta { display: none; }
@media (min-width: 600px) { .header-cta { display: inline-flex; } }

.nav-links { list-style: none; margin: 0; padding: 0; }
.site-nav a:not(.btn) { color: var(--heading); text-decoration: none; font-weight: 500; }

/* Mobile: slide-in panel */
.site-nav {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 1; width: min(340px, 86vw);
  display: flex; flex-direction: column; padding: calc(var(--header-h) + 1rem) 1.5rem 1.5rem;
  background: var(--surface); border-left: 1px solid var(--border);
  box-shadow: -24px 0 60px rgba(16,24,40,.14);
  transform: translateX(100%); visibility: hidden; transition: transform .35s var(--ease), visibility 0s linear .35s;
}
.site-nav.is-open { transform: none; visibility: visible; transition: transform .35s var(--ease), visibility 0s; }
.nav-links { display: grid; }
.nav-links a:not(.btn) { display: flex; align-items: center; justify-content: space-between; padding: .95rem .25rem; border-bottom: 1px solid var(--border); font-size: 1.08rem; }
.nav-links a::after { content: ""; width: 8px; height: 8px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); opacity: .35; }
.site-nav .nav-links a.is-active { color: var(--blue-600); }
.nav-download { margin-top: auto; width: 100%; }
.nav-toggle { position: relative; z-index: 2; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 12px; width: 46px; height: 46px; cursor: pointer; flex: none; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { position: absolute; left: 11px; width: 22px; height: 2px; border-radius: 2px; background: var(--heading); content: ""; transition: transform .25s var(--ease), background .2s; }
.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before { left: 0; top: -7px; }
.nav-toggle-bar::after { left: 0; top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }
.nav-scrim { position: fixed; inset: 0; z-index: 55; background: rgba(16,24,40,.4); backdrop-filter: blur(2px); }
.nav-scrim[hidden] { display: none; }

@media (min-width: 1240px) { /* 10 nav links need the room; below this the menu button is used */
  .nav-toggle, .nav-scrim, .nav-download { display: none !important; }
  .site-nav { position: static; width: auto; padding: 0; background: none; border: 0; box-shadow: none; transform: none; visibility: visible; transition: none; flex-direction: row; }
  .nav-links { display: flex; gap: .1rem; }
  .nav-links a:not(.btn) { position: relative; display: block; padding: .5rem .55rem; border: 0; border-radius: 10px; font-size: .88rem; white-space: nowrap; color: var(--ink-2); transition: color .2s, background .2s; }
  .nav-links a::after { content: ""; position: absolute; left: .55rem; right: .55rem; bottom: .2rem; top: auto; width: auto; height: 2px; border: 0; border-radius: 2px; background: var(--blue-fill); transform: scaleX(0); opacity: 1; transition: transform .3s var(--ease); }
  .nav-links a:not(.btn):hover { color: var(--heading); background: var(--surface-3); }
  .site-nav .nav-links a.is-active { color: var(--blue-600); }
  .nav-links a.is-active::after { transform: scaleX(1); }
  .header-cta { margin-left: .75rem; }
}

/* ---------- Road divider (used twice: under the hero and above the footer) ----------
   Mid-grey asphalt with white edge lines and dashes: reads as a road on a light page.
   --road-x is set from scroll position in JS (not under reduced motion), so the dashes drift sideways. */
.road { position: relative; display: block; height: 22px; margin: 0; background: var(--asphalt); overflow: hidden; }
.road::before { content: ""; position: absolute; left: 0; right: 0; top: 3px; bottom: 3px; border-top: 1.5px solid rgba(255,255,255,.55); border-bottom: 1.5px solid rgba(255,255,255,.55); }
.road::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 3px; transform: translateY(-50%);
  background-image: linear-gradient(90deg, rgba(255,255,255,.92) 0 30px, transparent 30px);
  background-size: 58px 100%; background-repeat: repeat-x;
  background-position: calc(var(--road-x, 0) * 1px) 0;
}
@media (min-width: 768px) {
  .road { height: 30px; }
  .road::before { top: 4px; bottom: 4px; border-width: 2px; }
  .road::after { height: 4px; background-image: linear-gradient(90deg, rgba(255,255,255,.92) 0 44px, transparent 44px); background-size: 84px 100%; }
}

/* ---------- Background patterns ---------- */
.hero-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-grid-lines { /* faint dot grid */
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(16, 24, 40, .13) 1.1px, transparent 1.6px);
  background-size: 22px 22px; background-position: center top;
  -webkit-mask: radial-gradient(ellipse 75% 70% at 60% 40%, #000 15%, transparent 75%);
          mask: radial-gradient(ellipse 75% 70% at 60% 40%, #000 15%, transparent 75%);
}
.hero-road { /* a dashed lane line sweeping behind the phone (desktop only, so it never crosses the copy) */
  display: none; position: absolute; top: -10%; bottom: -10%; right: 18%; width: 6px; transform: rotate(18deg);
  background: repeating-linear-gradient(180deg, rgba(16,24,40,.07) 0 46px, transparent 46px 86px);
  -webkit-mask: linear-gradient(180deg, transparent, #000 25%, #000 70%, transparent);
          mask: linear-gradient(180deg, transparent, #000 25%, #000 70%, transparent);
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; padding: calc(var(--header-h) + 2.5rem) 0 var(--section-y);
  background: linear-gradient(180deg, var(--bg-tint) 0%, var(--bg) 100%);
}
.hero-layout { position: relative; display: grid; gap: 3.5rem; align-items: center; }
.hero h1 {
  font-family: var(--font-display); font-weight: 400; font-size: clamp(3.6rem, 16vw, 8.4rem);
  line-height: .86; letter-spacing: .005em; margin-bottom: 1.4rem; color: var(--heading);
}
.hero h1 .hl { color: var(--blue-500); }
.hero-sub { font-size: 1.06rem; color: var(--text); max-width: 34rem; margin-bottom: 1.9rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.6rem; }
.trust-line { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .8rem; margin: 1.5rem 0 0; font-size: .9rem; color: var(--text); }
.trust-line a { display: inline-flex; align-items: center; gap: .3rem; min-height: 44px; color: var(--heading); text-decoration: none; font-weight: 500; }
.trust-line a:hover { color: var(--blue-600); }
.trust-line .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--border-strong); }
@media (max-width: 599px) { .trust-line { column-gap: 1.1rem; } .trust-line .dot { display: none; } }
.star { color: var(--star); }
@media (max-width: 420px) { .hero-actions .btn { width: 100%; } }

.hero-phone { --phone-w: min(250px, 62vw); --arrow-out: 30px; position: relative; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
@media (min-width: 480px) { .hero-phone { --phone-w: 270px; --arrow-out: 66px; } }
@media (min-width: 900px) { .hero-phone { --phone-w: 300px; --arrow-out: 70px; } }
.hero-phone::before { /* very soft blue wash behind the phone */
  content: ""; position: absolute; left: 50%; top: 45%; width: 140%; max-width: 600px; aspect-ratio: 1; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(73,169,246,.26) 0%, rgba(73,169,246,.08) 40%, transparent 66%);
  pointer-events: none;
}
.phone-float { position: relative; animation: phone-float 7s ease-in-out infinite; }
@keyframes phone-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.phone {
  position: relative; width: var(--phone-w); padding: 11px; border-radius: 48px; touch-action: pan-y; user-select: none; -webkit-user-select: none;
  background: linear-gradient(145deg, #4a4e59, #0d0e11 38%, #2a2c33);
  box-shadow: 0 0 0 1.5px #5b5f6b, 0 40px 70px -28px rgba(16,24,40,.45), 0 24px 50px -18px rgba(0,94,226,.28);
  transform: perspective(1400px) rotateY(-14deg) rotateX(4deg) rotate(-3deg);
}
.phone-screen { position: relative; aspect-ratio: 600 / 1402; border-radius: 38px; overflow: hidden; background: #000;
  /* overflow:hidden alone doesn't always clip inside the 3D-tilted phone; clip-path + paint containment always do */
  clip-path: inset(0 round 38px); contain: paint; }
.phone-screen img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; -webkit-user-drag: none;
  overflow: hidden; color: transparent; font-size: 0; /* never paint alt text, even while an image is loading */
  opacity: 0; transform: translateX(14%); transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.phone-screen.is-back img { transform: translateX(-14%); }
.phone-screen img.is-leaving { transform: translateX(-14%); }
.phone-screen.is-back img.is-leaving { transform: translateX(14%); }
.phone-screen img.is-active { opacity: 1; transform: none; }
.phone:focus-visible { outline: 3px solid var(--blue-600); outline-offset: 6px; border-radius: 52px; }
.phone-stage { position: relative; display: flex; justify-content: center; width: 100%; }
.phone-arrow { position: absolute; top: 50%; z-index: 3; width: 48px; height: 48px; margin-top: -24px; }
.phone-arrow--prev { left: calc(50% - var(--phone-w) / 2 - var(--arrow-out)); }
.phone-arrow--next { right: calc(50% - var(--phone-w) / 2 - var(--arrow-out)); }
.phone-island { position: absolute; top: 20px; left: 50%; width: 78px; height: 22px; margin-left: -39px; border-radius: 20px; background: #000; }

/* traffic-light dots */
.light-dots { position: relative; display: inline-flex; padding: 0 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-xs); }
.light-dots button { width: 30px; height: 44px; padding: 0; border: 0; background: none; display: grid; place-items: center; cursor: pointer; border-radius: 999px; }
.light-dots button span { width: 11px; height: 11px; border-radius: 50%; background: var(--border-strong); transition: background .3s, box-shadow .3s, transform .2s; }
.light-dots button:hover span { background: #98a2b3; transform: scale(1.15); }
.light-dots button[aria-current="true"] span { background: var(--green); box-shadow: 0 0 0 3px rgba(1,150,77,.18); }

@media (min-width: 900px) {
  .hero-road { display: block; }
  .hero { padding: calc(var(--header-h) + 4rem) 0 var(--section-y); }
  .hero-layout { grid-template-columns: 1.15fr .85fr; gap: 3rem; }
  .hero-sub { font-size: 1.15rem; }
}

/* ---------- Store badges (official artwork, unmodified) ----------
   Apple SVG: no padding. Google PNG 646x250 has 41px transparent clear-space each side around a 564x168 badge.
   Scale the Google image so the visible badge = --badge-h, cancel the padding with negative margins. */
.store-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.store-badges--center { justify-content: center; }
.store-badges--sm { --badge-h: 44px; }
.badge { display: inline-flex; line-height: 0; flex: none; border-radius: 9px; transition: transform .2s var(--ease), filter .2s; }
.badge:hover { transform: translateY(-2px); filter: drop-shadow(0 8px 14px rgba(16,24,40,.2)); }
.badge img { width: auto; max-width: none; }
.badge--apple img { height: var(--badge-h); }
.badge--google img { height: calc(var(--badge-h) * 250 / 168); margin: calc(var(--badge-h) * -41 / 168); }
@media (max-width: 359px) {
  .store-badges { flex-direction: column; align-items: flex-start; }
  .store-badges--center { align-items: center; }
}
@media (min-width: 600px) {
  :root { --badge-h: 54px; }
  .store-badges { gap: 16px; }
  .store-badges--sm { --badge-h: 44px; }
  .store-badges--lg { --badge-h: 60px; }
}

/* ---------- Stats (a light band) ---------- */
.stats { position: relative; padding: 2.75rem 0; background: var(--surface); border-bottom: 1px solid var(--border); }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.75rem 1rem; }
.stat { text-decoration: none; color: inherit; text-align: center; }
.stat-num { font-family: var(--font-display); font-size: clamp(2.8rem, 9vw, 4.2rem); line-height: 1; margin: 0; color: var(--blue-500); }
.stat-num .star { color: var(--star); }
.stat-label { margin: .3rem 0 0; font-weight: 500; font-size: .98rem; color: var(--text); }
a.stat:hover { color: inherit; }
a.stat:hover .stat-label { color: var(--blue-600); text-decoration: underline; }
@media (min-width: 900px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .stat + .stat { border-left: 1px solid var(--border); }
}

/* ---------- Sections ---------- */
.section { position: relative; padding: var(--section-y) 0; background: var(--bg); }
.section--alt { background: var(--bg-alt); }
.section-head { max-width: 46rem; margin-bottom: 2rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.8rem, 9vw, 4.6rem); line-height: .95; letter-spacing: .01em; margin-bottom: .9rem; color: var(--heading); }
.lede { color: var(--text); font-size: clamp(1rem, 2.4vw, 1.12rem); margin: 0; max-width: 40rem; }
.section-head--center .lede { margin-inline: auto; }
.section-head a[href^="mailto"], .faq-body a[href^="mailto"] { overflow-wrap: anywhere; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem; margin: 0 0 .9rem;
  color: var(--blue-600); font-weight: 600; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
.section-head--center .eyebrow::after { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }

/* ---------- Struggle ---------- */
.pain-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.pain { padding: 1.75rem; }
.pain h3 { font-size: 1.08rem; font-weight: 600; }
.pain p { color: var(--text); margin: 0; font-size: 1rem; }
.fix-line { margin: 3.5rem 0 0; font-family: var(--font-display); font-size: clamp(2.4rem, 8vw, 4rem); line-height: 1; text-align: center; color: var(--heading); }
@media (min-width: 600px) { .pain-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .pain-grid { grid-template-columns: repeat(5, 1fr); gap: 1.25rem; } .pain { padding: 1.5rem; } }

/* ---------- How it works: road ----------
   Each step draws the stretch of road from its own sign to the next one (::before = asphalt, ::after = dashes),
   so the road starts at the first sign, ends at the last, and always passes through the middle of every sign. */
.road-steps { --m: 56px; --gap: 2.25rem; list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: var(--gap); }
.road-step { position: relative; padding-left: calc(var(--m) + 1.5rem); min-height: var(--m); }
.step-marker {
  position: absolute; left: 0; top: 0; z-index: 2; width: var(--m); height: var(--m); display: grid; place-items: center;
  background: var(--surface); border-radius: 50%; box-shadow: 0 0 0 4px var(--bg), var(--shadow-card);
}
.step-marker svg { width: 66%; height: 66%; }
.road-step:not(:last-child)::before { /* asphalt, down to the next sign */
  content: ""; position: absolute; z-index: 1; left: calc(var(--m) / 2 - 7px); top: calc(var(--m) / 2); width: 14px; height: calc(100% + var(--gap));
  background: var(--asphalt); box-shadow: inset 2px 0 0 rgba(255,255,255,.45), inset -2px 0 0 rgba(255,255,255,.45);
}
.road-step:not(:last-child)::after { /* centre dashes */
  content: ""; position: absolute; z-index: 1; left: calc(var(--m) / 2 - 1px); top: calc(var(--m) / 2); width: 2px; height: calc(100% + var(--gap));
  background: repeating-linear-gradient(180deg, #fff 0 12px, transparent 12px 22px);
}
.step-num { color: var(--blue-600); font-weight: 600; font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 .25rem; padding-top: .2rem; }
.road-step h3 { font-family: var(--font-display); font-weight: 400; font-size: 2.3rem; letter-spacing: .02em; margin-bottom: .25rem; }
.road-step p:last-child { color: var(--text); margin: 0; }
@media (min-width: 900px) {
  .road-steps { --m: 80px; --gap: 2.5rem; grid-template-columns: repeat(3, 1fr); }
  .road-step { padding: calc(var(--m) + 1.25rem) .5rem 0; text-align: center; }
  .step-marker { left: 50%; transform: translateX(-50%); }
  .road-step:not(:last-child)::before { /* across to the next sign */
    left: 50%; top: calc(var(--m) / 2 - 11px); width: calc(100% + var(--gap)); height: 22px;
    box-shadow: inset 0 2px 0 rgba(255,255,255,.5), inset 0 -2px 0 rgba(255,255,255,.5);
  }
  .road-step:not(:last-child)::after { left: 50%; top: calc(var(--m) / 2 - 1px); width: calc(100% + var(--gap)); height: 2px; background: repeating-linear-gradient(90deg, #fff 0 20px, transparent 20px 36px); }
}

/* ---------- Shared quiz parts (demo + mock) ---------- */
.demo-loading { color: var(--muted); margin: 0; }
.quiz-figure { position: relative; margin: 0; background: #fff; border-radius: 16px; overflow: hidden; display: block; aspect-ratio: 310 / 185; border: 1px solid var(--border); box-shadow: var(--shadow-card); }
.quiz-figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.quiz-figure.is-photo img { padding: 0; }
.quiz-figure.is-photo img { object-fit: cover; }
.quiz-q { font-size: clamp(1.1rem, 3.6vw, 1.35rem); font-weight: 600; color: var(--heading); line-height: 1.4; margin: 0 0 1rem; }
.quiz-q:focus { outline: none; }
.quiz-options { display: grid; gap: .65rem; list-style: none; padding: 0; margin: 0; }
.quiz-opt {
  width: 100%; text-align: left; padding: .95rem 1.1rem; border-radius: 14px; cursor: pointer;
  background: var(--surface); border: 1.5px solid var(--border-strong); color: var(--ink-2); line-height: 1.45; box-shadow: var(--shadow-xs);
  display: flex; gap: .85rem; align-items: flex-start; transition: border-color .2s, background .2s, transform .15s;
}
.quiz-opt:hover:not(:disabled) { border-color: var(--blue-600); background: var(--hover-tint); }
.opt-key { flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-weight: 700; font-size: .8rem; background: var(--surface-3); color: var(--heading); transition: background .2s, color .2s; }
.quiz-opt:disabled { cursor: default; }
.quiz-opt.is-right { border-color: var(--green); background: var(--green-50); color: var(--heading); }
.quiz-opt.is-right .opt-key { background: var(--green-ink); color: var(--white); }
.quiz-opt.is-wrong { border-color: var(--red); background: var(--red-50); color: var(--heading); }
.quiz-opt.is-wrong .opt-key { background: var(--red); color: var(--white); }
.quiz-opt.is-dim { opacity: .55; }

/* ---------- Mock test ---------- */
.mock { overflow-x: clip; padding: 1.25rem; min-height: 380px; border-radius: var(--radius-lg); max-width: 980px; margin-inline: auto; scroll-margin-top: calc(var(--header-h) + 12px); }
@media (min-width: 600px) { .mock { padding: 2rem; } }
@media (min-width: 900px) { .mock { padding: 2.75rem; } }

/* start screen */
.mock-start { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 768px) { .mock-start { grid-template-columns: 1.3fr .7fr; } }
.mock-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 6vw, 3rem); line-height: 1; letter-spacing: .01em; margin-bottom: 1rem; }
.mock-specs { display: block; margin-top: .35rem; font-size: .62em; color: var(--blue-600); }
.mock-specs span { white-space: nowrap; }
.mock-facts { list-style: none; margin: 0 0 1.75rem; padding: 0; display: grid; gap: .7rem; }
.mock-facts li { display: flex; gap: .75rem; align-items: flex-start; color: var(--text); }
.mock-facts svg { width: 22px; height: 22px; flex: none; margin-top: 2px; color: var(--green); }
.mock-facts strong { color: var(--heading); }
.mock-signs { position: relative; display: grid; grid-template-columns: repeat(2, 72px); gap: 14px; justify-content: center; padding: 1.75rem; border-radius: 20px; background: var(--blue-50); }
.mock-signs svg { width: 72px; height: 72px; filter: drop-shadow(0 6px 10px rgba(16,24,40,.18)); }
.mock-signs svg:nth-child(2) { transform: translateY(14px); }
.mock-signs svg:nth-child(3) { transform: translateY(-6px); }
@media (max-width: 767px) { .mock-signs { display: none; } }

/* in-test */
.mock-bar { /* sticky so the timer stays visible while scrolling a long question */
  position: sticky; top: var(--header-h); z-index: 5; display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem;
  margin: -.5rem -.5rem .9rem; padding: .5rem; border-radius: 14px; background: var(--surface);
}
.mock-count { margin: 0; padding-top: .35rem; color: var(--text); font-weight: 500; display: flex; align-items: center; gap: .4rem .6rem; flex-wrap: wrap; min-width: 0; }
.mock-timer { flex: none; }
.mock-count strong { color: var(--heading); }
.topic-chip { display: inline-flex; align-items: center; padding: .2rem .65rem; border-radius: 999px; font-size: .75rem; font-weight: 600; color: var(--heading); background: color-mix(in srgb, var(--accent, var(--blue)) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent, var(--blue)) 35%, #fff); }
.mock-timer {
  display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .9rem; border-radius: 999px;
  font-family: var(--font-display); font-size: 1.6rem; line-height: 1; letter-spacing: .06em; color: var(--heading);
  background: var(--surface); border: 1px solid var(--border-strong); box-shadow: var(--shadow-xs); font-variant-numeric: tabular-nums; transition: color .3s, border-color .3s, background .3s;
}
.mock-timer svg { width: 18px; height: 18px; color: var(--blue-600); }
.mock-timer.is-low { color: var(--amber-ink); border-color: var(--amber); background: var(--amber-50); }
.mock-timer.is-low svg { color: var(--amber-ink); }
.mock-timer.is-critical { color: var(--red-ink); border-color: var(--red); background: var(--red-50); }
.mock-timer.is-critical svg { color: var(--red-ink); }

/* question navigator: unanswered = light grey, answered = blue, current = blue outline */
.mock-nav { margin-bottom: 1.5rem; }
.mock-dots { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 600px) { .mock-dots { grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; } }
.mock-dot {
  width: 100%; height: 44px; border-radius: 12px; display: grid; place-items: center; cursor: pointer;
  font-size: .9rem; font-weight: 600; color: var(--text); background: var(--surface-3); border: 1.5px solid var(--surface-3);
  transition: background .2s, border-color .2s, color .2s, box-shadow .2s;
}
@media (min-width: 600px) { .mock-dot { width: 44px; border-radius: 50%; justify-self: center; } }
.mock-dot:hover { border-color: var(--blue-600); color: var(--blue-600); }
.mock-dot.is-answered { background: var(--blue-fill); border-color: var(--blue-600); color: var(--white); }
.mock-dot.is-current { background: var(--surface); border: 2px solid var(--blue-600); color: var(--blue-600); box-shadow: var(--ring-blue); }
.mock-dot.is-answered.is-current { background: var(--blue-fill); color: var(--white); }
.mock-legend { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; margin: .8rem 0 0; font-size: .78rem; color: var(--muted); }
.mock-legend span { display: inline-flex; align-items: center; gap: .4rem; }
.mock-legend i { width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid var(--border-strong); background: var(--surface-3); }
.mock-legend i.l-ans { background: var(--blue-fill); border-color: var(--blue-600); }
.mock-legend i.l-cur { background: var(--surface); border: 2px solid var(--blue-600); }

.mock-body { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .mock-body { grid-template-columns: 1fr 1fr; gap: 2.25rem; align-items: start; } }
.mock-figure { max-width: 560px; width: 100%; margin-inline: auto; }
.mock-fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.mock-fieldset legend { padding: 0; }
.mock-opt { position: relative; }
.mock-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.mock-opt .quiz-opt { cursor: pointer; }
.mock-opt input:checked + .quiz-opt { border-color: var(--blue-600); background: var(--blue-50); color: var(--heading); box-shadow: 0 0 0 1px var(--blue-600) inset; }
.mock-opt input:checked + .quiz-opt .opt-key { background: var(--blue-fill); color: var(--white); }
.mock-opt input:focus-visible + .quiz-opt { outline: 3px solid var(--blue-600); outline-offset: 2px; }

.mock-foot { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--border); flex-wrap: wrap; }
.mock-progress { margin: 0; color: var(--muted); font-size: .88rem; order: -1; flex-basis: 100%; text-align: center; }
.mock-foot .btn { flex: 1 1 0; min-height: 52px; }
@media (min-width: 600px) {
  .mock-progress { order: 0; flex-basis: auto; }
  .mock-foot .btn { flex: 0 0 auto; }
}
.mock-submit-link { display: inline-flex; align-items: center; min-height: 44px; background: none; border: 0; padding: 0 .35rem; color: var(--blue-600); font-weight: 600; font-size: .88rem; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* results */
.mock-result { display: grid; gap: 2rem; }
.result-hero { display: grid; gap: 1.5rem; justify-items: center; text-align: center; }
@media (min-width: 768px) { .result-hero { grid-template-columns: auto 1fr; text-align: left; justify-items: start; align-items: center; gap: 2.5rem; } }
.ring { position: relative; width: 190px; height: 190px; flex: none; }
.result-badges { margin-top: 1.25rem; }
@media (min-width: 768px) { .result-badges .store-badges--center { justify-content: flex-start; } }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .ring-track { fill: none; stroke: var(--surface-3); stroke-width: 10; }
.ring .ring-bar { fill: none; stroke: var(--ring, var(--blue-600)); stroke-width: 10; stroke-linecap: round; transition: stroke-dashoffset 1.2s var(--ease); }
.confetti { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; z-index: 4; }
.confetti i {
  position: absolute; left: -4px; top: -6px; width: 8px; height: 12px; border-radius: 2px; background: var(--c); opacity: 0;
  animation: confetti 1.9s cubic-bezier(.15,.6,.35,1) var(--d) forwards;
}
@keyframes confetti {
  0% { opacity: 1; transform: translate(0, 0) rotate(0); }
  45% { opacity: 1; transform: translate(calc(var(--dx) * .7), var(--up)) rotate(calc(var(--r) * .5)); }
  100% { opacity: 0; transform: translate(var(--dx), var(--down)) rotate(var(--r)); }
}
.ring-label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-score { font-family: var(--font-display); font-size: 3.6rem; line-height: .9; color: var(--heading); }
.ring-score small { font-size: 1.8rem; color: var(--muted); }
.ring-pct { font-size: .95rem; font-weight: 600; color: var(--muted); }
.result-verdict { display: inline-flex; align-items: center; gap: .45rem; padding: .3rem .8rem; border-radius: 999px; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .75rem; }
.result-verdict.is-pass { background: var(--green-50); color: var(--green-ink); border: 1px solid var(--green-200); }
.result-verdict.is-fail { background: var(--red-50); color: var(--red-ink); border: 1px solid var(--red-200); }
.result-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.2rem, 7vw, 3.2rem); line-height: 1; letter-spacing: .01em; margin-bottom: .5rem; }
.result-title:focus { outline: none; }
.result-text { color: var(--text); margin: 0 0 1.25rem; }
.result-btns { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }
@media (min-width: 768px) { .result-btns { justify-content: flex-start; } }

.review-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; border-top: 1px solid var(--border); padding-top: 1.75rem; }
.review-head h3 { font-family: var(--font-display); font-weight: 400; font-size: 2rem; letter-spacing: .01em; margin: 0; }
.review-head p { margin: 0; color: var(--muted); font-size: .9rem; }
.mock-review { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; }
.rv-item { display: grid; gap: 1rem; padding: 1.1rem; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--red); box-shadow: var(--shadow-xs); }
.rv-item.is-right { border-left-color: var(--green); }
@media (min-width: 600px) { .rv-item { grid-template-columns: 150px 1fr; padding: 1.25rem; } }
.rv-img { position: relative; margin: 0; background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; aspect-ratio: 310 / 185; align-self: start; }
.rv-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.rv-img.is-photo img { padding: 0; }
.rv-img.is-photo img { object-fit: cover; }
.rv-meta { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin: 0 0 .4rem; font-size: .8rem; color: var(--muted); }
.rv-mark { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-weight: 700; font-size: .8rem; }
.rv-mark svg { width: 14px; height: 14px; }
.is-right .rv-mark { background: var(--green-ink); color: var(--white); }
.is-wrong .rv-mark { background: var(--red); color: var(--white); }
.rv-q { font-weight: 600; color: var(--heading); margin: 0 0 .75rem; line-height: 1.45; }
.rv-ans { display: grid; gap: .4rem; margin: 0 0 .75rem; font-size: 1rem; }
.rv-ans div { display: grid; grid-template-columns: 7.2rem 1fr; gap: .5rem; }
.rv-ans dt { color: var(--muted); }
.rv-ans dd { margin: 0; color: var(--ink-2); }
.rv-ans .is-bad { color: var(--red-ink); }
.rv-ans .is-good { color: var(--green-ink); }
.rv-expl { margin: 0; padding: .8rem 1rem; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); font-size: 1rem; color: var(--text); }
.rv-expl p { margin: 0 0 .3rem; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.rv-expl ul { margin: 0; padding-left: 1.1rem; }
@media (max-width: 420px) { .rv-ans div { grid-template-columns: 1fr; gap: 0; } }

.mock-cta { text-align: center; padding: 2.25rem 1.25rem; border-radius: 20px; background: linear-gradient(180deg, var(--blue-50), var(--surface)); border: 1px solid var(--blue-100); }
.mock-cta h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.9rem, 6vw, 2.6rem); line-height: 1; letter-spacing: .01em; margin-bottom: .5rem; }
.mock-cta p { color: var(--text); margin: 0 0 1.4rem; }

/* ---------- Section demo ---------- */
.demo-tabs { display: flex; gap: .65rem; overflow-x: auto; padding: .25rem .1rem 1rem; scroll-snap-type: x mandatory; scrollbar-width: none; }
.demo-tabs::-webkit-scrollbar { display: none; }
.demo-tab {
  flex: 0 0 auto; scroll-snap-align: start; display: flex; align-items: center; gap: .75rem; text-align: left;
  padding: .8rem 1.1rem .8rem .85rem; border-radius: 16px; cursor: pointer;
  background: var(--surface); border: 1.5px solid var(--border); box-shadow: var(--shadow-xs);
  transition: border-color .2s, background .2s, transform .2s, box-shadow .2s;
}
.demo-tab svg { width: 34px; height: 34px; flex: none; }
.demo-tab strong { display: block; font-size: .95rem; color: var(--heading); line-height: 1.2; }
.demo-tab small { display: block; font-size: .76rem; color: var(--muted); line-height: 1.3; }
.demo-tab:hover { border-color: var(--border-strong); transform: translateY(-2px); box-shadow: var(--shadow-card); }
.demo-tab[aria-selected="true"] { border-color: var(--accent, var(--blue-600)); background: color-mix(in srgb, var(--accent, var(--blue)) 7%, var(--surface)); box-shadow: var(--shadow-card); }
@media (min-width: 900px) { .demo-tabs { display: grid; grid-template-columns: repeat(4, 1fr); overflow: visible; } .demo-tab { padding: 1rem; } }

.demo-panel { padding: 1.25rem; min-height: 420px; border-radius: var(--radius-lg); }
@media (min-width: 600px) { .demo-panel { padding: 2rem; } }
@media (min-width: 900px) { .demo-panel { padding: 2.5rem; } }

.study-head { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.25rem; }
.study-head svg { width: 46px; height: 46px; flex: none; }
.study-eyebrow { margin: 0; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: color-mix(in srgb, var(--accent, var(--blue-600)) 80%, #000); font-weight: 600; }
.study-title { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.9rem, 6vw, 2.5rem); letter-spacing: .01em; }
.study-notes { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: .9rem; }
.study-note { display: grid; grid-template-columns: 92px 1fr; gap: .9rem; align-items: start; padding: .9rem; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); }
.study-note img { width: 92px; height: 70px; object-fit: contain; background: #fff; border: 1px solid var(--border); border-radius: 10px; }
.study-note img.is-photo { object-fit: cover; }
.study-note p { margin: 0 0 .35rem; font-weight: 600; font-size: 1rem; color: var(--heading); }
.study-note ul { margin: 0; padding-left: 1.1rem; color: var(--text); font-size: 1rem; }
.study-note li::marker { color: var(--green); }
@media (min-width: 900px) { .study-notes { grid-template-columns: repeat(3, 1fr); } .study-note { grid-template-columns: 1fr; } .study-note img { width: 100%; height: 130px; } }
.study-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; }
.study-actions small { color: var(--muted); }

.quiz-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.quiz-count { margin: 0; color: var(--muted); font-size: .9rem; font-weight: 500; }
.signal { display: inline-flex; gap: 9px; padding: 8px 12px; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--border); }
.signal span { width: 14px; height: 14px; border-radius: 50%; background: var(--border-strong); transition: background .3s, box-shadow .3s; }
.signal .is-current { background: var(--amber); box-shadow: 0 0 0 3px rgba(247,144,9,.2); }
.signal .is-right { background: var(--green); }
.signal .is-wrong { background: var(--red); }
.quiz-body { display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .quiz-body { grid-template-columns: .9fr 1.1fr; gap: 2rem; align-items: start; } }
.quiz-feedback { margin-top: 1rem; padding: 1rem 1.1rem; border-radius: 14px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); }
.quiz-feedback.is-right { background: var(--green-50); border-color: var(--green-200); }
.quiz-feedback.is-wrong { background: var(--red-50); border-color: var(--red-200); }
.quiz-feedback .fb-title { font-weight: 700; margin: 0 0 .35rem; }
.quiz-feedback.is-right .fb-title { color: var(--green-ink); }
.quiz-feedback.is-wrong .fb-title { color: var(--red-ink); }
.quiz-feedback .fb-from { margin: 0 0 .35rem; font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
.quiz-feedback ul { margin: 0; padding-left: 1.1rem; font-size: 1rem; }
.quiz-next { margin-top: 1rem; }

.quiz-result { text-align: center; padding: 1rem 0; }
.result-score { font-family: var(--font-display); font-size: clamp(4.5rem, 20vw, 7rem); line-height: .9; color: var(--heading); margin: .5rem 0; }
.result-score:focus { outline: none; }
.result-msg { font-size: 1.15rem; font-weight: 600; color: var(--heading); margin-bottom: .25rem; }
.result-sub { color: var(--text); margin-bottom: 1.75rem; }
.result-cta { font-family: var(--font-display); font-size: clamp(1.8rem, 6vw, 2.4rem); color: var(--blue-500); margin: 1.5rem 0 1rem; letter-spacing: .01em; }
.result-actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: 1.75rem; }

.demo-locked {
  margin-top: 2rem; padding: 1.5rem; border-radius: var(--radius-lg); text-align: left;
  border: 1.5px dashed var(--border-strong); background: repeating-linear-gradient(135deg, rgba(16,24,40,.018) 0 14px, transparent 14px 28px), var(--surface-2);
}
@media (min-width: 600px) { .demo-locked { padding: 2rem; } }
.demo-locked-head { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.25rem; }
.lock-ico { width: 34px; height: 34px; color: var(--amber); flex: none; }
.demo-locked h3 { font-family: var(--font-display); font-weight: 400; font-size: 2rem; letter-spacing: .01em; margin-bottom: .2rem; }
.demo-locked p { color: var(--text); margin: 0; }
.locked-list { list-style: none; margin: 0 0 1.75rem; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.locked-list li { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .75rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: .9rem; color: var(--text); }
.locked-list li svg { width: 12px; height: 12px; color: var(--muted); }
.locked-list li.is-class { flex-basis: 100%; background: none; border: 0; color: var(--heading); font-weight: 600; padding: .5rem 0 0; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; }
.locked-list li.is-class:first-child { padding-top: 0; }

/* ---------- Features ---------- */
.feature-grid { list-style: none; margin: 0 0 4rem; padding: 0; display: grid; gap: 1.1rem; }
@media (min-width: 600px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .feature-grid { grid-template-columns: repeat(3, 1fr); gap: 1.35rem; } }
.feature { position: relative; overflow: hidden; padding: 1.9rem; }
.feature::after { /* thin accent line, grows on hover */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--accent); transform: scaleX(.16); transform-origin: left; transition: transform .5s var(--ease);
}
.feature:hover::after { transform: scaleX(1); }
.feature h3 { font-size: 1.12rem; font-weight: 600; }
.feature p { color: var(--text); margin: 0; font-size: 1rem; }

.carousel-track {
  display: flex; gap: 1.1rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: .5rem max(1.25rem, calc((100vw - var(--container)) / 2)) 2rem; scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track figure { margin: 0; flex: 0 0 220px; scroll-snap-align: center; }
.carousel-track img { width: 100%; height: auto; border-radius: 22px; box-shadow: 0 0 0 1px var(--border), 0 18px 36px -18px rgba(16,24,40,.35); }
@media (min-width: 600px) { .carousel-track figure { flex-basis: 240px; } }
.carousel-ctrl { display: flex; justify-content: flex-end; gap: .6rem; }

/* ---------- Reviews ---------- */
.reviews-sec { overflow: hidden; background: var(--bg); }
.rating-summary { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-bottom: 3rem; }
.rating-card { display: grid; justify-items: center; gap: .15rem; min-width: 210px; padding: 1.3rem 1.8rem; text-decoration: none; color: var(--heading); }
.rating-card:hover { color: var(--heading); }
.rating-big { font-family: var(--font-display); font-size: 3.6rem; line-height: 1; }
.rating-stars { color: var(--star); letter-spacing: .15em; }
.rating-meta { font-size: .85rem; color: var(--muted); }

.marquee-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .5rem; }
.marquee-hint { margin: 0; color: var(--muted); font-size: .95rem; }
.marquee { display: grid; gap: .25rem; }
.marquee-row { /* the mask fades to transparent, so edges blend into the section background */
  overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; gap: 1rem; width: max-content; padding: .75rem 0 1.75rem; animation: marquee 70s linear infinite; }
.marquee-row[data-dir="right"] .marquee-track { animation-direction: reverse; animation-duration: 80s; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track, .marquee.is-paused .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(calc(-50% - .5rem)); } }

.review-card {
  flex: 0 0 300px; display: flex; flex-direction: column; gap: .7rem; text-align: left; cursor: pointer;
  padding: 1.35rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); color: var(--text);
  box-shadow: var(--shadow-card);
}
.review-card:hover { border-color: var(--blue-100); transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.review-top { display: flex; align-items: center; gap: .7rem; }
.avatar { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: var(--heading); background: var(--av, var(--blue)); }
.review-name { display: block; font-weight: 600; color: var(--heading); font-size: .95rem; line-height: 1.2; }
.review-stars { color: var(--star); font-size: .9rem; letter-spacing: .1em; }
.review-stars .off { color: var(--border-strong); }
.review-text { margin: 0; font-size: 1rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.review-foot { margin-top: auto; display: flex; justify-content: space-between; gap: .5rem; font-size: .78rem; color: var(--muted); }
.gp-label { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; color: var(--ink-2); }
.gp-label::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: linear-gradient(135deg, #00d7fe, #00f076 40%, #ffd500 70%, #ff3a44); }
@media (min-width: 600px) { .review-card { flex-basis: 340px; } }

@media (prefers-reduced-motion: reduce) {
  .marquee-row { overflow-x: auto; -webkit-mask: none; mask: none; padding-inline: 1.25rem; scroll-snap-type: x mandatory; }
  .marquee-track { animation: none !important; transform: none !important; }
  .marquee-track [data-clone] { display: none; }
  .review-card { scroll-snap-align: start; }
  #marquee-toggle { display: none; }
  .phone-float { animation: none; }
}

/* ---------- Ads & posters ---------- */
.ads-grid { display: grid; gap: 1.25rem; align-items: start; }
@media (min-width: 768px) { .ads-grid { grid-template-columns: 1.25fr 1fr; gap: 1.5rem; } }
.ads-side { display: grid; gap: 1.25rem; }
@media (min-width: 768px) { .ads-side { gap: 1.5rem; } }
.ad-card { padding: 14px; overflow: hidden; }
.ad-pages { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ad-pages--single { grid-template-columns: 1fr; }
.ad-page { /* posters keep their own colours; the shadow makes them look printed */
  position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in; background: var(--surface-3);
  border-radius: 10px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(16,24,40,.06), 0 1px 2px rgba(16,24,40,.08), 0 10px 22px -10px rgba(16,24,40,.35);
}
.ad-page img { width: 100%; height: auto; transition: transform .5s var(--ease); }
.ad-page:hover img { transform: scale(1.03); }
.page-chip { position: absolute; left: 8px; bottom: 8px; padding: .2rem .6rem; border-radius: 999px; font-size: .72rem; font-weight: 600; color: var(--heading); background: rgba(255,255,255,.94); box-shadow: var(--shadow-xs); }
.zoom-chip { position: absolute; right: 8px; top: 8px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--heading); background: rgba(255,255,255,.94); box-shadow: 0 2px 6px rgba(16,24,40,.15); transition: background .2s, color .2s; }
.zoom-chip svg { width: 16px; height: 16px; }
.ad-page:hover .zoom-chip { background: var(--blue-fill); color: var(--white); }
.ad-cap { padding: 1.1rem .5rem .4rem; }
.ad-cap h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: .3rem; }
.ad-cap p { margin: 0; color: var(--text); font-size: 1rem; }
.ad-meta { display: inline-block; margin-right: .4rem; padding: .05rem .5rem; border-radius: 6px; font-size: .72rem; font-weight: 600; letter-spacing: .04em; color: var(--blue-600); background: var(--blue-50); }
.ad-note { display: flex; gap: 1rem; align-items: flex-start; padding: 1.5rem; }
.ad-note .sign-ico { margin: 0; flex: none; }
.ad-note h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: .3rem; }
.ad-note p { color: var(--text); font-size: 1rem; margin-bottom: .4rem; }

/* ---------- Schools ---------- */
/* (school cards, maps, directory and school pages: see "Driving schools" at the end of this file) */
.empty-card { grid-column: 1 / -1; display: grid; justify-items: center; text-align: center; padding: 2.75rem 1.5rem; border: 1.5px dashed var(--border-strong); border-radius: var(--radius-lg); color: var(--text); background: var(--surface-2); }
.empty-card p { margin: 0; max-width: 30rem; }
.empty-title { color: var(--heading) !important; font-weight: 600; font-size: 1.15rem; margin-bottom: .35rem !important; }
.partner-cta {
  margin-top: 1.25rem; display: grid; gap: 1.25rem; align-items: center; padding: 1.75rem;
  background: var(--surface);
}
.partner-cta h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: .25rem; }
.partner-cta p { margin: 0; color: var(--text); }
@media (min-width: 900px) { .partner-cta { grid-template-columns: 1fr auto; padding: 2rem 2.25rem; } }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; gap: clamp(2.5rem, 4vw, 3rem); }
.faq-grid .section-head { margin-bottom: 0; }
@media (min-width: 900px) { .faq-grid { grid-template-columns: .9fr 1.1fr; gap: 3.5rem; align-items: start; } }
.faq-list { display: grid; gap: .75rem; }
.faq { border-radius: 16px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-xs); transition: border-color .2s, box-shadow .2s; }
.faq:hover { border-color: var(--border-strong); }
.faq[open] { border-color: var(--blue-200); box-shadow: var(--shadow-card); }
.faq summary { list-style: none; cursor: pointer; padding: 1.2rem 3.2rem 1.2rem 1.35rem; position: relative; font-weight: 600; color: var(--heading); border-radius: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 1.3rem; top: 50%; width: 11px; height: 11px; margin-top: -8px;
  border-right: 2.5px solid var(--blue-600); border-bottom: 2.5px solid var(--blue-600); transform: rotate(45deg); transition: transform .25s var(--ease);
}
.faq[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq-body { padding: 0 1.35rem 1.25rem; color: var(--text); }
.faq-body p { margin: 0; }

/* ---------- Final CTA: the one bold section ---------- */
.final-cta {
  position: relative; overflow: hidden; padding: var(--section-y) 0; text-align: center; color: var(--white);
  background: radial-gradient(700px 360px at 50% 0%, rgba(255,255,255,.14), transparent 70%), linear-gradient(135deg, #1570c9 0%, var(--blue-fill) 100%);
}
.final-cta .hero-grid-lines {
  background-image: radial-gradient(rgba(255,255,255,.16) 1.1px, transparent 1.6px);
  -webkit-mask: radial-gradient(ellipse 60% 70% at 50% 100%, #000 10%, transparent 70%); mask: radial-gradient(ellipse 60% 70% at 50% 100%, #000 10%, transparent 70%);
}
.final-inner { position: relative; display: grid; justify-items: center; }
.final-logo { width: 112px; height: 112px; border-radius: 26px; margin-bottom: 1.5rem; box-shadow: 0 0 0 4px rgba(255,255,255,.25), 0 20px 40px -10px rgba(0,20,60,.45); }
.final-cta h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(3.2rem, 13vw, 6.8rem); line-height: .9; letter-spacing: .01em; margin-bottom: .7rem; color: var(--white); }
.final-cta h2 .hl { color: #cfe8ff; }
.final-cta p { color: var(--white); font-size: 1.1rem; margin-bottom: 2rem; }
.final-cta :focus-visible { outline-color: var(--white); }
.final-cta .badge:hover { filter: drop-shadow(0 8px 16px rgba(0,20,60,.35)); }

/* ---------- Footer: very light grey ---------- */
.site-footer { background: var(--bg-footer); padding-bottom: 6rem; color: var(--text); }
.footer-grid { display: grid; gap: 2rem; padding-top: 3.5rem; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.2fr 1.2fr auto; align-items: start; } .site-footer { padding-bottom: 6.5rem; } }
.footer-brand p { color: var(--text); margin: .9rem 0 0; max-width: 22rem; }
.footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.footer-contact a, .footer-contact span { display: inline-flex; align-items: center; gap: .65rem; min-height: 44px; color: var(--ink-2); text-decoration: none; overflow-wrap: anywhere; }
.footer-contact a:hover { color: var(--blue-600); }
.footer-contact svg { width: 20px; height: 20px; flex: none; color: var(--blue-600); }
.footer-legal { margin-top: 2.75rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.footer-legal p { margin: 0 0 .4rem; color: var(--muted); font-size: .78rem; }

/* ---------- Floating WhatsApp: "Chat to us" pill ---------- */
.wa-float {
  position: fixed; right: 14px; bottom: 14px; z-index: 50; display: inline-flex; align-items: center; gap: .55rem;
  height: 52px; padding: 0 1.2rem 0 .85rem; border-radius: 999px; text-decoration: none;
  background: #25d366; color: #062b14; font-weight: 700; font-size: .98rem; line-height: 1;
  box-shadow: 0 2px 6px rgba(16,24,40,.1), 0 10px 24px -6px rgba(16,24,40,.22), 0 0 0 0 rgba(37,211,102,.5); transition: transform .2s var(--ease), opacity .25s;
  animation: wa-pulse 3s ease-out 2s 3;
}
.wa-float svg { width: 28px; height: 28px; flex: none; color: #fff; }
.wa-float:hover { transform: translateY(-2px); color: #062b14; box-shadow: 0 4px 10px rgba(16,24,40,.12), 0 14px 30px -6px rgba(16,24,40,.26), 0 0 0 4px rgba(37,211,102,.22); }
.wa-float:focus-visible { outline: 3px solid var(--blue-600); outline-offset: 3px; border-radius: 999px; }
@keyframes wa-pulse { 0% { box-shadow: 0 2px 6px rgba(16,24,40,.1), 0 10px 24px -6px rgba(16,24,40,.22), 0 0 0 0 rgba(37,211,102,.55); } 100% { box-shadow: 0 2px 6px rgba(16,24,40,.1), 0 10px 24px -6px rgba(16,24,40,.22), 0 0 0 18px rgba(37,211,102,0); } }
@media (min-width: 900px) { .wa-float { right: 24px; bottom: 24px; height: 56px; font-size: 1.02rem; } }
/* keep the bottom of the screen clear for Previous/Next while a mock test is running on phones */
@media (max-width: 899px) { html.mock-running .wa-float { opacity: 0; pointer-events: none; } }

/* ---------- Dialogs ---------- */
.modal {
  width: min(560px, calc(100% - 2rem)); max-height: calc(100% - 2rem); padding: 1.75rem; border: 1px solid var(--border);
  border-radius: 22px; background: var(--surface); color: var(--text); box-shadow: var(--shadow-pop);
}
.modal::backdrop { background: rgba(16,24,40,.55); backdrop-filter: blur(4px); }
.modal[open] { animation: pop .25s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.modal-close { position: absolute; top: .6rem; right: .6rem; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); display: grid; place-items: center; background: var(--surface); color: var(--heading); cursor: pointer; }
.modal-close:hover { border-color: var(--blue-600); color: var(--blue-600); }
.modal-close svg { width: 18px; height: 18px; }
.modal .review-text { -webkit-line-clamp: unset; display: block; font-size: 1.02rem; margin: .5rem 0 1rem; }
.dev-reply { margin-top: 1rem; padding: 1rem; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); border-left: 3px solid var(--blue-600); font-size: 1rem; }
.dev-reply p { margin: 0; }
.dev-reply .reply-head { display: flex; justify-content: space-between; gap: .5rem; font-size: .8rem; color: var(--muted); margin-bottom: .35rem; }

.modal--confirm { width: min(440px, calc(100% - 2rem)); }
.modal--confirm h3 { font-family: var(--font-display); font-weight: 400; font-size: 2.1rem; letter-spacing: .01em; margin-bottom: .4rem; }
.modal--confirm p { color: var(--text); margin-bottom: 1.5rem; }
.confirm-actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: flex-end; }
@media (max-width: 420px) { .confirm-actions .btn { flex: 1 1 100%; } }

.modal--lightbox { width: min(96vw, 1000px); max-width: none; max-height: 96vh; padding: 0; background: var(--surface); overflow: hidden; display: none; flex-direction: column; }
.modal--lightbox[open] { display: flex; }
.lb-top { display: flex; align-items: center; gap: 1rem; padding: .7rem .75rem .7rem 1.25rem; border-bottom: 1px solid var(--border); }
.lb-title { margin: 0; font-weight: 600; color: var(--heading); font-size: .95rem; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-count { margin: 0; color: var(--muted); font-size: .85rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lb-top .modal-close { position: static; flex: none; }
.lb-stage { position: relative; display: grid; place-items: center; padding: 1rem; min-height: 0; flex: 1; touch-action: pan-y; user-select: none; background: var(--surface-3); }
.lb-stage img { max-height: calc(96vh - 100px); width: auto; max-width: 100%; border-radius: 8px; -webkit-user-drag: none; box-shadow: 0 10px 30px -10px rgba(16,24,40,.35); }
.lb-arrow {
  position: absolute; top: 50%; width: 48px; height: 48px; margin-top: -24px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); color: var(--heading); box-shadow: 0 4px 12px rgba(16,24,40,.14); transition: background .2s, color .2s, border-color .2s;
}
.lb-arrow:hover { background: var(--blue-fill); color: var(--white); border-color: var(--blue-600); }
.lb-arrow svg { width: 22px; height: 22px; }
.lb-arrow--prev { left: 12px; }
.lb-arrow--next { right: 12px; }
.lb-arrow[hidden] { display: none; }

/* =========================================================
   Driving schools: cards, maps, directory, school pages
   (pages generated by scripts/build-schools.js)
   ========================================================= */
.btn--xs { min-height: 40px; padding: .45rem .9rem; font-size: .86rem; gap: .4rem; }
.btn--xs svg { width: 17px; height: 17px; }
.btn--xs:hover svg, .btn--wa:hover svg, .action-bar .btn:hover svg { transform: none; }

/* pills */
.pill { display: inline-flex; align-items: center; gap: .3rem; padding: .18rem .6rem; border-radius: 999px; font-size: .74rem; font-weight: 600; line-height: 1.4; white-space: nowrap; }
.pill svg { width: 13px; height: 13px; flex: none; }
.pill--partner { gap: .4rem; color: var(--heading); background: var(--surface); border: 1px solid var(--border-strong); }
.pill-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--blue-fill); }
.pill--classb { color: var(--green-ink); background: var(--green-50); border: 1px solid var(--green-200); }

/* avatar: initials on a road-sign-like tile, or the school's logo */
.sc-avatar {
  --av: var(--blue); --s: 56px; flex: none; width: var(--s); height: var(--s); border-radius: 16px; display: grid; place-items: center;
  font-family: var(--font-display); font-size: calc(var(--s) * .5); line-height: 1; letter-spacing: .03em; padding-top: .1em; color: var(--heading);
  background: var(--av);
  background: linear-gradient(150deg, color-mix(in srgb, var(--av) 70%, #fff), var(--av) 55%, color-mix(in srgb, var(--av) 82%, #000));
  box-shadow: 0 0 0 2px rgba(255,255,255,.95) inset, 0 0 0 4px var(--av) inset, 0 4px 12px -4px rgba(16,24,40,.3);
}
.sc-avatar--logo { background: #fff; padding: 6px; border: 1px solid var(--border); box-shadow: var(--shadow-xs); overflow: hidden; }
.sc-avatar--logo img { width: 100%; height: 100%; object-fit: contain; }
.sc-avatar--xl { --s: 84px; border-radius: 22px; }
@media (min-width: 768px) { .sc-avatar--xl { --s: 112px; border-radius: 26px; } }

/* school cards (directory, home, "nearby") */
.dir-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.sc[hidden] { display: none; }
.school-card { height: 100%; display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.sc:hover .school-card, .sc.is-hl .school-card { transform: translateY(-3px); border-color: var(--blue-200); box-shadow: var(--shadow-hover); }
.sc--partner .school-card { border-color: var(--border-strong); }
.sc-main { display: flex; gap: .95rem; align-items: flex-start; padding: 1.25rem 1.25rem .85rem; color: inherit; text-decoration: none; flex: 1; border-radius: var(--radius) var(--radius) 0 0; }
.sc-main:hover { color: inherit; }
.sc-text { display: grid; gap: .3rem; min-width: 0; }
.sc-name { margin: 0; font-family: var(--font-body); font-size: 1.06rem; font-weight: 600; line-height: 1.3; color: var(--heading); }
.sc-main:hover .sc-name { color: var(--blue-600); }
.sc-area { display: flex; flex-wrap: nowrap; align-items: flex-start; gap: .3rem; color: var(--muted); font-size: .9rem; }
.sc-area svg { width: 15px; height: 15px; flex: none; margin-top: .2rem; color: var(--blue-600); }
.sc-dist { color: var(--ink-2); font-weight: 500; }
.sc-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .1rem; }
.sc-note { font-size: .78rem; color: var(--muted); font-style: italic; }
.sc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding: .8rem 1.25rem 1.05rem; border-top: 1px solid var(--border); }
.sc-view { margin-left: auto; display: inline-flex; align-items: center; gap: .35rem; min-height: 40px; font-weight: 600; font-size: .9rem; text-decoration: none; white-space: nowrap; }
.sc-view svg { width: 17px; height: 17px; transition: transform .2s var(--ease); }
.sc-view:hover svg { transform: translateX(3px); }

/* ---------- maps ---------- */
.school-map {
  position: relative; z-index: 0; overflow: hidden; isolation: isolate;
  border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface-3);
  box-shadow: var(--shadow-card);
}
.school-map--dir { height: clamp(340px, 58vh, 560px); }
.school-map--home { height: clamp(260px, 42vh, 380px); }
.school-map--small { height: 240px; border-radius: 14px; box-shadow: none; }
.map-loading {
  position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: .92rem; text-align: center; padding: 1.5rem;
  background-image: linear-gradient(rgba(16,24,40,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(16,24,40,.05) 1px, transparent 1px);
  background-size: 40px 40px;
}
.map-note {
  position: absolute; z-index: 800; left: 50%; top: 14px; transform: translateX(-50%); width: max-content; max-width: calc(100% - 28px);
  display: flex; align-items: center; gap: .5rem; margin: 0; padding: .55rem 1rem; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--border); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: var(--heading); font-size: .86rem; font-weight: 500; line-height: 1.35; box-shadow: 0 6px 20px rgba(16,24,40,.12); pointer-events: none;
}
.map-note svg { width: 16px; height: 16px; flex: none; color: var(--blue-600); }
.map-note--soft { top: auto; bottom: 14px; font-size: .8rem; color: var(--text); }

/* Leaflet theme: standard light OpenStreetMap tiles, slightly softened so pins stand out */
.school-map.leaflet-container { background: var(--surface-3); font-family: var(--font-body); }
.school-map .leaflet-tile-pane { filter: saturate(.8) contrast(.96) brightness(1.02); }
.school-map .leaflet-bar { border: 1px solid var(--border); box-shadow: 0 4px 14px rgba(16,24,40,.12); border-radius: 12px; overflow: hidden; }
.school-map .leaflet-bar a { width: 40px; height: 40px; line-height: 38px; background: var(--surface); color: var(--heading); border-bottom-color: var(--border); font-size: 20px; }
.school-map .leaflet-bar a:hover { background: var(--surface-2); color: var(--blue-600); }
.school-map .leaflet-control-attribution { background: var(--glass); color: var(--muted); font-size: 10.5px; border-radius: 8px 0 0 0; }
.school-map .leaflet-control-attribution a { color: var(--blue-600); }
.dbw-pin-wrap { background: none; border: 0; }
.dbw-pin { display: block; transform-origin: 50% 100%; transition: transform .2s var(--ease), filter .2s; filter: drop-shadow(0 4px 5px rgba(16,24,40,.35)); }
.dbw-pin svg { display: block; }
.dbw-pin svg path:first-child { fill: #667085; stroke: #fff; stroke-width: 2; transition: fill .2s; }
.dbw-pin--partner svg path:first-child { fill: var(--blue-600); stroke: #fff; stroke-width: 2.2; }
.dbw-pin--partner { filter: drop-shadow(0 0 6px rgba(0,94,226,.35)) drop-shadow(0 4px 5px rgba(16,24,40,.35)); }
.leaflet-marker-icon:hover .dbw-pin, .is-hl .dbw-pin { transform: scale(1.28) translateY(-3px); }
.is-hl .dbw-pin svg path:first-child { fill: var(--blue-500); stroke: #fff; }
.is-hl.leaflet-marker-icon { z-index: 9999 !important; }
.dbw-cluster {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  font-family: var(--font-display); font-size: 1.3rem; color: var(--white); padding-top: 2px;
  background: #475467; box-shadow: 0 0 0 3px #fff, 0 0 0 7px rgba(71,84,103,.22), 0 6px 14px rgba(16,24,40,.25);
  transition: transform .2s var(--ease);
}
.dbw-cluster--partner { background: var(--blue-fill); color: var(--white); box-shadow: 0 0 0 3px #fff, 0 0 0 7px rgba(0,94,226,.22), 0 6px 14px rgba(16,24,40,.25); }
.is-hl .dbw-cluster { transform: scale(1.18); box-shadow: 0 0 0 3px #fff, 0 0 0 8px rgba(0,94,226,.35), 0 8px 18px rgba(16,24,40,.25); }
.dbw-me { display: block; width: 22px; height: 22px; border-radius: 50%; background: var(--blue-fill); box-shadow: 0 0 0 4px #fff, 0 0 0 12px rgba(0,94,226,.2); }

/* preview card (Leaflet popup) */
.dbw-popup .leaflet-popup-content-wrapper { background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-pop); padding: 0; }
.dbw-popup .leaflet-popup-content { margin: 0; min-width: 230px; font-size: .92rem; line-height: 1.45; }
.dbw-popup .leaflet-popup-tip { background: var(--surface); box-shadow: 0 4px 8px rgba(16,24,40,.08); }
.dbw-popup a.leaflet-popup-close-button { width: 34px; height: 34px; top: 4px; right: 4px; font-size: 22px; line-height: 32px; color: var(--muted); }
.dbw-popup a.leaflet-popup-close-button:hover { color: var(--heading); }
.pop { padding: 1rem 1rem .85rem; }
.pop-head { display: flex; gap: .75rem; align-items: flex-start; padding-right: 1.4rem; }
.pop .sc-avatar { --s: 46px; border-radius: 13px; }
.pop p { margin: 0; }
.pop-name { font-weight: 600; color: var(--heading); font-size: 1rem; line-height: 1.25; margin-bottom: .1rem !important; }
.pop-area { color: var(--muted); font-size: .84rem; margin-bottom: .35rem !important; }
.pop-actions { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .85rem; }
.pop-actions .btn { flex: 1 1 auto; }
.pop .btn--ghost { color: var(--heading); }
.pop .btn--ghost:hover { color: var(--blue-600); }
/* Leaflet's ".leaflet-container a" colour would win over single-class rules, hence the .pop prefix */
.pop .btn--primary, .pop .btn--primary:hover { color: var(--white); }
.pop .btn--wa, .pop .btn--wa:hover { color: #062b14; }
.pop .pop-link { display: flex; align-items: center; justify-content: center; gap: .35rem; margin-top: .6rem; min-height: 40px; border-radius: 999px; font-weight: 600; text-decoration: none; color: var(--blue-600); background: var(--blue-50); }
.pop .pop-link:hover { color: var(--blue-700); background: var(--blue-100); }
.pop-link svg { width: 16px; height: 16px; }

/* ---------- page hero (directory + school pages) ---------- */
.page-hero {
  position: relative; overflow: hidden; padding: calc(var(--header-h) + 1.5rem) 0 2.25rem;
  background: radial-gradient(800px 420px at 85% 0%, rgba(73,169,246,.14), transparent 60%), var(--bg-tint);
}
.page-hero .container { position: relative; }
.page-hero h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.9rem, 12vw, 5.6rem); line-height: .92; letter-spacing: .01em; margin-bottom: .8rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .5rem; margin: 0 0 1.25rem; padding: 0; font-size: .84rem; color: var(--muted); }
.crumbs li { display: inline-flex; align-items: center; gap: .5rem; min-width: 0; }
.crumbs li + li::before { content: "/"; color: var(--border-strong); }
.crumbs a { color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; min-height: 32px; }
.crumbs a:hover { color: var(--blue-600); }
.crumbs [aria-current] { color: var(--heading); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }

/* ---------- directory ---------- */
.page-dir .page-hero { padding-bottom: 1.5rem; }
.dir-map-sec { background: var(--bg); padding-top: 1.5rem; padding-bottom: .5rem; }
.dir-list-sec { padding-top: 2.5rem; }
.dir-tools { display: grid; gap: .85rem; margin-bottom: 1rem; }
@media (min-width: 900px) { .dir-tools { grid-template-columns: minmax(0, 1fr) auto; align-items: center; } }
.search { position: relative; display: block; }
.search svg { position: absolute; left: 1.1rem; top: 50%; width: 20px; height: 20px; margin-top: -10px; color: var(--muted); pointer-events: none; }
.search input {
  width: 100%; min-height: 54px; padding: .8rem 1.2rem .8rem 3.1rem; border-radius: 999px; font: inherit; font-size: 1rem; color: var(--heading);
  background: var(--surface); border: 1.5px solid var(--border-strong); box-shadow: var(--shadow-xs); transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none;
}
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; border-color: var(--blue-600); box-shadow: var(--ring-blue); }
.dir-filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: .5rem 1.05rem; border-radius: 999px; cursor: pointer;
  background: var(--surface); border: 1.5px solid var(--border-strong); color: var(--ink-2); font-size: .9rem; font-weight: 500; box-shadow: var(--shadow-xs);
  transition: border-color .2s, background .2s, color .2s;
}
.chip svg { width: 16px; height: 16px; flex: none; color: var(--blue-600); }
.chip:hover { border-color: var(--blue-600); color: var(--blue-600); }
.chip[aria-pressed="true"] { background: var(--blue-fill); border-color: var(--blue-600); color: var(--white); }
.chip[aria-pressed="true"] svg { color: var(--white); }
.chip:disabled { opacity: .6; cursor: progress; }
.chip[hidden] { display: none; }
.dir-status { display: grid; gap: .5rem; margin-bottom: 1.1rem; }
.dir-count { margin: 0; color: var(--muted); font-size: .9rem; }
.dir-msg { margin: 0; padding: .7rem 1rem; border-radius: 12px; background: var(--blue-50); border: 1px solid var(--blue-200); color: var(--heading); font-size: .92rem; }
.dir-msg[hidden], #dir-empty[hidden] { display: none; }
#dir-empty { gap: .6rem; }
#dir-empty .btn { margin-top: .6rem; }

/* ---------- brand icons + round social buttons (one style everywhere) ---------- */
.bi { flex: none; }
.social-row { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: 0; padding: 0; }
.social-row--center { justify-content: center; margin-top: 1.6rem; }
.social-btn, .socials a {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  background: #fff; border: 1px solid var(--border); box-shadow: 0 1px 2px rgba(16,24,40,.06), 0 4px 12px -4px rgba(16,24,40,.16);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s;
}
.social-btn:hover, .socials a:hover { transform: translateY(-2px); border-color: var(--border-strong); box-shadow: 0 2px 4px rgba(16,24,40,.08), 0 10px 20px -6px rgba(16,24,40,.24); }
.social-btn svg, .socials a svg { width: 22px; height: 22px; }
.final-cta .social-btn { border-color: rgba(255,255,255,.7); }
.follow { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; margin-top: 1.1rem; }
.follow-label { font-size: .86rem; font-weight: 600; color: var(--muted); }
.footer-brand .social-row { margin-top: 1.1rem; }
/* inside text buttons, a brand icon sits in the same white circle, so its colours always show */
.btn svg.bi { width: 28px; height: 28px; padding: 5px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px rgba(16,24,40,.1), 0 1px 2px rgba(16,24,40,.1); }
.btn--xs svg.bi { width: 24px; height: 24px; padding: 4px; }
.btn--lg svg.bi, .action-bar .btn svg.bi { width: 30px; height: 30px; padding: 5px; }
.btn:hover svg.bi { transform: none; }
@media (max-width: 599px) { .action-bar .btn svg.bi { width: 26px; height: 26px; padding: 4px; } }
.wa-float svg.bi { width: 34px; height: 34px; padding: 6px; border-radius: 50%; background: #fff; }

/* ---------- home preview ---------- */
.home-schools { display: grid; gap: 1.25rem; }
.home-featured { display: grid; gap: 1rem; justify-items: start; align-content: start; }
.home-featured-label { margin: 0; font-weight: 600; color: var(--muted); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; }
.dir-list--home { width: 100%; }
/* featured partner: the school's wide logo on a white card (never cropped) */
.partner-feature { width: 100%; display: grid; gap: 1rem; padding: 1.25rem; border-color: var(--blue-200); }
@media (min-width: 600px) { .partner-feature { padding: 1.5rem 1.6rem; } }
.pf-logo { display: grid; place-items: center; padding: 1.25rem 1.5rem; border-radius: 14px; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-xs); }
.pf-logo img { width: 100%; max-width: 380px; height: auto; object-fit: contain; }
.pf-text { display: grid; justify-items: start; gap: .4rem; }
.pf-text .sc-name { font-size: 1.2rem; }
.pf-text .sc-name a { color: inherit; text-decoration: none; }
.pf-text .sc-name a:hover { color: var(--blue-600); }
.pf-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
@media (min-width: 1100px) {
  .home-schools { grid-template-columns: 1fr 1fr; align-items: stretch; gap: 1.5rem; }
  .school-map--home { height: auto; min-height: 470px; }
  .dir-list--home { grid-template-columns: 1fr 1fr; }
}

/* DriveBW block */
.dbw-sec { padding-block: clamp(2.5rem, 5vw, 3.75rem); }
.dbw-block { display: grid; gap: 1.25rem; padding: 1.75rem; position: relative; overflow: hidden; background: var(--surface); }
.dbw-icon { width: 72px; height: 72px; border-radius: 18px; box-shadow: var(--shadow-card); }
.dbw-copy h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.1rem, 7vw, 3.3rem); line-height: .95; letter-spacing: .01em; margin-bottom: .7rem; max-width: 34rem; }
.dbw-copy p:not(.eyebrow) { color: var(--text); max-width: 36rem; margin-bottom: 1.2rem; }
@media (min-width: 900px) {
  .dbw-block { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 2rem; padding: 2.5rem 2.75rem; }
  .dbw-badges { flex-direction: column; align-items: flex-start; }
}

/* nearby + claim */
.nearby-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem 1rem; margin-bottom: 1.25rem; }
.nearby-head h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.2rem, 7vw, 3.2rem); line-height: 1; margin: 0; }
.claim-box { margin-top: 1.5rem; }

/* ---------- school pages + directory: plain header, plain cards ----------
   One heading style (.sp-card h2), one body style (.sp-text), one small-label style (.sp-label / .sp-small).
   The school's own colour (--school-accent) only touches the partner-badge dot and link underlines. */
.page-hero--plain { background: var(--bg-alt); padding: calc(var(--header-h) + 1.25rem) 0 2rem; border-bottom: 1px solid var(--border); }
.page-hero--plain h1 { font-family: var(--font-body); font-weight: 700; font-size: clamp(1.875rem, 4.2vw, 2.875rem); line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5rem; color: var(--heading); }
.page-hero--plain .lede { margin: 0; }
.has-accent .pill-dot { background: var(--school-accent); }
.has-accent .school-main a:not(.btn):not(.leaflet-container a) { text-decoration: underline; text-decoration-color: var(--school-accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }

.sh-head { display: flex; gap: 1rem; align-items: center; margin-bottom: 1.25rem; }
@media (min-width: 768px) { .sh-head { gap: 1.25rem; } }
.sh-title { display: grid; justify-items: start; gap: .35rem; min-width: 0; }
.page-hero .sh-title h1 { margin: 0; overflow-wrap: anywhere; }
.sh-tagline { margin: 0; font-style: italic; color: var(--text); }
.sh-meta { display: flex; flex-wrap: nowrap; align-items: flex-start; gap: .4rem; margin: 0; color: var(--text); font-size: .95rem; }
.sh-meta > svg { width: 16px; height: 16px; flex: none; margin-top: .25rem; color: var(--muted); }
.page-hero--school .sc-avatar--xl { --s: 76px; border-radius: 18px; }
@media (min-width: 768px) { .page-hero--school .sc-avatar--xl { --s: 96px; border-radius: 22px; } }

/* header buttons: inline on desktop; a bar fixed to the bottom of the screen on phones */
.action-bar { display: flex; flex-wrap: wrap; gap: .6rem; }
.action-bar .btn { min-height: 48px; }
.sm-only { display: none; }
@media (max-width: 767px) {
  .action-bar {
    position: fixed; z-index: 70; left: 0; right: 0; bottom: 0; flex-wrap: nowrap; gap: .5rem;
    padding: .6rem .75rem calc(.6rem + env(safe-area-inset-bottom));
    background: var(--surface); /* solid: a blur behind a fixed bar is costly on slow phones */
    border-top: 1px solid var(--border); box-shadow: 0 -8px 24px rgba(16,24,40,.08);
  }
  .action-bar .btn { flex: 1 1 0; min-width: 0; min-height: 50px; padding: .5rem .4rem; font-size: .9rem; gap: .35rem; }
  .action-bar .btn svg.bi { width: 24px; height: 24px; padding: 4px; }
  .action-bar .btn:hover { transform: none; }
  .lg-only { display: none; } .sm-only { display: inline; }
  .page-school .site-footer { padding-bottom: calc(6.5rem + env(safe-area-inset-bottom)); }
  html.nav-open .action-bar { display: none; }
}

.school-body { padding-top: 2rem; }
.school-layout { display: grid; gap: 1.25rem; align-items: start; }
.school-main { display: grid; gap: 1.25rem; min-width: 0; }
.school-side { display: grid; gap: 1.25rem; align-content: start; min-width: 0; }
@media (min-width: 960px) {
  .school-layout { grid-template-columns: minmax(0, 1fr) 360px; gap: 2rem; }
}

.sp-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-xs); padding: 1.25rem; min-width: 0; }
@media (min-width: 600px) { .sp-card { padding: 1.5rem 1.75rem; } }
.sp-card h2 { font-family: var(--font-body); font-size: 1.25rem; font-weight: 600; line-height: 1.3; letter-spacing: 0; color: var(--heading); margin: 0 0 1rem; }
.sp-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem 1rem; margin-bottom: 1rem; }
.sp-head h2 { margin: 0; }
.sp-label, .sp-small { margin: 0; font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sp-small { margin-bottom: .4rem; }
.sp-text { margin: 0; color: var(--text); }
.sp-note { margin: .85rem 0 0; font-size: .85rem; color: var(--muted); }
.sp-hint { margin: .6rem 0 0; text-align: center; font-size: .85rem; color: var(--muted); }
.sp-list { margin: 0; padding-left: 1.15rem; display: grid; gap: .3rem; color: var(--text); }
.sp-card--soon { border-style: dashed; box-shadow: none; }

/* flyers: one large flyer, or a swipeable carousel */
.flyer-carousel { position: relative; }
.fc-track { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 0 18px; }
.fc-track::-webkit-scrollbar { display: none; }
.fc-slide.ad-page {
  flex: 0 0 min(100%, 520px); margin: 0 auto; scroll-snap-align: center; border-radius: 12px; background: var(--surface);
  box-shadow: 0 1px 3px rgba(16,24,40,.08), 0 16px 36px -14px rgba(16,24,40,.3);
}
.fc-slide img { display: block; width: 100%; height: auto; }
.fc-slide:hover img { transform: none; }
.is-multi .fc-track { padding-inline: max(0px, calc((100% - 520px) / 2)); }
.fc-arrow { position: absolute; top: calc(50% - 9px); transform: translateY(-50%); z-index: 2; }
.fc-arrow--prev { left: .5rem; } .fc-arrow--next { right: .5rem; }
.fc-dots { display: flex; justify-content: center; gap: .15rem; }
.fc-dots button { width: 28px; height: 28px; display: grid; place-items: center; padding: 0; border: 0; background: none; cursor: pointer; }
.fc-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong); transition: background .2s, transform .2s; }
.fc-dots [aria-current] span { background: var(--blue-fill); transform: scale(1.25); }

/* special offer: a plain price table per group */
.offer-cols { display: grid; gap: 1.5rem; }
@media (min-width: 1100px) { .offer-cols { grid-template-columns: 1fr 1fr; gap: 2rem; } }
.offer-col h3.sp-small { margin: 0 0 .35rem; font-size: 1rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--heading); }
.price-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.price-table th { padding: 0 .75rem .5rem 0; text-align: left; font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--border); }
.price-table td { padding: .65rem .75rem .65rem 0; vertical-align: top; color: var(--ink-2); border-bottom: 1px solid var(--border); }
.price-table tr:last-child td { border-bottom: 0; }
.price-table .num { padding-right: 0; text-align: right; white-space: nowrap; }
.price-table .dur { white-space: nowrap; color: var(--muted); }
.price-table s { margin-right: .3rem; font-size: .85em; color: var(--muted); }
.price-table strong { font-weight: 700; color: var(--heading); }

/* video */
.video-frame { width: 100%; max-width: 320px; margin-inline: auto; border-radius: 12px; overflow: hidden; background: #000; }
.video-frame video { display: block; width: 100%; height: 100%; background: #000; }

/* branches: cards next to one map */
#branches { scroll-margin-top: calc(var(--header-h) + 16px); }
.branches-layout { display: grid; gap: 1rem; }
@media (min-width: 700px) { .branches-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: start; } }
.branch-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.branch { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .1rem 1rem; padding: .8rem 1rem; border: 1px solid var(--border); border-radius: 12px; }
.branch h3 { grid-column: 1; margin: 0; font-size: 1rem; font-weight: 600; color: var(--heading); }
.branch p { grid-column: 1; margin: 0; font-size: .875rem; color: var(--text); }
.branch .btn { grid-column: 2; grid-row: 1 / span 3; min-height: 40px; padding: .4rem .85rem; font-size: .88rem; }
.school-map--branches { height: 300px; border-radius: 12px; }
@media (min-width: 700px) { .school-map--branches { height: 100%; min-height: 300px; } }

/* contact card (sticky on desktop) */
.contact-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-bottom: 1rem; }
.contact-actions .btn { width: 100%; min-height: 46px; padding: .5rem .75rem; font-size: .92rem; }
@media (max-width: 767px) { .contact-actions { display: none; } } /* the bottom bar has them */
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; }
.contact-list li { display: flex; align-items: flex-start; gap: .65rem; padding: .55rem 0; border-top: 1px solid var(--border); font-size: .95rem; }
.contact-list li:first-child { border-top: 0; padding-top: 0; }
.contact-list li.contact-sub { padding: .85rem 0 .1rem; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.contact-list li.contact-sub + li { border-top: 0; }
.contact-list svg { width: 18px; height: 18px; flex: none; margin-top: .2rem; color: var(--muted); }
.contact-list a { color: var(--ink-2); text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--blue-600); text-decoration: underline; }
.contact-kind { margin-left: .25rem; font-size: .82rem; color: var(--muted); }
.contact-card .social-row { margin-top: 1rem; }

/* two same-coloured sections in a row: don't double the space between them */
.school-body + .dbw-sec, .dir-list-sec + .dbw-sec { padding-top: 0; }

/* ---------- brand icon colours (a class on the outer svg; the sprite path inherits it) ---------- */
.bi-i-wa { fill: #25D366; } .bi-i-fb { fill: #1877F2; } .bi-i-ig { fill: #E4405F; } .bi-i-tt { fill: #000; }
.bi-i-phone { fill: #005EE2; } .bi-i-directions { fill: #EA4335; }
.si { display: block; flex: none; }

/* ---------- dark mode button: bottom-left, mirrors the WhatsApp button on the right ---------- */
.theme-toggle {
  position: fixed; left: 14px; bottom: 14px; z-index: 50; width: 52px; height: 52px; padding: 0; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--heading); cursor: pointer;
  box-shadow: 0 2px 6px rgba(16,24,40,.1), 0 10px 24px -6px rgba(16,24,40,.22); transition: transform .2s var(--ease), opacity .25s;
}
.theme-toggle:hover { transform: translateY(-2px); }
.theme-toggle:focus-visible { outline: 3px solid var(--blue-600); outline-offset: 3px; }
.theme-toggle svg { width: 24px; height: 24px; }
.tt-sun { display: none; }
@media (min-width: 900px) { .theme-toggle { left: 24px; bottom: 24px; width: 56px; height: 56px; } }
html.nav-open .theme-toggle { opacity: 0; pointer-events: none; }
@media (max-width: 899px) { html.mock-running .theme-toggle { opacity: 0; pointer-events: none; } }
@media (max-width: 767px) { .page-school .theme-toggle { bottom: calc(82px + env(safe-area-inset-bottom)); } }

/* =========================================================
   Dark theme: <html data-theme="dark">, set by the button (and before paint by the <head> script)
   ========================================================= */
:root[data-theme="dark"] {
  color-scheme: dark;
  /* pure black: page #000, cards #0A0A0A with a #1F1F1F border, text #FFF, secondary #A3A3A3.
     DriveBW blue is kept only for buttons (--blue-fill) and links (--blue-600). */
  --bg: #000000; --bg-alt: #000000; --bg-tint: #000000; --bg-footer: #000000;
  --surface: #0A0A0A; --surface-2: #111111; --surface-3: #1A1A1A;
  --border: #1F1F1F; --border-strong: #2E2E2E;
  --heading: #FFFFFF; --ink-2: #FFFFFF; --text: #FFFFFF; --muted: #A3A3A3;
  --blue-500: #FFFFFF; --blue-600: #6AA6FF; --blue-700: #9CC4FF;
  --blue-50: #111111; --blue-100: #1F1F1F; --blue-200: #2E2E2E;
  --blue-fill: #005EE2; --blue-fill-hover: #1A70F0;
  --green-ink: #5FD39A; --green-50: #0D1A12; --green-200: #1F3A2A;
  --red-ink: #FF8A80; --red-50: #1A0D0D; --red-200: #3A1F1F;
  --amber-ink: #F7B955; --amber-50: #1A1408;
  --hover-tint: #111111; --glass: rgba(0, 0, 0, .9);
  --asphalt: #2A2A2A;
  --shadow-xs: 0 1px 2px rgba(0,0,0,.6);
  --shadow-card: 0 1px 2px rgba(0,0,0,.6);
  --shadow-hover: 0 2px 4px rgba(0,0,0,.6), 0 12px 28px rgba(0,0,0,.6);
  --shadow-pop: 0 4px 8px rgba(0,0,0,.6), 0 24px 56px rgba(0,0,0,.7);
  --ring-blue: 0 0 0 4px rgba(106,166,255,.25);
}
[data-theme="dark"] body { background: var(--bg); color: var(--text); }
[data-theme="dark"] .tt-moon { display: none; }
[data-theme="dark"] .tt-sun { display: block; color: #FDCB52; }
[data-theme="dark"] .tt-ink { fill: #fff; }                          /* TikTok on a dark circle */
[data-theme="dark"] .bi-i-tt { fill: #fff; }
[data-theme="dark"] .bi-i-phone { fill: #6AA6FF; }                   /* lighter handset on dark cards… */
[data-theme="dark"] .btn .bi-i-phone, [data-theme="dark"] .wa-float .bi { fill: #005EE2; } /* …but not inside the white badges */
[data-theme="dark"] .btn .bi-i-wa, [data-theme="dark"] .wa-float .bi-i-wa { fill: #25D366; }
[data-theme="dark"] .social-btn, [data-theme="dark"] .socials a { background: var(--surface-2); border-color: var(--border-strong); }
[data-theme="dark"] .final-cta .social-btn { background: #fff; }      /* white circles read better on the blue band */
[data-theme="dark"] .final-cta .social-btn .tt-ink { fill: #000; }
[data-theme="dark"] .btn--ghost { color: var(--heading); }
[data-theme="dark"] .btn--primary, [data-theme="dark"] .btn--primary:hover { color: #fff; }
[data-theme="dark"] .theme-toggle { box-shadow: 0 2px 6px rgba(0,0,0,.4), 0 10px 24px -6px rgba(0,0,0,.6); }
@media (max-width: 767px) { [data-theme="dark"] .action-bar { box-shadow: 0 -8px 24px rgba(0,0,0,.4); } }
[data-theme="dark"] .modal::backdrop { background: rgba(0,0,0,.65); }
[data-theme="dark"] .nav-scrim { background: rgba(0,0,0,.55); }
[data-theme="dark"] .stats { border-color: var(--border); }
[data-theme="dark"] .hero-grid-lines { opacity: .35; }
[data-theme="dark"] .ad-page { box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 10px 22px -10px rgba(0,0,0,.6); }
[data-theme="dark"] .fc-slide.ad-page { box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 16px 36px -14px rgba(0,0,0,.7); }
[data-theme="dark"] .quiz-figure, [data-theme="dark"] .rv-img, [data-theme="dark"] .study-note img { border-color: var(--border-strong); } /* sign pictures stay on white */
/* maps: darker tiles, dark controls and pop-ups */
[data-theme="dark"] .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.92) contrast(.88) saturate(.7); }
[data-theme="dark"] .school-map .leaflet-bar a { background: var(--surface-2); color: var(--heading); border-color: var(--border); }
[data-theme="dark"] .leaflet-container a.leaflet-popup-close-button { color: var(--muted); }
[data-theme="dark"] .leaflet-control-attribution a { color: var(--blue-600); }
[data-theme="dark"] .dbw-tip { background: var(--surface); color: var(--heading); border-color: var(--border); }
[data-theme="dark"] .leaflet-tooltip-top.dbw-tip::before { border-top-color: var(--surface); }

/* ---------- footer legal links + disclaimer; FAQ badges; "free to use" note ---------- */
.footer-links { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin: 0 0 .75rem; padding: 0; }
.footer-links a { display: inline-flex; align-items: center; min-height: 36px; color: var(--ink-2); font-size: .88rem; font-weight: 500; text-decoration: none; }
.footer-links a:hover { color: var(--blue-600); text-decoration: underline; }
.footer-legal .footer-disclaimer { color: var(--text); font-size: .82rem; }
.faq-badges { margin-top: .9rem; --badge-h: 44px; }
.final-cta .final-note { margin: -1rem 0 1.75rem; font-size: .95rem; opacity: .9; }
.stat-num--word { letter-spacing: .02em; }

/* pure black: nav and footer black, no blue decoration (blue only on buttons and links) */
[data-theme="dark"] .site-header::before { background: rgba(0,0,0,.92); }
[data-theme="dark"] .site-header, [data-theme="dark"] .site-footer, [data-theme="dark"] .nav-links { background-color: #000; }
[data-theme="dark"] .card, [data-theme="dark"] .sp-card { background: #0A0A0A; border-color: #1F1F1F; }
[data-theme="dark"] .eyebrow, [data-theme="dark"] .step-num, [data-theme="dark"] .study-eyebrow { color: #A3A3A3; }
[data-theme="dark"] .hl, [data-theme="dark"] .final-cta h2 .hl { color: #FFFFFF; }
[data-theme="dark"] .final-cta { background: #000; border-top: 1px solid #1F1F1F; }
[data-theme="dark"] .final-cta .hero-grid-lines, [data-theme="dark"] .hero-bg { display: none; }
[data-theme="dark"] .page-hero, [data-theme="dark"] .page-hero--plain, [data-theme="dark"] .hero { background: #000; }
[data-theme="dark"] .phone { box-shadow: 0 0 0 1.5px #3a3a3a, 0 40px 70px -28px rgba(0,0,0,.8); }
[data-theme="dark"] .brand img { box-shadow: 0 0 0 1px #1F1F1F; }
[data-theme="dark"] .stat-num, [data-theme="dark"] .result-cta, [data-theme="dark"] .price-list dd { color: #FFFFFF; }
[data-theme="dark"] .mock-cta { background: #0A0A0A; border-color: #1F1F1F; }

/* right column: branches (small map + list), contact, socials */
.school-map--side { height: 220px; border-radius: 12px; margin-bottom: .9rem; }
.school-side .branch-list { gap: 0; }
.school-side .branch { display: block; padding: .7rem 0; border: 0; border-top: 1px solid var(--border); border-radius: 0; }
.school-side .branch:first-child { border-top: 0; padding-top: 0; }
.school-side .branch h3 { font-size: .98rem; }
.school-side .branch p { margin: .1rem 0 0; }
.branch-dir { display: inline-flex; align-items: center; gap: .35rem; margin-top: .35rem; min-height: 32px; font-size: .9rem; font-weight: 600; color: var(--blue-600); text-decoration: none; }
.branch-dir:hover { text-decoration: underline; }
.branch-dir svg { width: 18px; height: 18px; flex: none; }
.social-btn--static { cursor: default; }
.social-btn--static:hover { transform: none; }
.home-all-btn { margin-top: .25rem; }
.feature .premium-line { margin-top: .5rem; font-size: .86rem; font-weight: 600; color: var(--muted); }

/* ---------- hero H1 kicker (the H1's keyword line, visible) ---------- */
.hero-kicker { display: block; margin-bottom: .9rem; font-family: var(--font-body); font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; line-height: 1.4; color: var(--blue-600); }
[data-theme="dark"] .hero-kicker { color: #A3A3A3; }

/* ---------- pricing ---------- */
.price-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .price-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .price-grid { grid-template-columns: repeat(5, 1fr); gap: 1rem; } }
.price-card { position: relative; display: flex; flex-direction: column; gap: .5rem; padding: 1.5rem 1.25rem 1.25rem; }
.price-card--hl { border: 2px solid var(--blue-fill); }
.pc-badge { position: absolute; top: -.7rem; left: 1.25rem; padding: .15rem .65rem; border-radius: 999px; font-size: .72rem; font-weight: 700; color: #fff; background: var(--blue-fill); }
.pc-name { margin: 0; font-size: 1.05rem; font-weight: 600; color: var(--heading); }
.pc-price { margin: 0; font-family: var(--font-display); font-size: 2.6rem; line-height: 1; color: var(--heading); }
.pc-per { margin-left: .3rem; font-family: var(--font-body); font-size: .9rem; color: var(--muted); }
.pc-extra { margin: 0; font-size: .82rem; font-weight: 600; color: var(--green-ink); }
.pc-feat { list-style: none; margin: .25rem 0 .75rem; padding: 0; display: grid; gap: .35rem; align-content: start; }
.pc-btn { margin-top: auto; }
.pc-feat li { display: flex; align-items: center; gap: .45rem; font-size: .92rem; color: var(--ink-2); }
.pc-tick { width: 16px; height: 16px; flex: none; color: var(--green); }
.pc-btn { width: 100%; }
.pricing-note { max-width: 46rem; margin: 1.5rem auto 0; text-align: center; font-size: .82rem; color: var(--muted); }
.pricing-sec + .ads-sec { padding-top: 0; }

/* ---------- guide article ---------- */
.guide-narrow { max-width: 780px; }
.guide-hero h1 { max-width: 22ch; }
.guide-toc { margin-top: 1.5rem; padding: 1rem 1.25rem; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.guide-toc ol { margin: .4rem 0 0; padding-left: 1.2rem; display: grid; gap: .2rem; }
.guide-toc a { color: var(--ink-2); }
.guide section { margin-bottom: 2.5rem; scroll-margin-top: calc(var(--header-h) + 16px); }
.guide h2 { font-family: var(--font-body); font-size: clamp(1.35rem, 3vw, 1.7rem); font-weight: 700; line-height: 1.25; letter-spacing: -.01em; color: var(--heading); margin: 0 0 .8rem; }
.guide h3 { font-size: 1.05rem; font-weight: 600; color: var(--heading); margin: 0 0 .4rem; }
.guide p, .guide li { color: var(--text); line-height: 1.7; }
.guide p { margin: 0 0 .9rem; }
.guide-cards, .guide-cols { display: grid; gap: 1rem; margin-bottom: 1rem; }
@media (min-width: 700px) { .guide-cards, .guide-cols { grid-template-columns: 1fr 1fr; } }
.guide-list, .guide-tips { margin: 0; padding-left: 1.25rem; display: grid; gap: .3rem; }
.guide-tips { gap: .6rem; }
.guide-cta-card .btn { margin: .25rem .4rem .25rem 0; }
.guide .faq-list { display: grid; gap: .75rem; }
.guide-download { text-align: left; }

/* ---------- 404 ---------- */
.nf { padding-bottom: 4rem; }
.nf-actions .btn { margin: .3rem .4rem .3rem 0; }
