/* ellaride rebrand — one stylesheet, no framework.
   Brand kept from ellaride.gr: blue #0096F7, navy #0A1628 (logo), DM Sans,
   the "ella|ride" wordmark and the pin favicon. */

:root {
  /* Surfaces */
  --page: #F7F8F6;
  --surface: #FFFFFF;
  --tint: #EEF5F9;
  --border: #DDE3E8;
  --border-strong: #C5CED6;

  /* Text */
  --text: #0A1628;
  --muted: #536274;

  /* Brand blue. #0096F7 is the brand colour (logo, icons, focus).
     White text on it is only 3.1:1, so filled buttons use a deeper shade
     of the same blue to reach WCAG AA (4.7:1). */
  --blue: #0096F7;
  --blue-action: #0077C8;
  --blue-action-hover: #0065AA;
  --blue-text: #006DB8;
  --blue-soft: #DCEEF8;
  --trust-green: #D8E5DE;
  --error: #B42318;

  --font: 'DM Sans', 'Noto Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius-card: 16px;
  --radius-input: 10px;
  --shadow-soft: 0 1px 2px rgba(10, 22, 40, 0.04), 0 8px 24px rgba(10, 22, 40, 0.06);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur: 180ms;

  --container: 1200px;
  --gutter: 24px;
  --header-h: 68px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

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

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.015em; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
a { color: var(--blue-text); }
button { font: inherit; color: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.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;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--text); color: #fff; padding: 10px 16px; border-radius: 8px;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.lead { font-size: 18px; color: var(--muted); max-width: 34em; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border: 1px solid transparent; border-radius: 12px;
  font-size: 16px; font-weight: 600; line-height: 1;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.btn-primary { background: var(--blue-action); color: #fff; }
.btn-primary:hover { background: var(--blue-action-hover); }
.btn-primary:disabled { opacity: .7; cursor: progress; }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--text); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; border-radius: 10px; }
.btn-block { width: 100%; }

.text-link {
  display: inline-flex; gap: 6px; align-items: center;
  color: var(--blue-text); font-weight: 600; text-decoration: none;
}
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }

.link-btn {
  background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--blue-text); font-weight: 500; text-decoration: underline;
  text-underline-offset: 3px; text-decoration-color: rgba(0, 109, 184, .35);
}
.link-btn:hover { text-decoration-color: currentColor; }

.line-icon {
  width: 26px; height: 26px; flex: none;
  fill: none; stroke: var(--blue); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Wordmark (same as live site) ---------- */
.wordmark {
  display: inline-flex; align-items: baseline;
  font-family: 'DM Sans', var(--font);
  font-size: 26px; letter-spacing: -0.02em; line-height: 1;
  text-decoration: none;
}
.wm-ella { font-weight: 800; color: var(--blue); }
.wm-ride { font-weight: 400; color: var(--text); }

/* Wordmark comes alive on hover (js/main.js splits the letters and adds the route):
   the letters hop in a wave while a little trip plays over the logo, point A to
   point B: a dashed planned route appears, the blue route draws itself with a car
   at its tip, and a map pin drops onto B on arrival. */
.wordmark { position: relative; }
.wm-ch { display: inline-block; }
.wm-magic {
  position: absolute; left: -14%; top: -95%; width: 128%; height: auto;
  overflow: visible; pointer-events: none;
}
.wm-plan { fill: none; stroke: var(--blue); stroke-width: 1.4; stroke-linecap: round; stroke-dasharray: 2.5 3.5; opacity: 0; }
.wm-route { fill: none; stroke: var(--blue); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; opacity: 0; }
.wm-a { fill: var(--surface); stroke: var(--text); stroke-width: 1.8; opacity: 0; transform-box: fill-box; transform-origin: center; }
.wm-car { fill: var(--blue); opacity: 0; filter: drop-shadow(0 0 2.5px rgba(0, 150, 247, 0.9)); }
.wm-b { opacity: 0; transform-box: fill-box; transform-origin: 50% 100%; }
.wm-b path { fill: var(--text); }
.wm-b circle { fill: #fff; }
@media (prefers-reduced-motion: no-preference) {
  .wordmark.is-alive .wm-ch { animation: wm-hop 640ms var(--ease) both; animation-delay: calc(var(--i) * 45ms); }
  .wordmark.is-alive .wm-plan { animation: wm-plan 1500ms var(--ease) forwards; }
  .wordmark.is-alive .wm-a { animation: wm-a 1500ms var(--ease) forwards; }
  .wordmark.is-alive .wm-route { animation: wm-route 1500ms linear forwards; }
  .wordmark.is-alive .wm-car { animation: wm-car 1500ms linear forwards; }
  .wordmark.is-alive .wm-b { animation: wm-b 1500ms var(--ease) forwards; }
  @keyframes wm-hop {
    0% { transform: none; }
    30% { transform: translateY(-7px) rotate(-6deg); }
    55% { transform: translateY(1px) scaleY(0.9); }
    75% { transform: translateY(-2px); }
    100% { transform: none; }
  }
  /* timeline: 0-8% A pops + plan appears, 8-58% route draws with the car,
     55-70% pin drops on B, 80-100% everything fades */
  @keyframes wm-plan { 0% { opacity: 0; } 8%, 78% { opacity: 0.35; } 100% { opacity: 0; } }
  @keyframes wm-a { 0% { opacity: 0; transform: scale(0); } 8% { opacity: 1; transform: scale(1.25); } 14%, 80% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }
  @keyframes wm-route { 0%, 8% { opacity: 1; stroke-dashoffset: 1; } 58%, 80% { opacity: 1; stroke-dashoffset: 0; } 100% { opacity: 0; stroke-dashoffset: 0; } }
  @keyframes wm-car { 0%, 7% { opacity: 0; } 10%, 56% { opacity: 1; } 62%, 100% { opacity: 0; } }
  @keyframes wm-b {
    0%, 55% { opacity: 0; transform: translateY(-9px) scale(0.6); }
    64% { opacity: 1; transform: translateY(1px) scale(1.08, 0.92); }
    72%, 82% { opacity: 1; transform: none; }
    100% { opacity: 0; transform: none; }
  }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 248, 246, 0.98);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; gap: 28px;
}
.nav-desktop { display: none; margin-right: auto; }
.nav-desktop ul { display: flex; gap: 4px; }
.nav-desktop a {
  display: block; padding: 8px 12px; border-radius: 8px;
  color: var(--text); font-size: 15px; font-weight: 500; text-decoration: none;
  transition: background-color var(--dur) var(--ease);
}
.nav-desktop a:hover { background: rgba(10, 22, 40, 0.05); }

/* Sliding highlight: follows the hovered link, rests on the section in view. */
.nav-desktop { position: relative; }
.nav-desktop ul { position: relative; z-index: 1; }
.nav-indicator {
  position: absolute; left: 0; top: 50%;
  height: 38px; width: 0; margin-top: -19px;
  border-radius: 10px; background: var(--blue-soft);
  opacity: 0; pointer-events: none;
  transition: transform 320ms var(--ease), width 320ms var(--ease), opacity 200ms var(--ease), background-color 200ms var(--ease);
}
.nav-desktop.has-indicator a:hover { background: none; }
.nav-desktop a[aria-current="true"] { color: var(--blue-text); }
.nav-desktop a { transition: color 200ms var(--ease); }
.nav-indicator.is-hover { background: rgba(10, 22, 40, 0.06); }

.header-actions { display: flex; align-items: center; gap: 16px; margin-left: auto; }
@media (min-width: 1024px) { .nav-desktop + .header-actions { margin-left: 0; } }

.lang-switch { display: inline-flex; align-items: center; gap: 2px; color: var(--border-strong); font-size: 14px; }
.lang-switch button {
  background: none; border: 0; cursor: pointer;
  padding: 6px 6px; border-radius: 6px;
  font-size: 14px; font-weight: 600; color: var(--muted);
}
.lang-switch button[aria-pressed="true"] { color: var(--text); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; text-decoration-color: var(--blue); }
.lang-switch button:hover { color: var(--text); }

.link-login { color: var(--text); font-size: 15px; font-weight: 600; text-decoration: none; }
.link-login:hover { text-decoration: underline; }

.menu-btn, .icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 10px;
  background: none; border: 1px solid var(--border); cursor: pointer; color: var(--text);
}

