/* DriveDeck website. Mobile first: base styles are for phones; wider screens add to them.
   Look: a night drive, kept quiet. 2026 colours: Pantone's Cloud Dancer (#F0EEE9) for text and the main button, and
   WGSN/Coloro's Transformative Teal for surfaces and highlights. Light, sentence-case type on one scale; motion that
   reveals once and is switched off for people who prefer less motion. */

:root {
  /* Colour */
  --night: #0A1112;                      /* page */
  --night-2: #0F1A1B;
  --night-3: #142224;
  --ink: #F0EEE9;                        /* Cloud Dancer, Pantone Colour of the Year 2026 */
  --ink-2: rgba(240, 238, 233, .70);
  --ink-3: rgba(240, 238, 233, .46);
  --teal-deep: #1F5E5E;                  /* Transformative Teal (Coloro 092-37-14), WGSN Colour of the Year 2026 */
  --teal: #8CC9BE;                       /* its light tint, for small accents on the dark page */
  --on-teal: #0A1112;
  --line: rgba(240, 238, 233, .09);
  --line-teal: rgba(140, 201, 190, .32);
  --glass: linear-gradient(180deg, rgba(240, 238, 233, .055), rgba(240, 238, 233, .015));
  --signal: #E5483A;
  --bezel: #030607;
  --land: #12302D;
  --land-edge: #2E5C55;

  /* Type: one family, one scale */
  --fs-display: clamp(3.25rem, 9.2vw, 7.5rem);
  --fs-h2: clamp(2.1rem, 4.8vw, 3.6rem);
  --fs-h3: 1.25rem;
  --fs-lead: clamp(1.0625rem, 1.5vw, 1.3125rem);
  --fs-body: 1.0625rem;
  --fs-small: .9375rem;
  --fs-label: .8125rem;
  --ease: cubic-bezier(.2, .7, .2, 1);

  --font: "Saira", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: 16px;
  --max: 1200px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--night); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font); font-stretch: 100%;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-family: var(--font); text-wrap: balance; }
p { margin: 0; }
a { color: var(--teal); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(79, 227, 193, .35); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--teal); color: var(--on-teal); padding: 8px 14px; border-radius: 8px; z-index: 60; }
.skip:focus { left: 8px; }

/* Type */
.kicker { font-size: var(--fs-small); font-weight: 500; color: var(--teal); margin-bottom: 14px; }
.metal { font-weight: 300; letter-spacing: -.02em; color: var(--ink); }
h2.metal { font-size: var(--fs-h2); line-height: 1.06; }
h3 { font-size: var(--fs-h3); font-weight: 500; line-height: 1.3; color: var(--ink); }
.section-lead { margin-top: 20px; font-size: var(--fs-lead); font-weight: 300; line-height: 1.6; color: var(--ink-2); max-width: 38rem; }
.textlink { color: var(--ink); font-weight: 500; text-decoration-color: var(--teal); text-underline-offset: 5px; text-decoration-thickness: 1px; white-space: nowrap; }
.textlink:hover { color: var(--teal); }

/* Buttons: Cloud Dancer for the main one, a fine outline for the rest */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 28px; border-radius: 999px;
  font: 500 var(--fs-small)/1 var(--font); letter-spacing: .005em; text-decoration: none; text-align: center;
  color: var(--ink); background: transparent; border: 1px solid rgba(240, 238, 233, .28);
  transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.pill:hover { background: rgba(240, 238, 233, .07); border-color: rgba(240, 238, 233, .6); }
.pill--solid { background: var(--ink); color: var(--night); border-color: var(--ink); }
.pill--solid:hover { background: #fff; border-color: #fff; color: var(--night); }
.pill:active { transform: scale(.98); }
.pill--small { min-height: 42px; padding: 0 18px; font-size: .875rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-row .pill { flex: 1 1 230px; }
@media (min-width: 700px) { .cta-row .pill { flex: 0 1 auto; } }

.glass {
  background: var(--glass); border: 1px solid var(--line); border-radius: 20px;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}

/* Header */
.top { position: fixed; left: 0; right: 0; top: 0; z-index: 40; transition: background-color .3s, border-color .3s; border-bottom: 1px solid transparent; }
.top.is-solid { background: rgba(5, 12, 13, .82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.top__in { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand__mark { width: 34px; height: 34px; }
.brand__word { font-size: 1.125rem; font-weight: 600; font-stretch: 125%; letter-spacing: .1em; text-transform: uppercase; }
.top__nav { display: none; gap: 2px; margin: 0 auto; }
.top__nav a {
  color: var(--ink-2); text-decoration: none; padding: 10px 14px; border-radius: 999px;
  font-size: .75rem; font-weight: 500; font-stretch: 112%; letter-spacing: .16em; text-transform: uppercase;
}
.top__nav a:hover { color: var(--ink); background: rgba(255, 255, 255, .05); }
.top .pill { margin-left: auto; white-space: nowrap; }
@media (max-width: 400px) { .brand__word { letter-spacing: .05em; font-size: 1rem; } .top .pill { padding: 0 14px; letter-spacing: .1em; } }
@media (min-width: 900px) { .top__nav { display: flex; } .top .pill { margin-left: 0; } }

/* Hero: the photo settles, the headline rises line by line from a mask, then the rest fades in */
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: 100svh; display: grid; align-content: end; padding: 120px 0 clamp(64px, 11vh, 120px); }
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 38% 60%; transform: scale(1.08); animation: settle 2.8s var(--ease) forwards; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 17, 18, .78) 0%, rgba(10, 17, 18, .3) 55%, rgba(10, 17, 18, .05) 100%),
    linear-gradient(180deg, rgba(10, 17, 18, .5) 0%, rgba(10, 17, 18, 0) 32%, rgba(10, 17, 18, .25) 62%, var(--night) 100%);
}
.hero__in { display: grid; gap: 28px; justify-items: start; }
.hero__meta { display: inline-flex; align-items: center; gap: 12px; font-size: var(--fs-small); color: var(--ink-2); }
.hero__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 5px rgba(140, 201, 190, .14); flex: none; }
.hero__title { font-size: var(--fs-display); font-weight: 300; line-height: .98; letter-spacing: -.035em; }
.hero__line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.hero__line > span { display: block; transform: translateY(108%); animation: rise 1.2s var(--ease) forwards; animation-delay: calc(.3s + var(--i) * .14s); }
.hero__lead { font-size: var(--fs-lead); font-weight: 300; line-height: 1.6; color: var(--ink-2); max-width: 34rem; }
.hero__meta, .hero__lead, .hero__actions { opacity: 0; animation: fade-up 1s var(--ease) forwards; }
.hero__meta { animation-delay: .15s; }
.hero__lead { animation-delay: .75s; }
.hero__actions { animation-delay: .9s; }
.hero__facts { list-style: none; margin: 8px 0 0; padding: 22px 0 0; display: grid; gap: 14px; border-top: 1px solid rgba(240, 238, 233, .16); width: 100%; max-width: 760px; opacity: 0; animation: fade-up 1s var(--ease) 1.05s forwards; }
.hero__facts li { display: grid; gap: 2px; }
.hero__facts b { font-size: 1.25rem; font-weight: 400; letter-spacing: -.01em; }
.hero__facts span { font-size: var(--fs-small); color: var(--ink-2); }
.hero__facts { grid-template-columns: 1fr 1fr; }
.hero__facts a { display: grid; gap: 2px; color: inherit; text-decoration: none; }
.hero__facts a > span { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(140, 201, 190, .4); }
.hero__lead em { font-style: normal; color: var(--ink); }
@media (min-width: 640px) { .hero__facts { grid-template-columns: repeat(4, 1fr); gap: 24px; } }

