@font-face {
  font-family: "Anton";
  src: url("assets/fonts/anton.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("assets/fonts/figtree.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --ink: #060906;
  --ink-2: #0e130e;
  --text: #f4f6ee;
  --muted: #a9b0a2;
  --line: rgb(255 255 255 / 0.14);
  --lime: #d6fa37;
  --fairway: #0f2a12;
  --sand: #e6d9b8;
  --sand-ink: #1b1a10;
  --owed: #f0873a;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section: clamp(5rem, 11vw, 9.5rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  scrollbar-color: #2c332c var(--ink);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 1.0625rem/1.6 "Figtree", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--lime); color: var(--ink); }

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

a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }

:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 4px; }
.field-lime :focus-visible,
.field-sand :focus-visible { outline-color: var(--ink); }

h1, h2, h3 {
  margin: 0;
  font-family: "Anton", "Arial Narrow", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.98;
  letter-spacing: 0.005em;
  text-wrap: balance;
}
h1 { font-size: clamp(3rem, 7.4vw, 6rem); }
h2 { font-size: clamp(2.5rem, 5.4vw, 4.5rem); }
h3 { font-size: clamp(1.75rem, 2.6vw, 2.25rem); line-height: 1.05; }
p { margin: 0; max-width: 58ch; text-wrap: pretty; }
.lime { color: var(--lime); }
.lede { font-size: clamp(1.0625rem, 1.35vw, 1.25rem); color: var(--muted); }

.wrap { width: min(100% - 2 * var(--gutter), 76rem); margin-inline: auto; }

.skip {
  position: absolute; left: var(--gutter); top: -4rem; z-index: 20;
  padding: 0.6rem 1rem; background: var(--lime); color: var(--ink); font-weight: 700; border-radius: 999px;
}
.skip:focus { top: 0.5rem; }

/* Announcement bar + nav */
.bar {
  margin: 0; max-width: none;
  background: var(--lime); color: var(--ink);
  text-align: center; font-size: 0.8125rem; font-weight: 600; padding: 0.5rem var(--gutter);
}
.nav {
  position: sticky; top: 0; z-index: 10;
  background: var(--ink); border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 2.5rem; height: 4rem; }
.brand { display: flex; align-items: center; gap: 0.625rem; text-decoration: none; font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.01em; }
.brand img { width: 2rem; height: 2rem; border-radius: 22.5%; }
.nav .links { display: flex; gap: 1.75rem; margin: 0 auto 0 0; padding: 0; list-style: none; font-size: 0.875rem; font-weight: 500; }
.nav .links a { text-decoration: none; color: var(--muted); transition: color 0.2s; }
.nav .links a:hover { color: var(--text); }

