/* =========================================================
   Straightaway Detailing — v37 "Apex" layer.
   Loads last. Owns the design tokens, type, buttons, header,
   page transitions and the new home page. Older files still
   style the booking wizard, admin and legal parts, and pick up
   these tokens automatically.
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  /* colour: asphalt, pit wall, trophy gold. Red is functional only (lights, redline) */
  --asphalt: #0d0f12;
  --pitwall: #15181c;
  --pitwall-2: #1b1f24;
  --hair: #262a30;
  --hair-2: #343941;
  --ivory: #ece8df;
  --grey: #a3a29d;
  --grey-2: #8c8b86;   /* 4.85:1 or better on every panel (WCAG AA) */
  --field: #6b707b;    /* form-field and answer borders: 3:1 or better (WCAG 1.4.11) */
  --trophy: #c9a46a;
  --trophy-hi: #e1c48f;
  --trophy-lo: rgba(201, 164, 106, 0.14);
  --redline: #e0352b;

  /* map onto the names the older stylesheets use */
  --ink: var(--asphalt);
  --panel: var(--pitwall);
  --panel-2: var(--pitwall-2);
  --rule: var(--hair);
  --rule-2: var(--hair-2);
  --plat: var(--ivory);
  --pew: var(--grey);
  --dim: var(--grey-2);
  --gold: var(--trophy);
  --gold-hi: var(--trophy-hi);
  --gold-lo: var(--trophy-lo);

  /* type: one family (Archivo), personality from its width axis */
  --wide: 125%;
  --narrow: 75%;
  --w-regular: 400;
  --w-medium: 500;
  --w-semi: 600;
  --t-meta: 0.75rem;
  --t-secondary: 0.875rem;
  --t-body: 1rem;
  --t-lead: 1.125rem;
  --t-h3: 1.25rem;
  --t-h2: clamp(2rem, 1.2rem + 2.6vw, 3.25rem);
  --t-h1: clamp(2.5rem, 1.1rem + 4.6vw, 4.75rem);

  /* space: 4/8 rhythm */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-6: 24px;
  --s-8: 32px; --s-12: 48px; --s-16: 64px; --s-24: 96px; --s-32: 128px;
  --section: clamp(72px, 9vw, 128px);

  /* motion: one set of durations and curves for the whole site */
  --d-100: 100ms;
  --d-150: 150ms;
  --d-200: 200ms;
  --d-300: 300ms;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);      /* enters, presses, reveals */
  --ease-in: cubic-bezier(0.55, 0.06, 0.68, 0.19);  /* exits */
  --ease-move: cubic-bezier(0.77, 0, 0.175, 1);    /* things already on screen moving */
  /* spring (bounce ~0.2) written as a linear() curve, no library needed */
  --spring: linear(0, 0.009, 0.035 2.1%, 0.141 4.4%, 0.723 12.9%, 0.938 16.7%, 1.017 19.4%, 1.067, 1.099 24.3%, 1.108 26%, 1.1, 1.077 30.9%, 1.006 38.5%, 0.983 42.1%, 0.976 45.4%, 0.98 50.2%, 0.997 61%, 1.003 70.1%, 1);
}

/* ---------- Base ---------- */
html, body { background: var(--asphalt); }
body { color: var(--ivory); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
h1, h2, h3 { font-weight: var(--w-semi); font-stretch: var(--wide); letter-spacing: -0.02em; line-height: 1.08; text-wrap: balance; }
h3 { line-height: 1.2; letter-spacing: -0.01em; }
p { text-wrap: pretty; }
::selection { background: var(--trophy); color: var(--asphalt); }
:focus-visible { outline: 2px solid var(--trophy-hi); outline-offset: 3px; }
img { outline: 1px solid rgba(236, 232, 223, 0.06); outline-offset: -1px; }

/* ---------- Page transitions (cross-document View Transitions; browsers without it just navigate) ---------- */
@view-transition { navigation: auto; }
.rh { view-transition-name: site-header; }
::view-transition-old(root) { animation: vt-out var(--d-150) var(--ease-in) both; }
::view-transition-new(root) { animation: vt-in var(--d-300) var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
.wipe { display: none !important; }

/* ---------- Buttons (shared): solid gold, or a hairline outline. Small chamfer = brand mark ---------- */
.btn-x, .rb {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 52px; padding: 0 var(--s-6);
  font: inherit; font-size: var(--t-body); font-weight: var(--w-medium); font-stretch: 100%; letter-spacing: 0;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
  transition: transform var(--d-100) var(--ease-out), background-color var(--d-150) ease, border-color var(--d-150) ease, color var(--d-150) ease;
  -webkit-tap-highlight-color: transparent;
}
.btn-x:active, .rb:active { transform: scale(0.97); }
.btn-gold, .rb-gold { background: var(--trophy); color: var(--asphalt); }
.btn-line, .rb-line { background: transparent; color: var(--ivory); border-color: var(--hair-2); clip-path: none; }
@media (hover: hover) and (pointer: fine) {
  .btn-gold:hover, .rb-gold:hover { background: var(--trophy-hi); }
  .btn-line:hover, .rb-line:hover { border-color: var(--trophy); color: var(--trophy-hi); }
}
.rb svg { width: 18px; height: 18px; }
.rb-gold::after { content: none; }   /* retire the old light sweep */
@media (prefers-reduced-motion: reduce) {
  .btn-x, .rb { transition: background-color var(--d-100) ease, border-color var(--d-100) ease, color var(--d-100) ease; }
  .btn-x:active, .rb:active { transform: none; }
}

/* ---------- Header ---------- */
.rh { background: rgba(13, 15, 18, 0.97); -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom: 1px solid var(--hair); }
.rh::before { content: none !important; }
.rh-brand { border-right: 0; padding-right: var(--s-6); }
.rh-brand span { font-weight: var(--w-semi); font-stretch: 112%; }
.rh-brand small { font-weight: var(--w-medium); letter-spacing: 0.32em; font-size: var(--t-meta); }
.rh-nav > a { font-weight: var(--w-medium); color: var(--grey); transition: color var(--d-150) ease; }
.rh-nav > a i { display: none; }
.rh-nav > a[aria-current="page"]::after { transform-origin: left; animation: nav-mark var(--d-300) var(--ease-out) both; }
@keyframes nav-mark { from { transform: scaleX(0); } }
.rh-call { border-left: 0; }
.rh-book {
  align-self: center; height: 40px; margin: 0 var(--pad) 0 var(--s-2); padding: 0 var(--s-4);
  font-weight: var(--w-medium); font-size: var(--t-secondary);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
  transition: transform var(--d-100) var(--ease-out), background-color var(--d-150) ease;
}
.rh-book svg { display: none; }
.rh-book:active { transform: scale(0.97); }
@media (prefers-reduced-motion: reduce) { .rh-nav > a[aria-current="page"]::after { animation: none; } .rh-book:active { transform: none; } }
@media (max-width: 900px) {
  .rh-book { margin-right: var(--s-2); }
}

/* ---------- Section frame ---------- */
.sec { padding: var(--section) 0; }
.sec-head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--s-6) var(--s-16); align-items: end; margin-bottom: var(--s-12); }
.sec-head h2 { margin: 0; font-size: var(--t-h2); }
.sec-head p { margin: 0; color: var(--grey); max-width: 52ch; }
.sec-head a { color: var(--trophy-hi); }
@media (max-width: 800px) { .sec-head { grid-template-columns: 1fr; } }

/* =========================================================
   HOME: the lap. Scroll runs the car around the circuit and
   lights each sector on the timing board. Desktop pins the
   stage while you scroll; phones run it as the map passes by.
   ========================================================= */
