/* ===========================================================================
   Mancunian Way Driving School — shared stylesheet
   Authored 2026-10-06. Used by BOTH the static site and the Node app.
   If you edit one copy, copy it to the other (see notes.md § Drift).

   Design vernacular: UK road signage and road surface.
   - Asphalt darks, concrete warm-greys, L-plate red, indicator amber,
     motorway-sign blue, primary-route green.
   - Dashed centre lines used as rules and dividers.
   - Overpass for headings (descended from Highway Gothic, so it reads as
     signage); Inter for body text.
   =========================================================================== */

:root {
  /* --- surface --------------------------------------------------------- */
  --asphalt:    #1a1e23;
  --asphalt-2:  #24292f;
  --asphalt-3:  #343b43;
  --concrete:   #f5f3ef;
  --concrete-2: #e9e5dd;
  --concrete-3: #d6d1c7;
  --ink:        #171a1d;
  --ink-soft:   #555c64;

  /* --- accents --------------------------------------------------------- */
  --plate-red:  #d4242b;   /* learner plate red */
  --plate-red-d:#a81b21;
  --indicator:  #f0a128;   /* indicator / streetlight amber */
  --sign-blue:  #00529b;   /* motorway sign */
  --go:         #00703c;   /* primary route green */

  /* --- semantic -------------------------------------------------------- */
  --bg:        var(--concrete);
  --bg-raised: #ffffff;
  --bg-sunk:   var(--concrete-2);
  --fg:        var(--ink);
  --fg-soft:   var(--ink-soft);
  --line:      var(--concrete-3);
  --accent:    var(--plate-red);
  --accent-fg: #ffffff;

  /* --- shape ----------------------------------------------------------- */
  --r-sm: 4px;
  --r:    8px;
  --r-lg: 16px;
  --r-xl: 26px;
  --shadow-sm: 0 1px 2px rgba(23,26,29,.08), 0 2px 8px rgba(23,26,29,.05);
  --shadow:    0 2px 4px rgba(23,26,29,.07), 0 10px 28px rgba(23,26,29,.09);
  --shadow-lg: 0 6px 12px rgba(23,26,29,.08), 0 26px 60px rgba(23,26,29,.16);

  /* --- type ------------------------------------------------------------ */
  --sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --sign: 'Overpass', var(--sans);

  --maxw: 1140px;
  --gutter: 20px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg:        #14171a;
    --bg-raised: #1d2227;
    --bg-sunk:   #101316;
    --fg:        #eceae5;
    --fg-soft:   #a3abb4;
    --line:      #333a42;
    --concrete:  #14171a;
    --concrete-2:#1d2227;
    --concrete-3:#333a42;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
    --shadow:    0 2px 4px rgba(0,0,0,.3), 0 10px 28px rgba(0,0,0,.45);
    --shadow-lg: 0 6px 12px rgba(0,0,0,.35), 0 26px 60px rgba(0,0,0,.55);
  }
}
:root[data-theme='dark'] {
  --bg:        #14171a;
  --bg-raised: #1d2227;
  --bg-sunk:   #101316;
  --fg:        #eceae5;
  --fg-soft:   #a3abb4;
  --line:      #333a42;
  --concrete:  #14171a;
  --concrete-2:#1d2227;
  --concrete-3:#333a42;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow:    0 2px 4px rgba(0,0,0,.3), 0 10px 28px rgba(0,0,0,.45);
  --shadow-lg: 0 6px 12px rgba(0,0,0,.35), 0 26px 60px rgba(0,0,0,.55);
}

/* ===== reset ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; }
h1, h2, h3, h4 {
  font-family: var(--sign);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.021em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 6vw, 4.05rem); }
h2 { font-size: clamp(1.75rem, 3.7vw, 2.65rem); }
h3 { font-size: clamp(1.1rem, 1.9vw, 1.33rem); }
p  { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
:focus-visible {
  outline: 3px solid var(--indicator);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ===== layout =========================================================== */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: 760px; }
section { padding-block: clamp(56px, 8vw, 104px); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--plate-red); color: #fff; padding: 10px 18px;
  border-radius: 0 0 var(--r) var(--r); font-weight: 700; text-decoration: none;
  transition: top .18s;
}
.skip:focus { top: 0; }

