:root {
  --bg: #e4d7c0;
  --bg-2: #d8c9ad;
  --ink: #16130e;
  --mute: #5e574c;
  --line: #c4b493;
  --paper: #f3ead4;
  --mark: #e9dfc8;
  --stamp: #9b1c1c;
  --stamp-ink: #f6e6c8;
  --brass: #8a6b38;
  --ok: #1d5c3a;
  --bad: #9b1c1c;
  --hl: #ead8a4;
  --placeholder: #8a8274;
  --top-bg: rgba(243, 234, 212, 0.88);
  --btn-on-ink: #f6e6c8;
  --flash-err: #f3ddd4;
  --flash-ok: #dce9dc;
  --status-ready: #d7eadc;
  --status-failed: #f3ddd4;
  --status-queued: #eadcc0;
  --status-queued-fg: #7a5418;
  --list-hover: rgba(196, 180, 147, 0.28);
  --pre-fg: #e8e0d0;
  --serif: "Cormorant Garamond", "Iowan Old Style", Palatino, serif;
  --sans: "Atkinson Hyperlegible", "Gill Sans", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --shadow-sm: 0 1px 0 rgba(22, 19, 14, 0.08);
  --shadow: 0 12px 32px rgba(22, 19, 14, 0.1);
  --shadow-lg: 0 28px 60px rgba(22, 19, 14, 0.16);
  --radius: 2px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #100e0b;
    --bg-2: #0b0a08;
    --ink: #f0eadc;
    --mute: #9a9182;
    --line: #3a3428;
    --paper: #1a1712;
    --mark: #221e18;
    --stamp: #e23a2c;
    --stamp-ink: #1a120e;
    --brass: #c4a574;
    --ok: #6ecf96;
    --bad: #f08080;
    --hl: #3a3220;
    --placeholder: #6a6458;
    --top-bg: rgba(16, 14, 11, 0.9);
    --btn-on-ink: #100e0b;
    --flash-err: #2a1818;
    --flash-ok: #152820;
    --status-ready: #1a2e24;
    --status-failed: #2e1a1a;
    --status-queued: #2a2418;
    --status-queued-fg: #d4a84b;
    --list-hover: rgba(58, 52, 40, 0.7);
    --pre-fg: #c8c2b8;
    --shadow-sm: 0 1px 0 rgba(0, 0, 0, 0.4);
    --shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 28px 60px rgba(0, 0, 0, 0.55);
  }
}

:root[data-theme="dark"] {
  --bg: #100e0b;
  --bg-2: #0b0a08;
  --ink: #f0eadc;
  --mute: #9a9182;
  --line: #3a3428;
  --paper: #1a1712;
  --mark: #221e18;
  --stamp: #e23a2c;
  --stamp-ink: #1a120e;
  --brass: #c4a574;
  --ok: #6ecf96;
  --bad: #f08080;
  --hl: #3a3220;
  --placeholder: #6a6458;
  --top-bg: rgba(16, 14, 11, 0.9);
  --btn-on-ink: #100e0b;
  --flash-err: #2a1818;
  --flash-ok: #152820;
  --status-ready: #1a2e24;
  --status-failed: #2e1a1a;
  --status-queued: #2a2418;
  --status-queued-fg: #d4a84b;
  --list-hover: rgba(58, 52, 40, 0.7);
  --pre-fg: #c8c2b8;
  --shadow-sm: 0 1px 0 rgba(0, 0, 0, 0.4);
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 28px 60px rgba(0, 0, 0, 0.55);
}

* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) { color-scheme: dark; }
}
html[data-theme="dark"] { color-scheme: dark; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(155, 28, 28, 0.08), transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 80;
  opacity: 0.22;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
html[data-theme="dark"] .grain {
  mix-blend-mode: overlay;
  opacity: 0.14;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .grain {
    mix-blend-mode: overlay;
    opacity: 0.14;
  }
}

.spine {
  position: fixed;
  left: 0.45rem;
  top: 50%;
  transform: rotate(-90deg) translateX(50%);
  transform-origin: left center;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mute);
  opacity: 0.45;
  pointer-events: none;
  z-index: 40;
  white-space: nowrap;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--stamp); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0 0 0.65rem;
}
h1 { font-size: clamp(2.6rem, 7vw, 4.4rem); font-weight: 700; }
h1 em { font-style: italic; font-weight: 500; color: var(--stamp); }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; }
code, .mono, kbd { font-family: var(--mono); font-size: 0.84em; }
kbd {
  display: inline-block;
  padding: 0.08rem 0.38rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--mark);
  font-size: 0.76em;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.4rem 0.7rem;
}
.skip:focus { left: 0.5rem; top: 0.5rem; z-index: 100; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.mt { margin-top: 1.5rem; }
.mb { margin-bottom: 1.5rem; }
.pad { padding: 1.5rem; }
.break { word-break: break-all; }
.row-actions { margin-top: 1.25rem; display: flex; gap: 0.4rem; flex-wrap: wrap; }
.hint.tight { margin-bottom: 0.75rem; }
.mono { font-family: var(--mono); }

.top, .foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.5rem;
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
}
.top {
  border-bottom: 2px solid var(--ink);
  background: var(--top-bg);
  position: sticky;
  top: 0;
  z-index: 50;
  max-width: none;
}
.foot {
  border-top: 2px solid var(--ink);
  margin-top: auto;
  padding-top: 2rem;
  padding-bottom: 2.5rem;
  color: var(--mute);
  font-size: 0.88rem;
  max-width: none;
}
.top nav, .foot nav { display: flex; gap: 0.25rem; align-items: center; flex-wrap: wrap; }
.top nav a, .foot nav a {
  color: var(--ink);
  text-decoration: none;
  padding: 0.4rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.top nav a:hover { color: var(--stamp); }

.nav-toggle {
  display: none;
  font: inherit;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}

.theme-btn {
  font: inherit;
  display: inline-grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}
.theme-btn:hover { border-color: var(--ink); }
.theme-icon-sun { display: none; }
.theme-icon-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-icon-moon { display: none; }
}
:root[data-theme="dark"] .theme-icon-sun { display: block; }
:root[data-theme="dark"] .theme-icon-moon { display: none; }
:root[data-theme="light"] .theme-icon-sun { display: none; }
:root[data-theme="light"] .theme-icon-moon { display: block; }

.brand, .brand-mini {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}
.brand:hover { color: var(--ink); opacity: 0.75; }
.mark {
  display: inline-grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 42% 58% 47% 53% / 53% 47% 54% 46%;
  background: var(--stamp);
  color: var(--stamp-ink);
  font-family: var(--serif);
  font-size: 0.72rem;
  font-weight: 700;
  font-style: italic;
  letter-spacing: -0.04em;
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--stamp-ink) 40%, transparent);
}
.pill {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  border: 1px solid var(--stamp);
  padding: 0.22rem 0.5rem;
  color: var(--stamp);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

main {
  padding: 2rem 1.5rem 4.5rem;
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
}
main.wide { max-width: 1180px; }

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
[data-reveal].revealed { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: 0.08s; }
[data-reveal][data-delay="2"] { transition-delay: 0.16s; }
[data-reveal][data-delay="3"] { transition-delay: 0.24s; }

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
  padding: 1.2rem 0 3.2rem;
}
.hero-copy { max-width: 36rem; }
.hero-demo { position: relative; }
.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--stamp);
  margin: 0 0 1rem;
}
.lede { color: var(--mute); margin: 0 0 1.5rem; font-size: 1.08rem; line-height: 1.65; }
.hint, .fine, .mute { color: var(--mute); font-size: 0.9rem; }

