:root {
  --bg: #f8f6f1;
  --card: #fffdf9;
  --text: #2b2a28;
  --muted: #6b675f;
  --accent: #f4c95d;
  --accent-text: #2b2a28;
  --error: #b4432f;
  --ok: #2f7d5b;
  --border: #e7e1d6;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #191b20;
    --card: #22252c;
    --text: #ebe8e2;
    --muted: #a8a49c;
    --border: #353943;
    --error: #f2a191;
    --ok: #8fd4b0;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  display: flex; /* so the footer sits at the bottom of short pages */
  flex-direction: column;
}

/* full width; the padding lines the content up with .wrap's (1080px less its 16px sides) */
.card, .page { padding: 40px max(16px, calc((100% - 1048px) / 2)) 64px; }
.card > * { max-width: 440px; }
.page > * { max-width: 760px; } /* longer lines get hard to read */
.page form { max-width: 440px; }

/* privacy policy: section list beside the text on wide screens, under the title on phones */
.page > .doc-layout { display: grid; grid-template-columns: minmax(0, 760px) 240px; justify-content: space-between; gap: 48px; max-width: none; }
.doc-body { grid-column: 1; grid-row: 1; }
.toc { grid-column: 2; position: sticky; top: 84px; align-self: start; font-size: 14px; }
.toc-title { margin: 0 0 8px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.toc ol { margin: 0; padding: 0 0 0 14px; border-left: 2px solid var(--border); list-style: none; }
.toc li { margin: 6px 0; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--text); }
.doc h1 { font-size: clamp(28px, 4vw, 38px); letter-spacing: -0.01em; margin-bottom: 12px; }
.updated {
  display: inline-block;
  margin: 0 0 28px;
  padding: 3px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
}
.doc-body h2 { margin: 40px 0 12px; padding-top: 28px; border-top: 1px solid var(--border); scroll-margin-top: 72px; }
.doc-body > h2:first-of-type { margin-top: 32px; }

@media (max-width: 1000px) {
  .page > .doc-layout { grid-template-columns: 1fr; gap: 8px; }
  .doc-body, .toc { grid-column: 1; grid-row: auto; }
  .toc { position: static; }
}

/* the privacy policy reads like a white document, in dark mode too */
.doc {
  --bg: #f8f6f1;
  --card: #fffdf9;
  --text: #2b2a28;
  --muted: #6b675f;
  --border: #e7e1d6;
  background: var(--card);
  color: var(--text);
}

.brand {
  display: inline-block;
  font-weight: 700;
  font-size: 22px;
  color: var(--text);
  text-decoration: none;
}

h1 { font-size: 22px; margin: 8px 0 20px; }
h2 { font-size: 18px; margin-top: 28px; }

label { display: block; font-weight: 600; margin: 14px 0 6px; }

input {
  width: 100%;
  padding: 11px 12px;
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
}

input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

.hint { color: var(--muted); font-size: 14px; margin: 8px 0 0; }

