/* motogo.live: the MotoGo brand (navy #0B2A4A, orange #FF8A00), the same
   palette as the apps (android/shared/design-system/Color.kt) and the console.
   No web fonts: Android's own Roboto (and each system's UI font elsewhere)
   keeps the page light on mobile data. */
:root {
  --navy: #0b2a4a;
  --navy-deep: #071521;
  --navy-soft: #dce6f2;
  --orange: #ff8a00;
  --orange-soft: #ffe8cc;
  --ink: #0b2a4a;
  --muted: #52627a;
  --bg: #ffffff;
  --bg-alt: #f7f9fc;
  --line: #d5dde8;
  --green: #16a34a;
  --red: #dc2626;
  --radius: 18px;
  --shadow: 0 12px 32px rgba(11, 42, 74, 0.12);
  --max: 1120px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
h3 { font-size: 1.15rem; letter-spacing: 0; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.icon { width: 24px; height: 24px; fill: currentColor; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--orange); color: var(--navy); padding: 8px 14px; border-radius: 10px; z-index: 100; font-weight: 700; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

/* ------------------------------------------------------------ announcement */
.announce { background: var(--orange); color: var(--navy); text-align: center; font-weight: 600; padding: 8px 20px; font-size: 0.95rem; }
.announce[hidden] { display: none; }

/* ------------------------------------------------------------------ header */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.92); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.header.scrolled { border-bottom-color: var(--line); }
.header .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em; }
.mark { width: 38px; height: 38px; border-radius: 11px; background: var(--navy); color: var(--orange); display: grid; place-items: center; box-shadow: 0 2px 6px rgba(11, 42, 74, 0.25); }
.mark .icon { width: 24px; height: 24px; }
.brand span b { color: var(--orange); }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav a { text-decoration: none; font-weight: 600; color: var(--muted); }
.nav a:hover { color: var(--navy); }
.menu-toggle { display: none; margin-left: auto; background: none; border: 0; color: var(--navy); padding: 8px; cursor: pointer; }
@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 20px 16px; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--bg-alt); }
  .nav .btn { margin-top: 12px; }
}

/* ----------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 14px; font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform 0.15s, box-shadow 0.15s, background 0.15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--orange); color: var(--navy); box-shadow: 0 6px 18px rgba(255, 138, 0, 0.35); }
.btn-primary:hover { box-shadow: 0 10px 24px rgba(255, 138, 0, 0.45); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-ghost { border-color: rgba(255, 255, 255, 0.45); color: #fff; }
.btn-ghost:hover { border-color: #fff; }
.btn-outline { border-color: var(--line); color: var(--navy); background: #fff; }
.btn-small { min-height: 42px; padding: 0 18px; font-size: 0.95rem; }
.btn[aria-disabled="true"] { opacity: 0.55; pointer-events: none; box-shadow: none; }

/* -------------------------------------------------------------------- hero */
.hero { background: radial-gradient(1200px 600px at 85% -10%, rgba(255, 138, 0, 0.22), transparent 60%), linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%); color: #fff; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 88px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.18); color: #fff; padding: 6px 14px; border-radius: 999px; font-size: 0.9rem; font-weight: 600; margin-bottom: 20px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(255, 138, 0, 0.25); }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero .lead { font-size: 1.2rem; color: #c9d6e6; max-width: 34em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 22px; }
.hero .facts { display: flex; flex-wrap: wrap; gap: 8px 22px; color: #a9b8c9; font-size: 0.95rem; padding: 0; margin: 0; list-style: none; }
.hero .facts li { display: flex; align-items: center; gap: 8px; }
.hero .facts .icon { width: 18px; height: 18px; fill: var(--orange); }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 56px; } .phone { display: none; } }