.header-actions .lang-switch,
.header-actions .link-login,
.header-actions .btn { display: none; }

@media (min-width: 640px) {
  .header-actions .btn { display: inline-flex; }
}
@media (min-width: 1024px) {
  .nav-desktop { display: block; }
  .header-actions .lang-switch { display: inline-flex; }
  .header-actions .link-login:not([hidden]) { display: inline; }
  .menu-btn { display: none; }
}

/* ---------- Mobile drawer ---------- */
.drawer {
  margin: 0 0 0 auto; height: 100%; max-height: 100%;
  width: min(340px, 88vw); padding: 0;
  border: 0; border-left: 1px solid var(--border);
  background: var(--surface); color: var(--text);
}
.drawer[open] { display: flex; flex-direction: column; }
.drawer::backdrop { background: rgba(10, 22, 40, 0.35); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; height: var(--header-h); border-bottom: 1px solid var(--border); }
.drawer-links { padding: 8px 20px; }
.drawer-links li { border-bottom: 1px solid var(--border); }
.drawer-links a {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between;
  margin: 4px -12px; padding: 12px; border-radius: 12px;
  color: var(--text); font-size: 17px; font-weight: 500; text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: color 250ms var(--ease);
}
/* blue fill that sweeps in from the left on hover / focus / press */
.drawer-links a::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: linear-gradient(100deg, var(--blue-action), var(--blue));
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform 380ms var(--ease);
}
/* arrow that slides in */
.drawer-links a::after {
  content: ""; flex: none; width: 9px; height: 9px; margin-right: 6px;
  border-top: 2px solid currentColor; border-right: 2px solid currentColor;
  opacity: 0; transform: translateX(-12px) rotate(45deg);
  transition: transform 380ms var(--ease), opacity 200ms var(--ease);
}
.drawer-links a:hover, .drawer-links a:focus-visible, .drawer-links a:active { color: #fff; }
.drawer-links a:hover::before, .drawer-links a:focus-visible::before, .drawer-links a:active::before { transform: scaleX(1); }
.drawer-links a:hover::after, .drawer-links a:focus-visible::after, .drawer-links a:active::after { opacity: 1; transform: rotate(45deg); }
.drawer-links a:focus-visible { outline-offset: 2px; }
/* tap ripple (added by js/main.js) */
.drawer-links .ripple {
  position: absolute; z-index: -1; border-radius: 50%; pointer-events: none;
  background: rgba(255, 255, 255, 0.45); transform: scale(0);
  animation: drawer-ripple 650ms ease-out forwards;
}
@keyframes drawer-ripple { to { transform: scale(1); opacity: 0; } }

/* soft blue glow that follows the finger / pointer around the menu */
@property --mx { syntax: '<percentage>'; inherits: false; initial-value: 85%; }
@property --my { syntax: '<percentage>'; inherits: false; initial-value: 88%; }
.drawer {
  background: radial-gradient(300px circle at var(--mx) var(--my), rgba(0, 150, 247, 0.16), transparent 70%), var(--surface);
  transition: --mx 500ms var(--ease), --my 500ms var(--ease);
}
.drawer-foot { margin-top: auto; padding: 20px 20px max(20px, calc(env(safe-area-inset-bottom) + 12px)); display: grid; gap: 16px; border-top: 1px solid var(--border); }
@media (prefers-reduced-motion: no-preference) {
  .drawer[open] { animation: drawer-in 200ms var(--ease); }
  @keyframes drawer-in { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
  /* links arrive one after another */
  .drawer[open] .drawer-links li { animation: drawer-link-in 480ms var(--ease) both; }
  .drawer[open] .drawer-links li:nth-child(2) { animation-delay: 60ms; }
  .drawer[open] .drawer-links li:nth-child(3) { animation-delay: 120ms; }
  .drawer[open] .drawer-links li:nth-child(4) { animation-delay: 180ms; }
  .drawer[open] .drawer-links li:nth-child(5) { animation-delay: 240ms; }
  .drawer[open] .drawer-foot { animation: drawer-link-in 480ms var(--ease) 260ms both; }
  @keyframes drawer-link-in { from { opacity: 0; transform: translateX(32px); } to { opacity: 1; transform: none; } }
}

/* ---------- Hero ---------- */
/* Centred copy and a wide search bar, then a full-bleed photo (Bolt-style). */
.hero { padding: 40px 0 0; }
.hero-copy { max-width: 1080px; margin: 0 auto; }
.hero h1 { font-size: clamp(36px, 8.5vw, 42px); max-width: 13em; margin-bottom: 14px; }
.hero .lead { margin-bottom: 24px; }

.hero-band { margin-top: 40px; }
.hero-band img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 40% center; }
/* Pinned hero (js/main.js adds .is-pinned): the photo stays under the header and
   the following sections, painted above it with their own backgrounds, slide over. */
.hero-band picture { display: block; overflow: hidden; }
.hero-band picture img { will-change: transform, filter; transform-origin: 50% 42%; }
.hero.is-pinned { position: sticky; top: var(--pin-top, 0px); z-index: 0; }
.hero.is-pinned ~ * { position: relative; z-index: 1; }
:where(.hero.is-pinned ~ section) { background-color: var(--page); }
.hero.is-pinned + * { box-shadow: 0 -18px 40px rgba(10, 22, 40, 0.18); }   /* curtain edge */

@media (min-width: 768px) {
  .hero-band img { aspect-ratio: 16 / 7; }
}
@media (min-width: 1024px) {
  .hero { padding-top: 72px; }
  .hero h1, .hero .lead, .hero-secondary, .popular { text-align: center; margin-left: auto; margin-right: auto; }
  .hero h1 { font-size: clamp(52px, 4.4vw, 60px); max-width: 15em; }
  .hero .lead { margin-bottom: 32px; }
  .popular { justify-content: center; }
  .search-result { max-width: 720px; margin-left: auto; margin-right: auto; }
  .hero-band { margin-top: 56px; }
  .hero-band img { aspect-ratio: 21 / 8; max-height: 620px; }
}

/* ---------- Search form ---------- */
.search-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  padding: 18px;
  display: grid; gap: 14px;
}
.route-fields { display: grid; gap: 4px; position: relative; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: 14px; font-weight: 600; color: var(--text); }
.input-wrap { position: relative; }
.field-icon {
  position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%);
  fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; pointer-events: none;
}
.field input, .field select {
  width: 100%; min-height: 50px;
  padding: 0 14px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-input);
  background: var(--surface); color: var(--text);
  font: inherit; font-size: 16px;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.input-wrap input { padding-left: 40px; }
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23536274' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
/* Chrome draws a datalist arrow that eats the placeholder; suggestions still open while typing. */
.field input[list]::-webkit-calendar-picker-indicator { display: none !important; }
.field input::placeholder { color: #7C8896; }
.field input:hover, .field select:hover { border-color: var(--muted); }
.field input:focus, .field select:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 150, 247, 0.22);
}
.field input[aria-invalid="true"] { border-color: var(--error); }
.field-error { color: var(--error); font-size: 14px; line-height: 1.4; min-height: 0; }
.field-error:empty { display: none; }

