/* THE LANDING PAGE ONLY.
 *
 * Kept out of pages.css on purpose: that sheet dresses four prose documents
 * (about, privacy, terms, support) and should stay a prose sheet. This one is
 * the only surface in the product whose job is to persuade, and it wears the
 * APP's clothes rather than the documents' — violet and acid yellow, chunky
 * uppercase display type, the same tile colours as the mode picker — so a
 * stranger arriving here and then opening /app lands somewhere recognisable.
 *
 * No web font. The app has to work with no signal and a CDN font is the one
 * asset that cannot be made offline-safe, so the marketing page does not get
 * to be the exception. Weight and scale carry it instead. */

:root {
  --ex-violet: #5b2bff;
  --ex-yellow: #ffe000;
  --ex-ink: #16052f;
  --ex-page: #f6f6f8;

  /* The mode tints, identical to src/styles/app.css — six hues at full
     saturation, each at the lightness where WHITE clears 4.55:1. */
  --t-chain: #0073e7;
  --t-higher: #e1008f;
  --t-odd: #b915ff;
  --t-gasp: #ec002f;
  --t-guess: #008839;
  --t-sort: #008480;
  --t-daily: #5b2bff;
}

body.landing {
  margin: 0;
  padding: 0;
  background: var(--ex-page);
  color: var(--ex-ink);

  /* pages.css is built for a DARK document: `--theme` is #101828 and `--text`
     resolves to 8% of it mixed with white — near-white body copy, which is
     right on about/privacy/terms/support and invisible here, because this page
     is light. The four prose pages keep their values; this one re-points the
     same variables at a light ground so `p, li { color: var(--text) }` and
     every other inherited rule land the right way up. */
  --text: var(--ex-ink);
  --dim: #55506b;
  --surface: #ffffff;
  --line: #e2dfea;
  --bg: var(--ex-page);
  --accent: var(--ex-violet);
}

body.landing main {
  max-width: 62ch;
  margin: 0 auto;
  padding: 8px 20px 72px;
}

