/* Kova — getkova.fit
   Palette and token names mirror src/constants/theme.ts so the site and the app stay in step.

   Single-theme by choice, not omission: the forge palette is a dark one and the app ships no
   light mode, so a light variant would be a different brand rather than this one inverted. */

:root {
  --forge: #111111;   /* page ground */
  --surface: #1A1A1A; /* cards */
  --iron: #2C2C2C;    /* hairlines */
  --ash: #F5F5F5;     /* primary text */
  --mute: #9E9E9E;    /* secondary text */
  --heat: #FF5722;    /* primary accent — CTAs, data */
  --ember: #FF8A65;   /* secondary accent */
  --blue: #29B6F6;
  --green: #4CAF50;

  --display: Futura, "Futura PT", "Century Gothic", "Avenir Next", sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --measure: 64ch;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--forge);
  color: var(--ash);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

.wrap { width: min(1080px, 91vw); margin-inline: auto; }
.narrow { width: min(740px, 91vw); margin-inline: auto; }

.label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 0;
}

/* ── Nav ──────────────────────────────────────────────────────────── */
nav { display: flex; align-items: center; justify-content: space-between; padding-block: 20px; gap: 20px; flex-wrap: wrap; }
.lockup { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ash); }
.lockup span { font-family: var(--display); font-weight: 600; font-size: 19px; letter-spacing: 0.3em; text-transform: uppercase; }
.navlinks { display: flex; gap: 26px; flex-wrap: wrap; }
.navlinks a { font-size: 14.5px; color: var(--mute); text-decoration: none; }
.navlinks a:hover, .navlinks a:focus-visible { color: var(--ash); }

/* ── Type ─────────────────────────────────────────────────────────── */
h1 {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(38px, 6vw, 68px); line-height: 1.02;
  letter-spacing: -0.018em; text-wrap: balance;
  max-width: 17ch; margin: 16px 0 0;
}
h2 {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(28px, 3.8vw, 42px); line-height: 1.1;
  letter-spacing: -0.012em; text-wrap: balance; margin: 12px 0 0; max-width: 22ch;
}
h3 { font-family: var(--display); font-weight: 500; font-size: 21px; margin: 12px 0 8px; letter-spacing: -0.005em; }
.lede { max-width: 52ch; margin: 22px 0 0; font-size: 19px; color: var(--mute); }
.section-lede { max-width: var(--measure); color: var(--mute); margin: 16px 0 0; }

/* ── Buttons ──────────────────────────────────────────────────────── */
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; align-items: center; }
.btn { display: inline-block; padding: 13px 26px; border-radius: 6px; font-size: 15px; font-weight: 600; text-decoration: none; }
/* The accent carries the CTA here, as it does in the app, rather than an inverted slab. */
.btn-solid { background: var(--heat); color: #FFFFFF; }
.btn-solid:hover, .btn-solid:focus-visible { background: var(--ember); }
/* Reads as a status, not a control: no pointer, no hover, and it must not look tappable. */
.btn-pending { background: transparent; border: 1px solid var(--iron); color: var(--mute); cursor: default; }
.btn-text { color: var(--mute); }
.btn-text:hover, .btn-text:focus-visible { color: var(--ash); }

/* ── Cards & chart ────────────────────────────────────────────────── */
.chartcard { margin-top: 44px; background: var(--surface); border: 1px solid var(--iron); border-radius: 10px; padding: 22px 22px 16px; }
.chart-head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; flex-wrap: wrap; }
.chart-figs { display: flex; gap: 28px; flex-wrap: wrap; }
.fig b { display: block; font-family: var(--display); font-weight: 500; font-size: 30px; font-variant-numeric: tabular-nums; line-height: 1.1; }
canvas { display: block; width: 100%; height: 190px; margin-top: 14px; }
.legend { display: flex; gap: 20px; margin-top: 10px; flex-wrap: wrap; }
.legend i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; margin-right: 7px; vertical-align: middle; }
.legend span { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute); }

section { padding-block: clamp(48px, 7vw, 84px); border-top: 1px solid var(--iron); }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; margin-top: 40px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 18px; margin-top: 40px; }
.card { background: var(--surface); border: 1px solid var(--iron); border-radius: 10px; padding: 24px; }
.card p { margin: 0; color: var(--mute); font-size: 15.5px; }
.tick { width: 26px; height: 3px; border-radius: 2px; display: block; }

/* ── Coach exchange ───────────────────────────────────────────────── */
.exchange { display: grid; gap: 10px; margin-top: 40px; max-width: 620px; }
.bubble { border-radius: 12px; padding: 14px 18px; font-size: 15.5px; line-height: 1.55; }
.bubble-user { background: var(--heat); color: #fff; justify-self: end; border-bottom-right-radius: 3px; }
.bubble-coach { background: var(--surface); border: 1px solid var(--iron); color: var(--ash); justify-self: start; border-bottom-left-radius: 3px; }
.applied { display: flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green); }
.applied::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

/* ── Tables ───────────────────────────────────────────────────────── */
.tablescroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; margin-top: 36px; font-size: 15.5px; }
th, td { text-align: left; padding: 14px 12px 14px 0; border-bottom: 1px solid var(--iron); vertical-align: top; }
th { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); font-weight: 500; }
td:first-child { font-weight: 600; }
td:last-child { color: var(--mute); }

