/* Brake Point - the game's colours: the race screen's night blue, the kerb's
   red and white, the HUD's cyan. Display type is a condensed italic, the web's
   nearest thing to the game's Avenir Next Condensed. */

:root {
  --ink: #0a1721;
  --ink-raised: #12242f;
  --ink-line: #1f3a4a;
  --text: #f4f7f9;
  --muted: #a9bccb;
  --red: #eb2921;
  --cyan: #2fd3e6;
  --green: #4fc23a;
  --gold: #f5b82e;
  --radius: 14px;
  --max: 1120px;
  --display: "Barlow Condensed", "Avenir Next Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 18px/1.6 var(--body);
}

img, video { display: block; max-width: 100%; }

a { color: var(--cyan); }
a:hover { color: var(--text); }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* The kerb: red and white blocks on the slant, as on every page in the game. */
.kerb {
  height: 12px;
  background: repeating-linear-gradient(
    -60deg, var(--red) 0 22px, #fff 22px 44px
  );
}

.checker {
  height: 20px;
  background:
    conic-gradient(#fff 25%, #111 0 50%, #fff 0 75%, #111 0) 0 0 / 20px 20px;
  opacity: .9;
}

h1, h2, h3, .display {
  font-family: var(--display);
  font-style: italic;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .01em;
  text-transform: uppercase;
  margin: 0;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(10, 23, 33, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ink-line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--display);
  font-style: italic;
  font-weight: 800;
  font-size: 26px;
  text-transform: uppercase;
}

.brand img { width: 36px; height: 36px; border-radius: 9px; }
.brand .point { color: var(--red); }

.site-nav { display: flex; gap: 22px; }

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
}

.site-nav a:hover, .site-nav a[aria-current] { color: var(--text); }

/* Hero */

.hero { padding: 72px 0 88px; overflow: hidden; }

.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  color: var(--cyan);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin: 0 0 18px;
}

.hero h1 { font-size: clamp(64px, 11vw, 132px); }
.hero h1 .point { color: var(--red); display: block; }

.lede {
  font-size: 21px;
  color: var(--muted);
  max-width: 34em;
  margin: 26px 0 32px;
}

.lede strong { color: var(--text); font-weight: 600; }

.cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px 12px 18px;
  border-radius: 12px;
  background: #000;
  border: 1px solid #3b4b56;
  color: #fff;
  text-decoration: none;
  line-height: 1.1;
}

.badge svg { width: 26px; height: 26px; fill: currentColor; }
.badge small { display: block; font-size: 12px; color: #c9d3da; }
.badge span { font-size: 20px; font-weight: 600; }

.badge[aria-disabled="true"] { cursor: default; }

.note { color: var(--muted); font-size: 15px; }

/* A phone, drawn rather than photographed. */
.phone {
  position: relative;
  width: min(100%, 340px);
  margin: 0 auto;
  padding: 12px;
  border-radius: 54px;
  background: linear-gradient(160deg, #2b3a44, #0b141a 60%);
  box-shadow:
    0 0 0 2px #3a4b56 inset,
    0 40px 80px -20px rgba(0, 0, 0, .7),
    0 0 120px -30px rgba(47, 211, 230, .35);
}

.phone video, .phone img {
  width: 100%;
  aspect-ratio: 886 / 1920;
  object-fit: cover;
  border-radius: 42px;
  background: #000;
}

.phone.small { width: 100%; padding: 8px; border-radius: 34px; }
.phone.small img { border-radius: 27px; aspect-ratio: 1320 / 2868; }

/* How it plays */

.section { padding: 88px 0; }
.section.alt { background: var(--ink-raised); }

.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(40px, 6vw, 64px); }
.section-head p { color: var(--muted); font-size: 19px; margin: 16px 0 0; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 28px 26px 26px;
  border-radius: var(--radius);
  background: var(--ink);
  border: 1px solid var(--ink-line);
  border-left: 4px solid var(--accent, var(--cyan));
}

.step h3 { font-size: 34px; margin-bottom: 10px; }
.step p { margin: 0; color: var(--muted); }

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font: 700 14px/1 var(--body);
  letter-spacing: .14em;
  color: var(--accent, var(--cyan));
  margin-bottom: 14px;
}

/* Features: a picture beside its words, alternating sides. */

.feature {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 64px;
  align-items: center;
  padding: 40px 0;
}

.feature + .feature { border-top: 1px solid var(--ink-line); }
.feature:nth-child(even) { grid-template-columns: 1fr 300px; }
.feature:nth-child(even) .phone { order: 2; }

.feature h3 { font-size: clamp(36px, 5vw, 52px); margin-bottom: 14px; }
.feature p { color: var(--muted); margin: 0 0 14px; max-width: 34em; }

.feature ul {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text);
}

.feature li {
  position: relative;
  padding-left: 22px;
  margin: 6px 0;
}

.feature li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 10px;
  height: 4px;
  background: var(--red);
  transform: skewX(-30deg);
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 56px;
}

.fact {
  padding: 22px;
  border-radius: var(--radius);
  background: var(--ink);
  border: 1px solid var(--ink-line);
}

.fact b {
  display: block;
  font: italic 800 48px/1 var(--display);
  color: var(--gold);
}

.fact span { color: var(--muted); font-size: 16px; }

/* Closing call */

.closing { text-align: center; padding: 96px 0; }
.closing h2 { font-size: clamp(48px, 8vw, 88px); }
.closing p { color: var(--muted); margin: 18px auto 30px; max-width: 30em; }
.closing .cta { justify-content: center; }

/* Prose pages: support and privacy. */

.prose { padding: 64px 0 96px; }
.prose .wrap { max-width: 760px; }
.prose h1 { font-size: clamp(52px, 9vw, 84px); margin-bottom: 12px; }
.prose h2 { font-size: 34px; margin: 48px 0 12px; }
.prose p, .prose li { color: #d5dee5; }
.prose .meta { color: var(--muted); font-size: 15px; margin: 0 0 32px; }

.prose details {
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  background: var(--ink-raised);
  padding: 4px 22px;
  margin: 12px 0;
}

.prose summary {
  cursor: pointer;
  font-weight: 600;
  padding: 16px 0;
  color: var(--text);
}

.prose details[open] summary { border-bottom: 1px solid var(--ink-line); }

.contact-card {
  margin: 28px 0;
  padding: 26px;
  border-radius: var(--radius);
  background: var(--ink-raised);
  border-left: 4px solid var(--green);
}

.contact-card p { margin: 0 0 8px; }
.contact-card a { font-weight: 600; font-size: 20px; }

/* Footer */

.site-footer {
  border-top: 1px solid var(--ink-line);
  padding: 36px 0 48px;
  color: var(--muted);
  font-size: 15px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}

.site-footer nav { display: flex; gap: 22px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }

/* Phones */

@media (max-width: 860px) {
  body { font-size: 17px; }
  .wrap { padding: 0 16px; }
  .hero { padding: 40px 0 64px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 44px; }
  .hero .phone { width: min(78%, 300px); }
  .steps { grid-template-columns: 1fr; }
  .feature, .feature:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .feature .phone, .feature:nth-child(even) .phone {
    order: 0;
    width: min(70%, 260px);
  }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 64px 0; }
  .site-nav { gap: 16px; }
  .brand span.word { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}
