@font-face { font-family: 'Archivo'; src: url('/fonts/Archivo-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Archivo'; src: url('/fonts/Archivo-SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Archivo'; src: url('/fonts/Archivo-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Archivo Condensed'; src: url('/fonts/Archivo-CondensedExtraBold.ttf') format('truetype'); font-weight: 800; font-display: swap; }

/* Same tokens as lib/theme.js */
:root {
  --bg: #f3f2f2;
  --surface: #eae9e9;
  --rule: rgba(32,30,29,0.4);
  --hair: rgba(32,30,29,0.14);
  --text: #201e1d;
  --muted: #605d5d;
  --accent: #7ed957;
  --accent-ink: #2f6f16;
  --on-accent: #0f2b06;
  --on-accent-muted: #1f4610;
  --ink-btn: #201e1d;
  --on-ink-btn: #f3f2f2;
  --shot-border: rgba(32,30,29,0.18);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141312;
    --surface: #1f1d1c;
    --rule: rgba(243,242,242,0.3);
    --hair: rgba(243,242,242,0.1);
    --text: #f3f2f2;
    --muted: #9b9797;
    --accent-ink: #8fe46a;
    --ink-btn: #f3f2f2;
    --on-ink-btn: #141312;
    --shot-border: rgba(243,242,242,0.16);
  }
}
:root[data-theme="dark"] {
  --bg: #141312;
  --surface: #1f1d1c;
  --rule: rgba(243,242,242,0.3);
  --hair: rgba(243,242,242,0.1);
  --text: #f3f2f2;
  --muted: #9b9797;
  --accent-ink: #8fe46a;
  --ink-btn: #f3f2f2;
  --on-ink-btn: #141312;
  --shot-border: rgba(243,242,242,0.16);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Archivo', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.kicker {
  font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  margin: 0 0 14px;
}
.kicker.ink { color: var(--accent-ink); }
.display {
  font-family: 'Archivo Condensed', 'Archivo', sans-serif;
  font-weight: 800; text-transform: uppercase; line-height: 0.92; letter-spacing: -0.005em;
  margin: 0;
}

/* Header */
.top { border-bottom: 2px solid var(--rule); }
.top .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--on-accent);
  display: grid; place-items: center; font-weight: 700; font-size: 17px;
}
.brand-name { font-family: 'Archivo Condensed', sans-serif; font-weight: 800; font-size: 26px; letter-spacing: 0.02em; }
.nav-link { font-weight: 700; font-size: 15px; text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav-link:hover { border-bottom-color: var(--rule); }
.nav-link[aria-current="page"] { border-bottom-color: var(--accent); }
.nav-icon { display: grid; place-items: center; width: 40px; height: 40px; margin: 0 -9px; }
.nav-icon:hover { color: var(--accent-ink); }
.nav-icon:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 2px; }
.top .btn-outline { display: none; }
@media (min-width: 560px) { .top .btn-outline { display: inline-flex; } .top .wrap { gap: 28px; } }

.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 14px 18px; font-weight: 700; font-size: 16px; text-decoration: none;
  border: 2px solid transparent; min-height: 52px;
}
.btn-ink { background: var(--ink-btn); color: var(--on-ink-btn); }
.btn-outline { border-color: var(--rule); padding: 8px 14px; min-height: 40px; font-size: 14px; }
.btn svg { flex: none; }
.btn:focus-visible, .nav-link:focus-visible, .spot:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 2px; }

