/* ==========================================================================
   Prime Cap Services — style.css (single stylesheet for every page)

   A fixed parallax photo sits behind the first three "stops" (support form,
   how we work, about). Below them are solid sections (driver onboarding,
   terminal / card / Apple Pay, refer, testimonials, FAQ, talk) and the footer.
   Sub-pages (refer-a-friend, driver-onboarding) reuse the header, drawer,
   buttons and footer.

   Contents
     1. Fonts
     2. Tokens
     3. Base
     4. Utilities
     5. Background (parallax)
     6. Buttons
     7. Header
     8. Mobile drawer
     9. Chapter dots (rail)
    10. Stops and panels
    11. Shared panel content
    12. Chapter navigation (cnav)
    13. Stop layouts (0-2)
    14. Support form
    15. Solid sections (onboarding, payments, refer, testimonials, FAQ, talk)
    16. Sub-pages (refer-a-friend, driver-onboarding)
    17. Footer
    18. Scroll animations
    19. Print
   ========================================================================== */


/* 1. Fonts
   -------------------------------------------------------------------------- */

@font-face {
  font-family: "PC Display";
  src: url(../fonts/pc-display.woff) format("woff");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "PC Sans";
  src: url(../fonts/pc-sans.woff) format("woff");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "PC Sans";
  src: url(../fonts/pc-sans-bold.woff) format("woff");
  font-weight: 700 900;
  font-display: swap;
}

@font-face {
  font-family: "PC Mono";
  src: url(../fonts/pc-mono.woff) format("woff");
  font-weight: 400 700;
  font-display: swap;
}


/* 2. Tokens
   -------------------------------------------------------------------------- */

:root {
  color-scheme: light;

  /* Colour */
  --sun: #d7fb62;
  --ink: #101512;
  --ink-rgb: 16, 21, 18; /* same colour as --ink, as r, g, b (used for transparent versions) */
  --ink-deep: #0b0f0d; /* darker than --ink: image wells */
  --paper: #f5f5f0;
  --muted: #657069; /* quiet text on light backgrounds */
  --muted-2: #3d4640; /* softer body text on light cards */
  --line: #dfe3da; /* borders on light backgrounds */
  --line-2: #cfd5cb; /* form field borders on light backgrounds */
  --ink-66: rgba(var(--ink-rgb), 0.66);
  --rule: rgba(var(--ink-rgb), 0.16);
  --grad-sun: linear-gradient(#d7fb62, #d7fb62); /* used for link underlines */
  --glass-edge: rgba(255, 255, 255, 0.14);
  --glass-muted: rgba(255, 255, 255, 0.78);
  --glass-quiet: rgba(255, 255, 255, 0.68);

  /* Type */
  --font-display: "PC Display", Cambria, Georgia, serif;
  --font-body: "PC Sans", Calibri, system-ui, sans-serif;
  --font-mono: "PC Mono", ui-monospace, Menlo, monospace;
  --body: 18px;

  /* Layout */
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --nav-h: calc(72px + env(safe-area-inset-top, 0px));
  --radius-pill: 999px;

  /* Motion */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --drawer-in: 0.26s;
}


/* 3. Base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p {
  margin: 0;
}

a {
  color: inherit;
  touch-action: manipulation;
}

button,
[role="button"],
.btn {
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

::selection {
  background: var(--ink);
  color: var(--sun);
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

[id] {
  scroll-margin-top: calc(var(--nav-h) + 1rem);
}

.stop[id] {
  scroll-margin-top: 0;
}

[hidden] {
  display: none !important;
}

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


/* 4. Utilities
   -------------------------------------------------------------------------- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  user-select: none;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.ext {
  display: inline-block;
  margin-left: 0.3em;
  font-size: 0.85em;
  line-height: 1;
}

.skip {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 40;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--sun);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip:focus-visible {
  transform: none;
  outline: 2px solid var(--sun);
  outline-offset: 2px;
}

/* Underline that grows in on hover/focus (links inside panels) */
.chapter a:not(.btn) {
  background-image: var(--grad-sun);
  background-size: 0% 2px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition:
    background-size 0.24s var(--ease-out),
    text-decoration-color 0.24s var(--ease-out);
}

.chapter a:not(.btn):focus-visible {
  background-size: 100% 2px;
}

@media (hover: hover) and (pointer: fine) {
  .chapter a:not(.btn):hover {
    background-size: 100% 2px;
    text-decoration-color: transparent;
  }
}

@media (prefers-reduced-motion: reduce) {
  .chapter a:not(.btn) {
    transition: none;
  }
}


/* 5. Background (parallax)
   Three fixed, stacked photos; js/main.js moves and fades them on scroll.
   -------------------------------------------------------------------------- */

#scene,
.stage,
.fallback,
.fallback__note {
  display: none !important;
}

#pc-parallax {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--ink);
  pointer-events: none;
  contain: strict;
}

.pcx__layer {
  position: absolute;
  inset: 0;
  will-change: transform, opacity;
  backface-visibility: hidden;
}

.pcx__layer:not(:first-child) {
  opacity: 0;
}

.pcx__layer img {
  position: absolute;
  left: -2vw;
  top: -10vh;
  width: 104vw;
  height: 120vh;
  max-width: none;
  object-fit: cover;
  object-position: var(--pos, 50% 50%);
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0);
  will-change: transform;
}

.pcx__shade {
  position: absolute;
  inset: 0;
  z-index: 5;
  background:
    linear-gradient(90deg, rgba(16, 21, 18, 0.62) 0%, rgba(16, 21, 18, 0.28) 55%, rgba(16, 21, 18, 0.08) 100%),
    linear-gradient(0deg, rgba(16, 21, 18, 0.45), rgba(16, 21, 18, 0) 35%);
}

