/*
 * bmxmotos.net, "Race Decal" (chosen 2026-10-01 from three mockups): navy,
 * orange racing stripes, checker strips and the icon's own lettering, like a
 * sticker on a number plate. One stylesheet, no scripts, nothing loaded from
 * third parties: the three typefaces are files in /fonts (SIL Open Font
 * License, licences beside them). Orbitron Black is the face the icon's
 * letters were drawn from (assets/images/icon.svg). Colours are the app's
 * (src/constants/theme.ts): navy #102A54, orange #FF7A00.
 */
@font-face { font-family: "Orbitron"; font-weight: 900; font-style: normal; font-display: swap; src: url(/fonts/orbitron-latin-900-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap; src: url(/fonts/barlow-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap; src: url(/fonts/barlow-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 700; font-style: normal; font-display: swap; src: url(/fonts/barlow-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url(/fonts/barlow-condensed-latin-700-normal.woff2) format("woff2"); }

:root {
  color-scheme: dark;
  --navy: #102a54;
  --navy-deep: #0a1b3a;
  --ink: #05080f;
  --plate-ink: #0b1220;
  --orange: #ff7a00;
  --orange-soft: #ff9a3d;
  --text: #ffffff;
  --soft: #d6deea;
  --dim: #b8c4d8;
  --display: "Orbitron", "Arial Black", sans-serif;
  --label: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
/* The top bar stays put (below), so a link to a section stops short of it. */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--navy); color: var(--text); font: 400 18px/1.5 var(--body); }
img { max-width: 100%; }
a { color: var(--text); }
a:hover { color: #ffb36b; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }

/* ---------- top bar: stays at the top of the window while the page scrolls ---------- */
.top { position: sticky; top: 0; z-index: 20; background: var(--navy-deep); box-shadow: 0 2px 0 var(--ink); }
.top .wrap { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); font: 900 20px/1 var(--display); letter-spacing: 0.04em; text-transform: uppercase; }
.brand img { width: 44px; height: 44px; border-radius: 10px; display: block; }
.top nav { margin-left: auto; display: flex; align-items: center; gap: 28px; font: 700 18px/1 var(--label); letter-spacing: 0.08em; text-transform: uppercase; }
.top nav a { text-decoration: none; }
.top nav a.cta { background: var(--orange); color: var(--plate-ink); padding: 11px 18px; border-radius: 8px; white-space: nowrap; flex-shrink: 0; }
.top nav a.cta:hover { background: #ff8f26; color: var(--plate-ink); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 64px 0 0; }
.stripe { position: absolute; top: -40px; height: 900px; transform: skewX(-16deg); }
.stripe.a { right: -120px; width: 520px; background: var(--orange); }
.stripe.b { right: 430px; width: 34px; background: #ffffff; }
.stripe.c { right: 490px; width: 12px; background: var(--orange); }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 40px; align-items: start; }
.hero-text { padding: 36px 0 56px; }
.kicker { display: block; width: fit-content; margin: 0 0 22px; text-shadow: none; background: var(--orange); color: var(--plate-ink); font: 700 17px/1.2 var(--label); letter-spacing: 0.14em; text-transform: uppercase; padding: 6px 14px; border-radius: 4px; }
h1 { margin: 0 0 22px; font: 900 clamp(34px, 12vw, 68px)/1.04 var(--display); letter-spacing: 0.01em; text-transform: uppercase; text-shadow: 0 5px 0 var(--ink); }
h1 span { color: var(--orange); }
.lede { margin: 0 0 30px; max-width: 520px; font-size: 21px; color: var(--soft); }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn { display: inline-block; text-decoration: none; font: 700 22px/1.1 var(--label); letter-spacing: 0.06em; text-transform: uppercase; padding: 15px 26px; border-radius: 10px; }
.btn.primary { background: var(--orange); color: var(--plate-ink); border: 3px solid var(--ink); }
.btn.primary:hover { background: #ff8f26; color: var(--plate-ink); }
.btn.outline { color: var(--text); border: 3px solid #ffffff; }
.btn.outline:hover { color: #ffb36b; border-color: #ffb36b; }
.btn.navy { background: var(--navy-deep); color: #ffffff; font-size: 21px; padding: 14px 24px; }
.btn.navy:hover { background: #17386f; color: #ffffff; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 0; padding: 0; list-style: none; }
.stores li { border: 1px solid #6f86ad; border-radius: 10px; padding: 8px 14px; font-size: 14px; line-height: 1.25; color: var(--soft); }
.stores li b { display: block; font-size: 17px; color: #ffffff; }
.stores li a { color: inherit; text-decoration: none; display: block; }
.stores li.badge { border: 0; padding: 0; display: flex; }
.stores li.badge img, .play-badge img { display: block; height: 52px; width: auto; }
.play-badge { align-self: flex-start; margin-top: 14px; }
.fine { margin: 18px 0 0; font-size: 15px; color: var(--dim); }

.phones { position: relative; height: 636px; }
.phone { position: absolute; background: var(--ink); border: 9px solid var(--ink); border-radius: 40px; overflow: hidden; }
.phone img { display: block; width: 100%; height: auto; border-radius: 31px; }
.phone.back { left: 10px; top: 70px; width: 232px; border-width: 8px; border-radius: 34px; transform: rotate(-6deg); }
.phone.back img { border-radius: 26px; }
.phone.front { right: 0; top: 0; width: 276px; transform: rotate(3deg); }

/* the icon's checker blocks as a strip, and its orange banner as a ticker */
.checker { height: 24px; background: repeating-conic-gradient(#0b1220 0 25%, #ffffff 0 50%) 0 0 / 24px 24px; position: relative; }
.ticker { background: var(--orange); color: var(--plate-ink); min-height: 60px; margin: 0; padding: 14px 24px; list-style: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 26px; font: 900 17px/1.2 var(--display); letter-spacing: 0.12em; text-transform: uppercase; }
.ticker li + li::before { content: "/"; margin-right: 26px; }

/* ---------- sections ---------- */
section { padding: 88px 0; }
section.deep { background: var(--navy-deep); }
.eyebrow { margin: 0; font: 700 17px/1.2 var(--label); letter-spacing: 0.16em; text-transform: uppercase; color: var(--orange-soft); }
h2 { margin: 8px 0 12px; font: 900 clamp(26px, 5vw, 40px)/1.1 var(--display); text-transform: uppercase; }
.sub { margin: 0 0 40px; max-width: 720px; color: var(--soft); }

/* features as number plates */
.plates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.plate { background: #ffffff; color: var(--plate-ink); border: 4px solid var(--ink); border-radius: 18px; padding: 22px 24px 24px; }
.plate .no { font: 900 40px/1 var(--display); color: var(--navy); }
.plate h3 { margin: 12px 0 6px; font-size: 21px; font-weight: 700; }
.plate p { margin: 0; font-size: 16.5px; color: #3a4556; }
.plate.hot { background: var(--orange); }
.plate.hot .no, .plate.hot p { color: var(--plate-ink); }

/* two ways */
.ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 34px; }
.way { border-radius: 20px; padding: 30px 32px 34px; display: flex; flex-direction: column; gap: 10px; }
.way h3 { margin: 0; font: 900 28px/1.1 var(--display); text-transform: uppercase; }
.way p { margin: 0; font-size: 17px; }
.way p.lead { font-size: 19px; font-weight: 600; }
.way .btn, .way .soon { align-self: flex-start; margin-top: 14px; }
.way.web { background: var(--orange); color: var(--plate-ink); border: 4px solid var(--ink); }
.way.app { background: var(--navy-deep); border: 4px solid #ffffff; }
.way.app p:not(.lead) { color: var(--soft); }
.way .soon { border: 2px dashed #8fa3c4; border-radius: 10px; padding: 12px 20px; font: 700 20px/1.2 var(--label); letter-spacing: 0.06em; text-transform: uppercase; color: var(--soft); }

/* questions */
.faq { max-width: 820px; margin-top: 28px; border-top: 2px solid #2b4677; }
.faq details { border-bottom: 2px solid #2b4677; padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 19px; }
.faq p { margin: 10px 0 0; color: var(--soft); }

/* ---------- plain pages (support, 404): one white plate on navy ---------- */
.page { max-width: 860px; margin: 0 auto; padding: 56px 32px 80px; }
.page h1 { font-size: clamp(30px, 6vw, 46px); margin: 0 0 24px; }
.sheet { background: #ffffff; color: var(--plate-ink); border: 4px solid var(--ink); border-radius: 18px; padding: 30px 34px 34px; }
.sheet h2 { font: 700 23px/1.2 var(--label); letter-spacing: 0.06em; margin: 30px 0 6px; color: var(--navy); }
.sheet p { margin: 0 0 10px; color: #1c2533; }
.sheet .lead { font-size: 20px; }
.sheet a { color: #1f5fd1; }
.sheet a:hover { color: #b45300; }

/* ---------- footer ---------- */
footer { background: var(--ink); color: var(--dim); font-size: 16px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 24px 32px; align-items: flex-start; padding-top: 34px; padding-bottom: 40px; }
footer .about { flex: 1 1 520px; }
footer p { margin: 0 0 8px; max-width: 640px; }
footer p.strong { color: #ffffff; font-weight: 700; }
footer .links { display: flex; flex-wrap: wrap; gap: 8px 22px; font-weight: 600; }

@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 0; }
  .hero-text { padding: 20px 0 36px; }
  /* Stacked, the stripes would run behind the headline: keep them behind the phones only. */
  .stripe { top: auto; bottom: -60px; height: 560px; }
  .stripe.a { right: -200px; width: 420px; }
  .stripe.b { right: 250px; width: 22px; }
  .stripe.c { right: 290px; width: 9px; }
  .phones { height: 470px; width: 100%; max-width: 380px; margin: 0 auto; }
  .phone.back { width: 172px; top: 46px; left: 4px; }
  .phone.front { width: 204px; right: 4px; }
  .plates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ways { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
}
@media (max-width: 600px) {
  .wrap, .page { padding-left: 20px; padding-right: 20px; }
  .top .wrap { gap: 12px; }
  .brand { font-size: 17px; }
  .brand img { width: 38px; height: 38px; }
  .top nav a:not(.cta) { display: none; }
  .top nav { font-size: 16px; }
  .top nav a.cta { padding: 10px 12px; }
  .brand { min-width: 0; white-space: nowrap; }
  .lede { font-size: 19px; }
  .btn { width: 100%; text-align: center; font-size: 20px; }
  .way .btn { width: auto; }
  .plates { grid-template-columns: 1fr; }
  .ticker { font-size: 14px; gap: 4px 16px; }
  .ticker li + li::before { margin-right: 16px; }
  .sheet { padding: 22px 20px 26px; }
  .way { padding: 24px 22px 28px; }
}
/* Small phones: the top-bar button reads "Web app" so it stays on one line. */
@media (max-width: 420px) {
  .top nav a.cta .cta-long { display: none; }
}