/* Green blocks: hero and closing. Their dark button stays dark in both themes. */
.green { background: var(--accent); color: var(--on-accent); }
.green .btn-ink { background: #201e1d; color: #f3f2f2; }
.green .small { font-size: 14px; margin: 14px 0 0; color: var(--on-accent-muted); }

.hero { overflow: hidden; }
.hero .wrap { display: grid; gap: 40px; padding-top: 48px; }
.hero h1 { font-size: clamp(52px, 12vw, 108px); }
.hero .lede { font-size: 19px; max-width: 34em; margin: 24px 0 32px; }
.hero-shot { justify-self: center; align-self: end; width: min(320px, 78vw); max-height: 400px; overflow: hidden; }
.hero-shot img, .fan img { border: 2px solid rgba(15,43,6,0.35); border-bottom: 0; }
@media (min-width: 900px) {
  .hero .wrap { grid-template-columns: 1.25fr 1fr; align-items: center; padding-top: 64px; }
  .hero-copy { padding-bottom: 64px; }
  .hero-shot { width: 340px; max-height: 600px; }
}

/* Three phones side by side, cropped by the green block's bottom edge */
.fan { display: flex; justify-content: center; align-items: flex-end; gap: 12px; height: 380px; overflow: hidden; }
.fan figure { margin: 0; width: 31%; max-width: 230px; position: relative; }
.fan figure:nth-child(2) { margin-bottom: -36px; }
.fan figure:nth-child(odd) { transform: translateY(36px); }
.fan figcaption {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  background: #201e1d; color: #f3f2f2; font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 5px 8px; white-space: nowrap;
}
@media (min-width: 900px) { .fan { height: 560px; gap: 16px; } }

/* Feature rows */
.features { padding: 24px 0 0; }
.row { display: grid; gap: 32px; padding: 56px 0; border-top: 2px solid var(--rule); }
.row:first-child { border-top: 0; }
.row-num { font-family: 'Archivo Condensed', sans-serif; font-weight: 800; font-size: 20px; color: var(--accent-ink); margin: 0 0 6px; }
.row h2 { font-size: clamp(40px, 8vw, 68px); margin-bottom: 20px; }
.row p { margin: 0 0 16px; max-width: 32em; }
.row ul { margin: 8px 0 0; padding: 0; list-style: none; max-width: 32em; }
.row li { padding: 12px 0; border-top: 1px solid var(--hair); }
.row li:last-child { border-bottom: 1px solid var(--hair); }
.row li b { font-weight: 700; }
.shots { display: flex; gap: 16px; justify-content: center; }
.shot { width: min(300px, 80vw); }
.shots.two .shot { width: min(240px, 42vw); }
.shot img { border: 2px solid var(--shot-border); }
@media (min-width: 900px) {
  .row { grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; padding: 88px 0; }
  .row.flip .row-copy { order: 2; }
  .shots.two .shot { width: 240px; }
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; max-width: 34em; }
.chip { border: 1px solid var(--rule); padding: 6px 10px; font-size: 14px; font-weight: 600; }

/* Grey band with a grid of short points */
.band { background: var(--surface); border-top: 2px solid var(--rule); border-bottom: 2px solid var(--rule); padding: 64px 0; }
.band h2 { font-size: clamp(40px, 8vw, 68px); margin-bottom: 32px; }
.grid { display: grid; }
.cell { padding: 20px 0; border-top: 1px solid var(--hair); }
.cell h3 { margin: 0 0 6px; font-size: 18px; font-weight: 700; }
.cell p { margin: 0; color: var(--muted); font-size: 16px; }
@media (min-width: 720px) { .grid { grid-template-columns: repeat(2, 1fr); column-gap: 40px; } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(3, 1fr); } }

/* "Instead of five apps" ledger, styled like the paywall's comparison table */
.ledger { padding: 64px 0; }
.ledger h2 { font-size: clamp(40px, 8vw, 68px); margin-bottom: 12px; }
.ledger .intro { color: var(--muted); max-width: 34em; margin: 0 0 28px; }
.ledger table { width: 100%; border-collapse: collapse; }
.ledger th {
  text-align: left; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); padding: 0 0 10px; border-bottom: 2px solid var(--rule);
}
.ledger td { padding: 16px 0; border-bottom: 1px solid var(--hair); vertical-align: top; }
.ledger td:first-child { width: 42%; padding-right: 16px; font-weight: 700; }
.ledger td:first-child span { display: block; font-weight: 400; color: var(--muted); font-size: 14px; }
.ledger td.yes { color: var(--accent-ink); }
.ledger .tick { display: inline-block; width: 18px; height: 18px; vertical-align: -3px; margin-right: 8px; }
@media (min-width: 720px) { .ledger td:first-child { width: 36%; } }

/* Spotlight panels linking to the two feature pages */
.spots { display: grid; gap: 0; border-top: 2px solid var(--rule); }
.spot {
  display: grid; gap: 28px; padding: 48px 16px 0; text-decoration: none; overflow: hidden;
  border-bottom: 2px solid var(--rule);
}
.spot h2 { font-size: clamp(44px, 9vw, 76px); margin-bottom: 16px; }
.spot p { margin: 0 0 16px; max-width: 30em; }
.spot ul { margin: 0 0 24px; padding: 0; list-style: none; max-width: 30em; }
.spot li { padding: 10px 0; border-top: 1px solid var(--hair); font-weight: 600; }
.spot .more { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; border-bottom: 2px solid var(--accent); padding-bottom: 2px; }
.spot .pic { justify-self: center; width: min(280px, 72vw); max-height: 360px; overflow: hidden; align-self: end; }
.spot .pic img { border: 2px solid var(--shot-border); border-bottom: 0; }
.spot:hover .more { border-bottom-color: var(--text); }
.spot.alt { background: var(--surface); }
@media (min-width: 720px) { .spot { padding-left: 32px; padding-right: 32px; } }
@media (min-width: 1000px) {
  .spots { grid-template-columns: 1fr 1fr; }
  .spot { padding: 64px 48px 0; grid-template-rows: 1fr auto; }
  .spot + .spot { border-left: 2px solid var(--rule); }
  .spot .pic { max-height: 420px; }
}

/* Cross-link to the other feature page */
.cross { padding: 56px 0; border-top: 2px solid var(--rule); }
.cross a { display: grid; gap: 8px; text-decoration: none; }
.cross .display { font-size: clamp(36px, 7vw, 60px); }
.cross a:hover .display { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }

.closing { padding: 72px 0; }
.closing h2 { font-size: clamp(48px, 11vw, 96px); margin-bottom: 28px; }

footer { padding: 32px 0 48px; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
footer a { text-decoration: none; font-weight: 600; color: var(--text); }
footer a:hover { text-decoration: underline; }