.lap { position: relative; border-bottom: 1px solid var(--hair); }
.lap-stage { padding: clamp(40px, 7vw, 96px) 0 clamp(40px, 6vw, 80px); }
.lap-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s-12) clamp(40px, 6vw, 96px); align-items: center; }
.lap-where { margin: 0 0 var(--s-6); font-size: var(--t-secondary); color: var(--trophy-hi); font-weight: var(--w-medium); }
.lap-copy h1 { margin: 0 0 var(--s-6); font-size: var(--t-h1); line-height: 1.04; max-width: 13ch; }
.lap-lede { margin: 0 0 var(--s-8); font-size: var(--t-lead); color: var(--grey); max-width: 44ch; line-height: 1.55; }
.lap-cta { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.lap-specs { display: flex; flex-wrap: wrap; gap: var(--s-6) var(--s-8); margin: var(--s-12) 0 0; padding-top: var(--s-6); border-top: 1px solid var(--hair); }
.lap-specs dt { font-size: var(--t-meta); color: var(--grey-2); margin-bottom: var(--s-1); }
.lap-specs dd { margin: 0; font-size: var(--t-h3); font-weight: var(--w-semi); font-stretch: var(--wide); font-variant-numeric: tabular-nums; }
.lap-specs div:first-child dd { color: var(--trophy-hi); }

.lap-map { min-width: 0; }
.lap-track { position: relative; aspect-ratio: 412 / 204; }
.lap-track svg { display: block; width: 100%; height: 100%; overflow: visible; }
.lt-run { stroke-dasharray: 1000; stroke-dashoffset: var(--lap-off, 1000); }
.lt-secs circle { transition: fill var(--d-200) ease; }
.lt-secs circle.hit { fill: var(--trophy); }
.lt-car { transform-box: view-box; }

.lap-board { list-style: none; margin: var(--s-8) 0 0; padding: 0; border-top: 1px solid var(--hair); }
.lap-board li { position: relative; display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: var(--s-4); padding: var(--s-4) 0 var(--s-4) var(--s-4); border-bottom: 1px solid var(--hair); }
.lap-board li::before { content: ""; position: absolute; left: 0; top: -1px; bottom: -1px; width: 2px; background: var(--trophy); transform: scaleY(0); transform-origin: top; transition: transform var(--d-300) var(--ease-out); }
.lb-n { font-size: var(--t-secondary); font-weight: var(--w-medium); font-stretch: var(--narrow); color: var(--grey-2); transition: color var(--d-200) ease; }
.lb-t { font-size: var(--t-body); color: var(--grey-2); transition: color var(--d-200) ease; }
.lap-board li.on::before { transform: none; }
.lap-board li.on .lb-n { color: var(--trophy-hi); }
.lap-board li.on .lb-t { color: var(--ivory); }

/* without JS, or with reduced motion: the whole lap is shown, finished */
html:not(.js) .lt-run, .lap.static .lt-run { stroke-dashoffset: 0; }
html:not(.js) .lap-board .lb-n, .lap.static .lb-n { color: var(--trophy-hi); }
html:not(.js) .lap-board .lb-t, .lap.static .lb-t { color: var(--ivory); }
.lap.static .lt-secs circle { fill: var(--trophy); }

/* desktop: pin the stage and let scrolling drive the lap */
@media (min-width: 960px) and (prefers-reduced-motion: no-preference) {
  .js .lap { height: 210vh; }
  .js .lap-stage { position: sticky; top: var(--header-h); min-height: calc(100svh - var(--header-h)); display: flex; align-items: center; }
  .js .lap-stage > .rw { width: 100%; }
}
/* first paint after the lights go out: copy settles in, staggered */
.js .lap-copy > * { opacity: 0; transform: translateY(12px); }
.js .lap.go .lap-copy > * { opacity: 1; transform: none; transition: opacity var(--d-300) var(--ease-out), transform var(--d-300) var(--ease-out); }
.js .lap.go .lap-copy > :nth-child(2) { transition-delay: 60ms; }
.js .lap.go .lap-copy > :nth-child(3) { transition-delay: 120ms; }
.js .lap.go .lap-copy > :nth-child(4) { transition-delay: 180ms; }
.js .lap.go .lap-copy > :nth-child(5) { transition-delay: 240ms; }
@media (prefers-reduced-motion: reduce) {
  .js .lap-copy > * { opacity: 1; transform: none; }
  .lap-board li::before, .lb-n, .lb-t, .lt-secs circle { transition: none; }
}
@media (max-width: 959px) {
  .lap-grid { grid-template-columns: 1fr; }
  .lap-copy h1 { max-width: 14ch; }
  .lap-specs { margin-top: var(--s-8); }
}
@media (max-width: 480px) {
  .lap-board li { grid-template-columns: 76px minmax(0, 1fr); gap: var(--s-3); }
  .lap-cta .btn-x { flex: 1 1 auto; }
}

/* ---------- Home: timing sheet (packages) ---------- */
.ts { background: var(--pitwall); border: 1px solid var(--hair); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04); }
.ts-head, .ts-row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr) minmax(0, 2.6fr) minmax(0, 0.7fr) minmax(0, 0.8fr); gap: var(--s-6); align-items: baseline; padding: 0 var(--s-6); }
.ts-head { padding-block: var(--s-3); font-size: var(--t-meta); color: var(--grey-2); border-bottom: 1px solid var(--hair); }
.ts-head span:last-child, .ts-price { text-align: right; }
.ts-list { list-style: none; margin: 0; padding: 0; }
.ts-list li + li { border-top: 1px solid var(--hair); }
.ts-row { position: relative; padding-block: var(--s-6); color: var(--ivory); text-decoration: none; transition: background-color var(--d-150) ease; }
.ts-row::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--trophy); transform: scaleY(0); transition: transform var(--d-200) var(--ease-out); }
.ts-row:focus-visible { outline-offset: -2px; }
.ts-row:active { background: var(--pitwall-2); }
@media (hover: hover) and (pointer: fine) {
  .ts-row:hover { background: var(--pitwall-2); }
  .ts-row:hover::before { transform: none; }
}
.ts-name { font-size: var(--t-h3); font-weight: var(--w-semi); font-stretch: 112%; }
.ts-tag { font-style: normal; font-size: var(--t-meta); font-weight: var(--w-medium); font-stretch: 100%; color: var(--trophy-hi); margin-left: var(--s-2); white-space: nowrap; }
.ts-kind, .ts-time { font-size: var(--t-secondary); color: var(--grey); font-variant-numeric: tabular-nums; }
.ts-time small { font-size: inherit; }
.ts-inc { font-size: var(--t-secondary); color: var(--grey); line-height: 1.5; }
.ts-price { font-size: 1.5rem; font-weight: var(--w-semi); font-stretch: var(--wide); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ts-price small { font-size: var(--t-meta); font-weight: var(--w-regular); font-stretch: 100%; color: var(--grey-2); }
.ts-list li:last-child .ts-price { color: var(--trophy-hi); }
/* rows arrive in order the first time the sheet comes into view */
.js .ts-list li { opacity: 0; transform: translateY(8px); }
.js .ts.in .ts-list li { opacity: 1; transform: none; transition: opacity var(--d-300) var(--ease-out), transform var(--d-300) var(--ease-out); transition-delay: calc(var(--i, 0) * 50ms); }
@media (prefers-reduced-motion: reduce) {
  .js .ts-list li { opacity: 1; transform: none; }
  .ts-row, .ts-row::before { transition: none; }
}
@media (max-width: 800px) {
  .ts-head { display: none; }
  .ts-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name price" "inc inc" "meta meta"; gap: var(--s-2) var(--s-4); padding: var(--s-4) var(--s-4) var(--s-4) var(--s-6); }
  .ts-name { grid-area: name; font-size: 1.125rem; }
  .ts-price { grid-area: price; font-size: 1.25rem; }
  .ts-inc { grid-area: inc; }
  .ts-kind { grid-area: meta; }
  .ts-time { grid-area: meta; justify-self: end; }
}

/* ---------- Home: quieter older sections in the new language ---------- */
.rs-panel { background: var(--pitwall); }
.dl { letter-spacing: 0.04em; text-transform: none; font-size: var(--t-secondary); font-weight: var(--w-medium); }
.dl b { display: none; }
.dl::before { display: none; }
.pl-copy h2, .driver-copy h2, .drive-copy h2, .finish h2 { font-weight: var(--w-semi); }
.drive-copy h2 { letter-spacing: -0.025em; }
.drive::before { background: linear-gradient(0deg, rgba(13, 15, 18, 0.94) 0%, rgba(13, 15, 18, 0.4) 50%, rgba(13, 15, 18, 0.08) 100%); }

/* before/after: grab cursor once the momentum slider is wired */
.ba.flick { cursor: grab; touch-action: pan-y; }
.ba.flick.dragging { cursor: grabbing; }
.ba.flick input[type=range] { pointer-events: none; }
.rh-book { white-space: nowrap; }
@media (max-width: 420px) { .rh-book { padding: 0 var(--s-3); } .rh-brand span { font-size: 0.95rem; } }

/* =========================================================
   SHARED PAGE PARTS
   ========================================================= */
.sec-panel { background: var(--pitwall); border-block: 1px solid var(--hair); }
.sec-head-stack { grid-template-columns: 1fr; margin-bottom: var(--s-8); }

/* ---------- Page header: big wide title, a small circuit shows where you are on the lap ---------- */
.pg { position: relative; padding: clamp(56px, 8vw, 112px) 0 clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--hair); }
.pg::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--trophy); transform-origin: left; transform: scaleX(0); }
.js .pg.go::after, html:not(.js) .pg::after { transform: scaleX(1); transition: transform 600ms var(--ease-out); }
.pg-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-8) var(--s-16); align-items: end; }
.pg h1 { margin: 0 0 var(--s-6); font-size: var(--t-h1); max-width: 16ch; }
.pg-lede { margin: 0; font-size: var(--t-lead); color: var(--grey); max-width: 52ch; }
.pg-mini { width: 220px; }
.pg-mini svg { display: block; width: 100%; height: auto; overflow: visible; }
.pg-mini .lt-run { stroke-dashoffset: var(--lap-off, 1000); }
.pg-compact { padding: clamp(40px, 6vw, 72px) 0 clamp(28px, 4vw, 48px); }
.pg-compact h1 { font-size: clamp(2.1rem, 1.1rem + 3vw, 3.5rem); }
@media (max-width: 760px) { .pg-grid { grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-4); align-items: start; } .pg-mini { width: 92px; margin-top: 6px; } }
@media (max-width: 360px) { .pg-mini { width: 72px; } }
@media (max-width: 640px) { .pg-book { padding: var(--s-6) 0 var(--s-4); } .pg-book h1 { font-size: 1.9rem; margin-bottom: 0; } .pg-book .pg-lede { display: none; } }
@media (prefers-reduced-motion: reduce) { .js .pg::after { transform: scaleX(1); transition: none; } }

/* ---------- On-this-page tabs (services): the active section is marked as you scroll ---------- */
.jump { background: rgba(13, 15, 18, 0.97); -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom: 1px solid var(--hair); }
.jump a { position: relative; border-right: 0; padding: var(--s-4) var(--s-4); color: var(--grey); font-weight: var(--w-medium); transition: color var(--d-150) ease; }
.jump a:first-child { padding-left: 0; }
.jump a::after { content: ""; position: absolute; left: var(--s-4); right: var(--s-4); bottom: -1px; height: 2px; background: var(--trophy); transform: scaleX(0); transform-origin: left; transition: transform var(--d-200) var(--ease-out); }
.jump a:first-child::after { left: 0; }
.jump a.on { color: var(--ivory); }
.jump a.on::after { transform: none; }
@media (prefers-reduced-motion: reduce) { .jump a::after { transition: none; } }

/* ---------- Spec plates (services packages) ---------- */
.plates { border: 1px solid var(--hair); background: var(--pitwall); }
.plate { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 4fr) minmax(0, 3fr); gap: var(--s-8); padding: var(--s-8); align-items: start; }
.plate + .plate { border-top: 1px solid var(--hair); }
.pl-kind { margin: 0 0 var(--s-2); font-size: var(--t-secondary); color: var(--grey-2); font-weight: var(--w-medium); }
.plate h3 { margin: 0 0 var(--s-3); font-size: 1.5rem; }
.pl-desc { margin: 0; color: var(--grey); font-size: var(--t-secondary); line-height: 1.55; max-width: 44ch; }
.pl-inc { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); font-size: var(--t-secondary); color: var(--grey); }
.pl-inc li { position: relative; padding-left: var(--s-6); }
.pl-inc li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 12px; height: 1px; background: var(--trophy); }
.pl-inc strong { color: var(--ivory); font-weight: var(--w-medium); }
.pl-num { display: grid; justify-items: end; gap: var(--s-2); text-align: right; }
.pl-price { margin: 0; font-size: 2.5rem; font-weight: var(--w-semi); font-stretch: var(--wide); line-height: 1; font-variant-numeric: tabular-nums; }
.pl-price small { display: block; font-size: var(--t-meta); font-weight: var(--w-regular); font-stretch: 100%; color: var(--grey-2); margin-bottom: var(--s-1); }
.pl-time { margin: 0 0 var(--s-2); font-size: var(--t-secondary); color: var(--grey); font-variant-numeric: tabular-nums; }
.plate-special { background: var(--pitwall-2); }
.plate-special .pl-price { color: var(--trophy-hi); }
@media (max-width: 900px) {
  .plate { grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-4) var(--s-6); padding: var(--s-6); }
  .pl-id { grid-column: 1; grid-row: 1; }
  .pl-num { grid-column: 2; grid-row: 1; }
  .pl-inc { grid-column: 1 / -1; }
  .pl-num .btn-x { display: none; }
  .plate::after { content: none; }
}
@media (max-width: 900px) {
  .plate { position: relative; }
  .plate .pl-id h3 a { color: inherit; }
}
.pl-cta-m { display: none; }
@media (max-width: 900px) { .pl-cta-m { display: flex; grid-column: 1 / -1; } }

