/* Blackties Rentals — executive dark theme in the blackties.co.uk brand palette.
   Purple family + slate greys + Poppins/Plus Jakarta Sans, all lifted from the live
   site's stylesheet (primary #4A068F — the same purple as our invoices). */

:root {
  --ink: #0b0a12;
  --ink-2: #100e1a;
  --ink-3: #161225;
  --line: rgba(255, 255, 255, 0.09);
  --text: #eef0f6;
  --muted: #a3a8b8;          /* slate, from the site's #667085 family, lifted for dark bg */
  --accent: #8b5fbf;          /* brand mid-purple — accent text on dark */
  --accent-bright: #b78af0;   /* lifted #9f43fe for legibility on ink */
  --accent-deep: #4a068f;     /* brand primary — buttons, fills */
  --accent-hover: #6b46c1;
  --accent-soft: rgba(139, 95, 191, 0.14);
  --radius: 14px;
  --wrap: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }

/* Brand scrollbar — same purple scroller as blackties.co.uk, track darkened for this
   page's ink background. Firefox gets the thin two-colour equivalent. */
html { scrollbar-color: var(--accent-deep) var(--ink-2); }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--ink-2); }
::-webkit-scrollbar-thumb { background: var(--accent-deep); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #310063; }
body {
  background: var(--ink);
  color: var(--text);
  font-family: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, .brand, .price {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.01em;
}
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 0.5em; }
h3 { font-size: 1.15rem; }

.kicker {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1em;
}
.section-lede { color: var(--muted); max-width: 46rem; margin-bottom: 2.6rem; }

section { padding: 96px 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.9rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.22s ease;
  font-family: "Plus Jakarta Sans", sans-serif;
  white-space: nowrap;
}
.btn-sm { padding: 0.55rem 1.25rem; font-size: 0.85rem; }
.btn-gold { background: var(--accent-deep); color: #fff; }
.btn-gold:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.35); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-bright); }
.btn-line { border-color: var(--accent); color: var(--accent); background: transparent; }
.btn-line:hover { background: var(--accent); color: #fff; }

/* Header CTA — outline phone button (theme-btn1, squared 4px corners) beside the
   Sixt-style "Login | Register" text pair; both links open the same auth modal. */
.hbtn { border-radius: 4px; padding: 8px 12px; font-size: 14px; font-weight: 500; min-width: 164px; text-align: center; line-height: 22px; }
.hbtn-outline { background: transparent; border: 1px solid #fff; color: #fff; }
.hbtn-outline:hover { border-color: var(--accent-bright); color: var(--accent-bright); }
.auth-links {
  display: flex; align-items: center; gap: 8px;
  background: none; border: 0; padding: 8px 2px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 14px; font-weight: 500; line-height: 22px;
  color: #fff; text-decoration: none; cursor: pointer;
  transition: color 0.2s ease;
}
.auth-links:hover { color: var(--accent-bright); }
.auth-sep { color: rgba(255, 255, 255, 0.4); font-size: 13px; user-select: none; }

/* ---------- header ---------- */
.site-head {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  /* fully transparent at the top — the darkening lives on the hero image itself, far
     taller than the bar, so there is no box edge anywhere. Solid appears on scroll. */
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}
.site-head.scrolled { background: rgba(11, 10, 18, 0.96); backdrop-filter: blur(10px); border-bottom-color: var(--line); }
.head-row { display: flex; align-items: center; gap: 2.2rem; height: 74px; }

/* The header is fixed, so an in-page jump (#fleet, #benefits, the burger menu links)
   scrolls the heading to y=0 — underneath the bar. Hold every jump target clear of it.
   It matters most on a phone, where the menu is the only way to navigate. */
section[id], [id]:target { scroll-margin-top: 88px; }

.brand {
  font-size: 1.5rem; letter-spacing: 0.12em; color: #fff; font-weight: 700;
  text-decoration: none; white-space: nowrap;
}
.brand span {
  /* the brand's own vivid purple (#9F43FE from blackties.co.uk). No glow: at this size
     a text-shadow bleeds past the letterforms and reads as soft focus, not light. */
  color: #9f43fe;
}
.brand em {
  display: block; font-family: "Plus Jakarta Sans", sans-serif; font-style: normal;
  font-size: 0.55rem; letter-spacing: 0.52em; color: var(--muted); margin-top: -2px;
}
.brand .tm {
  font-style: normal; font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.72em; vertical-align: 0.55em; letter-spacing: 0;
  color: #fff; margin-left: 2px;
}

.main-nav { display: flex; gap: 1.9rem; margin: 0 auto; }   /* dead-centre between logo and buttons */
.main-nav a {
  color: var(--text); text-decoration: none; font-size: 0.92rem; font-weight: 500;
  opacity: 0.85; transition: opacity 0.2s, color 0.2s; white-space: nowrap;
}
.main-nav a:hover { opacity: 1; color: var(--accent-bright); }
/* signed-in-only items (Waitlist) — keep [hidden] winning inside the mobile drawer,
   where .main-nav.open's rules are more specific than the UA's [hidden] */
.main-nav a[hidden] { display: none; }
/* current page: the markup already carries .active + aria-current, it just had
   nothing to render it with */
.main-nav a.active {
  opacity: 1; color: var(--accent-bright); font-weight: 600;
  position: relative;
}
.main-nav a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -7px;
  height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent-deep), #9f43fe);
}
/* in the mobile drawer the items are stacked rows, so mark the edge instead */
.main-nav.open a.active::after { display: none; }
.main-nav.open a.active {
  box-shadow: inset 3px 0 0 var(--accent-bright);
  padding-left: 0.7rem; margin-left: -0.7rem;
}