.swap-btn {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  z-index: 1;
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--border-strong); cursor: pointer;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.swap-btn svg { width: 18px; height: 18px; fill: none; stroke: var(--text); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.swap-btn:hover { border-color: var(--text); }
/* keep the swap button clear of the input text */
.route-fields .field:first-child input,
.route-fields .field:last-child input { padding-right: 60px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.btn-search { grid-column: 1 / -1; min-height: 52px; font-size: 17px; }
.btn-search svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

@media (min-width: 640px) {
  .search-card { padding: 22px; }
  .route-fields { grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: start; }
  .swap-btn { position: static; transform: none; margin-top: 31px; }
  .route-fields .field:first-child input,
  .route-fields .field:last-child input { padding-right: 14px; }
  .form-row { grid-template-columns: 1fr 0.8fr auto; align-items: end; }
  .btn-search { grid-column: auto; min-height: 50px; }
}
/* One-line search bar on wide screens */
@media (min-width: 1024px) {
  .search-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 12px; align-items: start; }
  .search-card .form-row { grid-template-columns: minmax(150px, 1fr) minmax(140px, 0.8fr) auto; }
}
@media (prefers-reduced-motion: no-preference) {
  .swap-btn:active { transform: translateY(-50%) rotate(180deg); }
  @media (min-width: 640px) { .swap-btn:active { transform: rotate(180deg); } }
}

.hero-secondary { margin-top: 18px; font-size: 16px; color: var(--muted); }
.hero-secondary a { font-weight: 600; text-decoration: none; margin-left: 4px; }
.hero-secondary a:hover { text-decoration: underline; text-underline-offset: 3px; }

.popular { margin-top: 10px; font-size: 15px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 14px; }
.popular-label { width: 100%; }
@media (min-width: 640px) { .popular-label { width: auto; } }

/* ---------- Search results ---------- */
.search-result:empty { display: none; }
.search-result { margin-top: 16px; }
.result {
  border: 1px solid var(--border); border-left: 4px solid var(--blue);
  border-radius: 12px; background: var(--surface);
  padding: 16px 18px; display: grid; gap: 8px; justify-items: start;
}
.result p { color: var(--muted); font-size: 16px; }
.result-title { font-size: 18px; letter-spacing: 0; }
.result-offline, .result-error { border-left-color: var(--error); }
.trip-list { display: grid; gap: 8px; width: 100%; }
.trip { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 12px 0; border-top: 1px solid var(--border); font-size: 15px; }
.trip-price { margin-left: auto; font-weight: 700; }
@media (prefers-reduced-motion: no-preference) {
  .result { animation: fade-up 200ms var(--ease); }
  @keyframes fade-up { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}

/* ---------- Trust bar ---------- */
.trust { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); }
.trust-list { display: grid; }
.trust-list li + li { border-top: 1px solid var(--border); }
.trust-list a {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px 0; color: var(--text); text-decoration: none;
}
.trust-list a:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.trust-list strong { display: block; font-size: 16px; }
.trust-list span span { display: block; color: var(--muted); font-size: 15px; line-height: 1.45; }
@media (min-width: 768px) {
  .trust-list { grid-template-columns: repeat(3, 1fr); }
  .trust-list li + li { border-top: 0; border-left: 1px solid var(--border); }
  .trust-list a { padding: 24px 24px; }
  .trust-list li:first-child a { padding-left: 0; }
}

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-tint { background: var(--tint); }
.section h2 { font-size: clamp(28px, 6vw, 40px); margin-bottom: 12px; }
.section-head { margin-bottom: 28px; }
@media (min-width: 1024px) { .section { padding: 96px 0; } }

/* ---------- How it works ---------- */
.tabs {
  display: inline-flex; gap: 4px; padding: 4px;
  border: 1px solid var(--border); border-radius: 12px; background: var(--surface);
  margin-bottom: 28px;
}
.tabs [role="tab"] {
  min-height: 42px; padding: 0 18px; border: 0; border-radius: 9px; cursor: pointer;
  background: none; font-size: 15px; font-weight: 600; color: var(--muted);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.tabs [role="tab"][aria-selected="true"] { background: var(--text); color: #fff; }
.tabs [role="tab"]:not([aria-selected="true"]):hover { color: var(--text); }
.tab-panel:focus-visible { outline-offset: 8px; }

.how-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 24px; margin-bottom: 8px; }
@media (min-width: 1024px) {
  .tab-panel:not([hidden]) { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
  .how-media img { aspect-ratio: 4 / 3; margin: 0; }
  .tab-panel .steps { grid-template-columns: 1fr; gap: 0; }
}

.steps { display: grid; gap: 0; counter-reset: none; }
.steps li { padding: 22px 0; border-top: 1px solid var(--border); display: grid; gap: 8px; }
.steps h3 { font-size: 20px; display: flex; align-items: baseline; gap: 8px; }
.steps p { color: var(--muted); }
@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .steps li { padding-top: 24px; }
}

/* ---------- Who travels together: tall photo cards ---------- */
.photo-cards {
  scroll-padding-inline: var(--gutter);
  display: grid; grid-auto-flow: column; grid-auto-columns: 78%;
  gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 8px;
  scrollbar-width: thin;
}
.photo-card {
  position: relative; scroll-snap-align: start;
  border-radius: 24px; overflow: hidden; background: var(--tint);
}
.photo-card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.photo-card-text {
  position: absolute; inset: 0 0 auto 0; padding: 22px 22px 72px;
  color: #fff;
  background: linear-gradient(to bottom, rgba(10, 22, 40, 0.85), rgba(10, 22, 40, 0.6) 55%, rgba(10, 22, 40, 0));
  text-shadow: 0 1px 2px rgba(10, 22, 40, 0.35);
}
.photo-card h3 { font-size: 20px; margin-bottom: 6px; letter-spacing: -0.01em; }
.photo-card p { font-size: 15px; line-height: 1.45; color: rgba(255, 255, 255, 0.92); }
@media (min-width: 768px) {
  .photo-cards { grid-auto-columns: 42%; }
}
@media (min-width: 1024px) {
  .photo-cards {
    grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); grid-auto-columns: auto;
    overflow: visible; margin: 0; padding: 0;
  }
}

/* Side scrolling (js/main.js adds .is-hscroll): the section pins and the cards
   move sideways with the page scroll. Cards run to the right edge of the screen. */
.hscroll-bar { display: none; }
#people.is-hscroll { overflow-x: clip; }
#people.is-hscroll > .container { position: sticky; top: var(--hs-top, 80px); }
#people.is-hscroll .photo-cards {
  display: flex; gap: 16px; width: max-content;
  overflow: visible; margin: 0; padding: 0; scroll-snap-type: none;
  will-change: transform;
}
#people.is-hscroll .photo-card {
  flex: none;
  /* as wide as the row allows, but short enough that heading + card fit the screen */
  width: min(78vw, 420px, calc((100svh - var(--header-h) - 230px) * 0.75));
}
@media (min-width: 768px) {
  #people.is-hscroll .photo-cards { gap: 20px; }
}
#people.is-hscroll .hscroll-bar {
  display: block; height: 4px; margin-top: 18px; max-width: 240px;
  border-radius: 4px; background: var(--border); overflow: hidden;
}
.hscroll-bar span {
  display: block; height: 100%; background: var(--blue);
  transform: scaleX(0); transform-origin: 0 50%;
}