.sheet {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: 1.1rem 1.1rem 1.3rem;
  box-shadow: var(--shadow-lg);
  transform: rotate(-1.4deg);
}
.crop {
  position: absolute;
  width: 12px;
  height: 12px;
  pointer-events: none;
}
.crop.tl { top: -1px; left: -1px; border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.crop.tr { top: -1px; right: -1px; border-top: 1px solid var(--ink); border-right: 1px solid var(--ink); }
.crop.bl { bottom: -1px; left: -1px; border-bottom: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.crop.br { bottom: -1px; right: -1px; border-bottom: 1px solid var(--ink); border-right: 1px solid var(--ink); }
.sheet-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 0.55rem;
  margin-bottom: 0.9rem;
}
.sheet-page { min-height: 7.5rem; }
.fake-h, .fake-p, .fake-rule {
  background: var(--mark);
  height: 0.7rem;
  margin-bottom: 0.45rem;
}
.fake-h { width: 62%; height: 1rem; background: var(--ink); opacity: 0.72; }
.fake-p { width: 100%; opacity: 0.55; }
.fake-p.short { width: 74%; }
.fake-rule { height: 1px; background: var(--line); margin: 0.8rem 0; }
.hash-ribbon {
  margin-top: 0.85rem;
  font-size: 0.62rem;
  line-height: 1.5;
  word-break: break-all;
  color: var(--mute);
  border-top: 1px dashed var(--line);
  padding-top: 0.55rem;
  overflow: hidden;
  max-width: 0;
  animation: hash-reveal 1.8s steps(40) 0.5s forwards;
}
@keyframes hash-reveal { to { max-width: 100%; } }
.wax {
  position: absolute;
  right: -0.8rem;
  bottom: -0.9rem;
  width: 5.6rem;
  height: 5.6rem;
  border-radius: 43% 57% 48% 52% / 52% 48% 55% 45%;
  background: radial-gradient(circle at 35% 30%, #c42a2a, var(--stamp) 62%);
  color: var(--stamp-ink);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  transform: rotate(-14deg) scale(0.4);
  box-shadow: inset 0 0 0 6px rgba(246, 230, 200, 0.22), 0 10px 22px rgba(155, 28, 28, 0.28);
  animation: stamp-in 0.55s cubic-bezier(0.2, 1.4, 0.32, 1) 0.7s forwards;
}
.wax::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid color-mix(in srgb, var(--stamp-ink) 55%, transparent);
  border-radius: inherit;
}
@keyframes stamp-in { to { transform: rotate(-14deg) scale(1); } }

.capture-shell { margin-bottom: 1rem; }
.capture-form {
  display: flex;
  align-items: stretch;
  border: 2px solid var(--ink);
  background: var(--paper);
  overflow: hidden;
}
.capture-form:focus-within { box-shadow: 0 0 0 3px color-mix(in srgb, var(--stamp) 28%, transparent); }
.capture-icon {
  display: grid;
  place-items: center;
  padding: 0 0.85rem;
  color: var(--stamp);
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
  border-right: 1px solid var(--line);
  background: var(--mark);
}
.capture-form input {
  flex: 1;
  border: 0;
  padding: 1rem;
  font: inherit;
  background: transparent;
  min-width: 0;
  color: var(--ink);
}
.capture-form input::placeholder { color: var(--placeholder); }
.capture-form input:focus { outline: none; }
.capture-form .btn {
  border: 0;
  border-left: 1px solid var(--ink);
  border-radius: 0;
  padding: 1rem 1.35rem;
  min-width: 7.2rem;
  position: relative;
}
.capture-form .btn .btn-spinner { display: none; }
.capture-form.is-loading .btn .btn-label { opacity: 0; }
.capture-form.is-loading .btn .btn-spinner {
  display: block;
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(246, 230, 200, 0.3);
  border-top-color: var(--stamp-ink);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.capture-form.is-loading .btn { pointer-events: none; }
.capture-hint { margin: 0.5rem 0 0; font-size: 0.82rem; color: var(--mute); }

.process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 0 0 3rem;
  border-top: 2px solid var(--ink);
}
.process article {
  padding: 1.4rem 1.3rem 1.5rem 0;
  border-right: 1px solid var(--line);
}
.process article:last-child { border-right: 0; padding-right: 0; }
.process p { margin: 0; color: var(--mute); font-size: 0.95rem; }
.step-num {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--stamp);
  margin-bottom: 0.55rem;
}

