/* ==========================================================================
   Xpress Rentals V3 ("Night Street", Nov 2026)
   One system for the landing page (reserve.html) and, at gate 4, the full site.
   Near-black ground, chrome-white type, ONE solid accent: the logo purple.
   No gradients in the brand colour, no glow, no emoji, no filler stats.
   ========================================================================== */
/* Fonts: Saira (display) + Archivo full variable (body, labels, sub-heads). Self-hosted; Inter retired in V3. */
@font-face { font-family: 'Archivo V3'; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url('../assets/fonts/archivo-latin-var.woff2') format('woff2'); }
@font-face { font-family: 'Saira'; font-style: normal; font-weight: 600 800; font-stretch: 100%; font-display: swap; src: url('../assets/fonts/saira-var.woff2') format('woff2'); }

:root {
  /* One type scale (Dec 1): every font-size on the site is one of these. */
  --fs-13: 13px;  --fs-14: 14px;  --fs-16: 16px;  --fs-18: 18px;  --fs-20: 20px;
  --fs-24: 24px;  --fs-30: 30px;  --fs-36: 36px;  --fs-48: 48px;  --fs-64: 64px;
  --fs-lede: clamp(18px, 2vw, 20px);         /* intro paragraphs */
  --fs-d4: clamp(24px, 3vw, 36px);           /* card and group titles */
  --fs-d3: clamp(32px, 5vw, 56px);           /* section titles */
  --fs-d2: clamp(40px, 8vw, 96px);           /* page titles, landing hero, closing band */
  --fs-d1: clamp(44px, 12vw, 128px);         /* home hero */

  /* Ground and lines */
  --bg: oklch(14.1% 0.004 285.8);
  --surface: oklch(18.9% 0.008 285.6);
  --surface-2: oklch(22.0% 0.012 285.4);
  --field: oklch(16.6% 0.008 285.5);
  --line: rgb(244 244 255 / 0.12);
  --line-strong: rgb(244 244 255 / 0.22);

  /* Text (all pass WCAG AA on --bg and --surface) */
  --ink: oklch(96.8% 0.003 286.4);
  --ink-2: oklch(78.7% 0.013 276.0);
  --ink-3: oklch(65.8% 0.017 273.7);

  /* The one accent: solid logo purple. White on --accent is 5.7:1. */
  --accent: oklch(54.1% 0.247 293.0);
  --accent-hover: oklch(49.1% 0.241 292.6);
  --accent-ink: oklch(81.1% 0.101 293.6);      /* purple for small text and focus rings on dark */
  --danger: oklch(71.1% 0.166 22.2);
  --ok: oklch(72.3% 0.192 149.6);

  /* Type */
  --f-hero: 'Saira', 'Arial Narrow', system-ui, sans-serif;
  --f-head: 'Archivo V3', 'Segoe UI', system-ui, sans-serif;
  --f-body: 'Archivo V3', 'Segoe UI', system-ui, sans-serif;

  /* Shape and motion */
  --r: 10px;
  --r-lg: 14px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --wrap: min(1240px, 100% - 32px);

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body { background: var(--bg); color: var(--ink); font: 16px/1.55 var(--f-body); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
p, li, small { text-wrap: pretty; }
::selection { background: var(--accent); color: #fff; }
input { caret-color: var(--accent-ink); }
html { scrollbar-color: var(--line-strong) var(--bg); }
a { color: inherit; }
button, input { font: inherit; }
.wrap { width: var(--wrap); margin-inline: auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

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

.skip { position: absolute; left: 16px; top: -60px; z-index: 50; padding: 12px 16px; background: var(--ink); color: var(--bg); font-weight: 700; border-radius: var(--r); text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- Buttons: one solid primary, one quiet secondary ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px; border-radius: var(--r); border: 1px solid transparent;
  font: 700 17px/1 var(--f-body); text-decoration: none; cursor: pointer; user-select: none;
  transition: transform 140ms var(--ease-out), background-color 160ms var(--ease-out), border-color 160ms var(--ease-out), opacity 160ms var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-block { width: 100%; }
.btn[aria-busy="true"] { opacity: .75; cursor: progress; }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--accent-hover); }
  .btn-ghost:hover { border-color: var(--ink-2); background: rgba(255, 255, 255, .04); }
}

/* ---------- Header (over the hero photo) ---------- */
.bar { position: absolute; inset: 0 0 auto; z-index: 10; }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.bar .logo img { height: 44px; width: auto; }
.bar-call { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px; background: rgba(9, 9, 11, .4); font-size: var(--fs-16); font-weight: 600; text-decoration: none; transition: border-color 160ms var(--ease-out), transform 140ms var(--ease-out); }
.bar-call:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .bar-call:hover { border-color: var(--ink); } }
@media (min-width: 1024px) { .bar .wrap { height: 88px; } .bar .logo img { height: 60px; } }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; isolation: isolate; }
.hero-photo { position: absolute; inset: 0 0 auto; height: 46svh; overflow: hidden; z-index: -1; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; filter: grayscale(1) contrast(1.08); }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg in oklch, rgba(9,9,11,.5), rgba(9,9,11,.6) 50%, #09090B); }
.hero-in { display: grid; gap: 16px; align-content: end; padding: 72px 0 16px; }
.hero-copy { display: grid; gap: 8px; }
.hero h1 { font-family: var(--f-hero); font-weight: 800; font-size: var(--fs-d2); line-height: .94; letter-spacing: -.015em; text-transform: uppercase; text-wrap: balance; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; font-size: var(--fs-18); font-weight: 600; color: var(--ink-2); }
.price strong { font-family: var(--f-hero); font-size: var(--fs-30); font-weight: 800; color: #fff; }
.price .more { display: none; }
.price .sub { width: 100%; font-size: var(--fs-16); font-weight: 500; color: var(--ink-2); }

@media (min-width: 1024px) {
  .hero-photo { inset: 0; height: auto; }
  .hero-photo::after { background: linear-gradient(90deg in oklch, rgba(9,9,11,.9) 0%, rgba(9,9,11,.55) 48%, rgba(9,9,11,.35) 100%), linear-gradient(0deg in oklch, #09090B 0%, transparent 30%); }
  .hero-in { grid-template-columns: minmax(0, 1.15fr) 460px; align-items: end; gap: 64px; padding: 128px 0 72px; }
  .hero-copy { gap: 24px; align-self: center; }
  .price { font-size: var(--fs-20); line-height: 1.5; }
  .price strong { font-size: var(--fs-48); }
  .price .sub { display: none; }
  .price .more { display: block; width: 100%; color: var(--ink-2); font-weight: 500; }
}

/* ---------- Lead form ---------- */
.lead-card { display: grid; gap: 12px; }
.lead-card h2 { font-family: var(--f-head); font-stretch: 112%; font-weight: 900; font-size: var(--fs-24); line-height: 1.1; }
.lead-form { display: grid; gap: 12px; }
.lead-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: grid; gap: 4px; align-content: start; }
.field > label, .chips legend { font-size: var(--fs-13); font-weight: 600; color: var(--ink-2); letter-spacing: .01em; }
.field input {
  width: 100%; height: 46px; padding: 0 16px; font-size: var(--fs-16); color: var(--ink);
  background: var(--field); border: 1px solid var(--line-strong); border-radius: var(--r);
  transition: border-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}
.field input::placeholder { color: #8A8D99; }
.field input:focus { outline: none; border-color: var(--accent-ink); box-shadow: 0 0 0 3px rgba(124, 58, 237, .35); }
.field .err { display: none; font-size: var(--fs-13); font-weight: 600; color: var(--danger); }
.field.invalid input { border-color: var(--danger); }
.field.invalid .err { display: block; }

.chips { border: 0; padding: 0; margin: 0; min-width: 0; }
.chip-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.chips legend { padding: 0; margin-bottom: 4px; }
.chip-grid label {
  position: relative; display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px;
  text-align: center; font-size: var(--fs-14); font-weight: 600; line-height: 1.3; color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--field); cursor: pointer; user-select: none;
  transition: background-color 160ms var(--ease-out), border-color 160ms var(--ease-out), transform 140ms var(--ease-out);
}
.chip-grid input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip-grid label:active { transform: scale(0.97); }
.chip-grid label:has(input:checked) { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip-grid label:has(input:focus-visible) { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.chips > .err { margin-top: 4px; display: none; font-size: var(--fs-13); font-weight: 600; color: var(--danger); }
.chips.invalid .chip-grid label { border-color: var(--danger); }
.chips.invalid > .err { display: block; }
/* Lead form v2 (Nov 25): three ways to reach them, and the number we call from. */
.chip-grid-3 { grid-template-columns: repeat(3, 1fr); }
.chip-grid-3:has(> label[hidden]) { grid-template-columns: 1fr 1fr; }
.call-note { margin-top: 8px; font-size: var(--fs-13); line-height: 1.45; color: var(--ink-2); }
.call-note strong { color: var(--ink); }
@media (max-width: 420px) { .chip-grid-3 { grid-template-columns: 1fr; } .chip-grid-3:has(> label[hidden]) { grid-template-columns: 1fr 1fr; } }
@media (hover: hover) and (pointer: fine) { .chip-grid label:hover { border-color: var(--ink-3); } }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { font-size: var(--fs-13); line-height: 1.45; color: var(--ink-3); }
.trust { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: var(--fs-13); font-weight: 600; color: var(--ink-2); list-style: none; padding: 0; }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }

.notice { border: 1px solid var(--danger); border-radius: var(--r); padding: 12px 16px; font-size: var(--fs-14); color: var(--ink); background: rgba(248, 113, 113, .08); }
.notice a { font-weight: 700; }

/* Success state replaces the form */
.lead-done { display: grid; gap: 16px; }
.lead-done[hidden] { display: none; }
.lead-done:focus { outline: none; }  /* focused only so screen readers announce it; no ring around a message */
.lead-done h2 { font-size: var(--fs-30); }
.lead-done p { color: var(--ink-2); }
.lead-done .actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lead-card.is-done .lead-form, .lead-card.is-done > h2 { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .lead-done:not([hidden]) { animation: done-in 260ms var(--ease-out) both; }
  @keyframes done-in { from { opacity: 0; transform: translateY(6px); filter: blur(2px); } }
}

@media (max-width: 1023px) { .lead-card > h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }
@media (min-width: 640px) { .chip-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) {
  .lead-card { padding: 28px; gap: 16px; background: rgba(19, 19, 23, .94); border: 1px solid var(--line); border-radius: var(--r-lg); }
  .lead-form { gap: 12px; }
}

/* ---------- Sections below the hero ---------- */
.section { padding-block: clamp(64px, 9vw, 120px); border-top: 1px solid var(--line); }
.section h2 { font-family: var(--f-hero); font-weight: 800; font-size: var(--fs-d3); line-height: .98; letter-spacing: -.01em; text-transform: uppercase; text-wrap: balance; }
.section .lede { margin-top: 16px; color: var(--ink-2); font-size: var(--fs-18); max-width: 40ch; }
.split { display: grid; gap: 32px; }
@media (min-width: 1024px) { .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; } .split > :first-child { position: sticky; top: 32px; align-self: start; } }

/* Terms: an editorial list, not a card grid */
.terms { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.terms li { display: grid; gap: 4px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.terms dt, .terms .k { font-size: var(--fs-13); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.terms .v { font-size: var(--fs-18); font-weight: 600; color: var(--ink); }
.terms .v small { display: block; margin-top: 2px; font-size: var(--fs-16); font-weight: 400; color: var(--ink-2); }
@media (min-width: 640px) { .terms li { grid-template-columns: 180px 1fr; gap: 24px; align-items: baseline; } }

.placeholder-block { margin-top: 24px; padding: 16px; border: 1px dashed var(--line-strong); border-radius: var(--r); color: var(--ink-2); }

/* FAQ: native details, no script */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 16px 0; cursor: pointer; list-style: none; font-size: var(--fs-18); font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(var(--ink), var(--ink)) center / 100% 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 2px 100% no-repeat; transition: transform 200ms var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--ink-2); max-width: 60ch; }
@media (prefers-reduced-motion: no-preference) {
  .faq details[open] p { animation: faq-in 220ms var(--ease-out) both; }
  @keyframes faq-in { from { opacity: 0; transform: translateY(-4px); } }
}

/* Talk band */
.talk { display: grid; gap: 20px; align-items: center; }
.talk .actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 1024px) { .talk { grid-template-columns: 1fr auto; } }

/* ---------- Footer ---------- */
.foot { padding: 48px 0 calc(96px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); color: var(--ink-2); font-size: var(--fs-14); }
.foot .wrap { display: grid; gap: 20px; }
.foot strong { color: var(--ink); }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.foot .fine { font-size: var(--fs-13); color: var(--ink-3); }
@media (min-width: 1024px) { .foot { padding-bottom: 48px; } }
@media (hover: hover) and (pointer: fine) { .foot nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; } }

/* ---------- Sticky "Reserve a car" bar (phones, once the form is off screen) ---------- */
.dock {
  position: fixed; inset: auto 0 0; z-index: 20; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(9, 9, 11, .92); border-top: 1px solid var(--line); backdrop-filter: blur(8px);
  transform: translateY(110%); transition: transform 240ms var(--ease-out);
}
.dock.show { transform: none; }
.dock .btn { width: 100%; }
@media (min-width: 1024px) { .dock { display: none; } }

/* ---------- Hero entrance (once, on load). The one authored moment; sections below do not animate in. ---------- */
@media (prefers-reduced-motion: no-preference) {
  [data-enter] > * { animation: rise 420ms var(--ease-out) both; }
  [data-enter] > :nth-child(2) { animation-delay: 50ms; }
  [data-enter] > :nth-child(3) { animation-delay: 110ms; }
  [data-enter] > :nth-child(4) { animation-delay: 150ms; }
  @keyframes rise { from { opacity: 0; transform: translateY(10px); } }
}
/* Reduced motion: no movement, but colour and opacity feedback stay so state changes still read */
@media (prefers-reduced-motion: reduce) {
  .btn:active, .chip-grid label:active, .bar-call:active { transform: none; }
  .dock { transform: none; opacity: 0; visibility: hidden; transition: opacity 160ms var(--ease-out), visibility 0s 160ms; }
  .dock.show { opacity: 1; visibility: visible; transition: opacity 160ms var(--ease-out); }
  .faq summary::after { transition: none; }
  html { scroll-behavior: auto; }
}

/* "Other" chip opens a short text box under the chips */
.other-field { margin-top: 8px; }
.other-field[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .other-field:not([hidden]) { animation: rise 200ms var(--ease-out) both; }
}
.chip-grid label[hidden] { display: none; }

/* Headings wrap evenly, never one word alone on the last line (Dec 1) */
h1, h2, h3 { text-wrap: balance; }

/* Thank-you (Dec 1): a success mark, a recap, three next steps */
.done-mark { width: 40px; height: 40px; color: var(--ok); }
.done-recap { font-size: var(--fs-14); color: var(--ink); }
.done-steps { display: grid; gap: 8px; margin: 0; padding-left: 20px; color: var(--ink-2); font-size: var(--fs-14); line-height: 1.5; }
.done-steps li::marker { color: var(--ink-3); font-weight: 700; }
.done-fix { font-size: var(--fs-13); color: var(--ink-3); }
.done-fix a { color: var(--ink); }

/* Quick qualifier (Dec 5): Yes/No pairs, the "how did you hear" select, and the SMS consent box */
.chip-grid.chip-grid-2 { grid-template-columns: 1fr 1fr; }
@media (min-width: 640px) { .chip-grid.chip-grid-3 { grid-template-columns: repeat(3, 1fr); } .chip-grid.chip-grid-3:has(> label[hidden]) { grid-template-columns: 1fr 1fr; } }
.field select {
  width: 100%; height: 46px; padding: 0 40px 0 16px; font-size: var(--fs-16); color: var(--ink);
  background: var(--field); border: 1px solid var(--line-strong); border-radius: var(--r); appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position: calc(100% - 20px) 20px, calc(100% - 15px) 20px; background-size: 5px 5px; background-repeat: no-repeat;
}
.field select:focus { outline: none; border-color: var(--accent-ink); box-shadow: 0 0 0 3px rgba(124, 58, 237, .35); }
.check-row { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: var(--fs-14); line-height: 1.45; color: var(--ink-2); cursor: pointer; }
.check-row input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); cursor: pointer; }
@media (max-width: 520px) { .lead-form .row2.row2-wrap { grid-template-columns: 1fr; } }

/* Readability (Dec 2026, reservation flow Part F): form text 16px+, helper/consent/footer 14px+,
   tap targets 44px+. Same fonts, colors and spacing style. */
.field > label, .chips legend { font-size: var(--fs-16); }
.field input, .field select { height: 48px; }
.field select { background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; }
.chip-grid label { min-height: 48px; font-size: var(--fs-16); }
.field .err, .chips > .err, .call-note, .consent, .sms-note, .done-fix, .trust, .terms dt, .terms .k { font-size: var(--fs-14); }
.sms-note { color: var(--ink-2); line-height: 1.45; }
.sms-note[hidden] { display: none; }
.check-row { padding-block: 4px; }
.check-row input { width: 22px; height: 22px; }
.check-row a { color: var(--ink); }
.consent { color: var(--ink-2); }
.foot .fine { font-size: var(--fs-14); }
.foot p a { display: inline-block; padding-block: 12px; }
.turnstile:empty { display: none; }
/* Links inside sentences: a taller invisible hit area (inline padding doesn't move the text) */
.check-row a, .lede a, .done-fix a, .lead-done p a { padding-block: 15px; }
.field[hidden], .lead-form[hidden], .notice[hidden] { display: none; }
