/* AKA company palette and fonts, from the akagaminc.com company pages (company.css). */
@font-face {
  font-family: "Bricolage Grotesque Variable";
  src: url(/fonts/bricolage-grotesque-latin-wght-normal.woff2) format("woff2-variations");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Figtree Variable";
  src: url(/fonts/figtree-latin-wght-normal.woff2) format("woff2-variations");
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --bg: #07070c;
  --band: #0c0c14;
  --surface: #12121c;
  --line: #24243a;
  --ink: #ffffff;
  --text: #d6d6e4;
  --muted: #9797ad;
  --pink: #fb5cc7;
  --blue: #29dafc;
  --on-accent: #0b0b10;
  --display: "Bricolage Grotesque Variable", "Figtree Variable", system-ui, sans-serif;
  --body: "Figtree Variable", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 16px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--ink); text-underline-offset: 0.2em; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

h1, h2 {
  font-family: var(--display);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Header */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font: 700 1.125rem/1 var(--display);
}
.brand img { width: 34px; height: auto; }
.top-link { color: var(--muted); font-size: 0.875rem; }
.top-link:hover { color: var(--ink); }

/* Intro */
.intro { padding-block: 48px 40px; }
.intro h1 {
  font-size: clamp(2.375rem, 7.4vw, 5rem);
  max-width: 13ch;
  text-wrap: balance;
}
.intro p {
  max-width: 34rem;
  margin: 20px 0 0;
  font-size: clamp(1.0625rem, 2.2vw, 1.25rem);
  color: var(--text);
}

/* Games */
.game {
  display: grid;
  gap: 24px;
  padding-block: 32px;
}
.shot { margin: 0; }
.shot video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
}

/* Gameplay clips: a pause control below the clip (they loop on their own, WCAG 2.2.2),
   kept off the video so it never covers the game's own HUD. */
.clip-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 6px 12px 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: 500 0.875rem/1 var(--body);
  cursor: pointer;
}
.clip-toggle[hidden] { display: none; }
.clip-toggle:hover { color: var(--ink); border-color: var(--muted); }
.clip-toggle svg { fill: currentColor; }
.clip-toggle .icon-pause, .clip.is-playing .clip-toggle .icon-play { display: none; }
.clip.is-playing .clip-toggle .icon-pause { display: block; }

/* Hero: the phone held like a wheel, over the road it steers */
.wheel { margin: 32px 0 0; }
.wheel-svg {
  display: block;
  width: 100%;
  max-width: 520px;
  height: auto;
  margin-inline: auto;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.road { fill: var(--band); }
.road-edge { fill: none; stroke: var(--blue); stroke-opacity: 0.55; stroke-width: 2; stroke-linejoin: round; }
.dash { fill: var(--pink); }
.phone-body { fill: #191927; stroke: #34344f; stroke-width: 2; }
.phone-screen { fill: var(--bg); }
.pad-brake { fill: none; stroke: var(--blue); stroke-width: 2; }
.pad-gas { fill: var(--pink); fill-opacity: 0.5; transition: fill-opacity 0.2s ease; }
.is-driving .pad-gas { fill-opacity: 1; }
.pad-label {
  fill: var(--ink);
  font: 600 12px/1 var(--body);
  text-anchor: middle;
}
.pad-label-gas { fill: var(--on-accent); }
.arrow { fill: var(--blue); opacity: 0.22; transition: opacity 0.15s ease; }
.steer-left .arrow-l, .steer-right .arrow-r { opacity: 1; }
.wheel figcaption {
  margin-top: 12px;
  text-align: center;
  color: var(--muted);
  font-size: 0.875rem;
}
.cap-touch { display: none; }
@media (pointer: coarse) {
  .cap-fine { display: none; }
  .cap-touch { display: inline; }
}
.game h2 { font-size: clamp(1.875rem, 4.6vw, 2.75rem); }
.about > p { margin: 12px 0 0; max-width: 32rem; }
.tagline { color: var(--ink); font-size: 1.25rem; line-height: 1.4; text-wrap: balance; }

.facts {
  margin: 24px 0 0;
  display: grid;
  gap: 10px;
}
.facts div {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.facts dt { color: var(--muted); }
.facts dd { margin: 0; color: var(--ink); }

.play {
  display: inline-block;
  margin-top: 28px;
  padding: 15px 26px;
  border-radius: 999px;
  background: var(--pink);
  color: var(--on-accent);
  font: 700 1.0625rem/1 var(--display);
  text-decoration: none;
  transition: background-color 0.15s ease;
}
.play:hover { background: #ff7fd6; }
.play:active { background: #e94bb5; }

.phone-note { display: none; }
@media (pointer: coarse) and (max-width: 1023px) {
  .phone-note {
    display: block;
    margin-top: 20px;
    padding: 16px;
    border-radius: 10px;
    background: var(--surface);
    border: 1px solid var(--line);
  }
  .phone-note p { margin: 0; }
}
.send {
  margin-top: 12px;
  padding: 12px 18px;
  border: 1px solid var(--blue);
  border-radius: 999px;
  background: transparent;
  color: var(--blue);
  font: 600 0.875rem/1 var(--body);
  cursor: pointer;
}

.status {
  display: inline-block;
  margin-top: 20px;
  color: var(--blue);
  font-weight: 600;
}

/* How to play: a real sequence, so it is numbered */
.how {
  padding-block: 56px 72px;
}
.how h2 { font-size: clamp(1.5rem, 3.4vw, 2rem); }
.how ol {
  list-style: none;
  counter-reset: step;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 20px;
}
.how li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  align-items: baseline;
  align-content: start;
  color: var(--ink);
}
.how li::before {
  content: counter(step);
  font: 700 1.75rem/1 var(--display);
  color: var(--pink);
}
.no-phone { margin: 28px 0 0; color: var(--muted); }

/* Footer */
.foot {
  background: var(--band);
  border-top: 1px solid var(--line);
  padding-block: 40px 28px;
  font-size: 0.875rem;
}
.foot-grid { display: grid; gap: 28px; }
.foot-name { margin: 0; color: var(--ink); font-weight: 600; }
.foot address { font-style: normal; margin-top: 6px; max-width: 30rem; color: var(--muted); }
.foot-company p:last-child { margin: 10px 0 0; }
.foot-links { display: grid; gap: 10px; align-content: start; }
.foot-links a { color: var(--text); text-decoration: none; }
.foot-links a:hover { color: var(--ink); text-decoration: underline; }
.foot-small { margin-top: 32px; color: var(--muted); }

@media (min-width: 960px) {
  :root { --gutter: 32px; }
  .intro { padding-block: 56px 48px; }
  .intro {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: center;
    gap: 40px;
  }
  .wheel { margin: 0; }
  .game {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 40px;
    align-items: start;
  }
  .game .shot { grid-column: 1 / span 7; }
  .game .about { grid-column: 8 / span 5; }
  .game + .game { padding-top: 72px; }
  .how ol { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .how li { grid-template-columns: 1fr; gap: 10px; }
  .foot-grid { grid-template-columns: 1fr auto; }
  .foot-links { grid-template-columns: repeat(2, auto); column-gap: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