.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.feature-card {
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: 1.5rem;
}
.feature-card p { margin: 0; color: var(--mute); }
.file-list {
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.35rem;
}
.file-list li {
  font-family: var(--mono);
  font-size: 0.8rem;
  padding: 0.4rem 0;
  border-bottom: 1px dashed var(--line);
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}
.file-list span { color: var(--mute); font-family: var(--sans); font-size: 0.78rem; }

.mast { max-width: 40rem; padding: 0.4rem 0 2rem; }
.mast.tight { padding-top: 0; }

.stack input, .stack select, label input, label select {
  font: inherit;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  width: 100%;
  border-radius: var(--radius);
}
.stack input:focus, .stack select:focus, label input:focus, label select:focus {
  outline: 2px solid var(--stamp);
  outline-offset: 2px;
}

.btn {
  font: inherit;
  font-weight: 700;
  border: 1px solid var(--ink);
  padding: 0.72rem 1.15rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  white-space: nowrap;
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius);
  letter-spacing: 0.02em;
}
.btn:hover { background: var(--mark); color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 0.4rem 0.75rem; font-size: 0.84rem; }
.btn-ink {
  background: var(--ink);
  color: var(--btn-on-ink);
  border-color: var(--ink);
}
.btn-ink:hover { background: var(--stamp); border-color: var(--stamp); color: var(--stamp-ink); }
.btn-accent {
  background: var(--stamp);
  color: var(--stamp-ink);
  border-color: var(--stamp);
}
.btn-accent:hover { background: var(--ink); border-color: var(--ink); color: var(--btn-on-ink); }
.btn-ghost { background: transparent; }
.btn-ghost:hover { background: var(--mark); }
.btn:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--stamp);
  outline-offset: 2px;
}

.panel {
  background: var(--paper);
  border: 1px solid var(--ink);
  overflow: hidden;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--line);
}
.panel-head h2 { margin: 0; font-size: 0.95rem; }
.search-input {
  font: inherit;
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--line);
  background: var(--mark);
  color: var(--ink);
  font-size: 0.88rem;
  min-width: 12rem;
}
.search-input:focus { outline: 2px solid var(--stamp); background: var(--paper); }

.list, .cmp { width: 100%; border-collapse: collapse; }
.list th, .list td, .cmp th, .cmp td {
  text-align: left;
  padding: 0.85rem 1.2rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.list thead th {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mute);
  background: var(--mark);
}
.list tbody tr:hover { background: var(--list-hover); }
.list tbody tr:last-child td { border-bottom: 0; }
.list td a, .row-link { color: var(--ink); text-decoration: none; font-weight: 700; }
.list td a:hover, .row-link:hover { color: var(--stamp); }
.cmp { width: 100%; border-collapse: collapse; }
.cmp th, .cmp td { text-align: left; padding: 0.75rem 1rem; border-bottom: 1px solid var(--line); }
.cmp thead th { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); }
.cmp tbody th { font-weight: 700; }

.empty-state { text-align: center; padding: 3rem 1.5rem; color: var(--mute); }
.empty-icon {
  width: 2.6rem;
  height: 2.6rem;
  margin: 0 auto 0.75rem;
  border: 2px solid var(--stamp);
  border-radius: 42% 58% 47% 53% / 53% 47% 54% 46%;
  opacity: 0.45;
}

.auth {
  max-width: 28rem;
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: 2.2rem 2rem;
  box-shadow: var(--shadow);
}
.stack { display: grid; gap: 0.9rem; }
.stack label { display: grid; gap: 0.35rem; font-size: 0.88rem; font-weight: 700; }

.flash {
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  margin: 0 0 1rem;
  background: var(--paper);
  border-left: 3px solid var(--ink);
}
.flash.err { background: var(--flash-err); border-left-color: var(--bad); }
.flash.ok { background: var(--flash-ok); border-left-color: var(--ok); }