/* ---------- Tables ---------- */
.ttable { background: var(--pitwall); border: 1px solid var(--hair); }
.ttable th { font-stretch: 100%; text-transform: none; letter-spacing: 0; font-weight: var(--w-medium); font-size: var(--t-meta); color: var(--grey-2); padding: var(--s-3) var(--s-6); border-bottom: 1px solid var(--hair); }
.ttable td { padding: var(--s-4) var(--s-6); border-bottom: 1px solid var(--hair); font-size: var(--t-secondary); }
.ttable tr:last-child td { border-bottom: 0; }
.ttable td strong { font-weight: var(--w-medium); font-size: var(--t-body); }
.ttable td small { font-size: var(--t-secondary); color: var(--grey-2); }
.ttable .num { font-weight: var(--w-semi); font-stretch: var(--wide); padding-right: var(--s-6); }
.ttable th.num { padding-right: var(--s-6); }
.ttable .gold { color: var(--trophy-hi); }
@media (max-width: 560px) { .ttable th, .ttable td { padding-inline: var(--s-4); } .ttable .num, .ttable th.num { padding-right: var(--s-4); } }

/* ---------- Notes ---------- */
.note { padding: var(--s-6); background: var(--pitwall); border: 1px solid var(--hair); border-left: 2px solid var(--trophy); }
.note p { margin: 0; color: var(--grey); font-size: var(--t-secondary); line-height: 1.6; }
.note strong { color: var(--ivory); font-weight: var(--w-medium); }
.callout { display: block; }
.callout svg { display: none; }

/* ---------- Tags (everything I do, the kit) ---------- */
.numlist, .chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-2); columns: auto; }
.numlist li, .chips li { display: inline-flex; padding: var(--s-2) var(--s-4); border: 1px solid var(--hair-2); font-size: var(--t-secondary); color: var(--ivory); }
.numlist li::before { content: none; }

/* ---------- Questions ---------- */
.faq { border-top: 1px solid var(--hair); }
.faq details { border-bottom: 1px solid var(--hair); }
.faq summary { font-weight: var(--w-medium); font-stretch: 100%; font-size: 1.125rem; padding: var(--s-6) var(--s-12) var(--s-6) 0; transition: color var(--d-150) ease; }
.faq summary::before { content: none; }
.faq summary::after { transition: transform var(--d-200) var(--ease-out); }
.faq-body { padding: 0 var(--s-12) var(--s-6) 0; max-width: 70ch; }
.faq details[open] .faq-body { animation: faq-in var(--d-200) var(--ease-out) both; }
@keyframes faq-in { from { opacity: 0; transform: translateY(-4px); } }
@media (hover: hover) and (pointer: fine) { .faq summary:hover { color: var(--trophy-hi); } }
.faq-wrap { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
@media (max-width: 800px) { .faq-wrap { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .faq details[open] .faq-body { animation: none; } .faq summary::after { transition: none; } }

/* ---------- Before/after figures ---------- */
.pit-two { gap: var(--s-6); }
.pit-two figcaption { font-size: var(--t-secondary); padding-top: var(--s-3); }
.ba-tag { font-stretch: 100%; text-transform: none; letter-spacing: 0; font-weight: var(--w-medium); font-size: var(--t-meta); background: rgba(13, 15, 18, 0.88); color: var(--ivory); }
.ba-tag.after { color: var(--trophy-hi); }
.ba-handle { transition: transform var(--d-150) var(--ease-out); }
.ba.dragging .ba-handle { transform: scale(1.1); }
@media (prefers-reduced-motion: reduce) { .ba-handle { transition: none; } .ba.dragging .ba-handle { transform: none; } }
@media (max-width: 760px) { .pit-two { grid-template-columns: 1fr; } }

/* ---------- Finish line (every page): start lights, headline, actions ---------- */
.finish { text-align: left; padding: var(--section) 0; border-top: 1px solid var(--hair); }
.finish::before { content: none; }
.finish .rw { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--s-6) var(--s-12); align-items: center; }
.finish .gantry { margin: 0; }
.finish h2 { margin: 0; max-width: 18ch; font-size: var(--t-h2); }
.finish .rb-row { justify-content: flex-end; }
.gantry { background: var(--pitwall); border-color: var(--hair); }
@media (max-width: 860px) {
  .finish .rw { grid-template-columns: 1fr; justify-items: start; }
  .finish .rb-row { justify-content: flex-start; }
}

/* ---------- Footer ---------- */
.ft { background: var(--asphalt); border-top: 0; }
.ft-flag { height: 8px; background: repeating-conic-gradient(var(--ivory) 0 25%, var(--asphalt) 0 50%) 0 0 / 8px 8px; opacity: 0.55; }
.ft-grid { display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr)); gap: var(--s-8) var(--s-12); padding-block: var(--s-16) var(--s-12); }
.ft-name { margin: 0 0 var(--s-3); font-weight: var(--w-semi); font-stretch: var(--wide); font-size: 1.125rem; }
.ft-tag { margin: 0 0 var(--s-6); color: var(--grey); font-size: var(--t-secondary); max-width: 36ch; }
.ft-h { margin: 0 0 var(--s-4); font-size: var(--t-meta); color: var(--grey-2); font-weight: var(--w-medium); }
.ft ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.ft-col a { color: var(--ivory); text-decoration: none; font-size: var(--t-secondary); transition: color var(--d-150) ease; }
@media (hover: hover) and (pointer: fine) { .ft-col a:hover { color: var(--trophy-hi); } }
.ft-hours { margin: 0; color: var(--grey); font-size: var(--t-secondary); line-height: 1.7; }
.ft-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3) var(--s-6); padding-block: var(--s-6) var(--s-8); border-top: 1px solid var(--hair); color: var(--grey-2); font-size: var(--t-meta); }
.ft-legal { display: flex; gap: var(--s-6); }
.ft-legal a { color: var(--grey); text-decoration: none; }
.ft-legal a:hover { color: var(--ivory); }
.ft .social { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.ft .social a { border-radius: 0; }
@media (max-width: 900px) { .ft-grid { grid-template-columns: 1fr 1fr; } .ft-brand { grid-column: 1 / -1; } }
@media (max-width: 420px) { .ft-grid > .ft-col:first-of-type { grid-column: 1 / -1; } }

/* ---------- Shared quieting of old chrome ---------- */
.sh .dl, .rs .sh > .dl { display: none; }
.stats dt, .stats-col dt { text-transform: none; letter-spacing: 0; font-stretch: 100%; font-weight: var(--w-medium); font-size: var(--t-meta); color: var(--grey-2); }
.stats dd { font-weight: var(--w-medium); }

/* =========================================================
   ABOUT
   ========================================================= */
.ab-hero { padding-top: var(--s-12); }
.ab-shot { margin: 0; position: relative; aspect-ratio: 16 / 8; overflow: hidden; clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--chamfer)), calc(100% - var(--chamfer)) 100%, 0 100%); }
.ab-shot img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.ab-shot figcaption { position: absolute; left: var(--s-6); bottom: var(--s-6); padding: var(--s-2) var(--s-3); background: rgba(13, 15, 18, 0.88); font-size: var(--t-secondary); color: var(--ivory); }
/* signature: one sideways "speed wipe" reveals the photo */
.ab-shot::after { content: ""; position: absolute; inset: 0; background: var(--asphalt); transform-origin: right; transform: scaleX(0); }
.js .ab-shot[data-wipe]::after { transform: scaleX(1); }
.js .ab-shot.in::after { transform: scaleX(0); transition: transform 700ms var(--ease-move); }
.js .ab-shot[data-wipe] img { transform: scale(1.06) translateX(-2%); }
.js .ab-shot.in img { transform: none; transition: transform 1100ms var(--ease-out); }
@media (prefers-reduced-motion: reduce) { .js .ab-shot[data-wipe]::after { transform: scaleX(0); } .js .ab-shot[data-wipe] img { transform: none; } .js .ab-shot.in::after, .js .ab-shot.in img { transition: none; } }
@media (max-width: 700px) { .ab-shot { aspect-ratio: 4 / 3; } }

.story2 { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--s-12) clamp(40px, 6vw, 96px); }
.story2 h2 { margin: 0 0 var(--s-8); font-size: var(--t-h2); }
.card-stats { margin: 0; display: grid; border-top: 1px solid var(--hair); }
.card-stats div { display: flex; justify-content: space-between; gap: var(--s-4); padding: var(--s-3) 0; border-bottom: 1px solid var(--hair); }
.card-stats dt { color: var(--grey-2); font-size: var(--t-secondary); }
.card-stats dd { margin: 0; font-weight: var(--w-medium); }
.story2-body p { margin: 0 0 var(--s-4); color: var(--grey); max-width: 62ch; }
.story2-body .story2-lead { color: var(--ivory); font-size: 1.375rem; line-height: 1.45; font-weight: var(--w-medium); margin-bottom: var(--s-6); }
.story2-body a, .why2-body a { color: var(--trophy-hi); }
@media (max-width: 860px) { .story2 { grid-template-columns: 1fr; } }

.why2 { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-8) clamp(40px, 6vw, 96px); align-items: end; margin-bottom: var(--s-16); }
.why2-quote { margin: 0; font-size: var(--t-h2); max-width: 18ch; }
.why2-body p { margin: 0 0 var(--s-4); color: var(--grey); }
.values2 { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hair); }
.values2 li { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--s-6); padding: var(--s-6) 0; border-bottom: 1px solid var(--hair); align-items: baseline; }
.values2 h3 { margin: 0; font-size: 1.5rem; }
.values2 p { margin: 0; color: var(--grey); }
@media (max-width: 860px) { .why2, .values2 li { grid-template-columns: 1fr; } .values2 li { gap: var(--s-2); } }
.kit2 { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-8); align-items: start; }
@media (max-width: 860px) { .kit2 { grid-template-columns: 1fr; } }

/* =========================================================
   REVIEWS
   ========================================================= */