.head-cta { display: flex; align-items: center; gap: 0.9rem; }

.user-chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.35rem 0.6rem 0.35rem 0.4rem; border-radius: 999px;
  background: var(--accent-soft); border: 1px solid rgba(139, 95, 191, 0.45);
  color: var(--accent-bright); font: 600 0.85rem "Plus Jakarta Sans", sans-serif;
  cursor: default; white-space: nowrap; min-width: 0;
}
/* Long first names must never shove the burger off a small screen. */
.user-chip #userName {
  max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.user-chip img { width: 24px; height: 24px; border-radius: 50%; }
.chip-initial {
  width: 24px; height: 24px; border-radius: 50%; background: var(--accent-deep);
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
}
.chip-x {
  color: var(--muted); cursor: pointer; font-size: 1rem;
  width: 20px; height: 20px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  line-height: 1; padding-bottom: 2px;   /* optical centre — the × glyph sits low in its em box */
}
.chip-x:hover { color: #fff; background: rgba(255, 255, 255, 0.12); }

.nav-burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-burger span {
  display: block; width: 22px; height: 2px; background: var(--text);
  margin: 5px 0; border-radius: 2px; transition: transform 0.25s, opacity 0.25s;
}

/* ---------- hero: full image + solid statement band (Sixt-style) ---------- */
.hero { padding: 0; }
.hero-media {
  width: 100%;
  aspect-ratio: 1672 / 941;
  /* leave ~300px of viewport for the statement band so the headline is above the fold
     on desktop and tablet; the crop bias keeps both cars fully in frame, giving up only
     a little floor reflection on short screens */
  max-height: calc(100svh - 200px);
  /* The WebP in the shorthand is the universal fallback; browsers that understand
     image-set (all current ones) take the AVIF instead, which is 36% smaller at the same
     resolution and no visible quality loss. A browser that does not understand image-set
     simply drops the override and keeps the WebP. Same picture either way. */
  background: url("../assets/hero-studio-duo.webp") center 48% / cover no-repeat;
  background-image: image-set(
    url("../assets/hero-studio-duo.avif") type("image/avif"),
    url("../assets/hero-studio-duo.webp") type("image/webp"));
  position: relative;
}
/* long soft darkening across the image's top: the nav floats over it with no boundary */
.hero-media::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 210px;
  background: linear-gradient(180deg, rgba(11, 10, 18, 0.92) 0%, rgba(11, 10, 18, 0.5) 40%, transparent 100%);
}
.hero-band {
  /* not a flat rectangle: the light blade's angle continues as a whisper of gradient,
     with a faint glow rising behind the words */
  background:
    radial-gradient(55% 130% at 50% 0%, rgba(159, 67, 254, 0.28), transparent 62%),
    linear-gradient(115deg, #3c0473 0%, var(--accent-deep) 45%, #5a13a4 100%);
  text-align: center;
  padding: 42px 0;
}
.hero-band h1 { margin-bottom: 0; }
.hero-band .h1-earn { color: #d9c7f5; }

/* one entrance moment on first load — arrival, not animation for its own sake */
@media (prefers-reduced-motion: no-preference) {
  .hero { overflow: hidden; }
  .hero-media { animation: hero-settle 1.5s cubic-bezier(0.22, 0.61, 0.36, 1) both; }
  .hero-band h1 { animation: fade-up 0.7s ease 0.2s both; }
}
@keyframes hero-settle { from { transform: scale(1.035); } to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero-band h1 {
  text-transform: uppercase;
  color: #fff;
  font-weight: 700;
  font-size: clamp(1.8rem, 3.9vw, 3.2rem);
  letter-spacing: 0.02em;
  line-height: 1.1;
}
/* the hero button is a phone-only affordance — see the mobile block below */
.hero-cta { display: none; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.band-btn-solid { background: #fff; color: var(--accent-deep); }
.band-btn-solid:hover { background: #efe9fb; transform: translateY(-1px); }
.band-btn-ghost { border-color: rgba(255, 255, 255, 0.75); color: #fff; }
.band-btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.1); }

/* ---------- strip ---------- */
.strip { background: var(--ink-2); border-block: 1px solid var(--line); padding: 64px 0; }
.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.4rem; }
.strip-item h3 { color: var(--accent-bright); font-size: 1rem; margin-bottom: 0.4rem; }
.strip-item p { color: var(--muted); font-size: 0.9rem; }

/* ---------- fleet ---------- */
.fleet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.car-card {
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform 0.25s ease, border-color 0.25s ease;
}
.car-card:hover { transform: translateY(-4px); border-color: rgba(139, 95, 191, 0.5); }
.car-visual {
  position: relative; height: 190px;
  background: radial-gradient(120% 130% at 30% 20%, #232330 0%, #14141c 55%, #0d0d13 100%);
}
.car-visual::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 55%;
  background: linear-gradient(transparent, rgba(139, 95, 191, 0.07));
}
.car-i7 { background-image: radial-gradient(90% 120% at 70% 30%, #2a2f45 0%, #14141c 60%, #0d0d13 100%); }
.car-7series { background-image: radial-gradient(90% 120% at 30% 30%, #2e2a3a 0%, #14141c 60%, #0d0d13 100%); }
.car-merc { background-image: radial-gradient(90% 120% at 50% 20%, #33302c 0%, #14141c 60%, #0d0d13 100%); }
.badge {
  position: absolute; top: 14px; left: 14px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em;
  padding: 0.3rem 0.75rem; border-radius: 999px;
}
.badge-live { background: rgba(96, 190, 130, 0.15); color: #7fd6a4; border: 1px solid rgba(96, 190, 130, 0.4); }
.badge-wait { background: var(--accent-soft); color: var(--accent-bright); border: 1px solid rgba(139, 95, 191, 0.45); }
.car-body { padding: 1.4rem 1.5rem 1.5rem; }
.car-spec { color: var(--muted); font-size: 0.87rem; margin: 0.35rem 0 1.25rem; }
.car-foot { display: flex; align-items: center; justify-content: space-between; }
.price { font-size: 1.35rem; color: var(--accent-bright); }
.price small { font-family: "Plus Jakarta Sans", sans-serif; font-size: 0.75rem; color: var(--muted); }

/* ---------- signed-in fleet state ---------- */
.fleet-more { margin-top: 2.2rem; text-align: center; }
.fleet-more a { color: var(--accent-bright); font-weight: 600; text-decoration: none; font-size: 0.95rem; }
.fleet-more a:hover { text-decoration: underline; }
.fleet-auth { margin: -1.2rem 0 2.2rem; display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; }
.fleet-auth-hint { color: var(--muted); font-size: 0.9rem; }

.fleet-signed {
  margin: -1.4rem 0 2rem; padding: 0.65rem 1.1rem; display: inline-block;
  background: var(--accent-soft); border: 1px solid rgba(139, 95, 191, 0.45);
  border-radius: 999px; font-size: 0.9rem; color: var(--accent-bright);
}
.js-car-btn.on {
  border-color: rgba(96, 190, 130, 0.55); color: #7fd6a4; background: rgba(96, 190, 130, 0.1);
  pointer-events: none;
}

/* ---------- waitlist band ---------- */
.band {
  background:
    radial-gradient(80% 140% at 85% 10%, rgba(139, 95, 191, 0.10), transparent 60%),
    var(--ink-3);
  border-block: 1px solid var(--line);
}
.band-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 4rem; align-items: center; }
.band-copy p:not(.kicker) { color: var(--muted); max-width: 32rem; }
.band-form { display: flex; flex-direction: column; gap: 0.9rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.band-form input, .band-form select {
  width: 100%; padding: 0.85rem 1.1rem;
  background: rgba(255, 255, 255, 0.05); color: var(--text);
  border: 1px solid var(--line); border-radius: 10px;
  font-family: "Plus Jakarta Sans", sans-serif; font-size: 0.95rem;
}
.band-form input::placeholder { color: #7a7f90; }
.band-form input:focus, .band-form select:focus {
  outline: none; border-color: var(--accent);
}
.band-form select { appearance: none; }
.form-note { font-size: 0.8rem; color: var(--muted); }
.form-note.ok { color: #7fd6a4; }

/* ---------- how ---------- */
.steps {
  list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
  counter-reset: step; margin-top: 2.4rem;
}
.steps li { border-top: 1px solid var(--line); padding-top: 1.4rem; position: relative; }
.steps li span {
  font-family: "Poppins", sans-serif; font-size: 0.95rem; color: var(--accent);
  letter-spacing: 0.15em;
}
.steps h3 { margin: 0.5rem 0 0.45rem; }
.steps p { color: var(--muted); font-size: 0.9rem; }

/* ---------- why ---------- */
.why { background: var(--ink-2); border-block: 1px solid var(--line); }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; margin-top: 2.4rem; }
.why-card {
  background: var(--ink); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.9rem 1.8rem;
}
.why-card h3 { color: var(--accent-bright); margin-bottom: 0.6rem; }
.why-card p { color: var(--muted); font-size: 0.93rem; }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); padding: 70px 0 0; background: var(--ink-2); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 48px; }
.foot-brand .brand { font-size: 1.1rem; }
.foot-addr { color: var(--muted); font-size: 0.88rem; margin-top: 1rem; }
.foot-vat { color: var(--muted); font-size: 0.88rem; margin-top: 0.8rem; }
.foot-col h4 {
  font-family: "Plus Jakarta Sans", sans-serif; font-size: 0.78rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 1rem;
}
.foot-col a { display: block; color: var(--text); text-decoration: none; font-size: 0.92rem; padding: 0.28rem 0; opacity: 0.85; }
.foot-col a:hover { color: var(--accent-bright); opacity: 1; }
.foot-base { border-top: 1px solid var(--line); padding: 1.4rem 24px; }
.foot-base p { color: var(--muted); font-size: 0.8rem; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1200px) {
  .main-nav { gap: 1.4rem; }
  .head-row { gap: 1.6rem; }
  .hbtn { min-width: 140px; }
}
@media (max-width: 1020px) {
  .head-cta .hbtn-outline { display: none; }   /* phone yields; Login | Register stays — that's the capture path */
}
@media (max-width: 980px) {
  .strip-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .fleet-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .band-inner { grid-template-columns: 1fr; gap: 2.4rem; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 940px) {
  .main-nav { display: none; }
  .nav-burger { display: block; }
  .head-cta { margin-left: auto; }
  .main-nav.open {
    display: flex; position: fixed; inset: 74px 0 auto 0;
    flex-direction: column; gap: 0;
    background: rgba(8, 8, 12, 0.98); border-bottom: 1px solid var(--line);
    padding: 0.6rem 24px 1.2rem;
  }
  .main-nav.open a { padding: 0.8rem 0; border-bottom: 1px solid var(--line); opacity: 1; }
  .main-nav.open a:last-child { border-bottom: 0; }
}
@media (max-width: 760px) {
  section { padding: 68px 0; }
  .hero { padding-top: 74px; }
  .hero-media::before { display: none; }   /* phone: header sits on solid ink above the image */
  .head-row { gap: 1rem; }

  /* Same shape as the desktop hero: the image takes the screen and the statement band
     sits on the bottom edge of the fold. Desktop does that by capping the image at
     100svh - 200px; a phone's band is a different height (the headline wraps to two
     lines), so let flex measure it instead of guessing — the band takes what it needs
     and the image takes the rest, exactly filling one screen. */
  .hero {
    display: flex;
    flex-direction: column;
    min-height: 100svh;   /* padding-top: 74px above is inside this — box-sizing: border-box */
  }
  /* Framing the pair on a portrait phone.
     `cover` was the obvious choice and the wrong one: it scales the 1672x941 image by
     HEIGHT, so the whole frame gets filled but only ~34% of the width survives — half
     a car each — and the top 29.6% of the source, which is empty studio wall, is shown
     in full. All that height spent on nothing, and the cars cropped to pay for it.
     Instead: scale by WIDTH, sit the photo on the floor of the frame, and continue the
     backdrop upward in the image's own top-edge colour. That black is measured, not
     guessed — the source's top rows are a flat #040304 across the full width, so the
     join is invisible and the extra height costs no crop. 195% shows ~51% of the width,
     which is both front ends whole rather than two half cars.
     48.7%, not 50%: the gap between the vehicles sits left of the image's geometric
     centre, and this is the position that leaves each car equally visible (49.4% vs
     49.3%). Sizes and extents were measured off the asset, not eyeballed. */
  .hero-media {
    aspect-ratio: auto;
    flex: 1 1 auto;
    height: auto;
    min-height: 300px;    /* a floor for short screens; the band may then sit just below the fold */
    max-height: none;
    background-color: #040304;
    background-position: 48.7% bottom;
    background-size: 195% auto;
  }
  .hero-band { flex: 0 0 auto; }
  .hero-band { padding: 26px 0 30px; }
  /* the slogan is the whole point of the band — let it fill the width on a phone */
  .hero-band h1 { font-size: clamp(1.75rem, 8.4vw, 2.5rem); }
  .hero-cta {
    display: inline-block;
    margin-top: 1.3rem;
    padding: 0.95rem 2rem;
    font-size: 1rem;
  }
  .field-row { grid-template-columns: 1fr; }
  .strip-grid, .steps, .fleet-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
}
@media (max-width: 430px) {
  /* The fixed header must fit a 320px phone: brand + Login | Register + burger. */
  .site-head .wrap { padding: 0 16px; }
  .head-row { gap: 0.7rem; }
  .brand { font-size: 1.02rem; }
  .auth-links { font-size: 12.5px; gap: 6px; padding: 8px 0; }
  .auth-sep { font-size: 12px; }
  .user-chip #userName { max-width: 56px; }
  /* "Register" ended 11px from the burger — close enough for a thumb aiming at one to
     catch the other. There is plenty of slack left of the brand, so buy the clearance
     here rather than shrinking anything. */
  .nav-burger { margin-left: 0.4rem; }
}
@media (max-width: 360px) {
  /* Smallest phones: avatar + sign-out only — the name text is the one thing
     that can still collide with the burger. */
  .user-chip #userName { display: none; }
}

/* ---------- auth modal (Claude-style: warm light card, Google on top, OR,
   quiet bordered inputs, full-width black continue) ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(4, 3, 10, 0.72);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.auth-modal {
  position: relative;
  width: 100%; max-width: 400px;
  background: #faf9f5;
  color: #1a1915;
  border-radius: 26px;
  padding: 46px 36px 26px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  font-family: "Plus Jakarta Sans", sans-serif;
}
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.modal-x {
  position: absolute; top: 14px; right: 14px;
  background: none; border: 0; color: #8a877c;
  font-size: 1.5rem; line-height: 1; cursor: pointer;
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; padding-bottom: 3px;
}
.modal-x:hover { color: #1a1915; background: rgba(0, 0, 0, 0.06); }
.auth-modal h3 { font-size: 1.3rem; color: #1a1915; }
/* the popup's own title, above the Google button */
.auth-heading {
  font-family: "Poppins", sans-serif; font-weight: 600;
  font-size: 1.45rem; text-align: center; margin: 0 0 1.4rem; color: #1a1915;
}
.auth-sub { color: #6f6c63; font-size: 0.92rem; margin: 0.5rem 0 1rem; }
/* Styled "Continue with Google" face; the real GIS button sits invisibly on top
   (opacity ~0, over-scaled a touch) so every click lands on Google's own control. */
.gbtn { position: relative; overflow: hidden; border-radius: 12px; }
.gbtn-face {
  display: flex; align-items: center; justify-content: center; gap: 13px;
  height: 60px;
  background: #fff; border: 1px solid #d8d5cb; border-radius: 12px;
  font-size: 1.06rem; font-weight: 600; color: #1a1915;
  box-shadow: 0 1px 3px rgba(26, 25, 21, 0.07);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.gbtn:hover .gbtn-face {
  border-color: #c2beb1;
  box-shadow: 0 4px 14px rgba(26, 25, 21, 0.13);
}
.gbtn .auth-gsi {
  position: absolute; inset: 0; opacity: 0.001;
  display: flex; align-items: center; justify-content: center;
  transform: scale(1.1, 1.6);
}
/* The invisible GIS iframe is still in the tab order — light the face when it holds focus. */
.gbtn:focus-within .gbtn-face { outline: 2px solid var(--accent); outline-offset: 2px; }
.auth-divider {
  text-align: center; color: #6f6c63;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em;
  margin: 1.1rem 0;
}
.auth-modal input {
  width: 100%; padding: 15px 16px; margin-bottom: 0.8rem;
  background: #fff; color: #1a1915;
  border: 1px solid #e3e1d9; border-radius: 12px;
  font-family: "Plus Jakarta Sans", sans-serif; font-size: 1rem;
}
.auth-modal input::placeholder { color: #75726a; }
.auth-modal input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(139, 95, 191, 0.25);
}
.auth-primary {
  display: block; width: 100%; margin-top: 0.35rem;
  padding: 15px 16px;
  background: #100f0d; color: #fff;
  border: 0; border-radius: 13px; cursor: pointer;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1rem; font-weight: 600;
  transition: background 0.2s ease;
}
.auth-primary:hover { background: #2c2a26; }
.auth-err { color: #b3261e; font-size: 0.82rem; margin: 0 0 0.6rem; }
/* same slot, but informational rather than a failure (e.g. "opening Google…") */
.auth-err.auth-note { color: #4a068f; }
.auth-alt {
  display: block; margin: 0.9rem auto 0;
  background: none; border: 0; padding: 0;
  color: #6f6c63; font-size: 0.82rem; text-decoration: underline; cursor: pointer;
  font-family: "Plus Jakarta Sans", sans-serif;
}
.auth-alt:hover { color: #1a1915; }
.auth-legal { color: #6f6c63; font-size: 0.76rem; text-align: center; margin-top: 1.2rem; }

/* ---------- Exclusive Driver Benefits (image left, glowing cards right) ---------- */
.bene { position: relative; overflow: hidden; }
.bene::before {
  content: ""; position: absolute; right: -10%; top: 30%;
  width: 70%; height: 90%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(107, 70, 193, 0.5), rgba(74, 6, 143, 0.22) 55%, transparent 75%);
  pointer-events: none;
}
.bene-grid {
  position: relative;
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 3.2rem; align-items: stretch;
}
.bene-media img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 18px; display: block;
}
.bene-body { display: flex; flex-direction: column; justify-content: center; }
.bene-body h2 { font-size: clamp(2rem, 3.8vw, 3rem); }
.bene-rule { height: 1px; background: var(--line); margin: 1.2rem 0 2rem; }
.bene-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.bene-card {
  background: rgba(9, 7, 15, 0.78);
  border: 1px solid rgba(139, 95, 191, 0.28);
  border-radius: 16px;
  padding: 1.9rem 1.6rem;
  text-align: center;
}
.bene-card h3 { font-size: 1.08rem; margin-bottom: 0.9rem; }
.bene-card p { color: var(--muted); font-size: 0.9rem; }
@media (max-width: 980px) {
  .bene-grid { grid-template-columns: 1fr; gap: 2rem; }
  .bene-media img { max-height: 480px; }
}
@media (max-width: 760px) {
  .bene-cards { grid-template-columns: 1fr; }
  .bene-media img { max-height: 380px; }
}

/* ---------- legal pages (/privacy, /terms) ----------
   A narrow measure and a small heading scale. The global h2 is clamp(1.8rem, 3.4vw, 2.6rem),
   which is right for a marketing section and absurd for "8. How long we keep it", so the
   numbered sections are scaled down here rather than the markup avoiding h2. */
.legal-wrap { padding: 104px 0 88px; }
.legal { max-width: 46rem; }
.legal h1 { font-size: clamp(1.9rem, 3.6vw, 2.5rem); margin-bottom: 0.5rem; }
.legal-updated {
  color: var(--muted); font-size: 0.82rem; letter-spacing: 0.04em;
  text-transform: uppercase; margin-bottom: 1.6rem;
}
.legal-lede {
  color: var(--text); font-size: 1.02rem;
  padding: 1rem 1.15rem; margin-bottom: 2.4rem;
  background: var(--ink-2); border: 1px solid var(--line);
  border-left: 2px solid var(--accent); border-radius: var(--radius);
}
.legal h2 {
  font-size: 1.12rem; font-weight: 600; line-height: 1.35;
  margin: 2.5rem 0 0.7rem; padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.legal h2:first-of-type { margin-top: 0; }
.legal p, .legal li { color: var(--muted); font-size: 0.97rem; line-height: 1.75; }
.legal p { margin-bottom: 1rem; }
.legal p strong, .legal li strong { color: var(--text); font-weight: 600; }
.legal ul { margin: 0 0 1.1rem 1.15rem; }
.legal li { margin-bottom: 0.6rem; padding-left: 0.2rem; }
.legal a { color: var(--accent-bright); text-decoration: underline; text-underline-offset: 3px; }
.legal a:hover { color: var(--text); }
@media (max-width: 760px) {
  .legal-wrap { padding: 84px 0 68px; }
  .legal p, .legal li { font-size: 0.95rem; }
  .legal ul { margin-left: 1rem; }
}

/* ---------- Resources dropdown in the header nav ----------
   The parent is a REAL link to /resources, not a dead toggle, so the menu is never a
   trap: keyboard and touch users can just open the hub page. The panel is a hover and
   focus-within enhancement on top of that, which is why it needs no JavaScript. */
.nav-group { position: relative; display: flex; align-items: center; }
.nav-caret {
  display: inline-block; width: 0; height: 0; margin-left: 0.34rem;
  border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 5px solid currentColor; opacity: 0.75;
  transition: transform 0.18s ease;
}
.nav-group:hover .nav-caret,
.nav-group:focus-within .nav-caret { transform: rotate(180deg); }
.nav-drop {
  position: absolute; top: 100%; left: 50%; transform: translate(-50%, 6px);
  min-width: 190px; padding: 0.45rem;
  background: rgba(12, 11, 18, 0.98);
  border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  display: flex; flex-direction: column; gap: 0.1rem;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
  z-index: 60;
}
/* the gap between trigger and panel would drop the hover, so bridge it */
.nav-group::after {
  content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 10px;
}
.nav-group:hover .nav-drop,
.nav-group:focus-within .nav-drop {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translate(-50%, 2px);
}
.main-nav .nav-drop a {
  padding: 0.5rem 0.7rem; border-radius: 8px; opacity: 0.9; font-size: 0.9rem;
}
.main-nav .nav-drop a:hover { background: var(--accent-soft); opacity: 1; }

@media (max-width: 940px) {
  /* In the drawer there is nothing to hover, so the group becomes a labelled block
     with its children stacked underneath and indented. */
  .nav-group { display: block; }
  .nav-caret { display: none; }
  .nav-drop {
    position: static; transform: none; opacity: 1; visibility: visible;
    pointer-events: auto; background: none; border: 0; box-shadow: none;
    min-width: 0; padding: 0; gap: 0;
  }
  .main-nav.open .nav-group > a { padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
  .main-nav.open .nav-drop a {
    padding: 0.65rem 0 0.65rem 1rem; border-bottom: 1px solid var(--line);
    font-size: 0.88rem; opacity: 0.8;
  }
}

/* ---------- Resources hub + FAQs ----------
   Both sit on the .legal text column, which is already the site's readable measure.
   These only add the grouping furniture the two pages need. */
.hub { max-width: 58rem; }
.hub-section { margin: 2.6rem 0 0; }
.hub-section h2 {
  font-family: "Poppins", sans-serif; font-size: 1.15rem; color: var(--text);
  margin: 0 0 0.35rem;
}
.hub-blurb { color: var(--muted); font-size: 0.93rem; margin: 0 0 1.1rem; }

/* Each section carries its own accent so the page reads as groups at a glance instead of
   one long grey column. Brand purple leads; the rest are picked to stay legible on ink.
   Assigned by position, so no HTML changes are needed and a new section inherits one. */
.hub-section { --hue: var(--accent-bright); }
.hub-section:nth-of-type(2) { --hue: #5eead4; }
.hub-section:nth-of-type(3) { --hue: #fbbf24; }
.hub-section:nth-of-type(4) { --hue: #fb7185; }
.hub-section:nth-of-type(5) { --hue: #7dd3fc; }
.hub-section:nth-of-type(6) { --hue: #86efac; }

/* A short coloured rule above each heading, doing the work an icon would without
   shipping six icons. */
.hub-section h2::before {
  content: ""; display: block; width: 2.2rem; height: 3px; border-radius: 3px;
  background: var(--hue); margin-bottom: 0.7rem;
}

.hub-grid { display: grid; gap: 0.8rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.hub-card {
  position: relative; display: block; padding: 1rem 1.1rem;
  border: 1px solid var(--line); border-radius: 12px;
  background: linear-gradient(160deg, var(--ink-3), var(--ink-2) 60%);
  /* .legal a underlines every link in this column; a whole card is not a text link */
  text-decoration: none !important;
  overflow: hidden;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
/* The section's colour arrives as a left edge that grows on hover, so colour is a
   response to the pointer rather than six permanent stripes competing for attention. */
.hub-card::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 3px;
  background: var(--hue); opacity: 0.5;
  transition: width 0.18s ease, opacity 0.18s ease;
}
.hub-card:hover {
  border-color: color-mix(in srgb, var(--hue) 55%, transparent);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.9);
}
.hub-card:hover::before { width: 5px; opacity: 1; }
.hub-card:focus-visible { outline: 2px solid var(--hue); outline-offset: 2px; }
.hub-card strong {
  display: block; color: var(--text); font-weight: 600; font-size: 0.96rem;
  margin-bottom: 0.25rem; text-decoration: none;
  transition: color 0.18s ease;
}
.hub-card:hover strong { color: var(--hue); }
.hub-card span { display: block; color: var(--muted); font-size: 0.86rem; line-height: 1.55; }
.hub-card.is-external strong::after { content: " ↗"; color: var(--hue); font-weight: 400; }

/* Official sources: chips rather than a bare list, so the block stops reading as an
   afterthought at the bottom of the page. */
.hub-links {
  list-style: none; margin: 0; padding: 0; columns: initial;
  display: flex; flex-wrap: wrap; gap: 0.5rem;
}
.hub-links li { margin: 0; }
.hub-links a {
  display: inline-block; padding: 0.42rem 0.8rem;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--ink-2); color: var(--text);
  font-size: 0.85rem; text-decoration: none !important;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}
.hub-links a:hover {
  border-color: color-mix(in srgb, var(--hue) 60%, transparent);
  color: var(--hue);
  background: color-mix(in srgb, var(--hue) 8%, var(--ink-2));
}

@media (prefers-reduced-motion: reduce) {
  .hub-card, .hub-card::before, .hub-card strong, .hub-links a { transition: none; }
  .hub-card:hover { transform: none; }
}

/* FAQ page */
.faq-cat { margin: 2.4rem 0 0; }
.faq-cat > h2 {
  font-family: "Poppins", sans-serif; font-size: 1.2rem; color: var(--text);
  border-bottom: 1px solid var(--line); padding-bottom: 0.5rem; margin: 0 0 0.3rem;
}
.faq-cat-intro { color: var(--muted); font-size: 0.9rem; margin: 0 0 1.2rem; }
/* <details> so a phone shows the questions, not a wall of prose. The question stays a
   real heading inside the summary, so the page still reads as Q&A to a crawler. */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item > summary {
  cursor: pointer; list-style: none; padding: 0.95rem 2rem 0.95rem 0; position: relative;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary h3 {
  font-size: 0.99rem; font-weight: 600; color: var(--text); margin: 0; line-height: 1.5;
}
.faq-item > summary::after {
  content: "+"; position: absolute; right: 0.2rem; top: 50%; transform: translateY(-50%);
  color: var(--accent-bright); font-size: 1.25rem; line-height: 1;
}
.faq-item[open] > summary::after { content: "\2013"; }
.faq-item > summary:hover h3 { color: var(--accent-bright); }
/* Belt and braces. Browsers collapse a closed <details> themselves, but that is UA
   behaviour we do not control, and a FAQ page whose answers all render open is a wall of
   text. Stating it explicitly costs one rule and makes the closed state deterministic. */
.faq-item:not([open]) > .faq-answer { display: none; }
.faq-answer { padding: 0 0 1.1rem; }
.faq-answer p { margin-bottom: 0.8rem; }
.faq-answer p:last-child { margin-bottom: 0; }