/* eyebrow label, set like a sign plate */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sign); font-weight: 700; font-size: .735rem;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--fg-soft); margin-bottom: 14px;
}
.eyebrow::before {
  content: ''; width: 26px; height: 3px; border-radius: 2px;
  background: var(--plate-red);
}
.lede { font-size: clamp(1.07rem, 1.6vw, 1.21rem); color: var(--fg-soft); max-width: 62ch; }

/* dashed road-marking rule */
.road-rule {
  height: 6px; border: 0; margin: 0;
  background-image: linear-gradient(90deg, var(--concrete-3) 0 46px, transparent 46px 86px);
  background-size: 86px 6px;
  opacity: .85;
}

/* ===== buttons ========================================================== */
.btn {
  --btn-bg: var(--plate-red); --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border: 0; border-radius: 100px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--sign); font-weight: 700; font-size: 1.01rem;
  letter-spacing: .005em; text-decoration: none; cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform .16s cubic-bezier(.2,.8,.3,1), box-shadow .16s, filter .16s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); filter: brightness(1.06); }
.btn:active { transform: translateY(0); }
.btn-ghost {
  --btn-bg: transparent; --btn-fg: var(--fg);
  box-shadow: inset 0 0 0 2px var(--line);
}
.btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--fg-soft); filter: none; }
.btn-dark { --btn-bg: var(--asphalt); --btn-fg: #fff; }
.btn-sm { padding: 9px 18px; font-size: .9rem; }
.btn-lg { padding: 17px 34px; font-size: 1.08rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ===== header =========================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.5) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .bar {
  display: flex; align-items: center; gap: 18px;
  min-height: 70px;
}
.brand {
  display: flex; align-items: center; gap: 11px;
  text-decoration: none; font-family: var(--sign); font-weight: 800;
  font-size: 1.04rem; letter-spacing: -.015em; line-height: 1.12;
  margin-right: auto;
}
.brand .brand-mark {
  width: 36px; height: 36px; flex: 0 0 36px;
  border-radius: 6px; background: #fff;
  box-shadow: inset 0 0 0 2px var(--concrete-3), var(--shadow-sm);
  display: grid; place-items: center;
  font-family: var(--sign); font-weight: 800; font-size: 1.42rem;
  color: var(--plate-red); line-height: 1; padding-bottom: 2px;
}
.brand small {
  display: block; font-family: var(--sans); font-weight: 500;
  font-size: .685rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--fg-soft);
}
.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  padding: 9px 13px; border-radius: 100px; text-decoration: none;
  font-weight: 600; font-size: .935rem; color: var(--fg-soft);
  transition: background .14s, color .14s;
}
.nav a:hover { background: var(--bg-sunk); color: var(--fg); }
.nav a[aria-current='page'] { color: var(--fg); background: var(--bg-sunk); }
.nav a[aria-current='page']::after {
  content: ''; display: block; height: 3px; border-radius: 2px;
  background: var(--plate-red); margin-top: 5px;
}
.header-cta { margin-left: 8px; }
.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line);
  border-radius: var(--r); background: var(--bg-raised); cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle span {
  display: block; width: 19px; height: 2px; background: var(--fg); border-radius: 2px;
  position: relative;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ''; position: absolute; left: 0; width: 19px; height: 2px;
  background: var(--fg); border-radius: 2px;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }

@media (max-width: 980px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; inset: 70px 0 auto; z-index: 99;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-raised); border-bottom: 1px solid var(--line);
    padding: 10px var(--gutter) 22px; box-shadow: var(--shadow-lg);
    transform: translateY(-120%); transition: transform .26s cubic-bezier(.2,.8,.3,1);
  }
  .nav[data-open='true'] { transform: translateY(0); }
  .nav a { padding: 14px 10px; border-radius: var(--r); font-size: 1.02rem; }
  .nav a[aria-current='page']::after { display: none; }
  .header-cta { display: none; }
}

