/* Colours, radii and shadows come from tokens.css, which is generated by the design
   system. Never write a hex value here. See ../chop-chop-design-system/DESIGN.md. */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin.woff2") format("woff2");
  font-weight: 500 900;
  font-display: swap;
}

* { box-sizing: border-box; margin: 0; }

body {
  background: var(--cc-color-paper-100);
  color: var(--cc-color-ink-900);
  font-family: var(--cc-font-body);
  font-size: var(--cc-size-body);
  font-weight: 500;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul, ol { padding: 0; list-style: none; }

/* Every numeral and heading is Archivo; prose stays on the system font. */
h1, h2, h3, .figure {
  font-family: var(--cc-font-display);
  font-variant-numeric: tabular-nums;
  text-wrap: balance;
}
h1 { font-size: 44px; font-weight: 900; line-height: 1.02; letter-spacing: var(--cc-tracking-tight); }
h1 span { display: block; }
h2 { font-size: 32px; font-weight: 800; line-height: 1.08; letter-spacing: var(--cc-tracking-tight); }
h3 { font-size: var(--cc-size-title-lg); font-weight: 800; letter-spacing: var(--cc-tracking-snug); line-height: 1.2; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow-left { max-width: 680px; }

.overline {
  font-family: var(--cc-font-display);
  font-size: var(--cc-size-overline);
  font-weight: 800;
  letter-spacing: var(--cc-tracking-overline);
  text-transform: uppercase;
  color: var(--cc-color-ink-600);
  margin-bottom: 16px;
}
.lead { margin-top: 20px; font-size: var(--cc-size-title); line-height: 1.6; color: var(--cc-color-ink-600); }
.fine { margin-top: 12px; font-size: var(--cc-size-footnote-lg); font-weight: 600; color: var(--cc-color-ink-600); }

/* ── Surfaces ─────────────────────────────────────────────────────────────── */
.band { padding: 72px 0; }
.paper { background: var(--cc-color-paper-100); }
.sand { background: var(--cc-color-paper-200); }
.night { background: var(--cc-color-ink-950); color: var(--cc-color-paper-50); }
.sky { background: var(--cc-gradient-night-sky); }
.night .overline, .night .lead, .night .fine { color: var(--cc-color-ink-300); }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--cc-radius-xl);
  background: var(--cc-gradient-action);
  box-shadow: var(--cc-shadow-accent);
  color: var(--cc-color-paper-50);
  font-size: var(--cc-size-body-lg);
  font-weight: 700;
  text-decoration: none;
  transition: filter 0.15s;
}
.button:hover { filter: brightness(1.08); }
.button-small { padding: 9px 16px; font-size: var(--cc-size-footnote-lg); border-radius: var(--cc-radius-md); box-shadow: none; }
.button-ghost { background: none; box-shadow: none; border: 1px solid var(--cc-border); }
.button-ghost:hover { background: var(--cc-surface); filter: none; }
.button-light { background: var(--cc-color-paper-50); box-shadow: none; color: var(--cc-color-ink-900); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.top { display: flex; align-items: center; justify-content: space-between; padding-top: 24px; padding-bottom: 24px; }
.logo { height: 40px; width: auto; }
.top nav { display: flex; align-items: center; gap: 24px; }
.nav-link {
  display: none;
  color: var(--cc-color-ink-300);
  font-size: var(--cc-size-footnote-lg);
  font-weight: 600;
  text-decoration: none;
}
.nav-link:hover { color: var(--cc-color-paper-50); }

.hero { display: grid; gap: 36px; padding-top: 28px; padding-bottom: 40px; align-items: center; }
.video {
  position: relative;
  overflow: hidden;
  border-radius: var(--cc-radius-4xl);
  background: var(--cc-color-ink-900);
  box-shadow: var(--cc-shadow-raised);
}
.video video { width: 100%; aspect-ratio: 16 / 9; }
.play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 20px;
  border: 0;
  background: none;
  cursor: pointer;
  font: inherit;
}
.play[hidden] { display: none; }
.play .figure { font-size: var(--cc-size-body); font-weight: 800; }