@media (max-width: 899px) {
  .pcx__shade {
    background: linear-gradient(0deg, rgba(var(--ink-rgb), 0.5), rgba(var(--ink-rgb), 0.15));
  }
}


/* 6. Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.72rem 1.3rem;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.14s var(--ease-out),
    background 0.14s var(--ease-out),
    color 0.14s var(--ease-out),
    border-color 0.14s var(--ease-out),
    filter 0.14s var(--ease-out);
}

.btn:active {
  transform: scale(0.97);
}

.btn--sun {
  background: var(--sun);
  color: var(--ink);
}

.btn--glass {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
}

@media (hover: hover) and (pointer: fine) {
  .btn--sun:hover {
    filter: brightness(1.06);
  }

  .btn--glass:hover {
    border-color: #fffc;
    background: #ffffff14;
  }
}

.btn--sun:active {
  filter: brightness(0.94);
}


/* 7. Header
   -------------------------------------------------------------------------- */

.bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  height: var(--nav-h);
  padding-top: env(safe-area-inset-top, 0px);
  background: var(--ink);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  transition: box-shadow 0.2s var(--ease-out);
}

.bar[data-elevated="true"] {
  box-shadow: 0 1px 3px rgba(var(--ink-rgb), 0.1);
}

@media (prefers-reduced-motion: reduce) {
  .bar {
    transition: none;
  }
}

.bar__in {
  height: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

.bar__brand {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

/* Brand wordmark (header + drawer) */
.bar__word,
.drawer__word {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 20px;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.bar__word {
  color: #fff;
}

.bar__tag,
.drawer__tag {
  display: block;
  margin-top: 3px;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--ink-66);
}

.bar__tag {
  color: var(--sun);
}

/* Logo (navy wordmark) sits on a white plate so it reads on the dark header */
.bar__brand {
  padding: 6px 12px;
  background: #fff;
  border-radius: 12px;
}

.bar__logo {
  display: block;
  width: auto;
  height: 34px;
}

@media (max-width: 400px) {
  .bar__logo {
    height: 28px;
  }
}

@media (max-width: 400px) {
  .bar__tag {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
  }
}

.bar__nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 28px;
}

.bar__link {
  padding-block: 6px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  color: #fff;
  opacity: 0.78;
  text-decoration: none;
  white-space: nowrap;
  background-image: var(--grad-sun);
  background-size: 0% 2px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition:
    background-size 0.24s var(--ease-out),
    opacity 0.14s var(--ease-out);
}

.bar__link[aria-current],
.bar__link:focus-visible {
  opacity: 1;
  background-size: 100% 2px;
}

.bar__link .ext {
  margin-left: 0.25em;
  font-size: 0.8em;
  opacity: 0.7;
}

@media (hover: hover) and (pointer: fine) {
  .bar__link:hover {
    opacity: 1;
    background-size: 100% 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bar__link {
    transition: none;
  }
}

.bar__end {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.bar__call {
  white-space: nowrap;
}

.bar__call.btn--sun {
  min-height: 44px;
  padding: 0 18px;
  font-size: 14px;
}

/* Hamburger (shown below 1140px) */
.burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: var(--sun);
  color: var(--ink);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 0.14s var(--ease-out),
    background 0.14s var(--ease-out);
}

.burger:active {
  transform: scale(0.94);
}

@media (hover: hover) and (pointer: fine) {
  .burger:hover {
    background: rgba(var(--ink-rgb), 0.06);
  }
}

.burger__box {
  position: relative;
  width: 18px;
  height: 14px;
}

.burger__line {
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transition:
    transform 0.2s var(--ease-out),
    opacity 0.2s var(--ease-out);
}

.burger__line:nth-child(1) {
  top: 0;
}

.burger__line:nth-child(2) {
  top: 6px;
}

.burger__line:nth-child(3) {
  top: 12px;
}

.burger[aria-expanded="true"] .burger__line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.burger[aria-expanded="true"] .burger__line:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded="true"] .burger__line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

@media (prefers-reduced-motion: reduce) {
  .burger,
  .burger__line {
    transition: opacity 0.15s var(--ease-out);
  }
}

@media (min-width: 1140px) and (max-width: 1319px) {
  .bar__nav {
    gap: 20px;
  }

  .bar__link {
    font-size: 14px;
  }

  .bar__num {
    display: none;
  }
}

@media (max-width: 1139px) {
  .bar__in {
    grid-template-columns: 1fr auto;
  }

  .bar__nav {
    display: none;
  }

  .burger {
    display: inline-flex;
  }
}

@media (max-width: 560px) {
  .bar__num {
    display: none;
  }
}


/* 8. Mobile drawer
   -------------------------------------------------------------------------- */

.scrim {
  position: fixed;
  inset: 0;
  z-index: 29;
  background: rgba(var(--ink-rgb), 0.45);
  opacity: 0;
  touch-action: none;
  transition: opacity var(--drawer-in) var(--ease-out);
}

.scrim[data-open="true"] {
  opacity: 1;
}

.scrim[hidden] {
  display: none;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: min(360px, 86vw);
  height: 100dvh;
  padding: 24px;
  padding-top: calc(24px + env(safe-area-inset-top, 0px));
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  background: var(--paper);
  color: var(--ink);
  box-shadow: -24px 0 60px #00000040;
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translate(100%);
  transition: transform var(--drawer-in) var(--ease-out);
}

.drawer[data-open="true"] {
  transform: translate(0);
}

.drawer[hidden] {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .drawer {
    transform: none;
    opacity: 0;
    transition: opacity 0.15s var(--ease-out);
  }

  .drawer[data-open="true"] {
    opacity: 1;
  }

  .scrim {
    transition: opacity 0.15s var(--ease-out);
  }
}

.drawer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.drawer__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.drawer__word {
  text-transform: uppercase;
}

.drawer__logo {
  display: block;
  width: auto;
  height: 32px;
}

.drawer__close {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--ink);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 0.14s var(--ease-out),
    background 0.14s var(--ease-out);
}