.app-head, .actions { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-end; flex-wrap: wrap; }
.actions { gap: 0.4rem; }
.app-head { margin-bottom: 1.5rem; }
.app-head h1 { margin: 0; font-size: clamp(2rem, 4vw, 2.8rem); }
.stat-bar { display: flex; gap: 0; margin-bottom: 1.5rem; border: 1px solid var(--ink); background: var(--paper); }
.stat {
  flex: 1;
  padding: 0.85rem 1rem;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: 0; }
.stat dt {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mute);
  font-weight: 700;
  font-family: var(--mono);
}
.stat dd { margin: 0.2rem 0 0; font-family: var(--serif); font-size: 1.7rem; font-weight: 700; }

.status {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.18rem 0.45rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--mark);
}
.status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.status.ready { color: var(--ok); background: var(--status-ready); }
.status.failed, .status.expired { color: var(--bad); background: var(--status-failed); }
.status.queued, .status.running { color: var(--status-queued-fg); background: var(--status-queued); }
.status.running::before, .status.queued::before { animation: pulse 1.2s ease infinite; }
@keyframes pulse { 50% { opacity: 0.3; } }

.progress-track {
  display: flex;
  margin: 2rem 0;
  position: relative;
}
.progress-track::before {
  content: "";
  position: absolute;
  top: 1.05rem;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--line);
}
.progress-step { flex: 1; text-align: center; position: relative; z-index: 1; }
.progress-step .step-dot {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  margin: 0 auto 0.55rem;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--ink);
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--mute);
}
.progress-step .step-label { font-size: 0.78rem; color: var(--mute); font-weight: 700; }
.progress-step.done .step-dot { background: var(--status-ready); border-color: var(--ok); color: var(--ok); }
.progress-step.done .step-dot::after { content: "✓"; }
.progress-step.active .step-dot {
  background: var(--stamp);
  border-color: var(--stamp);
  color: var(--stamp-ink);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--stamp) 22%, transparent);
}
.progress-step.active .step-label { color: var(--ink); }

.waiting-panel {
  max-width: 34rem;
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.docket { max-width: 800px; }
.docket-head { margin-bottom: 1.5rem; }
.docket-head h1 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
.docket-head .id { margin: 0 0 0.4rem; color: var(--mute); font-size: 0.8rem; }
.docket-head .url { margin: 0; word-break: break-all; }

.verify-banner {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.2rem;
  margin: 0 0 1.5rem;
  border: 1px solid var(--ink);
  background: var(--mark);
}
.verify-banner.checking .verify-icon { animation: spin 1s linear infinite; }
.verify-banner.ok { background: var(--status-ready); border-color: var(--ok); }
.verify-banner.bad { background: var(--status-failed); border-color: var(--bad); }
.verify-icon {
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 42% 58% 47% 53% / 53% 47% 54% 46%;
  background: var(--paper);
  flex-shrink: 0;
}
.verify-banner.ok .verify-icon::after { content: "✓"; color: var(--ok); }
.verify-banner.bad .verify-icon::after { content: "✕"; color: var(--bad); }
.verify-banner.checking .verify-icon::after { content: "§"; color: var(--stamp); }
.verify-text { font-weight: 700; font-size: 0.92rem; margin: 0; }
.verify-text small { display: block; font-weight: 400; color: var(--mute); font-size: 0.82rem; margin-top: 0.15rem; }

.meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 0 0 1.5rem;
  border: 1px solid var(--ink);
  background: var(--paper);
}
.meta > div { padding: 0.8rem 0.95rem; border-right: 1px solid var(--line); }
.meta > div:last-child { border-right: 0; }
.meta dt {
  color: var(--mute);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  font-family: var(--mono);
}
.meta dd { margin: 0.25rem 0 0; font-family: var(--mono); font-size: 0.78rem; }

.evidence {
  position: relative;
  margin: 0 0 1.6rem;
  border: 1px solid var(--ink);
  background: var(--paper);
  padding: 10px;
  cursor: zoom-in;
  box-shadow: var(--shadow);
}
.evidence img { border: 1px solid var(--line); }

