/* Forge Fitness — useforgefitness.com
 *
 * The palette and the typeface are the APP'S OWN (Manrope, Forge blue,
 * and the meaning colours from AppStore.swift's adaptive tokens), so the
 * site reads as the product rather than as marketing about it. The
 * meaning colours — sleep purple, heart red, streak orange, PR gold —
 * are used only where they mean what they mean in the app.
 *
 * Every colour is a token on :root, redefined for dark twice: once
 * behind prefers-color-scheme (guarded so an explicit light choice
 * wins), once behind [data-theme="dark"].
 */

:root {
  /* Neutrals, biased very slightly blue so they sit with the accent
     rather than reading as unconsidered grey. */
  --ground:        #ffffff;
  --surface:       #f5f6f9;
  --surface-2:     #eceef4;
  --line:          #e1e4ec;
  --line-strong:   #cdd2de;
  --ink:           #0b0d12;
  --ink-2:         #3d4351;
  --ink-3:         #6b7280;

  --accent:        #007aff;   /* Forge blue */
  --accent-soft:   #e8f1ff;
  --accent-ink:    #0060cc;

  /* Meaning colours, from the app. Never decorative. */
  --sleep:         #5856d6;
  --heart:         #ff3b30;
  --streak:        #ff9500;
  --gold:          #d9991a;
  --green:         #34c759;

  /* The app's own card, and the amber of a personal record. */
  --card:          #ffffff;
  --gold-soft:     #fdf6e7;
  --gold-line:     #f1dcae;
  --gold-ink:      #8a5a00;

  --radius:        14px;
  --radius-lg:     22px;
  --shadow:        0 1px 2px rgba(11, 13, 18, .04), 0 8px 28px rgba(11, 13, 18, .06);

  --max:           1080px;
  --gutter:        clamp(16px, 5vw, 40px);

  --sans: "Manrope", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground:      #0e1014;
    --surface:     #171a20;
    --surface-2:   #1f232b;
    --line:        #262b34;
    --line-strong: #363c47;
    --ink:         #f2f4f8;
    --ink-2:       #c2c8d4;
    --ink-3:       #8b93a3;

    --accent:      #0a84ff;
    --accent-soft: #10243f;
    --accent-ink:  #63b2ff;

    --sleep:       #6e6ce8;
    --heart:       #ff453a;
    --streak:      #ff9f0a;
    --gold:        #e6a83c;
    --green:       #30d158;
    --card:        #1f232b;
    --gold-soft:   #261f12;
    --gold-line:   #4a3a1a;
    --gold-ink:    #f0c060;

    --shadow:      0 1px 2px rgba(0, 0, 0, .5), 0 10px 32px rgba(0, 0, 0, .38);
  }
}

:root[data-theme="dark"] {
  --ground:      #0e1014;
  --surface:     #171a20;
  --surface-2:   #1f232b;
  --line:        #262b34;
  --line-strong: #363c47;
  --ink:         #f2f4f8;
  --ink-2:       #c2c8d4;
  --ink-3:       #8b93a3;

  --accent:      #0a84ff;
  --accent-soft: #10243f;
  --accent-ink:  #63b2ff;

  --sleep:       #6e6ce8;
  --heart:       #ff453a;
  --streak:      #ff9f0a;
  --gold:        #e6a83c;
  --green:       #30d158;
  --card:        #1f232b;
  --gold-soft:   #261f12;
  --gold-line:   #4a3a1a;
  --gold-ink:    #f0c060;

  --shadow:      0 1px 2px rgba(0, 0, 0, .5), 0 10px 32px rgba(0, 0, 0, .38);
}

/* ─────────────────────────────────────────────────────────── base */

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

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

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

h1, h2, h3 { margin: 0; text-wrap: balance; letter-spacing: -0.02em; line-height: 1.12; }
p { margin: 0; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.lede { font-size: clamp(17px, 2.1vw, 20px); color: var(--ink-2); max-width: 62ch; }

section { padding-block: clamp(56px, 9vw, 104px); }
section + section { border-top: 1px solid var(--line); }

/* ─────────────────────────────────────────────────────────── header */

header.site {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--ground) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

header.site .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 62px;
}

.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.brand span { font-size: 16.5px; letter-spacing: -0.01em; }