.drawer__close:active {
  transform: scale(0.94);
}

@media (hover: hover) and (pointer: fine) {
  .drawer__close:hover {
    background: rgba(var(--ink-rgb), 0.06);
  }
}

@media (prefers-reduced-motion: reduce) {
  .drawer__close {
    transition: none;
  }
}

.drawer__nav {
  display: flex;
  flex-direction: column;
}

.drawer__link {
  padding-block: 12px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  color: var(--ink);
  text-decoration: none;
  background-image: var(--grad-sun);
  background-size: 0% 2px;
  background-position: 0 calc(100% - 10px);
  background-repeat: no-repeat;
  transition: background-size 0.24s var(--ease-out);
}

.drawer__link + .drawer__link {
  border-top: 1px solid var(--rule);
}

.drawer__link[aria-current],
.drawer__link:focus-visible {
  background-size: 100% 2px;
}

@media (prefers-reduced-motion: reduce) {
  .drawer__link {
    transition: none;
  }
}

.drawer__call {
  width: 100%;
  justify-content: center;
}

.drawer__email {
  font-size: 15px;
  color: inherit;
  text-underline-offset: 3px;
}

.drawer__legal {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.drawer__legalLabel {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-66);
}

.drawer__legalList {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
}

.drawer__legalList a {
  display: inline-block;
  padding-block: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-66);
  text-underline-offset: 3px;
}

.drawer__office {
  margin-top: auto;
  padding-top: 1.5rem;
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: 0.06em;
  color: var(--glass-quiet);
}

@media (max-width: 899px), (pointer: coarse) {
  .drawer__email {
    display: inline-block;
    padding-block: 10px;
  }
}


/* 9. Chapter dots (rail)
   -------------------------------------------------------------------------- */

.rail {
  position: fixed;
  left: calc(clamp(1rem, 2vw, 1.6rem) - 11px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: grid;
  gap: 4px;
  pointer-events: auto;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.55));
}

.rail a {
  position: relative;
  display: block;
  width: 24px;
  height: 40px;
}

.rail a::before,
.rail a::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 11px;
  width: 2px;
  border-radius: 2px;
  transform: scaleY(0.55);
  transform-origin: center;
  transition:
    transform 0.24s var(--ease-out),
    opacity 0.24s var(--ease-out),
    background 0.24s var(--ease-out);
}

.rail a::before {
  background: #ffffff73;
}

.rail a::after {
  background: var(--grad-sun);
  opacity: 0;
}

.rail a[aria-current="step"]::before,
.rail a[aria-current="step"]::after {
  transform: scaleY(1);
}

.rail a[aria-current="step"]::after {
  opacity: 1;
}

.rail a:focus-visible {
  outline: 2px solid var(--sun);
  outline-offset: -2px;
  border-radius: 4px;
}

@media (hover: hover) and (pointer: fine) {
  .rail a:not([aria-current="step"]):hover::before {
    background: #fffc;
  }
}

@media (max-width: 899px) {
  .rail {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rail a::before,
  .rail a::after {
    transition:
      opacity 0.24s var(--ease-out),
      background 0.24s var(--ease-out);
  }
}


/* 10. Stops and panels
   Each <section class="stop"> is a tall scroll runway (--stop-h). Its panel
   (.chapter--flow) is nudged part-way down the runway so the text lines up
   with the matching background photo.
   -------------------------------------------------------------------------- */

.journey {
  padding-top: var(--nav-h);
}

.page {
  position: relative;
  z-index: 1;
}

.stop {
  --stop-h: 115svh;
  position: relative;
  z-index: 2;
  min-height: var(--stop-h);
  padding: max(calc(var(--nav-h) + 1.5rem), calc((100svh - 540px) / 2)) var(--gutter) 0 calc(var(--gutter) + 26px);
  pointer-events: none;
}

.stop[data-stop="0"] {
  --stop-h: 100svh;
  padding-top: calc(var(--nav-h) + 1.5rem);
}

.stop[data-stop="1"] {
  --stop-h: 115svh;
}

.stop[data-stop="2"] {
  --stop-h: 130svh; /* last parallax stop */
}

/* The last panel is nudged down by half the runway (top: ...), which does not
   add layout height, so the next solid section used to cover its lower half.
   Give the stop that much extra room at the bottom. */
@media (min-width: 900px) {
  .stop[data-stop="2"] {
    padding-bottom: calc(var(--stop-h) * 0.5 + 12svh);
  }
}

@media (max-width: 899px) {
  .stop[data-stop] {
    --stop-h: 85svh;
    padding: 38svh 12px 0;
  }

  .stop[data-stop="0"] {
    padding-top: calc(var(--nav-h) + 1rem);
  }
}

/* The panel itself. Background, border and padding are set per stop (section 13). */
.chapter {
  --text: #fff;
  --text-muted: #fff;
  container-type: inline-size; /* sizes below use cqw */
  color: var(--text);
  pointer-events: none;
}

.chapter :is(a, button, form, input, select, textarea, label, summary) {
  pointer-events: auto; /* panels ignore the mouse so the background stays scrollable; controls must not */
}

.chapter :focus-visible {
  outline-color: var(--sun);
}

.chapter--flow {
  position: relative;
  top: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0;
}

.stop:not([data-stop="0"]) .chapter--flow {
  top: calc(var(--stop-h) * 0.5);
}

@media (max-width: 899px) {
  .stop[data-stop] .chapter--flow {
    top: 0;
  }
}

/* Light panel (stop 2, About): dark text instead of white. */
.stop[data-stop="2"] .chapter {
  --text: var(--ink);
  --text-muted: var(--muted);
}


/* 11. Shared panel content
   -------------------------------------------------------------------------- */

.chapter :is(h1, h2, h3, .lede, p, li) {
  color: var(--text);
}

.chapter :is(.muted, .quiet, .hint, .group__line, .contact__label) {
  color: var(--text-muted);
}

.chapter > p {
  max-width: 68ch;
}

.chapter .eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font: 700 12px var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sun);
}