.stats { display: grid; gap: 12px; padding-bottom: 64px; }
.stat { padding: 20px 24px; border-radius: var(--cc-radius-4xl); background: var(--cc-surface); }
.stat .figure { font-size: var(--cc-size-display); font-weight: 800; line-height: 1; color: var(--cc-color-brand-700); }
.stat p { margin-top: 8px; font-size: var(--cc-size-footnote-lg); font-weight: 600; color: var(--cc-color-ink-300); }

/* ── Problem ──────────────────────────────────────────────────────────────── */
.belief {
  margin-top: 28px;
  font-family: var(--cc-font-display);
  font-size: var(--cc-size-heading-lg);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: var(--cc-tracking-snug);
  text-wrap: balance;
}

/* ── Cards ────────────────────────────────────────────────────────────────── */
.card {
  padding: 24px;
  border-radius: var(--cc-radius-4xl);
  background: var(--cc-color-paper-50);
  box-shadow: var(--cc-shadow-md);
}
.card p, .card li { color: var(--cc-color-ink-600); }
.card h3 + p { margin-top: 8px; }
.cards, .compare, .pricing { display: grid; gap: 16px; margin-top: 40px; }
.partner { height: 48px; width: auto; margin-bottom: 16px; }
.card .card-figure { height: 48px; margin-bottom: 16px; font-size: var(--cc-size-display); font-weight: 800; line-height: 48px; color: var(--cc-color-ink-900); }

/* ── Plan ─────────────────────────────────────────────────────────────────── */
.steps { display: grid; gap: 28px; margin-top: 40px; }
.step-number {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--cc-surface-raised);
  font-size: var(--cc-size-title-lg);
  font-weight: 800;
}
.steps p { margin-top: 6px; color: var(--cc-color-ink-300); }

.screens { display: grid; gap: 16px; margin-top: 48px; }
.screens img { width: 100%; height: 340px; object-fit: cover; object-position: bottom; border-radius: var(--cc-radius-4xl); }
.screen-wide img { height: auto; }
.screens figcaption { margin-top: 10px; font-size: var(--cc-size-footnote-lg); font-weight: 600; color: var(--cc-color-ink-300); }

