/* Elite Professional Driver Training: one-page pitch site.
   Tokens from docs/design-spec.md. No shadows except the plate. */

@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/barlow-400.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/barlow-500.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-semi-condensed-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/barlow-semi-condensed-700.woff2") format("woff2"); }

:root {
  --tarmac: #16181A;
  --plate: #FFFFFF;
  --kerb: #F3F4F2;
  --red: #E70F0A;
  --red-deep: #C4100B;
  --grit: #5B6166;
  --yellow: #FFD21F;
  --on-dark-2: rgba(255, 255, 255, 0.78);
  --line-d: rgba(255, 255, 255, 0.16);
  --line-l: rgba(22, 24, 26, 0.16);
  --font-head: "Barlow Semi Condensed", "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
  --font-body: "Barlow", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --sec: 72px;
  --focus: var(--tarmac);
  --rule: var(--line-l);
  --bar-h: 56px;
}
@media (min-width: 900px) { :root { --sec: 128px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--tarmac); }
body {
  margin: 0;
  font: 400 1.0625rem/1.6 var(--font-body);
  color: var(--tarmac);
  background: var(--tarmac);
  overflow-x: hidden;
}
@media (max-width: 899px) { body { padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom, 0px)); } }

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--font-head); margin: 0; }
h1 { font-weight: 700; font-size: clamp(2.75rem, 11vw, 6rem); line-height: 0.95; letter-spacing: -0.01em; }
h2 { font-weight: 700; font-size: clamp(1.875rem, 5vw, 3rem); line-height: 1.05; letter-spacing: -0.005em; }
h3 { font-weight: 600; font-size: 1.25rem; line-height: 1.25; }
p { margin: 0 0 1em; }
.lead { font-size: 1.25rem; line-height: 1.5; }
.small { font-size: 0.875rem; line-height: 1.45; }
a { color: inherit; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Focus: yellow on dark, Tarmac on light */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.dark, .site-head, .site-foot { --focus: var(--yellow); --rule: var(--line-d); }
.final { --focus: #fff; }

.skip { position: absolute; left: 12px; top: -80px; z-index: 100; padding: 12px 16px; background: var(--tarmac); color: #fff; font-weight: 600; border-radius: 4px; text-decoration: none; }
.skip:focus { top: 12px; outline: 3px solid var(--yellow); outline-offset: 3px; box-shadow: 0 0 0 3px var(--tarmac); }

/* Links */
.link { color: var(--red-deep); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.link:hover { text-decoration-thickness: 2px; }
.rating .link, .review-links .link, .table td .link, .email .link { display: inline-block; padding-block: 10px; }
.dark .link, .site-foot .link, .final .link { color: #fff; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px;
  border: 2px solid transparent; border-radius: 4px;
  font: 700 1.125rem/1 var(--font-head); text-decoration: none; text-align: center;
  cursor: pointer;
}
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-deep); }
.btn-outline { border-color: #fff; color: #fff; background: transparent; }
.btn-outline:hover { background: #fff; color: var(--tarmac); }
.btn-tarmac { background: var(--tarmac); color: #fff; }
.btn-tarmac:hover { background: #2B2E31; }

/* Demo bar (in flow) */
.demo-bar { background: var(--kerb); color: var(--grit); font-size: 0.8125rem; line-height: 1.4; padding: 8px 0; text-align: center; }
.demo-bar p { margin: 0; }

/* Header */
.site-head { background: var(--tarmac); color: #fff; padding: 16px 0; }
.head-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: block; line-height: 0; }
.brand img { width: 128px; height: auto; }
.nav { display: none; }
.head-cta { min-height: 44px; padding: 0 16px; font-size: 1rem; white-space: nowrap; }
@media (min-width: 900px) {
  .brand img { width: 168px; }
  .head-inner { gap: 40px; }
  .nav { display: flex; gap: 32px; margin-left: auto; }
  .nav a { text-decoration: none; font-weight: 500; padding: 8px 0; border-bottom: 2px solid transparent; }
  .nav a:hover { border-bottom-color: #fff; }
  .head-cta { padding: 0 24px; font-size: 1.125rem; }
}

/* Sections */
.sec { padding-block: var(--sec); }
.dark { background: var(--tarmac); color: #fff; }
.light { background: var(--kerb); color: var(--tarmac); }
.white { background: var(--plate); color: var(--tarmac); }
.muted { color: var(--grit); }
.dark .muted { color: var(--on-dark-2); }
.sec h2 + * { margin-top: 32px; }

/* L-plate */
.plate {
  --hole: var(--tarmac);
  display: inline-block; position: relative;
  width: 0.9em; height: 0.9em;
  background: var(--plate); color: var(--red);
  border-radius: 6%;
  font: 700 1em/0.9em var(--font-head); text-align: center; letter-spacing: 0;
  transform: rotate(-8deg);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.45);
}
.plate::before, .plate::after {
  content: ""; position: absolute; top: 7%; width: 0.07em; height: 0.07em; border-radius: 50%; background: var(--hole);
}
.plate::before { left: 8%; }
.plate::after { right: 8%; }
.h1-plate { vertical-align: -0.06em; margin-right: 0.07em; }

/* Hero */
.hero { padding: 40px 0 var(--sec); }
.hero-grid { display: grid; gap: 40px; }
.hero h1 { margin-bottom: 24px; }
.hero .lead { max-width: 34em; color: rgba(255, 255, 255, 0.88); margin-bottom: 32px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.rating { display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; margin: -10px 0 0; font-size: 1rem; }
.stars { display: inline-flex; gap: 2px; color: var(--yellow); }
.star { width: 18px; height: 18px; fill: currentColor; }
.hero-photo { display: none; margin: 0; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
@media (min-width: 900px) {
  .hero { padding-top: 64px; }
  .hero-grid { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 56px; align-items: center; }
  .hero-photo { display: block; }
}

/* Load animation: the only motion on the page */
@media (prefers-reduced-motion: no-preference) {
  .h1-plate { animation: plate-drop 600ms cubic-bezier(0.34, 1.56, 0.64, 1) both; }
  .in { animation: rise 480ms ease-out both; }
  .in-1 { animation-delay: 300ms; }
  .in-2 { animation-delay: 380ms; }
  .in-3 { animation-delay: 460ms; }
  .in-4 { animation-delay: 540ms; }
}
@keyframes plate-drop {
  from { transform: translateY(-40px) rotate(-14deg); opacity: 0; }
  to { transform: translateY(0) rotate(-8deg); opacity: 1; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* Proof row */
.proof { padding-block: 56px; }
@media (min-width: 900px) { .proof { padding-block: 80px; } }
.proof-grid { display: grid; margin: 0; padding: 0; list-style: none; }
.proof-grid li { border-top: 1px solid var(--rule); padding: 24px 0; }
.proof-grid li:last-child { border-bottom: 1px solid var(--rule); }
.num { display: block; font: 700 clamp(3.5rem, 9vw, 5.5rem)/1 var(--font-head); color: var(--red); margin-bottom: 8px; }
.proof-grid p { margin: 0; font-size: 1.125rem; line-height: 1.4; max-width: 18em; }
@media (min-width: 720px) {
  .proof-grid { grid-template-columns: repeat(3, 1fr); }
  .proof-grid li { padding: 28px 28px 8px; border-bottom: 1px solid var(--rule); border-left: 1px solid var(--rule); }
  .proof-grid li:first-child { padding-left: 0; border-left: 0; }
}

/* Ruled lists */
.ruled { list-style: none; margin: 0; padding: 0; }
.ruled li { border-top: 1px solid var(--rule); padding: 20px 0; }
.ruled li:last-child { border-bottom: 1px solid var(--rule); }
.ruled h3, .ruled .who { margin: 0 0 4px; }
.ruled p { margin: 0; }
.ruled .who { font: 600 1.25rem/1.25 var(--font-head); }
@media (min-width: 720px) {
  .ruled li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 40px; padding: 24px 0; }
  .ruled h3, .ruled .who { margin: 0; }
}

/* Lessons */
.price-block { margin-top: 56px; max-width: 640px; }
.price-block h3 { margin-bottom: 16px; }
.table { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
.table th, .table td { text-align: left; padding: 14px 0; border-top: 1px solid var(--rule); font-weight: 400; }
.table thead th { border-top: 0; padding-top: 0; font-weight: 600; color: var(--grit); font-size: 0.875rem; }
.table tbody th { font-weight: 500; }
.table td:last-child, .table thead th:last-child { text-align: right; }
.table tbody tr:last-child th, .table tbody tr:last-child td { border-bottom: 1px solid var(--rule); }
.price-block p { margin-bottom: 4px; }
.price-block .table td { padding-block: 0; }

/* Reviews */
.big-quote { margin: 0 0 48px; padding: 32px 0 0; border-top: 1px solid var(--rule); max-width: 28em; }
.big-quote p { margin: 0 0 12px; font-weight: 500; font-size: 1.5rem; line-height: 1.35; }
.big-quote footer { color: var(--on-dark-2); }
.quotes-note { margin: 16px 0 0; }
.review-links { display: flex; flex-wrap: wrap; gap: 0 32px; margin: 12px 0 0; }
.strip { list-style: none; margin: 48px 0 12px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.strip img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.dark .caveat { color: var(--on-dark-2); }

/* Minibus */
.minibus-grid { display: grid; gap: 40px; }
.minibus-logo img { width: 160px; height: auto; }
.minibus .assoc { margin: 28px 0 24px; font-weight: 500; }
@media (min-width: 900px) {
  .minibus-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 3fr); gap: 80px; align-items: start; }
  .minibus-logo { justify-self: end; padding-top: 8px; }
  .minibus-logo img { width: 200px; }
}

/* How it starts */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; }
.steps li { counter-increment: step; border-top: 1px solid var(--rule); padding: 20px 0 24px; font-size: 1.25rem; line-height: 1.4; font-weight: 500; }
.steps li::before { content: counter(step) "."; display: block; font: 700 3.5rem/1 var(--font-head); color: var(--red); margin-bottom: 8px; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 0 40px; }
}

/* Areas and hours */
.areas-grid { display: grid; gap: 48px; }
.areas .lead { margin-bottom: 0; }
.hours h3 { margin-bottom: 12px; }
.hours .table { margin-bottom: 12px; }
.hours .table th, .hours .table td { padding: 12px 0; }
.hours .table th { border-left: 4px solid transparent; padding-left: 12px; font-weight: 500; }
.hours .table td { text-align: right; padding-right: 4px; }
.hours .table tr.today th, .hours .table tr.today td { font-weight: 600; }
strong { font-weight: 600; }
.hours .table tr.today th { border-left-color: var(--red); }
.status { margin: 0 0 4px; font-weight: 600; min-height: 1.6em; }
.credentials { display: flex; align-items: center; gap: 20px; margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--rule); }
.credentials img { width: 88px; height: 88px; flex: none; }
.credentials p { margin: 0; max-width: 40em; }
@media (min-width: 900px) {
  .areas-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 96px; align-items: start; }
}

/* Final CTA */
.final { background: var(--red); color: #fff; }
.final-grid { display: grid; gap: 32px; justify-items: start; align-items: center; }
.torn { position: relative; width: 6rem; height: 6rem; margin: 8px 0 8px 12px; font-size: 6rem; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.3)); }
.torn .plate { --hole: var(--red); position: absolute; inset: 0; box-shadow: none; }
.torn .half-l { clip-path: polygon(0 0, 52% 0, 46% 14%, 55% 28%, 47% 44%, 56% 60%, 48% 76%, 55% 90%, 50% 100%, 0 100%); transform: translateX(-6px) rotate(-10deg); }
.torn .half-r { clip-path: polygon(52% 0, 100% 0, 100% 100%, 50% 100%, 55% 90%, 48% 76%, 56% 60%, 47% 44%, 55% 28%, 46% 14%); transform: translate(6px, 4px) rotate(-5deg); }
.final h2 { margin-bottom: 28px; }
.final h2 + * { margin-top: 0; }
.final .cta-row { margin-bottom: 20px; }
.final .email { font-size: 1.125rem; font-weight: 500; margin: -10px 0 0; }
@media (min-width: 900px) {
  .final-grid { grid-template-columns: auto minmax(0, 1fr); gap: 80px; }
  .torn { width: 11rem; height: 11rem; font-size: 11rem; margin: 16px 24px; }
}

/* Footer */
.site-foot { background: var(--tarmac); color: var(--on-dark-2); padding: 40px 0 48px; font-size: 0.875rem; line-height: 1.45; }
.site-foot p { margin: 0 0 16px; max-width: 46em; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0 24px; list-style: none; margin: 0; padding: 0; }
.site-foot a { color: #fff; }
.foot-links a { display: inline-block; padding-block: 12px; }

@media (max-width: 899px) { html { scroll-padding-bottom: calc(var(--bar-h) + 16px); } }
@media (max-width: 359px) {
  .wrap { width: calc(100% - 32px); }
  .brand img { width: 104px; }
  .head-inner { gap: 8px; }
  .head-cta { padding: 0 10px; font-size: 0.9375rem; }
}

/* Mobile sticky bar */
.sticky-bar { display: none; }
@media (max-width: 899px) {
  .sticky-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    height: calc(var(--bar-h) + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: var(--tarmac);
    transform: translateY(100%); visibility: hidden;
  }
  .sticky-bar.is-visible { transform: none; visibility: visible; }
  .sticky-bar a {
    flex: 1; display: flex; align-items: center; justify-content: center;
    color: #fff; text-decoration: none; font: 700 1.125rem/1 var(--font-head);
  }
  .sticky-bar a:first-child { background: var(--red); }
  .sticky-bar a:focus-visible { outline: 3px solid #fff; outline-offset: -6px; }
}

/* Inner pages (privacy, 404) */
.page { background: var(--kerb); padding: 56px 0 var(--sec); min-height: 50vh; }
.prose { max-width: 44rem; }
.prose h1 { font-size: clamp(2.25rem, 7vw, 3.5rem); line-height: 1; margin-bottom: 12px; }
.prose h2 { font-size: 1.75rem; line-height: 1.15; margin: 40px 0 12px; }
.prose h2 + * { margin-top: 0; }
.prose ul { padding-left: 1.25em; margin: 0 0 1em; }
.prose li { margin-bottom: 8px; }
.prose .updated { color: var(--grit); font-size: 0.875rem; margin-bottom: 32px; }
.page .btn { margin-top: 8px; }