.rv-ask { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--s-6) var(--s-12); align-items: center; padding: var(--s-8); background: var(--pitwall); border: 1px solid var(--hair); margin-bottom: var(--s-12); }
.rv-ask h2 { margin: 0 0 var(--s-2); font-size: 1.75rem; }
.rv-ask p { margin: 0; color: var(--grey); }
.rv-stars { display: flex; gap: var(--s-2); margin: 0; padding: var(--s-3); background: var(--asphalt); border: 1px solid var(--hair); }
.rv-stars svg { width: 22px; height: 22px; fill: currentColor; color: var(--trophy); }
/* signature: the stars light one at a time, like the start gantry */
.js .rv-stars[data-stars] svg { color: var(--hair-2); }
.js .rv-stars.on svg { color: var(--trophy); transition: color var(--d-150) ease; }
.js .rv-stars.on svg:nth-child(2) { transition-delay: 180ms; }
.js .rv-stars.on svg:nth-child(3) { transition-delay: 360ms; }
.js .rv-stars.on svg:nth-child(4) { transition-delay: 540ms; }
.js .rv-stars.on svg:nth-child(5) { transition-delay: 720ms; }
@media (prefers-reduced-motion: reduce) { .js .rv-stars[data-stars] svg { color: var(--trophy); transition: none; } }
.rev-widget { background: var(--pitwall); border: 1px solid var(--hair); padding: var(--s-6); min-height: 240px; }
@media (max-width: 860px) { .rv-ask { grid-template-columns: 1fr; justify-items: start; padding: var(--s-6); } }

/* =========================================================
   REFER: the code prints out like a ticket
   ========================================================= */
.ref2 { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-12) clamp(40px, 6vw, 96px); align-items: start; }
.ticket-slot { position: relative; padding-top: var(--s-3); overflow: hidden; }
.ticket-slot::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: var(--s-3); background: var(--pitwall-2); border: 1px solid var(--hair-2); z-index: 1; }
.ticket { margin: 0 var(--s-6); padding: var(--s-8) var(--s-6) var(--s-6); background: var(--ivory); color: var(--asphalt); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%); }
.ticket p { margin: 0; }
.tk-top { font-size: var(--t-meta); font-weight: var(--w-medium); letter-spacing: 0.1em; color: #5d5a52; }
.tk-amt { font-size: 3.5rem; font-weight: var(--w-semi); font-stretch: var(--wide); line-height: 1; margin-top: var(--s-6) !important; }
.tk-for { font-size: var(--t-body); color: #3d3b36; margin-bottom: var(--s-6) !important; }
.tk-code { display: flex; justify-content: space-between; align-items: baseline; padding: var(--s-3) 0; border-block: 1px dashed #9b968a; }
.tk-code span { font-size: var(--t-meta); color: #5d5a52; }
.tk-code b { font-size: 1.25rem; font-weight: var(--w-semi); font-stretch: var(--wide); letter-spacing: 0.04em; }
.tk-foot { margin-top: var(--s-3) !important; font-size: var(--t-meta); color: #5d5a52; }
.js .ticket[data-ticket] { transform: translateY(-104%); }
.js .ticket.in { transform: none; transition: transform 900ms var(--ease-out); }
@media (prefers-reduced-motion: reduce) { .js .ticket[data-ticket] { transform: none; } .js .ticket.in { transition: none; } }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: st; border-top: 1px solid var(--hair); }
.steps li { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); padding: var(--s-6) 0; border-bottom: 1px solid var(--hair); counter-increment: st; }
.steps li::before { content: counter(st); grid-row: 1 / 3; font-weight: var(--w-semi); font-stretch: var(--wide); font-size: 1.25rem; color: var(--trophy-hi); font-variant-numeric: tabular-nums; }
.steps h3 { margin: 0 0 var(--s-2); font-size: 1.25rem; }
.steps p { margin: 0; color: var(--grey); }
@media (max-width: 860px) { .ref2 { grid-template-columns: 1fr; } .ticket-slot { max-width: 420px; } }

/* =========================================================
   RESULTS
   ========================================================= */
.section-alt { background: var(--pitwall); border-color: var(--hair); }
.job-head h2 { font-weight: var(--w-semi); }
.job-tags span { font-stretch: 100%; letter-spacing: 0; font-weight: var(--w-medium); font-size: var(--t-meta); background: transparent; border: 1px solid var(--hair-2); color: var(--grey); }

/* =========================================================
   LEGAL
   ========================================================= */
.legal-toc a { transition: color var(--d-150) ease; }
.legal-toc a.on { color: var(--trophy-hi); }
.legal-body h2 { font-weight: var(--w-semi); }
.legal-body h2 span { color: var(--trophy); font-stretch: 100%; }
.legal-sum { background: var(--pitwall); border: 1px solid var(--hair); border-left: 2px solid var(--trophy); clip-path: none; }
@media (max-width: 900px) {
  .plate { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "id price" "id time" "inc inc" "cta cta"; gap: var(--s-2) var(--s-6); }
  .pl-id { grid-area: id; grid-column: auto; grid-row: auto; }
  .pl-num { display: contents; }
  .pl-price { grid-area: price; text-align: right; font-size: 2rem; }
  .pl-time { grid-area: time; text-align: right; margin: 0; }
  .pl-inc { grid-area: inc; margin-top: var(--s-4); }
  .pl-num .btn-x { display: inline-flex; grid-area: cta; margin-top: var(--s-4); width: 100%; }
}

/* =========================================================
   BOOK: the wizard in the new language
   ========================================================= */
.book-section { padding-top: var(--s-8); }
.book-summary, .quote-top.book-summary { background: var(--pitwall) !important; border: 1px solid var(--hair) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04); clip-path: none !important; }
.wiz { background: var(--pitwall); border-color: var(--hair); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04); }
.gauge-readout strong { font-weight: var(--w-semi); font-stretch: var(--wide); font-variant-numeric: tabular-nums; }
/* signature: the needle springs to each new price */
.gauge-needle { transition: transform 800ms var(--spring); }
.gauge-arc { transition: stroke-dashoffset var(--d-300) var(--ease-out); }
@media (prefers-reduced-motion: reduce) { .gauge-needle, .gauge-arc { transition: none; } }

.wiz-step > legend { font-weight: var(--w-semi); }
.wiz-progress .bar { height: 3px; transform-origin: left; transition: background-color var(--d-200) ease; }
.wiz-progress .now .bar { animation: bar-fill var(--d-300) var(--ease-out) both; }
@keyframes bar-fill { from { transform: scaleX(0.2); } }
.wiz-progress .lbl { text-transform: none; letter-spacing: 0; font-stretch: 100%; font-weight: var(--w-medium); font-size: var(--t-meta); }
.lap-txt .dl { text-transform: none; letter-spacing: 0; }
.wiz-step.slide-fwd { animation: step-fwd var(--d-300) var(--ease-out) both; }
.wiz-step.slide-back { animation: step-back var(--d-300) var(--ease-out) both; }
@keyframes step-fwd { from { opacity: 0; transform: translateX(24px); } }
@keyframes step-back { from { opacity: 0; transform: translateX(-24px); } }
@media (prefers-reduced-motion: reduce) {
  .wiz-step.slide-fwd, .wiz-step.slide-back { animation: none; }
  .wiz-progress .now .bar { animation: none; }
}

/* answers */
.opt-face { background: var(--asphalt) !important; border: 1px solid var(--hair-2) !important; transition: border-color var(--d-150) ease, background-color var(--d-150) ease, transform var(--d-100) var(--ease-out) !important; }
.opt-face b { font-weight: var(--w-medium); font-stretch: 100%; }
.opt-face em { font-weight: var(--w-semi); }
.opt input:checked + .opt-face { border-color: var(--trophy) !important; background: var(--pitwall-2) !important; box-shadow: inset 3px 0 0 var(--trophy) !important; }
.opt-face::after { transition: border-color var(--d-150) ease, background-color var(--d-150) ease, box-shadow var(--d-150) ease; }
.opt:active .opt-face { transform: scale(0.985); }
@media (hover: hover) and (pointer: fine) { .opt:hover .opt-face { border-color: var(--trophy) !important; } }
.day-chip span, .time-chip span { background: var(--asphalt); border-color: var(--hair-2); transition: border-color var(--d-150) ease, background-color var(--d-150) ease, transform var(--d-100) var(--ease-out); }
.day-chip input:checked + span, .time-chip input:checked + span { background: var(--pitwall-2) !important; border-color: var(--trophy) !important; box-shadow: inset 0 -2px 0 var(--trophy) !important; }
.day-chip b { font-weight: var(--w-semi); }
.field label { font-weight: var(--w-medium); }
.field input, .field select, .field textarea { background: var(--asphalt) !important; border: 1px solid var(--hair-2) !important; border-radius: 0; transition: border-color var(--d-150) ease; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--trophy) !important; box-shadow: inset 0 -2px 0 var(--trophy); }
@media (prefers-reduced-motion: reduce) { .opt:active .opt-face { transform: none; } }

/* old .btn family (wizard, admin) matched to the new buttons */
.btn { border-radius: 0; font-weight: var(--w-medium); font-stretch: 100%; letter-spacing: 0; transition: transform var(--d-100) var(--ease-out), background-color var(--d-150) ease, border-color var(--d-150) ease, color var(--d-150) ease; }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--trophy) !important; color: var(--asphalt) !important; background-image: none !important; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%); }
@media (hover: hover) and (pointer: fine) { .btn-primary:hover { background: var(--trophy-hi) !important; } }
.btn-ghost { border-color: var(--hair-2); }
@media (prefers-reduced-motion: reduce) { .btn:active { transform: none; } }

/* price dock (phones) uses the same panel */
.price-dock { background: rgba(21, 24, 28, 0.98); -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom: 1px solid var(--hair); }
.pd-num strong { font-weight: var(--w-semi); }
.pd-btn { border-color: var(--hair-2); }

/* admin page cards */
.up-card { background: var(--pitwall); border-color: var(--hair); border-radius: 0; }

/* lights-out intro: deeper asphalt, same gantry */
.lights-intro { background: var(--asphalt); }
/* the referral steps replace an older .steps grid */
ol.steps { display: block !important; grid-template-columns: none !important; }
ol.steps li { padding: var(--s-6) 0 !important; border-left: 0 !important; border-top: 0 !important; }
ol.steps li::before { display: block; font-size: 1.25rem; line-height: 1.3; margin: 0; font-family: inherit; }
.faq-wrap { align-items: start; }
/* visible boundaries on things you can pick or type into */
.opt-face { border-color: var(--field) !important; }
.day-chip span, .time-chip span { border-color: var(--field); }
.field input, .field select, .field textarea { border-color: var(--field) !important; }
.btn-line, .rb-line, .btn-ghost { border-color: var(--field); }
.qt-sum dt, .sum-list dt, .lap-sum dt, .review-list dt { text-transform: none !important; letter-spacing: 0 !important; font-stretch: 100% !important; font-weight: var(--w-medium) !important; font-size: var(--t-meta) !important; color: var(--grey-2) !important; }

/* =========================================================
   v37.2 refinements
   ========================================================= */
/* lap: the timing board is the readable part, not a ghost */
.lap-board li { padding-block: var(--s-4); }
.lb-n { font-size: var(--t-secondary); color: var(--grey); }
.lb-t { font-size: 1.0625rem; line-height: 1.5; color: var(--grey); }
.lap-board li.on .lb-t { color: var(--ivory); }