/* The phone mock-up: a ride in progress, drawn in HTML so it stays sharp and tiny. */
.phone { justify-self: center; width: 300px; border-radius: 40px; background: #0d1826; padding: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), inset 0 0 0 2px rgba(255, 255, 255, 0.08); transform: rotate(2deg); }
.screen { border-radius: 30px; overflow: hidden; background: #eef3f9; color: var(--navy); height: 560px; display: flex; flex-direction: column; }
.map { flex: 1; position: relative; background:
  linear-gradient(90deg, transparent 47%, #fff 47%, #fff 53%, transparent 53%) 0 0 / 120px 120px,
  linear-gradient(0deg, transparent 47%, #fff 47%, #fff 53%, transparent 53%) 0 0 / 120px 120px,
  linear-gradient(35deg, transparent 48.5%, #ffd9a8 48.5%, #ffd9a8 51.5%, transparent 51.5%),
  #e3ebf3; }
.route { position: absolute; left: 22%; top: 30%; width: 52%; height: 38%; border: 5px solid var(--navy); border-left: 0; border-bottom: 0; border-radius: 0 38px 0 0; }
.pin-rider, .pin-me { position: absolute; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 4px 10px rgba(11, 42, 74, 0.3); }
.pin-rider { left: 16%; top: 62%; background: var(--navy); color: var(--orange); animation: ride 6s ease-in-out infinite alternate; }
.pin-me { right: 18%; top: 22%; background: var(--orange); color: var(--navy); }
.pin-rider .icon, .pin-me .icon { width: 22px; height: 22px; }
@keyframes ride { from { transform: translate(0, 0); } to { transform: translate(28px, -40px); } }
.sheet { background: #fff; padding: 18px; border-radius: 22px 22px 0 0; box-shadow: 0 -6px 20px rgba(11, 42, 74, 0.1); }
.sheet .eta { font-weight: 800; font-size: 1.25rem; }
.sheet .sub { color: var(--muted); font-size: 0.9rem; margin-bottom: 12px; }
.rider-row { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: var(--bg-alt); margin-bottom: 10px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--navy-soft); display: grid; place-items: center; font-weight: 800; }
.rider-row small { display: block; color: var(--muted); }
.plate { margin-left: auto; white-space: nowrap; font-weight: 800; background: #fff; border: 2px solid var(--navy); border-radius: 8px; padding: 2px 8px; font-size: 0.85rem; }
.pin-box { display: flex; justify-content: space-between; align-items: center; background: var(--orange-soft); border-radius: 14px; padding: 10px 14px; font-weight: 700; }
.pin-box b { letter-spacing: 0.3em; font-size: 1.2rem; }

/* ---------------------------------------------------------------- sections */
.section { padding: 88px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.kicker { color: var(--orange); font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.82rem; margin-bottom: 10px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
@media (max-width: 700px) { .section { padding: 60px 0; } }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: relative; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: 22px; right: 24px; font-size: 3rem; font-weight: 900; color: var(--navy-soft); line-height: 1; }
.step p { color: var(--muted); margin: 0; }
.tile { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; background: var(--navy); color: var(--orange); margin-bottom: 18px; }
.tile.soft { background: var(--orange-soft); color: var(--navy); }
.tile .icon { width: 28px; height: 28px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card p { color: var(--muted); margin: 0; }
@media (max-width: 960px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; } }

.emergency { margin-top: 28px; display: flex; gap: 14px; align-items: flex-start; background: #fff4f4; border: 1px solid #f6c8c8; color: #7a1d1d; border-radius: var(--radius); padding: 18px 22px; }
.emergency .icon { fill: var(--red); margin-top: 2px; }
.emergency p { margin: 0; }

/* ------------------------------------------------------------------ riders */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 36px; } }
.checks { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 14px; }
.checks li { display: flex; gap: 14px; }
.checks .icon { fill: var(--green); margin-top: 2px; }
.checks b { display: block; }
.checks span { color: var(--muted); }
.panel { background: var(--navy); color: #fff; border-radius: 24px; padding: 34px; box-shadow: var(--shadow); }
.panel h3 { color: var(--orange); font-size: 1.3rem; }
.panel ol { margin: 0; padding-left: 1.2em; display: grid; gap: 12px; color: #d6e1ee; }
.panel ol b { color: #fff; }
.panel .need { margin-top: 26px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.15); color: #a9b8c9; font-size: 0.95rem; }

/* ---------------------------------------------------------------- download */
.downloads { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 860px) { .downloads { grid-template-columns: 1fr; } }
.app-card { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 30px; display: grid; grid-template-columns: 1fr auto; gap: 20px; box-shadow: var(--shadow); }
.app-card .top { display: flex; gap: 16px; align-items: center; margin-bottom: 14px; }
.app-icon { width: 64px; height: 64px; border-radius: 18px; background: var(--navy); color: var(--orange); display: grid; place-items: center; }
.app-icon.rider { background: var(--orange); color: var(--navy); }
.app-icon .icon { width: 38px; height: 38px; }
.app-card h3 { margin: 0; font-size: 1.35rem; }
.app-card .for { color: var(--muted); margin: 0; }
.meta { color: var(--muted); font-size: 0.92rem; margin: 0 0 18px; min-height: 1.5em; }
.app-card .btn { width: 100%; }
.alt-link { display: inline-block; margin-top: 12px; font-size: 0.9rem; color: var(--muted); }
.qr { width: 132px; text-align: center; font-size: 0.8rem; color: var(--muted); }
.qr img { border: 1px solid var(--line); border-radius: 12px; padding: 6px; background: #fff; margin-bottom: 6px; }
@media (max-width: 620px), (hover: none) { .app-card { grid-template-columns: 1fr; } .qr { display: none; } }

.install { margin-top: 44px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; list-style: none; padding: 0; counter-reset: inst; }
.install li { background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); padding: 22px; counter-increment: inst; }
.install li::before { content: counter(inst); display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--orange); color: var(--navy); font-weight: 900; margin-bottom: 10px; }
.install b { display: block; margin-bottom: 4px; }
.install span { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 860px) { .install { grid-template-columns: 1fr; } }
.note { margin-top: 18px; display: flex; gap: 12px; align-items: flex-start; color: var(--muted); font-size: 0.95rem; background: #fff; border-radius: 14px; padding: 14px 18px; border: 1px solid var(--line); }
.note .icon { fill: var(--navy); width: 20px; height: 20px; margin-top: 2px; }

/* --------------------------------------------------------------------- faq */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 0 22px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--orange); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 18px; margin: 0; }

/* ----------------------------------------------------------------- contact */
.contact { background: linear-gradient(160deg, var(--navy), var(--navy-deep)); color: #fff; border-radius: 28px; padding: 48px; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.contact p { color: #c9d6e6; margin: 0; }
.contact .ways { display: flex; flex-wrap: wrap; gap: 12px; }
.contact .btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.35); }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; padding: 32px 24px; } }

/* ------------------------------------------------------------------ footer */
.footer { padding: 44px 0; color: var(--muted); font-size: 0.92rem; border-top: 1px solid var(--line); margin-top: 88px; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: center; }
.footer nav { display: flex; flex-wrap: wrap; gap: 18px; margin-left: auto; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--navy); }
.footer small { flex-basis: 100%; }

/* ------------------------------------------------------------ legal pages */
.doc { max-width: 780px; margin: 0 auto; padding: 56px 20px 0; }
.doc h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.doc h2 { font-size: 1.4rem; margin-top: 2em; }
.doc ul { padding-left: 1.3em; }
.doc li { margin-bottom: 0.6em; }
.doc .updated { color: var(--muted); }
.tabs { display: flex; gap: 8px; margin: 24px 0 8px; flex-wrap: wrap; }
.tabs a { text-decoration: none; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); font-weight: 700; }
.tabs a.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.policy + .policy { margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--line); }
.muted { color: var(--muted); }
.policy-title { margin-top: 1em; }
.nav.always { display: flex; position: static; box-shadow: none; border: 0; padding: 0; background: none; flex-direction: row; }
.notfound { text-align: center; padding-top: 96px; }
.notfound .brand { justify-content: center; margin-bottom: 32px; }
.notfound .cta { margin-top: 28px; }
