/* Copied from apps/play/styles.css; keep the shared rules in step.
   Mirrors the RideAfrica landing page (apps/rideafrica/lib/screens/landing.dart):
   same monochrome palette and layout. --accent is the one addition, taken from
   the game; set it to #fff to go fully monochrome. */
:root {
  --bg: #000;
  --surface: #0c0c0c;
  --line: #262626;
  --line-soft: #1b1b1b;
  --dim: #a6a6a6;
  --faint: #7a7a7a;
  --accent: #ffd21f;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: #fff;
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, .strip:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; }
main img { transition: opacity .5s ease-out; }
main img.loading { opacity: 0; }
.shell { width: min(1120px, 100% - 40px); margin-inline: auto; }

/* Nav */
.nav { border-bottom: 1px solid var(--line-soft); }
.nav-row { height: 68px; display: flex; align-items: center; justify-content: space-between; }
.nav nav { display: flex; align-items: center; gap: 4px; }
.nav-link { color: var(--dim); font-size: 13.5px; font-weight: 500; padding: 8px 14px; }
.nav-link:hover { color: #fff; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -0.4px; }
.wordmark img { border-radius: 8px; }

/* Buttons */
.btn { display: inline-block; border: 1px solid transparent; border-radius: 10px; font-size: 14.5px; font-weight: 700; padding: 14px 26px; text-align: center; }
.btn-solid { background: var(--accent); color: #000; }
.btn-solid:hover { filter: brightness(1.08); }
.btn-ghost { border-color: var(--line); font-weight: 600; }
.btn-ghost:hover { border-color: var(--dim); }
.nav .btn { font-size: 13.5px; padding: 8px 18px; margin-left: 10px; }

/* Hero */
.hero { display: grid; grid-template-columns: 6fr 5fr; gap: 48px; align-items: center; padding-block: 72px 56px; }
h1 { font-size: clamp(40px, 5.6vw, 60px); line-height: 1.08; letter-spacing: -2px; }
.underline { display: inline-block; border-bottom: 2px solid var(--accent); padding-bottom: 4px; }
.lead { color: var(--dim); max-width: 480px; margin-top: 22px; line-height: 1.65; }
.pill { display: inline-block; margin-top: 30px; border: 1px solid var(--line); border-radius: 100px; padding: 7px 14px; color: var(--dim); font-size: 12.5px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }

/* Receipt printer, ported from the RideAfrica landing page */
.printer { width: min(324px, 100%); margin-inline: auto; }
.printer button { display: block; width: 100%; background: none; border: 0; color: inherit; cursor: pointer; font: inherit; }
.printer span { display: block; }
.printer-head { position: relative; z-index: 1; height: 46px; display: flex !important; flex-direction: column; justify-content: space-between; padding: 9px 16px 6px; background: #1c1c1c; border: 1px solid #2e2e2e; border-radius: 12px; box-shadow: 0 8px 18px rgb(0 0 0 / .4); }
.printer .status { display: flex; align-items: center; gap: 8px; color: #7a7a7a; font-size: 9px; font-weight: 600; letter-spacing: 1.6px; line-height: 1; }
.printer .led { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.printer .slot { height: 5px; border-radius: 3px; background: #000; overflow: hidden; }
.printer .progress { width: 100%; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.printer .paper-slot { overflow: hidden; padding-inline: 12px; }
.printer .paper {
  display: flex; flex-direction: column; align-items: center; background: #f4f4f2; color: #111;
  padding: 17px 22px 21px; font: 500 11.5px/1.5 "Courier New", Consolas, monospace; text-align: center;
  /* guillotined till-roll edges, top and bottom: 7px teeth */
  --teeth: conic-gradient(from -33deg at 50% 100%, #000 66deg, #0000 0);
  -webkit-mask: conic-gradient(from 147deg at 50% 0, #000 66deg, #0000 0) top / 9px 7px repeat-x, linear-gradient(#000 0 0) center / 100% calc(100% - 14px) no-repeat, var(--teeth) bottom / 9px 7px repeat-x;
  mask: conic-gradient(from 147deg at 50% 0, #000 66deg, #0000 0) top / 9px 7px repeat-x, linear-gradient(#000 0 0) center / 100% calc(100% - 14px) no-repeat, var(--teeth) bottom / 9px 7px repeat-x;
}
.printer .logo { width: 76px; height: 76px; border-radius: 14px; margin-bottom: 8px; }
.printer .brand { font-size: 15px; font-weight: 700; margin-bottom: 3px; }
.printer .phone { font-size: 11px; }
.printer .rule { align-self: stretch; height: 1px; margin-block: 9px; background: repeating-linear-gradient(90deg, #9a9a96 0 4px, #0000 4px 8px); }
.qr { width: 86px; height: 86px; fill: #111; margin: 2px 0 7px; shape-rendering: crispEdges; }
.printer .hint { color: #6b6b6b; font-size: 11.5px; margin-top: 10px; text-align: center; transition: opacity .3s; }
.printing .hint { opacity: 0; }
/* One continuous ease: feeding in steps, like a real printer, read as jitter. */
.printing .paper { animation: feed 2.4s cubic-bezier(.65, 0, .35, 1); will-change: transform; }
.printing .progress { animation: fill 2.4s cubic-bezier(.65, 0, .35, 1); }
.printing .led { animation: blink .343s steps(1) infinite; }
@keyframes feed { from { transform: translateY(-100%); } to { transform: translateY(0); } }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes blink { 0% { background: var(--accent); box-shadow: 0 0 6px rgb(255 210 31 / .5); } 50% { background: #3a3a3a; } }

/* Route marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--line-soft); padding-block: 16px; margin-bottom: 56px; }
.marquee-track { display: flex; width: max-content; animation: scroll 36s linear infinite; will-change: transform; }
.marquee ul { display: flex; list-style: none; }
.marquee li { white-space: nowrap; padding-inline: 28px; color: var(--faint); font-size: 12px; font-weight: 600; letter-spacing: 2px; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* Sections */
.section { padding-bottom: 72px; }
h2 { font-size: 27px; letter-spacing: -0.8px; line-height: 1.25; }
.sub { color: var(--dim); font-size: 14.5px; margin-top: 7px; }

.video { display: block; width: 100%; aspect-ratio: 16 / 9; margin-top: 26px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.video { position: relative; overflow: hidden; }
.video img { width: 100%; height: 100%; object-fit: cover; }
.play { position: absolute; inset: 0; margin: auto; width: 68px; height: 68px; border-radius: 50%; background: var(--accent); }
.play::after { content: ""; position: absolute; left: 27px; top: 22px; border-block: 12px solid transparent; border-left: 20px solid #000; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 26px; }
.card { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); transition: transform .18s ease-out; }
.card:hover { transform: scale(1.03); }
.card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.card div { padding: 15px; }
.card h3 { font-size: 16.5px; letter-spacing: -0.4px; }
.card p { color: var(--dim); font-size: 13px; margin-top: 4px; }

.band { border-block: 1px solid var(--line-soft); padding-block: 40px; margin-bottom: 72px; }
.stats { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px 48px; }
.stats div { display: flex; flex-direction: column-reverse; }
.stats dd { font-size: 30px; font-weight: 700; letter-spacing: -1.2px; }
.stats dt { color: var(--faint); font-size: 12.5px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; margin-top: 40px; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.steps span { color: var(--faint); font-size: 12px; font-weight: 700; letter-spacing: 1.5px; }
.steps h3 { font-size: 19px; margin-top: 18px; }
.steps p { color: var(--dim); font-size: 13.5px; margin-top: 9px; }

.strip { display: flex; scrollbar-color: var(--line) transparent; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin-top: 26px; padding-bottom: 12px; }
.strip img { width: min(640px, 85%); flex: none; border: 1px solid var(--line); border-radius: 14px; scroll-snap-align: start; }

.ticketing { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 32px; }

/* Footer */
.footer { border-top: 1px solid var(--line-soft); padding-block: 56px 32px; }
.footer-top { display: grid; grid-template-columns: 4fr 5fr; gap: 32px; }
.footer-top p { color: var(--faint); font-size: 13px; max-width: 300px; margin-top: 16px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 28px 56px; }
.footer-links div { display: flex; flex-direction: column; gap: 10px; }
.footer-links h4 { font-size: 12.5px; letter-spacing: 0.4px; }
.footer-links a { color: var(--faint); font-size: 13px; }
.footer-links a:hover { color: #fff; }
.legal { border-top: 1px solid var(--line-soft); margin-top: 48px; padding-top: 22px; color: var(--faint); font-size: 12px; }

@media (max-width: 860px) {
  .nav-link { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); text-align: center; padding-block: 44px 40px; }
  .lead { margin-inline: auto; }
  .ctas { justify-content: center; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps, .footer-top { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .marquee { overflow-x: auto; scrollbar-width: none; }
  .card, main img { transition: none; }
}