button {
  margin-top: 20px;
  width: 100%;
  padding: 12px;
  font: inherit;
  font-weight: 700;
  color: var(--accent-text);
  background: var(--accent);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

button:disabled { opacity: 0.6; cursor: wait; }

.error { color: var(--error); }
.ok { color: var(--ok); }

a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* delete-account: the form boxed on the left, what happens to the data on the right */
.page > .delete-grid {
  display: grid;
  grid-template-columns: minmax(0, 440px) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
  max-width: none;
}
.form-box { padding: 4px 24px 24px; background: var(--card); border: 1px solid var(--border); border-radius: 14px; }
.plist.effects { gap: 14px; margin: 0; padding: 0; list-style: none; } /* .plist comes later in this file */
.plist.effects .icon { grid-row: auto; width: 30px; height: 30px; border-radius: 8px; }
.effects .icon svg { width: 16px; height: 16px; }
.effects .feature p { margin: 4px 0 0; }
@media (max-width: 900px) { .page > .delete-grid { grid-template-columns: 1fr; gap: 32px; } }
.icon.gone { background: color-mix(in srgb, var(--error) 15%, transparent); color: var(--error); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { width: auto; margin-top: 5px; }
button.danger { background: var(--error); color: var(--card); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--border);
  background: var(--card); /* for browsers without color-mix */
  background: color-mix(in srgb, var(--card) 85%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
section[id] { scroll-margin-top: 72px; } /* below the sticky bar */
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; }
.nav nav:not(.langs) { display: flex; gap: 20px; font-size: 15px; }
.nav nav a { text-decoration: none; color: var(--muted); }
.nav nav a:hover { color: var(--text); }

.hero { padding: 56px 0 64px; background: radial-gradient(60% 70% at 85% 30%, color-mix(in srgb, var(--accent) 18%, transparent), transparent); }
.hero-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(36px, 6vw, 56px); line-height: 1.08; margin: 8px 0 18px; letter-spacing: -0.02em; }
.lead { font-size: 19px; color: var(--muted); max-width: 34em; }
.eyebrow {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border-radius: 10px;
  background: var(--text);
  color: var(--bg);
  line-height: 1.15;
  font-weight: 700;
}
.store svg { width: 24px; height: 24px; }
.store small { display: block; font-size: 11px; font-weight: 400; opacity: 0.8; }

.phone {
  justify-self: center;
  width: 100%;
  max-width: 290px;
  padding: 12px;
  border-radius: 40px;
  background: #1c1f24;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}
.phone svg { display: block; width: 100%; height: auto; border-radius: 30px; }
.map-bg { fill: #eef0e8; }
.map-roads path { stroke: #ffffff; stroke-width: 12; fill: none; }
.map-minor path { stroke: #ffffff; stroke-width: 5; fill: none; }
.radius { fill: rgba(242, 183, 5, 0.12); stroke: rgba(242, 183, 5, 0.6); stroke-width: 1.5; stroke-dasharray: 5 5; }
.taxi rect { fill: var(--accent); stroke: #1c1f24; stroke-width: 2; }
.me-halo { fill: rgba(37, 99, 235, 0.2); }
.me { fill: #2563eb; stroke: #fff; stroke-width: 3; }
.sheet { fill: #ffffff; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.15)); }
.sheet-title { font: 700 14px system-ui, sans-serif; fill: #1c1f24; }
.sheet-sub { font: 12px system-ui, sans-serif; fill: #5d6470; }
.sheet-btn { fill: var(--accent); }
.sheet-btn-text { font: 700 13px system-ui, sans-serif; fill: #1c1f24; text-anchor: middle; }

.section { padding: 64px 0; }
.section.alt { background: var(--card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section h2 { font-size: clamp(26px, 4vw, 34px); line-height: 1.2; margin: 6px 0 28px; letter-spacing: -0.01em; }
.section h3 { font-size: 17px; margin: 10px 0 4px; }

.feature {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
}
.feature p { margin: 0; color: var(--muted); }
/* "Getting around": items on both sides of a phone, on a dark band in both colour modes */
.showcase {
  --text: #ebe8e2;
  --muted: #a8a49c;
  --border: #353943;
  color: var(--text);
  background: radial-gradient(50% 60% at 50% 55%, color-mix(in srgb, var(--accent) 22%, transparent), transparent), #22252c;
}
.showcase h2 { text-align: center; margin-bottom: 48px; }
.showcase-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 56px; align-items: center; }
.side { display: grid; gap: 44px; }
.side .feature { display: grid; grid-template-columns: auto 1fr; column-gap: 18px; padding: 0; background: none; border: 0; }
.side.left .feature { grid-template-columns: 1fr auto; text-align: right; }
.side.left .icon { grid-column: 2; grid-row: 1 / span 2; }
.side .icon {
  grid-row: span 2;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px dashed var(--accent);
  background: none;
  color: var(--accent);
  transition: background 0.2s, color 0.2s;
}
.side .feature h3 { margin: 4px 0 4px; font-size: 19px; }
.side .feature:hover .icon { background: var(--accent); color: var(--accent-text); }
.showcase .side .feature { transform: none; box-shadow: none; } /* no card to lift: the ring fills instead */
.showcase .phone { width: 260px; background: #fffdf9; }
.route { fill: none; stroke: #2563eb; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 8 7; }
.pill { fill: rgba(47, 125, 91, 0.15); }
.pill-text { font: 700 12px system-ui, sans-serif; fill: #2f7d5b; text-anchor: middle; }
.plate { font: 700 11px system-ui, sans-serif; fill: #2b2a28; letter-spacing: 0.04em; }
.divider { stroke: #e7e1d6; stroke-width: 1.5; }
.btn-ghost { fill: none; stroke: #e7e1d6; stroke-width: 2; }
.btn-ghost-text { font: 600 13px system-ui, sans-serif; fill: #b4432f; text-anchor: middle; }

@media (max-width: 1000px) { /* below this the side columns get too narrow */
  .showcase-grid { grid-template-columns: 1fr; gap: 40px; }
  .showcase .phone { order: -1; justify-self: center; width: 230px; }
  .side.left .feature { grid-template-columns: auto 1fr; text-align: left; }
  .side.left .icon { grid-column: 1; }
}
.icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 25%, transparent);
  color: var(--text);
}
.icon svg { width: 21px; height: 21px; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.steps li { counter-increment: step; position: relative; padding: 52px 20px 20px; border-radius: 12px;
  background: var(--bg); border: 1px solid var(--border); color: var(--muted); }
.steps li strong { display: block; color: var(--text); margin-bottom: 4px; }
.steps li::before {
  content: counter(step);
  position: absolute;
  top: 16px;
  left: 20px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 700;
  display: grid;
  place-items: center;
}

.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.split h2 { margin-bottom: 16px; }
.split > div > p { color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 20px 0 28px; }
.checks li { padding-left: 28px; position: relative; margin: 8px 0; }
.checks li::before { content: "✓"; position: absolute; left: 4px; font-weight: 700; color: var(--ok); }
/* a side note next to the taxi pitch, not a card */
.panel { border-left: 3px solid var(--accent); padding: 4px 0 4px 24px; }
.panel-icons { display: flex; gap: 8px; margin-bottom: 14px; }
.panel p { color: var(--muted); }
.panel a { font-weight: 700; }

.button {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 700;
  text-decoration: none;
}

/* support FAQ: native <details>, opens without any script */
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
/* the sign is decoration: <details> already tells screen readers whether it is open */
.faq summary::after { content: "+"; content: "+" / ""; color: var(--accent); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; content: "−" / ""; }
.faq details p { margin: 0 0 18px; color: var(--muted); }

/* "Private by design": the promise on the left, the three points as an icon list on the right */
.privacy-split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }
.more-link { font-weight: 700; }
.plist { display: grid; gap: 28px; }
:is(.section, .page) .plist .feature { /* beats the card hover lift */
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 16px;
  padding: 0;
  background: none;
  border: 0;
  transform: none;
  box-shadow: none;
}
.plist .icon { grid-row: span 2; transition: background 0.2s; }
.plist .feature h3 { margin: 7px 0 4px; font-size: 17px; }

.cta { text-align: center; overflow: hidden; }
.road { border-bottom: 3px dashed var(--border); margin-bottom: 28px; }
.cta-taxi { display: block; width: 160px; height: auto; margin: 0 auto -6px; }
.page > .contacts { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px 32px; max-width: none; margin: 40px 0 0; }
.contacts .feature { text-decoration: none; color: inherit; }
.contacts .more { grid-column: 2; padding-top: 6px; font-weight: 700; font-size: 14px; }
.contacts .feature:hover .icon { background: var(--accent); }

.cta h2 { margin-bottom: 10px; }
.cta p { color: var(--muted); }

.site-footer { margin-top: auto; padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer span { margin-right: auto; }

@media (max-width: 760px) {
  .hero { padding: 36px 0 48px; }
  .hero-inner, .split, .privacy-split { grid-template-columns: 1fr; gap: 36px; }
  .nav nav a[href$="#riders"] { display: none; }
  .section { padding: 48px 0; }
}

@media (max-width: 560px) {
  .nav nav:not(.langs) { display: none; }
  .phone { max-width: 230px; }
}

/* language dropdown: a native <details>, so it opens without any script */
.lang-menu { position: relative; }
.lang-menu summary {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  list-style: none;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover, .lang-menu[open] summary { color: var(--text); border-color: var(--accent); }
.langs {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 20;
  display: flex;
  flex-direction: column;
  min-width: 160px;
  padding: 6px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
}
.langs a { padding: 8px 12px; border-radius: 6px; font-size: 14px; text-decoration: none; }
.langs a:hover { background: var(--bg); }
.langs a[aria-current] { font-weight: 700; background: color-mix(in srgb, var(--accent) 25%, transparent); }
.nav-end { display: flex; align-items: center; gap: 20px; }

/* CSS-only motion; off for people who ask their system for less */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .hero-inner > * { animation: rise 0.6s ease-out both; }
  .hero-inner > .phone { animation-delay: 0.15s; }
  .me-halo { transform-box: fill-box; transform-origin: center; animation: pulse 2s ease-out infinite; }
  /* each --dx/--dy follows the slope of the taxi's road in index.html */
  .taxi { animation: drift 6s ease-in-out infinite alternate; }
  .showcase .taxi { animation: none; }
  .route { animation: flow 1.2s linear infinite; }
  .taxi:nth-of-type(3) { --dx: 40px; --dy: -4.3px; }
  .taxi:nth-of-type(4) { --dx: -1.7px; --dy: 40px; animation-duration: 7s; }
  .taxi:nth-of-type(5) { --dx: 2.6px; --dy: 60px; animation-duration: 8s; }
  .taxi:nth-of-type(6) { --dx: -50px; --dy: -5.4px; animation-duration: 6.5s; }
  .taxi:nth-of-type(7) { --dx: 60px; --dy: -8px; animation-duration: 7.5s; }
  .feature, .steps li, .button, button {
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s, filter 0.2s;
  }
  .feature:hover, .steps li:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  }
  .button:hover, button:not(:disabled):hover { transform: translateY(-1px); filter: brightness(1.05); }
  .cta-taxi { animation: drive 16s linear infinite; }
  /* the three ride steps light up in turn */
  .steps li { animation: step 6s infinite; }
  .steps li:nth-child(2) { animation-delay: 2s; }
  .steps li:nth-child(3) { animation-delay: 4s; }
}

@keyframes drive { from { transform: translateX(-75vw); } to { transform: translateX(75vw); } }
@keyframes step { 0%, 30% { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); } 40% { border-color: var(--border); box-shadow: none; } }

@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes pulse { from { transform: scale(1); opacity: 1; } to { transform: scale(2.6); opacity: 0; } }
@keyframes flow { to { stroke-dashoffset: -15; } }
@keyframes drift { to { transform: translate(var(--dx), var(--dy)); } }