/* ===== hero ============================================================= */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(170deg, #1d232b 0%, #141a20 54%, #0f1419 100%);
  color: #f2efe9;
  padding-block: clamp(48px, 7vw, 86px) 0;
}
.hero::before { /* dusk glow */
  content: ''; position: absolute; inset: -30% -10% auto; height: 70%;
  background: radial-gradient(60% 100% at 70% 0%, rgba(240,161,40,.17), transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 2; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0,1.08fr) minmax(0,.92fr);
  gap: clamp(28px, 5vw, 64px); align-items: center;
}
.hero h1 { color: #fff; }
.hero h1 em {
  font-style: normal; color: var(--indicator);
  /* underline that reads as a road marking */
  background-image: linear-gradient(90deg, var(--plate-red) 0 22px, transparent 22px 40px);
  background-size: 40px 5px; background-repeat: repeat-x;
  background-position: 0 100%; padding-bottom: 7px;
}
.hero .lede { color: #c6cbd2; font-size: clamp(1.08rem, 1.7vw, 1.26rem); }
@media (max-width: 880px) {
  /* Stack, and keep the plate BELOW the copy: on a phone the headline and the
     "Book a first lesson" button have to be above the fold, and a 230px
     ornament above them pushed both off the screen. */
  .hero-grid { grid-template-columns: 1fr; }
  .plate-stage { min-height: 190px; margin-top: 18px; }
  .plate { width: clamp(112px, 26vw, 150px); }
  .plate-L { font-size: calc(min(26vw, 150px) * .78); }
  .plate-string { height: 46px; }
  .plate-swing { transform-origin: 50% -46px; }
  .hero-stats b { font-size: 1.42rem; }
}
.hero .eyebrow { color: #a9b2bc; }
.hero .btn-ghost { --btn-fg: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.26); }
.hero .btn-ghost:hover { box-shadow: inset 0 0 0 2px rgba(255,255,255,.55); }

.hero-stats {
  display: flex; flex-wrap: wrap; gap: 10px 30px; margin-top: 30px;
  padding-top: 22px; border-top: 1px solid rgba(255,255,255,.13);
}
.hero-stats div { min-width: 104px; }
.hero-stats b {
  display: block; font-family: var(--sign); font-weight: 800;
  font-size: 1.62rem; color: #fff; line-height: 1.1;
}
.hero-stats span { font-size: .8rem; color: #9aa3ad; letter-spacing: .02em; }

/* --- the road band at the foot of the hero ---------------------------- */
.road {
  position: relative; z-index: 1;
  height: 158px; margin-top: clamp(26px, 4vw, 48px);
  background: linear-gradient(180deg, #2a3138 0%, #22282e 30%, #1b2126 100%);
  border-top: 2px solid #3b434c;
  overflow: hidden;
}
.road::after { /* kerb shadow */
  content: ''; position: absolute; inset: 0 0 auto; height: 16px;
  background: linear-gradient(180deg, rgba(0,0,0,.35), transparent);
}
/* scrolling centre line */
.road-line {
  position: absolute; left: 0; right: 0; bottom: 52px; height: 7px;
  background-image: linear-gradient(90deg, #e8e4d8 0 78px, transparent 78px 150px);
  background-size: 150px 7px;
  opacity: .8;
  animation: road-scroll 1.05s linear infinite;
}
.road-line.slow {
  bottom: 104px; height: 5px; opacity: .3;
  background-image: linear-gradient(90deg, #cfcabc 0 52px, transparent 52px 110px);
  background-size: 110px 5px;
  animation-duration: 2.6s;
}
@keyframes road-scroll { to { background-position: -150px 0; } }

/* cars travelling across the road band */
.traffic { position: absolute; inset: 0; }
.car {
  position: absolute; bottom: var(--bottom, 14px); left: -22%;
  width: 230px;
  will-change: transform;
  animation: drive-right var(--dur, 7s) linear var(--delay, 0s) infinite;
  filter: drop-shadow(0 8px 10px rgba(0,0,0,.45));
}
.car.flip { animation-name: drive-left; left: auto; right: -22%; }
.car.far {
  bottom: 86px; width: 128px; opacity: .42;
  filter: blur(.6px) drop-shadow(0 4px 6px rgba(0,0,0,.4));
}
@keyframes drive-right {
  0%   { transform: translateX(0); }
  100% { transform: translateX(calc(100vw + 44%)); }
}
@keyframes drive-left {
  0%   { transform: translateX(0) scaleX(-1); }
  100% { transform: translateX(calc(-100vw - 44%)) scaleX(-1); }
}
/* streetlight sweep */
.lamp-sweep {
  position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(100deg,
    rgba(240,161,40,.10) 0 70px, transparent 70px 320px);
  animation: road-scroll 3.4s linear infinite;
  background-size: 320px 100%;
}

/* ===== the L-plate, twisting in the wind =============================== */
.plate-stage {
  position: relative;
  display: grid; place-items: center;
  min-height: 300px;
  perspective: 900px;
  perspective-origin: 50% 36%;
}
.plate-hanger { position: relative; transform-style: preserve-3d; }
/* the string it hangs from */
.plate-string {
  position: absolute; left: 50%; bottom: 100%; width: 2px; height: 72px;
  margin-left: -1px;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.42));
  transform-origin: 50% 0;
  animation: string-sway 5.4s ease-in-out infinite;
}
.plate-string::after { /* knot */
  content: ''; position: absolute; left: -2px; bottom: -3px;
  width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.5);
}
@keyframes string-sway {
  0%,100% { transform: rotate(-3.5deg); }
  50%     { transform: rotate(3.5deg); }
}

.plate-swing {
  transform-style: preserve-3d;
  transform-origin: 50% -70px;         /* swings from the knot above it */
  animation: plate-swing 5.4s ease-in-out infinite;
}
@keyframes plate-swing {
  0%,100% { transform: rotateZ(-4.5deg); }
  50%     { transform: rotateZ(4.5deg); }
}

.plate {
  position: relative;
  width: clamp(142px, 20vw, 196px); aspect-ratio: 1;
  transform-style: preserve-3d;
  animation: plate-twist 7.2s cubic-bezier(.45,.05,.55,.95) infinite;
}
/* the two faces + the edge, so edge-on actually reads as a thin plate */
.plate-face {
  position: absolute; inset: 0;
  border-radius: 9px;
  background: #fdfcfa;
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,.10),
    0 18px 34px rgba(0,0,0,.42);
  display: grid; place-items: center;
  backface-visibility: hidden;
  transform: translateZ(2.5px);
}
.plate-face.back { transform: translateZ(-2.5px) rotateY(180deg); }
.plate-face.back::after {
  content: ''; position: absolute; inset: 0; border-radius: 9px;
  background: linear-gradient(135deg, #efece6, #d9d5cc);
}
.plate-face svg { width: 62%; height: 62%; }
/* the L itself */
.plate-L {
  font-family: var(--sign); font-weight: 800;
  font-size: calc(min(20vw, 196px) * .78);
  line-height: .78; color: var(--plate-red);
  user-select: none;
}
@keyframes plate-twist {
  0%   { transform: rotateY(-62deg) rotateX(5deg); }
  18%  { transform: rotateY(28deg)  rotateX(-3deg); }
  38%  { transform: rotateY(-14deg) rotateX(4deg); }
  58%  { transform: rotateY(74deg)  rotateX(-5deg); }
  78%  { transform: rotateY(-34deg) rotateX(3deg); }
  100% { transform: rotateY(-62deg) rotateX(5deg); }
}
/* wind streaks behind the plate */
.wind { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.wind i {
  position: absolute; height: 1px; border-radius: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.30), transparent);
  animation: gust var(--gd, 3.2s) linear var(--gdel, 0s) infinite;
  opacity: 0;
}
@keyframes gust {
  0%   { transform: translateX(-40%) scaleX(.4); opacity: 0; }
  25%  { opacity: .85; }
  100% { transform: translateX(150%) scaleX(1.5); opacity: 0; }
}

/* ===== cards & grids ==================================================== */
.grid { display: grid; gap: clamp(14px, 2vw, 22px); }
.g-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 900px) { .g-3, .g-4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 620px) { .g-2, .g-3, .g-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--bg-raised); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: clamp(20px, 2.4vw, 28px);
  box-shadow: var(--shadow-sm);
  transition: transform .18s cubic-bezier(.2,.8,.3,1), box-shadow .18s, border-color .18s;
}
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--concrete-3); }
.card h3 { margin-bottom: .35em; }
.card p { color: var(--fg-soft); font-size: .965rem; }
.card-icon {
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 16px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--plate-red) 11%, transparent);
  color: var(--plate-red);
}
.card-icon svg { width: 24px; height: 24px; }
.card-icon.blue { background: color-mix(in srgb, var(--sign-blue) 12%, transparent); color: var(--sign-blue); }
.card-icon.amber{ background: color-mix(in srgb, var(--indicator) 18%, transparent); color: #b9741a; }
.card-icon.green{ background: color-mix(in srgb, var(--go) 12%, transparent); color: var(--go); }

/* numbered steps, set like junction numbers */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 68px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: -2px;
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--asphalt); color: #fff;
  font-family: var(--sign); font-weight: 800; font-size: 1.32rem;
}
.step h3 { margin-bottom: .3em; }
.step p { color: var(--fg-soft); font-size: .97rem; }

