/* Nation website. Colours are the game's own (scripts/gui/kit/gui.gd); docs/web/PLAN.md section 4. */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cinzel";
  src: url("../fonts/cinzel-var.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0d0c0b;
  --ink-2: #14120f;
  --ink-3: #1c1915;
  --text: #f3ecdf;
  --dim: #b9ae9d;
  --mute: #8b8172;
  --gold: #c6a566;
  --gold-hi: #f0dcae;
  --gold-lo: #8d7442;
  --line: rgba(255, 255, 255, 0.11);
  --line-gold: rgba(198, 165, 102, 0.38);
  --alert: #d4574a;
  --good: #8fc48a;

  --display: "Cinzel", "Trajan Pro", "Times New Roman", serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: max(16px, env(safe-area-inset-left), env(safe-area-inset-right));
  --wrap: 1200px;
  --radius: 6px;
  --bar-h: 60px;
  --section: clamp(72px, 11vw, 148px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}
@media (min-width: 720px) { :root { --gutter: max(32px, env(safe-area-inset-left), env(safe-area-inset-right)); } }
@media (min-width: 1100px) { :root { --gutter: 48px; --bar-h: 68px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 16px/1.6 var(--body);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol[role="list"], ul[role="list"] { list-style: none; padding: 0; }

:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; border-radius: 2px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--gold); color: var(--ink); padding: 10px 14px; border-radius: var(--radius); text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: calc(820px + 2 * var(--gutter)); }

/* ---- type ------------------------------------------------------------------------------------------------------------------- */
h2 {
  font: 600 clamp(28px, 4.6vw, 52px)/1.08 var(--display);
  letter-spacing: 0.04em;
  text-wrap: balance;
}
h3 { font: 600 18px/1.3 var(--body); letter-spacing: 0; }
.kicker {
  font: 600 12px/1 var(--body);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
  display: flex; align-items: center; gap: 12px;
}
.kicker::before { content: ""; width: 28px; height: 1px; background: var(--gold); opacity: .7; }
.lede { color: var(--dim); font-size: clamp(16px, 1.5vw, 18px); max-width: 640px; margin-top: 18px; text-wrap: pretty; }
.head { margin-bottom: clamp(36px, 5vw, 64px); }

/* ---- buttons: square-cut, no pills ------------------------------------------------------------------------------------------ */
.btn {
  --h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 22px;
  border-radius: var(--radius); border: 1px solid transparent;
  font: 600 15px/1.1 var(--body); letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.btn--gold { background: var(--gold); color: #17130c; }
.btn--gold:hover { background: var(--gold-hi); }
.btn--line { border-color: var(--line-gold); color: var(--text); background: rgba(13, 12, 11, 0.35); }
.btn--line:hover { border-color: var(--gold); color: var(--gold-hi); }
.btn:active { transform: translateY(1px); }
.btn--big { --h: 56px; padding: 0 28px; font-size: 16px; }
.btn--small { --h: 40px; padding: 0 16px; font-size: 14px; }
@media (pointer: coarse) { .btn--small { --h: 44px; } }
.btn[aria-disabled="true"] { background: transparent; color: var(--mute); border-color: var(--line); cursor: default; }
.btn__icon { width: 20px; height: 20px; display: none; }
.btn__icon:not(:empty) { display: block; }
.btn__icon svg, .card__icon svg, .devices__icon svg { width: 100%; height: 100%; fill: currentColor; }

/* ---- draft line --------------------------------------------------------------------------------------------------------------- */
.draft {
  position: relative; z-index: 60;
  padding: 8px var(--gutter); padding-top: max(8px, env(safe-area-inset-top));
  background: #2a1f12; color: var(--gold-hi);
  font: 500 13px/1.4 var(--body); text-align: center;
  border-bottom: 1px solid var(--line-gold);
}

/* ---- top bar ------------------------------------------------------------------------------------------------------------------ */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding-top: env(safe-area-inset-top);
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.has-draft .bar { position: sticky; }
.bar.is-solid { background: rgba(13, 12, 11, 0.86); border-bottom-color: var(--line); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .bar.is-solid { background: rgba(13, 12, 11, 0.97); } }
.bar__in { height: var(--bar-h); display: flex; align-items: center; gap: 20px; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding-inline: var(--gutter); }
.bar__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 600 17px/1 var(--display); letter-spacing: 0.12em; text-transform: uppercase; }
.bar__brand img { width: 22px; height: auto; }
.bar__nav { display: none; gap: 28px; margin-left: auto; }
.bar__nav a { text-decoration: none; color: var(--dim); font-size: 14px; font-weight: 500; padding: 8px 0; transition: color .2s; }
.bar__nav a:hover { color: var(--text); }
.bar__status { display: none; align-items: center; gap: 8px; font-size: 13px; color: var(--dim); }
.bar__status i { width: 8px; height: 8px; border-radius: 50%; background: var(--mute); box-shadow: 0 0 0 3px rgba(139, 129, 114, .18); }
.bar__status.is-up i { background: var(--good); box-shadow: 0 0 0 3px rgba(143, 196, 138, .2); }
.bar__status.is-down i { background: var(--alert); box-shadow: 0 0 0 3px rgba(212, 87, 74, .2); }
.bar__play { margin-left: auto; }
.bar__menu { width: 44px; height: 44px; margin-right: -10px; display: grid; place-content: center; gap: 6px; background: none; border: 0; cursor: pointer; }
.bar__menu i { display: block; width: 20px; height: 1.5px; background: var(--text); transition: transform .25s var(--ease); }
.bar__menu[aria-expanded="true"] i:first-of-type { transform: translateY(3.75px) rotate(45deg); }
.bar__menu[aria-expanded="true"] i:last-of-type { transform: translateY(-3.75px) rotate(-45deg); }
.sheet { display: grid; padding: 8px var(--gutter) 20px; background: rgba(13, 12, 11, 0.97); border-bottom: 1px solid var(--line); }
.sheet[hidden] { display: none; }
.sheet a { padding: 14px 0; text-decoration: none; font: 600 20px/1.2 var(--display); letter-spacing: .06em; border-bottom: 1px solid var(--line); }
.sheet a:last-child { border-bottom: 0; }
@media (min-width: 960px) {
  .bar__nav { display: flex; }
  .bar__play { margin-left: 8px; }
  .bar__menu, .sheet { display: none !important; }
  .bar__status:not([hidden]) { display: flex; }
}

/* ---- hero ----------------------------------------------------------------------------------------------------------------------
   Text on the left, the drone footage in a frame on the right (stacked on narrow screens: text first). Not full-screen (owner). */
.hero {
  position: relative; isolation: isolate;
  padding: calc(var(--bar-h) + env(safe-area-inset-top) + clamp(28px, 7vh, 80px)) 0 clamp(24px, 4vh, 48px);
  background: radial-gradient(70% 60% at 78% 42%, rgba(198, 165, 102, .07), rgba(198, 165, 102, 0) 70%), var(--ink);
}
.hero__in {
  width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding-inline: var(--gutter);
  display: grid; gap: clamp(32px, 4.5vw, 64px); align-items: center;
}
@media (min-width: 960px) { .hero__in { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
.hero__text { min-width: 0; }
.hero__media {
  position: relative; margin: 0; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: 14px; border: 1px solid var(--line-gold); background: var(--ink-2);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7), 0 0 0 6px rgba(198, 165, 102, .04);
}
.hero__poster, .hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__video { opacity: 0; transition: opacity 1.2s var(--ease); }
.hero__video.is-playing { opacity: 1; }
.hero__logo { width: min(100%, 520px); margin-left: -1.5%; }
.hero__logo img { width: 100%; filter: drop-shadow(0 6px 24px rgba(0, 0, 0, .55)); }
.hero__line { margin-top: 18px; font: 600 clamp(18px, 2.2vw, 24px)/1.25 var(--display); letter-spacing: .05em; color: var(--text); text-wrap: balance; }
.hero__sub { margin-top: 10px; color: var(--dim); max-width: 560px; font-size: clamp(15px, 1.4vw, 17px); text-wrap: pretty; }
.hero__cta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero__also { margin-top: 14px; font-size: 13px; color: var(--mute); }
@media (prefers-reduced-motion: reduce) { .hero__video { display: none; } }
@media (max-width: 559px) {
  .hero__cta .btn { flex: 1 1 100%; }
}

/* countdown */
.phase { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); max-width: 560px; }
.phase__label { font: 600 12px/1 var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.phase__date { margin-top: 10px; font-size: 13px; color: var(--mute); }
.count { margin-top: 12px; display: flex; gap: clamp(10px, 3vw, 22px); }
.count div { display: grid; gap: 4px; min-width: 56px; }
.count b { font: 500 clamp(30px, 5vw, 46px)/1 var(--display); font-variant-numeric: tabular-nums lining-nums; letter-spacing: .02em; color: var(--text); }
.count span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.count div + div { padding-left: clamp(10px, 3vw, 22px); border-left: 1px solid var(--line); }
.phase.is-live .count { display: none; }
.phase.is-live .phase__label::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--good); margin-right: 10px; vertical-align: 1px; }

/* ---- sections ----------------------------------------------------------------------------------------------------------------- */
main > section { padding-block: var(--section); position: relative; }
.screens { background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%); }
.footage { background: var(--ink-2); }
.facts { background: var(--ink-2); }
.faq { background: var(--ink-2); }