.chapter .eyebrow::before {
  content: "";
  width: 34px;
  height: 3px;
  background: var(--sun);
}

.stop[data-stop="2"] .eyebrow {
  color: var(--muted);
}

.stop[data-stop="2"] .eyebrow::before {
  width: 22px;
  height: 2px;
  background: var(--ink);
}

/* Headline words (animated in by js via data-state; --i is the word index) */
.w {
  display: inline-block;
  transition:
    opacity 0.42s var(--ease-out),
    transform 0.42s var(--ease-out);
  transition-delay: calc(min(var(--i, 0), 8) * 40ms);
}

.chapter[data-state]:not([data-state="in"]) .w {
  opacity: 0.3;
  transform: translateY(12px);
}

.chapter .w--accent {
  color: var(--sun);
}

.stop[data-stop="2"] .chapter .w--accent {
  color: var(--ink);
  box-shadow: inset 0 -0.3em 0 var(--sun);
}

@media (prefers-reduced-motion: reduce) {
  .w {
    transform: none;
    transition: opacity 0.15s var(--ease-out);
    transition-delay: 0s;
  }

  .chapter[data-state]:not([data-state="in"]) .w {
    transform: none;
  }
}

.lede {
  line-height: 1.45;
}

.chapter > .lede {
  max-width: 36ch;
  margin-top: 16px;
}

.hint {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

.chapter > :is(.chips, .beats, .actions, .contact) {
  margin-top: 22px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.chips,
.beats,
.contact,
.groups {
  list-style: none;
  margin: 0;
  padding: 0;
}

.stop[data-stop="2"] .chapter :focus-visible {
  outline-color: var(--ink);
}

.stop[data-stop="2"] .btn--sun {
  background: var(--ink);
  color: #fff;
}

.stop[data-stop="2"] .btn--glass {
  background: transparent;
  border: 1px solid var(--line-2);
  color: var(--ink);
}


/* 12. Chapter navigation (cnav): "01 / 03  [↑] [Next ↓]"
   -------------------------------------------------------------------------- */

.cnav {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding-top: 14px;
  border-top: 2px solid rgba(255, 255, 255, 0.2);
}

.cnav__count {
  flex-shrink: 0;
  margin-right: auto;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
}

.cnav__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--glass-edge);
  border-radius: var(--radius-pill);
  background: #ffffff0f;
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition:
    background 0.16s var(--ease-out),
    border-color 0.16s var(--ease-out);
}

.cnav__btn--prev {
  justify-content: center;
  width: 44px;
  padding: 0;
}

.cnav__btn--next {
  padding-right: 14px;
}

.cnav__arrow {
  display: inline-block;
  font-size: 16px;
  line-height: 1;
}

@media (hover: hover) and (pointer: fine) {
  .cnav__btn:hover {
    background: #ffffff24;
    border-color: #ffffff4d;
  }
}

.cnav__btn:active {
  transform: scale(0.97);
}

.cnav__btn:focus-visible {
  outline-offset: 2px;
}

@media (max-width: 899px) {
  .cnav {
    gap: 8px;
  }

  .cnav__btn {
    min-height: 36px;
    padding: 0 12px;
    font-size: 13px;
  }

  .cnav__btn--prev {
    width: 36px;
  }

  .cnav__label {
    white-space: nowrap;
  }

  .cnav__name {
    display: none;
  }
}

/* Light panel (About) */
.stop[data-stop="2"] .cnav {
  margin-top: 20px;
  border-top: 1px solid var(--line);
}

.stop[data-stop="2"] .cnav__count {
  color: var(--muted);
}

.stop[data-stop="2"] .cnav__btn {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
}

.stop[data-stop="2"] .cnav__btn:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

@keyframes cnav-nod {
  0%,
  to {
    transform: translateY(0);
  }

  50% {
    transform: translateY(3px);
  }
}

.chapter[data-state="in"] .cnav__arrow {
  animation: cnav-nod 1.6s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .cnav__arrow {
    animation: none !important;
  }
}


/* 13. Stop layouts
   0 Support form (hero)   dark glass panel, left
   1 How we work           full-bleed dark band, 4-step callback process
   2 About                 wide white panel: lime intro block + service cards
   -------------------------------------------------------------------------- */

/* ---- 0 · Hero ---- */

.stop[data-stop="0"] .chapter--flow {
  padding: clamp(26px, 3.2vw, 44px);
  background: rgba(var(--ink-rgb), 0.82);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
}

.stop[data-stop="0"] h1 {
  margin-top: 18px;
  font-size: clamp(30px, 6.4cqw, 52px);
  line-height: 1;
}

.stop[data-stop="0"] .lede {
  max-width: 100ch;
  margin-top: 12px;
  font-size: clamp(16px, 2.1cqw, 19px);
}

.stop[data-stop="0"] .btn {
  padding: 0.8rem 1.35rem;
  font-size: 15px;
}