/* ---------- Safety ---------- */
.safety-grid { display: grid; gap: 40px; }
.features { display: grid; gap: 22px; margin: 28px 0 28px; }
.features li { display: flex; gap: 16px; align-items: flex-start; }
.features h3 { font-size: 18px; margin-bottom: 4px; letter-spacing: 0; }
.features p { color: var(--muted); font-size: 16px; }
@media (min-width: 1024px) {
  .safety-grid { grid-template-columns: 1.1fr 0.9fr; gap: 72px; align-items: center; }
}

/* Demo booking card */
.demo { max-width: 420px; width: 100%; justify-self: center; }
.demo-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft); padding: 22px; display: grid; gap: 18px;
}
.demo-top { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--muted); }
.tag {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  background: var(--trust-green); color: #22412F; font-size: 13px; font-weight: 600;
}
.demo-route { position: relative; display: grid; gap: 14px; padding-left: 22px; }
/* A little living road between the stops: it runs from the first stop's dot to
   the second's. The blue "car" and the lane dashes follow the page scroll
   (js/main.js sets --trip from 0 to 1 as the card moves up the screen); they are
   background layers of one element, so the road always fits the stops. */
.demo-route li { position: relative; display: grid; }
.demo-route li::before {
  content: ''; position: absolute; left: -22px; top: 6px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--text); z-index: 2;
}
.demo-route li:first-child::before { border-color: var(--blue); }
.demo-route li:last-child::before { background: var(--text); }
/* road: from this dot's centre (top 12px) to the next dot's centre (gap 14px + 12px below) */
.demo-route li:first-child::after {
  content: ''; position: absolute; left: -23px; top: 12px; bottom: -26px; width: 14px; z-index: 1;
  background:
    radial-gradient(circle, var(--blue) 0 4px, rgba(0, 150, 247, 0.35) 5px, transparent 7px) 50% 0% / 14px 14px no-repeat,
    linear-gradient(#fff 0 5px, transparent 5px) 50% 0 / 2px 11px repeat-y,
    linear-gradient(#2B3645, #2B3645) 50% 0 / 6px 100% no-repeat;
  background-size: 14px 14px, 2px 11px, 6px 100%;
  background-position: 50% calc(var(--trip, 0) * 100%), 50% calc(var(--trip, 0) * 66px), 50% 0;
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .demo-route li:first-child::before { animation: road-ping 3300ms ease-out infinite; }
  @keyframes road-ping {
    0% { box-shadow: 0 0 0 0 rgba(0, 150, 247, 0.55); }
    40%, 100% { box-shadow: 0 0 0 10px rgba(0, 150, 247, 0); }
  }
}
.demo-route strong { font-size: 17px; }
.demo-route span { font-size: 14px; color: var(--muted); }
.demo-driver { display: flex; gap: 14px; align-items: center; padding-top: 16px; border-top: 1px solid var(--border); }
.avatar {
  width: 48px; height: 48px; border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--blue-soft); color: var(--blue-text); font-weight: 700; font-size: 19px;
}
.avatar-photo { width: 56px; height: 56px; overflow: hidden; box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--blue-soft); }
.avatar-photo img { width: 100%; height: 100%; object-fit: cover; }
.demo-driver > div { display: grid; gap: 2px; font-size: 14px; color: var(--muted); }
.demo-driver strong { font-size: 16px; color: var(--text); }
.verified, .rating { display: inline-flex; gap: 6px; align-items: center; }
.verified svg { width: 16px; height: 16px; fill: none; stroke: #1E7A4F; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rating svg { width: 16px; height: 16px; fill: #E5A50A; stroke: none; }
.demo-meta { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: 14px; color: var(--muted); padding-top: 16px; border-top: 1px solid var(--border); }
.demo-meta dd { margin: 0; }
.demo-price { grid-column: 2; grid-row: 1 / span 2; align-self: center; text-align: right; }
.demo-price strong { display: block; font-size: 22px; color: var(--text); }
.demo figcaption { margin-top: 12px; font-size: 13px; color: var(--muted); text-align: center; }

/* ---------- Driver CTA ---------- */
.driver-grid { display: grid; gap: 32px; align-items: center; }
.driver-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 66% center; border-radius: 24px; }
.driver-copy .lead { margin-bottom: 24px; }
.driver-copy .note { margin-top: 20px; font-size: 15px; color: var(--muted); max-width: 30em; padding-left: 14px; border-left: 2px solid var(--border-strong); }
@media (min-width: 768px) {
  .driver-grid { grid-template-columns: 1fr 1fr; gap: 56px; }
}