/* ---- device frames ------------------------------------------------------------------------------------------------------------ */
.phone { margin: 0; }
.phone__body {
  position: relative;
  padding: clamp(6px, 1.1vw, 12px);
  border-radius: clamp(22px, 3.6vw, 46px);
  background: linear-gradient(145deg, #2b2824, #0b0a09 45%, #23201c);
  box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 30px 80px -20px rgba(0,0,0,.8), inset 0 0 0 1px rgba(255,255,255,.05);
}
.phone__screen {
  position: relative; overflow: hidden;
  aspect-ratio: 2556 / 1180;
  border-radius: clamp(16px, 2.8vw, 36px);
  background: #000;
}
.phone__screen::after { /* the island, as on its side */
  content: ""; position: absolute; left: 1.4%; top: 50%; width: 1.5%; height: 19%; translate: 0 -50%;
  border-radius: 99px; background: #000; box-shadow: 0 0 0 1px rgba(255,255,255,.03);
}
.phone__screen video, .laptop__screen video { width: 100%; height: 100%; object-fit: cover; }
.phone figcaption, .laptop figcaption, .phone + figcaption { margin-top: 16px; color: var(--mute); font-size: 14px; }

.laptop { margin: 0; padding-inline: 5%; }
.laptop figcaption { margin-inline: -5.6%; }
.laptop__lid {
  padding: clamp(8px, 1.2vw, 14px);
  border-radius: clamp(10px, 1.4vw, 18px) clamp(10px, 1.4vw, 18px) 4px 4px;
  background: linear-gradient(180deg, #24211d, #0e0d0b);
  box-shadow: 0 0 0 1px rgba(255,255,255,.07);
}
.laptop__screen { aspect-ratio: 16 / 10; overflow: hidden; border-radius: 4px; background: #000; }
.laptop__base {
  height: clamp(10px, 1.4vw, 16px); margin: 0 -5.5%;
  border-radius: 0 0 14px 14px / 0 0 100% 100%;
  background: linear-gradient(180deg, #4a453e, #1a1815 60%, #0b0a09);
  box-shadow: 0 24px 50px -16px rgba(0,0,0,.8);
}

.screens__stage { position: relative; display: grid; gap: 40px; }
@media (min-width: 900px) {
  .screens__stage { grid-template-columns: 1fr; padding-bottom: 6%; }
  .screens .laptop { width: 82%; }
  .phone--float { position: absolute; right: 0; bottom: 0; width: 46%; }
  .phone--float figcaption { text-align: right; }
}
.devices { margin-top: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.devices li { display: grid; grid-template-columns: 28px 1fr; column-gap: 12px; align-items: center; padding: 18px 12px 18px 0; border-bottom: 1px solid var(--line); }
.devices__icon { grid-row: span 2; width: 24px; height: 24px; color: var(--gold); }
.devices b { font-weight: 600; font-size: 15px; }
.devices span:last-child { color: var(--mute); font-size: 13px; }
@media (min-width: 900px) { .devices { grid-template-columns: repeat(4, minmax(0, 1fr)); } .devices li { border-bottom: 0; } }

/* ---- footage tabs --------------------------------------------------------------------------------------------------------------- */
.tabs {
  display: flex; gap: 4px; margin: 0 calc(-1 * var(--gutter)) 28px; padding: 0 var(--gutter) 2px;
  overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; scroll-snap-type: x proximity;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  flex: 0 0 auto; scroll-snap-align: start;
  min-height: 44px; padding: 0 16px; border: 0; background: none; cursor: pointer;
  border-bottom: 1px solid var(--line); color: var(--mute); font-weight: 500; font-size: 15px;
  transition: color .2s, border-color .2s;
}
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected="true"] { color: var(--gold-hi); border-bottom: 2px solid var(--gold); }
.phone--wide { max-width: 1100px; }
.play {
  position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%;
  border: 1px solid var(--line-gold); background: rgba(13,12,11,.6); cursor: pointer;
}
.play::before { content: ""; position: absolute; left: 31px; top: 25px; border-left: 20px solid var(--gold-hi); border-top: 13px solid transparent; border-bottom: 13px solid transparent; }
.play[hidden] { display: none; }

/* ---- features ----------------------------------------------------------------------------------------------------------------- */

/* ---- launch ------------------------------------------------------------------------------------------------------------------- */
.launch { isolation: isolate; overflow: hidden; background: var(--ink); }
.launch__art, .download__art { position: absolute; inset: 0; z-index: -1; }
.launch__art img, .download__art img { width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.launch__art::after, .download__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--ink) 0%, rgba(13,12,11,.55) 30%, rgba(13,12,11,.7) 70%, var(--ink) 100%); }
.launch__art img { object-position: 78% 50%; }
.road { display: grid; gap: 0; counter-reset: step; }
@media (min-width: 900px) { .road { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.road__step { position: relative; padding: 0 0 32px 32px; border-left: 1px solid var(--line-gold); }
.road__step::before { content: ""; position: absolute; left: -6px; top: 4px; width: 11px; height: 11px; transform: rotate(45deg); background: var(--ink); border: 1px solid var(--gold); }
.road__step.is-done::before, .road__step.is-now::before { background: var(--gold); }
.road__step.is-now::after { content: "Now"; position: absolute; left: 32px; top: -26px; font: 600 11px/1 var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--good); }
@media (min-width: 900px) {
  .road__step { padding: 34px 24px 0 0; border-left: 0; border-top: 1px solid var(--line-gold); }
  .road__step::before { left: 0; top: -6px; }
  .road__step.is-now::after { left: 22px; top: -4px; }
}
.road__when { display: block; font: 600 13px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.road__step h3 { margin-top: 10px; font: 600 22px/1.2 var(--display); letter-spacing: .04em; }
.road__step p { margin-top: 8px; color: var(--dim); font-size: 15px; }
.launch__wipe { margin-top: 32px; padding: 16px 18px; border: 1px solid var(--line-gold); border-radius: var(--radius); background: rgba(13,12,11,.6); max-width: 720px; }
.launch__cal { margin-top: 32px; }

/* ---- join --------------------------------------------------------------------------------------------------------------------- */
.join { background: var(--ink-2); border-block: 1px solid var(--line); isolation: isolate; overflow: hidden; }
.join__art { position: absolute; inset: 0; z-index: -1; }
.join__art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; opacity: .3; }
.join__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink-2) 0%, rgba(20,18,15,.72) 45%, rgba(20,18,15,.35) 100%); }
.join__in { display: grid; gap: 32px; align-items: end; }
@media (min-width: 960px) { .join__in { grid-template-columns: 1.2fr 1fr; } }
.join__form { display: flex; flex-wrap: wrap; gap: 10px; }
.join__form[hidden] { display: none; }
.join__form input {
  flex: 1 1 220px; min-height: 48px; padding: 0 14px;
  border: 1px solid var(--line-gold); border-radius: var(--radius);
  background: rgba(0,0,0,.35); color: var(--text); font: 16px var(--body);
}
.join__form input::placeholder { color: var(--mute); }
.join__note { flex: 1 1 100%; color: var(--mute); font-size: 13px; }
.join__links { display: flex; flex-wrap: wrap; gap: 10px; }
.join__links [hidden] { display: none; }
.join__soon { color: var(--mute); font-size: 14px; }

