@font-face { font-family: "Manrope"; src: url("../fonts/manrope.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("../fonts/dm-sans.woff2") format("woff2"); font-weight: 100 1000; font-display: swap; }

:root {
  --purple: #7049e8; --purple-2: #8f6ff5; --purple-deep: #4b2fb0; --mint: #bff3d5; --mint-2: #9fe8c0; --lime: #e1ef7e;
  --taxi: #f6c21c; --boro: #6cc24a; --rose: #ff4d6d;
  --bg: #f6f5fb; --surface: #ffffff; --surface-2: #f0eef9; --ink: #141629; --ink-2: #3b3f5c; --muted: #6b6f8a; --line: #e4e1f2;
  --radius: 22px; --shadow: 0 24px 60px -24px rgba(40, 22, 120, .25);
  --display: "Manrope", "DM Sans", system-ui, sans-serif; --text: "DM Sans", system-ui, sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"], .dark {
  --bg: #05070f; --surface: #0c1020; --surface-2: #121833; --ink: #eef0fb; --ink-2: #c3c7de; --muted: #8a90ad; --line: rgba(160, 170, 220, .14);
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, .8);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--text); overflow-x: hidden; overflow-x: clip; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.035em; line-height: 1.02; margin: 0; }
h1 { font-size: clamp(44px, 7.4vw, 104px); font-weight: 800; }
h2 { font-size: clamp(34px, 4.8vw, 64px); font-weight: 800; }
h3 { font-size: clamp(20px, 1.9vw, 24px); font-weight: 750; letter-spacing: -.02em; }
p { margin: 0; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.eyebrow { font: 700 12px/1 var(--text); letter-spacing: .18em; text-transform: uppercase; color: var(--purple); display: inline-flex; gap: 8px; align-items: center; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--mint-2); box-shadow: 0 0 12px var(--mint-2); }
.dark .eyebrow { color: var(--mint); }
.lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2); max-width: 56ch; }
.muted { color: var(--muted); }
.grad { background: linear-gradient(100deg, var(--purple) 10%, var(--purple-2) 45%, #5fd4a0 95%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dark .grad { background: linear-gradient(100deg, #b9a6ff 5%, var(--mint) 70%); -webkit-background-clip: text; background-clip: text; }

/* nav */
.nav { position: fixed; inset: 14px 0 auto; z-index: 50; }
.nav .bar { display: flex; align-items: center; gap: 18px; padding: 10px 12px 10px 16px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 72%, transparent); backdrop-filter: blur(18px) saturate(1.4); border: 1px solid var(--line); box-shadow: 0 10px 30px -18px rgba(30, 20, 90, .35); }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 800 20px/1 var(--display); letter-spacing: -.02em; text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.brand b { color: var(--mint-2); margin-left: -10px; }
.nav .links { display: flex; gap: 22px; margin-left: auto; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.nav .links a { text-decoration: none; }
.nav .links a:hover { color: var(--ink); }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 20px; border-radius: 999px; font: 700 15px/1 var(--text); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--purple); color: #fff; box-shadow: 0 12px 30px -10px rgba(112, 73, 232, .7); }
.btn.ghost { border-color: var(--line); background: color-mix(in srgb, var(--surface) 60%, transparent); color: var(--ink); }
.btn.small { padding: 10px 16px; font-size: 14px; }
@media (max-width: 860px) { .nav .links { display: none; } .nav .bar { justify-content: space-between; } }

section { position: relative; }
.pad { padding: clamp(80px, 11vw, 150px) 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--surface-2); border: 1px solid var(--line); }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--purple)); }

