/* bookridex.com before launch: design 03 Solent (harbour blue, sea teal, coral). System fonts; every file local (CSP). */
:root {
  --bg: #F4F8FA; --surface: #FFFFFF; --ink: #0B2233; --muted: #4F6577; --accent: #0A7EA4; --accent-text: #065A76;
  --line: #DCE6EC; --night: #07141D; --sea: #4FC3E8; --coral: #FF8A78;
  --font: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 5vw, 64px); --section: clamp(56px, 8vw, 120px); --radius: 22px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 clamp(1rem, 0.95rem + 0.25vw, 1.125rem)/1.6 var(--font); }
img { max-width: 100%; height: auto; display: block; }
h1, h2 { line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 16px; text-wrap: balance; }
h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.75rem); font-weight: 800; }
p { margin: 0 0 12px; max-width: 60ch; }
:focus-visible { outline: 3px solid var(--sea); outline-offset: 3px; }

/* ---- hero: the harbour at dusk, words on a night gradient so they read on any crop */
.hero { position: relative; min-height: min(92vh, 860px); display: grid; align-items: end; color: #fff; overflow: hidden; background: var(--night); }
.hero picture, .hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-photo { object-fit: cover; object-position: 62% 40%; animation: drift 24s var(--ease) both; }
.hero::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgb(7 20 29 / 35%) 0%, rgb(7 20 29 / 10%) 35%, rgb(7 20 29 / 88%) 100%),
              linear-gradient(90deg, rgb(7 20 29 / 70%) 0%, transparent 65%); }
.hero-inner { position: relative; z-index: 1; padding: var(--section) var(--gutter) clamp(40px, 7vw, 96px); max-width: 980px; }
.brand { display: flex; width: fit-content; align-items: center; gap: 12px; font-weight: 800; font-size: 1.5rem; letter-spacing: -0.01em; margin-bottom: 28px; }
.pill { display: inline-block; padding: 6px 14px; border-radius: 999px; background: rgb(79 195 232 / 18%); border: 1px solid rgb(79 195 232 / 55%);
  color: #CFF1FC; font-weight: 700; font-size: 0.95rem; letter-spacing: 0.02em; margin-bottom: 18px; }
.hero h1 { font-size: clamp(2.4rem, 1.2rem + 5.2vw, 5rem); font-weight: 850; max-width: 16ch; }
.lead { font-size: clamp(1.1rem, 1rem + 0.6vw, 1.4rem); color: #DCEAF1; }

/* ---- how it works: steps beside two phones */
main section { padding: var(--section) var(--gutter); }
.how-grid { display: grid; gap: clamp(32px, 5vw, 72px); grid-template-columns: minmax(0, 1fr); align-items: center; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 22px; }
.steps li { position: relative; padding-left: 64px; color: var(--muted); }
.steps li strong { display: block; color: var(--ink); font-size: 1.15em; }
.step-icon { position: absolute; left: 0; top: 2px; width: 44px; height: 44px; }
.phones { display: flex; gap: 4%; justify-content: center; }
.phone { margin: 0; width: 44%; max-width: 260px; border-radius: 34px; padding: 8px; background: #0B2233;
  box-shadow: 0 30px 60px -20px rgb(11 34 51 / 45%), inset 0 0 0 2px #23465C; }
.phone img { border-radius: 27px; }
.phone-2 { transform: translateY(48px); }
.note { color: var(--muted); font-size: 0.9rem; margin-top: 64px; }

/* ---- photo + words, alternating */
.split { display: grid; gap: clamp(24px, 4vw, 64px); align-items: center; grid-template-columns: minmax(0, 1fr); }
.split img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: 0 24px 48px -24px rgb(11 34 51 / 40%); }
.split h2 { color: var(--ink); }
.split p { color: var(--muted); font-size: 1.1em; }

.drivers { background: var(--night); color: #E8F2F7; text-align: center; }
.drivers p { margin-inline: auto; color: #9DB3C2; }
.drivers h2 { color: #fff; }
.foot { padding: 32px var(--gutter) 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.95rem; }
.foot p:first-child { display: flex; align-items: center; gap: 10px; }
.small { font-size: 0.85rem; }

@media (min-width: 900px) {
  .how-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .split { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
  .split-flip > picture, .split-flip > .stack { order: 2; }
}
@keyframes drift { from { transform: scale(1.08); } to { transform: scale(1); } }
/* ---- slideshows (4.216): the first photo is always there; the others fade in over it, 6 s each, no buttons */
.stack { position: relative; }
.stack .slide { position: absolute; inset: 0; }
.slide { opacity: 0; animation: slide-third 18s linear infinite; }
.slide-2 { animation-delay: 6s; }
.slide-3 { animation-delay: 12s; }
.slide-half { animation-name: slide-half; animation-duration: 12s; animation-delay: 6s; }
@keyframes slide-third { 0% { opacity: 0; } 6% { opacity: 1; } 33.3% { opacity: 1; } 39.3% { opacity: 0; } 100% { opacity: 0; } }
@keyframes slide-half { 0% { opacity: 0; } 9% { opacity: 1; } 50% { opacity: 1; } 59% { opacity: 0; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hero-photo { animation: none; } .slide { display: none; } }

/* Privacy, terms and data deletion in the footer (0.6.7; lost in 0.7.0, back 23-10-2026) */
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0 0 12px; }
.foot nav a { color: var(--accent-text); }
/* 4.149: drivers sign up on the website before launch */
.cs-button { display: inline-flex; align-items: center; min-height: 48px; padding: 12px 24px; border-radius: 999px; background: var(--accent);
  color: #FFFFFF; font-weight: 700; text-decoration: none; }
.cs-button:hover { background: var(--accent-text); }
/* Faiz 28-11: Get the BookRideX app, the App Store QR beside the words; on a phone the button only (a QR is no use there) */
.cs-app { display: flex; gap: clamp(20px, 3vw, 40px); align-items: center; justify-content: center; text-align: left; }
.cs-app img { width: 128px; height: 128px; flex: none; background: #fff; padding: 6px; border-radius: 14px; }
.cs-app p { margin-inline: 0; }
@media (max-width: 599px) { .cs-app { text-align: center; } .cs-app img { display: none; } .cs-app p { margin-inline: auto; } }