/* phones: the map and board pin in the middle of the screen while the lap runs */
.lap-run { min-width: 0; }
@media (max-width: 959px) and (prefers-reduced-motion: no-preference) {
  .js .lap-run { height: calc(100svh + 70vh); margin-top: var(--s-8); }
  .js .lap-map { position: sticky; top: var(--header-h); height: calc(100svh - var(--header-h)); display: flex; flex-direction: column; justify-content: center; }
  .js .lap-board { margin-top: var(--s-6); }
}
@media (max-width: 959px) and (max-height: 700px) and (prefers-reduced-motion: no-preference) {
  .js .lap-board li { padding-block: var(--s-3); }
  .js .lb-t { font-size: var(--t-secondary); }
  .js .lap-board { margin-top: var(--s-4); }
}

/* leaderboard numbers: outlined, like a timing tower */
.ts-head, .ts-row { grid-template-columns: 56px minmax(0, 1.5fr) minmax(0, 0.8fr) minmax(0, 2.6fr) minmax(0, 0.7fr) minmax(0, 0.8fr); }
.ts-pos, .pl-pos {
  font-weight: var(--w-semi); font-stretch: var(--wide); font-size: 2.25rem; line-height: 1; letter-spacing: -0.02em;
  color: transparent; -webkit-text-stroke: 1px var(--field); font-variant-numeric: tabular-nums;
  transition: -webkit-text-stroke-color var(--d-200) ease;
}
.ts-row:hover .ts-pos, .ts-row:focus-visible .ts-pos { -webkit-text-stroke-color: var(--trophy); }
.ts-list li:last-child .ts-pos { -webkit-text-stroke-color: var(--trophy); }
.pl-pos { display: block; font-size: 3rem; margin-bottom: var(--s-3); -webkit-text-stroke-color: var(--field); }
.plate:hover .pl-pos { -webkit-text-stroke-color: var(--trophy); }
.plate-special .pl-pos { -webkit-text-stroke-color: var(--trophy); }
@supports not (-webkit-text-stroke: 1px black) { .ts-pos, .pl-pos { color: var(--hair-2); } }
@media (max-width: 800px) {
  .ts-row { grid-template-columns: 44px minmax(0, 1fr) auto; grid-template-areas: "pos name price" "pos inc inc" "pos meta meta"; }
  .ts-pos { grid-area: pos; font-size: 1.75rem; align-self: start; }
}
@media (max-width: 900px) { .pl-pos { font-size: 2.25rem; } }
@media (prefers-reduced-motion: reduce) { .ts-pos, .pl-pos { transition: none; } }

/* power and water note: a small mark, not a big decal */
.note { display: flex; gap: var(--s-3); align-items: flex-start; }
.note svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--trophy); }

/* home: refer a friend */
.refer-card { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-12) clamp(40px, 6vw, 96px); align-items: center; padding: var(--s-8); background: var(--pitwall); border: 1px solid var(--hair); }
.refer-card .ticket-slot { max-width: 380px; }
.refer-copy h2 { margin: 0 0 var(--s-4); font-size: var(--t-h2); }
.refer-copy p { margin: 0 0 var(--s-8); color: var(--grey); max-width: 52ch; }
@media (max-width: 860px) { .refer-card { grid-template-columns: 1fr; padding: var(--s-6); gap: var(--s-8); } .refer-card .ticket-slot { margin-inline: auto; width: 100%; } }
@media (max-width: 400px) {
  .ts-row { grid-template-columns: 34px minmax(0, 1fr) auto; column-gap: var(--s-3); padding-left: var(--s-4); }
  .ts-pos { font-size: 1.5rem; }
  .ts-name { font-size: 1rem; min-width: 0; overflow-wrap: anywhere; }
  .ts-price { text-align: right; line-height: 1.1; }
  .ts-price small { display: block; }
}
@media (max-width: 360px) { .rh-brand { padding-right: var(--s-2); } .rh-brand span { font-size: 0.8rem; font-stretch: 100%; } .rh-brand small { letter-spacing: 0.18em; } }
@media (max-width: 480px) {
  .ticket { margin: 0 var(--s-3); padding: var(--s-6) var(--s-4) var(--s-4); }
  .tk-amt { font-size: 2.5rem; margin-top: var(--s-4) !important; }
  .tk-code { flex-wrap: wrap; gap: var(--s-1) var(--s-3); }
  .tk-code b { font-size: 1.05rem; overflow-wrap: anywhere; }
}

/* =========================================================
   v38 — SPORTIER MOTION
   ========================================================= */

/* ---------- Footer wordmark: outlined, a gold outline sweeps across once it's in view ---------- */
.ft-mark {
  position: relative; max-width: var(--rw, 1280px); margin: 0 auto; padding: var(--s-4) var(--pad) 0;
  overflow: hidden; isolation: isolate; user-select: none; pointer-events: none;
}
.ft-mark span { display: block; }
.fm-out, .fm-gold > span {
  font-weight: var(--w-semi); font-stretch: var(--wide); text-transform: uppercase; white-space: nowrap;
  font-size: min(8.8vw, 124px); line-height: 0.82; letter-spacing: -0.035em; text-align: center;
  color: transparent; -webkit-text-stroke: 1px var(--hair-2);
}
.fm-gold { position: absolute; inset: var(--s-4) var(--pad) 0; overflow: hidden; }
.fm-gold > span { -webkit-text-stroke-color: var(--trophy); }
.js .fm-gold { transform: translateX(-101%); }
.js .fm-gold > span { transform: translateX(101%); }
.js .ft-mark.in .fm-gold, .js .ft-mark.in .fm-gold > span { transform: none; transition: transform 1400ms var(--ease-out); }
@supports not (-webkit-text-stroke: 1px black) { .fm-out { color: var(--hair); } .fm-gold { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .js .fm-gold, .js .fm-gold > span { transform: none; transition: none; }
}

/* ---------- Speed lines (added by apex.js to the hero, page headers, the finish band and the wordmark) ---------- */
.has-speed { isolation: isolate; }
.has-speed:not(.lap-track):not(.pg):not(.ft-mark) { position: relative; }
@media (max-width: 959px) { .lap-track > .speed { inset: -14% 0 !important; } }
.lap-track > .speed { inset: -14% -10%; -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent); mask-image: radial-gradient(closest-side, #000 55%, transparent); }
.pg > .speed { -webkit-mask-image: linear-gradient(90deg, transparent 20%, #000 70%); mask-image: linear-gradient(90deg, transparent 20%, #000 70%); }
.finish > .speed { -webkit-mask-image: linear-gradient(90deg, #000, rgba(0,0,0,0.35) 40%, rgba(0,0,0,0.35) 60%, #000); mask-image: linear-gradient(90deg, #000, rgba(0,0,0,0.35) 40%, rgba(0,0,0,0.35) 60%, #000); }
.speed { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; contain: strict; }
.speed i {
  position: absolute; left: 100%; top: var(--y); width: var(--w); height: var(--h, 1px);
  will-change: transform;
}
.speed i::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, var(--c, rgba(225, 196, 143, 0.85)) 70%, transparent);
  opacity: min(1, calc(var(--o, 0.35) + var(--rush, 0) * 0.6));
  transform: scaleX(calc(1 + var(--rush, 0) * 2.2)); transform-origin: right;
  transition: opacity 180ms ease, transform 180ms ease;
}
.ft-mark .speed { inset: 0; }
@media (prefers-reduced-motion: reduce) { .speed { display: none; } }

/* ---------- Rev bar: scroll progress under the header, hot red at the leading edge ---------- */
.rev { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; overflow: hidden; display: block !important; }
.rev i {
  position: absolute; inset: 0; transform-origin: left; transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, rgba(201, 164, 106, 0.25), var(--trophy) 82%, var(--trophy-hi) 92%, var(--redline));
}
.rev.max i { background: var(--redline); animation: shift 600ms steps(2, jump-none) 2; }
@keyframes shift { 50% { opacity: 0.25; } }
@media (prefers-reduced-motion: reduce) { .rev.max i { animation: none; } }

/* ---------- Gold buttons: a light sweep crosses on hover, the arrow pushes forward ---------- */
.rb-gold, .btn-gold, .rh-book, .btn-primary { position: relative; overflow: hidden; isolation: isolate; }
.rb-gold::after, .btn-gold::after, .rh-book::after, .btn-primary::after {
  content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: 0; width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: translateX(-140%) skewX(-24deg); pointer-events: none;
}
.rb svg, .btn-x svg { transition: transform var(--d-200) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .rb-gold:hover::after, .btn-gold:hover::after, .rh-book:hover::after, .btn-primary:hover::after { transform: translateX(320%) skewX(-24deg); transition: transform 600ms var(--ease-out); }
  .rb:hover svg, .btn-x:hover svg { transform: translateX(4px); }
  /* nav: a slanted gold underline slides in */
  .rh-nav > a:not([aria-current="page"])::after {
    content: ""; position: absolute; left: 22px; right: 22px; bottom: 10px; height: 2px; background: var(--trophy);
    transform: scaleX(0) skewX(-30deg); transform-origin: left; transition: transform var(--d-200) var(--ease-out);
  }
  .rh-nav > a:not([aria-current="page"]):hover::after { transform: scaleX(1) skewX(-30deg); }
}
@media (prefers-reduced-motion: reduce) {
  .rb-gold::after, .btn-gold::after, .rh-book::after, .btn-primary::after { display: none; }
  .rb svg, .btn-x svg { transition: none; }
}

/* ---------- Racing stripe above section titles and page titles ---------- */
.sec-head h2::before, .pg h1::before, .finish h2::before {
  content: ""; display: block; width: 56px; height: 4px; margin-bottom: var(--s-4);
  background: linear-gradient(90deg, var(--redline) 0 28%, transparent 28% 40%, var(--trophy) 40% 100%);
  transform: skewX(-24deg); transform-origin: left;
}
.js .sec-head h2::before, .js .finish h2::before { transform: skewX(-24deg) scaleX(0); }
.js .sec-head.in h2::before, .js .finish.in h2::before { transform: skewX(-24deg); transition: transform 500ms var(--ease-out); }
.js .pg h1::before { transform: skewX(-24deg) scaleX(0); }
.js .pg.go h1::before { transform: skewX(-24deg); transition: transform 500ms var(--ease-out) 120ms; }
/* page titles come in fast from the left, leaning forward, then straighten */
.js .pg h1 { transform: translateX(-28px) skewX(-8deg); opacity: 0; }
.js .pg.go h1 { transform: none; opacity: 1; transition: transform 550ms var(--ease-out), opacity 250ms ease; }
@media (prefers-reduced-motion: reduce) {
  .js .sec-head h2::before, .js .finish h2::before, .js .pg h1::before { transform: skewX(-24deg); transition: none; }
  .js .pg h1 { transform: none; opacity: 1; transition: none; }
}
/* failsafe: if the motion script never runs, titles still appear */
@keyframes show-safe { to { opacity: 1; transform: none; } }
.js .pg:not(.go) h1 { animation: show-safe 0s 2.5s forwards; }

/* =========================================================
   v39 — DEPOSIT + RESCHEDULE
   ========================================================= */
/* Deposit note above the Book button */
.dep-note { margin: var(--s-6) 0 20px; padding: var(--s-4) 20px; background: var(--pitwall); border: 1px solid var(--hair-2); border-left: 3px solid var(--trophy); }
.dep-note[hidden] { display: none; }
.dep-note p { margin: 0 0 var(--s-2); color: var(--grey); font-size: 0.9375rem; line-height: 1.55; max-width: 62ch; }
.dep-note p:last-child { margin-bottom: 0; }
.dep-note .dep-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s-1) var(--s-4); color: var(--ivory); }
.dep-note .dep-head b { font-weight: var(--w-semi); font-size: 1rem; }
.dep-note .dep-head > span { color: var(--trophy-hi); font-size: 0.8125rem; letter-spacing: 0.04em; }
.dep-note .dep-rule { font-size: 0.875rem; color: var(--grey-2); }
.submit-status.ok { color: var(--trophy-hi); }

/* Panels that replace the form: checking a deposit, rescheduling */
.book-panel { max-width: 680px; margin: 0 auto; padding: clamp(10px, 3vw, 30px) 0; }
.book-panel[hidden] { display: none; }
.book-panel:focus { outline: none; }
.book-panel h2 { font-size: var(--t-h2, 2rem); margin: 0 0 var(--s-3); }
.book-panel .lede { color: var(--grey); margin: 0 0 var(--s-6); max-width: 56ch; }
.book-panel .muted { color: var(--grey-2); font-size: 0.9375rem; margin: 20px 0 0; }
.book-panel .muted a, .book-panel .slot-msg a { color: var(--trophy-hi); }
#pay-panel { text-align: center; }
#pay-panel .lede { margin-left: auto; margin-right: auto; }
#pay-panel .btn-row { justify-content: center; }
.bp-spin { justify-content: center; margin: 0 auto var(--s-6); }
.bp-spin span { flex-basis: 14px; height: 14px; border-radius: 50%; }
.bp-spin[hidden] { display: none; }
.resched .dl { margin: 0 0 var(--s-2); }
.rs-now { margin: 0 0 20px; }
.rs-note { color: var(--grey); font-size: 0.9375rem; line-height: 1.55; margin: 0 0 20px; max-width: 62ch; }
.rs-note a { color: var(--trophy-hi); }
.rs-days, .rs-days.fade-l, .rs-days.fade-r { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); grid-auto-columns: auto; overflow: visible; -webkit-mask-image: none; mask-image: none; }
.rs-go { margin-top: var(--s-6); width: 100%; max-width: 360px; }
.rs-go:disabled { opacity: 0.5; cursor: not-allowed; }
.rs-actions { margin-top: 20px; }
.rs-done { text-align: center; }
.rs-done .lede { margin-left: auto; margin-right: auto; color: var(--ivory); font-weight: var(--w-semi); }
.rs-done .btn-row { justify-content: center; }
#rs-err { color: #f08a84; min-height: 1.2em; margin: var(--s-3) 0 0; }
.legal-body section h3 { font-size: 1.125rem; font-stretch: 100%; letter-spacing: 0; margin: var(--s-6) 0 var(--s-2); color: var(--ivory); }
.legal-body section h2 + h3 { margin-top: var(--s-3); }
.rs-done .dl { justify-content: center; text-align: center; }
/* Smallest phones: the mini circuit sits above the title so long words never break */
@media (max-width: 400px) {
  .pg-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .pg-mini { order: -1; justify-self: end; width: 76px; margin: 0 0 -4px; }
}
@media (max-width: 400px) { .pg h1 { font-size: min(var(--t-h1), 10.4vw); } }
/* Admin: payment links */
.pay-find { display: flex; align-items: flex-start; gap: var(--s-3); flex-wrap: wrap; }
.pay-find .field { flex: 1 1 220px; margin: 0; }
.pay-find .btn { margin-top: 28px; }
.pay-sum { margin: var(--s-6) 0; }
.pay-result { margin-top: var(--s-6); padding: var(--s-4); border: 1px solid var(--trophy); background: var(--pitwall-2); }
.pay-result[hidden], #pay-booking[hidden] { display: none; }
.pay-result-head { margin: 0 0 var(--s-3); color: var(--ivory); font-weight: var(--w-semi); }
#pay-url { width: 100%; font-size: 0.875rem; color: var(--trophy-hi); background: var(--asphalt); border: 1px solid var(--hair-2); padding: 10px 12px; }
@media (max-width: 600px) { .pay-find .btn { margin-top: 0; } }

