/* Rikba MT home page (index.html only; drive and legal pages keep site.css).
   Brand: Rikba purple #2a035e + mint #4ffab0, Saira (display) + Figtree (body). */
@font-face { font-family: "Saira"; src: url("fonts/saira.woff2") format("woff2"); font-weight: 100 900; font-stretch: 50% 125%; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("fonts/figtree.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }

:root {
  --brand: #2a035e; --brand-2: #3d0a82; --mint: #4ffab0; --mint-ink: #0b5c3c;
  --bg: #ffffff; --bg-soft: #f6f3fb; --surface: #ffffff; --fg: #160a2b; --muted: #5d5374; --line: #e7e0f1;
  --accent: #5a17ad; --on-brand: #f8f6fc; --shadow: 0 30px 80px -40px rgb(42 3 94 / .55);
  --display: "Saira", "Arial Narrow", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gl: max(20px, env(safe-area-inset-left, 0px)); --gr: max(20px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0f0522; --bg-soft: #170a31; --surface: #1c0c3b; --fg: #f1ecfa; --muted: #b6abcc; --line: #2f1d52;
  --accent: #4ffab0; --mint-ink: #4ffab0; --shadow: 0 30px 80px -40px rgb(0 0 0 / .8); color-scheme: dark; } }
:root[data-theme="dark"] {
  --bg: #0f0522; --bg-soft: #170a31; --surface: #1c0c3b; --fg: #f1ecfa; --muted: #b6abcc; --line: #2f1d52;
  --accent: #4ffab0; --mint-ink: #4ffab0; --shadow: 0 30px 80px -40px rgb(0 0 0 / .8); color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-stretch: 87.5%; line-height: 1.02; letter-spacing: -.015em; margin: 0; text-wrap: balance; }
p { margin: 0; }
.wrap { max-width: 1200px; margin-inline: auto; padding-left: var(--gl); padding-right: var(--gr); }
.eyebrow { font: 700 13px/1.2 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--surface); padding: 8px 12px; }
.skip:focus { left: var(--gl); }

/* Header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 41; background: var(--brand); }
.hdr { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: var(--brand); color: var(--on-brand); }
.hdr .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { display: block; width: 124px; aspect-ratio: 600 / 144; background: url("logo-wordmark.png") left center / contain no-repeat; flex: none; }
.logo span, .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nav { display: flex; gap: 6px; flex: 1; }
.nav a { text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 14px; border-radius: 999px; opacity: .92; }
.nav a:hover { background: rgb(255 255 255 / .1); opacity: 1; }
.hdr-cta { display: flex; gap: 10px; }
.pill { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; font-size: 15px; padding: 10px 18px; border-radius: 999px; white-space: nowrap; }
.pill-mint { background: #ffffff; color: #2a035e; }
.pill-line { border: 1.5px solid rgb(255 255 255 / .35); color: var(--on-brand); }
.pill:hover { filter: brightness(1.08); }
@media (max-width: 900px) { .nav { display: none; } .hdr .wrap { justify-content: space-between; } }
@media (max-width: 420px) { .hdr .pill-line { display: none; } }

/* Hero */
.hero { background: radial-gradient(1200px 600px at 85% -10%, #5b1ab8 0%, transparent 60%), radial-gradient(900px 500px at -10% 110%, #3a0b80 0%, transparent 55%), var(--brand); color: var(--on-brand); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: center; padding-block: 72px 88px; }
.hero h1 { font-size: clamp(44px, 7.2vw, 88px); font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--mint); }
.hero .sub { font-size: clamp(18px, 2vw, 21px); color: #ddd2f1; max-width: 34ch; margin-top: 22px; }
.word { display: inline-flex; gap: 10px; align-items: baseline; font-size: 14px; color: #c9bce4; margin-bottom: 22px; }
.word b { font-family: var(--display); font-size: 17px; color: #fff; }
.word i { color: var(--mint); }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.store { display: inline-flex; align-items: center; gap: 12px; padding: 11px 20px 11px 16px; border-radius: 14px; background: #000; color: #fff; text-decoration: none; border: 1px solid rgb(255 255 255 / .22); min-width: 190px; }
.store svg { flex: none; }
.store small { display: block; font-size: 11px; letter-spacing: .04em; opacity: .8; line-height: 1.1; }
.store b { display: block; font-size: 18px; line-height: 1.15; font-weight: 700; }
.store.soon { background: transparent; cursor: default; }
.store:not(.soon):hover { border-color: var(--mint); }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 34px; font-size: 14px; color: #d6caee; list-style: none; padding: 0; }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { color: var(--mint); flex: none; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); padding-block: 48px 64px; gap: 48px; } }

/* Phone mock-up */
.phone-stage { position: relative; display: grid; place-items: center; }
.phone-stage::before { content: ""; position: absolute; width: 120%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgb(79 250 176 / .22), transparent 62%); }
.phone { position: relative; width: min(340px, 100%); aspect-ratio: 9 / 18.6; border-radius: 46px; background: #0b0217; padding: 11px; box-shadow: 0 50px 100px -40px rgb(0 0 0 / .8), inset 0 0 0 2px #3a2a55; transform: rotate(-3deg); animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: rotate(-3deg) translateY(-10px); } }
.screen { position: relative; height: 100%; border-radius: 36px; overflow: hidden; background: #f3efe6; color: #160a2b; display: flex; flex-direction: column; }
.screen .map { flex: 1; min-height: 0; position: relative; }
.screen .map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.notch { position: absolute; top: 9px; left: 50%; translate: -50% 0; width: 96px; height: 26px; border-radius: 20px; background: #0b0217; z-index: 2; }
.eta { position: absolute; top: 46px; left: 14px; right: 14px; background: #fff; border-radius: 14px; padding: 10px 12px; font-size: 12px; box-shadow: 0 8px 20px -10px rgb(0 0 0 / .35); display: flex; gap: 10px; align-items: center; }
.eta .r { display: grid; grid-template-columns: 10px 1fr; gap: 2px 8px; align-items: center; flex: 1; min-width: 0; }
.eta .d { width: 8px; height: 8px; border-radius: 50%; border: 2.5px solid #19b97a; }
.eta .d.e { border-radius: 2px; background: #2a035e; border-color: #2a035e; }
.eta span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.sheet { background: #fff; border-radius: 22px 22px 0 0; padding: 12px 14px 16px; box-shadow: 0 -10px 30px -18px rgb(0 0 0 / .4); font-size: 12.5px; }
.grab { width: 36px; height: 4px; border-radius: 4px; background: #ddd5ea; margin: 0 auto 10px; }
.sheet h4 { margin: 0 0 8px; font: 700 15px/1 var(--display); }
.opt { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 7px 8px; border-radius: 12px; border: 1.5px solid transparent; }
.opt.on { border-color: #2a035e; background: #f6f1ff; }
.opt i { width: 34px; height: 20px; border-radius: 6px 10px 5px 5px; background: var(--c, #c9c1d8); position: relative; }
.opt i::after { content: ""; position: absolute; left: 5px; right: 5px; bottom: -3px; height: 6px; background: radial-gradient(circle at 4px 3px, #160a2b 3px, transparent 3.5px) left / 12px 6px no-repeat, radial-gradient(circle at 4px 3px, #160a2b 3px, transparent 3.5px) right / 8px 6px no-repeat; }
.opt b { display: block; font-size: 13px; }
.opt small { color: #6b6380; font-size: 11px; }
.opt em { font-style: normal; font-weight: 800; font-size: 13px; }
.book { margin-top: 10px; background: #2a035e; color: #fff; text-align: center; font-weight: 700; border-radius: 12px; padding: 11px; font-size: 13.5px; }
.tag-ex { position: absolute; bottom: -14px; right: -6px; background: #ffffff; color: #2a035e; box-shadow: 0 6px 16px -6px rgb(18 5 42 / .35); font: 700 11px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; padding: 8px 10px; border-radius: 8px; transform: rotate(3deg); }

/* Sections */
.sec { padding-block: clamp(72px, 10vw, 128px); }
.sec.soft { background: var(--bg-soft); }
.head { display: grid; gap: 14px; max-width: 46rem; margin-bottom: 48px; }
.head h2 { font-size: clamp(36px, 5vw, 60px); font-weight: 800; }
.head p { color: var(--muted); font-size: 19px; max-width: 56ch; }

/* Ride classes */
.classes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.cls { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px 18px; display: grid; gap: 10px; align-content: start; transition: transform .2s, box-shadow .2s; }
.cls:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.cls > svg { width: 100%; height: auto; max-width: 150px; }
.cls h3 { font-size: 26px; }
.cls p { color: var(--muted); font-size: 15px; }
.cls .seats { white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; font-weight: 700; font-size: 13px; color: var(--fg); background: var(--bg-soft); border-radius: 999px; padding: 4px 10px; width: fit-content; }
@media (max-width: 1050px) { .classes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 680px) { .classes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .cls { padding: 16px 14px; } .cls h3 { font-size: 22px; } .cls p { font-size: 14px; } }

/* How it works */
.how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: s; }
.how li { list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 28px; display: grid; gap: 12px; align-content: start; counter-increment: s; }
.how li::before { content: counter(s); width: 44px; height: 44px; border-radius: 14px; background: var(--brand); color: var(--mint); display: grid; place-items: center; font: 800 20px/1 var(--display); }
.how h3 { font-size: 26px; }
.how p { color: var(--muted); }
.how { padding: 0; margin: 0; }
@media (max-width: 860px) { .how { grid-template-columns: minmax(0, 1fr); } }

/* Safety */
.safety { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.shield { position: sticky; top: 100px; background: var(--brand); color: var(--on-brand); border-radius: 28px; padding: 36px; display: grid; gap: 18px; overflow: hidden; }
.shield h2 { font-size: clamp(36px, 4.4vw, 54px); font-weight: 800; }
.shield p { color: #d8cdee; }
.shield .law { display: inline-flex; gap: 10px; align-items: center; background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .16); border-radius: 14px; padding: 12px 14px; font-size: 14px; }
.feat { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.feat div { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 24px; display: grid; gap: 10px; align-content: start; }
.ic { width: 46px; height: 46px; border-radius: 14px; background: var(--bg-soft); color: var(--accent); display: grid; place-items: center; }
.feat h3 { font-size: 23px; }
.feat p { color: var(--muted); font-size: 15.5px; }
@media (max-width: 960px) { .safety { grid-template-columns: minmax(0, 1fr); } .shield { position: static; } }
@media (max-width: 560px) { .feat { grid-template-columns: minmax(0, 1fr); } }

/* Drive */
.drive { background: linear-gradient(135deg, #12052a, var(--brand) 60%, #4b119a); color: var(--on-brand); border-radius: 32px; padding: clamp(32px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; overflow: hidden; }
.drive h2 { font-size: clamp(38px, 5vw, 62px); font-weight: 800; }
.drive h2 em { font-style: normal; color: var(--mint); }
.drive p { color: #d8cdee; font-size: 18px; margin-top: 16px; max-width: 48ch; }
.drive .eyebrow { color: var(--mint); margin-bottom: 14px; display: block; }
.perks { display: grid; gap: 12px; list-style: none; margin: 0; padding: 0; }
.perks li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .12); border-radius: 18px; padding: 16px; }
.perks svg { color: var(--mint); }
.perks b { display: block; font-size: 17px; }
.perks span { color: #cfc3e8; font-size: 15px; }
.drive .btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
@media (max-width: 900px) { .drive { grid-template-columns: minmax(0, 1fr); } }

/* Business */
.biz { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.biz a { text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 28px; display: grid; gap: 12px; align-content: start; transition: border-color .2s, transform .2s; }
.biz a:hover { border-color: var(--accent); transform: translateY(-3px); }
.biz h3 { font-size: 26px; }
.biz p { color: var(--muted); }
.biz .go { font-weight: 700; color: var(--accent); display: inline-flex; gap: 6px; align-items: center; margin-top: 6px; }
@media (max-width: 860px) { .biz { grid-template-columns: minmax(0, 1fr); } }

/* Download */
.dl { background: #ffffff; color: #12052a; border: 1px solid #e7e0f1; box-shadow: 0 30px 80px -50px rgb(42 3 94 / .45); border-radius: 32px; padding: clamp(32px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 40px; align-items: center; position: relative; overflow: hidden; }
.dl h2 { font-size: clamp(38px, 5vw, 62px); font-weight: 800; }
.dl p { font-size: 18px; margin-top: 14px; max-width: 46ch; color: #4a3f60; }
.dl .stores { margin-top: 28px; }
.dl .store.soon { border-color: rgb(18 5 42 / .3); color: #12052a; }
.dl-art { justify-self: center; width: min(240px, 100%); height: auto; border-radius: 44px; box-shadow: 0 30px 60px -25px rgb(18 5 42 / .55); transform: rotate(5deg); }
@media (max-width: 860px) { .dl { grid-template-columns: minmax(0, 1fr); } .dl-art { display: none; } }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 0 24px; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 0; font: 700 19px/1.3 var(--body); display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 28px/1 var(--display); color: var(--accent); transition: transform .2s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--muted); max-width: 70ch; }

/* Footer */
.ftr { background: #0c031d; color: #cfc4e4; padding-block: 64px 40px; font-size: 15px; }
.ftr .cols { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.ftr h4 { color: #fff; font: 700 14px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; margin: 0 0 16px; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ftr a { color: #cfc4e4; text-decoration: none; }
.ftr a:hover { color: var(--mint); }
.ftr .logo { width: 140px; margin-bottom: 16px; }
.ftr .legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid #2a1a47; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13.5px; color: #9d90b8; }
@media (max-width: 860px) { .ftr .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ftr .cols > :first-child { grid-column: 1 / -1; } }
@media (max-width: 680px) { .cls:last-child { grid-column: 1 / -1; } }
