@font-face { font-family: Inter; src: url(/inter.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #F7F8FA; --surface: #FFFFFF; --ink: #0B1220; --muted: #4A5568; --line: #DCE1E8;
  --accent: #1D3A6E; --accent-ink: #FFFFFF; --soft: #EEF2F8;
  --band: #0B1220; --band-ink: #F2F4F7; --band-muted: #A9B4C4; --band-accent: #8FB0E8; --band-line: #1F2A3D;
  --term: #0A0F1A; --term-ink: #C9D6EA; --term-hl: #8FB0E8;
  --ok: #1F6E4A;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B1220; --surface: #111A2B; --ink: #E8ECF2; --muted: #A9B4C4; --line: #22304A;
    --accent: #8FB0E8; --accent-ink: #0B1220; --soft: #131F33;
    --band: #060A12; --band-line: #18233A;
    --ok: #6FD3A0;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 Inter, system-ui, -apple-system, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
code { font: 0.88em ui-monospace, 'SF Mono', Menlo, Consolas, monospace; background: var(--soft); padding: 0.1em 0.35em; border-radius: 4px; word-break: break-word; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 640px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
section { padding: 72px 0; }
section.wrap { padding: 72px 16px; }
h1 { font-size: clamp(2rem, 5.2vw, 3.6rem); line-height: 1.08; letter-spacing: -0.025em; margin: 0 0 20px; max-width: 18ch; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 12px; }
h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 12px; color: var(--muted); }
.sub { color: var(--muted); max-width: 62ch; margin: 0 0 32px; }

/* hero */
.hero { background: var(--band); color: var(--band-ink); padding: 72px 0 80px; }
.hero .lede { color: var(--band-muted); font-size: 1.15rem; max-width: 56ch; margin: 0 0 32px; }
.trail { font: 0.9rem ui-monospace, Menlo, Consolas, monospace; color: var(--band-accent); margin: 0 0 20px; min-height: 1.4em; }
.trail::after { content: '_'; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.log { background: var(--term); border: 1px solid var(--band-line); border-radius: 10px; overflow: hidden; margin: 0 0 32px; }
.log-head { display: flex; gap: 6px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--band-line); }
.log-head span { width: 10px; height: 10px; border-radius: 50%; background: #2A3550; }
.log-head em { margin-left: 8px; font: normal 0.8rem ui-monospace, Menlo, Consolas, monospace; color: var(--band-muted); }
.log pre { margin: 0; padding: 16px; color: var(--term-ink); font: 0.82rem/1.7 ui-monospace, Menlo, Consolas, monospace; white-space: pre-wrap; word-break: break-all; }
.log pre b { color: var(--term-hl); font-weight: 600; }
.log pre i { color: #5D6B85; font-style: normal; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }

.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 8px; padding: 12px 20px; font: 600 1rem Inter, system-ui, sans-serif; text-decoration: none; cursor: pointer; }
.btn:hover { filter: brightness(1.08); }
.hero .btn { background: var(--band-accent); color: var(--band); }
.btn.ghost { background: transparent; color: var(--band-ink); box-shadow: inset 0 0 0 1px var(--band-line); }

/* trails */
.trails { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; counter-reset: t; }
.trails li { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 18px 18px 16px; position: relative; counter-increment: t; }
.trails li::before { content: counter(t, decimal-leading-zero); font: 0.75rem ui-monospace, Menlo, Consolas, monospace; color: var(--muted); display: block; margin-bottom: 6px; }
.trails b { display: block; margin-bottom: 4px; }
.trails span { color: var(--muted); font-size: 0.94rem; }
.trails li.you { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.trails li.you::after { content: 'you came this way'; position: absolute; top: 14px; right: 14px; font: 600 0.7rem Inter, sans-serif; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent-ink); background: var(--accent); padding: 3px 8px; border-radius: 99px; }

/* bands */
.band { background: var(--soft); }
.band.dark { background: var(--band); color: var(--band-ink); }
.band.dark p { color: var(--band-muted); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 24px; }
.grid3 b { display: block; font-size: 1.1rem; margin-bottom: 6px; color: var(--band-accent); }
.grid3 p { margin: 0; }
.ticks, .crosses { list-style: none; padding: 0; margin: 0; }
.ticks li, .crosses li { padding: 10px 0 10px 30px; position: relative; border-top: 1px solid var(--line); }
.ticks li::before, .crosses li::before { position: absolute; left: 0; top: 10px; font-weight: 700; }
.ticks li::before { content: '✓'; color: var(--ok); }
.crosses li::before { content: '–'; color: var(--muted); }
.live { margin: 32px 0 0; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; font-size: 0.95rem; }
.live:empty { display: none; }
.live b { font-variant-numeric: tabular-nums; }

/* story */
.story { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.story li { position: relative; padding: 8px 0 8px 28px; display: grid; grid-template-columns: 76px 1fr; gap: 12px; align-items: baseline; }
.story li::before { content: ''; position: absolute; left: -7px; top: 16px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line); }
.story li.told::before { background: var(--accent); border-color: var(--accent); }
.story li.today::before { box-shadow: 0 0 0 5px var(--soft); }
.story .d { font: 0.8rem ui-monospace, Menlo, Consolas, monospace; color: var(--muted); }
.story .t { font-size: 1.05rem; }
.story li.today .t { font-weight: 650; }
.story li.later .t { color: var(--muted); font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.9rem; letter-spacing: 0.02em; }

/* product */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 28px; }
.kicker { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem; color: var(--muted); margin: 0; }
.big { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.01em; margin: 4px 0 8px; }

/* stop */
.stopform { display: flex; gap: 10px; margin: 20px 0 12px; }
.stopform input { flex: 1; min-width: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); font: 1rem ui-monospace, Menlo, Consolas, monospace; }
.stopform input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.result { min-height: 1.6em; margin: 0 0 12px; font-weight: 600; }
.result.ok { color: var(--ok); }
.small { font-size: 0.88rem; color: var(--muted); }

.foot { padding: 40px 16px 56px; font-size: 0.88rem; color: var(--muted); }

@media (max-width: 760px) {
  section, section.wrap { padding-top: 52px; padding-bottom: 52px; }
  .grid2, .grid3 { grid-template-columns: 1fr; gap: 24px; }
  .story li { grid-template-columns: 1fr; gap: 0; }
  .stopform { flex-direction: column; }
  .trails li.you::after { position: static; display: inline-block; margin-top: 10px; }
}
@media (prefers-reduced-motion: reduce) { .trail::after { animation: none; } html { scroll-behavior: auto; } }