body.landing h2 {
  font-size: clamp(1.4rem, 5vw, 1.9rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 48px 0 10px;
}
body.landing .lede { color: #55506b; margin-top: 0; }
body.landing .eyebrow {
  font-size: 0.75rem; font-weight: 800; letter-spacing: 0.14em;
  text-transform: uppercase; color: #7c7790; margin: 0 0 2px;
}

/* --- hero ------------------------------------------------------------------
   Violet all the way to the edges, so the first thing on screen is the app's
   own colour rather than a white page with a logo on it. */
.hero {
  background: linear-gradient(168deg, #6b3bff 0%, var(--ex-violet) 46%, #3d13d6 100%);
  color: #fff;
  padding: 28px 20px 34px;
  text-align: center;
}
.hero .mark {
  width: 88px; height: 88px; border-radius: 21px; display: block; margin: 0 auto 14px;
}
.hero h1 {
  font-size: clamp(2.6rem, 12vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 0.95;
  margin: 0;
  color: #fff;
}
.hero .tag {
  font-size: clamp(1rem, 4.4vw, 1.2rem);
  font-weight: 700;
  margin: 6px 0 0;
  color: var(--ex-yellow);
}

/* --- the playable question -------------------------------------------------
   A card, not a hero image. The point of the first screen is that you can
   touch it. */
.demo {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 20px;
  padding: 18px 14px 16px;
  margin: 22px auto 0;
  max-width: 30rem;
  text-align: left;
}
.demo-kicker {
  margin: 0 0 8px;
  font-size: 0.74rem; font-weight: 800; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--ex-yellow);
}
.demo-q {
  margin: 0 0 12px;
  font-size: clamp(1.15rem, 5vw, 1.45rem);
  font-weight: 900; letter-spacing: -0.015em;
  text-transform: none; color: #fff;
}
.demo-pair { display: grid; gap: 10px; }

.opt {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 60px;          /* comfortably past the 44px floor */
  padding: 12px 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ex-ink);
  font: inherit;
  font-weight: 800;
  font-size: 1.02rem;
  text-align: left;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}
.opt:hover:not(:disabled) { transform: translateY(-1px); }
.opt:active:not(:disabled) { transform: translateY(1px); }
.opt:disabled { cursor: default; }
.opt-emoji { font-size: 1.5rem; line-height: 1; }
.opt-value { font-variant-numeric: tabular-nums; font-weight: 700; opacity: 0.72; font-size: 0.9rem; }

/* Right and wrong carry a COLOUR and a WORD, never colour alone. */
.opt.is-right { background: #00c46a; border-color: #00c46a; color: #06210f; }
.opt.is-wrong { background: rgba(255, 255, 255, 0.42); border-color: transparent; color: #2c2245; }

.demo-verdict {
  margin: 12px 2px 0;
  min-height: 1.2em;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.45;
  color: #fff;
}
.demo-verdict.good { color: var(--ex-yellow); }
.demo-verdict.bad { color: #ffc9d6; }

.demo-again {
  margin-top: 10px;
  background: none;
  border: 0;
  padding: 10px 2px;
  min-height: 44px;
  color: #fff;
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* --- the two calls to action, deliberately the same size ------------------- */
.ctas {
  display: grid;
  gap: 10px;
  margin: 22px auto 0;
  max-width: 30rem;
}
@media (min-width: 34rem) {
  .ctas { grid-template-columns: 1fr 1fr; }
}
.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 14px 20px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 1.02rem;
  text-decoration: none;
  border: 2px solid transparent;
}
/* `body.landing a` is (0,1,1) and would otherwise beat a bare `.cta-*` at
   (0,1,0), painting both buttons violet — including the outlined one sitting
   ON violet, which made it invisible. Matching that specificity is the fix. */
body.landing .cta-play { background: var(--ex-yellow); color: var(--ex-ink); }   /* 14.9:1 on yellow */
body.landing .cta-tf { background: transparent; color: #ffffff; border-color: #ffffff; }
.cta:hover { filter: brightness(1.06); }
.cta-note { margin: 12px 0 0; font-size: 0.82rem; color: rgba(255,255,255,0.82); }

.ctas-end { margin-top: 34px; }
/* The closing pair sits on the light page, so the colours invert. */
body.landing .ctas-end .cta-play { background: var(--ex-violet); color: #ffffff; }  /* 6.49:1 */
body.landing .ctas-end .cta-tf { color: var(--ex-violet); border-color: var(--ex-violet); background: #ffffff; }

/* --- the seven modes, wearing their own colours --------------------------- */
.modes { display: grid; gap: 10px; padding: 0; list-style: none; margin: 14px 0 0; }
@media (min-width: 34rem) { .modes { grid-template-columns: 1fr 1fr; } }
.modes li {
  border-radius: 16px;
  padding: 16px 18px;
  color: #fff;
  font-size: 0.95rem;
  line-height: 1.45;
  background: var(--tile, var(--ex-violet));
}
.modes b {
  display: block;
  font-size: 1.05rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.m-chain { --tile: var(--t-chain); }
.m-higher { --tile: var(--t-higher); }
.m-odd { --tile: var(--t-odd); }
.m-gasp { --tile: var(--t-gasp); }
.m-guess { --tile: var(--t-guess); }
.m-sort { --tile: var(--t-sort); }
.m-daily { --tile: var(--t-daily); }

/* --- endurance gets the dark band, as it does in the app ------------------ */
.endurance {
  background: var(--ex-ink);
  color: #fff;
  border-radius: 20px;
  padding: 24px 20px;
  margin-top: 44px;
}
.endurance h2 { margin: 0 0 8px; color: #fff; }
.endurance p { color: rgba(255,255,255,0.88); }
/* `body.landing .eyebrow` outranks a bare `.endurance .eyebrow`, which left this
   one grey on ink (4.5:1 at 12px, below the line); it is meant to be yellow. */
body.landing .endurance .eyebrow { color: var(--ex-yellow); }
.endurance-quote {
  margin: 14px 0 0;
  font-size: clamp(1.2rem, 5vw, 1.6rem);
  font-weight: 900;
  color: var(--ex-yellow);
  letter-spacing: -0.02em;
}

.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 20px 0 0; }
.shots img { width: 100%; height: auto; border-radius: 16px; border: 1px solid #dedbe6; }

.plain { padding-left: 1.1rem; }
.plain li { margin-bottom: 8px; }

body.landing .callout {
  border-left: 4px solid var(--ex-violet);
  background: #fff;
  border-radius: 0 12px 12px 0;
  padding: 16px 18px;
  margin: 28px 0 0;
}
body.landing .callout p { margin: 0; }

body.landing footer {
  margin-top: 44px;
  padding-top: 18px;
  border-top: 1px solid #e2dfea;
  font-size: 0.9rem;
  color: #6d6784;
}
body.landing a { color: var(--ex-violet); }

/* Nobody should be ambushed by movement they did not ask for. */
@media (prefers-reduced-motion: reduce) {
  .opt { transition: none; }
  .opt:hover:not(:disabled), .opt:active:not(:disabled) { transform: none; }
}