header.site nav { margin-left: auto; display: flex; align-items: center; gap: clamp(12px, 2.4vw, 26px); min-width: 0; }
header.site nav a { color: var(--ink-2); font-size: 15px; font-weight: 600; }
header.site nav a:hover { color: var(--ink); text-decoration: none; }
header.site nav a.cta { color: #fff; }

/* ─────────────────────────────────────────────────────────── buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15.5px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); }
:root[data-theme="dark"] .btn-primary:hover,
:root:not([data-theme="light"]) .btn-primary:hover { color: #0e1014; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--surface); }
header.site .btn { padding: 8px 15px; font-size: 14.5px; }

/* A PHONE HAS NO ROOM FOR FOUR HEADER LINKS. Left as-is the nav ran
   past the right edge and the WHOLE PAGE scrolled sideways. The two
   that go are anchors into the page you are already on; Support is a
   real destination and stays, and everything is in the footer anyway. */
.brand span { white-space: nowrap; }
@media (max-width: 660px) {
  header.site nav a.drop-sm { display: none; }
}
/* Narrower still (a small phone, or a split-screen window): the brand
   and the one CTA are all that fit, and Support is in the footer of
   every page anyway. Measured, not guessed - at 303px the button ran
   32px past the edge and took the whole page sideways with it. */
@media (max-width: 420px) {
  header.site .wrap { gap: 10px; }
  header.site nav a.drop-xs { display: none; }
  .brand span { font-size: 15.5px; }
  header.site .btn { padding: 8px 13px; font-size: 14px; }
}

/* ─────────────────────────────────────────────────────────── hero */

.hero { padding-top: clamp(44px, 7vw, 80px); padding-bottom: clamp(40px, 6vw, 72px); }
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.hero h1 { font-size: clamp(38px, 6.4vw, 66px); font-weight: 800; }
.hero .lede { margin-top: 20px; }
.hero-actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-note { margin-top: 16px; font-size: 14px; color: var(--ink-3); }

.phone {
  justify-self: center;
  width: min(300px, 76vw);
  border-radius: 38px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  padding: 8px;
  box-shadow: var(--shadow);
}
.phone img { border-radius: 31px; }

/* ON A PHONE THE SENTENCE COMES FIRST. Stacked, a 250px mock ate the
   whole first screen and the headline - the thesis of the page - opened
   below the fold. The screenshot is evidence for the claim, so it reads
   after it. */
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .phone { width: min(240px, 62vw); margin-top: 8px; }
}

/* ────────────────────────────────────────────────── the honesty rule */

.rule-head { display: grid; gap: 14px; margin-bottom: clamp(28px, 4vw, 44px); }
.rule-head h2 { font-size: clamp(27px, 3.8vw, 40px); font-weight: 800; }

/* EACH CLAIM SITS BESIDE THE SCREEN THAT PROVES IT (owner Sep 27 2026:
   "present it in a different way"). The quotes used to be monospace
   boxes with a coloured rail, four cards that left one orphaned on its
   own row. Now each row is one sentence and a copy of the real app card,
   drawn in the app's own type and colours, so the proof looks like the
   product. The recovery card shows a full night: the owner did not want
   a dash on the page. */
.proofs { border-top: 1px solid var(--line); }
.proof {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  padding-block: clamp(28px, 4vw, 44px);
  border-bottom: 1px solid var(--line);
}
.proof:last-child { border-bottom: 0; padding-bottom: 0; }
.proof-text h3 { font-size: clamp(21px, 2.4vw, 26px); font-weight: 800; margin-bottom: 10px; }
.proof-text p { font-size: 16.5px; color: var(--ink-2); max-width: 44ch; }
.proof-stage {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: clamp(16px, 3vw, 28px);
  display: grid;
  gap: 12px;
}
@media (max-width: 760px) {
  .proof { grid-template-columns: 1fr; gap: 18px; }
}

