/* ─── Custom Properties ─────────────────────────────────── */
/* Sampled from the app itself (src/lib/theme.ts) and the icon artwork, so the site and
   the product cannot drift apart: --plate is the icon's background, --neon is the ink,
   and --gold/--up/--down are literally the colours on the trading screens. */
:root {
  --plate:      #13181C;  /* icon plate — the page */
  --deep:       #0D1114;  /* app background — recessed bands */
  --surface:    #181F24;  /* raised cards */
  --line:       #232B31;
  --text:       #E4EAEF;
  --muted:      #909CA8;
  --neon:       #F8A050;  /* the icon's orange — primary */
  --gold:       #E8B44A;  /* C.accent — the app's own highlight */
  --up:         #35D07F;  /* C.up */
  --down:       #FF5C57;  /* C.down */
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

/* ─── Reset ─────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--plate);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

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

a { text-decoration: none; }

strong { color: var(--text); }

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}

.btn:hover { opacity: 0.88; transform: translateY(-1px); }

/* Store badges. Both stores get exactly the same treatment on purpose: neither listing
   is live, so making one louder than the other would advertise a preference we cannot
   back. The two-line shape -- an eyebrow over the store name -- is the one every real
   store badge uses, so it still reads as a download button and not as a label. */
.btn--store {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  padding: 0.6rem 1.35rem;
  background: var(--surface);
  border: 1px solid var(--gold);
  color: var(--gold);
  text-transform: none;
  letter-spacing: normal;
}

.btn__eyebrow {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.btn__store {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.15;
}

/* Nav-sized: the sticky bar has to hold two badges next to the crest at 360px. */
.btn--sm { padding: 0.4rem 0.85rem; }
.btn--sm .btn__eyebrow { font-size: 0.54rem; }
.btn--sm .btn__store   { font-size: 0.82rem; }

/* The store listing is not live yet. Rather than a link that goes nowhere, the CTA is a
   non-interactive element that says so -- it still reads as the call to action, and
   swapping it for a real <a> is a one-line change (see the comments in index.html). */
.btn--soon {
  cursor: default;
  opacity: 0.72;
}
.btn--soon:hover { transform: none; opacity: 0.72; }

/* ─── Nav ────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 2rem;
  background: rgba(19, 24, 28, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--mono);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}
.nav__logo-mark { width: 40px; height: 40px; border-radius: 9px; }

.nav__ctas { display: flex; gap: 0.5rem; }

/* ─── Hero ───────────────────────────────────────────────── */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  /* A faint pool of light behind the headline, echoing the icon's lit plate. */
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(248, 160, 80, 0.10), transparent 70%);
}

.hero__headline {
  font-size: clamp(2.1rem, 5.2vw, 3.6rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin-bottom: 1.35rem;
}

.hero__sub {
  font-size: clamp(1.02rem, 1.9vw, 1.2rem);
  color: var(--muted);
  max-width: 620px;
  margin-bottom: 2.5rem;
}

.hero__ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 3.25rem;
}

/* ─── Ticker ─────────────────────────────────────────────── */
/* The app's MOVES strip, rebuilt in markup. Scrolls inside itself on narrow screens
   rather than forcing the page sideways. */
.ticker {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  max-width: 100%;
  padding: 0.7rem 1.1rem;
  background: var(--deep);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--muted);
  overflow-x: auto;
  scrollbar-width: none;
}
.ticker::-webkit-scrollbar { display: none; }

.ticker__label { color: var(--gold); flex: none; letter-spacing: 0.18em; }
.ticker__item  { flex: none; white-space: nowrap; }
.ticker b { font-weight: 600; margin-left: 0.35rem; }
.up   { color: var(--up); }
.down { color: var(--down); }

/* ─── Feature sections ───────────────────────────────────── */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 5.5rem 4rem;
  max-width: 1100px;
  margin: 0 auto;
}