/* phone frame for real app screens */
.phone { position: relative; width: 260px; aspect-ratio: 414 / 900; border-radius: 40px; padding: 9px; background: linear-gradient(145deg, #1d2033, #07080f); box-shadow: 0 40px 80px -30px rgba(20, 10, 70, .6), inset 0 0 0 1.5px rgba(255, 255, 255, .12); }
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 32px; }
.phone::after { content: ""; position: absolute; top: 16px; left: 50%; translate: -50% 0; width: 76px; height: 22px; border-radius: 20px; background: #05060b; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

.footnote { font-size: 12px; color: var(--muted); }
footer { padding: 40px 0 60px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; gap: 20px; flex-wrap: wrap; justify-content: space-between; align-items: center; }
.demo-switch { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: flex; gap: 4px; padding: 5px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 80%, transparent); backdrop-filter: blur(14px); border: 1px solid var(--line); box-shadow: var(--shadow); font: 700 12px/1 var(--text); }
.demo-switch a { padding: 8px 11px; border-radius: 999px; text-decoration: none; color: var(--muted); }
.demo-switch a.on { background: var(--purple); color: #fff; }
.demo-switch .grp { display: inline-flex; align-items: center; gap: 2px; padding-left: 8px; margin-left: 2px; border-left: 1px solid var(--line); color: var(--muted); }
.demo-switch .grp a { padding: 8px 9px; }
@media (max-width: 560px) { .demo-switch { left: 8px; right: 8px; justify-content: center; font-size: 11px; } .demo-switch .grp { padding-left: 5px; } .demo-switch a, .demo-switch .grp a { padding: 7px 7px; } }

/* "Get the app" band (main and driver pages): store badges, QR codes, sign-up video, PDF guide, GRAND Class */
.gapp-top { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; }
.gapp-top .lead { margin-top: 14px; max-width: 52ch; }
.gapp-stores { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.gapp-qrs { display: flex; gap: 16px; }
.gapp-qr { margin: 0; text-align: center; font: 700 12px/1 var(--text); color: var(--muted); }
.gapp-qr img { display: block; width: 112px; height: 112px; padding: 10px; margin-bottom: 8px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.gapp-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
.gapp-card { display: flex; flex-direction: column; gap: 6px; padding: 12px 12px 18px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); text-decoration: none; transition: transform .2s, border-color .2s; }
.gapp-card:hover { transform: translateY(-2px); border-color: var(--purple-2); }
.gapp-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; border-radius: 14px; margin-bottom: 8px; background: #0a0e1f; }
.gapp-card .k { padding: 0 6px; font: 700 11px/1 var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--purple); }
.dark .gapp-card .k, .night .gapp-card .k { color: var(--mint); }
.gapp-card b { padding: 0 6px; font: 700 19px/1.25 var(--display); color: var(--ink); }
.gapp-card > span:last-child { padding: 0 6px; font-size: 14px; }
@media (max-width: 900px) { .gapp-top { grid-template-columns: 1fr; } .gapp-cards { grid-template-columns: 1fr; } }

/* site footer */
.gfoot { margin-top: 40px; padding: 70px 0 30px; border-top: 1px solid var(--line); background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--purple) 7%, transparent)); color: var(--ink-2); font-size: 14.5px; }
.gfoot .wrap { display: block; }
.gfoot-top { display: grid; grid-template-columns: minmax(260px, 1.1fr) 2fr; gap: 50px; }
.gfoot-brand p { margin: 16px 0 0; max-width: 38ch; }
.gfoot-apps { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.gfoot .store, .gapp .store { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px 9px 12px; border-radius: 12px; background: #0b0c12; color: #fff; text-decoration: none; border: 1px solid rgba(255,255,255,.14); transition: transform .2s, border-color .2s; }
.gfoot .store:hover, .gapp .store:hover { transform: translateY(-1px); border-color: var(--purple-2); }
.gfoot .store svg, .gapp .store svg { width: 24px; height: 24px; flex: none; }
.gfoot .store span, .gapp .store span { display: grid; line-height: 1.15; }
.gfoot .store small, .gapp .store small { font-size: 10.5px; opacity: .75; }
.gfoot .store b, .gapp .store b { font: 700 15px/1.2 var(--display); }
.gfoot-note { font-size: 12.5px; color: var(--muted); margin-top: 10px !important; }
.gfoot-cols { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.gfoot-note a { color: inherit; font-weight: 700; }
.gfoot-cols h4 { margin: 0 0 14px; font: 700 12px/1 var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.gfoot-cols a, .gfoot-cols span { display: block; margin: 0 0 10px; color: var(--ink-2); text-decoration: none; }
.gfoot-cols a:hover { color: var(--purple); }
.dark .gfoot-cols a:hover { color: var(--mint); }
.gfoot-bottom { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 50px; padding-top: 26px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); text-align: center; }
.gfoot-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; }
.gfoot-legal a { color: inherit; text-decoration: none; }
.gfoot-legal a:hover { color: var(--ink, inherit); }
.gfoot-company, .gfoot-credit { margin: 0; }
.gfoot-company a { color: inherit; font-weight: 600; text-decoration: none; }
.gfoot-company a:hover, .gfoot-credit a:hover { text-decoration: underline; }
.gfoot-credit { font-size: 12px; opacity: .8; letter-spacing: .01em; }
/* live status badge in the footer (opens status.ridewithgrand.com) */
.gstatus { --s: #22c55e; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); text-decoration: none; font-size: 12.5px; font-weight: 600; }
.gstatus:hover { border-color: var(--s); color: var(--ink); }
.gstatus i { width: 8px; height: 8px; border-radius: 50%; background: var(--s); box-shadow: 0 0 0 0 color-mix(in srgb, var(--s) 60%, transparent); animation: gstatus 2.2s infinite; }
.gstatus[data-state="DEGRADED"] { --s: #f59e0b; } .gstatus[data-state="OUTAGE"] { --s: #ef4444; }
@keyframes gstatus { 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .gstatus i { animation: none; } }
.gfoot-credit a { color: inherit; font-weight: 600; text-decoration: none; }
@media (max-width: 900px) { .gfoot-top { grid-template-columns: 1fr; gap: 36px; } .gfoot-cols { grid-template-columns: 1fr 1fr; } }

/* sign-in menu (main site) */
.signin-menu { position: relative; }
.signin-menu > button { cursor: pointer; }
.signin-menu .menu { position: absolute; right: 0; top: calc(100% + 10px); min-width: 230px; padding: 6px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); display: none; z-index: 60; }
.signin-menu.open .menu { display: grid; }
.signin-menu .menu a { display: flex; flex-direction: column; padding: 10px 12px; border-radius: 10px; text-decoration: none; font-weight: 700; font-size: 14px; color: var(--ink); }
.signin-menu .menu a small { font-weight: 500; color: var(--muted); font-size: 12px; }
.signin-menu .menu a:hover { background: var(--surface-2); }
.nav .links a { white-space: nowrap; }
