/* FIGHTR — the public site.
   ──────────────────────────────────────────────────────────────────────────
   One stylesheet, no build step. It carries two jobs that want different
   things, so it is organised in two halves:

     1. TOKENS + LEGAL   a policy page is read, not admired. Plain, wide
                         measure, high contrast, nothing that could confuse a
                         reviewer's parser.
     2. THE LANDING PAGE RING's actual design language, because the site and
                         the product should visibly be one thing.

   ── THE TOKENS ARE THE APP'S, EXACTLY ────────────────────────────────────
   Values are copied verbatim from mobile/src/theme/tokens.ts. An earlier pass
   lightened `--mid` to #c9c0b2 for readability; it is back to the app's
   #B5AEA3, which measures ~9:1 on this background — comfortably past AA, so
   the divergence bought nothing and cost brand coherence.

   ── THE ACCENT LAW APPLIES HERE TOO ──────────────────────────────────────
   The accent marks what is LIVE, CURRENT, SELECTED or EARNED. On a website
   that means: the selected theme swatch, the PRO column, "free forever"
   markers, and links. It is never a heading colour, never a button fill,
   never decoration. The primary button is BONE on near-black, exactly as it
   is in the app. */

:root {
  --bg: #0b0a09;
  --surface: #16130f;
  --sunk: #100e0c;
  --raised: #201c16;

  --bone: #f4efe6;
  --mid: #b5aea3;
  --quiet: #9a9186;

  --edge: rgba(244, 239, 230, 0.1);
  --edge2: rgba(244, 239, 230, 0.18);

  /* EMBER, the default. The swatch row rewrites these three live. */
  --accent: #f0574a;
  --accent-edge: rgba(240, 87, 74, 0.45);
  --accent-wash: rgba(240, 87, 74, 0.12);

  --display: 'Space Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --body: 'Lexend', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --numeral: 'Archivo', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --gutter: 22px;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--mid);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Keyboard users must always be able to see where they are. */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ══ 1. LEGAL + NARROW PAGES ══════════════════════════════════════════════ */

.wrap { max-width: 720px; margin: 0 auto; padding: 40px var(--gutter) 72px; }

header { border-bottom: 1px solid var(--edge); padding-bottom: 22px; margin-bottom: 32px; }

.brand {
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.18em;
  font-size: 14px;
  color: var(--bone);
  text-decoration: none;
}

.rule { width: 26px; height: 3px; background: var(--accent); margin-bottom: 18px; }

h1 { font-family: var(--display); color: var(--bone); font-size: 28px; line-height: 1.15; margin: 0 0 8px; letter-spacing: -0.015em; }
h2 { font-family: var(--display); color: var(--bone); font-size: 18px; margin: 34px 0 10px; letter-spacing: -0.005em; }
h3 { font-family: var(--display); color: var(--bone); font-size: 15px; margin: 22px 0 6px; }

.updated { color: var(--quiet); font-size: 13px; margin: 0 0 6px; }

p, li { color: var(--mid); }
ul { padding-left: 20px; }
li { margin-bottom: 7px; }

a { color: var(--accent); }

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

.box {
  background: var(--surface);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  padding: 16px 18px;
  margin: 22px 0;
}
.box p:first-child { margin-top: 0; }
.box p:last-child { margin-bottom: 0; }

table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
th, td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--edge); vertical-align: top; }
th { color: var(--bone); font-weight: 600; }

footer {
  border-top: 1px solid var(--edge);
  margin-top: 48px;
  padding-top: 22px;
  color: var(--quiet);
  font-size: 13px;
}
footer a { color: var(--quiet); }

/* Anything still carrying a placeholder is impossible to miss — a legal page
   that ships with [[FILL: …]] in it is worse than no page at all. */
.fill {
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
  padding: 0 5px;
  border-radius: 3px;
}

/* ══ 2. THE LANDING PAGE ══════════════════════════════════════════════════ */

.page { max-width: 1080px; margin: 0 auto; padding: 0 var(--gutter); }