@media (min-width: 900px) {
  .stop[data-stop="0"] .chapter--flow {
    width: min(780px, 100%);
  }
}


/* ---- 1 · How we work (callback process) ---- */

.stop[data-stop="1"] .chapter--flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  padding: clamp(32px, 5vw, 64px) clamp(1rem, 4vw, 2.5rem);
  background: var(--ink);
}

.stop[data-stop="1"] .chapter--flow > * {
  margin: 0;
}

.stop[data-stop="1"] h2 {
  font-size: clamp(34px, 6cqw, 72px);
  line-height: 1;
}

.stop[data-stop="1"] .lede {
  max-width: 38ch;
  font-size: clamp(16px, 1.9cqw, 19px);
}

.stop[data-stop="1"] .chips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  counter-reset: tl;
}

.stop[data-stop="1"] .chips > li {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  min-height: 150px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  counter-increment: tl;
}

.stop[data-stop="1"] .chips > li::before {
  content: counter(tl, decimal-leading-zero);
  position: absolute;
  top: 14px;
  left: 16px;
  font: 500 12px var(--font-mono);
  letter-spacing: 0.12em;
  color: var(--sun);
}

.steps li strong {
  font: 700 clamp(17px, 2cqw, 22px) / 1.15 var(--font-display);
  letter-spacing: -0.01em;
}

.steps li span {
  font: 400 14px/1.4 var(--font-body);
  opacity: 0.8;
}

@media (min-width: 900px) {
  /* break out of the padded section so the band runs edge to edge */
  .stop[data-stop="1"] .chapter--flow {
    width: calc(100% + var(--gutter) * 2 + 26px);
    margin-left: calc(-1 * (var(--gutter) + 26px));
    padding-inline: max(calc(var(--gutter) + 26px), calc((100vw - 1180px) / 2));
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    column-gap: clamp(32px, 5vw, 80px);
    align-items: center;
  }

  .stop[data-stop="1"] .chapter--flow > :is(.eyebrow, h2, .lede, .actions) {
    grid-column: 1;
  }

  .stop[data-stop="1"] .chapter--flow > .chips {
    grid-column: 2;
    grid-row: 1 / 5;
  }

  .stop[data-stop="1"] .chapter--flow > .cnav {
    grid-column: 1 / -1;
  }
}

@media (max-width: 899px) {
  .stop[data-stop="1"] .chapter--flow {
    width: calc(100% + 24px);
    margin-left: -12px;
    padding: 28px 20px;
  }

  .stop[data-stop="1"] .chips > li {
    min-height: 120px;
    padding: 12px;
  }
}


/* ---- 2 · About ---- */

