/* wheel.ranax.co: black like the app, greys for everything, and colour only where it means
   something (gas green, brake red, the steering arc's blue). One typeface, Geist; Geist Mono
   only for what the game sees and for commands. Every motion uses the same spring-like curve. */
:root {
  --bg: #000000;
  --card: #181818;
  --raised: #1F1F1F;
  --edge: #272727;
  --edge-strong: #313131;
  --fg: #F4F4F5;
  --label: #A1A1AA;
  --dim: #71717A;
  --gas: #34D399;
  --brake: #F87171;
  --steer: #60A5FA;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --font: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  color-scheme: dark;
  interpolate-size: allow-keywords;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
html, body { margin: 0; background: var(--bg); color: var(--fg); }
body { font: 400 16px/24px var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--fg); text-underline-offset: 4px; text-decoration-color: var(--dim); }
a:hover { text-decoration-color: var(--fg); }
img { max-width: 100%; display: block; }
h1, h2, h3 { text-wrap: balance; margin: 0; font-weight: 600; }
p { text-wrap: pretty; margin: 0; }
code { font: 400 14px/20px var(--mono); color: var(--fg); }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }

.skip { position: fixed; top: 12px; left: 12px; z-index: 20; padding: 8px 12px; border-radius: 12px; background: var(--fg); color: #000; font-weight: 600; transform: translateY(-64px); transition: transform 500ms var(--ease); }
.skip:focus { transform: none; }

.i { width: 20px; height: 20px; flex: none; fill: currentColor; }

/* ---------- buttons ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 12px; border-radius: 9999px; border: 1px solid var(--edge-strong);
  font: 600 16px/24px var(--font); color: var(--fg); background: var(--card); text-decoration: none; cursor: pointer;
  transition: background-color 300ms var(--ease), transform 300ms var(--ease), border-color 300ms var(--ease), color 300ms var(--ease); }
.button:hover { background: var(--raised); transform: translateY(-1px); }
.button:active { transform: scale(0.98); }
.button.primary { background: var(--fg); border-color: var(--fg); color: #000; padding-inline: 16px; }
.button.primary:hover { background: #FFFFFF; }
.button.small { font-size: 14px; line-height: 20px; }

/* ---------- the island nav ---------- */
.island { position: fixed; z-index: 10; top: 24px; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px);
  display: flex; align-items: center; gap: 24px; padding: 8px 8px 8px 16px; border-radius: 9999px;
  background: rgba(24, 24, 24, 0.72); border: 1px solid var(--edge); backdrop-filter: blur(24px) saturate(1.4); -webkit-backdrop-filter: blur(24px) saturate(1.4); }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }
.brand img { border-radius: 8px; }
.island .links { display: flex; gap: 24px; font-size: 14px; line-height: 20px; }
.island .links a { color: var(--label); text-decoration: none; transition: color 300ms var(--ease); }
.island .links a:hover, .island .links a[aria-current] { color: var(--fg); }
@media (max-width: 640px) { .island .links { display: none; } .island { gap: 16px; } }