/* ===== price table ====================================================== */
.price-card {
  background: var(--bg-raised); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.price-card.featured {
  border-color: var(--plate-red); box-shadow: 0 0 0 3px color-mix(in srgb, var(--plate-red) 14%, transparent), var(--shadow);
  position: relative;
}
.price-card .tag {
  position: absolute; top: 14px; right: 14px;
  background: var(--plate-red); color: #fff; border-radius: 100px;
  padding: 4px 12px; font-family: var(--sign); font-weight: 700;
  font-size: .7rem; letter-spacing: .09em; text-transform: uppercase;
}
.price-card header {
  padding: 26px 26px 20px; border-bottom: 1px dashed var(--line);
}
.price-card .amount {
  font-family: var(--sign); font-weight: 800; line-height: 1;
  font-size: 2.9rem; letter-spacing: -.03em; display: flex; align-items: baseline; gap: 6px;
}
.price-card .amount small { font-size: .9rem; font-weight: 600; color: var(--fg-soft); font-family: var(--sans); }
.price-card .save {
  display: inline-block; margin-top: 10px; background: color-mix(in srgb, var(--go) 13%, transparent);
  color: var(--go); border-radius: 100px; padding: 3px 11px;
  font-size: .78rem; font-weight: 700;
}
.price-card ul { list-style: none; margin: 0; padding: 22px 26px; flex: 1; }
.price-card li { position: relative; padding-left: 28px; margin-bottom: 11px; font-size: .95rem; color: var(--fg-soft); }
.price-card li:last-child { margin-bottom: 0; }
.price-card li::before {
  content: ''; position: absolute; left: 2px; top: .42em;
  width: 14px; height: 8px; border-left: 2.5px solid var(--go); border-bottom: 2.5px solid var(--go);
  transform: rotate(-45deg);
}
.price-card footer { padding: 0 26px 26px; }
.price-card footer .btn { width: 100%; }

.rate-table { width: 100%; border-collapse: collapse; font-size: .97rem; }
.rate-table th, .rate-table td { text-align: left; padding: 15px 14px; border-bottom: 1px solid var(--line); }
.rate-table thead th {
  font-family: var(--sign); font-size: .74rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--fg-soft); border-bottom: 2px solid var(--line);
}
.rate-table td:last-child, .rate-table th:last-child { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.rate-table tbody tr:hover { background: var(--bg-sunk); }
.rate-table .muted { color: var(--fg-soft); font-weight: 400; font-size: .88rem; display: block; }

/* ===== FAQ / accordion ================================================== */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 46px 20px 0; position: relative;
  font-family: var(--sign); font-weight: 700; font-size: 1.07rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; position: absolute; right: 8px; top: 50%;
  width: 11px; height: 11px; margin-top: -8px;
  border-right: 2.5px solid var(--fg-soft); border-bottom: 2.5px solid var(--fg-soft);
  transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq .answer { padding: 0 10px 22px 0; color: var(--fg-soft); max-width: 72ch; }
.faq summary:hover { color: var(--plate-red); }

/* ===== testimonials ===================================================== */
.quote {
  background: var(--bg-raised); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 16px;
}
.quote blockquote { margin: 0; font-size: 1.04rem; line-height: 1.6; }
.quote blockquote::before { content: '\201C'; color: var(--plate-red); font-size: 2.6rem; font-family: var(--sign); line-height: 0; vertical-align: -.35em; margin-right: 4px; }
.quote .who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.quote .avatar {
  width: 40px; height: 40px; border-radius: 50%; flex: 0 0 40px;
  display: grid; place-items: center; font-family: var(--sign); font-weight: 800;
  background: var(--asphalt); color: #fff; font-size: .96rem;
}
.quote .who b { display: block; font-size: .93rem; }
.quote .who span { font-size: .82rem; color: var(--fg-soft); }
.stars { color: var(--indicator); letter-spacing: 2px; font-size: .95rem; }

/* ===== forms ============================================================ */
.form-grid { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0,1fr)); }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
.field label {
  display: block; font-weight: 600; font-size: .9rem; margin-bottom: 7px;
}
.field .req { color: var(--plate-red); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; font: inherit; font-size: 1rem;
  color: var(--fg); background: var(--bg-raised);
  border: 1px solid var(--line); border-radius: var(--r);
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 142px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0; border-color: var(--plate-red);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--plate-red) 16%, transparent);
}
.field .hint { font-size: .82rem; color: var(--fg-soft); margin-top: 6px; }
.field .err { font-size: .84rem; color: var(--plate-red); margin-top: 6px; font-weight: 600; display: none; }
.field[data-invalid='true'] input,
.field[data-invalid='true'] select,
.field[data-invalid='true'] textarea { border-color: var(--plate-red); }
.field[data-invalid='true'] .err { display: block; }
.checkrow { display: flex; gap: 11px; align-items: flex-start; font-size: .92rem; color: var(--fg-soft); }
.checkrow input { width: 18px; height: 18px; flex: 0 0 18px; margin-top: 3px; accent-color: var(--plate-red); }