/* Mobile menu: native <details>, no script beyond closing on link tap */
.menu { display: none; }
.menu summary {
  display: grid; place-content: center; gap: 6px; width: 2.75rem; height: 2.75rem; margin-right: -0.5rem;
  list-style: none; cursor: pointer; border-radius: 999px;
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary::before, .menu summary::after {
  content: ""; width: 1.375rem; height: 2px; background: var(--text); transition: transform 0.3s var(--ease);
}
.menu[open] summary::before { transform: translateY(4px) rotate(45deg); }
.menu[open] summary::after { transform: translateY(-4px) rotate(-45deg); }
.menu ul {
  position: absolute; left: 0; right: 0; top: 100%; margin: 0; padding: 0.5rem var(--gutter) 1.5rem; list-style: none;
  background: var(--ink); border-bottom: 1px solid var(--line); font-size: 1.25rem; font-weight: 600;
}
.menu li + li { border-top: 1px solid var(--line); }
.menu a { display: block; padding: 0.95rem 0; text-decoration: none; }

.pill {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.7rem 1.35rem; border-radius: 999px;
  background: var(--lime); color: var(--ink);
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
  transition: transform 0.3s var(--ease), background 0.2s;
}
.pill:hover { background: #e6ff6e; transform: translateY(-1px); }
.pill:active { transform: translateY(0); }

/* Coming-soon plate: a status, not a control */
.plate {
  display: inline-grid; padding: 0.6rem 1.25rem 0.7rem;
  border: 1px solid rgb(255 255 255 / 0.55); border-radius: 12px; line-height: 1.15;
}
.plate small { font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.04em; color: var(--muted); }
.plate strong { font-size: 1.375rem; font-weight: 600; letter-spacing: -0.01em; }
.field-lime .plate { border-color: var(--ink); }
.field-lime .plate small { color: var(--ink); }

/* Device frame: drawn bezel around a real screen capture */
.phone {
  --w: clamp(15rem, 24vw, 21rem);
  width: var(--w); flex: none;
  padding: calc(var(--w) * 0.032);
  background: #000;
  border-radius: calc(var(--w) * 0.168);
  box-shadow: 0 0 0 2px #343834, 0 2.5rem 5rem -2rem rgb(0 0 0 / 0.75);
}
.phone img { width: 100%; border-radius: calc(var(--w) * 0.136); }

/* Hero */
.hero { overflow: clip; border-bottom: 1px solid var(--line); }
.hero .wrap {
  display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 2rem;
  min-height: min(52rem, 100svh - 6.5rem);
}
.hero-copy { padding-block: 4rem; display: grid; gap: 1.75rem; justify-items: start; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 2rem; margin-top: 0.5rem; }
.hero-actions a { font-weight: 600; }
.line { display: block; overflow: clip; padding-block: 0.04em; }
.line > span { display: block; }
.hero-art { position: relative; align-self: end; display: grid; justify-items: center; height: 100%; }
.hero-art .phone { --w: clamp(16rem, 27vw, 23rem); position: relative; align-self: end; margin-bottom: -22%; margin-top: 3.5rem; }
.bunker {
  position: absolute; left: 50%; bottom: 4%; width: 135%; aspect-ratio: 2.3;
  background: var(--lime); border-radius: 50%;
  transform: translateX(-50%) rotate(-11deg);
}

/* Statement */
.statement { padding-block: var(--section) calc(var(--section) * 0.55); text-align: center; }
.statement .wrap { display: grid; gap: 1.75rem; justify-items: center; }
.statement h2 { font-size: clamp(2.75rem, 6.6vw, 5.5rem); }

/* Paired tall cards */
.pair { padding-bottom: var(--section); }
.pair .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.tall {
  display: grid; justify-items: center; gap: 1rem; text-align: center;
  padding: clamp(2rem, 4vw, 3.5rem) clamp(1.5rem, 3vw, 3rem) 0;
  background: var(--ink-2); border: 1px solid var(--line); border-radius: 16px; overflow: clip;
  max-height: 46rem;
}
.tall p { color: var(--muted); max-width: 40ch; }
.tall .phone { margin-top: 1.5rem; }

/* Games list */
.games { padding-bottom: var(--section); }
.games-head { display: grid; gap: 1.25rem; margin-bottom: 3rem; }
.games ol { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.games li {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: 1rem 3rem;
  padding: 1.75rem var(--gutter); margin-inline: calc(var(--gutter) * -1);
  border-bottom: 1px solid var(--line);
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
}
.games li h3 { font-size: clamp(2.75rem, 7vw, 6rem); line-height: 0.95; }
.games li p { color: var(--muted); transition: color 0.35s var(--ease); }
@media (hover: hover) {
  .games li:hover { background: var(--lime); color: var(--ink); }
  .games li:hover p { color: var(--ink); }
}
.games .rookie { margin-top: 2rem; color: var(--muted); }
.games .rookie b { color: var(--text); font-weight: 600; }

/* Full-bleed colour fields */
.field { padding-block: var(--section); overflow: clip; }
.field .wrap { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 3rem clamp(2rem, 6vw, 6rem); }
.field-copy { display: grid; gap: 1.5rem; }
.field-art { display: flex; justify-content: center; align-items: flex-start; gap: 1.5rem; }
.field-fairway { background: var(--fairway); }
.field-fairway .lede { color: #b9c7b3; }
.field-lime { background: var(--lime); color: var(--ink); }
.field-lime .lede { color: #2a3306; }
.field-lime .phone { box-shadow: 0 0 0 2px #343834, 0 2.5rem 4rem -2rem rgb(42 51 6 / 0.5); }
.field-sand { background: var(--sand); color: var(--sand-ink); }
.field-sand .lede { color: #4a4530; }
.field-sand ::selection, .field-lime ::selection { background: var(--ink); color: var(--lime); }
.fine { font-size: 0.875rem; font-weight: 600; }
.checks { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.5rem; font-weight: 500; }
.checks li { padding-left: 1.5rem; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 0.75rem; height: 2px; background: currentColor; }

.stagger .phone + .phone { margin-top: 5rem; }
.stagger .phone { --w: clamp(11rem, 19vw, 17rem); }

/* Settle-up ledger: authored from the app's own settlement screen */
.ledger {
  background: var(--ink); color: var(--text); border-radius: 16px;
  padding: clamp(1.5rem, 3vw, 2.5rem); display: grid; gap: 1.5rem;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 2rem 4rem -2rem rgb(60 45 0 / 0.55);
}
.ledger-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.ledger-head h3 { font-size: 1.75rem; }
.ledger-head span { font-size: 0.8125rem; color: var(--muted); }
.ledger table { width: 100%; border-collapse: collapse; }
.ledger th, .ledger td { padding: 0.7rem 0; border-top: 1px solid var(--line); text-align: left; font-weight: 500; }
.ledger td:nth-child(2) { color: var(--muted); font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; }
.ledger td:last-child { text-align: right; font-family: "Anton", sans-serif; font-size: 1.5rem; letter-spacing: 0.01em; }
.ledger .up { color: var(--lime); }
.ledger .down { color: var(--owed); }
.pays { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.625rem; }
.pays li { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; padding: 0.875rem 1rem; background: var(--ink-2); border-radius: 12px; }
.pays b { margin-left: auto; font-weight: 700; }
.tag { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.3rem 0.6rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
.pot { display: flex; justify-content: space-between; align-items: baseline; color: var(--muted); font-size: 0.8125rem; letter-spacing: 0.1em; text-transform: uppercase; }
.pot strong { font: 400 2.5rem/1 "Anton", sans-serif; color: var(--lime); letter-spacing: 0.01em; }

/* Close */
.close .bunker {
  left: 50%; bottom: auto; top: 50%; width: min(70rem, 120%);
  background: none; border: 1px solid rgb(214 250 55 / 0.35);
  transform: translate(-50%, -50%) rotate(-11deg); animation: none;
}
.close { padding-block: var(--section); text-align: center; position: relative; overflow: clip; }
.close .wrap { display: grid; gap: 2rem; justify-items: center; position: relative; }
.close .plate { background: var(--ink); }
.close img { width: 6rem; height: 6rem; border-radius: 22.5%; box-shadow: 0 0 0 1px var(--line); }
.close h2 { font-size: clamp(3rem, 8vw, 6rem); }

/* Footer */
.foot { border-top: 1px solid var(--line); padding-block: 3.5rem; font-size: 0.875rem; color: var(--muted); overflow: clip; }
.foot .wrap { display: grid; gap: 2.5rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; font-weight: 500; color: var(--text); }
.foot nav a { text-decoration: none; }
.foot nav a:hover { text-decoration: underline; }
.foot .legal { display: grid; gap: 0.875rem; font-size: 0.75rem; line-height: 1.6; }
.foot .legal p { max-width: 95ch; }

/* Document pages (privacy, support) */
.doc { padding-block: clamp(3.5rem, 8vw, 6rem) var(--section); }
.doc .wrap { max-width: 46rem; display: grid; gap: 1.25rem; }
.doc h1 { font-size: clamp(2.75rem, 6vw, 4.5rem); margin-bottom: 0.75rem; }
.doc h2 { font-size: 1.75rem; margin-top: 2rem; }
.doc p, .doc li { color: #cfd5c8; max-width: 68ch; }
.doc ul { margin: 0; padding-left: 1.25rem; display: grid; gap: 0.5rem; }
.doc a { color: var(--lime); }
.notice { padding: 1rem 1.25rem; border: 1px solid var(--owed); border-radius: 12px; color: var(--text); }
.doc details { border-top: 1px solid var(--line); padding-block: 1.1rem; }
.doc details:last-of-type { border-bottom: 1px solid var(--line); }
.doc summary { cursor: pointer; font-weight: 600; font-size: 1.125rem; color: var(--text); list-style-position: outside; }
.doc summary::marker { color: var(--lime); }
.doc details p { margin-top: 0.75rem; }

/* Motion: one hero entrance, then scroll-linked rises. Content is visible by default. */
@media (prefers-reduced-motion: no-preference) {
  .menu[open] ul { animation: fade-up 0.4s var(--ease); }
  .line > span { animation: line-up 1s var(--ease) both; }
  .line:nth-child(2) > span { animation-delay: 0.09s; }
  .hero .lede, .hero-actions { animation: fade-up 0.9s var(--ease) 0.3s both; }
  .hero-actions { animation-delay: 0.4s; }
  .hero-art .phone { animation: settle 1.3s var(--ease) 0.15s both; }
  .bunker { animation: bunker 1.2s var(--ease) both; }

  @supports (animation-timeline: view()) {
    .rise { animation: fade-up linear both; animation-timeline: view(); animation-range: entry 5% entry 70%; }
    @media (hover: none) {
      /* touch has no hover: each game row floods lime as it crosses the middle of the screen */
      .games li { animation: flood linear both; animation-timeline: view(); animation-range: cover 30% cover 70%; }
      .games li p { animation: flood-p linear both; animation-timeline: view(); animation-range: cover 30% cover 70%; }
    }
    .ledger tr, .pays li { animation: fade-up linear both; animation-timeline: view(); animation-range: entry 0% entry 100%; }
  }
}
@keyframes flood { 0%, 100% { background: transparent; color: var(--text); } 30%, 70% { background: var(--lime); color: var(--ink); } }
@keyframes flood-p { 0%, 100% { color: var(--muted); } 30%, 70% { color: var(--ink); } }
@keyframes line-up { from { transform: translateY(105%); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(2.5rem); } }
@keyframes settle { from { opacity: 0; transform: translateY(18%) rotate(5deg); } }
@keyframes bunker { from { transform: translateX(-50%) rotate(-11deg) scale(0.55); opacity: 0; } }

@media (max-width: 56rem) {
  .nav .links, .nav .pill { display: none; }
  .menu { display: block; }
  .nav .wrap { justify-content: space-between; }
  .hero .wrap { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding-block: 3.5rem 0; }
  .hero-art .phone { --w: min(19rem, 72vw); margin-top: 3rem; }
  .bunker { width: min(150%, 40rem); }
  .pair .wrap, .field .wrap { grid-template-columns: 1fr; }
  .tall { max-height: 40rem; }
  .phone { --w: min(17rem, 68vw); }
  .field-art { order: 2; }
  .stagger .phone { --w: min(10.5rem, 42vw); }
  .stagger .phone + .phone { margin-top: 3rem; }
  .games li { grid-template-columns: 1fr; gap: 0.5rem; padding-block: 1.5rem; }
}