/* =========================================================
   v42 — CONDITION, PACKAGE VALUE
   ========================================================= */
.svc-n { display: inline-block; font-style: normal; font-size: 0.75rem; font-weight: var(--w-semi); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--trophy-hi); margin-right: 6px; }
.opt-pro .opt-face { border-color: var(--hair-2); }
.cond { margin-top: var(--s-6); padding-top: var(--s-6); border-top: 1px solid var(--hair); }
.cond[hidden] { display: none; }
.cond-q { margin: 0 0 var(--s-3); font-weight: var(--w-semi); color: var(--ivory); font-size: 1.0625rem; }
.cond.invalid .cond-q { color: #f08a84; }
.cond-switch { margin: var(--s-3) 0 0; color: var(--trophy-hi); font-size: 0.9375rem; min-height: 1px; }
.cond-switch:empty { display: none; }
.upsell { margin: var(--s-4) 0 0; padding: 12px 14px; border-left: 3px solid var(--trophy); background: var(--pitwall); color: var(--grey); font-size: 0.9375rem; line-height: 1.5; }
.upsell[hidden], .pkg-note[hidden] { display: none; }
.upsell .link-btn { color: var(--trophy-hi); white-space: nowrap; }
.pkg-note { margin: var(--s-3) 0 0; color: var(--grey-2); font-size: 0.875rem; line-height: 1.5; max-width: 64ch; }
/* Service counts and "everything in ... plus" */
.pl-count { margin: 0 0 var(--s-3); font-size: var(--t-meta); letter-spacing: 0.08em; text-transform: uppercase; color: var(--grey-2); }
.pl-count b { font-size: 1.25rem; font-weight: var(--w-semi); font-stretch: var(--wide); color: var(--ivory); letter-spacing: 0; margin-right: 4px; }
.plate-pro .pl-count b, .plate-best .pl-count b { color: var(--trophy-hi); }
.pl-plus { margin: 0 0 var(--s-3); font-size: var(--t-secondary); color: var(--ivory); font-weight: var(--w-medium); }
.pl-fine { margin: var(--s-4) 0 0; font-size: 0.8125rem; line-height: 1.5; color: var(--grey-2); max-width: 52ch; }
.pl-save { margin: 0; font-size: var(--t-meta); color: var(--grey-2); text-decoration: line-through; }
.plate-best { background: linear-gradient(90deg, rgba(201, 164, 106, 0.09), transparent 70%), var(--pitwall-2); box-shadow: inset 3px 0 0 var(--trophy); }
.plate-best .pl-price { color: var(--trophy-hi); }
.plate-best .pl-pos { -webkit-text-stroke-color: var(--trophy); }
@media (max-width: 900px) { .pl-body { grid-column: 1 / -1; } }

/* Compare tables */
.cmp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6); }
@media (max-width: 900px) { .cmp-grid { grid-template-columns: minmax(0, 1fr); } }
.cmp { width: 100%; border-collapse: collapse; }
.cmp caption { text-align: left; padding: var(--s-4) var(--s-6) var(--s-2); font-weight: var(--w-semi); font-stretch: var(--wide); color: var(--ivory); caption-side: top; background: var(--pitwall); border: 1px solid var(--hair); border-bottom: 0; }
.cmp thead th { text-align: center; vertical-align: bottom; color: var(--ivory); font-size: var(--t-secondary); }
.cmp thead th:first-child { text-align: left; color: var(--grey-2); font-size: var(--t-meta); }
.cmp thead th small { display: block; font-size: var(--t-meta); color: var(--grey-2); font-weight: var(--w-regular); margin-top: 2px; }
.cmp thead th.cmp-pro small { color: var(--trophy-hi); }
.cmp tbody th { text-align: left; font-weight: var(--w-regular); color: var(--grey); font-size: var(--t-secondary); padding: var(--s-3) var(--s-6); border-bottom: 1px solid var(--hair); }
.cmp td { text-align: center; padding: var(--s-3) var(--s-4); }
.cmp td:last-child { background: rgba(201, 164, 106, 0.05); }
.ck { color: var(--trophy-hi); font-weight: var(--w-semi); }
.ck.no { color: var(--field); }
.ck-add { color: var(--grey); font-size: var(--t-meta); font-weight: var(--w-semi); }
.ck-note { display: block; font-size: 0.75rem; color: var(--grey-2); }
@media (max-width: 420px) {
  .cmp tbody th, .cmp thead th:first-child { padding-left: var(--s-4); padding-right: var(--s-2); }
  .cmp td, .cmp thead th { padding-left: var(--s-2); padding-right: var(--s-2); }
}
.row-best td { background: rgba(201, 164, 106, 0.07); }
.row-best td:first-child { box-shadow: inset 3px 0 0 var(--trophy); }

/* Home timing sheet: service counts */
.ts-n { display: block; margin-top: 2px; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--grey-2); }
.ts-row-best { background: linear-gradient(90deg, rgba(201, 164, 106, 0.1), transparent 75%); }
.ts-row-best .ts-n { color: var(--trophy-hi); }

/* Landscape before/after pairs (Lexus RX) */
.ba.ba-wide { aspect-ratio: 4 / 3; }

/* Power & water note on its own row (services) */
.note.note-solo { margin-top: 32px; max-width: 760px; }
.upsell#upsell-wax { grid-column: 1 / -1; margin: 0; }

/* Mobile menu: lock scrolling on <html>, never on <body>. html has overflow-x: clip, so overflow on
   body would turn body into its own scroll box and the sticky header would scroll away behind the menu. */
html.nav-lock { overflow: hidden; }
body.nav-open { overflow: visible; overflow-x: clip; }