/* ── Long-form legal pages ────────────────────────────────────────── */
.doc { padding-block: 40px 72px; }
.doc h1 { max-width: 24ch; }
.doc h2 { font-size: clamp(22px, 2.8vw, 29px); max-width: 30ch; margin-top: 52px; }
.doc h3 { font-size: 18px; margin-top: 30px; }
.doc p, .doc li { color: var(--mute); max-width: var(--measure); }
.doc li { margin-bottom: 8px; }
.doc strong { color: var(--ash); font-weight: 600; }
.doc a { color: var(--heat); }
.updated { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); margin-top: 14px; }
.callout { border: 1px solid var(--heat); border-left-width: 3px; border-radius: 6px; padding: 18px 22px; margin: 30px 0; background: rgba(255, 87, 34, 0.06); }
.callout p { color: var(--ash); margin: 0; }
.callout p + p { margin-top: 10px; }
.draft { border-color: var(--ember); background: rgba(255, 138, 101, 0.08); }

/* ── Footer ───────────────────────────────────────────────────────── */
footer { border-top: 1px solid var(--iron); padding-block: 44px 56px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 36px; }
@media (max-width: 720px) { .foot-grid { grid-template-columns: 1fr; gap: 26px; } }
footer a { display: block; color: var(--mute); text-decoration: none; padding: 4px 0; font-size: 15px; }
footer a:hover, footer a:focus-visible { color: var(--heat); }
.legal { margin-top: 38px; padding-top: 22px; border-top: 1px solid var(--iron); color: var(--mute); font-size: 13px; line-height: 1.7; max-width: none; }

a:focus-visible, .btn:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ── Screenshot gallery ──────────────────────────────────────────────────────
   A scroller rather than a grid. Six phone screens side by side on a desktop
   would each be too small to read a number off, and the numbers are the point —
   at this width a training-load figure or a set of macros is still legible.
   Scroll-snap keeps one screen centred rather than stranding people mid-gap. */
.shots {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 4px 22px;
  margin-inline: -4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--iron) transparent;
}
.shots figure {
  flex: 0 0 auto;
  width: 300px;
  margin: 0;
  scroll-snap-align: center;
}
@media (max-width: 640px) { .shots figure { width: 78vw; } }

.shots img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 22px;
  border: 1px solid var(--iron);
  /* The app is near-black, so without this the screens bleed into the page and
     read as one dark smear rather than six devices. */
  box-shadow: 0 18px 40px rgb(0 0 0 / 0.55);
  background: var(--surface);
}

.shots figcaption {
  margin-top: 14px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--mute);
}
.shots figcaption b {
  display: block;
  font-family: var(--display);
  font-weight: 500;
  font-size: 17px;
  color: var(--ash);
  margin-bottom: 2px;
}

.shots-hint {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 0;
}
/* Pointless once every screen already fits, and it would be the only instruction
   on the page that lies. */
@media (min-width: 1100px) { .shots-hint { display: none; } }

@media (prefers-reduced-motion: no-preference) {
  .shots { scroll-behavior: smooth; }
}

/* ── Formerly inline styles ──────────────────────────────────────────────────
   The site's CSP is style-src 'self', which blocks every style="" attribute, so
   twenty of them were silently discarded in production — the coloured ticks on
   the three pillars, the chart legend, the hero's spacing, the footer's layout.
   They live here now. Where a class replaces a declaration an existing rule also
   sets, the selector is compounded rather than trusted to source order: an
   inline style beat everything, and a bare class might not. */
.hero { padding-block: clamp(48px, 8vw, 88px) clamp(28px, 5vw, 56px); }

.c-heat  { background: var(--heat); }
.c-blue  { background: var(--blue); }
.c-green { background: var(--green); }

.applied.mt-tight { margin: 4px 0 0; }

.lockup.mb-12 { margin-bottom: 12px; }
.label.mb-8   { margin-bottom: 8px; }
.foot-blurb   { color: var(--mute); font-size: 15px; margin: 0; max-width: 34ch; }

.legal.flush  { margin-top: 0; border-top: none; padding-top: 0; }
.lede.unbounded { max-width: none; }
a.accent      { color: var(--heat); }

/* Set from load-chart.js by class rather than style.color, so every colour on the page is
   declared here and the stylesheet stays the only place the palette is applied. */
.form-good { color: var(--green); }
.form-hard { color: var(--heat); }

/* The watch mock carries its own case, so the phone frame — border, surface fill,
   shadow — would draw a box around a watch. Figures align to the top so each caption
   sits under its own image rather than floating to a phone's height. */
.shots { align-items: flex-start; }
.shots img.bare { border: none; border-radius: 0; box-shadow: none; background: none; }

.chart-source { margin: 14px 0 0; font-size: 13px; color: var(--mute); }

/* ── Launch waitlist ─────────────────────────────────────────────────────── */
.waitlist { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 34px; max-width: 520px; }
.waitlist input[type="email"] {
  flex: 1 1 240px; min-width: 0;
  padding: 13px 16px; border-radius: 6px;
  border: 1px solid var(--iron); background: var(--surface); color: var(--ash);
  font: inherit; font-size: 15px;
}
.waitlist input[type="email"]::placeholder { color: var(--mute); }
.waitlist input[type="email"]:focus-visible { outline: 2px solid var(--heat); outline-offset: 1px; border-color: transparent; }
.waitlist button { border: none; cursor: pointer; font-family: inherit; }
.waitlist button:disabled { cursor: default; opacity: .75; }
.wl-done button:disabled { opacity: 1; background: var(--surface); color: var(--green); border: 1px solid var(--iron); }
.wl-note { margin: 12px 0 0; font-size: 13.5px; color: var(--mute); }
.wl-note a { color: var(--mute); }
.wl-note.wl-error { color: var(--heat); }
.wl-more { margin: 18px 0 0; }
.wl-more .btn-text { text-decoration: none; font-size: 15px; font-weight: 600; }

/* The honeypot: present for bots, gone for people, including screen readers. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