.hash-panel {
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: 1.2rem 1.3rem;
}
.hash-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px dashed var(--line);
}
.hash-row:last-child { border-bottom: 0; }
.hash-row.primary {
  background: var(--hl);
  margin: 0 -0.4rem 0.3rem;
  padding: 0.65rem 0.5rem;
  border-bottom: 0;
}
.hash-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--mute);
  width: 5.5rem;
  flex-shrink: 0;
  padding-top: 0.15rem;
}
.hash-value { flex: 1; font-size: 0.78rem; word-break: break-all; line-height: 1.45; }
.hash-copy {
  font: inherit;
  font-size: 0.72rem;
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--mute);
  cursor: pointer;
  flex-shrink: 0;
}
.hash-copy:hover, .hash-copy.copied { color: var(--ok); border-color: var(--ok); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-bottom: 2.5rem;
  border: 1px solid var(--ink);
}
.price-card {
  background: var(--paper);
  padding: 1.6rem 1.4rem;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  position: relative;
}
.price-card:last-child { border-right: 0; }
.price-card.featured { background: color-mix(in srgb, var(--stamp) 8%, var(--paper)); }
.price-card .badge {
  position: absolute;
  top: -0.55rem;
  left: 1.2rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--stamp);
  color: var(--stamp-ink);
  padding: 0.18rem 0.5rem;
}
.price-card h3 { font-size: 1.15rem; margin-bottom: 0.2rem; }
.price-card .price {
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 700;
  margin: 0.4rem 0;
  letter-spacing: -0.04em;
}
.price-card .per { color: var(--mute); font-size: 0.85rem; margin: 0 0 1.2rem; flex: 1; }
.price-card .btn { width: 100%; }

.prose { max-width: 42rem; margin-top: 2rem; }
.prose pre {
  background: var(--ink);
  color: var(--pre-fg);
  padding: 1.1rem 1.2rem;
  overflow: auto;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.55;
}

.spinner {
  width: 22px;
  height: 22px;
  border: 2px solid var(--line);
  border-top-color: var(--stamp);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(16, 14, 11, 0.9);
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 2rem;
  cursor: zoom-out;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img {
  max-width: 95vw;
  max-height: 90vh;
  box-shadow: var(--shadow-lg);
}

.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--ink);
  color: var(--paper);
  padding: 0.7rem 1.2rem;
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
  z-index: 300;
  transition: transform 0.35s var(--ease);
  pointer-events: none;
  white-space: nowrap;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.ok { background: var(--ok); }
.toast.err { background: var(--bad); }

@media (max-width: 860px) {
  .spine { display: none; }
  .hero { grid-template-columns: 1fr; gap: 2rem; }
  .hero-demo { order: -1; max-width: 22rem; margin: 0 auto; }
  .sheet { transform: none; }
  .process, .features, .pricing-grid, .meta { grid-template-columns: 1fr; }
  .process article, .price-card, .meta > div { border-right: 0; border-bottom: 1px solid var(--line); padding-right: 1.3rem; }
  .nav-toggle { display: block; }
  .top nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--top-bg);
    border-bottom: 2px solid var(--ink);
    padding: 0.75rem 1rem 1rem;
    flex-direction: column;
    align-items: stretch;
  }
  .top nav.open { display: flex; }
  .top nav a, .top nav .theme-btn, .top nav .pill, .top nav .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  .capture-form { flex-direction: column; }
  .capture-form .btn { border-left: 0; border-top: 1px solid var(--ink); }
  .capture-icon { border-right: 0; border-bottom: 1px solid var(--line); padding: 0.55rem; }
  .stat-bar { flex-direction: column; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
}

@media (prefers-reduced-motion: reduce) {
  .spinner, .status.running::before, .wax, .hash-ribbon, [data-reveal] { animation: none; transition: none; }
  [data-reveal] { opacity: 1; transform: none; }
  .wax { transform: rotate(-14deg) scale(1); }
  .hash-ribbon { max-width: 100%; }
}

@media print {
  .top, .foot, .actions, .btn, .theme-btn, .skip, .toast, .lightbox, .grain, .spine { display: none !important; }
  body { background: #fff; }
}