/* ---------- v47: logo up front ---------- */
.rh-brand img.rh-mark { width: 100px; height: auto; }
@media (max-width: 900px) { .rh-brand img.rh-mark { width: 78px; } }
@media (max-width: 380px) { .rh-brand img.rh-mark { width: 64px; } }
/* Home hero: the full logo leads the page */
.lap-logo { display: block; width: min(400px, 72vw); height: auto; margin: 0 0 var(--s-6); filter: drop-shadow(0 6px 24px rgba(0, 0, 0, .55)); }
/* The keyword line lives inside the h1 (for search) but keeps the small gold eyebrow look */
.lap-copy h1 .lap-where { display: block; margin: 0 0 var(--s-5, 16px); font-size: var(--t-secondary); line-height: 1.4; letter-spacing: 0; font-stretch: 100%; max-width: none; }
/* Footer: the logo replaces the plain name */
.ft-name { margin: 0 0 var(--s-4, 12px); }
.ft-name a { display: inline-block; }
.ft-logo { display: block; width: 280px; max-width: 100%; height: auto; }
@media (max-width: 600px) { .ft-logo { width: 240px; } }
@media (prefers-reduced-motion: no-preference) {
  .lap-logo { animation: logo-in .9s var(--ease-out, ease-out) both; }
  @keyframes logo-in { from { opacity: 0; transform: translateY(10px) scale(.98); filter: drop-shadow(0 6px 24px rgba(0,0,0,.55)) brightness(.7); } to { opacity: 1; transform: none; } }
}
img.lap-logo, img.rh-mark, img.ft-logo { outline: 0; }

