/* ============================================================
   LaneCraft Driving Academy — design tokens
   Palette: asphalt #1B2430, paper #F7F5F0, marking yellow #F2B705,
            route green #3C7A5C, route rust #B3452C, mid grey #6B7178
   Type: Space Grotesk (headings) / IBM Plex Sans (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=IBM+Plex+Sans:wght@400;500;600&display=swap');

:root {
  --asphalt: #1B2430;
  --asphalt-soft: #2A3441;
  --paper: #F7F5F0;
  --paper-dim: #ECE8DE;
  --yellow: #F2B705;
  --green: #3C7A5C;
  --green-soft: #E6F0EA;
  --rust: #B3452C;
  --rust-soft: #F5E7E2;
  --grey: #6B7178;
  --line: rgba(27, 36, 48, 0.14);

  --font-head: 'Space Grotesk', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;

  --max: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--asphalt);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; max-width: 62ch; }

a { color: var(--asphalt); }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---- header ---- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--asphalt);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo .mark {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

nav.main-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}

nav.main-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--asphalt-soft);
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}

nav.main-nav a:hover { border-color: var(--yellow); }

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--asphalt);
  color: var(--paper);
}
.btn-primary:hover { background: var(--asphalt-soft); }

.btn-accent {
  background: var(--yellow);
  color: var(--asphalt);
}
.btn-accent:hover { filter: brightness(0.95); }

.btn-outline {
  background: transparent;
  border-color: var(--asphalt);
  color: var(--asphalt);
}

/* ---- lane divider: structural, used only where content is a sequence ---- */
.lane-divider {
  height: 0;
  border-top: 3px dashed var(--asphalt);
  opacity: 0.16;
  margin: 0;
}

/* ---- hero ---- */
.hero {
  padding: 72px 0 56px;
}

.hero .kicker {
  color: var(--green);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: start;
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

/* ---- postcode checker ---- */
.checker {
  background: var(--asphalt);
  color: var(--paper);
  border-radius: 10px;
  padding: 28px;
}

.checker h3 {
  color: var(--paper);
  margin-bottom: 6px;
}

.checker p.hint {
  color: rgba(247,245,240,0.65);
  font-size: 0.92rem;
  margin-bottom: 18px;
}

.checker-form {
  display: flex;
  gap: 8px;
}

.checker-form input {
  flex: 1;
  padding: 13px 14px;
  border-radius: 5px;
  border: 1px solid rgba(247,245,240,0.25);
  background: var(--asphalt-soft);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 1rem;
}

.checker-form input::placeholder { color: rgba(247,245,240,0.45); }

.checker-form input:focus,
input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--yellow);
  outline-offset: 1px;
}

.checker-result {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 6px;
  font-size: 0.95rem;
  display: none;
}

.checker-result.show { display: block; }

.checker-result.ok {
  background: rgba(60,122,92,0.25);
  border: 1px solid var(--green);
  color: #CFEBDD;
}

.checker-result.no {
  background: rgba(179,69,44,0.25);
  border: 1px solid var(--rust);
  color: #F3D3C8;
}

.checker-result.pending {
  background: rgba(242,183,5,0.15);
  border: 1px solid var(--yellow);
  color: var(--paper);
}

/* ---- section ---- */
.section { padding: 64px 0; }
.section-tight { padding: 40px 0; }

.section-head { max-width: 640px; margin-bottom: 40px; }

/* ---- journey / steps (legit sequence: the learner's route to passing) ---- */
.journey {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

@media (max-width: 860px) {
  .journey { grid-template-columns: 1fr; }
}

.journey-step {
  padding: 22px 20px 22px 0;
  border-top: 3px dashed var(--asphalt);
  opacity: 0.95;
}

.journey-step .step-no {
  font-family: var(--font-head);
  font-size: 0.85rem;
  color: var(--green);
  font-weight: 600;
  margin-bottom: 10px;
}

.journey-step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.journey-step p { font-size: 0.92rem; color: var(--asphalt-soft); margin: 0; }

/* ---- pricing ---- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 860px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

.price-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px 24px;
  background: #fff;
}

.price-card.featured {
  border-color: var(--asphalt);
  background: var(--paper-dim);
}

.price-card .amount {
  font-family: var(--font-head);
  font-size: 2.1rem;
  font-weight: 700;
  margin: 10px 0 4px;
}

.price-card .amount span {
  font-size: 0.95rem;
  font-weight: 500;
  font-family: var(--font-body);
  color: var(--grey);
}

.price-card ul {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  font-size: 0.92rem;
  color: var(--asphalt-soft);
}

.price-card li {
  padding: 7px 0;
  border-top: 1px solid var(--line);
}
.price-card li:first-child { border-top: none; }

/* ---- coverage / area ---- */
.coverage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 860px) {
  .coverage { grid-template-columns: 1fr; }
}

/* ---- CTA band ---- */
.cta-band {
  background: var(--asphalt);
  color: var(--paper);
  padding: 56px 0;
  text-align: left;
}

.cta-band h2 { color: var(--paper); }
.cta-band p { color: rgba(247,245,240,0.75); }

/* ---- footer ---- */
footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  font-size: 0.88rem;
  color: var(--grey);
}

footer .foot-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

footer a { color: var(--grey); text-decoration: none; }
footer a:hover { color: var(--asphalt); }

footer nav { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---- terms page ---- */
.terms-body h2 {
  margin-top: 2.2em;
  font-size: 1.25rem;
}
.terms-body h2:first-child { margin-top: 0; }
.terms-body p { max-width: 68ch; color: var(--asphalt-soft); }
.terms-meta {
  color: var(--grey);
  font-size: 0.9rem;
  margin-bottom: 2.5em;
}

/* focus visibility */
a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