.stop[data-stop="2"] .chapter--flow {
  padding: clamp(24px, 3vw, 44px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
}

.stop[data-stop="2"] h2 {
  margin-top: 0;
  font-size: clamp(30px, 4.6cqw, 48px);
}

.about {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.about__intro {
  padding: clamp(20px, 3vw, 32px);
  background: var(--sun);
  border-radius: 18px;
}

.stop[data-stop="2"] .about__intro .lede {
  max-width: none;
  margin-top: 14px;
  font-size: 16px;
  color: var(--ink);
}

.stop[data-stop="2"] .about__intro .w--accent {
  box-shadow: none;
  background: var(--ink);
  color: var(--sun);
  padding: 0 0.15em;
}

.chapter .about__note {
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.5;
}

.stop[data-stop="2"] .about__intro .about__note {
  color: rgba(var(--ink-rgb), 0.7);
}

.about__cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.about__cards li {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 14px;
  padding: 16px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.about__cards .mono {
  grid-row: 1 / 3;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.about__cards h3 {
  font-size: 20px;
}

.about__cards p {
  margin-top: 2px;
  font-size: 15px;
  color: var(--muted-2);
}

@media (min-width: 900px) {
  .stop[data-stop="2"] .chapter--flow {
    width: min(1040px, 100%);
    margin-inline: auto;
  }

  .about {
    grid-template-columns: 1.05fr 1fr;
    align-items: stretch;
  }

  .about__cards {
    align-content: stretch;
    grid-auto-rows: 1fr;
  }
}

@media (max-width: 899px) {
  .stop[data-stop="2"] .chapter--flow {
    width: 100%;
  }
}


/* 14. Support form (hero)
   -------------------------------------------------------------------------- */

.form,
.form__set {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}

.form {
  margin-top: 22px;
}

.form__set {
  grid-column: 1 / -1;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

/* Dropdown -> fields, pure CSS (works even if JavaScript fails). JS additionally disables the hidden fields. */
.form:has(#request-type option[value="receipt"]:checked) .form__set:not([data-for="receipt"]),
.form:has(#request-type option[value="dispute"]:checked) .form__set:not([data-for="dispute"]),
.form:has(#request-type option[value="lost"]:checked) .form__set:not([data-for="lost"]) {
  display: none;
}

.f {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.f--wide {
  grid-column: 1 / -1;
}

.f label {
  font: 700 12px var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--glass-muted);
}

.f :is(input, select, textarea) {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font: 400 16px/1.4 var(--font-body);
  color-scheme: dark;
}

.f textarea {
  resize: vertical;
}

.f select option {
  background: var(--ink);
  color: #fff;
}

.f ::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.f input[type="file"] {
  padding: 9px 12px;
  font-size: 14px;
}

.f input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 6px 14px;
  border: 0;
  border-radius: 999px;
  background: var(--sun);
  color: var(--ink);
  font: 700 13px var(--font-body);
  cursor: pointer;
}

.f small {
  font-size: 13px;
  color: var(--glass-quiet);
}

.f :is(input, select, textarea):focus-visible {
  outline: 2px solid var(--sun);
  outline-offset: 2px;
}

.f :is(input, select, textarea):user-invalid {
  border-color: #ff8a80;
}

.chapter .form__note {
  max-width: none;
  padding: 10px 14px;
  border-left: 3px solid var(--sun);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 0 10px 10px 0;
  font-size: 14px;
  line-height: 1.5;
}

.chapter .form__safe,
.chapter .form__next {
  max-width: none;
  font-size: 13px;
  line-height: 1.5;
  color: var(--glass-quiet);
}

.form .actions {
  margin-top: 4px;
}

@media (max-width: 599px) {
  .form,
  .form__set {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* 15. Solid sections
   -------------------------------------------------------------------------- */

#below {
  position: relative;
  z-index: 3;
}

.sec {
  --text: var(--ink);
  padding: clamp(3.5rem, 9vw, 7rem) 0;
  color: var(--text);
  scroll-margin-top: var(--nav-h);
}

.sec--ink {
  --text: #fff;
  background: var(--ink);
}

.sec--paper {
  background: var(--paper);
}

.sec--white {
  background: #fff;
}

.sec--sun {
  background: var(--sun);
}

.sec :focus-visible {
  outline-color: var(--sun);
}

.sec--paper :focus-visible,
.sec--white :focus-visible,
.sec--sun :focus-visible {
  outline-color: var(--ink);
}

.sec h2 {
  margin-top: 6px;
  font-size: clamp(32px, 5.4vw, 60px);
  line-height: 1.02;
}

.sec .eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font: 700 12px var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.sec .eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  background: var(--ink);
}

.sec--ink .eyebrow {
  color: var(--sun);
}

.sec--ink .eyebrow::before {
  background: var(--sun);
}

.sec--sun .eyebrow {
  color: var(--ink);
}

.sec--ink .w--accent {
  color: var(--sun);
}

.sec--paper .w--accent,
.sec--white .w--accent {
  box-shadow: inset 0 -0.3em 0 var(--sun);
}

.sec__lede {
  max-width: 46ch;
  margin: 18px 0 26px;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.5;
}

.sec__small {
  margin-top: 14px;
  font-size: 14px;
  opacity: 0.75;
}

.sec__grid {
  display: grid;
  gap: 36px;
  align-items: center;
}

@media (min-width: 900px) {
  .sec__grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 64px;
  }
}

.sec .btn--sun {
  background: var(--sun);
  color: var(--ink);
}

.sec--paper .btn--sun,
.sec--white .btn--sun {
  background: var(--ink);
  color: #fff;
}

.sec--paper .btn--glass,
.sec--white .btn--glass {
  border-color: var(--line-2);
  color: var(--ink);
}

.sec .actions {
  margin: 0;
}

/* Drivers: terminal, driver card and Apple Pay (3 cards, one shared form) */
.dgrid {
  display: grid;
  gap: 18px;
  margin-top: 36px;
}

@media (min-width: 720px) {
  .dgrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.dcard {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: clamp(18px, 2.4vw, 26px);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
}

.dcard figure {
  margin: 0 0 12px;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--ink-deep);
}

.dcard img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.dcard .mono {
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--sun);
}

.dcard h3 {
  font-size: clamp(22px, 2.4vw, 28px);
}

.dcard p {
  max-width: 38ch;
  opacity: 0.85;
}

.dcard .actions {
  margin-top: auto;
  padding-top: 16px;
}

.dcard .dcard__tag {
  align-self: flex-start;
  margin-top: auto;
  padding: 10px 16px;
  border: 1px solid var(--sun);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 1;
}

/* Shared "have these ready" strip under the cards */
.need {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding: 22px clamp(18px, 3vw, 30px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
}

@media (min-width: 900px) {
  .need {
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 32px;
  }
}

.need .need__t {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sun);
}

.need ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.need li {
  position: relative;
  padding-left: 22px;
  font-weight: 600;
}

.need li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sun);
}

/* Referral terms */
.rterms__h {
  margin: 0 0 12px;
  font-size: clamp(20px, 2.2vw, 24px);
}

.rterms {
  max-width: 52ch;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  counter-reset: term;
}

.rterms li {
  position: relative;
  padding: 10px 0 10px 40px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.5;
  counter-increment: term;
}

.rterms li:last-child {
  border-bottom: 0;
}

.rterms li::before {
  content: counter(term);
  position: absolute;
  left: 0;
  top: 10px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--sun);
  color: var(--ink);
  font: 700 13px var(--font-mono);
}

/* Refer a friend: image column */
.refer__img {
  position: relative;
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  min-height: 280px;
}

.refer__img img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.refer__img figcaption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--sun);
  color: var(--ink);
  font: 500 12px var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.refer__img figcaption b {
  margin-right: 4px;
  font: 700 20px var(--font-display);
  letter-spacing: 0;
}

/* Testimonials */
.tms {
  list-style: none;
  display: grid;
  gap: 16px;
  margin: 32px 0 0;
  padding: 0;
}

.tms li {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 26px;
  background: var(--paper);
  border-radius: 20px;
}

.tms blockquote {
  margin: 0;
  font: 700 clamp(18px, 2vw, 22px) / 1.3 var(--font-display);
}