/* Is your car in DriveDeck? A search over the app's own catalogue. */
.check { display: grid; gap: 32px; }
.check__intro .lead { margin-top: 18px; max-width: 34rem; color: var(--ink-2); font-size: var(--fs-lead); font-weight: 300; line-height: 1.6; }
.check__intro .lead b { color: var(--ink); font-weight: 400; }
.check__key { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; font-size: var(--fs-small); color: var(--ink-3); }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 11px; border: 1px solid var(--line); font-size: .75rem; font-style: normal; color: var(--ink-2); white-space: nowrap; }
.tag--photo { border-color: var(--line-teal); color: var(--teal); background: rgba(31, 94, 94, .35); }
.check__tool { border-radius: 24px; padding: 18px; display: grid; gap: 14px; min-width: 0; }
.check__search { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px; border-radius: 26px; background: rgba(240, 238, 233, .06); border: 1px solid var(--line); }
.check__search:focus-within { border-color: var(--teal); }
.check__search svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--ink-3); stroke-width: 2; stroke-linecap: round; }
.check__search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; color: var(--ink); font: inherit; font-size: 1rem; outline: none; }
.check__search input::placeholder { color: var(--ink-3); }
.check__makes { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -18px; padding: 0 18px; }
.check__makes::-webkit-scrollbar { display: none; }
.check__makes button { flex: none; height: 34px; padding: 0 14px; border-radius: 17px; border: 1px solid var(--line); background: none; color: var(--ink-2); font: inherit; font-size: var(--fs-small); cursor: pointer; }
.check__makes button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--night); }
.check__count { font-size: var(--fs-small); color: var(--ink-3); }
.check__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; max-height: 360px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.check__list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 12px; padding: 11px 4px; border-bottom: 1px solid var(--line); }
.check__list b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.check__list small { grid-column: 1; font-size: .8125rem; color: var(--ink-3); }
.check__list .tag { grid-column: 2; grid-row: 1 / 3; }
.check__none { padding: 14px 4px; color: var(--ink-2); font-size: var(--fs-small); }
.check__none a { color: var(--teal); }
@media (min-width: 1000px) { .check { grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: 64px; align-items: start; } .check__tool { padding: 24px; } .check__makes { margin: 0 -24px; padding: 0 24px; } }
.help__more { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; color: var(--ink-3); font-size: var(--fs-small); }
.hero__scroll {
  position: absolute; right: var(--gutter); bottom: 28px; display: none; align-items: center; gap: 14px;
  color: var(--ink-3); text-decoration: none; font-size: var(--fs-label); writing-mode: vertical-rl;
}
.hero__scroll::after { content: ""; width: 1px; height: 56px; background: linear-gradient(var(--ink-3), transparent); }
@media (min-width: 1000px) { .hero__scroll { display: inline-flex; right: 32px; } }
/* The live player: the launcher itself in a slim 10-inch player. It rises in after the headline, the screen wakes
   with one pass of light, then the app plays its welcome and drives a short loop (main.js, ?embed). */