.promises { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.promises li {
  padding: 8px 16px;
  border-radius: var(--cc-radius-pill);
  background: var(--cc-surface-raised);
  font-size: var(--cc-size-footnote-lg);
  font-weight: 700;
}

/* ── Stakes ───────────────────────────────────────────────────────────────── */
.compare ul { margin-top: 14px; }
.compare li { padding: 10px 0; border-top: 1px solid var(--cc-color-paper-200); }
.card-win { box-shadow: var(--cc-shadow-lg), 0 0 0 2px var(--cc-color-brand-700); }
.card-win li { color: var(--cc-color-ink-900); }

/* ── Pricing ──────────────────────────────────────────────────────────────── */
.pricing h3 { font-family: var(--cc-font-body); font-size: var(--cc-size-body); font-weight: 700; letter-spacing: 0; color: var(--cc-color-ink-600); }
.card .price { margin-top: 8px; font-family: var(--cc-font-display); font-size: var(--cc-size-display); font-weight: 900; line-height: 1; letter-spacing: var(--cc-tracking-tight); color: var(--cc-color-ink-900); }
.price span { font-family: var(--cc-font-body); font-size: var(--cc-size-body); font-weight: 700; letter-spacing: 0; color: var(--cc-color-ink-600); }
.pricing ul { margin: 16px 0 24px; }
.pricing li { padding: 4px 0; }

table { width: 100%; margin-top: 8px; border-collapse: collapse; font-size: var(--cc-size-footnote-lg); }
th, td { padding: 9px 2px; text-align: right; border-top: 1px solid var(--cc-color-paper-200); }
thead th { border-top: 0; }
th[scope="row"], thead th:first-child { text-align: left; font-weight: 600; color: var(--cc-color-ink-600); }
thead th:not(:first-child), td { font-family: var(--cc-font-display); font-weight: 800; font-variant-numeric: tabular-nums; }
.total th[scope="row"] { font-weight: 700; color: var(--cc-color-ink-900); }
.total td { color: var(--cc-color-brand-700); }
.note { margin-top: 12px; font-size: var(--cc-size-caption-lg); line-height: 1.5; }

/* ── Other audiences ──────────────────────────────────────────────────────── */
.others { display: grid; gap: 16px; margin-top: 32px; }
.other { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 24px; border-radius: var(--cc-radius-4xl); background: var(--cc-surface); }
.other p { color: var(--cc-color-ink-300); }
.other a { margin-top: auto; font-weight: 700; text-underline-offset: 4px; }
.other code { max-width: 100%; overflow-x: auto; font-family: var(--cc-font-mono); font-size: var(--cc-size-footnote); color: var(--cc-color-ink-300); }

/* ── Founder's note ───────────────────────────────────────────────────────── */
.founder-link { display: inline-flex; align-items: center; gap: 14px; margin-top: 24px; font-weight: 700; text-underline-offset: 4px; }
.founder-link img { width: 56px; height: 56px; border-radius: 50%; }

.founder { display: grid; gap: 28px; max-width: 768px; padding-top: 28px; padding-bottom: 56px; }
.founder img { width: 176px; border-radius: var(--cc-radius-4xl); box-shadow: var(--cc-shadow-raised); }

.letter { max-width: 720px; margin: 0 auto; padding: 28px 24px; }
.letter p { font-size: var(--cc-size-title); line-height: 1.7; color: var(--cc-color-ink-900); }
.letter p + p { margin-top: 20px; }
.letter a { text-underline-offset: 4px; }
.letter .belief { margin: 32px 0; font-size: var(--cc-size-heading-lg); line-height: 1.2; }
.signature { margin-top: 32px; }
.letter .signature .figure { font-size: var(--cc-size-heading); font-weight: 800; line-height: 1.2; }
.letter .signature .fine { margin-top: 4px; font-size: var(--cc-size-footnote-lg); color: var(--cc-color-ink-600); }

/* ── Close ────────────────────────────────────────────────────────────────── */
.finish { background: var(--cc-gradient-offer); color: var(--cc-color-paper-50); text-align: center; }
.finish .lead { margin: 12px 0 28px; color: inherit; }
.finish .fine { color: inherit; }

.foot { display: flex; flex-direction: column; gap: 20px; padding-top: 36px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: var(--cc-size-footnote-lg); font-weight: 600; }
.foot a { color: var(--cc-color-ink-300); text-decoration: none; }
.foot a:hover { color: var(--cc-color-paper-50); }
.foot img { align-self: flex-start; height: 32px; width: auto; }
.legal { padding-top: 20px; padding-bottom: 36px; font-size: var(--cc-size-caption-lg); color: var(--cc-color-ink-300); }

/* ── Wider screens ────────────────────────────────────────────────────────── */
@media (min-width: 640px) {
  .wrap { padding-left: 24px; padding-right: 24px; }
  h1 { font-size: 56px; }
  h2 { font-size: var(--cc-size-display); }
  .band { padding: 88px 0; }
  .stats, .cards, .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .others, .compare { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .screens { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .screen-wide { grid-column: span 2; }
  .foot { flex-direction: row; align-items: center; justify-content: space-between; }
  .foot img { align-self: auto; }
  .founder { grid-template-columns: 220px minmax(0, 1fr); gap: 40px; align-items: center; padding-top: 40px; padding-bottom: 72px; }
  .founder img { width: 220px; }
  .letter { padding: 56px; }
}

@media (min-width: 900px) {
  .nav-link { display: inline; }
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 56px; padding-top: 48px; padding-bottom: 56px; }
  .pricing { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
  .screens { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 2.2fr); }
  .screen-wide { grid-column: auto; }
  .screen-wide img { height: 340px; object-position: top; }
  table { font-size: var(--cc-size-body); }
}

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