/* Vardo — brand "Plain" v1. Tokens are canonical (Notion brand guidelines). */
:root {
  --paper:   oklch(0.985 0.008 75);
  --surface: oklch(0.955 0.011 75);
  --border:  oklch(0.87 0.014 75);
  --clay:    oklch(0.58 0.13 40);
  --clay-press: oklch(0.52 0.13 40);
  --olive:   oklch(0.5 0.09 128);
  --ink:     oklch(0.24 0.014 60);
  --ink-soft: oklch(0.45 0.014 60);

  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px; --s6: 64px; --s7: 96px;
  --prose: 720px;
  --wide: 880px;
}
@supports not (color: oklch(0.5 0.1 40)) {
  :root { --paper:#FCFAF5; --surface:#F5F1EA; --border:#DBD4C9; --clay:#B76341;
          --clay-press:#A2542F; --olive:#61743E; --ink:#2B2520; --ink-soft:#6E655B; }
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Instrument Sans", sans-serif;
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
.mono { font-family: "IBM Plex Mono", monospace; font-size: 15px; }
a { color: var(--clay); text-decoration: none; }
a:hover { text-decoration: underline; }

.prose { max-width: var(--prose); margin: 0 auto; padding: 0 var(--s3); }
.wide  { max-width: var(--wide);  margin: 0 auto; padding: 0 var(--s3); }

/* ── header ─────────────────────────────────────────────────────────────── */
header { padding: var(--s4) 0; }
header .wide { display: flex; justify-content: space-between; align-items: center; }
.wordmark { display: flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 500; letter-spacing: -0.035em; color: var(--ink); }
.wordmark:hover { text-decoration: none; }
.chip-glyph { width: 20px; height: 20px; border-radius: 6px; background: var(--clay); }
.btn {
  display: inline-block;
  font-size: 18px; font-weight: 500; line-height: 1;
  color: var(--paper); background: var(--clay);
  border: none; border-radius: 6px;
  padding: 14px 28px;
  cursor: pointer;
}
.btn:hover { background: var(--clay-press); text-decoration: none; }
.btn.large { padding: 16px 32px; }

/* ── hero ───────────────────────────────────────────────────────────────── */
.hero { padding: var(--s7) 0 var(--s6); }
h1 {
  font-size: clamp(42px, 6.5vw, 64px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
  max-width: 15ch;
}
.hero .lede { margin-top: var(--s3); max-width: 54ch; font-size: 21px; line-height: 1.55; }
.hero .lede .sub { color: var(--ink-soft); }

/* ── the run (animated demo) ────────────────────────────────────────────── */
.run-section { padding: var(--s2) 0 var(--s6); }
.run {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: var(--s4);
}
.run-ask { display: flex; align-items: baseline; gap: var(--s2); flex-wrap: wrap; }
.run-ask .who { font-size: 16px; color: var(--ink-soft); flex: 0 0 auto; }
.run-ask .ask { font-size: clamp(20px, 3vw, 27px); font-weight: 500; letter-spacing: -0.015em; line-height: 1.3; }

.run-stage { position: relative; margin-top: var(--s4); }
.run-track {
  position: absolute; left: 12.5%; right: 12.5%; top: -14px;
  height: 1px; background: var(--border);
}
.run-chip {
  position: absolute; top: -22px; left: 0;
  width: 16px; height: 16px; border-radius: 5px;
  background: var(--clay);
  transform: translateX(calc(var(--chip-x, 12.5%) * 1%)); /* set via JS in px */
  transition: transform 0.9s cubic-bezier(0.45, 0, 0.25, 1);
  will-change: transform;
}
.sources { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s2); }
.source {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: var(--s2);
  min-height: 92px;
  transition: border-color 0.4s ease;
}
.source .name { font-weight: 500; font-size: 16px; }
.source .doing {
  font-size: 15px; color: var(--ink-soft);
  margin-top: var(--s1);
  min-height: 2.6em;
  opacity: 0; transition: opacity 0.4s ease;
}
.source.active { border-color: var(--clay); }
.source.active .doing { opacity: 1; }
.source.done .doing { opacity: 1; color: var(--ink); }

.run-ledger { list-style: none; margin-top: var(--s4); }
.run-ledger li {
  display: flex; justify-content: space-between; align-items: baseline; gap: var(--s3);
  padding: 10px 0;
  border-top: 1px solid var(--border);
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.run-ledger li.in { opacity: 1; transform: none; }
.run-ledger .free { color: var(--olive); }
.run-total {
  display: flex; justify-content: space-between; align-items: baseline; gap: var(--s3);
  margin-top: var(--s2); padding-top: var(--s2);
  border-top: 1px solid var(--ink);
  opacity: 0; transition: opacity 0.6s ease;
}
.run-total.in { opacity: 1; }
.run-total .amount { font-family: "IBM Plex Mono", monospace; font-size: clamp(28px, 4vw, 40px); line-height: 1.1; }
.run-total .left { font-size: 16px; color: var(--ink-soft); }

/* ── install ────────────────────────────────────────────────────────────── */
.install-section { padding: var(--s5) 0; }
.install {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: var(--s4);
}
.install .label { font-size: 16px; color: var(--ink-soft); margin-bottom: var(--s2); }
.install-row { display: flex; gap: var(--s2); flex-wrap: wrap; align-items: stretch; }
.install-url {
  flex: 1 1 280px;
  display: flex; align-items: center;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0 var(--s2);
  overflow-x: auto; white-space: nowrap;
}
.install .works { font-size: 16px; color: var(--ink-soft); margin-top: var(--s2); }

/* ── sections ───────────────────────────────────────────────────────────── */
section { padding: var(--s6) 0; }
.kicker {
  font-size: 15px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: var(--s2);
}
h2 { font-size: clamp(30px, 4.5vw, 36px); font-weight: 500; letter-spacing: -0.025em; line-height: 1.15; margin-bottom: var(--s3); max-width: 24ch; }
.section-lede { max-width: 54ch; color: var(--ink-soft); margin-bottom: var(--s4); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); }
.step { border-top: 2px solid var(--ink); padding-top: var(--s2); }
.step .n { font-family: "IBM Plex Mono", monospace; font-size: 15px; color: var(--ink-soft); }
.step h3 { font-size: 21px; font-weight: 500; letter-spacing: -0.015em; margin: var(--s1) 0; }
.step p { font-size: 16px; color: var(--ink-soft); }

/* habits: before / after */
.habits { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: var(--s4); }
.quote { font-size: clamp(22px, 3vw, 28px); font-weight: 500; letter-spacing: -0.015em; line-height: 1.35; }
.caption { font-size: 16px; color: var(--ink-soft); margin-top: var(--s2); }
.receipt-lead { font-family: "IBM Plex Mono", monospace; font-size: clamp(30px, 4vw, 40px); line-height: 1.15; }
.receipt-lead .unit { font-family: "Instrument Sans", sans-serif; font-size: 18px; color: var(--ink-soft); }
.receipt { list-style: none; margin-top: var(--s3); }
.receipt li { display: flex; justify-content: space-between; gap: var(--s2); padding: 8px 0; border-top: 1px solid var(--border); font-size: 16px; }
.free { color: var(--olive); }

/* finds */
.finds { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2) var(--s4); }
.find { display: flex; gap: var(--s2); align-items: baseline; padding: var(--s2) 0; border-top: 1px solid var(--border); }
.find .sq { flex: 0 0 auto; width: 8px; height: 8px; border-radius: 2px; background: var(--border); position: relative; top: -2px; }

/* pricing */
.prices { list-style: none; max-width: var(--prose); }
.prices li { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s3); padding: 10px 0; border-top: 1px solid var(--border); }
.prices li:first-child { border-top: none; }
.prices .note { font-size: 16px; color: var(--ink-soft); }
.promises { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); margin-top: var(--s5); }
.promise { border-top: 2px solid var(--ink); padding-top: var(--s2); }
.promise h3 { font-size: 18px; font-weight: 500; }
.promise p { font-size: 16px; color: var(--ink-soft); margin-top: var(--s1); }

/* questions */
.qa { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
.qa h3 { font-size: 18px; font-weight: 500; margin-bottom: var(--s1); }
.qa p { font-size: 16px; color: var(--ink-soft); }

/* closing */
.closing { text-align: left; padding-bottom: var(--s7); }
.closing .panel { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.closing .line { font-size: clamp(22px, 3vw, 28px); font-weight: 500; letter-spacing: -0.015em; max-width: 22ch; }

footer { border-top: 1px solid var(--border); padding: var(--s4) 0 var(--s6); font-size: 16px; color: var(--ink-soft); }
footer .wide { display: flex; gap: var(--s3); flex-wrap: wrap; align-items: center; }

/* ── reveal on scroll ───────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.seen { opacity: 1; transform: none; }

/* ── responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .steps, .habits, .promises { grid-template-columns: 1fr; }
  .finds, .qa { grid-template-columns: 1fr; }
  .sources { grid-template-columns: 1fr 1fr; }
  .run-track, .run-chip { display: none; }
  .hero { padding-top: var(--s6); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .run-ledger li, .run-total, .source .doing { transition: none; opacity: 1; transform: none; }
  .run-chip { display: none; }
}