.tms__by {
  font: 500 12px var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (min-width: 800px) {
  .tms {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* FAQs */
.faq {
  display: grid;
  gap: 32px;
}

@media (min-width: 900px) {
  .faq {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 64px;
  }
}

.faq__list details {
  border-top: 1px solid var(--rule);
}

.faq__list details:last-child {
  border-bottom: 1px solid var(--rule);
}

.faq__list summary {
  position: relative;
  padding: 20px 44px 20px 0;
  font-weight: 700;
  font-size: 18px;
  list-style: none;
  cursor: pointer;
}

.faq__list summary::-webkit-details-marker {
  display: none;
}

.faq__list summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  translate: 0 -50%;
  font: 400 28px/1 var(--font-body);
}

.faq__list details[open] summary::after {
  content: "−";
}

.faq__list details p {
  max-width: 60ch;
  padding: 0 44px 22px 0;
  color: var(--ink-66);
}

/* Prefer to talk */
.talk {
  text-align: center;
}

.talk .eyebrow {
  justify-content: center;
}

.talk h2 {
  max-width: 18ch;
  margin-inline: auto;
}

.talk__num {
  display: inline-block;
  margin: 22px 0 10px;
  padding-block: 6px;
  font: 700 clamp(44px, 10vw, 104px) / 1.05 var(--font-display);
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.talk__sub a {
  text-underline-offset: 4px;
}

.talk__mail {
  margin-top: 8px;
  font-weight: 600;
}

.talk__mail a {
  text-underline-offset: 4px;
}


/* 16. Sub-pages (refer-a-friend.php, driver-onboarding.php)
   -------------------------------------------------------------------------- */

.sub main {
  padding-top: var(--nav-h);
}

.sub-hero {
  padding: clamp(2.5rem, 7vw, 5rem) 0;
  background: var(--ink);
  color: #fff;
}

.sub-hero .eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font: 700 12px var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sun);
}

.sub-hero .eyebrow::before {
  content: "";
  width: 34px;
  height: 3px;
  background: var(--sun);
}

.sub-hero h1 {
  font-size: clamp(36px, 7vw, 76px);
  line-height: 1;
}

.sub-hero .w--accent {
  color: var(--sun);
}

.sub-hero .sec__lede {
  color: #fff;
  opacity: 0.9;
}

.sub-hero .btn--glass {
  color: #fff;
}

.sub-hero__grid {
  display: grid;
  gap: 36px;
  align-items: center;
}

@media (min-width: 900px) {
  .sub-hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 64px;
  }
}

.sub-hero__img {
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
}

.sub-hero__img img {
  display: block;
  width: 100%;
  height: auto;
}

.sub-hero__img--crop img {
  max-height: 520px;
  object-fit: cover;
}

/* Referral terms */
.terms {
  list-style: none;
  counter-reset: t;
  max-width: 760px;
  margin: 28px 0 0;
  padding: 0;
}

.terms li {
  counter-increment: t;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--rule);
  font-size: 18px;
}

.terms li:last-child {
  border-bottom: 1px solid var(--rule);
}

.terms li::before {
  content: counter(t);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--sun);
  color: var(--ink);
  font: 700 18px var(--font-display);
}

/* Driver enquiry form */
.dform-wrap {
  padding: clamp(2.5rem, 7vw, 5rem) 0;
  background: var(--paper);
}

.dform-wrap .wrap {
  max-width: 880px;
}