.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  padding: 9px 16px; border-radius: 100px; cursor: pointer;
  border: 1px solid var(--line); background: var(--bg-raised);
  font-size: .91rem; font-weight: 600; transition: all .14s;
}
.chip:hover { border-color: var(--fg-soft); }
.chip[aria-pressed='true'] {
  background: var(--plate-red); border-color: var(--plate-red); color: #fff;
}

.alert {
  border-radius: var(--r); padding: 15px 18px; font-size: .95rem;
  border: 1px solid var(--line); background: var(--bg-sunk); margin-bottom: 20px;
}
.alert-ok   { border-color: color-mix(in srgb, var(--go) 40%, transparent); background: color-mix(in srgb, var(--go) 9%, transparent); color: var(--go); }
.alert-bad  { border-color: color-mix(in srgb, var(--plate-red) 40%, transparent); background: color-mix(in srgb, var(--plate-red) 8%, transparent); color: var(--plate-red-d); }
.alert b { font-weight: 700; }

/* ===== coverage map ===================================================== */
.map-wrap {
  background: var(--bg-raised); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: clamp(14px, 2vw, 24px); box-shadow: var(--shadow-sm);
}
.map-wrap svg { width: 100%; height: auto; }
.pc-check { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.pc-check input {
  flex: 1 1 180px; padding: 13px 15px; font: inherit; text-transform: uppercase;
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--bg); color: var(--fg);
}
.pc-result { margin-top: 14px; font-size: .95rem; min-height: 1.5em; font-weight: 600; }
.pc-result[data-state='in']   { color: var(--go); }
.pc-result[data-state='edge'] { color: #b9741a; }
.pc-result[data-state='out']  { color: var(--plate-red); }

.area-list { columns: 3; column-gap: 28px; list-style: none; padding: 0; margin: 0; font-size: .95rem; }
@media (max-width: 760px) { .area-list { columns: 2; } }
@media (max-width: 440px) { .area-list { columns: 1; } }
.area-list li { padding: 7px 0 7px 24px; position: relative; break-inside: avoid; color: var(--fg-soft); }
.area-list li::before {
  content: ''; position: absolute; left: 2px; top: 1.05em;
  width: 8px; height: 8px; border-radius: 50%; background: var(--plate-red);
}

/* ===== bands ============================================================ */
.band-dark {
  background: var(--asphalt); color: #eceae5;
  position: relative; overflow: hidden;
}
.band-dark h2, .band-dark h3 { color: #fff; }
.band-dark .lede, .band-dark p { color: #b4bcc5; }
.band-dark .card { background: var(--asphalt-2); border-color: var(--asphalt-3); }
.band-dark .card p { color: #a8b1ba; }
.band-dark .eyebrow { color: #9aa3ad; }
.band-sunk { background: var(--bg-sunk); }

/* a thin band with one car driving through it, used as a section divider */
.lane {
  position: relative; height: 92px; overflow: hidden;
  background: var(--asphalt); border-block: 1px solid var(--asphalt-3);
}
.lane .road-line { bottom: 34px; opacity: .55; animation-duration: 1.4s; }
.lane .car { bottom: 6px; width: 180px; }

/* ===== footer =========================================================== */
.site-footer {
  background: var(--asphalt); color: #b4bcc5; padding-block: 56px 28px;
  font-size: .94rem;
}
.site-footer a { color: #d9dde2; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid {
  display: grid; gap: 34px;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 {
  font-family: var(--sign); font-size: .78rem; letter-spacing: .13em;
  text-transform: uppercase; color: #fff; margin-bottom: 14px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer .brand small { color: #8f98a2; }
.footer-bottom {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--asphalt-3);
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between;
  font-size: .85rem; color: #8f98a2;
}

/* ===== preview ribbon =================================================== */
/* Shown while PREVIEW mode is on. Everything it covers is unconfirmed:
   prices, hours, credentials, reviews, phone number. See notes.md. */
.preview-flag {
  position: fixed; z-index: 150; bottom: 14px; left: 14px;
  display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 28px);
  background: #141a20; color: #ffd9a0;
  border: 1px solid #4a3a1e; border-left: 4px solid var(--indicator);
  border-radius: var(--r); padding: 9px 13px;
  font-size: .8rem; line-height: 1.35; box-shadow: var(--shadow-lg);
}
.preview-flag b { color: var(--indicator); font-family: var(--sign); letter-spacing: .06em; text-transform: uppercase; font-size: .72rem; }
.preview-flag button {
  margin-left: 4px; background: none; border: 0; color: #ffd9a0;
  cursor: pointer; font-size: 1.1rem; line-height: 1; padding: 2px 4px; opacity: .7;
}
.preview-flag button:hover { opacity: 1; }
/* inline marker on any claim that is not yet true */
.unconfirmed {
  display: inline-block; vertical-align: middle;
  background: color-mix(in srgb, var(--indicator) 20%, transparent);
  color: #8a5a12; border: 1px dashed color-mix(in srgb, var(--indicator) 60%, transparent);
  border-radius: 100px; padding: 1px 9px; margin-left: 6px;
  font-size: .68rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  white-space: nowrap;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .unconfirmed { color: #f0c483; }
}
.band-dark .unconfirmed { color: #f0c483; }

/* ===== utilities ======================================================== */
.center { text-align: center; }
.center .lede, .center .eyebrow { margin-inline: auto; }
.center .eyebrow { justify-content: center; }
.center .btn-row { justify-content: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 12px; } .mt-2 { margin-top: 22px; }
.mt-3 { margin-top: 34px; } .mt-4 { margin-top: 48px; }
.mb-0 { margin-bottom: 0; }
.muted { color: var(--fg-soft); }
.small { font-size: .875rem; }
.nowrap { white-space: nowrap; }
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--bg-sunk); border: 1px solid var(--line);
  border-radius: 100px; padding: 6px 14px; font-size: .84rem; font-weight: 600;
}
.pill svg { width: 15px; height: 15px; color: var(--go); }

/* split layout: text one side, panel the other */
.split {
  display: grid; gap: clamp(26px, 4vw, 58px); align-items: center;
  grid-template-columns: repeat(2, minmax(0,1fr));
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.split.wide-left { grid-template-columns: 1.25fr 1fr; }
@media (max-width: 860px) { .split.wide-left { grid-template-columns: 1fr; } }

/* page header for interior pages */
.page-head {
  background: linear-gradient(170deg, #1d232b, #141a20);
  color: #f2efe9; padding-block: clamp(48px, 7vw, 80px) clamp(40px, 6vw, 68px);
  position: relative; overflow: hidden;
}
.page-head::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 7px;
  background-image: linear-gradient(90deg, #e8e4d8 0 60px, transparent 60px 120px);
  background-size: 120px 7px; opacity: .55;
}
.page-head h1 { color: #fff; margin-bottom: .32em; }
.page-head .lede { color: #c6cbd2; }
.page-head .eyebrow { color: #a9b2bc; }
.crumbs { font-size: .84rem; color: #8f98a2; margin-bottom: 18px; }
.crumbs a { color: #c6cbd2; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ===== motion preferences ============================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .plate { transform: rotateY(-18deg); }
  .car { display: none; }
  .car.hold { display: block; animation: none; left: 12%; }
}
/* honour the in-page motion switch too */
html[data-motion='off'] .car { display: none; }
html[data-motion='off'] .car.hold { display: block; animation: none; left: 12%; }
html[data-motion='off'] .road-line,
html[data-motion='off'] .lamp-sweep,
html[data-motion='off'] .plate,
html[data-motion='off'] .plate-swing,
html[data-motion='off'] .plate-string,
html[data-motion='off'] .wind i { animation: none !important; }
html[data-motion='off'] .plate { transform: rotateY(-18deg); }

.motion-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  background: none; border: 1px solid var(--asphalt-3); color: #b4bcc5;
  border-radius: 100px; padding: 6px 13px; font-size: .8rem; cursor: pointer;
}
.motion-toggle:hover { color: #fff; border-color: #6a737c; }
