@font-face { font-family: "Geist"; src: url("fonts/geist-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/geist-mono-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

/* Warm paper neutrals, one ink-blue accent */
:root {
  --bg: #f6f4ef;
  --surface: #fffefb;
  --sunk: #eeebe3;
  --ink: #1c1b18;
  --ink-2: #57544c;
  --ink-3: #85817a;
  --line: rgba(28, 27, 24, 0.10);
  --accent: #284a86;
  --accent-ink: #ffffff;
  --ok: #3f7a52;
  --ease: cubic-bezier(0.2, 0, 0, 1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15140f;
    --surface: #1d1c17;
    --sunk: #24231d;
    --ink: #ece9e1;
    --ink-2: #b0aca2;
    --ink-3: #85817a;
    --line: rgba(236, 233, 225, 0.09);
    --accent: #9db5e4;
    --accent-ink: #12182a;
    --ok: #86b894;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 "Geist", system-ui, sans-serif; }
a { color: var(--accent); text-underline-offset: 3px; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

header { border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); text-decoration: none; }
.mark { width: 24px; height: 24px; }
nav { display: flex; align-items: center; gap: 24px; font-size: 15px; }
nav a { color: var(--ink-2); text-decoration: none; transition: color 150ms var(--ease); }
nav a:hover { color: var(--ink); }
nav .navcta { color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; }

/* Hero: text left, example screen right */
.hero { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
h1 { font-size: 44px; line-height: 1.12; letter-spacing: -0.02em; font-weight: 600; margin: 0 0 20px; }
.lead { font-size: 19px; color: var(--ink-2); margin: 0 0 32px; max-width: 34em; }
.actions { display: flex; align-items: center; gap: 24px; }
.button { display: inline-block; background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 500; padding: 12px 20px; border-radius: 8px; transition: filter 150ms var(--ease), transform 150ms var(--ease); }
.button:hover { filter: brightness(1.1); }
.button:active { transform: scale(0.98); }
.button:focus-visible, nav a:focus-visible, .textlink:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.textlink { color: var(--ink-2); text-decoration: none; }
.textlink:hover { color: var(--ink); }

/* Example screen */
.preview { margin: 0; }
.pv { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; box-shadow: 0 1px 2px rgba(28,27,24,.04), 0 12px 32px rgba(28,27,24,.06); font-size: 14px; }
.pv-top { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; margin-bottom: 16px; }
.pv-meta, .pv-label, .ref, .pv-time { font-family: "Geist Mono", ui-monospace, monospace; font-weight: 400; font-size: 12px; color: var(--ink-3); }
.pv-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.pv-stats div { background: var(--sunk); border-radius: 8px; padding: 10px 12px; }
.pv-label { display: block; margin-bottom: 2px; }
.pv-stats b { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pv-mix { display: flex; gap: 2px; height: 6px; border-radius: 3px; overflow: hidden; margin-bottom: 12px; }
.pv-mix i:nth-child(1) { background: var(--accent); }
.pv-mix i:nth-child(2) { background: var(--ink-3); opacity: .55; }
.pv-mix i:nth-child(3) { background: var(--ink-3); opacity: .25; }
.pv-rows { list-style: none; margin: 0; padding: 0; }
.pv-rows li { display: grid; grid-template-columns: 76px 1fr auto 84px; gap: 12px; align-items: center; height: 40px; border-top: 1px solid var(--line); }
.who { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.n { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.st { justify-self: end; color: var(--ink-2); font-size: 13px; }
.st-now { color: var(--accent); }
.st-new { color: var(--ink); font-weight: 500; }
.pv-toast { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 10px 12px; border-radius: 8px; background: var(--sunk); color: var(--ink-2); }
.pv-toast .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.pv-time { margin-left: auto; }
figcaption { font-size: 13px; color: var(--ink-3); margin-top: 8px; text-align: right; }

/* Sections */
section { padding-top: 48px; padding-bottom: 48px; border-top: 1px solid var(--line); }
section.wrap { border-top: none; position: relative; padding-top: 48px; padding-bottom: 48px; }
section.wrap::before { content: ""; position: absolute; top: 0; left: 24px; right: 24px; border-top: 1px solid var(--line); }
h2 { font-size: 24px; letter-spacing: -0.01em; font-weight: 600; margin: 0 0 20px; }
.list { margin: 0; padding-left: 20px; display: grid; gap: 8px; max-width: 44em; color: var(--ink); }
.list li::marker { color: var(--ink-3); }
.example { margin: 0; max-width: 44em; color: var(--ink-2); }
.steps { margin: 0; padding-left: 24px; display: grid; gap: 12px; max-width: 44em; color: var(--ink-2); }
.steps li::marker { font-family: "Geist Mono", ui-monospace, monospace; color: var(--ink-3); font-size: 14px; }
.steps b { color: var(--ink); font-weight: 500; }
.cost { margin: 0; display: grid; gap: 0; max-width: 32em; }
.cost div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cost dt { color: var(--ink-2); }
.cost dd { margin: 0; font-weight: 500; font-variant-numeric: tabular-nums; }
.note { color: var(--ink-3); font-size: 15px; margin: 12px 0 0; }
.end p { color: var(--ink-2); max-width: 36em; margin: 0 0 24px; }

footer { border-top: 1px solid var(--line); padding: 24px 0 40px; color: var(--ink-3); font-size: 14px; }
footer a { color: var(--ink-3); }

.prose { padding-top: 48px; padding-bottom: 64px; max-width: 720px; }
.prose h1 { font-size: 36px; }
.prose h2 { font-size: 20px; margin-top: 32px; margin-bottom: 8px; }
.prose p { color: var(--ink-2); }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; padding-bottom: 48px; }
  h1 { font-size: 34px; }
  nav a:not(.navcta) { display: none; }
  .pv-rows li { grid-template-columns: 72px 1fr 72px; }
  .pv-rows .n { display: none; }
  .pv-stats b { font-size: 17px; }
}

.example + .cost { margin-top: 16px; max-width: 40em; }