/* ---------- hero ---------- */
main { padding: 0 24px; }
.hero { max-width: 1040px; margin: 64px auto 0; padding: 96px 0; display: grid; justify-items: center; text-align: center; gap: 24px; }
.pill { font-size: 14px; line-height: 20px; color: var(--label); padding: 4px 12px; border: 1px solid var(--edge); border-radius: 9999px; background: var(--card); }
.hero h1 { max-width: 680px; font-size: 60px; line-height: 1; letter-spacing: -0.03em;
  background: linear-gradient(90deg, #FFFFFF, #9B9B9B); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: 8px; }
.hero .sub { max-width: 680px; font-size: 18px; line-height: 28px; color: var(--label); }
.cta { display: grid; justify-items: center; gap: 12px; }
.also { font-size: 14px; line-height: 20px; color: var(--dim); text-wrap: balance; }
.also a { color: var(--label); }
.proof { font-size: 14px; line-height: 20px; color: var(--dim); text-wrap: balance; }
@media (max-width: 640px) {
  .hero { margin-top: 32px; padding-bottom: 64px; }
  .hero h1 { font-size: 36px; line-height: 40px; }
  .hero .sub { font-size: 16px; line-height: 24px; }
}

/* ---------- the try-it dial ---------- */
.demo { position: relative; width: 100%; max-width: 880px; margin: 24px 0 0; padding: 32px 24px 24px; border-radius: 24px; background: var(--card); border: 1px solid var(--edge);
  display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; align-items: center; gap: 24px; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.demo.dragging { cursor: grabbing; }
.dial { position: relative; width: min(320px, 100%); justify-self: center; aspect-ratio: 240 / 200; }
.dial svg { width: 100%; height: 100%; overflow: visible; }
.arc-track { fill: none; stroke: var(--edge-strong); stroke-width: 12; stroke-linecap: round; }
.arc-live { fill: none; stroke: var(--steer); stroke-width: 12; stroke-linecap: round; }
.tick { stroke: var(--dim); stroke-width: 2; stroke-linecap: round; }
.knob { fill: #FFFFFF; }
/* Centred on the arc's centre, which sits at 120 of the 200 the dial is tall. */
.read { position: absolute; left: 0; right: 0; top: 60%; transform: translateY(-50%); display: grid; justify-items: center; text-align: center; gap: 4px; }
.read b { font-size: 48px; line-height: 1; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.read small { font-size: 14px; line-height: 20px; color: var(--dim); }
.pedal { display: grid; justify-items: center; gap: 12px; font-size: 12px; line-height: 16px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.pedal .track { position: relative; width: 8px; height: 200px; border-radius: 9999px; background: var(--edge); overflow: hidden; }
.pedal .track i { position: absolute; left: 0; right: 0; bottom: 0; height: 0%; border-radius: 9999px; }
.gas .track i { background: var(--gas); }
.brake .track i { background: var(--brake); }
.sees { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 12px; font-size: 14px; line-height: 20px; color: var(--dim); }
.sees code { padding: 4px 12px; border-radius: 9999px; background: var(--bg); border: 1px solid var(--edge); color: var(--label); font-size: 12px; line-height: 16px; }
.sees code b { color: var(--fg); font-weight: 500; font-variant-numeric: tabular-nums; }
.tilt { grid-column: 1 / -1; justify-self: center; }
.tilt[aria-pressed="true"] { background: var(--fg); color: #000; border-color: var(--fg); }
@media (max-width: 640px) {
  .demo { grid-template-columns: 24px minmax(0, 1fr) 24px; gap: 16px; padding: 24px 16px 16px; }
  .pedal .track { height: 160px; }
  .pedal span { writing-mode: vertical-rl; transform: rotate(180deg); }
  .read b { font-size: 36px; line-height: 40px; }
}

/* ---------- sections ---------- */
section { max-width: 1040px; margin: 0 auto; padding: 96px 0; }
.kicker { font-size: 14px; line-height: 20px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); margin-bottom: 12px; }
.lead { max-width: 680px; font-size: 30px; line-height: 36px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 40px; text-wrap: balance; }
@media (max-width: 640px) { section { padding: 64px 0; } .lead { font-size: 24px; line-height: 32px; } }

/* The tagline: each word lights up as it scrolls past. */
.tagline { display: grid; justify-items: center; text-align: center; }
.tagline p { max-width: 680px; font-size: 36px; line-height: 40px; font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; }
.tagline .line { display: block; text-wrap: balance; }
.tagline .w { color: rgba(244, 244, 245, 0.3); transition: color 700ms var(--ease); }
.tagline .w.on { color: var(--fg); }
@media (max-width: 640px) { .tagline p { font-size: 30px; line-height: 36px; } }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { padding: 24px; border-radius: 24px; background: var(--card); border: 1px solid var(--edge); display: grid; align-content: start; gap: 8px;
  transition: border-color 500ms var(--ease), opacity 900ms var(--ease), transform 900ms var(--ease), filter 900ms var(--ease); }
.card:hover { border-color: var(--edge-strong); }
.card .i { width: 24px; height: 24px; color: var(--label); margin-bottom: 8px; }
.card h3 { font-size: 18px; line-height: 28px; }
.card p { color: var(--label); }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid { grid-template-columns: minmax(0, 1fr); } }
.shot { margin: 48px 0 0; }
.shot img { width: 100%; height: auto; border-radius: 24px; border: 1px solid var(--edge); }
.shot figcaption { margin-top: 12px; text-align: center; font-size: 14px; line-height: 20px; color: var(--dim); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.steps li { padding: 24px; border-radius: 24px; background: var(--card); border: 1px solid var(--edge); display: grid; align-content: start; gap: 8px; }
.steps .n { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9999px; border: 1px solid var(--edge-strong); font-size: 14px; line-height: 20px; color: var(--label); margin-bottom: 8px; }
.steps h3 { font-size: 18px; line-height: 28px; }
.steps p { color: var(--label); }
@media (max-width: 760px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* ---------- download ---------- */
.panel { padding: 32px; border-radius: 24px; background: var(--card); border: 1px solid var(--edge); display: grid; gap: 24px; }
.on-phone { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 16px; border-radius: 16px; background: var(--raised); border: 1px solid var(--edge-strong); color: var(--label); }
.tabs { display: inline-flex; justify-self: start; gap: 4px; padding: 4px; border-radius: 9999px; background: var(--bg); border: 1px solid var(--edge); }
.tabs button { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 0; border-radius: 9999px; background: none; color: var(--label); cursor: pointer;
  font: 600 14px/20px var(--font); transition: background-color 300ms var(--ease), color 300ms var(--ease); }
.tabs button:hover { color: var(--fg); }
.tabs button[aria-selected="true"] { background: var(--edge); color: var(--fg); }
.os { display: grid; justify-items: start; gap: 12px; max-width: 680px; }
.os p { color: var(--label); }
.os p b { color: var(--fg); font-weight: 600; }
.os .meta { font-size: 14px; line-height: 20px; color: var(--dim); }
.os p code { padding: 2px 8px; border-radius: 8px; background: var(--bg); border: 1px solid var(--edge); }
.command { width: 100%; display: flex; align-items: center; gap: 12px; padding: 4px 4px 4px 16px; border-radius: 16px; background: var(--bg); border: 1px solid var(--edge); }
.command code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; padding-block: 8px; scrollbar-width: none; user-select: all; }
.copy { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--edge-strong); background: var(--raised); color: var(--fg); cursor: pointer;
  font: 600 14px/20px var(--font); transition: background-color 300ms var(--ease), transform 300ms var(--ease); }
.copy:hover { background: var(--edge); }
.copy:active { transform: scale(0.98); }
.copy.done { color: var(--gas); }
.android { margin-top: 16px; }
.android h3 { display: flex; align-items: center; gap: 8px; font-size: 18px; line-height: 28px; }
.android h3 .i { color: var(--label); }
.choices { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.soon { font-size: 14px; line-height: 20px; color: var(--dim); }
@media (max-width: 640px) { .panel { padding: 24px 16px; } .tabs { justify-self: stretch; } .tabs button { flex: 1; justify-content: center; white-space: nowrap; } }
@media (max-width: 420px) { .tabs .i { display: none; } }

/* ---------- questions ---------- */
.faq .list { max-width: 760px; display: grid; gap: 12px; }
.faq details { border-radius: 16px; background: var(--card); border: 1px solid var(--edge); transition: border-color 500ms var(--ease), opacity 900ms var(--ease), transform 900ms var(--ease), filter 900ms var(--ease); }
.faq details[open] { border-color: var(--edge-strong); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 24px; cursor: pointer; list-style: none; font-weight: 500; border-radius: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { color: var(--dim); transition: transform 500ms var(--ease); }
.faq details[open] summary .i { transform: rotate(180deg); }
.faq details p { padding: 0 24px 24px; color: var(--label); }
.faq details code { padding: 2px 8px; border-radius: 8px; background: var(--bg); border: 1px solid var(--edge); }
.faq details::details-content { block-size: 0; overflow: hidden; transition: block-size 500ms var(--ease), content-visibility 500ms var(--ease) allow-discrete; }
.faq details[open]::details-content { block-size: auto; }

.final { display: grid; justify-items: center; gap: 24px; text-align: center; }
.final h2 { font-size: 36px; line-height: 40px; letter-spacing: -0.02em; }

.foot { max-width: 1040px; margin: 0 auto; padding: 32px 24px 48px; display: flex; flex-wrap: wrap; gap: 12px 24px; font-size: 14px; line-height: 20px; color: var(--dim); }
.foot a { color: var(--label); text-decoration: none; }
.foot a:hover { color: var(--fg); }
.foot span { margin-left: auto; }
@media (max-width: 640px) { .foot span { margin-left: 0; } }

/* ---------- arriving on screen ---------- */
.js .reveal { opacity: 0; transform: translateY(64px); filter: blur(12px);
  transition: opacity 900ms var(--ease), transform 900ms var(--ease), filter 900ms var(--ease), border-color 500ms var(--ease); }
.js .reveal.in { opacity: 1; transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .tagline .w { color: var(--fg); transition: none; }
}

/* ---------- the privacy page and the 404 ---------- */
.doc { max-width: 680px; margin: 64px auto 0; padding: 96px 24px; }
.doc .kicker { margin-bottom: 8px; }
.doc h1 { font-size: 36px; line-height: 40px; letter-spacing: -0.02em; margin-bottom: 8px; }
.doc .updated { color: var(--dim); font-size: 14px; line-height: 20px; margin-bottom: 32px; }
.doc h2 { font-size: 20px; line-height: 28px; margin: 40px 0 12px; }
.doc p, .doc li { color: var(--label); }
.doc p + p { margin-top: 12px; }
.doc b { color: var(--fg); font-weight: 600; }
.doc ul { padding-left: 24px; display: grid; gap: 8px; margin: 12px 0; }
.doc code { padding: 2px 8px; border-radius: 8px; background: var(--card); border: 1px solid var(--edge); }
.lost { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 16px; text-align: center; padding: 24px; }
.lost h1 { font-size: 48px; line-height: 1; letter-spacing: -0.03em; }
.lost p { color: var(--label); }