/* ---------- App (coming soon): full-width band, half phone, QR on hover ---------- */
.section-app {
  position: relative; overflow: hidden;
  background: var(--text); color: #fff;
}
.section-app::before {
  /* soft brand-blue light behind the phone */
  content: ''; position: absolute; right: 8%; bottom: -55%;
  width: min(640px, 90vw); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 150, 247, 0.22), rgba(0, 150, 247, 0));
  pointer-events: none;
}
.app-band {
  position: relative;
  display: grid; gap: 36px;
  padding-top: 56px;
}
.app-copy { display: grid; justify-items: start; gap: 16px; }
.app-copy h2 { font-size: clamp(28px, 5.4vw, 40px); margin: 0; }
.app-copy .lead { color: rgba(255, 255, 255, 0.78); max-width: 30em; }
.app-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.06);
  font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, 0.9);
}
.app-badge svg { width: 16px; height: 16px; }
.btn-light { background: #fff; color: var(--text); }
.btn-light:hover { background: var(--blue-soft); }

/* Stage = the visible top half of the phone; the band's bottom edge crops the rest. */
.app-stage {
  --phone-w: 196px;
  position: relative;
  height: calc(var(--phone-w) * 1.12);
  display: flex; justify-content: center; align-items: flex-start;
}
.phone {
  width: var(--phone-w); flex: none;
  padding: 8px; border-radius: calc(var(--phone-w) * 0.16);
  background: #1B2433;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12) inset, 0 30px 60px rgba(0, 0, 0, 0.35);
}
.phone img { width: 100%; height: auto; border-radius: calc(var(--phone-w) * 0.125); }

/* Invisible button over the phone: tap target on touch, focus target for keyboards. */
.qr-trigger {
  position: absolute; inset: 0 calc(50% - var(--phone-w) / 2); z-index: 2;
  background: none; border: 0; padding: 0; margin: 0;
  cursor: pointer; border-radius: calc(var(--phone-w) * 0.16) calc(var(--phone-w) * 0.16) 0 0;
  -webkit-tap-highlight-color: transparent;
}
.qr-trigger:focus-visible { outline-offset: 4px; }

.qr-card {
  position: absolute; z-index: 3; top: 14px; left: 50%;
  width: min(330px, calc(100vw - 2 * var(--gutter))); transform-origin: 50% 0;
  margin-left: calc(min(330px, calc(100vw - 2 * var(--gutter))) / -2);
  display: grid; grid-template-columns: 96px 1fr; column-gap: 14px; align-items: center;
  padding: 12px; border-radius: 18px;
  background: #fff; color: var(--text);
  box-shadow: 0 1px 2px rgba(10, 22, 40, 0.2), 0 18px 44px rgba(0, 0, 0, 0.35);
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(10px) scale(0.97); transform-origin: 50% 100%;
  transition: opacity 220ms var(--ease), transform 320ms var(--ease), visibility 0s linear 320ms;
}
.qr-code { position: relative; grid-row: span 2; }
.qr-svg { display: block; width: 100%; height: auto; }
.qr-mods rect { fill: var(--text); opacity: 0; transition: opacity 160ms linear; transition-delay: 0ms; }
.qr-ghost circle { fill: var(--border-strong); opacity: 0; transition: opacity 400ms linear 900ms; }
.qr-title { align-self: end; font-size: 14px; font-weight: 700; line-height: 1.3; }
.qr-note { align-self: start; margin-top: 4px; font-size: 12.5px; line-height: 1.45; color: var(--muted); }

.app-stage.is-open .qr-card,
.app-stage.is-peek .qr-card {
  opacity: 1; visibility: visible; pointer-events: auto; transform: none;
  transition: opacity 220ms var(--ease), transform 320ms var(--ease), visibility 0s;
}
.app-stage.is-open .qr-mods rect,
.app-stage.is-peek .qr-mods rect { opacity: 1; transition-delay: var(--d); }
.app-stage.is-open .qr-ghost circle,
.app-stage.is-peek .qr-ghost circle { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .app-stage:hover .qr-card {
    opacity: 1; visibility: visible; pointer-events: auto; transform: none;
    transition: opacity 220ms var(--ease), transform 320ms var(--ease), visibility 0s;
  }
  .app-stage:hover .qr-mods rect { opacity: 1; transition-delay: var(--d); }
  .app-stage:hover .qr-ghost circle { opacity: 1; }
}

@media (prefers-reduced-motion: no-preference) {
  .phone { transform: translateY(32px); transition: transform 700ms var(--ease); }
  .section-app.is-visible .phone { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .qr-card, .qr-mods rect, .qr-ghost circle { transition: none !important; }
}

@media (min-width: 768px) {
  .app-band { grid-template-columns: 1fr auto; align-items: end; gap: 48px; padding-top: 0; }
  .app-copy { padding: 64px 0; align-self: center; }
  .app-stage { --phone-w: 240px; width: 460px; margin-top: 48px; }
  /* card sits beside the phone, like a sticker held up to it */
  .qr-card {
    left: auto; right: calc(50% + var(--phone-w) / 2 - 36px); margin-left: 0; top: -36px;
    width: 188px; display: block; padding: 14px 14px 16px; transform-origin: 100% 50%;
  }
  .qr-title { margin-top: 10px; }
}
@media (min-width: 1024px) {
  .app-stage { --phone-w: 260px; width: 520px; }
  .app-copy { padding: 72px 0; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 56px 0 32px; font-size: 15px; }
.footer-grid { display: grid; gap: 36px; grid-template-columns: 1fr 1fr; }
.footer-brand { grid-column: 1 / -1; display: grid; gap: 10px; justify-items: start; }
.footer-brand p { color: var(--muted); }
.footer-col h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 12px; font-weight: 600; }
.footer-col ul { display: grid; gap: 8px; }
.footer-col a, .footer-col .link-btn { color: var(--text); text-decoration: none; font-size: 15px; font-weight: 400; }
.footer-col a:hover, .footer-col .link-btn:hover { color: var(--blue-text); text-decoration: underline; }
.social { display: flex; gap: 8px; margin-top: 6px; }
.social a {
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center; color: var(--text);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.social a:hover { border-color: var(--blue); color: var(--blue-text); }
.social svg { width: 17px; height: 17px; }
.footer-bottom {
  margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--border);
  display: grid; gap: 16px; color: var(--muted); font-size: 14px;
}
.footer-meta { display: flex; align-items: center; gap: 16px; }
.footer-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.badge-link {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  color: var(--muted); text-decoration: none;
}
.badge-label { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.badge-link img { height: 22px; width: auto; opacity: .85; transition: opacity var(--dur) var(--ease); }
.badge-link:hover img { opacity: 1; }
.badge-link:hover .badge-label { color: var(--text); }
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { grid-template-columns: 1fr auto; align-items: center; }
  .footer-bottom p { max-width: 46em; }
}

/* ---------- Cookie bar ---------- */
.cookie-bar {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60;
  max-width: 720px; margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center;
  padding: 14px 18px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: 0 8px 30px rgba(10, 22, 40, 0.12);
  font-size: 14px; color: var(--muted);
}
.cookie-bar[hidden] { display: none; }
.cookie-bar p { flex: 1 1 260px; }
.cookie-bar a { font-weight: 600; margin-left: 4px; }
/* bigger tap area for the policy link without changing how it looks */
.cookie-bar a { display: inline-block; padding: 12px 4px; margin: -12px 0 -12px 0; }

/* App-in-hand hero: keep the phone in frame on narrow screens */
.hero-band--app img { object-position: 33% top; background: #F6F8FB; }

/* ---------- Hero calls to action: two "front seats" on the photo's top edge ----------
   Each button is shaped like a car seat (rounded seat back, headrest bump, stitched
   upholstery) and the pair sits half over the photo, like the front row of a car.
   They rise out of the photo on load; on hover the seat reclines / the wheel turns. */
.hero-band { position: relative; margin-top: 76px; }
@media (min-width: 768px) { .hero-band { margin-top: 96px; } }

.seat-row {
  position: absolute; top: 0; left: 50%; z-index: 2;
  translate: -50% -50%;
  display: flex; gap: 14px;
  width: max-content; max-width: calc(100% - 2 * var(--gutter));
}

.seat-btn {
  --seat: var(--surface);
  --seat-ink: var(--text);
  --stitch: rgba(10, 22, 40, 0.18);
  position: relative; flex: 1 1 0; min-width: 0;
  display: flex; align-items: center; gap: 12px;
  min-height: 64px; padding: 10px 22px 10px 10px;
  border-radius: 24px 24px 14px 14px;           /* seat back: rounder at the top */
  background-color: var(--seat); color: var(--seat-ink);
  /* light sweep, parked off the left edge until hover */
  background-image: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, 0.45) 50%, transparent 58%);
  background-size: 250% 100%; background-repeat: no-repeat; background-position: 100% 0;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 10px 28px rgba(10, 22, 40, 0.22);
  text-decoration: none; -webkit-tap-highlight-color: transparent;
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), background-color var(--dur) var(--ease);
}
/* headrest */
.seat-btn::before {
  content: ""; position: absolute; left: 50%; top: -8px; translate: -50% 0;
  width: 38%; height: 12px; border-radius: 8px 8px 3px 3px;
  background: var(--seat); box-shadow: 0 -2px 6px rgba(10, 22, 40, 0.12);
  z-index: -1;
}
/* upholstery stitching */
.seat-btn::after {
  content: ""; position: absolute; inset: 5px; pointer-events: none;
  border: 1.5px dashed var(--stitch); border-radius: 19px 19px 10px 10px;
}
.seat-btn--passenger { --seat: var(--blue-action); --seat-ink: #fff; --stitch: rgba(255, 255, 255, 0.38); }
.seat-btn--passenger:hover { --seat: var(--blue-action-hover); }
.seat-btn--driver::before { border: 1px solid var(--border); border-bottom: 0; }
.seat-btn--driver { background-image: linear-gradient(105deg, transparent 42%, rgba(0, 150, 247, 0.14) 50%, transparent 58%); }

.seat-btn-icon {
  flex: none; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.16);
}
.seat-btn--driver .seat-btn-icon { background: var(--blue-soft); color: var(--blue-text); }
.seat-btn-icon svg {
  width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
  transition: transform 400ms var(--ease);
}
.seat-btn--passenger .seat-btn-icon svg { transform-origin: 40% 80%; }