.app-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 18px;
}
.app-label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 10px;
}
.app-title { font-size: 16px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.app-body { margin-top: 6px; font-size: 15px; color: var(--ink-2); line-height: 1.5; }
.app-note { margin-top: 6px; font-size: 13.5px; color: var(--ink-3); line-height: 1.45; }

.metrics { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
.metric { display: grid; justify-items: center; gap: 2px; }
.metric strong { font-size: 24px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.metric span { font-size: 13px; color: var(--ink-3); }
.icon {
  width: 22px; height: 22px; margin-bottom: 4px;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.icon-hrv   { color: var(--accent); }
.icon-heart { color: var(--heart); }
.icon-sleep { color: var(--sleep); }

.band { background: var(--accent-soft); border-color: transparent; }
.band-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.band-top b { font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: var(--accent); }
.band-top span { font-size: 14px; font-weight: 600; color: var(--accent); }
.track { position: relative; height: 6px; margin: 14px 0 8px; border-radius: 99px; background: var(--line); }
.track::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 42%; width: 16%;
  border-radius: 99px; background: var(--line-strong);
}
.track i {
  position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px;
  border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.track-labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-3); }
.band-action { margin-top: 10px; font-size: 15px; color: var(--ink); }

.pr { background: var(--gold-soft); border-color: var(--gold-line); }
.pr .app-label { color: var(--gold-ink); }
.pr-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pr-set { margin-top: 2px; font-size: 15px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.pr-side { display: grid; justify-items: end; gap: 6px; text-align: right; }
.pr-badge {
  font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: var(--gold-ink); background: var(--card);
  border: 1px solid var(--gold-line); border-radius: 99px; padding: 3px 9px;
}
.pr-gain { font-size: 13.5px; font-weight: 600; color: var(--gold-ink); }

.set-row { display: grid; grid-template-columns: 28px 1fr 1fr; gap: 10px; align-items: center; margin-top: 14px; }
.set-num {
  width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  font-size: 13px; font-weight: 600; color: var(--ink-2);
}
.box {
  height: 40px; padding-inline: 10px;
  border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface);
  display: flex; align-items: center; justify-content: flex-end;
}
.box em { font-style: normal; font-size: 12.5px; color: var(--ink-3); }

/* ─────────────────────────────────────────────────────────── pillars */

.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: clamp(20px, 3vw, 34px); }
.pillar h3 { font-size: 21px; font-weight: 800; margin-bottom: 4px; }
.pillar .eyebrow { display: block; margin-bottom: 12px; }
.pillar ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 11px; }
.pillar li {
  font-size: 15.5px;
  color: var(--ink-2);
  padding-left: 22px;
  position: relative;
  line-height: 1.52;
}
.pillar li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .62em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--tint, var(--accent));
}
.pillar[data-tint="streak"] li::before { background: var(--streak); }
.pillar[data-tint="sleep"]  li::before { background: var(--sleep); }

/* ─────────────────────────────────────────────────────────── shots */

.shots {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(252px, 68vw);
  gap: 18px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding-block: 6px 18px;
  /* full-bleed rail so the row can run to the screen edge without the
     page itself ever scrolling sideways */
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
}
.shot { scroll-snap-align: start; display: grid; gap: 12px; }
.shot img {
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.shot figcaption { font-size: 14px; color: var(--ink-3); padding-inline: 2px; }
.shot figcaption b { color: var(--ink-2); font-weight: 700; }

/* ────────────────────────────────────────────────────────── privacy */

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin-top: clamp(26px, 4vw, 40px);
}
.fact {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: grid;
  gap: 6px;
  align-content: start;
}
.fact .num { font-family: var(--mono); font-size: 25px; font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; }
.fact p { font-size: 15px; color: var(--ink-2); }

.callout {
  margin-top: clamp(26px, 4vw, 40px);
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 28px);
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}
.callout p { color: var(--ink); font-weight: 600; max-width: 54ch; }

/* ────────────────────────────────────────────────────────── support */

.support-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); gap: 16px; margin-top: clamp(24px, 4vw, 36px); }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: grid;
  gap: 9px;
  align-content: start;
}
.card h3 { font-size: 17.5px; font-weight: 800; }
.card p, .card li { font-size: 15.5px; color: var(--ink-2); }
.card ul { margin: 0; padding-left: 20px; display: grid; gap: 7px; }

/* ─────────────────────────────────────────────────────────── footer */

footer.site { border-top: 1px solid var(--line); padding-block: 36px 44px; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; }
footer.site .legal { font-size: 14px; color: var(--ink-3); }
footer.site nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 18px; }
footer.site nav a { font-size: 14px; color: var(--ink-2); font-weight: 600; }

/* ───────────────────────────────────────────────────── inner pages */

.page-head { padding-top: clamp(42px, 6vw, 72px); padding-bottom: clamp(18px, 3vw, 30px); }
.page-head h1 { font-size: clamp(32px, 5vw, 48px); font-weight: 800; }
.page-head .lede { margin-top: 16px; }
.prose { display: grid; gap: 18px; max-width: 68ch; }
.prose h2 { font-size: 21px; font-weight: 800; margin-top: 14px; }
.prose p, .prose li { color: var(--ink-2); font-size: 16.5px; }
.prose ul { margin: 0; padding-left: 22px; display: grid; gap: 9px; }