/* Service area page: town board */
.sa-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hair); }
.sa-list li { display: grid; grid-template-columns: 56px 1fr auto; align-items: baseline; gap: var(--s-4, 12px); padding: var(--s-6, 20px) 0; border-bottom: 1px solid var(--hair); }
.sa-n { font-weight: 800; font-stretch: 125%; font-size: 1.5rem; color: transparent; -webkit-text-stroke: 1px var(--trophy-hi, #ead2a2); }
.sa-town { font-weight: var(--w-semi, 600); font-stretch: 112%; font-size: clamp(1.4rem, 4.6vw, 2.2rem); letter-spacing: -0.02em; color: var(--ivory, #ece8df); }
.sa-co { color: var(--grey); font-size: var(--t-secondary); text-align: right; }
@media (max-width: 600px) {
  .sa-list li { grid-template-columns: 44px 1fr; row-gap: 2px; }
  .sa-co { grid-column: 2; text-align: left; }
}

/* ---------- v48: cleaner header + hero ---------- */
/* Home hero: one brand moment, one headline, no halo */
.lap-logo { width: min(320px, 60vw); margin: 0 0 var(--s-6); filter: none; }
@media (prefers-reduced-motion: no-preference) {
  .lap-logo { animation: logo-in2 .8s var(--ease-out, ease-out) both; }
  @keyframes logo-in2 { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}
.lap-copy h1 { font-size: clamp(2.2rem, 4.4vw, 4.2rem); line-height: 1.02; max-width: 15ch; margin-bottom: var(--s-5, 16px); }
.lap-copy .lap-lede { max-width: 46ch; }
@media (max-width: 600px) {
  .lap-copy h1 { font-size: clamp(2rem, 9.4vw, 2.6rem); max-width: 14ch; }
  .lap-logo { width: 56vw; margin-bottom: var(--s-5, 16px); }
}
/* Header: emblem only on phones/tablets; emblem + name on desktop */
@media (max-width: 900px) {
  .rh-brand span { display: none; }
  .rh-brand img.rh-mark { width: 64px; }
}
@media (min-width: 901px) {
  .rh-brand img.rh-mark { width: 84px; }
}
/* About: on-the-job photos */
.onjob { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5, 16px); margin: 0 0 var(--s-8, 32px); }
.onjob figure { margin: 0; }
.onjob img { display: block; width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.onjob figcaption { margin-top: 8px; font-size: var(--t-secondary); color: var(--grey); }
@media (max-width: 700px) { .onjob { grid-template-columns: 1fr; } }
@media (min-width: 901px) {
  .lap-copy h1 { font-size: clamp(2.6rem, 3.6vw, 3.5rem); max-width: 16ch; }
  .lap-logo { width: 280px; }
}
.onjob { margin-bottom: 40px; }
.drive img { object-position: 50% 30%; }
/* Kit chips + "Mostly mobile" note line up with the two photos above */
.kit2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5, 16px); }
.kit2 .chips { margin: 0; }
.kit2 .note { margin: 0; }
@media (max-width: 700px) { .kit2 { grid-template-columns: 1fr; } }

/* Combos table on phones: inset each row from the card edge and put the
   "Best value" highlight on the whole row, so the gold bar, tint and price line up */
@media (max-width: 520px) {
  .ttable.combos tr { padding: var(--s-4); column-gap: var(--s-4); }
  .ttable.combos tr:last-child { border-bottom: 0; }
  .ttable.combos tr.row-best { background: rgba(201, 164, 106, 0.07); box-shadow: inset 3px 0 0 var(--trophy); }
  .ttable.combos tr.row-best td { background: none; box-shadow: none; }
  .ttable.combos .ts-tag { display: block; margin: 2px 0 0; }
}
.sa-town a { color: inherit; text-decoration: underline; text-decoration-color: var(--trophy); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }

/* About: kit grouped by job */
.kit-groups { margin-top: 28px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-6, 24px) var(--s-5, 16px); align-items: start; }
.kit-group h3 { margin: 0 0 10px; font-size: var(--t-secondary); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--trophy-hi, #ead2a2); }
.kit-group .chips { gap: 6px; }
.kit-note { margin: var(--s-6, 24px) 0 0; }
@media (max-width: 1000px) { .kit-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .kit-groups { grid-template-columns: 1fr; } }
/* Services: room between stacked price tables (Add-ons → Interior condition) */
.ttable + h3 { margin-top: 48px; }

/* Footer wordmark, v56: one word in the page (no duplicate text). The gold outline is drawn by ::after */
.fm-out { position: relative; }
.fm-out::after {
  content: attr(data-text); position: absolute; inset: 0;
  color: transparent; -webkit-text-stroke: 1px var(--trophy);
  clip-path: inset(0 0 0 0);
}
.js .fm-out::after { clip-path: inset(0 100% 0 0); }
.js .ft-mark.in .fm-out::after { clip-path: inset(0 0 0 0); transition: clip-path 1400ms var(--ease-out); }
@supports not (-webkit-text-stroke: 1px black) { .fm-out::after { display: none; } }
@media (prefers-reduced-motion: reduce) { .js .fm-out::after { clip-path: inset(0 0 0 0); transition: none; } }

/* ---------- v56: car-people positioning ---------- */
/* Satisfaction promise near booking buttons */
.promise { margin: var(--s-5, 16px) 0 0; max-width: 56ch; font-size: var(--t-secondary); color: var(--grey); line-height: 1.55; }
.promise strong { color: var(--ivory, #ece8df); font-weight: 600; }
.finish .promise { margin-left: auto; margin-right: auto; text-align: center; }
.promise-hero { margin-top: var(--s-4, 12px); }
/* Pit Crew Checklist */
.pit-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hair); counter-reset: pit; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-8, 40px); }
.pit-list li { counter-increment: pit; display: grid; grid-template-columns: 44px 140px minmax(0, 1fr); align-items: baseline; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--hair); }
.pit-list li::before { content: counter(pit, decimal-leading-zero); font-weight: 800; font-stretch: 125%; color: transparent; -webkit-text-stroke: 1px var(--trophy-hi, #ead2a2); font-size: 1.25rem; }
.pit-k { font-weight: 600; font-stretch: 112%; color: var(--ivory, #ece8df); text-transform: uppercase; letter-spacing: .06em; font-size: .95rem; }
.pit-v { color: var(--grey); font-size: var(--t-secondary); }
.pit-note { margin-top: var(--s-5, 16px); color: var(--grey); font-size: var(--t-secondary); }
@media (max-width: 800px) {
  .pit-list { grid-template-columns: 1fr; }
  .pit-list li { grid-template-columns: 36px minmax(0, 1fr); row-gap: 4px; }
  .pit-v { grid-column: 2; }
}

/* Admin: ring it up */
.ring-days { display: flex; gap: 8px; margin: 12px 0 16px; }
.ring-days [aria-pressed="true"] { border-color: var(--trophy); color: var(--ivory, #ece8df); }
.ring-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ring-item, .ring-one { padding: 14px 16px; border: 1px solid var(--hair); border-left: 3px solid var(--trophy); }
.ring-one { margin: 0 0 var(--s-6, 24px); }
.ring-head { margin: 0 0 8px; }
.ring-steps { margin: 0 0 8px; padding-left: 20px; line-height: 1.55; }
.ring-steps li { margin: 2px 0; }
.ring-due { margin: 0; font-size: 1.05rem; }
.ring-due strong { color: var(--trophy-hi, #ead2a2); font-size: 1.25rem; }

/* ===== v58 layout polish ===== */
/* Section heads: heading with its subtitle directly underneath (no floating blurb). */
.sec-head { grid-template-columns: 1fr; gap: var(--s-4, 12px); align-items: start; }
.sec-head p { max-width: 60ch; font-size: 1.0625rem; }

/* About: "why Straightaway" reads as one passage. */
.why2 { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--s-8) clamp(32px, 5vw, 72px); align-items: center; }
.why2-quote { max-width: 16ch; }
.why2-body { border-left: 2px solid var(--trophy, #c9a46a); padding-left: clamp(20px, 2.4vw, 32px); }
.why2-body p { max-width: 46ch; line-height: 1.65; }
.why2-body p:last-child { margin-bottom: 0; }
.why2-body .why2-lead { color: var(--ivory, #ece8df); font-size: 1.25rem; line-height: 1.45; font-weight: var(--w-medium, 500); }
@media (max-width: 860px) { .why2 { gap: var(--s-6, 24px); } .why2-quote { max-width: 20ch; } }

/* About: kit spacing. */
.onjob { margin-bottom: 0; }
.onjob figcaption { margin-top: 10px; }
.onjob + .kit-groups { margin-top: clamp(36px, 4vw, 52px); }
.kit-note p { max-width: none; }

/* Closing call-to-action: one centered column on every screen. */
.finish { text-align: center; }
.finish .rw { display: flex; flex-direction: column; align-items: center; gap: 0; }
.finish .gantry { margin: 0 0 clamp(28px, 3vw, 40px); }
.finish h2 { max-width: 16ch; margin: 0 auto clamp(28px, 3vw, 36px); text-align: center; }
.finish h2::before { margin-left: auto; margin-right: auto; }
.finish .rb-row { justify-content: center; }
.finish .promise { margin: clamp(24px, 3vw, 32px) auto 0; max-width: 48ch; text-align: center; }
@media (max-width: 560px) {
  .finish .rb-row { flex-direction: column; align-items: stretch; width: 100%; max-width: 360px; }
  .finish .rb-row .rb { justify-content: center; }
}

/* Footer: brand + three tidy columns. */
.ft-grid { grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr)); gap: var(--s-10, 40px) clamp(24px, 4vw, 56px); padding-block: clamp(48px, 6vw, 72px) clamp(40px, 5vw, 56px); }
.ft-h { margin: 0 0 var(--s-4, 14px); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--trophy-hi, #ead2a2); font-weight: 600; }
.ft-h-next { margin-top: var(--s-8, 32px); }
.ft-col ul { gap: 10px; }
.ft-col li { line-height: 1.5; }
.ft-col a { display: inline-block; padding: 2px 0; }
.ft-hours { line-height: 1.75; }
.ft-tag { margin-bottom: var(--s-5, 20px); }
@media (max-width: 1000px) { .ft-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .ft-brand { grid-column: 1 / -1; } }
@media (max-width: 640px) {
  .ft-grid { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .ft-grid > .ft-col:last-child { grid-column: 1 / -1; }
  .ft-col a { padding: 6px 0; }
  .ft-base { flex-direction: column; align-items: flex-start; gap: 10px; }
}
.finish h2::before { transform-origin: center; }
.ft-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 2fr) minmax(0, 2fr) minmax(0, 3fr); }
@media (max-width: 1000px) { .ft-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .ft-grid { grid-template-columns: 1fr 1fr; } }
a[data-phone] { white-space: nowrap; }
.why2 { gap: var(--s-8) clamp(28px, 4vw, 56px); }
.story2-body .story2-lead, .why2-body .why2-lead { text-wrap: balance; } .finish h2, .why2-quote { text-wrap: balance; }
@media (max-width: 860px) { .why2 { grid-template-columns: 1fr; } .why2-quote { max-width: 18ch; } }
.onjob img { height: auto; }
.onjob { gap: var(--s-6, 24px) var(--s-5, 16px); }
@media (max-width: 420px) { .ft-grid > .ft-col:first-of-type { grid-column: auto; } }

/* ===== v59 gift cards ===== */
@media (min-width: 861px) {
  .refer-card-flip .ticket-slot { order: 2; }
  .refer-card-flip .refer-copy { order: 1; }
}
.refer-copy .gc-bonus { color: var(--ivory, #ece8df); border-left: 2px solid var(--trophy, #c9a46a); padding-left: 14px; }
.ticket-gift .tk-amt { white-space: nowrap; font-size: clamp(2.25rem, 7vw, 2.75rem); }
.ticket-gift .tk-code b { font-size: 1rem; }
.gc-strip { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-6, 24px) clamp(24px, 4vw, 56px); align-items: end; padding: clamp(24px, 3vw, 40px); border: 1px solid var(--hair-2, #2a2d33); background: var(--panel, #14161a); }
.gc-strip .sec-head { margin-bottom: 0; }
.gc-strip .gc-bonus { color: var(--ivory, #ece8df); border-left: 2px solid var(--trophy, #c9a46a); padding-left: 14px; }
@media (max-width: 760px) { .gc-strip { grid-template-columns: 1fr; align-items: start; } .gc-strip .lap-cta .btn-x { width: 100%; justify-content: center; } }
@media (min-width: 861px) { .refer-card-flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } .refer-card-flip .ticket-slot { justify-self: end; width: 100%; } }

/* ===== v60 booking power/water question ===== */
.power-field .cond-q { margin: 0 0 6px; }
.power-hint { margin: 0 0 var(--s-4, 14px); color: var(--grey); font-size: 0.9375rem; max-width: 60ch; }
.wiz-step .power-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.power-grid:focus { outline: none; }
.power-field.invalid .power-grid .opt-face { border-color: var(--redline) !important; }
@media (max-width: 560px) { .wiz-step .power-grid { gap: 8px; } .power-grid .opt-face > span { display: none; } .power-grid .opt-face { padding-block: 14px !important; } }

/* ===== v60 phone header: text and call buttons ===== */
.rh .rh-ic { display: none; }
@media (max-width: 1080px) {
  .rh .rh-ic { display: inline-grid; align-self: center; place-items: center; width: 40px; height: 40px; color: var(--ivory); border: 1px solid var(--hair-2); text-decoration: none; flex: none; }
  .rh-ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
  .rh-ic:active { background: var(--pitwall-2); }
  .rh-ic + .rh-ic { margin-left: 6px; }
  .rh-ic + .rh-book { margin-left: 8px; }
}

/* ===== v60 deposit line + hero photo ===== */
.dep-line { margin: var(--s-4, 14px) 0 0; font-size: 0.875rem; color: var(--grey); }
.finish .dep-line { text-align: center; margin: var(--s-4, 14px) auto 0; }
.lap-copy .dep-line { margin: var(--s-3, 10px) 0 0; }
.lap-photo { display: none; }
@media (max-width: 860px) {
  .lap-photo { display: block; margin: 0 0 var(--s-5, 18px); border: 1px solid var(--hair); background: var(--pitwall); }
  .lap-photo img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 45%; }
  .lap-logo { width: min(200px, 48vw) !important; margin-bottom: var(--s-4, 14px) !important; }
}

/* ===== v61 review quotes ===== */
.rq-stars { display: inline-flex; gap: 2px; color: var(--trophy); }
.rq-stars svg { width: 16px; height: 16px; fill: currentColor; }
.rq-chip { display: inline-flex; align-items: center; gap: 10px; margin: var(--s-4, 14px) 0 0; padding: 8px 12px; border: 1px solid var(--hair-2); color: var(--ivory); text-decoration: none; font-size: 0.875rem; }
.rq-chip:hover { border-color: var(--trophy); }
.rq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6, 24px); }
.rq-card { margin: 0; padding: clamp(22px, 2.6vw, 32px); background: var(--pitwall); border: 1px solid var(--hair); display: flex; flex-direction: column; gap: var(--s-4, 14px); }
.rq-card blockquote { margin: 0; flex: 1; }
.rq-card blockquote p { margin: 0; color: var(--ivory); line-height: 1.65; font-size: 1.0625rem; }
.rq-card figcaption, .rq-mini figcaption { font-weight: var(--w-medium); color: var(--ivory); font-size: 0.9375rem; }
.rq-card figcaption span { display: block; color: var(--grey); font-weight: var(--w-regular); font-size: 0.8125rem; margin-top: 2px; }
.rq-more { margin: var(--s-6, 24px) 0 0; }
.rq-mini { margin: var(--s-5, 18px) 0 0; padding: 14px 16px; border-left: 2px solid var(--trophy); background: var(--pitwall); max-width: 56ch; }
.rq-mini blockquote { margin: 6px 0 6px; }
.rq-mini blockquote p { margin: 0; color: var(--ivory); line-height: 1.55; }
.rq-mini figcaption { font-weight: var(--w-regular); color: var(--grey); font-size: 0.8125rem; }
@media (max-width: 760px) { .rq-grid { grid-template-columns: 1fr; } }

/* ===== v62 booking: Yes/No toggle, code rows (promo + referral) ===== */
.cd-row { display: flex; gap: 8px; }
.cd-row input {
  flex: 1; min-width: 0; padding: 11px 12px;
  background: var(--black, #0b0c0e); color: var(--ivory);
  border: 1px solid var(--hair-2); border-radius: 0;
  font: inherit; font-size: 1rem; letter-spacing: 0.06em; text-transform: uppercase;
}
.cd-row input::placeholder { text-transform: none; letter-spacing: normal; color: var(--grey); opacity: 0.7; }
.cd-row input:focus { outline: none; border-color: var(--trophy); }
.cd-row input:disabled { opacity: 0.7; }
.cd-row .btn { flex: none; min-width: 84px; justify-content: center; }
.cd-applied {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 10px 12px; border: 1px dashed var(--trophy); background: rgba(201, 164, 106, 0.08);
}
.cd-applied b { color: var(--trophy); letter-spacing: 0.06em; }
.cd-applied > span { min-width: 0; overflow-wrap: anywhere; color: var(--ivory); }
.cd-applied .link-btn { flex: none; font-size: 0.9rem; }
.promo { margin: 16px 0 4px; }
.promo-label, .ref-label { display: block; margin: 0 0 6px; font-size: 0.875rem; color: var(--grey); font-weight: 500; }

.yn { display: inline-grid; grid-template-columns: repeat(2, minmax(120px, 1fr)); border: 1px solid var(--hair-2); }
.yn:focus { outline: none; }
.yn-opt { position: relative; cursor: pointer; display: block; }
.yn-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.yn-opt span { display: block; padding: 12px 28px; text-align: center; font-weight: 600; color: var(--ivory); transition: background-color 0.15s ease, color 0.15s ease; }
.yn-opt + .yn-opt span { border-left: 1px solid var(--hair-2); }
.yn-opt input:checked + span { background: var(--trophy); color: var(--black, #0b0c0e); }
.yn-opt input:focus-visible + span { outline: 2px solid var(--trophy); outline-offset: -4px; }
.yn-opt:hover input:not(:checked) + span { background: var(--pitwall-2); }
.power-field.invalid .yn { border-color: var(--redline); }
@media (max-width: 560px) { .yn { display: grid; width: 100%; } }
.ref-field { padding-top: var(--s-5, 18px); border-top: 1px solid var(--hair); }
.done-ref { margin: 0 0 14px; padding: 10px 14px; border-left: 2px solid var(--trophy); background: var(--pitwall); color: var(--ivory); }
/* v66: pay a commission (opened from the "Pay Jake $12" email) */
.pay-now { border-left: 3px solid var(--trophy); }
.pay-now .pf-actions { flex-wrap: wrap; gap: 10px; }
.pay-now .pf-actions .btn { text-decoration: none; }
#pt-comms .up-actions a.btn { text-decoration: none; }
/* v68: brand partner jobs + delete */
.pt-del { color: #f08a84; border-color: #6b2f2c; }
.pt-del:hover { color: #fff; border-color: #f08a84; }
.promo-item .pt-jobs { flex-basis: 100%; width: 100%; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--hair, #2a2d33); }
.pt-jobs-sum { margin: 0 0 8px; color: var(--ivory, #ecebe6); font-size: 14px; }
.pt-job-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.up-list li.pt-job { display: grid; justify-content: stretch; align-items: start; padding: 8px 10px; border-bottom: 0; border-left: 2px solid var(--rule-2, #3a3d44); background: var(--pitwall, #15171b); gap: 2px; min-width: 0; }
.up-list li.pt-job.state-done { border-left-color: var(--trophy, #c9a46a); }
.up-list li.pt-job.state-active { border-left-color: #7fd18b; }
.up-list li.pt-job.state-cancelled { opacity: .7; }
.pj-top { display: flex; justify-content: space-between; gap: 10px; }
.pj-top b { font-weight: 600; overflow-wrap: anywhere; }
.pj-amt { font-variant-numeric: tabular-nums; white-space: nowrap; }
.promo-item .pt-job small { margin-top: 0; font-style: normal; color: var(--plat, #a9adb4); font-size: 12.5px; overflow-wrap: anywhere; }