.seat-btn-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.seat-btn-tag {
  font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  opacity: .78;
}
.seat-btn-label { font-size: 17px; font-weight: 700; white-space: nowrap; }

.seat-btn:hover { transform: translateY(-3px); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 16px 34px rgba(10, 22, 40, 0.28); }
.seat-btn:active { transform: translateY(0) scale(.97); transition-duration: 90ms; }
.seat-btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }

@media (prefers-reduced-motion: no-preference) {
  .seat-btn { transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), background-color var(--dur) var(--ease), background-position 700ms var(--ease); }
  .seat-btn:hover { background-position: 0 0; }
  .seat-btn--passenger:hover .seat-btn-icon svg { transform: rotate(-12deg); }     /* recline */
  .seat-btn--driver:hover .seat-btn-icon svg { animation: wheel-turn 900ms var(--ease); }

  /* rise out of the photo, then one light sweep */
  /* fill-mode backwards: hold the start state during the delay, then hand back to :hover */
  .seat-btn { animation: seat-rise 700ms cubic-bezier(.2, 1.4, .4, 1) backwards, seat-shine 1100ms var(--ease) 1000ms backwards; }
  .seat-btn--driver { animation-delay: 130ms, 1150ms; }
  .seat-btn--driver .seat-btn-icon { animation: wheel-in 900ms var(--ease) 350ms backwards; }

  @keyframes seat-rise { from { opacity: 0; transform: translateY(28px) scale(.96); } to { opacity: 1; transform: none; } }
  @keyframes seat-shine { from { background-position: 100% 0; } to { background-position: 0 0; } }
  @keyframes wheel-in { from { transform: rotate(-120deg); } to { transform: none; } }
  @keyframes wheel-turn { 0% { transform: none; } 35% { transform: rotate(-28deg); } 70% { transform: rotate(16deg); } 100% { transform: none; } }
}