/* ── Nav ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 10, 9, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--edge);
}
.nav-in {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav .brand { font-size: 15px; }
.spacer { flex: 1; }

/* ── The section rule: a tracked label with a hairline running right ── */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--body);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--quiet);
  text-transform: uppercase;
  margin: 0 0 18px;
}
.eyebrow::after { content: ''; flex: 1; height: 1px; background: var(--edge); }
.eyebrow.accent { color: var(--accent); }

section { padding: 68px 0; border-top: 1px solid var(--edge); }
section:first-of-type { border-top: 0; }

.h2 {
  font-family: var(--display);
  font-weight: 700;
  color: var(--bone);
  font-size: clamp(26px, 4.4vw, 38px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  margin: 0 0 14px;
}
.lede { font-size: clamp(15px, 2vw, 17px); line-height: 1.62; max-width: 62ch; margin: 0 0 26px; }

/* ── Hero ── */
.hero { padding: clamp(56px, 11vw, 104px) 0 68px; }
.hero h1 {
  font-family: var(--display);
  font-weight: 700;
  color: var(--bone);
  font-size: clamp(38px, 8.2vw, 74px);
  line-height: 0.99;
  letter-spacing: -0.035em;
  margin: 0 0 20px;
  max-width: 15ch;
}
.hero .lede { font-size: clamp(16px, 2.3vw, 19px); max-width: 56ch; }

/* ── Buttons: BONE is primary. The accent never fills a button. ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 26px;
  border-radius: 4px;
  border: 1px solid var(--bone);
  background: var(--bone);
  color: var(--bg);
  font-family: var(--display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.15s ease;
}
.btn:hover { opacity: 0.88; }
.btn.ghost { background: transparent; border-color: var(--edge2); color: var(--bone); }
.btn.sm { height: 40px; padding: 0 16px; font-size: 11px; letter-spacing: 0.12em; }

/* ── Waitlist ── */
.waitlist { display: flex; flex-wrap: wrap; gap: 9px; max-width: 520px; }
.waitlist input {
  flex: 1 1 240px;
  height: 50px;
  padding: 0 15px;
  border-radius: 4px;
  border: 1px solid var(--edge2);
  background: var(--surface);
  color: var(--bone);
  font-family: var(--body);
  font-size: 15px;
}
/* Defect #7, the one that has burned this project six times: a placeholder
   must be a real, readable colour at full opacity — never the browser's
   washed-out default. */
.waitlist input::placeholder { color: var(--quiet); opacity: 1; }
.waitlist input:focus { border-color: var(--accent-edge); outline: none; }
.note { font-size: 13px; color: var(--quiet); margin: 12px 0 0; max-width: 52ch; }
.status { font-size: 14px; margin: 12px 0 0; min-height: 1.2em; }
.status.ok { color: var(--accent); }
.status.err { color: #c2261d; }

/* ── Stat strip ── */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat .n {
  font-family: var(--numeral);
  font-weight: 900;
  font-size: clamp(28px, 5.2vw, 44px);
  line-height: 1;
  color: var(--bone);
  font-variant-numeric: tabular-nums;
}
.stat .l {
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: var(--quiet);
  text-transform: uppercase;
  margin-top: 6px;
}

/* ── Cards ── */
.grid { display: grid; gap: 12px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.four { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface);
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 20px 20px 22px;
}
.card h3 { font-size: 16px; margin: 0 0 7px; letter-spacing: 0.01em; }
.card p { font-size: 14px; line-height: 1.55; margin: 0; color: var(--quiet); }
.card .tag {
  display: inline-block;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: var(--accent);
  border: 1px solid var(--accent-edge);
  border-radius: 2px;
  padding: 2px 6px;
  margin-bottom: 11px;
}
.card .tag.free { color: var(--bone); border-color: var(--edge2); }

/* ── The gear ladder ── */
.ladder { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.gear { background: var(--surface); border-radius: 7px; padding: 17px 17px 19px; border-top: 2px solid var(--edge2); }
.gear .k { font-family: var(--numeral); font-weight: 900; font-size: 12px; color: var(--quiet); }
.gear .n { font-family: var(--display); font-weight: 700; font-size: 17px; color: var(--bone); letter-spacing: 0.05em; margin: 7px 0 5px; }
.gear p { font-size: 13px; line-height: 1.5; color: var(--quiet); margin: 0; }
/* The last gear is where the block is proved — accent as "earned". */
.gear.last { border-top-color: var(--accent); }
.gear.last .n { color: var(--accent); }

/* ── The camp climb ── */
.climb { display: flex; align-items: flex-end; gap: 10px; height: 190px; margin-top: 6px; }
.day { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; text-align: center; }
.day .bar { background: var(--raised); border-radius: 4px 4px 0 0; width: 100%; }
.day.peak .bar { background: var(--accent-wash); border-top: 2px solid var(--accent); }
.day .r { font-family: var(--numeral); font-weight: 900; font-size: 15px; color: var(--bone); margin-bottom: 7px; font-variant-numeric: tabular-nums; }
.day.peak .r { color: var(--accent); }
.day .d { font-size: 9.5px; letter-spacing: 0.12em; color: var(--quiet); margin-top: 9px; text-transform: uppercase; }

/* ── Pricing ── */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; max-width: 620px; }
.plan { background: var(--surface); border: 1px solid transparent; border-radius: 8px; padding: 20px; }
.plan.best { background: var(--raised); border-color: var(--accent-edge); }
.plan .p-n { font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: 0.06em; color: var(--bone); }
.plan.best .p-n { color: var(--accent); }
.plan .p-p { font-family: var(--numeral); font-weight: 900; font-size: 30px; color: var(--bone); margin: 10px 0 2px; font-variant-numeric: tabular-nums; }
.plan .p-s { font-size: 12px; color: var(--quiet); }

/* ── The comparison table ──
   THE ONE RATIFIED EXCEPTION to the accent law: the PRO column carries a
   continuous accentWash band. The wash carries column identity; the cell TEXT
   stays bone, so the accent still never stands in for a value. */
.compare { width: 100%; border-collapse: collapse; margin-top: 20px; }
.compare th, .compare td { border-bottom: 1px solid var(--edge); padding: 13px 10px 13px 0; }
.compare thead th { border-bottom: 0; padding-bottom: 9px; font-size: 9.5px; letter-spacing: 0.16em; color: var(--quiet); font-weight: 500; text-transform: uppercase; }
.compare .c-free, .compare .c-pro { width: 84px; text-align: center; padding-right: 0; }
.compare .c-pro { background: var(--accent-wash); }
.compare thead .c-pro { color: var(--accent); font-weight: 700; border-radius: 5px 5px 0 0; }
.compare tbody tr:last-child .c-pro { border-radius: 0 0 5px 5px; }
.compare td.feat { font-size: 14.5px; line-height: 1.4; color: var(--mid); }
.compare td.feat.key { color: var(--bone); }
.compare .c-free { font-family: var(--display); font-weight: 600; font-size: 12px; color: var(--quiet); }
.compare .c-pro { font-family: var(--display); font-weight: 700; font-size: 12px; color: var(--bone); }

/* ── Theme swatches ── */
.swatches { display: flex; gap: 7px; }
.sw {
  width: 22px;
  height: 22px;
  border-radius: 12px;
  border: 2px solid transparent;
  background: none;
  padding: 0;
  cursor: pointer;
  position: relative;
}
.sw i { display: block; position: absolute; inset: 3px; border-radius: 9px; }
.sw[aria-pressed='true'] { border-color: var(--bone); }

/* ── Site footer ── */
.site-foot { border-top: 1px solid var(--edge); padding: 34px 0 46px; }
.foot-in { display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; }
.foot-in a { color: var(--quiet); text-decoration: none; font-size: 13px; }
.foot-in a:hover { color: var(--bone); }
.copy { font-size: 12.5px; color: var(--quiet); margin: 18px 0 0; }

/* ── Responsive ── */
@media (max-width: 860px) {
  .grid.four, .ladder { grid-template-columns: repeat(2, 1fr); }
  .grid.three { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .stats { grid-template-columns: repeat(2, 1fr); gap: 22px 14px; }
  .grid.two, .grid.four, .ladder, .plans { grid-template-columns: 1fr; }
  section { padding: 52px 0; }
  .climb { height: 150px; }
  .compare .c-free, .compare .c-pro { width: 64px; }
  .nav .swatches { display: none; }
}