.hero__player { position: relative; margin: 0; width: 100%; max-width: 560px; display: grid; gap: 14px; opacity: 0; animation: player-in 1.6s var(--ease) .55s forwards; }
.hero__player::after {
  content: ""; position: absolute; left: 8%; right: 8%; bottom: 6%; height: 30%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(140, 201, 190, .30), transparent); filter: blur(18px);
  opacity: 0; transition: opacity 1.6s var(--ease);
}
.hero__player.is-on::after { opacity: 1; }
.hero__device {
  position: relative; display: block; padding: 2.1%; border-radius: clamp(12px, 1.6vw, 20px); color: inherit;
  background: linear-gradient(155deg, #2a3133 0%, #0d1213 34%, #050708 100%);
  box-shadow: inset 0 0 0 1px rgba(240, 238, 233, .09), inset 0 1px 0 rgba(255, 255, 255, .14),
              0 50px 90px -40px rgba(0, 0, 0, .9), 0 18px 40px -20px rgba(0, 0, 0, .7);
  transition: transform .8s var(--ease), box-shadow .8s var(--ease);
}
.hero__device::before { /* the microphone and reset holes on the bezel */
  content: ""; position: absolute; left: .85%; top: 44%; width: 4px; height: 16px;
  background: radial-gradient(circle, #000 1.3px, rgba(255, 255, 255, .06) 1.6px, transparent 2px) 0 0 / 4px 8px repeat-y;
}
.hero__screen { position: relative; display: block; aspect-ratio: 1024 / 600; border-radius: clamp(4px, .5vw, 7px); overflow: hidden; background: #000; }
.hero__screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; pointer-events: none; opacity: 0; transition: opacity 1.2s var(--ease); }
.hero__player.is-on .hero__screen iframe { opacity: 1; }
.hero__screen::after { /* the glass: a soft fixed reflection, and one pass of light when the screen wakes */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .13) 49%, transparent 60%) no-repeat -120% 0 / 100% 100%,
              linear-gradient(160deg, rgba(255, 255, 255, .07), transparent 38%);
}
.hero__player.is-on .hero__screen::after { animation: sheen 1.9s var(--ease) .5s forwards; }
.hero__cap { display: inline-flex; align-items: center; gap: 10px; justify-self: center; font-size: var(--fs-label); color: var(--ink-3); }
.hero__live { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(140, 201, 190, .14); }
.hero__player.is-on .hero__live { animation: pulse 2.4s ease-in-out infinite; }
@media (hover: hover) { .hero__device:hover { transform: translateY(-4px); } }
.hero__device:focus-visible { outline: 2px solid var(--teal); outline-offset: 6px; }
@media (min-width: 1000px) {
  .hero__in { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); column-gap: clamp(32px, 4vw, 80px); align-items: center; }
  .hero__title { font-size: clamp(3.25rem, 7.2vw, 7rem); }
  .hero__line > span { white-space: nowrap; }
  .hero__in > * { grid-column: 1; }
  .hero__player { grid-column: 2; grid-row: 1 / 5; justify-self: end; max-width: 760px; perspective: 1800px; }
  .hero__device { transform: rotateY(-9deg) rotateX(2deg); transform-origin: 70% 50%; }
  @media (hover: hover) { .hero__device:hover { transform: rotateY(-5deg) rotateX(1deg) translateY(-4px); } }
  .hero__facts { grid-column: 1 / -1; max-width: none; }
}
@media (max-width: 699px) { .hero { padding-top: 96px; } .hero__in { gap: 22px; } .hero__player { gap: 10px; } }
@keyframes player-in { from { opacity: 0; transform: translateY(28px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes sheen { from { background-position: -120% 0, 0 0; } to { background-position: 220% 0, 0 0; } }
@keyframes settle { to { transform: scale(1); } }
@keyframes rise { to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* The deck: a scaled replica of the app on a 1024 x 600 player. Everything inside is sized in cqw. */
.deck-frame { margin: 0 calc(var(--gutter) * -1); }
.deck {
  position: relative; overflow: hidden; isolation: isolate; aspect-ratio: 1024 / 600; container-type: inline-size;
  background: #1A2A2C; border: 6px solid var(--bezel); border-left-width: 0; border-right-width: 0;
  font-family: Roboto, "Segoe UI", system-ui, sans-serif; user-select: none; -webkit-user-select: none;
}
@media (min-width: 560px) {
  .deck-frame { margin: 0; }
  .deck {
    border-width: 12px; border-radius: 22px;
    box-shadow: 0 0 0 1px rgba(79, 227, 193, .22), 0 50px 90px -40px rgba(0, 0, 0, .9), 0 0 80px -30px rgba(79, 227, 193, .45);
  }
}

.deck__scene { position: absolute; inset: 0 0 auto 0; aspect-ratio: 1100 / 614; z-index: 0; }
.deck__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s ease; }
.deck__photo.is-on { opacity: 1; }
/* As in the app: day photos are lightened at the top and night photos darkened, so the clock and cards read clearly */
.deck__scene::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; transition: background .6s;
  background: linear-gradient(rgba(255, 255, 255, .69) 0%, rgba(255, 255, 255, .19) 15%, rgba(255, 255, 255, 0) 34%);
}
.deck[data-time="night"] .deck__scene::after { background: linear-gradient(rgba(0, 0, 0, .75) 0%, rgba(0, 0, 0, .19) 19%, rgba(0, 0, 0, .09) 69%, transparent 69%); }

.deck__roadside { position: absolute; left: 0; right: 0; top: 0; height: 65.4%; z-index: 1; pointer-events: none; }
.deck__roadside img { position: absolute; left: 0; bottom: -.3cqw; width: auto; will-change: transform; transition: filter .6s; }
.deck__roadside img[data-kind="lamp"] { height: 30cqw; }
.deck__roadside img[data-kind="palm"] { height: 27cqw; }
.deck__roadside img[data-kind="tree"] { height: 19cqw; }
.deck[data-time="night"] .deck__roadside img { filter: brightness(.5) saturate(.7); }

.deck__road { position: absolute; left: 0; right: 0; top: 65.4%; bottom: 0; z-index: 2; overflow: hidden; background: linear-gradient(#40464B, #2A3034 35%, #1D2124); transition: filter .6s; }
.deck[data-time="night"] .deck__road { filter: brightness(.62); }
/* Weather: cloud greys the sky; rain darkens it, wets the road (a blurred mirror of the scene) and falls (canvas, main.js) */
.deck__scene { transition: filter .8s; }
.deck[data-weather="cloudy"] .deck__scene { filter: saturate(.7) brightness(.88) contrast(.96); }
.deck[data-weather="rain"] .deck__scene { filter: saturate(.58) brightness(.72) contrast(.94); }
.deck[data-weather="rain"] .deck__roadside img { filter: brightness(.7) saturate(.7); }
.deck[data-weather="rain"][data-time="night"] .deck__roadside img { filter: brightness(.42) saturate(.6); }
.deck[data-weather="rain"] .deck__road { filter: brightness(.85); }
.deck[data-weather="rain"][data-time="night"] .deck__road { filter: brightness(.58); }
.deck__wet {
  position: absolute; left: 0; right: 0; top: 0; height: 100%; pointer-events: none;
  background-repeat: no-repeat; background-size: 100cqw auto; background-position: 0 -18cqw;
  transform: scaleY(-1); filter: blur(.45cqw); opacity: 0; transition: opacity .8s;
  -webkit-mask-image: linear-gradient(to top, #000, transparent 72%); mask-image: linear-gradient(to top, #000, transparent 72%);
}
.deck[data-weather="rain"] .deck__wet { opacity: .4; }
.deck__rain { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; pointer-events: none; }
.deck__kerb { position: absolute; left: 0; right: 0; top: 0; height: .8cqw; background: linear-gradient(#D7DADC, #9EA4A8); }
.deck__lane { position: absolute; left: 0; width: 300%; will-change: transform; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .88) 0 7.2cqw, transparent 7.2cqw 14.6cqw); }
.deck__lane--far { top: 7.7%; height: .45cqw; opacity: .55; }
.deck__lane--near { top: 35.6%; height: .9cqw; }

.deck__car { position: absolute; z-index: 3; left: 33%; bottom: 25.8%; width: var(--car-w, 53.5%); will-change: transform; }
.deck__body { position: relative; transform-origin: 50% 100%; will-change: transform; }
.deck__carimg { width: 100%; height: auto; position: relative; z-index: 2; }
.deck__shadow { position: absolute; left: 2%; right: 2%; bottom: -1.4cqw; height: 3.2cqw; z-index: 0; background: radial-gradient(closest-side, rgba(0, 0, 0, .6), rgba(0, 0, 0, .25) 60%, transparent); }
.deck__wheel {
  position: absolute; z-index: 3; aspect-ratio: 1; border-radius: 50%; overflow: hidden; pointer-events: none;
  left: calc(var(--x) * 100%); top: calc(var(--y) * 100%); width: var(--d); transform: translate(-50%, -50%);
}
/* Three images of the same wheel, made by tools/web_cars.py: still, lightly spun and fully spun. The two spun ones
   fade in as the wheel turns faster, which is how motion blur looks on a real wheel. */
.deck__wheel b { position: absolute; inset: 0; border-radius: 50%; background: no-repeat center / 100% 100%; will-change: transform; }
.deck__wheel b + b { opacity: var(--spin1, 0); }
.deck__wheel b + b + b { opacity: var(--spin2, 0); }
.deck__tail, .deck__head { position: absolute; z-index: 3; border-radius: 50%; pointer-events: none; left: calc(var(--x) * 100%); top: calc(var(--y) * 100%); transform: translate(-50%, -50%); opacity: 0; transition: opacity .25s; }
.deck__head { width: 5cqw; height: 3.2cqw; background: radial-gradient(closest-side, #FFFDF0, rgba(255, 246, 210, .7) 40%, transparent); mix-blend-mode: screen; }
.deck__tail { width: 4cqw; height: 3.6cqw; background: radial-gradient(closest-side, rgba(255, 60, 50, .95), rgba(230, 30, 30, .5) 45%, transparent); mix-blend-mode: screen; }
.deck__beam { position: absolute; z-index: 1; pointer-events: none; left: calc(var(--hx) * 100%); top: calc(var(--hy) * 100%); width: 58cqw; height: 24cqw; transform: translate(-1.5cqw, -40%); filter: blur(.9cqw); mix-blend-mode: screen; opacity: 0; transition: opacity .3s; }
.deck__beam::before { content: ""; position: absolute; inset: 0; clip-path: polygon(0 40%, 100% 4%, 100% 100%, 0 58%); background: radial-gradient(ellipse 100% 70% at 0 50%, rgba(255, 248, 222, .85), rgba(255, 246, 214, .3) 45%, transparent 85%); }
.deck__pool { position: absolute; z-index: 0; pointer-events: none; left: 88%; bottom: -3.4cqw; width: 46cqw; height: 6.5cqw; background: radial-gradient(closest-side, rgba(255, 240, 200, .42), transparent); opacity: 0; transition: opacity .3s; }
.deck[data-lights="on"] .deck__head { opacity: 1; }
.deck[data-lights="on"] .deck__tail { opacity: .75; }
.deck[data-lights="on"][data-time="night"] .deck__beam, .deck[data-lights="on"][data-time="night"] .deck__pool { opacity: 1; }
.deck[data-lights="on"][data-time="day"] .deck__beam { opacity: .25; }
.deck.is-braking .deck__tail { opacity: 1; }
.deck.is-blinking .deck__head, .deck.is-blinking .deck__tail { animation: blink .9s steps(1) 1; }
@keyframes blink { 0%, 50% { opacity: 1; } 25%, 75%, 100% { opacity: 0; } }

/* HUD: the launcher's own home screen, laid out on its 1024 x 600 grid. 1 design pixel = var(--u). */
.deck__hud {
  --u: calc(100cqw / 1024);
  /* Card glass, from the app (HomeView.GLASS_*): a blurred copy of the scene, a tint that fades top to bottom,
     and a fine bright edge. Clear is the app's default; Frosted and Clearest are its other two settings. */
  --g-top: rgba(255, 255, 255, .36); --g-bot: rgba(242, 244, 247, .26); --g-chip: rgba(255, 255, 255, .47);
  --g-edge-top: rgba(255, 255, 255, 1); --g-edge-bot: rgba(255, 255, 255, .25); --g-blur: calc(12 * var(--u));
  position: absolute; inset: 0; z-index: 4; pointer-events: none; color: #16191C;
  font-family: Roboto, "Segoe UI", system-ui, sans-serif; transition: color .4s;
}
.deck[data-glass="frosted"] .deck__hud { --g-top: rgba(255, 255, 255, .78); --g-bot: rgba(242, 244, 247, .69); --g-chip: rgba(255, 255, 255, .78); }
.deck[data-glass="clearest"] .deck__hud { --g-top: rgba(255, 255, 255, .22); --g-bot: rgba(242, 244, 247, .15); --g-chip: rgba(255, 255, 255, .35); --g-blur: calc(7 * var(--u)); }
.deck[data-time="night"] .deck__hud {
  color: #F2F5F7;
  --g-top: rgba(20, 24, 32, .35); --g-bot: rgba(10, 13, 18, .47); --g-chip: rgba(12, 16, 22, .44);
  --g-edge-top: rgba(255, 255, 255, .3); --g-edge-bot: rgba(255, 255, 255, .06);
}
.deck[data-time="night"][data-glass="frosted"] .deck__hud { --g-top: rgba(20, 24, 32, .77); --g-bot: rgba(10, 13, 18, .85); --g-chip: rgba(12, 16, 22, .69); }
.deck[data-time="night"][data-glass="clearest"] .deck__hud { --g-top: rgba(20, 24, 32, .22); --g-bot: rgba(10, 13, 18, .31); --g-chip: rgba(12, 16, 22, .31); }
.hud-g, .hud-hit {
  position: absolute; left: calc(var(--x) * var(--u)); top: calc(var(--y) * var(--u));
  width: calc(var(--w) * var(--u)); height: calc(var(--h) * var(--u));
}
.hud-g {
  border-radius: calc(16 * var(--u)); background: linear-gradient(var(--g-top), var(--g-bot));
  -webkit-backdrop-filter: blur(var(--g-blur)) saturate(1.25); backdrop-filter: blur(var(--g-blur)) saturate(1.25);
}
/* The edge: a 1.2 px line, bright at the top and fading down, drawn as a ring so the inside stays clear */
.hud-g::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: calc(1.2 * var(--u)); pointer-events: none;
  background: linear-gradient(var(--g-edge-top), var(--g-edge-bot));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.hud-chip { border-radius: calc(10 * var(--u)); background: var(--g-chip); }
.hud-dock { border-radius: calc(20 * var(--u)); }
.hud-g svg, .hud-top { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hud-top { pointer-events: none; }
.hud-hit { pointer-events: auto; cursor: pointer; background: transparent; border: 0; border-radius: 999px; padding: 0; }
.deck__hud text { fill: currentColor; font-family: inherit; }
.t-clock { font-size: 40px; font-weight: 300; letter-spacing: -.5px; }
.t-ampm { font-size: 14px; font-weight: 500; }
.t-date { font-size: 15px; }
.t-dot { font-size: 9px; fill: var(--eco, #2BC48A) !important; }
.t-pill { fill: rgba(255, 255, 255, .28); stroke: currentColor; stroke-width: 1.5; }
.deck[data-time="night"] .t-pill { fill: rgba(0, 0, 0, .22); }
.t-pilltext { font-size: 11.5px; font-weight: 500; letter-spacing: 1.6px; }
.ic-gear rect { fill: currentColor; }
.ic-ring { fill: none; stroke: currentColor; stroke-width: 2.2; }
.t-label { font-size: 11px; font-weight: 700; letter-spacing: 1.1px; }
.t-ecofill { fill: var(--eco, #2BC48A); }
.t-small { font-size: 12px; }
.t-cap text { font-size: 11px; letter-spacing: 1.1px; }
.t-dim { opacity: .62; }
.t-speed { font-size: 68px; font-weight: 300; font-variant-numeric: tabular-nums; }
.t-rule { stroke: currentColor; stroke-width: 1; opacity: .18; }
.t-value text { font-size: 18px; font-weight: 500; }
.t-tick { fill: rgba(128, 136, 142, .34); }
.t-tick.on { fill: var(--eco, #2BC48A); }
[data-speed-card].is-over .t-tick.on { fill: var(--signal); }
.hud-limit circle { fill: #fff; stroke: #E5483A; stroke-width: 3.5; }
.hud-limit text { font-size: 11px; font-weight: 700; fill: #111 !important; text-anchor: middle; }
.hud-limit { transform-box: fill-box; transform-origin: center; }
[data-speed-card].is-over .hud-limit { animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.18); } }
.t-art { fill: rgba(128, 136, 142, .24); }
.t-note { fill: none; stroke: currentColor; stroke-width: 2.4; opacity: .8; stroke-linecap: round; stroke-linejoin: round; }
.t-title { font-size: 18px; font-weight: 700; }
.t-sub { font-size: 13.5px; opacity: .72; }
.t-track { stroke: currentColor; stroke-width: 3; stroke-linecap: round; opacity: .2; }
.t-progress { stroke: var(--eco, #2BC48A); stroke-width: 3; stroke-linecap: round; }
.t-fill { fill: currentColor; }
.t-ring { fill: none; stroke: var(--eco, #2BC48A); stroke-width: 2.5; }
.t-turnbg { fill: #2BC48A; }
.t-arrow { fill: none; stroke: #fff; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.t-temp { font-size: 40px; font-weight: 300; }
.t-chip { font-size: 13.5px; font-weight: 500; }
.ic-l { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.t-dock { font-size: 13px; }
.hud-dock .ic-s { fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.hud-dock .ic-f { fill: #fff; }
.hud-dock .ic-gear rect { fill: #fff; }
.hud-dock .ic-ring { stroke: #fff; }

/* Full screen view of the deck (phones turn sideways for it) */
  display: inline-flex; align-items: center; gap: 8px; margin: 10px var(--gutter) 0; min-height: 40px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); color: var(--ink-2); cursor: pointer;
  font: 600 .6875rem/1 var(--font); font-stretch: 112%; letter-spacing: .16em; text-transform: uppercase;
}
.deck-frame.is-full { margin: 0; display: grid; place-items: center; background: #000; width: 100vw; height: 100vh; }
.deck-frame.is-full .deck { width: min(100vw, calc(100vh * 1024 / 600)); border: 0; border-radius: 0; box-shadow: none; }

/* Shared controls */
.console__label {
  display: block; margin-bottom: 10px; color: var(--ink-2);
  font-size: .6875rem; font-weight: 600; font-stretch: 112%; letter-spacing: .18em; text-transform: uppercase;
}
.linkish { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 2px; background: none; border: 0; color: var(--teal); cursor: pointer; font: 600 .875rem/1 var(--font); }
.linkish svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.chip {
  flex: none; scroll-snap-align: start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 14px 4px 4px;
  border-radius: 999px; cursor: pointer; background: rgba(255, 255, 255, .04); color: var(--ink-2); border: 1px solid var(--line);
  font: 500 .875rem/1 var(--font); white-space: nowrap; transition: border-color .2s, color .2s, background-color .2s;
}
.chip:hover { color: var(--ink); border-color: rgba(255, 255, 255, .2); }
.chip img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: var(--night-3); }
.chip[aria-checked="true"] { border-color: var(--teal); color: var(--ink); background: rgba(79, 227, 193, .1); box-shadow: 0 0 18px -8px rgba(79, 227, 193, .8); }

.seg { display: inline-flex; padding: 4px; gap: 2px; border-radius: 999px; background: rgba(0, 0, 0, .35); border: 1px solid var(--line); max-width: 100%; }
.seg button {
  min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; cursor: pointer; background: transparent; color: var(--ink-2);
  font: 600 .75rem/1 var(--font); font-stretch: 110%; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
}
.seg button:hover { color: var(--ink); }
.seg button[aria-checked="true"] { background: var(--teal); color: var(--on-teal); }

.swatches { display: flex; flex-wrap: wrap; gap: 12px; padding: 4px; }
.swatch {
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer; padding: 0; background: var(--c); border: 0;
  box-shadow: inset 0 -8px 12px rgba(0, 0, 0, .35), inset 0 8px 12px rgba(255, 255, 255, .35), 0 0 0 1px rgba(255, 255, 255, .15);
}
.swatch[aria-checked="true"] { outline: 2px solid var(--teal); outline-offset: 4px; }


/* The simulator: a car's dashboard, its screen running DriveDeck. Scrolling moves into the screen (main.js). */
.cabin { position: relative; height: 230svh; background: #000; }
.cabin__pin { position: sticky; top: 0; height: 100svh; overflow: hidden; }
/* A 48 px copy of the dashboard photo, blurred: shows at once, so the section never looks empty while the photo loads */
.cabin__pin::before { content: ""; position: absolute; inset: -40px; background: url("data:image/webp;base64,UklGRmABAABXRUJQVlA4IFQBAAAwBwCdASowABsAPrVSoU0nJKMiJWsw4BaJYwC9XHf//9J70aERM+7LAa9Guc1xY0ehimsAnIP4fROckKyMPqHQAAAA/vzQXU3l0wc1ZxqrYQlwb6IB605GHymONyd+xPDh587ByWRzbQx7GuhJ0tR13LQvW7VZ6K8LFfZQ3rIXUwrt9n9/yM3chHKTL3HuVvnCsm7Xa+sgBMXWg9leRhM/S7hCG4IoClDMZHdxZe1xcLNQ0tFd2Obx1mv/YC+zcyxtMoIx5CEhazQuiiJSLD0XF5AEIQCHdL7IqUH/GPK9KK7KSS7sSMU5m9sTKwzFRDWHutRugnCtLwBbkbiypPj9dfu/bgLZH7BGXxv+Tk8fcL5s7prmmBA/dCVm2/w2MvrQqLm6JM1ioIEPZJElJRrwQHUzZb6U6sEor2QLoiVp2CKZMzTZ9VUd2eWhWPFFb5cYgAAA") center / cover; filter: blur(18px) brightness(.8); }
.cabin__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; transform-origin: 0 0; will-change: transform; }
.cabin__shade { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 90% at 50% 55%, transparent 35%, rgba(0, 0, 0, .55) 100%), linear-gradient(180deg, rgba(5, 12, 13, .7) 0%, transparent 28%); }
.cabin__intro { position: absolute; left: 0; right: 0; top: 92px; text-align: center; display: grid; gap: 10px; justify-items: center; pointer-events: none; }
.cabin__intro h2.metal { font-size: clamp(1.6rem, 6.4vw, 3.2rem); }
.cabin__intro .kicker { margin: 0; }
.cabin__hint { font-size: .75rem; font-weight: 600; font-stretch: 112%; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); }
.cabin__hint::after { content: ""; display: block; width: 1px; height: 28px; margin: 10px auto 0; background: linear-gradient(var(--teal), transparent); }
.cabin__screen { position: absolute; left: 0; top: 0; transform-origin: 0 0; background: #000; border-radius: 1.2%; will-change: transform; display: grid; align-content: center; }
.cabin__screen .deck-frame { margin: 0; }
/* Glass: a faint reflection and the shadow of the bezel's edge, so the screen sits in the dash, not on top of it */
.cabin__screen::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit;
  background:
    linear-gradient(118deg, rgba(255, 255, 255, .09) 0%, rgba(255, 255, 255, .025) 26%, transparent 40%),
    radial-gradient(130% 90% at 50% 125%, rgba(0, 0, 0, .28), transparent 60%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .7), inset 0 0 26px rgba(0, 0, 0, .5);
}
.cabin__screen .deck { border: 0; border-radius: 0; box-shadow: none; }
.cabin.is-static { height: 100svh; }
.cabin.is-static .cabin__pin { position: relative; }

.console__label em { font-style: normal; color: var(--ink); letter-spacing: .1em; margin-left: 6px; }
.deck-exit {
  display: none; position: fixed; top: 12px; right: 12px; z-index: 5; min-height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .25); background: rgba(0, 0, 0, .55); color: #fff; cursor: pointer;
  font: 600 .6875rem/1 var(--font); font-stretch: 112%; letter-spacing: .16em; text-transform: uppercase;
}
.deck-frame.is-full .deck-exit { display: block; }

/* Simulator controls: one bar under the screen. Town and car open a small panel above it (a sheet on phones). */
.simbar { position: absolute; z-index: 5; left: 12px; top: 0; opacity: 0; pointer-events: none; transition: opacity .35s ease; }
.simbar.is-on { opacity: 1; pointer-events: auto; }
.simbar__bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px; border-radius: 22px;
  background: rgba(8, 16, 17, .74); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .9);
}
.simbtn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 6px 14px 6px 6px; border-radius: 16px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .04); color: var(--ink); cursor: pointer;
  font: 500 .9375rem/1.1 var(--font); text-align: left; transition: border-color .2s, background-color .2s, color .2s;
}
.simbtn:hover { border-color: var(--line-teal); background: rgba(79, 227, 193, .07); }
.simbtn[aria-expanded="true"] { border-color: var(--teal); background: rgba(79, 227, 193, .12); }
.simbtn--pick { flex: 1 1 150px; min-width: 0; }
.simbtn__thumb { width: 36px; height: 36px; border-radius: 11px; object-fit: cover; flex: none; background: var(--night-3); }
.simbtn__icon { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 50%; background: rgba(79, 227, 193, .1); border: 1px solid var(--line-teal); color: var(--teal); }
.simbtn__icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.label-icon { display: inline-block; width: 15px; height: 15px; vertical-align: -3px; margin-right: 6px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pop--sky { width: min(420px, 100%); }
.pop .seg--icons span { display: inline; }
.seg[data-cars] { flex-wrap: wrap; border-radius: 18px; }
.simbtn__swatch {
  width: 36px; height: 36px; border-radius: 50%; flex: none; background: #7FA9C9;
  box-shadow: inset 0 -7px 10px rgba(0, 0, 0, .35), inset 0 7px 10px rgba(255, 255, 255, .35), 0 0 0 1px rgba(255, 255, 255, .16);
}
.simbtn__text { display: grid; gap: 3px; min-width: 0; flex: 1; }
.simbtn__text small { font-size: .625rem; font-weight: 600; font-stretch: 112%; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); }
.simbtn__text b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.simbtn__chev { width: 14px; height: 14px; flex: none; fill: none; stroke: var(--ink-2); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.simbtn[aria-expanded="true"] .simbtn__chev { transform: rotate(180deg); }
.simbtn--icon { padding: 0 14px; gap: 8px; color: var(--ink-2); font-size: .6875rem; font-weight: 600; font-stretch: 110%; letter-spacing: .14em; text-transform: uppercase; }
.simbtn--icon.is-on { color: var(--teal); border-color: var(--line-teal); }
.simbtn--square { width: 50px; padding: 0; justify-content: center; }
.simbtn--icon svg, .seg--icons svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.simbar .seg { min-height: 50px; align-items: stretch; border-radius: 16px; }
.simbar .seg button { border-radius: 12px; }
.seg--speed { flex: 1 1 250px; }
.seg--speed button { flex: 1; padding: 0 10px; }
.seg--speed small { font-size: .5625rem; opacity: .75; letter-spacing: .06em; }
.seg--icons button { display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; }
.simbar__tools { display: flex; align-items: center; gap: 8px; flex: 1 1 auto; justify-content: space-between; }
.simbar__msg { margin: 8px 8px 0; font-size: .875rem; color: #FFB3A7; text-shadow: 0 1px 8px rgba(0, 0, 0, .8); }
.simbar__msg:empty { display: none; }
@media (max-width: 559px) { .seg--icons span, .simbtn--icon span { display: none; } .simbtn--icon { padding: 0; width: 50px; justify-content: center; } }
@media (min-width: 1000px) { .simbar__tools { flex: 0 0 auto; } }

.pop {
  position: absolute; z-index: 6; left: 0; bottom: calc(100% + 10px); width: min(580px, 100%); max-height: min(60svh, 560px); overflow: auto;
  padding: 16px 18px 18px; border-radius: 22px; background: rgba(8, 17, 18, .95); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .9);
  overscroll-behavior: contain; scrollbar-width: thin;
}
.pop--car { width: min(460px, 100%); }
.pop__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.pop__title { font-size: .6875rem; font-weight: 600; font-stretch: 112%; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); }
.pop__close { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--ink-2); cursor: pointer; }
.pop__close:hover { color: var(--ink); border-color: var(--line-teal); }
.pop__close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.pop__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.pop__search {
  flex: 1 1 220px; min-width: 0; min-height: 46px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line);
  background: rgba(0, 0, 0, .4); color: var(--ink); font: 500 1rem/1 var(--font);
}
.pop__search::placeholder { color: var(--ink-3); }
.pop__search:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(79, 227, 193, .18); }
.pop__msg { font-size: .875rem; color: var(--ink-2); }
.pop__msg:not(:empty) { margin-top: 10px; }
.pop__group { padding-top: 14px; }
.pop__region { margin-bottom: 8px; font-size: .625rem; font-weight: 600; font-stretch: 112%; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
.pop__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pop .chip { min-height: 42px; padding: 3px 13px 3px 3px; font-size: .875rem; }
.pop .chip img { width: 34px; height: 34px; }
.pop__empty { margin-top: 14px; color: var(--ink-2); font-size: .9375rem; }
.pop__note { margin-top: 16px; font-size: .8125rem; color: var(--ink-3); }
.pop__gap { margin-top: 18px; }
@media (max-width: 999px) {
  .pop {
    position: fixed; left: 0; right: 0; bottom: 0; width: auto; max-height: 78svh; border-radius: 26px 26px 0 0;
    padding: 14px 16px calc(20px + env(safe-area-inset-bottom)); box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .55);
  }
  .pop--car { width: auto; }
  .pop::before { content: ""; display: block; width: 40px; height: 4px; margin: 0 auto 12px; border-radius: 4px; background: rgba(255, 255, 255, .22); }
  html.has-sheet { overflow: hidden; }
}

/* Numbers */
.stats { padding: 28px 0 8px; }
.stats__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin: 0; background: var(--line); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.stats__list div { background: var(--night); padding: 22px 18px; display: flex; flex-direction: column-reverse; gap: 4px; }
.stats__list dd { margin: 0; font-size: clamp(2rem, 9vw, 3.4rem); font-weight: 700; font-stretch: 125%; line-height: 1; color: var(--ink); }
.stats__list dt { font-size: .75rem; font-stretch: 110%; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
@media (min-width: 800px) { .stats__list { grid-template-columns: repeat(4, 1fr); } .stats__list div { padding: 30px 28px; } }

/* Sections */
.band { padding: 72px 0; }
@media (min-width: 1000px) { .band { padding: 120px 0; } }

/* Screens with tabs */
.screens { margin-top: 36px; display: grid; gap: 16px; }
.tabs button span { display: none; }
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); }
.tabs button {
  min-height: 42px; padding: 0 20px; border-radius: 999px; border: 0; background: transparent; cursor: pointer; color: var(--ink-2);
  font: 600 .75rem/1 var(--font); font-stretch: 112%; letter-spacing: .16em; text-transform: uppercase;
}
.tabs button[aria-selected="true"] { background: rgba(79, 227, 193, .12); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-teal); }
.screens__panel { margin: 18px 0 0; }
.screens__panel img {
  width: 100%; height: auto; border-radius: 16px; border: 8px solid var(--bezel); background: var(--bezel);
  box-shadow: 0 0 0 1px rgba(79, 227, 193, .16), 0 40px 80px -40px rgba(0, 0, 0, .9);
}
.screens__panel figcaption { margin-top: 12px; color: var(--ink-2); font-size: .9375rem; }
@media (min-width: 900px) {
  /* Looks listed on the left with a line each; the screenshot at a comfortable size on the right */
  .screens { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 48px; align-items: center; }
  .tabs { flex-direction: column; align-self: center; gap: 6px; padding: 6px; border-radius: 22px; }
  .tabs button { display: grid; gap: 6px; min-height: 0; padding: 16px 18px; border-radius: 16px; text-align: left; }
  .tabs button span { display: block; font-size: .9375rem; font-weight: 400; font-stretch: 100%; letter-spacing: 0; text-transform: none; color: var(--ink-2); line-height: 1.45; }
  .screens__panel { margin: 0; justify-self: center; width: min(100%, 720px); }
  .screens__panel img { border-width: 10px; border-radius: 20px; }
  .screens__panel figcaption { display: none; }
}

/* Feature cards: a picture each (tools/web_images.py) that settles in as the card appears. Phones swipe along one
   row with a progress line; wider screens get a mosaic with wide cards. */
.cards {
  display: flex; gap: 12px; margin: 40px calc(var(--gutter) * -1) 0; padding: 4px var(--gutter) 4px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
}
.cards::-webkit-scrollbar { display: none; }
.card { flex: 0 0 82%; scroll-snap-align: center; display: flex; flex-direction: column; overflow: hidden; border-radius: 24px; background: var(--glass); border: 1px solid var(--line); }
.card__media { position: relative; margin: 0; height: 200px; overflow: hidden; background: var(--night-3); }
.card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(10, 17, 18, .6)); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.8s var(--ease); }
.card[data-reveal] .card__media img { transform: scale(1.14); }
.card[data-reveal].is-in .card__media img { transform: scale(1); }
@media (hover: hover) { .card[data-reveal].is-in:hover .card__media img { transform: scale(1.05); } }
.card__body { display: grid; gap: 8px; padding: 20px 22px 24px; }
.card__body p { color: var(--ink-2); font-size: var(--fs-small); }
.carousel-progress { position: relative; width: 120px; height: 2px; margin: 16px auto 0; border-radius: 2px; background: var(--line); overflow: hidden; }
.carousel-progress span { position: absolute; top: 0; bottom: 0; left: 0; width: 30%; border-radius: 2px; background: var(--teal); }
@media (min-width: 700px) {
  .cards { display: grid; grid-template-columns: repeat(2, 1fr); overflow: visible; margin: 44px 0 0; padding: 0; }
  .cards + .carousel-progress { display: none; }
}
@media (min-width: 1080px) {
  .cards { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .card--wide { grid-column: span 2; }
  .card__media { height: 220px; }
}

/* Studio */
.band--studio { background: radial-gradient(120% 70% at 50% 60%, #0F2422 0%, var(--night) 70%); }
.studio { margin-top: 28px; }
.studio__stage { position: relative; height: clamp(190px, 46vw, 460px); display: grid; place-items: end center; overflow: hidden; }
.studio__floor {
  position: absolute; left: 50%; bottom: 8%; width: min(120%, 1100px); aspect-ratio: 6 / 1; transform: translateX(-50%);
  border-radius: 50%; border: 1px solid rgba(79, 227, 193, .35);
  background: radial-gradient(closest-side, rgba(79, 227, 193, .22), rgba(79, 227, 193, .05) 60%, transparent);
  box-shadow: 0 0 60px -10px rgba(79, 227, 193, .35);
}
.studio__car {
  position: relative; width: min(86%, 820px); margin-bottom: 11%;
  filter: drop-shadow(0 26px 18px rgba(0, 0, 0, .65));
  transition: opacity .35s ease;
}
.studio__car.is-swapping { opacity: 0; }
.studio__controls { display: grid; gap: 16px; justify-items: center; text-align: center; margin-top: 8px; }
.studio__controls .console__label { text-align: center; }
.studio__controls .swatches { justify-content: center; }
.studio__title { margin: 0 0 2px; font-family: var(--display, inherit); font-size: 1.125rem; font-weight: 700; letter-spacing: .01em; color: var(--ink); }
.ticks { list-style: none; padding: 0; margin: 40px auto 0; display: grid; gap: 12px; max-width: 980px; }
.ticks li { padding: 16px 18px 16px 50px; position: relative; color: var(--ink-2); border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 255, 255, .025); }
.ticks li::before { content: ""; position: absolute; left: 20px; top: 1.35em; width: 13px; height: 7px; border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg); }
.ticks b { color: var(--ink); font-weight: 600; }
@media (min-width: 900px) { .ticks { grid-template-columns: repeat(3, 1fr); } }

/* Towns */
.towns { display: grid; gap: 14px; margin-top: 36px; }
.banner { position: relative; margin: 0; border-radius: 22px; overflow: hidden; aspect-ratio: 16 / 11; background: var(--night-3); }
.banner img { width: 100%; height: 100%; object-fit: cover; transition: opacity .5s; }
.banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 12, 13, 0) 40%, rgba(5, 12, 13, .85) 100%); }
.banner__name {
  position: absolute; left: 18px; right: 18px; bottom: 14px; z-index: 1;
  font-size: clamp(2.4rem, 13vw, 7.5rem); line-height: .9; font-weight: 800; overflow-wrap: anywhere;
}
.map { padding: 14px; display: grid; justify-items: center; align-content: center; }
.map svg { width: 100%; max-width: 300px; height: auto; overflow: visible; }
.map__hint { margin-top: 6px; color: var(--ink-3); font-size: .875rem; }
.map { background: radial-gradient(90% 70% at 50% 45%, rgba(79, 227, 193, .07), transparent 70%), var(--glass); }
.map__land { fill: #10241F; stroke: #4FBFA6; stroke-width: .9; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(79, 227, 193, .35)); }
.map__relief { fill: url(#highlands); stroke: none; filter: none; }
.map__provinces path { fill: none; stroke: rgba(160, 220, 205, .22); stroke-width: .6; stroke-dasharray: 2 1.6; stroke-linejoin: round; }
.map__roads path { fill: none; stroke: rgba(79, 227, 193, .42); stroke-width: 1.1; stroke-linecap: round; }
.map__compass path { fill: var(--teal); }
.map__compass text, .map__scale text { font: 600 8px/1 var(--font); fill: var(--ink-2); letter-spacing: .08em; }
.map__scale path { fill: none; stroke: var(--ink-2); stroke-width: 1; }
.map .dot { cursor: pointer; outline: none; }
.map .dot__hit { fill: transparent; }
.map .dot__pin { fill: #CFE3DE; stroke: #0B1A18; stroke-width: 1; }
.map .dot:hover .dot__pin { fill: #fff; }
.map .dot[aria-checked="true"] .dot__pin { fill: var(--teal); }
.map .dot__ring { fill: rgba(79, 227, 193, .18); stroke: var(--teal); stroke-width: 1.4; opacity: 0; }
.map .dot[aria-checked="true"] .dot__ring { opacity: 1; filter: drop-shadow(0 0 4px rgba(79, 227, 193, .9)); }
.map .dot:focus-visible .dot__ring { opacity: 1; stroke-width: 2.4; }
.map .dot__label { font: 500 8.5px/1 var(--font); fill: var(--ink-2); paint-order: stroke; stroke: #0B1A18; stroke-width: 2.6px; stroke-linejoin: round; display: none; letter-spacing: .02em; }
.map .dot.is-major .dot__label { display: block; }
.map .dot[aria-checked="true"] .dot__label { display: block; fill: #fff; font-weight: 700; font-size: 10px; }
@media (min-width: 900px) {
  .towns { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 16px; }
  .banner { aspect-ratio: auto; min-height: 520px; }
  .banner__name { left: 34px; bottom: 28px; }
}

/* Players */
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 40px 0 0; }
.specs div { padding: 16px 14px; }
.specs dd { font-size: var(--fs-small); }
@media (min-width: 700px) { .specs div { padding: 22px 20px; } .specs dd { font-size: 1.0625rem; } }
.specs dt { font-size: .75rem; font-weight: 600; font-stretch: 112%; letter-spacing: .18em; text-transform: uppercase; color: var(--teal); }
.specs dd { margin: 10px 0 0; color: var(--ink); font-size: 1.0625rem; }
@media (min-width: 700px) { .specs { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .specs { grid-template-columns: repeat(3, 1fr); gap: 16px; } }

/* Privacy statement */
.band--statement { background: linear-gradient(180deg, var(--night) 0%, var(--night-2) 50%, var(--night) 100%); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.statement {
  font-size: clamp(1.6rem, 6.4vw, 3.4rem); line-height: 1.12; font-weight: 600; font-stretch: 118%; text-transform: uppercase; letter-spacing: .01em; color: var(--ink);
  max-width: 22ch;
}
.statement span { color: var(--ink-3); }
@media (min-width: 900px) { .statement { max-width: 26ch; } }

/* Pricing: one quiet card. When it comes into view a line strikes through the old price, then the new one rises. */
.band--price { background: radial-gradient(60% 55% at 72% 45%, rgba(31, 94, 94, .38), transparent 72%), var(--night); }
.offer { display: grid; gap: 36px; }
.offer__card { position: relative; padding: 30px 24px; border-radius: 28px; background: linear-gradient(160deg, rgba(240, 238, 233, .075), rgba(240, 238, 233, .015) 60%); }
.offer__card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(160deg, rgba(240, 238, 233, .4), rgba(140, 201, 190, .16) 45%, rgba(240, 238, 233, .06));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.offer__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.offer__name { font-size: 1.0625rem; font-weight: 500; }
.offer__what { margin-top: 2px; font-size: var(--fs-small); color: var(--ink-2); }
.offer__how { list-style: none; counter-reset: how; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.offer__how li { counter-increment: how; position: relative; padding-left: 36px; color: var(--ink-2); font-size: var(--fs-small); }
.offer__how li::before { content: counter(how); position: absolute; left: 0; top: -1px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-teal); color: var(--teal); font-size: .75rem; }
.offer__how b { color: var(--ink); font-weight: 500; }
@media (min-width: 560px) { .offer__how { grid-template-columns: repeat(3, 1fr); gap: 16px; } .offer__how li { padding: 34px 0 0; } .offer__how li::before { top: 0; } }
.offer__save { padding: 6px 12px; border-radius: 999px; background: var(--teal-deep); color: var(--ink); font-size: var(--fs-label); font-weight: 500; }
.offer__price { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px 20px; margin: 26px 0 8px; }
.offer__now { display: inline-flex; align-items: flex-start; gap: 6px; line-height: .86; transition: opacity .8s var(--ease) .75s, transform .8s var(--ease) .75s; }
.offer__now small { margin-top: .35em; font-size: clamp(1.25rem, 2.4vw, 1.75rem); font-weight: 300; color: var(--ink-2); }
.offer__now b { font-size: clamp(4.75rem, 13vw, 7.5rem); font-weight: 200; letter-spacing: -.045em; }
.offer__was { position: relative; margin-bottom: .55em; text-decoration: none; font-size: clamp(1.125rem, 2vw, 1.5rem); font-weight: 300; color: var(--ink-3); }
.offer__was::after {
  content: ""; position: absolute; left: -6%; right: -6%; top: 52%; height: 1.5px; background: var(--ink-2);
  transform-origin: left; transition: transform .7s var(--ease) .25s;
}
.offer__card.is-waiting .offer__was::after { transform: scaleX(0); }
.offer__card.is-waiting .offer__now { opacity: 0; transform: translateY(14px); }
.offer__sub { color: var(--ink-2); font-size: var(--fs-small); }
.offer__list { list-style: none; margin: 26px 0; padding: 22px 0 0; display: grid; gap: 12px; border-top: 1px solid var(--line); }
.offer__list li { position: relative; padding-left: 28px; color: var(--ink-2); font-size: var(--fs-small); }
.offer__list li::before { content: ""; position: absolute; left: 3px; top: .5em; width: 11px; height: 6px; border-left: 1.5px solid var(--teal); border-bottom: 1.5px solid var(--teal); transform: rotate(-45deg); }
.offer__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.offer__actions .pill { flex: 1 1 210px; }
.offer__fine { margin-top: 14px; font-size: var(--fs-label); color: var(--ink-3); }
.offer__play { padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: var(--fs-small); }
@media (min-width: 560px) { .offer__card { padding: 40px; } .offer__list { grid-template-columns: 1fr 1fr; gap: 12px 24px; } }
@media (min-width: 960px) { .offer { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px 72px; align-items: center; } .offer__play { grid-column: 1 / -1; } }

/* Setup steps */
.steps {
  list-style: none; margin: 40px calc(var(--gutter) * -1) 0; padding: 4px var(--gutter);
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
}
.steps::-webkit-scrollbar { display: none; }
.steps > .step { flex: 0 0 78%; scroll-snap-align: center; }
@media (min-width: 620px) { .steps { display: grid; overflow: visible; margin: 40px 0 0; padding: 0; } .steps + .carousel-progress { display: none; } }
.step { padding: 20px; display: grid; gap: 10px; align-content: start; }
.step__no { justify-self: start; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-teal); color: var(--teal); font-size: .6875rem; font-weight: 600; font-stretch: 112%; letter-spacing: .18em; text-transform: uppercase; }
.step__art { width: 100%; height: 86px; margin: 4px 0; border-radius: 14px; background: radial-gradient(closest-side, rgba(79, 227, 193, .12), transparent), rgba(0, 0, 0, .25); fill: none; stroke: var(--teal); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; padding: 10px; }
.step p { color: var(--ink-2); font-size: .9688rem; }
@media (min-width: 620px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 16px; } }

/* FAQ */
.faq-wrap { display: grid; gap: 28px; }
@media (min-width: 900px) { .faq-wrap { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 56px; } }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 60px; padding: 14px 0; font-weight: 500; font-size: 1.0625rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-teal); background: linear-gradient(var(--teal), var(--teal)) center / 10px 1.5px no-repeat, linear-gradient(var(--teal), var(--teal)) center / 1.5px 10px no-repeat; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 44px 20px 0; color: var(--ink-2); max-width: 42rem; }

/* Contact */
.band--contact { padding-top: 0; }
.contact { padding: 28px 22px; display: grid; gap: 24px; background: radial-gradient(80% 120% at 100% 0%, rgba(79, 227, 193, .14), transparent 60%), var(--glass); }
@media (min-width: 900px) { .contact { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 48px; } .contact__links { justify-content: flex-end; max-width: 480px; } }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 48px 0 calc(28px + env(safe-area-inset-bottom)); background: var(--night); }
.foot__grid { display: grid; gap: 28px; }
.foot__made { margin-top: 12px; color: var(--ink-3); }
.foot__links { display: flex; flex-wrap: wrap; gap: 4px 22px; align-content: start; }
.foot__links a { color: var(--ink-2); text-decoration: none; padding: 8px 0; font-size: .75rem; font-weight: 500; font-stretch: 112%; letter-spacing: .16em; text-transform: uppercase; }
.foot__links a:hover { color: var(--teal); }
.foot__fine { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: .8125rem; color: var(--ink-3); }
@media (min-width: 800px) { .foot__grid { grid-template-columns: 1fr auto; align-items: start; } .foot__links { justify-content: flex-end; max-width: 560px; } .foot__fine { grid-template-columns: 1fr auto; } }

/* Sticky call to action on phones */
.dock-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(5, 12, 13, 0), rgba(5, 12, 13, .92) 35%);
  transition: transform .25s ease, opacity .25s;
}
.dock-cta .pill { width: 100%; }
.dock-cta.is-away { transform: translateY(110%); opacity: 0; }
@media (min-width: 1000px) { .dock-cta { display: none; } }
@media (prefers-reduced-motion: reduce) { .dock-cta, .deck__photo, .deck__beam, .top, .studio__car, .banner img { transition: none; } }

/* ---------- 2026 type rules: sentence case, light weights, quiet labels ----------
   The launcher replica inside .deck keeps the app's own lettering; everything else follows these rules. */
body { font-size: var(--fs-body); }
.top.is-solid { background: rgba(10, 17, 18, .78); }
.top__nav a { font-size: var(--fs-small); font-weight: 400; letter-spacing: 0; text-transform: none; font-stretch: 100%; }
.console__label, .simbtn__text small, .pop__title, .pop__region, .specs dt, .stats__list dt, .step__no, .cabin__hint {
  text-transform: none; letter-spacing: .01em; font-stretch: 100%; font-size: var(--fs-label); font-weight: 500;
}
.console__label { color: var(--ink-2); }
.console__label em { letter-spacing: 0; }
.seg button, .tabs button, .simbtn--icon, .foot__links a, .deck-exit {
  text-transform: none; letter-spacing: .01em; font-stretch: 100%; font-size: .875rem; font-weight: 500;
}
.seg button[aria-checked="true"] { background: var(--ink); color: var(--night); }
.tabs button[aria-selected="true"] { background: rgba(240, 238, 233, .08); box-shadow: inset 0 0 0 1px rgba(240, 238, 233, .2); }
.tabs button b { font-weight: 500; }
.chip[aria-checked="true"] { border-color: var(--teal); background: rgba(140, 201, 190, .1); box-shadow: none; }
.simbtn[aria-expanded="true"] { border-color: rgba(240, 238, 233, .5); background: rgba(240, 238, 233, .06); }
.simbtn__icon { background: rgba(31, 94, 94, .45); border-color: rgba(140, 201, 190, .25); }
.cabin__intro h2.metal { font-size: clamp(1.75rem, 4.4vw, 3rem); }
.cabin__intro .kicker { font-size: var(--fs-small); }
.stats__list dd { font-weight: 200; font-stretch: 100%; letter-spacing: -.03em; font-size: clamp(2.4rem, 6vw, 3.75rem); }
.specs dt { color: var(--teal); }
.specs dd { font-weight: 300; }
.statement { font-weight: 300; text-transform: none; font-stretch: 100%; letter-spacing: -.02em; max-width: 24ch; }
.banner__name { font-weight: 300; text-transform: none; letter-spacing: -.03em; }
.card h3, .step h3 { font-weight: 500; }
.faq summary { font-weight: 400; }
.foot__links a { color: var(--ink-2); }
.band { padding: clamp(84px, 11vw, 150px) 0; }

/* ---------- Reveal on scroll: once, gently. main.js marks what reveals. ---------- */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
[data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .hero__bg img, .hero__line > span, .hero__meta, .hero__lead, .hero__actions, .hero__facts, .hero__player { animation: none; opacity: 1; transform: none; }
  .hero__screen iframe { transition: none; }
  .hero__player.is-on .hero__screen::after, .hero__player.is-on .hero__live { animation: none; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .offer__card.is-waiting .offer__was::after, .offer__card.is-waiting .offer__now { transform: none; opacity: 1; }
}

/* Capture mode (?shot): only the launcher, filling the window */
html.is-shot, html.is-shot body { background: #000; overflow: hidden; }
html.is-shot body > *:not(.deck-frame) { display: none !important; }
html.is-shot .deck-frame { position: fixed; inset: 0; margin: 0; }
html.is-shot .deck { width: 100vw; height: 100vh; aspect-ratio: auto; border: 0; border-radius: 0; box-shadow: none; }

/* ---------- Layouts. Classic is the app's home screen today; Horizon, Gauge and Tiles are previews of new ones.
   All share the clock, the dock and the live data, which main.js copies across (mirror). ---------- */
.ly { position: absolute; left: calc(var(--x) * var(--u)); top: calc(var(--y) * var(--u)); width: calc(var(--w) * var(--u)); height: calc(var(--h) * var(--u)); }
.lay { position: absolute; inset: 0; display: none; }
.deck[data-layout="horizon"] .lay--horizon, .deck[data-layout="gauge"] .lay--gauge, .deck[data-layout="tiles"] .lay--tiles { display: block; }
.deck:not([data-layout="classic"]) :is(.hud-speed, .hud-music, .hud-side, .hud-chip, [data-play], .deck__car, .deck__roadside, .deck__road) { display: none; }
.deck__veil { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .5s; background: radial-gradient(120% 90% at 50% 40%, rgba(6, 12, 14, .4), rgba(4, 8, 10, .9)); }
.deck:not([data-layout="classic"]) .deck__veil { opacity: 1; }
.deck[data-layout="tiles"] .deck__veil { -webkit-backdrop-filter: blur(1.2cqw); backdrop-filter: blur(1.2cqw); }
.deck__horizon { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; display: none; }
.deck[data-layout="horizon"] .deck__horizon { display: block; }
.deck:not([data-layout="classic"]) .deck__hud {
  color: #F2F5F7; --g-top: rgba(20, 24, 32, .38); --g-bot: rgba(10, 13, 18, .5); --g-chip: rgba(12, 16, 22, .44);
  --g-edge-top: rgba(255, 255, 255, .3); --g-edge-bot: rgba(255, 255, 255, .06);
}
.lay b, .lay em, .lay small, .lay p { display: block; margin: 0; }
.lay-card { padding: calc(16 * var(--u)); display: flex; align-items: center; gap: calc(14 * var(--u)); }
.lc-arrow, .lc-art, .tile-icon { flex: none; display: grid; place-items: center; }
.lc-arrow { width: calc(56 * var(--u)); height: calc(56 * var(--u)); border-radius: calc(14 * var(--u)); background: #2BC48A; }
.lc-art { width: calc(64 * var(--u)); height: calc(64 * var(--u)); border-radius: calc(12 * var(--u)); background: rgba(128, 136, 142, .28); }
.lc-sun { background: rgba(246, 185, 49, .18); color: #F6B931; }
/* The weather icon follows the weather, and the moon comes out at night. */
.wxset .wx { display: none; }
.deck:not([data-weather="cloudy"]):not([data-weather="rain"]):not([data-time="night"]) .wxset .wx--sun,
.deck[data-time="night"]:not([data-weather="cloudy"]):not([data-weather="rain"]) .wxset .wx--moon,
.deck[data-weather="cloudy"] .wxset .wx--cloud,
.deck[data-weather="rain"] .wxset .wx--rain { display: block; }
.deck[data-time="night"] .lc-sun, .deck[data-weather="cloudy"] .lc-sun, .deck[data-weather="rain"] .lc-sun { background: rgba(150, 182, 204, .2); color: #CFE3F0; }
.lay svg:not(.gz-ring) { position: static; inset: auto; width: 55%; height: 55%; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.lc-arrow svg, .tile-icon svg { stroke: #fff; }
[data-mirror-arrow].is-left svg { transform: scaleX(-1); }
.lc-text { min-width: 0; }
.lc-text b { font-size: calc(22 * var(--u)); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lc-text span { display: block; font-size: calc(14 * var(--u)); opacity: .75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hz-speed { position: absolute; left: 0; right: 0; top: calc(86 * var(--u)); text-align: center; }
.hz-speed b, .gz-centre b { font-weight: 200; line-height: .95; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.hz-speed b { font-size: calc(150 * var(--u)); }
.hz-speed span, .gz-centre span { display: block; font-size: calc(16 * var(--u)); opacity: .7; margin-top: calc(4 * var(--u)); }
.hz-speed em, .gz-centre em { font-style: normal; font-size: calc(12 * var(--u)); font-weight: 700; letter-spacing: calc(2 * var(--u)); color: var(--eco, #2BC48A); margin-top: calc(10 * var(--u)); }
.gz-ring { overflow: visible; }
.gz-dot { fill: rgba(150, 160, 166, .26); transition: fill .2s; }
.gz-dot.on { fill: var(--eco, #2BC48A); }
.lay--gauge.is-over .gz-dot.on { fill: var(--signal); }
.gz-centre { position: absolute; left: calc(312 * var(--u)); top: calc(66 * var(--u)); width: calc(400 * var(--u)); height: calc(400 * var(--u)); display: grid; place-content: center; text-align: center; }
.gz-centre b { font-size: calc(124 * var(--u)); }
.gz-stats { display: grid; align-content: start; gap: calc(18 * var(--u)); }
.gz-stats small { font-size: calc(12 * var(--u)); letter-spacing: calc(1.2 * var(--u)); opacity: .6; text-transform: uppercase; }
.gz-stats b { font-size: calc(30 * var(--u)); font-weight: 300; }
.tile { border-radius: calc(22 * var(--u)); padding: calc(20 * var(--u)) calc(22 * var(--u)); display: flex; flex-direction: column; justify-content: space-between; gap: calc(8 * var(--u)); overflow: hidden; color: #fff; }
.tile small { font-size: calc(14 * var(--u)); font-weight: 500; opacity: .85; }
.tile b { font-size: calc(34 * var(--u)); font-weight: 600; line-height: 1.05; }
.tile > div > span, .tile > span { display: block; font-size: calc(15 * var(--u)); opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-clip { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-icon { position: absolute; right: calc(20 * var(--u)); top: calc(18 * var(--u)); width: calc(48 * var(--u)); height: calc(48 * var(--u)); border-radius: calc(14 * var(--u)); background: rgba(255, 255, 255, .2); }
.tile--nav { background: linear-gradient(140deg, #4D9BF0, #1F5FBF); }
.tile--music { background: linear-gradient(140deg, #A35AD8, #6A33A6); }
.tile--weather { background: linear-gradient(140deg, #F2A341, #C96B1F); }
.tile--phone { background: linear-gradient(140deg, #4FC873, #26934A); }
.tile--speed b { font-size: calc(80 * var(--u)); font-weight: 200; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.tile--car img { position: absolute; left: auto; right: 5%; bottom: 21%; width: 64%; filter: drop-shadow(0 calc(8 * var(--u)) calc(10 * var(--u)) rgba(0, 0, 0, .5)); }
.seg--layouts { flex-wrap: wrap; }
.pop__note--tight { margin-top: 10px; }

/* Guide page: one readable column, a contents list that stays in view on wide screens */
.doc-page { background: var(--night); }
.doc { padding-top: 120px; padding-bottom: 96px; display: grid; gap: 32px; }
.doc__head h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); font-weight: 300; letter-spacing: -.03em; line-height: 1; }
.doc__head p { margin-top: 18px; max-width: 36rem; color: var(--ink-2); font-size: var(--fs-lead); font-weight: 300; line-height: 1.6; }
.doc__toc { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); }
.doc__toc::-webkit-scrollbar { display: none; }
.doc__toc a { flex: none; padding: 8px 14px; border-radius: 18px; border: 1px solid var(--line); color: var(--ink-2); text-decoration: none; font-size: var(--fs-small); }
.doc__toc a:hover { color: var(--ink); border-color: var(--ink-3); }
.doc__body { display: grid; gap: 56px; max-width: 46rem; min-width: 0; }
.doc__body section { scroll-margin-top: 96px; display: grid; gap: 16px; }
.doc__body h2 { font-size: var(--fs-h2); font-weight: 300; letter-spacing: -.02em; line-height: 1.1; }
.doc__body h3 { font-size: 1.125rem; font-weight: 500; }
.doc__body p, .doc__body li, .doc__body dd, .doc__body td { color: var(--ink-2); line-height: 1.65; }
.doc__body b { color: var(--ink); font-weight: 500; }
.doc__body a { color: var(--teal); }
.doc__checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.doc__checks li { position: relative; padding-left: 28px; }
.doc__checks li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 12px; height: 7px; border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg); }
.doc__steps { list-style: none; counter-reset: st; margin: 0; padding: 0; display: grid; gap: 0; }
.doc__steps li { counter-increment: st; position: relative; padding: 0 0 26px 52px; display: grid; gap: 6px; }
.doc__steps li::before { content: counter(st); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-teal); color: var(--teal); font-size: .875rem; }
.doc__steps li:not(:last-child)::after { content: ""; position: absolute; left: 16px; top: 36px; bottom: 4px; width: 1px; background: var(--line); }
.doc__table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); }
.doc__table th { text-align: left; font-weight: 500; color: var(--ink-3); padding: 0 12px 10px 0; border-bottom: 1px solid var(--line); }
.doc__table td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc__table td:first-child { color: var(--ink); width: 42%; }
.doc__defs { margin: 0; display: grid; gap: 0; }
.doc__defs div { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.doc__defs dt { color: var(--ink); font-weight: 500; }
.doc__defs dd { margin: 0; }
.doc__faq { display: grid; }
.doc__faq details { border-bottom: 1px solid var(--line); }
.doc__faq summary { cursor: pointer; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; color: var(--ink); }
.doc__faq summary::-webkit-details-marker { display: none; }
.doc__faq summary::after { content: "+"; color: var(--teal); font-size: 1.25rem; line-height: 1; }
.doc__faq details[open] summary::after { content: "−"; }
.doc__faq details p { padding: 0 0 18px; }
.doc__end { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding: 28px; border-radius: 24px; border: 1px solid var(--line); background: var(--glass); }
.doc__end p { color: var(--ink); font-size: 1.25rem; font-weight: 300; }
.top__nav a[aria-current="page"] { color: var(--ink); }
@media (min-width: 1000px) {
  .doc { grid-template-columns: 220px minmax(0, 1fr); column-gap: 72px; padding-top: 150px; }
  .doc__head { grid-column: 1 / -1; }
  .doc__toc { flex-direction: column; position: sticky; top: 110px; align-self: start; margin: 0; padding: 0; gap: 2px; }
  .doc__toc a { border: 0; border-radius: 0; padding: 8px 0 8px 14px; border-left: 1px solid var(--line); }
  .doc__toc a:hover { border-left-color: var(--teal); }
}

.check__key > span { display: inline-flex; align-items: center; gap: 8px; }
.hero__facts b span { font-size: inherit; color: inherit; }