/* Wide screens: bigger seats */
@media (min-width: 768px) {
  .seat-row { gap: 18px; }
  .seat-btn { min-width: 250px; min-height: 76px; padding: 12px 28px 12px 12px; gap: 14px; border-radius: 28px 28px 16px 16px; }
  .seat-btn::after { border-radius: 23px 23px 12px 12px; }
  .seat-btn::before { top: -11px; height: 15px; }
  .seat-btn-icon { width: 52px; height: 52px; border-radius: 16px; }
  .seat-btn-icon svg { width: 30px; height: 30px; }
  .seat-btn-label { font-size: 19px; }
  .seat-btn-tag { font-size: 12px; }
}

/* Phones: the two seats share the width */
@media (max-width: 479px) {
  .seat-row { gap: 8px; width: calc(100% - 2 * 12px); max-width: none; }
  .seat-btn { gap: 8px; min-height: 60px; padding: 8px 10px 8px 8px; }
  .seat-btn-icon { width: 32px; height: 32px; border-radius: 10px; }
  .seat-btn-icon svg { width: 21px; height: 21px; }
  .seat-btn-label { font-size: 15px; white-space: normal; }
  .seat-btn-tag { font-size: 11px; letter-spacing: .06em; }
}

/* ---------- Phones: iOS Safari + Android Chrome ---------- */
/* Notch / Dynamic Island in landscape and the home indicator (viewport-fit=cover). */
.container {
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}
.cookie-bar { bottom: max(16px, calc(env(safe-area-inset-bottom) + 8px)); }
.site-footer { padding-bottom: max(32px, calc(env(safe-area-inset-bottom) + 16px)); }

