/* Switchback E-Bike Service
   Direction: calm, exact, a bit rugged. A workshop bench at dusk in the Sea-to-Sky:
   night-ink darks, job-ticket paper lights, one signal red for the trail.
   Signature: the red dashed switchback trail, used only for journeys. */

:root {
  /* Ink ramp (dark) */
  --ink-0: #07080d;
  --ink-1: #0b0d14;      /* hero, header, footer */
  --ink-2: #11141c;      /* raised dark surface */
  --ink-3: #1a1e28;
  --ink-text: #eef0f5;
  --ink-text-2: #a3a9b8;
  --ink-text-3: #7a8296;
  --ink-line: rgba(238, 240, 245, .1);

  /* Paper ramp (light) */
  --paper-0: #f7f4ee;    /* page */
  --paper-1: #fdfbf7;    /* card, ticket */
  --paper-2: #efe9df;    /* alternate section, raised */
  --text: #1f1b16;
  --text-2: #5e554a;
  --text-3: #7b7266;
  --line: rgba(31, 27, 22, .1);
  --line-strong: rgba(31, 27, 22, .2);

  /* The one accent */
  --signal: #e0482d;      /* graphics: trail, logo mark, current status */
  --signal-ink: #b23a22;  /* text on paper */

  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font: 400 16px/1.6 var(--sans); color: var(--text); background: var(--paper-0); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
svg { display: block; }
h1, h2, h3 { margin: 0; font-weight: 500; }
h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.12; letter-spacing: -0.02em; margin-bottom: 16px; }
h3 { font-size: 17px; line-height: 1.4; }
p { margin: 0 0 16px; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.narrow { max-width: 800px; }
.section { padding: 112px 0; }
.section-alt { background: var(--paper-2); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.intro { font-size: 18px; line-height: 1.6; color: var(--text-2); max-width: 576px; margin-bottom: 32px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px 80px; align-items: start; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 20px; border-radius: 8px; border: 1px solid transparent;
  font: 500 15px var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease), transform .12s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; }
.btn-light { background: var(--ink-text); color: var(--ink-1); box-shadow: inset 0 1px 0 rgba(255,255,255,.5); }
.btn-light:hover { background: #ffffff; }
.btn-ghost { background: var(--ink-2); color: var(--ink-text); border-color: var(--ink-line); }
.btn-ghost:hover { background: var(--ink-3); }
.btn-dark { background: var(--text); color: var(--paper-1); }
.btn-dark:hover { background: #3a332b; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--ink-1); color: var(--ink-text); border-bottom: 1px solid var(--ink-line); }
.header-inner { display: flex; align-items: center; gap: 32px; height: 64px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-mark { width: 32px; height: 32px; border-radius: 8px; background: var(--signal); color: #fff; display: grid; place-items: center; flex: none; }
.logo-mark svg { width: 24px; height: 24px; }
.logo-name { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.logo-name span { font-weight: 400; color: var(--ink-text-2); }
.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a { font-size: 14px; color: var(--ink-text-2); text-decoration: none; transition: color .15s var(--ease); }
.nav a:hover { color: var(--ink-text); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.menu { display: none; position: relative; }
.menu summary { list-style: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--ink-line); cursor: pointer; color: var(--ink-text); }
.menu summary::-webkit-details-marker { display: none; }
.menu summary svg { width: 20px; height: 20px; }
.menu nav { position: absolute; right: 0; top: 44px; width: 220px; padding: 8px; border-radius: 12px; background: var(--ink-2); border: 1px solid var(--ink-line); display: grid; gap: 2px; box-shadow: 0 16px 40px rgba(0,0,0,.4); }
.menu nav a { display: block; padding: 8px 12px; border-radius: 8px; font-size: 15px; text-decoration: none; color: var(--ink-text-2); }
.menu nav a:hover { background: var(--ink-3); color: var(--ink-text); }

/* Hero — scene behind, text on the calm sky, ticket rising from the bottom edge */
.hero { position: relative; z-index: 2; background: var(--ink-1); color: var(--ink-text); padding: 96px 0 48px; }
.hero-bg { position: absolute; inset: 0; overflow: hidden; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% 40%; }
/* Document pages: privacy, repair terms, 404 */
.doc { padding: 72px 0 112px; }
.doc h1 { font-size: clamp(36px, 4.4vw, 52px); line-height: 1.08; letter-spacing: -0.03em; margin-bottom: 12px; }
.doc h2 { font-size: 22px; letter-spacing: -0.01em; margin: 48px 0 12px; }
.doc p, .doc li { font-size: 17px; line-height: 1.65; color: var(--text-2); max-width: 680px; }
.doc p { margin: 0 0 16px; }
.doc ul { padding-left: 20px; margin: 0 0 16px; display: grid; gap: 8px; }
.doc strong { color: var(--text); font-weight: 500; }
.doc a { color: var(--text); text-underline-offset: 3px; }
.doc-crumbs { font: 400 13px var(--mono); color: var(--text-3); margin-bottom: 20px !important; }
.doc-crumbs a { color: var(--text-2); }
.doc-updated { font: 400 13px var(--mono); color: var(--text-3); margin-bottom: 40px !important; }
.doc-404 { padding: 120px 0 160px; }
.doc-actions { margin-top: 32px; }
.doc-actions .btn { text-decoration: none; }
.doc-404 .intro { margin-bottom: 32px; }
.doc-404 .btn { text-decoration: none; }

/* Technical drawing of a compact mid-drive: oversized, cropped by the hero, fading left and down */
.hero-geometry { position: absolute; top: -14vw; right: -22vw; width: clamp(640px, 62vw, 1100px); height: auto; opacity: .55; pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 38%), linear-gradient(to bottom, #000 70%, transparent 97%); -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0%, #000 38%), linear-gradient(to bottom, #000 70%, transparent 97%); mask-composite: intersect; }
/* Fade the photo into the page colour: dark behind the text and along the bottom edge */
.hero-bg::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, var(--ink-1) 0%, rgba(11,13,20,.9) 28%, rgba(11,13,20,0) 56%),
    linear-gradient(0deg, var(--ink-1) 0%, rgba(11,13,20,.7) 16%, rgba(11,13,20,0) 44%),
    linear-gradient(180deg, var(--ink-1) 0%, rgba(11,13,20,0) 14%); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; min-height: calc(100svh - 64px - 144px); }
.hero-left { display: flex; flex-direction: column; justify-content: space-between; gap: 64px; }
.hero h1 { font-size: clamp(40px, 4.8vw, 64px); line-height: 1.04; letter-spacing: -0.03em; font-weight: 500; margin-bottom: 24px; max-width: 640px; }
.hero h1 span { display: block; color: var(--ink-text-3); }
.lede { font-size: 18px; line-height: 1.6; color: var(--ink-text-2); margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-copy { animation: rise .5s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

/* The job ticket — the moment */
.ticket-wrap { align-self: end; justify-self: end; width: 100%; max-width: 440px; margin-bottom: -208px; transform: rotate(-1.5deg); filter: drop-shadow(0 24px 32px rgba(0,0,0,.55)) drop-shadow(0 2px 2px rgba(0,0,0,.3)); animation: rise-ticket .5s .06s var(--ease) both; }
@keyframes rise-ticket { from { opacity: 0; transform: rotate(-1.5deg) translateY(12px); } to { transform: rotate(-1.5deg); } }
.ticket {
  --notch-y: 60px;
  margin: 0; background: var(--paper-1); color: var(--text); border-radius: 16px; padding: 24px;
  position: relative; font-variant-numeric: tabular-nums;
  -webkit-mask: radial-gradient(circle 8px at 0 var(--notch-y), #0000 97%, #000), radial-gradient(circle 8px at 100% var(--notch-y), #0000 97%, #000);
  -webkit-mask-composite: source-in;
  mask: radial-gradient(circle 8px at 0 var(--notch-y), #0000 97%, #000), radial-gradient(circle 8px at 100% var(--notch-y), #0000 97%, #000);
  mask-composite: intersect;
}
.ticket-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 0 24px 16px; margin: 0 -24px 16px; border-bottom: 1px dashed var(--line-strong); position: relative; }
.ticket-no { font: 500 14px var(--mono); white-space: nowrap; }
.ticket-meta { font: 400 12px var(--mono); color: var(--text-3); text-align: right; }
.ticket-bike { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.ticket-bike strong { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; }
.ticket-bike span { font: 400 13px var(--mono); color: var(--text-2); }
.ticket-notes { margin: 0 0 20px; display: grid; gap: 8px; }
.ticket-notes div { display: grid; grid-template-columns: 80px 1fr; gap: 12px; font-size: 14px; line-height: 1.5; }
.ticket-notes dt { color: var(--text-3); }
.ticket-notes dd { margin: 0; }
.ticket-readings { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.ticket-readings div { padding: 12px 0; display: grid; gap: 4px; }
.ticket-readings div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.ticket-readings span { font-size: 12px; color: var(--text-3); }
.ticket-readings strong { font: 500 24px/1.1 var(--mono); letter-spacing: -0.02em; }
.ticket-track { list-style: none; padding: 0; margin: 0 0 20px; display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.ticket-track::before { content: ""; position: absolute; left: 6px; right: calc(25% - 6px); top: 5px; border-top: 2px dashed var(--signal); }
.ticket-track li { position: relative; padding-top: 20px; display: grid; font-size: 13px; }
.ticket-track li::before { content: ""; position: absolute; top: 0; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--text); box-shadow: 0 0 0 4px var(--paper-1); }
.ticket-track li.now::before { background: var(--signal); }
.ticket-track time { font: 400 12px var(--mono); color: var(--text-3); }
.ticket-track li.now span { color: var(--signal-ink); font-weight: 500; }
.ticket-total { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.ticket-total span { font-size: 13px; color: var(--text-2); }
.ticket-total strong { font: 500 20px var(--mono); }

/* Facts — bottom of the hero's text column */
.facts { list-style: none; margin: 0; padding: 20px 0 0; border-top: 1px solid var(--ink-line); display: flex; flex-wrap: wrap; gap: 12px 32px; }
.facts li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-text-2); }
.facts svg { width: 18px; height: 18px; flex: none; color: var(--ink-text-3); }

/* The ticket runs into this section, so it gets extra room on top */
.after-hero { padding-top: 208px; }
/* Motor wordmark strip — sits in the space left of the rising ticket */
.motor-strip { display: block; max-width: 58%; margin: -144px 0 80px; text-decoration: none; }
.motor-strip-label { display: block; font-size: 13px; color: var(--text-3); margin-bottom: 12px; }
.motor-strip-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 24px; }
.motor-strip-row span { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; color: #a69d91; transition: color .15s var(--ease); }
.motor-strip:hover .motor-strip-row span { color: var(--text-2); }

/* How it works */
.symptoms { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
.symptoms li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-strong); font-size: 15px; }
.symptoms li:nth-last-child(-n+2) { border-bottom: 1px solid var(--line-strong); }
.symptoms svg { width: 18px; height: 18px; flex: none; color: var(--text-3); }
.route { list-style: none; padding: 0; margin: 4px 0 0; position: relative; }
/* trail segments run from one step circle to the next, never past the last */
.route li:not(:last-child)::before { content: ""; position: absolute; left: 15px; top: 36px; bottom: 4px; border-left: 2px dashed var(--signal); }
.route li { position: relative; padding: 0 0 40px 56px; }
.route li:last-child { padding-bottom: 0; }
.route span { position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--paper-0); border: 1px solid var(--line-strong); display: grid; place-items: center; font: 500 13px var(--mono); }
.route li:last-child span { background: var(--signal); border-color: var(--signal); color: #fff; }
.route h3 { font-size: 18px; margin: 4px 0 8px; }
.route p { margin: 0; color: var(--text-2); max-width: 440px; }

/* Motors */
/* Technical drawing of a mid-drive behind the motor list (assets/motor-drawing.svg, drawn by tools/draw_motor_art.py) */
#motors { position: relative; overflow: hidden; isolation: isolate; }
#motors::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  top: 16px; right: max(-140px, calc((100vw - 1200px) / 2 - 140px));
  width: 780px; aspect-ratio: 1000 / 820;
  background: url(assets/motor-drawing.svg) no-repeat center / contain;
  -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent 96%), linear-gradient(to right, transparent 0%, #000 30%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, #000 40%, transparent 96%), linear-gradient(to right, transparent 0%, #000 30%);
  mask-composite: intersect;
}
.motor-list { list-style: none; padding: 0; margin: 0 0 32px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; }
.motor-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 16px 0; border-top: 1px solid var(--line-strong); }
.motor-list strong { font-size: 17px; font-weight: 500; }
.motor-list span { font: 400 13px var(--mono); color: var(--text-2); text-align: right; }
.brands { font-size: 15px; color: var(--text-2); max-width: 880px; margin: 0; }
.brands span { display: block; color: var(--text); font-weight: 500; margin-bottom: 4px; }

/* Town pages */
.hero-town .hero-grid { min-height: 0; }
.hero-town { padding-top: 80px; }
.hero-town h1 { font-size: clamp(36px, 4vw, 52px); }
.crumbs { display: flex; gap: 8px; font-size: 14px; color: var(--ink-text-3); margin-bottom: 24px; }
.crumbs a { color: var(--ink-text-2); text-decoration: none; }
.crumbs a:hover { color: var(--ink-text); }
.area-list a { color: inherit; text-underline-offset: 3px; }
.note-text a, .faq-more a { color: var(--text); text-underline-offset: 3px; }
.faq-more { margin-top: 24px; }
.book-band { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.book-band .intro { margin-bottom: 0; }
.btn-outline { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-outline:hover { background: var(--paper-2); }

/* Service area */
.area-list { list-style: none; padding: 0; margin: 0; }
.area-list li { display: grid; grid-template-columns: 1fr 1.4fr; gap: 24px; align-items: baseline; padding: 16px 0; border-top: 1px solid var(--line-strong); }
.area-list li:last-child { border-bottom: 1px solid var(--line-strong); }
.area-list strong { font-size: 17px; font-weight: 500; }
.area-list span { font-size: 15px; color: var(--text-2); }

/* Prices */
.price-layout { display: grid; grid-template-columns: 5fr 7fr; gap: 32px; align-items: start; }
.lead-price { background: var(--paper-1); border: 1px solid var(--line); border-radius: 16px; padding: 32px; position: sticky; top: 96px; }
.lead-tag { font-size: 14px; font-weight: 500; color: var(--signal-ink); margin-bottom: 8px; }
.lead-price h3 { font-size: 24px; letter-spacing: -0.01em; }
.lead-figure { font: 500 64px/1 var(--mono); letter-spacing: -0.04em; margin: 16px 0 24px; font-variant-numeric: tabular-nums; }
.lead-price p:not(.lead-tag):not(.lead-figure) { color: var(--text-2); margin-bottom: 24px; }
.price-list { list-style: none; padding: 0; margin: 0; }
.price-list li { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: baseline; padding: 20px 0; border-top: 1px solid var(--line-strong); }
.price-list li:last-child { border-bottom: 1px solid var(--line-strong); }
/* Mobile call/book bar (phones only) */
.mobile-cta { display: none; }
.menu nav .menu-cta, .menu nav .menu-call { margin-top: 6px; text-align: center; font-weight: 500; }
.menu nav .menu-cta { background: var(--ink-text); color: var(--ink-1); }
.menu nav .menu-call { border: 1px solid var(--ink-line); color: var(--ink-text); }

/* Featured plan: dark card at the top of the list */
.price-list li.plan { background: var(--ink-1); color: var(--ink-text); border: 0; border-radius: 16px; padding: 28px; margin-bottom: 12px; }
.price-list li.plan + li { border-top: 0; }
.price-list li.plan h3 { font-size: 22px; letter-spacing: -0.01em; }
.price-list li.plan p { color: var(--ink-text-2); font-size: 15px; }
.price-list li.plan .plan-tag { font: 500 13px var(--mono); color: var(--signal); margin-bottom: 8px; }
.price-list li.plan .amount { font-size: 24px; color: var(--ink-text); }
.price-list li.plan .amount small { color: var(--ink-text-3); }
.price-list li.plan .btn { margin-top: 20px; }
/* Warranty: a regular row, set apart only by its red tag and a slightly larger title */
.price-list li.warranty h3 { font-size: 18px; letter-spacing: -0.01em; }
.price-list li.warranty .warranty-tag { font: 500 13px var(--mono); color: #b23a22; margin-bottom: 6px; }
.price-list h3 { font-size: 16px; margin-bottom: 4px; }
.price-list p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--text-2); max-width: 480px; }
.amount { font: 500 17px var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.amount small { font: 400 13px var(--sans); color: var(--text-3); }
.amount-lg { font-size: 28px; letter-spacing: -0.02em; }

/* Trade panel */
.trade { margin-top: 80px; background: var(--ink-1); color: var(--ink-text); border-radius: 20px; padding: 48px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px 48px; align-items: center; }
.trade-tag { font-size: 14px; color: var(--ink-text-3); margin-bottom: 12px; }
.trade h3 { font-size: clamp(28px, 3vw, 36px); line-height: 1.12; letter-spacing: -0.02em; margin-bottom: 16px; }
.trade-copy > p { color: var(--ink-text-2); max-width: 512px; }
.trade-points { list-style: none; padding: 0; margin: 24px 0 32px; }
.trade-points li { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--ink-line); font-size: 15px; color: var(--ink-text-2); }
.trade-points li:last-child { border-bottom: 1px solid var(--ink-line); }
.trade-points svg { width: 18px; height: 18px; flex: none; margin-top: 4px; color: var(--ink-text-3); }
.trade-points strong { color: var(--ink-text); font-weight: 500; }
.trade-loop svg { width: 100%; height: auto; overflow: visible; }
.trade-loop .loop { fill: none; stroke: var(--signal); stroke-width: 2; stroke-dasharray: 6 6; stroke-linecap: round; }
.trade-loop .arrow { fill: none; stroke: var(--signal); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.trade-loop .loop-label { font: 400 12px var(--mono); fill: var(--ink-text-3); }
.trade-loop .node-label { font: 500 13px var(--sans); fill: var(--ink-text); }
.trade-loop .node-shop { fill: var(--paper-1); }
.trade-loop .node-shop-icon { color: var(--text); }
.trade-loop .node-us { fill: var(--signal); }
.trade-loop .node-us-icon { color: #fff; }

/* Buying used */
.checklist { list-style: none; padding: 0; margin: 0 0 24px; }
.checklist li { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-strong); font-size: 15px; line-height: 1.5; color: var(--text-2); }
.checklist li:last-child { border-bottom: 1px solid var(--line-strong); }
.checklist svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--text); }
.checklist strong { color: var(--text); font-weight: 500; }
.note-text { font-size: 14px; color: var(--text-2); margin: 0; }
.options { display: grid; gap: 16px; position: sticky; top: 96px; }
.option { background: var(--paper-1); border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: start; }
.option h3 { font-size: 18px; margin-bottom: 8px; }
.option p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--text-2); }
.options .btn { justify-self: start; }

/* Warranty */
.numbered { list-style: none; padding: 0; margin: 0 0 24px; counter-reset: n; }
.numbered li { counter-increment: n; position: relative; padding: 16px 0 16px 48px; border-top: 1px solid var(--line-strong); color: var(--text-2); }
.numbered li:last-child { border-bottom: 1px solid var(--line-strong); }
.numbered li::before { content: counter(n); position: absolute; left: 0; top: 16px; font: 500 14px/1.6 var(--mono); color: var(--text-2); }
.numbered strong { color: var(--text); font-weight: 500; }
.callout { background: var(--paper-2); border-radius: 12px; padding: 16px 20px; margin: 0; font-size: 15px; }
.callout + .btn { margin-top: 20px; }
.section-cta { margin-top: 24px; }

/* FAQ */
details { border-top: 1px solid var(--line-strong); }
details:last-of-type { border-bottom: 1px solid var(--line-strong); }
summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 20px 0; font-size: 17px; font-weight: 500; }
summary::-webkit-details-marker { display: none; }
summary svg { width: 20px; height: 20px; flex: none; color: var(--text-3); transition: transform .16s var(--ease); }
details[open] summary svg { transform: rotate(45deg); }
details p { margin: 0 0 20px; color: var(--text-2); max-width: 680px; }
#faq h2 { margin-bottom: 32px; }

/* Booking */
.contact { margin: 0; }
.contact div { display: grid; grid-template-columns: 80px 1fr; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line-strong); }
.contact div:last-child { border-bottom: 1px solid var(--line-strong); }
.contact dt { font-size: 14px; color: var(--text-3); }
.contact dd { margin: 0; }
.book-form { background: var(--paper-1); border: 1px solid var(--line); border-radius: 16px; padding: 32px; display: grid; gap: 16px; }
.book-form > *, .book-form .row > * { min-width: 0; }
.book-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.book-form label { display: grid; gap: 8px; font-size: 14px; font-weight: 500; }
.book-form input, .book-form select, .book-form textarea {
  width: 100%; font: 400 15px var(--sans); color: var(--text); background: #fff;
  border: 1px solid var(--line-strong); border-radius: 8px; padding: 0 12px; height: 44px;
  transition: border-color .15s var(--ease);
}
.book-form textarea { height: auto; padding: 12px; resize: vertical; }
.book-form input:hover, .book-form select:hover, .book-form textarea:hover { border-color: rgba(31,27,22,.35); }
.book-form input::placeholder, .book-form textarea::placeholder { color: var(--text-3); }
.book-form .btn { justify-self: start; margin-top: 8px; }
.turnstile-slot { min-height: 65px; }
.book-form.is-sent > :not(.form-status) { display: none; }
.book-form.is-sent { align-content: center; justify-items: center; text-align: center; }
.book-form.is-sent .form-status { background: none; font-size: 20px; line-height: 1.45; max-width: 400px; padding: 0; }
.form-again { display: inline-block; margin-top: 16px; padding: 0; border: 0; background: none; font: inherit; font-size: 15px; color: var(--text); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.book-form .btn:disabled { opacity: .6; cursor: progress; }
.book-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; padding: 12px 16px; border-radius: 10px; font-size: 15px; line-height: 1.5; }
.form-status.is-ok { background: var(--paper-2); }
.form-status.is-error { background: #fbe9e4; color: #7a2615; }

/* Footer */
.site-footer { background: var(--ink-1); color: var(--ink-text-2); padding: 72px 0 40px; font-size: 14px; }
.site-footer a { color: var(--ink-text); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.site-footer .btn-light, .site-footer .btn-light:hover { color: var(--ink-1); text-decoration: none; }
.site-footer .logo { color: var(--ink-text); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 40px 32px; padding-bottom: 40px; }
.footer-brand p { margin: 16px 0 24px; max-width: 300px; line-height: 1.6; }
.footer-col h2 { font: 500 12px var(--mono); color: var(--ink-text-3); margin: 6px 0 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-hours { margin: 0; display: grid; gap: 10px; }
.footer-hours div { display: flex; justify-content: space-between; gap: 16px; max-width: 170px; }
.footer-hours dt { color: var(--ink-text-2); }
.footer-hours dd { margin: 0; color: var(--ink-text); font-family: var(--mono); font-size: 13px; }
.footer-trust { list-style: none; margin: 0; padding: 20px 0; border-top: 1px solid var(--ink-line); border-bottom: 1px solid var(--ink-line); display: flex; flex-wrap: wrap; gap: 12px 32px; color: var(--ink-text); }
.footer-trust li { display: flex; align-items: center; gap: 8px; }
.footer-trust svg { width: 16px; height: 16px; color: var(--signal); flex: none; }
.footer-bottom { padding-top: 24px; display: grid; gap: 8px; }
.footer-bottom p { margin: 0; }
.site-footer .fine { font-size: 13px; color: var(--ink-text-3); max-width: 720px; margin: 0; }

/* Responsive */
@media (max-width: 1040px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
  #motors::before { width: 640px; right: -200px; }
  .nav { display: none; }
  .header-actions { margin-left: auto; }
  .menu { display: block; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; min-height: 0; }
  .ticket-wrap { justify-self: start; margin-bottom: -160px; }
  .after-hero { padding-top: 224px; }
  .motor-strip { max-width: none; margin: 0 0 64px; }
  .hero-photo { object-position: 70% 30%; }
  .hero-bg::after { background: linear-gradient(180deg, var(--ink-1) 0%, rgba(11,13,20,.88) 40%, rgba(11,13,20,.35) 72%, var(--ink-1) 100%); }
}
@media (max-width: 860px) {
  .hero-geometry { display: none; }
  .split, .price-layout, .trade { grid-template-columns: 1fr; }
  .lead-price, .options { position: static; }
  .motor-list { grid-template-columns: 1fr; }
  .trade { padding: 32px 24px; }
  .trade-loop { max-width: 400px; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-trust { flex-direction: column; }
  #motors::before { width: 460px; top: 0; right: -170px; opacity: .7; }
  .wrap { padding: 0 20px; }
  .section { padding: 72px 0; }
  .hero { padding-top: 56px; }
  .hero h1 { font-size: 40px; }
  .hero-town h1 { font-size: 30px; }
  .logo-name { display: flex; flex-direction: column; line-height: 1.15; font-size: 16px; }
  .logo-name span { font-size: 12px; }
  .symptoms { grid-template-columns: 1fr; }
  .symptoms li:nth-last-child(2) { border-bottom: 0; }
  .facts { flex-direction: column; gap: 12px; }
  .ticket-wrap { margin-bottom: -120px; }
  .after-hero { padding-top: 168px; }
  .ticket { padding: 20px; --notch-y: 58px; }
  .ticket-head { margin: 0 -20px 16px; padding: 0 20px 16px; }
  .ticket-readings strong { font-size: 20px; }
  .motor-list li { flex-direction: column; gap: 4px; }
  .motor-list span { text-align: left; }
  .area-list li { grid-template-columns: 1fr; gap: 4px; }
  .lead-price, .book-form { padding: 24px; }
  .option { grid-template-columns: 1fr; gap: 12px; }
  .amount-lg { text-align: left; }
  .book-form .row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-copy, .ticket-wrap { animation: none; }
  html { scroll-behavior: auto; }
}

/* Phones and small tablets: bigger tap targets, booking within one tap */
@media (max-width: 860px) {
  .site-header .btn-sm { height: 44px; padding: 0 16px; }
  .menu summary { width: 44px; height: 44px; }
  .menu nav { width: min(280px, calc(100vw - 32px)); top: 52px; }
  .menu nav a { padding: 12px 14px; font-size: 16px; }

  .mobile-cta { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(253,251,247,.96); backdrop-filter: blur(8px);
    border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(31,27,22,.08);
    transform: translateY(110%); transition: transform .25s var(--ease); }
  .mobile-cta.is-shown { transform: none; }
  .mobile-cta .btn { height: 48px; width: 100%; justify-content: center; font-size: 16px; }
  .mobile-cta .btn-outline-dark { background: transparent; color: var(--text); border: 1px solid var(--line-strong); }

  /* Booking: form straight after the heading, contact details after the form */
  #book .split { display: flex; flex-direction: column; gap: 0; }
  #book .split > div:first-child { display: contents; }
  #book .split h2, #book .split .intro { order: 1; }
  #book .book-form { order: 2; margin: 8px 0 40px; }
  #book .contact { order: 3; margin: 0; }

  /* 16px fields stop iPhones zooming in on focus */
  .book-form input, .book-form select, .book-form textarea { font-size: 16px; height: 48px; }
  .book-form textarea { height: auto; }
  .book-form .btn[type="submit"] { width: 100%; height: 52px; justify-content: center; font-size: 16px; }

  /* Small inline links get a taller hit area without changing the layout */
  .contact a, .site-footer li a, .area-list a { display: inline-block; padding: 10px 0; margin: -10px 0; }
}
@media (prefers-reduced-motion: reduce) { .mobile-cta { transition: none; } }