.dform {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: clamp(22px, 4vw, 44px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
}

.dform h2 {
  grid-column: 1 / -1;
  font-size: clamp(24px, 3vw, 32px);
}

.dform__intro,
.dform .f--wide,
.dform .actions,
.dform .form__safe {
  grid-column: 1 / -1;
}

.dform__intro,
.dform .form__safe {
  font-size: 14px;
  color: var(--ink-66);
}

.dform .f label {
  color: var(--ink);
  opacity: 0.75;
}

.dform .f :is(input, select, textarea) {
  border: 1px solid var(--line-2);
  background: var(--paper);
  color: var(--ink);
  color-scheme: light;
}

.dform .f ::placeholder {
  color: rgba(var(--ink-rgb), 0.45);
}

.dform .f small {
  color: var(--ink-66);
}

.dform .f :is(input, select, textarea):focus-visible {
  outline-color: var(--ink);
}

.dform .f input[type="file"]::file-selector-button {
  background: var(--ink);
  color: #fff;
}

.dform .btn--sun {
  background: var(--ink);
  color: #fff;
}

.docs {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.docs legend {
  margin-bottom: 12px;
  padding: 0;
  font: 700 12px var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-66);
}

.docs__hint {
  grid-column: 1 / -1;
  font-size: 14px;
  color: var(--ink-66);
}

/* Terminal / driver card toggle */
.seg {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.seg label {
  position: relative;
  cursor: pointer;
}

.seg input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.seg span {
  display: block;
  padding: 14px 12px;
  border: 2px solid var(--line-2);
  border-radius: 14px;
  background: var(--paper);
  font-weight: 700;
  text-align: center;
}

.seg input:checked + span {
  border-color: var(--ink);
  background: var(--sun);
}

.seg input:focus-visible + span {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

@media (max-width: 599px) {
  .dform,
  .docs {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* Legal pages (terms.php, privacy.php) */
.legal__date {
  margin-top: 18px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--glass-quiet);
}

.legal {
  padding: clamp(2.5rem, 7vw, 5rem) 0;
  background: var(--paper);
  color: var(--ink);
}

.legal__body {
  max-width: 760px;
}

.legal h2 {
  margin: 44px 0 12px;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.1;
}

.legal h2:first-child {
  margin-top: 0;
}

.legal p,
.legal li {
  font-size: 17px;
  line-height: 1.65;
}

.legal p + p,
.legal p + ul,
.legal p + ol {
  margin-top: 12px;
}

.legal ul,
.legal ol {
  margin: 12px 0 0;
  padding-left: 22px;
}

.legal li {
  margin-top: 6px;
  padding-left: 4px;
}

.legal li::marker {
  color: var(--muted);
}

.legal a {
  text-underline-offset: 3px;
}


/* Driver enquiry popup (same fields as the driver-onboarding page) */
.dmodal {
  width: min(720px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: #fff;
  color: var(--ink);
  overflow: auto;
  overscroll-behavior: contain;
  box-shadow: 0 30px 80px #00000066;
}

.dmodal::backdrop {
  background: rgba(var(--ink-rgb), 0.72);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.dmodal .dform {
  position: relative;
  border: 0;
  border-radius: 0;
}

.dform__head {
  grid-column: 1 / -1;
  padding-right: 52px;
}

.dform__head h2 {
  font-size: clamp(26px, 3.4vw, 36px);
}

.dform__head .dform__intro {
  margin-top: 8px;
}

.dmodal__eyebrow {
  margin-bottom: 8px;
  font: 700 12px var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.dmodal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font: 400 28px/1 var(--font-body);
  cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
  .dmodal__close:hover {
    background: var(--sun);
  }
}

.dform .btn--glass {
  border-color: var(--line-2);
  color: var(--ink);
}

.check {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--paper);
  font-weight: 700;
  cursor: pointer;
}

.check input {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--ink);
}

.dform :is(input, select, textarea):user-invalid {
  border-color: #c0392b;
}


/* 17. Footer
   -------------------------------------------------------------------------- */

.foot {
  position: relative;
  z-index: 2;
  padding-block: clamp(3rem, 8vh, 5.5rem) 1.5rem;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.95rem;
  border-top: 6px solid transparent;
  border-image: repeating-linear-gradient(90deg, var(--sun) 0 12px, var(--ink) 12px 24px) 12;
  /* paints the footer colour a little below its bottom edge, so the fixed
     background photo can never show through under the footer */
  box-shadow: 0 80px 0 0 var(--ink);
}

.foot :focus-visible {
  outline-color: var(--sun);
}

.foot__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.foot__mark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--paper);
  text-decoration: none;
}

.foot__mark {
  padding: 12px 18px;
  background: #fff;
  border-radius: 14px;
}

.foot__logo {
  display: block;
  width: auto;
  height: 46px;
}

.foot__word {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.foot__tagline {
  margin-top: 0.8rem;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.foot__cta {
  display: grid;
  gap: 0.3rem;
  text-decoration: none;
  color: var(--sun);
}

.foot__label {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.foot__num {
  font: 700 clamp(34px, 5.4vw, 64px) / 1 var(--font-display);
  letter-spacing: -0.02em;
  background-image: var(--grad-sun);
  background-size: 0% 3px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.24s var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .foot__cta:hover .foot__num {
    background-size: 100% 3px;
  }
}

.foot__cta:focus-visible .foot__num {
  background-size: 100% 3px;
}

.foot__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.25rem 1.5rem;
  padding-block: clamp(2rem, 5vw, 3.5rem);
}

@media (min-width: 800px) {
  .foot__cols {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.foot__h {
  margin: 0 0 0.9rem;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sun);
}

.foot__cols ul,
.foot__legal {
  list-style: none;
  margin: 0;
  padding: 0;
}

.foot__cols a {
  display: inline-block;
  padding-block: 6px;
  font-weight: 600;
  color: var(--paper);
  text-decoration: none;
  background-image: var(--grad-sun);
  background-size: 0% 2px;
  background-position: 0 calc(100% - 4px);
  background-repeat: no-repeat;
  transition: background-size 0.24s var(--ease-out);
}

.foot__cols a:focus-visible {
  background-size: 100% 2px;
}

@media (hover: hover) and (pointer: fine) {
  .foot__cols a:hover {
    background-size: 100% 2px;
  }
}

.foot__mail {
  margin-top: 0.6rem;
  overflow-wrap: anywhere;
}

.foot address {
  font-style: normal;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
}

.foot__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-top: 1.3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.foot .mono {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.foot__legalline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  color: rgba(255, 255, 255, 0.62);
}

.foot__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5rem;
}

.foot__legal a {
  display: inline-block;
  padding-block: 10px;
  font: 500 0.8rem var(--font-mono);
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.82);
  text-underline-offset: 4px;
}

@media (hover: hover) and (pointer: fine) {
  .foot__legal a:hover {
    color: #fff;
    text-decoration: underline;
  }
}

@media (max-width: 560px) {
  .foot__legalline {
    flex-direction: column;
  }
}

/* pressed state for text links */
:is(.bar__link, .drawer__link, .foot__cols a, .foot__legal a, .drawer__legalList a, .drawer__email):active {
  opacity: 0.6;
}


/* 18. Scroll animations
   Each panel fades/slides in as it enters the viewport (progressive enhancement).
   -------------------------------------------------------------------------- */

@keyframes pc-in {
  from { opacity: 0.15; transform: translate3d(0, 56px, 0); }
  to   { opacity: 1; transform: none; }
}

@keyframes pc-in-s {
  from { opacity: 0.1; translate: 0 36px; }
  to   { opacity: 1; translate: 0 0; }
}

@keyframes pc-in-y {
  from { opacity: 0.1; translate: 0 48px; }
  to   { opacity: 1; translate: 0 0; }
}

@supports (animation-timeline: view()) {
  .chapter--flow {
    animation: pc-in linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 60%;
  }

  .stop[data-stop="1"] .chapter--flow {
    animation-name: pc-in-y;
    animation-range: entry 0% entry 65%;
  }

  .stop[data-stop="2"] .chapter--flow {
    animation-name: pc-in-s;
    animation-range: entry 0% entry 65%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .chapter--flow {
    animation: none !important;
  }
}


/* 19. Print
   -------------------------------------------------------------------------- */

@media print {
  .bar,
  .rail,
  .scrim,
  .drawer,
  .skip,
  .cnav,
  .btn {
    display: none !important;
  }
}