.feature__text h2 {
  font-size: clamp(1.55rem, 2.9vw, 2.3rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

.feature__text p {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 460px;
}

.feature__screenshot { display: flex; justify-content: center; }

/* A device frame rather than a bare image: the screenshots are near-black at the edges,
   so without one they would bleed into the page and stop reading as a phone. */
.feature__screenshot img {
  width: 100%;
  max-width: 268px;
  /* The <img> tags carry width/height attributes so the row reserves its space before
     the image loads. Those attributes also set the rendered HEIGHT, which CSS width
     alone does not override -- without this the screenshots render 268px wide by a full
     2340px tall. */
  height: auto;
  border-radius: 26px;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

/* ─── Anti-feature band ──────────────────────────────────── */
.band {
  background: var(--deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 5rem 2rem;
}

.band__inner { max-width: 1100px; margin: 0 auto; }

.band__headline {
  font-size: clamp(1.55rem, 2.9vw, 2.3rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 2.5rem;
  text-align: center;
}

.band__list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.band__list li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--neon);
  border-radius: 6px;
  padding: 1.4rem 1.5rem;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

.band__no {
  display: block;
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.55rem;
}

/* ─── Closing note ───────────────────────────────────────── */
.closing {
  max-width: 760px;
  margin: 0 auto;
  padding: 5rem 2rem 1rem;
  text-align: center;
}

.closing__quote {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.7;
  color: var(--muted);
}
.closing__quote em { color: var(--gold); font-style: normal; }

/* ─── Footer ─────────────────────────────────────────────── */
.footer {
  text-align: center;
  padding: 4.5rem 2rem 3rem;
  border-top: 1px solid var(--line);
  margin-top: 4rem;
}

.footer__headline {
  font-size: clamp(1.4rem, 2.8vw, 1.95rem);
  font-weight: 700;
  margin-bottom: 1.75rem;
}

.footer__ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.25rem;
}

.footer__meta { margin-bottom: 1.75rem; }
.footer__link { color: var(--gold); font-weight: 600; font-size: 0.92rem; }
.footer__link:hover { text-decoration: underline; }
.footer__sep { color: var(--line); margin: 0 0.6rem; }

/* The fiction disclaimer is load-bearing for a game with this name -- it is the same
   statement that appears on the store listing and in the policy, so it stays legible
   rather than shrinking into the copyright line. */
.footer__disclaimer {
  max-width: 620px;
  margin: 0 auto 1.5rem;
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--muted);
  opacity: 0.85;
}

.footer__copy { color: var(--muted); font-size: 0.82rem; }

/* ─── Text page (delete-account.html) ────────────────────── */
/* A prose page rather than a landing page: one column, generous measure, no hero. The
   palette and type come from the tokens above so it cannot drift from the site. */
.page {
  max-width: 46rem;
  margin: 0 auto;
  padding: 4rem 1.5rem 5rem;
}

.page__title {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-bottom: 1.1rem;
}

.page__lede {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
}

.page h2 {
  font-family: var(--mono);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 2.5rem 0 0.85rem;
}

.page p {
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.page__link { color: var(--gold); font-weight: 600; }
.page__link:hover { text-decoration: underline; }

.page__foot {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}

/* The handle is the one thing a request cannot be actioned without, so it gets pulled
   out of the prose rather than left as a clause someone skims past. */
.callout {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--neon);
  border-radius: 6px;
  padding: 1.25rem 1.4rem;
  margin: 1.5rem 0 1rem;
}

.callout__label {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.callout p:last-child { margin-bottom: 0; }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav { padding: 0.8rem 1.25rem; }
  .nav__logo span { display: none; }   /* the crest carries it; the name is long */

  .hero { padding: 3.5rem 1.5rem 3rem; }

  /* Two badges have to share a 360px row without wrapping into a stack. */
  .hero__ctas, .footer__ctas { gap: 0.6rem; }
  .btn--store { padding: 0.55rem 1rem; }

  /* Stack feature sections, screenshot above text. */
  .feature {
    grid-template-columns: 1fr;
    padding: 3.5rem 1.5rem;
    gap: 2rem;
    text-align: center;
  }

  .feature__text { display: flex; flex-direction: column; align-items: center; }
  .feature__text p { max-width: 100%; margin: 0 auto; }

  /* Text-first rows need the screenshot pulled above the copy; screenshot-first rows
     already have it first in the DOM. */
  .feature--left .feature__screenshot { order: -1; }

  .band { padding: 3.5rem 1.5rem; }
  .closing { padding: 3.5rem 1.5rem 0; }
}

/* Respect a reduced-motion preference: the only motion here is button hover lift. */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .btn:hover { transform: none; }
}