/* iOS renders type=date centred, with its own height; make it behave like the other fields. */
.field input[type="date"] { -webkit-appearance: none; appearance: none; display: flex; align-items: center; min-width: 0; }
.field input[type="date"]::-webkit-date-and-time-value { text-align: left; margin: 0; }
.field input[type="date"]::-webkit-calendar-picker-indicator { opacity: .6; }

/* Card rail: native momentum, no page bounce when swiping sideways. */
.photo-cards { overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }

/* Fingers, not cursors: 44px minimum targets (Apple HIG / WCAG 2.5.8). */
@media (pointer: coarse) {
  .btn-sm { min-height: 44px; }
  .wordmark { min-height: 44px; display: inline-flex; align-items: center; }
  .footer-col a, .footer-col .link-btn, .popular .link-btn, .text-link { display: inline-flex; align-items: center; min-height: 44px; }
  .footer-col li { padding: 0; }
  .tabs [role="tab"], [role="tab"] { min-height: 44px; }
  .swap-btn, .social a { width: 44px; height: 44px; }
  .lang-switch button, .lang-switch a { min-height: 44px; min-width: 40px; }
}
/* Touch screens keep :hover styles "stuck" after a tap — only lift on real hover. */
@media (hover: none) {
  .photo-card:hover img, .btn:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Footer column without a heading: line its links up with the headed columns */
@media (min-width: 768px) {
  .footer-col-plain ul { margin-top: 27px; }
}

/* Cookie bar on phones: one slim line (short text + OK) instead of a card over the hero */
.cookie-short { display: none; }
@media (max-width: 599px) {
  .cookie-bar {
    left: 8px; right: 8px; bottom: max(8px, env(safe-area-inset-bottom));
    flex-wrap: nowrap; gap: 10px; padding: 6px 6px 6px 14px; border-radius: 12px;
    font-size: 13px; line-height: 1.35;
  }
  .cookie-bar p { flex: 1 1 auto; min-width: 0; }
  .cookie-bar .cookie-long { display: none; }
  .cookie-bar .cookie-short { display: inline; }
  .cookie-bar .btn-sm { flex: none; min-height: 40px; padding: 0 14px; }
}

/* ---------- 404 page (404.html, built by src/build-404.js) ---------- */
.nf { padding: 48px 0 0; overflow: hidden; }
.nf-inner { max-width: 640px; text-align: center; }
.nf-code {
  display: flex; align-items: center; justify-content: center; gap: 0.04em;
  margin: 0 0 18px; font-size: clamp(96px, 26vw, 168px); font-weight: 800;
  line-height: 1; letter-spacing: -0.04em; color: var(--text);
}
.nf-wheel { display: block; width: 0.8em; height: 0.8em; color: var(--text); }
.nf-wheel svg { display: block; width: 100%; height: 100%; }
.nf h1 { font-size: clamp(30px, 6vw, 42px); margin-bottom: 12px; }
.nf .lead { max-width: 30em; margin: 0 auto 28px; color: var(--muted); }
.nf-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
@media (max-width: 479px) { .nf-actions .btn { flex: 1 1 100%; } }

/* the road and the lost little car */
.nf-road { position: relative; height: 128px; margin-top: 56px; }
.nf-asphalt { position: absolute; left: 0; right: 0; bottom: 0; height: 46px; background: #2B3645; }
.nf-asphalt::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1.5px;
  background: linear-gradient(90deg, #fff 0 26px, transparent 26px) 0 0 / 52px 3px repeat-x;
  opacity: 0.85;
}
.nf-ride { position: absolute; bottom: 20px; left: calc(50% - 60px); width: 120px; }
.nf-car { display: block; width: 120px; height: auto; }
.nf-tyre { transform-box: fill-box; transform-origin: center; }
.nf-bubble {
  position: absolute; left: 68px; bottom: 58px;
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: #fff; color: var(--blue-action); font-weight: 800; font-size: 20px;
  box-shadow: 0 6px 16px rgba(10, 22, 40, 0.18);
}
.nf-bubble::after {
  content: ""; position: absolute; left: 8px; bottom: -5px; width: 10px; height: 10px;
  background: #fff; transform: rotate(45deg); border-radius: 2px;
}
@media (prefers-reduced-motion: no-preference) {
  .nf-wheel svg { animation: nf-spin 3.2s linear infinite; }
  /* drive in (0-38%), stop and wonder (38-64%), drive off (64-100%) */
  .nf-ride { left: 0; animation: nf-drive 7s var(--ease) infinite; }
  .nf-car { animation: nf-bob 7s linear infinite; }
  .nf-tyre { animation: nf-roll 7s var(--ease) infinite; }
  .nf-bubble { animation: nf-wonder 7s var(--ease) infinite; }
  @keyframes nf-spin { to { transform: rotate(360deg); } }
  @keyframes nf-drive {
    0% { transform: translateX(-140px); }
    38%, 64% { transform: translateX(calc(50vw - 60px)); }
    100% { transform: translateX(calc(100vw + 20px)); }
  }
  @keyframes nf-roll {
    0% { transform: rotate(0deg); }
    38%, 64% { transform: rotate(900deg); }
    100% { transform: rotate(1800deg); }
  }
  @keyframes nf-bob {
    0%, 36%, 66%, 100% { transform: translateY(0); }
    10%, 20%, 30%, 74%, 84%, 94% { transform: translateY(-1.5px); }
    15%, 25%, 79%, 89% { transform: translateY(0.5px); }
    40% { transform: translateY(-3px) rotate(-1.5deg); }   /* brakes */
    44% { transform: none; }
  }
  @keyframes nf-wonder {
    0%, 41% { opacity: 0; transform: translateY(6px) scale(0.4); }
    46% { opacity: 1; transform: translateY(-2px) scale(1.1); }
    50%, 58% { opacity: 1; transform: none; }
    52% { transform: rotate(-10deg); }
    55% { transform: rotate(10deg); }
    62%, 100% { opacity: 0; transform: translateY(-6px) scale(0.6); }
  }
}
