@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500&display=swap');
/* Taut brand tokens: Paper + Moss in light, Ground + Volt in dark. */
:root {
  --bg: #F4F4EF; --card: #FFFFFF; --ink: #111111; --mute: #5C5C55; --line: #E2E2DA;
  --accent: #4E6B0E; --accent-ink: #FFFFFF; --accent-text: #4E6B0E;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B0B0B; --card: #161616; --ink: #F2F2F2; --mute: #A3A3A3; --line: #262626;
    --accent: #C6F432; --accent-ink: #1E2A00; --accent-text: #C6F432;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.6 "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-text-size-adjust: 100%;
}
main { max-width: 720px; margin: 0 auto; padding: 32px 16px 64px; }
header { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
header img { width: 44px; height: 44px; border-radius: 11px; }
header a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 20px; letter-spacing: -0.03em; text-transform: lowercase; }
h1 { font-size: 34px; line-height: 1.15; margin: 0 0 8px; letter-spacing: -0.02em; font-weight: 500; }
h2 { font-size: 21px; margin: 32px 0 8px; font-weight: 500; }
p, li { color: var(--ink); }
.muted { color: var(--mute); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; margin: 20px 0; }
a { color: var(--accent-text); }
ul { padding-left: 1.2em; }
li { margin: 4px 0; }
.lede { font-size: 19px; color: var(--mute); margin: 0 0 8px; }
.links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.btn { display: inline-block; padding: 10px 16px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); text-decoration: none; font-weight: 500; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
footer { margin-top: 48px; font-size: 14px; color: var(--mute); }
footer a { color: var(--mute); }

/* Home showcase: real app screens play through in a phone frame, in sync with the steps. */
main.home { max-width: 980px; }
.hero { display: grid; gap: 32px; align-items: center; }
@media (min-width: 760px) { .hero { grid-template-columns: 1fr 280px; gap: 56px; } }
.steps { list-style: none; padding: 0; margin: 20px 0 0; counter-reset: step; }
.steps li { counter-increment: step; display: flex; gap: 12px; align-items: baseline; margin: 0; padding: 6px 0;
  color: var(--mute); animation: step 12s infinite; }
.steps li::before { content: "0" counter(step); font-size: 13px; color: var(--mute); }
.phone { margin: 0 auto; width: min(280px, 72vw); padding: 10px; border-radius: 46px; background: #0B0B0B;
  box-shadow: 0 0 0 1px var(--line), 0 30px 60px -20px rgba(0, 0, 0, 0.35); }
.screen { position: relative; aspect-ratio: 520 / 1130; border-radius: 36px; overflow: hidden; background: #0B0B0B; }
.screen img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; animation: frame 12s infinite both; }
.screen img:nth-child(2), .steps li:nth-child(2) { animation-delay: 3s; }
.screen img:nth-child(3), .steps li:nth-child(3) { animation-delay: 6s; }
.screen img:nth-child(4), .steps li:nth-child(4) { animation-delay: 9s; }
@keyframes frame {
  0% { opacity: 0; transform: scale(1.03); }
  4%, 25% { opacity: 1; transform: scale(1); }
  29%, 100% { opacity: 0; transform: scale(1); }
}
@keyframes step {
  0%, 25% { color: var(--ink); }
  29%, 100% { color: var(--mute); }
}
@media (prefers-reduced-motion: reduce) {
  .screen img, .steps li { animation: none; }
  .screen img:last-child { opacity: 1; }
  .steps li { color: var(--ink); }
}