/* ---- facts -------------------------------------------------------------------------------------------------------------------- */
.facts__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); border-top: 1px solid var(--line); }
.facts__grid div { padding: 20px 16px 20px 0; border-bottom: 1px solid var(--line); }
.facts__grid dt { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.facts__grid dd { margin-top: 8px; font: 500 20px/1.3 var(--display); letter-spacing: .02em; color: var(--text); font-variant-numeric: lining-nums; }

/* ---- hall of fame ------------------------------------------------------------------------------------------------------------- */
.fame { background: var(--ink); }
.fame__grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.fame__grid h3 { font: 600 14px/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.fame__grid ol { list-style: none; padding: 0; border-top: 1px solid var(--line); counter-reset: rank; }
.fame__grid li { counter-increment: rank; display: grid; grid-template-columns: 28px 1fr auto; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.fame__grid li::before { content: counter(rank); color: var(--mute); font-variant-numeric: tabular-nums; }
.fame__grid li span:last-child { color: var(--dim); font-variant-numeric: tabular-nums; }

/* ---- download ----------------------------------------------------------------------------------------------------------------- */
.download { isolation: isolate; overflow: hidden; background: var(--ink); }
.download__art img { object-position: 85% 40%; opacity: .32; }
.cards { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  padding: 26px 22px 22px; border-radius: 10px;
  background: linear-gradient(180deg, rgba(28,25,21,.92), rgba(16,14,12,.92));
  box-shadow: 0 0 0 1px var(--line);
  transition: box-shadow .25s var(--ease);
}
.card.is-mine { box-shadow: 0 0 0 1px var(--gold), 0 20px 60px -24px rgba(198,165,102,.35); }
.card.is-mine::before { content: "Your device"; position: absolute; top: 14px; right: 16px; font: 600 11px/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.card__icon { width: 30px; height: 30px; color: var(--gold-hi); margin-bottom: 6px; }
.card h3 { font: 600 22px/1.2 var(--display); letter-spacing: .04em; }
.card__needs { color: var(--dim); font-size: 14px; min-height: 2.8em; }
.card__btn { margin-top: 8px; width: 100%; }
.card__meta { color: var(--mute); font-size: 13px; min-height: 1.4em; }
.card__how { display: inline-flex; align-items: center; min-height: 44px; align-self: flex-start; color: var(--dim); font-size: 14px; text-underline-offset: 3px; text-decoration-color: var(--line-gold); }
.card__how:hover { color: var(--gold-hi); }
@media (min-width: 1100px) { .cards .card.is-mine { order: -1; } }
.qr { margin-top: 28px; display: none; align-items: center; gap: 22px; padding: 18px; border-radius: 10px; box-shadow: 0 0 0 1px var(--line); background: rgba(13,12,11,.7); max-width: 560px; }
.qr:not([hidden]) { display: flex; }
.qr__code { flex: 0 0 auto; width: 112px; height: 112px; padding: 8px; background: #f3ecdf; border-radius: 4px; }
.qr__code svg { width: 100%; height: 100%; }
.qr h3 { font-size: 16px; }
.qr p { margin-top: 6px; color: var(--dim); font-size: 14px; }

/* ---- faq ---------------------------------------------------------------------------------------------------------------------- */
.faq__list { border-top: 1px solid var(--line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details[hidden] { display: none; }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative;
  font-weight: 600; font-size: 17px; -webkit-tap-highlight-color: transparent;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; margin-top: -7px; border-right: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold); transform: rotate(45deg); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 0 22px; color: var(--dim); max-width: 680px; }

/* ---- footer ------------------------------------------------------------------------------------------------------------------- */
.foot { padding: 56px 0 max(40px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--ink); }
.foot__in { display: grid; gap: 28px; }
@media (min-width: 900px) { .foot__in { grid-template-columns: 1fr auto; align-items: start; } }
.foot__brand img { width: 160px; }
.foot__brand p { margin-top: 10px; color: var(--mute); font-size: 14px; }
.foot__nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot__nav a { color: var(--dim); text-decoration: none; font-size: 14px; padding: 6px 0; }
.foot__nav a:hover { color: var(--gold-hi); }
.foot__note { color: var(--mute); font-size: 13px; grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 20px; }

/* ---- reveal on scroll (only when JS runs and motion is welcome) -------------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* ---- text pages (download centre, rules, legal) ------------------------------------------------------------------------ */
.page { padding: calc(var(--bar-h) + env(safe-area-inset-top) + 56px) 0 var(--section); }
.page h1 { font: 600 clamp(32px, 5vw, 56px)/1.08 var(--display); letter-spacing: .04em; }
.page .lede { margin-top: 16px; }
.prose { margin-top: 40px; max-width: 760px; }
.prose h2 { font-size: clamp(24px, 3vw, 32px); margin: 48px 0 16px; }
.prose h3 { margin: 28px 0 8px; }
.prose p, .prose li { color: var(--dim); }
.prose p + p { margin-top: 12px; }
.prose ol, .prose ul { padding-left: 22px; margin: 12px 0; }
.prose li + li { margin-top: 8px; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--gold-hi); text-underline-offset: 3px; }
.note { margin-top: 24px; padding: 14px 16px; border-left: 2px solid var(--gold); background: rgba(198,165,102,.07); color: var(--dim); font-size: 15px; border-radius: 0 var(--radius) var(--radius) 0; }
.steps { counter-reset: s; list-style: none; padding: 0 !important; }
.steps li { counter-increment: s; position: relative; padding-left: 44px; min-height: 30px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--line-gold); border-radius: 50%; color: var(--gold); font: 600 13px/1 var(--body); }
.platform { padding-top: 24px; scroll-margin-top: calc(var(--bar-h) + 24px); }
.platform + .platform { border-top: 1px solid var(--line); margin-top: 40px; }

/* Windows high contrast: keep borders and buttons visible */
@media (forced-colors: active) {
  .btn, .card, .phone__body, .laptop__lid { border: 1px solid CanvasText; }
  .launch__art, .download__art { display: none; }
}
