/* Rakba website. Layout follows a simple app-landing skeleton: header, one centred hero, centred footer.
   Colours from docs/design/brand.md: ink #0F0E0D, brand cyan #01BEFD, accent text #017BA4. */
:root {
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --surface-2: #EEF4F8;
  --ink: #0F0E0D;
  --muted: #55606E;
  --line: #DCE3EA;
  --cyan: #01BEFD;
  --accent-text: #017BA4;
  --btn-bg: #0F0E0D;
  --btn-text: #FFFFFF;
  --danger: #C62828;
  --watermark: #E6EBF0;
  --shadow: 0 1px 2px rgba(15, 14, 13, .06), 0 8px 24px rgba(15, 14, 13, .06);
  --shadow-lg: 0 18px 40px rgba(15, 14, 13, .14);
  --radius: 16px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F0E0D;
    --surface: #1A1917;
    --surface-2: #22211F;
    --ink: #F1F5F9;
    --muted: #A3ADB8;
    --line: #2E2D2A;
    --accent-text: #01BEFD;
    --btn-bg: #01BEFD;
    --btn-text: #0F0E0D;
    --danger: #FF8A80;
    --watermark: #1C1B19;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
    --shadow-lg: 0 18px 40px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
  .logo-light { display: none !important; }
  .logo-dark { display: inline-block !important; }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5; overflow-x: hidden; touch-action: manipulation;
  display: flex; flex-direction: column; min-height: 100vh;
}
main { flex: 1; }
a { color: inherit; }
img, svg { max-width: 100%; }
button, a, input[type="checkbox"], input[type="radio"], label.choice, .chip { cursor: pointer; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
.logo-dark { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 768px) { .wrap { padding-inline: 24px; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 12px; border: 0;
  background: var(--btn-bg); color: var(--btn-text);
  font: inherit; font-weight: 600; font-size: .95rem; text-decoration: none; white-space: nowrap;
  transition: opacity .2s ease;
}
.btn:hover { opacity: .88; }

/* Header: logo + links on the left, download button on the right */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; gap: 32px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand img { height: 28px; width: auto; }
.nav { display: none; gap: 24px; font-size: .92rem; color: var(--muted); }
.nav a { text-decoration: none; padding: 10px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.bar .grow { flex: 1; }
@media (min-width: 860px) { .nav { display: flex; } }

/* Hero: centred, fills the first screen */
.hero {
  min-height: calc(100svh - 69px); display: grid; place-content: center; text-align: center;
  padding-block: 56px 72px;
}
.hero h1 {
  font-size: clamp(2.5rem, 9vw, 5rem); line-height: 1.1; letter-spacing: -.03em; font-weight: 800; margin: 0 0 20px;
}
.rotator {
  display: inline-block; vertical-align: bottom; background: var(--cyan); color: #0F0E0D;
  border-radius: .22em; padding: 0 .24em; height: 1.12em; overflow: hidden;
  transition: width .45s cubic-bezier(.2, .8, .2, 1);
}
.rotator ul { list-style: none; margin: 0; padding: 0; transition: transform .55s cubic-bezier(.2, .8, .2, 1); }
/* Words are spaced .4em apart so a descender (the "p" of "espèces") or an accent never shows in the next word's window. */
.rotator li { height: 1.12em; line-height: 1.12em; margin-bottom: .4em; white-space: nowrap; width: max-content; }
.lead { font-size: clamp(1.05rem, 2.6vw, 1.25rem); color: var(--muted); max-width: 34em; margin: 0 auto 36px; }

.stores { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.store {
  display: inline-flex; align-items: center; gap: 12px; min-height: 64px; flex: 0 1 220px; min-width: 156px;
  padding: 10px 18px; border-radius: 16px; border: 1.5px solid var(--ink); background: var(--surface);
  color: var(--ink); text-decoration: none; text-align: start; position: relative; cursor: default;
}
.store svg { width: 28px; height: 28px; flex: none; }
.store small { display: block; font-size: .72rem; color: var(--muted); line-height: 1.2; }
.store strong { display: block; font-size: 1.15rem; line-height: 1.2; }
.store .tag {
  position: absolute; top: -10px; inset-inline-end: 12px; background: var(--cyan); color: #0F0E0D;
  font-size: .7rem; font-weight: 700; border-radius: 999px; padding: 1px 9px;
}

/* Footer: centred brand, socials, location, links, then the big name with the app icon, then the copyright */
.site-footer { text-align: center; padding-top: 72px; overflow: hidden; border-top: 1px solid var(--line); }
.foot-brand img { height: 44px; width: auto; }
.tagline { color: var(--muted); font-weight: 600; margin: 12px 0 20px; }
.socials { display: flex; justify-content: center; gap: 8px; }
.socials a {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; color: var(--muted);
  transition: color .2s ease, background-color .2s ease;
}
.socials a:hover { color: var(--ink); background: var(--surface-2); }
.socials svg { width: 22px; height: 22px; }
.place { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .92rem; margin: 36px 0 6px; }
.place svg { width: 16px; height: 16px; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 24px; margin: 0; padding: 0; list-style: none; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-weight: 600; text-decoration: none; }
.foot-links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

.mark-stage { position: relative; height: clamp(150px, 24vw, 220px); margin-top: 24px; }
.mark-word {
  position: absolute; left: 50%; top: 0; transform: translateX(-50%); margin: 0;
  font-size: clamp(5rem, 22vw, 15rem); font-weight: 900; letter-spacing: -.04em; line-height: .9;
  color: var(--watermark); user-select: none; white-space: nowrap;
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 95%);
          mask-image: linear-gradient(to bottom, #000 30%, transparent 95%);
}
.mark-tile {
  position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%);
  width: clamp(104px, 14vw, 124px); aspect-ratio: 1; border-radius: 28%;
  background: color-mix(in srgb, var(--surface) 70%, transparent); border: 1px solid var(--line);
  box-shadow: var(--shadow-lg); display: grid; place-items: center;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.mark-tile span { width: 77%; aspect-ratio: 1; border-radius: 24%; background: #0F0E0D; display: grid; place-items: center; overflow: hidden; }
.mark-tile img { width: 118%; height: auto; max-width: none; }
.legal { padding-block: 16px calc(20px + env(safe-area-inset-bottom)); color: var(--muted); font-size: .88rem; }
.legal .wrap { display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; }
.legal p { margin: 0; }

/* Driver signup: title + what's next on the left, form on the right */
.signup { display: grid; gap: 40px; padding-block: 48px 72px; }
@media (min-width: 960px) { .signup { grid-template-columns: .9fr 1.1fr; gap: 64px; padding-block: 72px 96px; align-items: start; } }
.signup h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); line-height: 1.08; letter-spacing: -.03em; margin: 0 0 16px; font-weight: 800; }
.signup .intro { color: var(--muted); font-size: 1.1rem; margin: 0 0 32px; }
.next { border-inline-start: 3px solid var(--cyan); padding: 4px 0 4px 20px; margin: 0 0 28px; }
.next h2 { font-size: 1.15rem; margin: 0 0 12px; }
.next ol { margin: 0; padding-inline-start: 20px; color: var(--muted); display: grid; gap: 8px; }
.fee-note {
  display: flex; gap: 10px; padding: 14px 16px; margin: 0; border: 1.5px dashed var(--cyan); border-radius: 12px; font-weight: 600;
}
.fee-note svg { width: 22px; height: 22px; flex: none; color: var(--accent-text); }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px 20px; box-shadow: var(--shadow); }
@media (min-width: 600px) { .form { padding: 32px; } }
.row { display: grid; gap: 0 20px; }
@media (min-width: 600px) { .row.two { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; margin-bottom: 22px; }
.field > label, .field > .label { font-weight: 600; font-size: .95rem; }
.opt { color: var(--muted); font-weight: 400; }
.input {
  width: 100%; min-height: 50px; padding: 12px 14px; font: inherit; color: var(--ink);
  background: var(--bg); border: 1.5px solid var(--line); border-radius: 12px; transition: border-color .2s ease;
}
textarea.input { min-height: 110px; resize: vertical; }
.input:hover { border-color: var(--muted); }
.input:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--cyan) 45%, transparent); }
.input[aria-invalid="true"] { border-color: var(--danger); }
.phone { display: flex; align-items: stretch; }
.phone .prefix {
  display: grid; place-items: center; padding: 0 14px; border: 1.5px solid var(--line); border-inline-end: 0;
  border-radius: 12px 0 0 12px; color: var(--muted); font-weight: 600; background: var(--surface-2);
}
.phone .input { border-radius: 0 12px 12px 0; }
.help { color: var(--muted); font-size: .85rem; margin: 0; }
.error { color: var(--danger); font-size: .88rem; margin: 0; display: flex; gap: 6px; align-items: center; }
.error:empty { display: none; }
.error::before { content: "!"; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--danger); color: var(--bg); font-weight: 800; font-size: .75rem; }
fieldset.picker { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
fieldset.picker legend { padding: 0; margin-bottom: 10px; font-weight: 600; font-size: .95rem; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills.more { margin-top: 8px; padding-top: 12px; border-top: 1px dashed var(--line); }
label.pill { position: relative; }
label.pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
label.pill span, .pill-more {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px;
  border-radius: 999px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink);
  font: inherit; font-size: .95rem; font-weight: 500; transition: border-color .2s ease, background-color .2s ease;
}
label.pill span:hover, .pill-more:hover { border-color: var(--muted); }
label.pill input:checked + span { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-text); font-weight: 600; }
label.pill input:focus-visible + span { outline: 3px solid var(--cyan); outline-offset: 2px; }
.pill-more { border-style: dashed; color: var(--muted); }
.pill-more svg { width: 16px; height: 16px; transition: transform .2s ease; }
.pill-more[aria-expanded="true"] svg { transform: rotate(180deg); }
.pill-more.has-choice { border-style: solid; border-color: var(--btn-bg); background: var(--btn-bg); color: var(--btn-text); font-weight: 600; }
.choices { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
label.choice {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px; min-height: 64px;
  border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg); transition: border-color .2s ease;
}
label.choice:hover { border-color: var(--muted); }
label.choice:has(input:checked) { border-color: var(--ink); background: var(--surface-2); }
label.choice input { margin-top: 3px; accent-color: var(--ink); width: 18px; height: 18px; flex: none; }
label.choice b { display: block; font-size: .95rem; }
label.choice small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.3; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 36px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font: inherit; font-size: .85rem; text-align: start;
}
.chip:hover { border-color: var(--muted); }
.chip.used { border-color: var(--ink); background: var(--surface-2); }
.chips-toggle {
  justify-self: start; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 2px;
  border: 0; background: none; color: var(--accent-text); font: inherit; font-size: .9rem; font-weight: 600;
}
.chips-toggle svg { width: 16px; height: 16px; transition: transform .2s ease; }
.chips-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.field > label.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; font-weight: 400; color: var(--muted); }
.consent a { color: var(--ink); }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--ink); flex: none; }
.form .btn { width: 100%; min-height: 50px; margin-top: 8px; font-size: 1rem; }
.disclaimer { color: var(--muted); font-size: .85rem; text-align: center; margin: 14px 0 0; }

/* Thank-you and legal pages */
.notice { max-width: 640px; margin-inline: auto; text-align: center; padding-block: 96px; }
.notice .check { width: 64px; height: 64px; border-radius: 50%; background: var(--cyan); display: inline-grid; place-items: center; margin-bottom: 20px; }
.notice h1 { font-size: clamp(2rem, 6vw, 3rem); letter-spacing: -.03em; margin: 0 0 12px; }
.notice p { color: var(--muted); font-size: 1.08rem; margin: 0 0 28px; }
.doc { max-width: 760px; margin-inline: auto; padding-block: 56px 80px; }
.doc h1 { font-size: clamp(2rem, 6vw, 3rem); letter-spacing: -.03em; line-height: 1.1; margin: 0 0 8px; }
.doc .updated { color: var(--muted); margin: 0 0 32px; }
.doc section { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 24px 16px; box-shadow: var(--shadow); }
.doc h2 { font-size: 1.2rem; margin: 28px 0 8px; }
.doc ul { padding-inline-start: 22px; }
.doc li { margin-bottom: 6px; }
.doc a { color: var(--accent-text); text-underline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rotator, .rotator ul, .btn, .input, label.choice, .socials a { transition: none; }
}
