/**
 * The marketing site.
 *
 * The tokens are copied from the app's theme.css rather than imported. The app's
 * stylesheet is built for a phone at 480px with its own scroll and safe-area handling,
 * and importing it would drag all of that onto a page that needs none of it. Only the
 * palette and the type scale are shared, because those are the brand; everything else
 * here is page layout the app has no equivalent of.
 *
 * The one rule carried over intact: the three status colours are fixed in both
 * appearances, and never appear without their word.
 */

:root {
  --plane: #f9f9f7;
  --surface: #fcfcfb;
  --ink: #0b0b0b;
  --ink-2: #3d3d3a;
  --ink-muted: #898781;
  --hairline: rgba(11, 11, 11, 0.1);

  --go: #0ca30c;
  --caution: #fab219;
  --no: #d03b3b;

  --text-display: clamp(38px, 7vw, 64px);
  --text-xl: 21px;
  --text-lg: 17px;
  --text-md: 16px;
  --text-sm: 14px;
  --text-xs: 12px;

  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 40px;
  --space-7: 72px;

  --radius-md: 14px;
  --radius-pill: 999px;
  --measure: 62ch;
}

@media (prefers-color-scheme: dark) {
  :root {
    --plane: #0d0d0d;
    --surface: #1a1a19;
    --ink: #ffffff;
    --ink-2: #c9c7c2;
    --ink-muted: #898781;
    --hairline: rgba(255, 255, 255, 0.1);
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--plane);
  color: var(--ink);
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: var(--text-md);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 var(--space-5);
}

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

header {
  padding: var(--space-6) 0 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: 600;
  font-size: var(--text-lg);
  text-decoration: none;
  color: inherit;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

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

.hero {
  padding: var(--space-7) 0 var(--space-6);
}

h1 {
  font-size: var(--text-display);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-4);
  max-width: 16ch;
}

.lede {
  font-size: var(--text-xl);
  line-height: 1.45;
  color: var(--ink-2);
  max-width: var(--measure);
  margin: 0 0 var(--space-5);
}

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

.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-5);
  padding: var(--space-4) 0 var(--space-7);
}

.shot img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
  border: 1px solid var(--hairline);
}

.shot p {
  font-size: var(--text-sm);
  color: var(--ink-muted);
  margin: var(--space-3) 0 0;
}

/* ───────────────────────────────────────────────────────────── content ──── */

section {
  padding: var(--space-6) 0;
  border-top: 1px solid var(--hairline);
}

h2 {
  font-size: var(--text-xl);
  margin: 0 0 var(--space-4);
  letter-spacing: -0.01em;
}

h3 {
  font-size: var(--text-lg);
  margin: var(--space-5) 0 var(--space-2);
}

p,
li {
  max-width: var(--measure);
  color: var(--ink-2);
}

.points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-5);
}

.point {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: var(--space-5);
}

.point h3 {
  margin-top: 0;
  font-size: var(--text-md);
  color: var(--ink);
}

.point p {
  margin: 0;
  font-size: var(--text-sm);
}

/**
 * The verdict swatch, carried over from the app.
 *
 * The rule travels with it: the colour never appears without its word, so each dot is
 * inside a label rather than standing on its own.
 */
.key {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  padding: 0;
  margin: var(--space-4) 0 0;
  list-style: none;
}

.key li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-pill);
  flex: none;
}

.dot.go { background: var(--go); }
.dot.caution { background: var(--caution); }
.dot.no { background: var(--no); }

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

footer {
  border-top: 1px solid var(--hairline);
  padding: var(--space-5) 0 var(--space-6);
  font-size: var(--text-sm);
  color: var(--ink-muted);
}

footer a {
  color: var(--ink-2);
  margin-right: var(--space-4);
}

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

.note {
  font-size: var(--text-sm);
  color: var(--ink-muted);
}

code {
  font-size: 0.9em;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 5px;
  padding: 1px 5px;
}
