@font-face { font-family: "Instrument Serif"; src: url(/fonts/instrument-serif-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url(/fonts/instrument-serif-latin-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Geist Sans"; src: url(/fonts/geist-sans-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist Sans"; src: url(/fonts/geist-sans-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Geist Sans"; src: url(/fonts/geist-sans-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url(/fonts/geist-mono-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url(/fonts/geist-mono-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --page: #ffffff; --panel: #f6f6f4; --ink: #141414; --muted: #4f4f4f; --faint: #676767;
  --line: #dcdcd8; --rule: #141414;
  --term-bg: #141414; --term-fg: #ededeb; --term-dim: #8c8c88;
  --accent: #3c3fd6; --accent-soft: rgba(60, 63, 214, 0.08);
  --btn-bg: #141414; --btn-fg: #ffffff; --err: #b42318; --ok: #146c2e;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Geist Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  color-scheme: light;
}
[data-theme="dark"] {
  --page: #0f0f0f; --panel: #171717; --ink: #ededeb; --muted: #b0b0ac; --faint: #94948f;
  --line: #2b2b2a; --rule: #ededeb;
  --term-bg: #070707; --term-fg: #ededeb; --term-dim: #7d7d79;
  --accent: #9a9cf6; --accent-soft: rgba(154, 156, 246, 0.12);
  --btn-bg: #ededeb; --btn-fg: #0f0f0f; --err: #f08a80; --ok: #7bd389;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page: #0f0f0f; --panel: #171717; --ink: #ededeb; --muted: #b0b0ac; --faint: #94948f;
    --line: #2b2b2a; --rule: #ededeb;
    --term-bg: #070707; --term-fg: #ededeb; --term-dim: #7d7d79;
    --accent: #9a9cf6; --accent-soft: rgba(154, 156, 246, 0.12);
    --btn-bg: #ededeb; --btn-fg: #0f0f0f; --err: #f08a80; --ok: #7bd389;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--page); color: var(--ink); font-family: var(--sans);
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased;
  caret-color: var(--accent); overflow-x: clip;
}
[id] { scroll-margin-top: 88px; }
::selection { background: var(--accent-soft); color: var(--ink); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-thumb { background: var(--line); }
::-webkit-scrollbar-track { background: var(--page); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
img { max-width: 100%; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.label {
  font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted);
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Terminal strip */
.terminal {
  background: var(--term-bg); color: var(--term-fg); font-family: var(--mono);
  font-size: 13px; line-height: 20px; padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.terminal p { margin: 0; white-space: pre; overflow: hidden; text-overflow: ellipsis; }
.terminal .dim { color: var(--term-dim); }
.terminal .caret {
  display: inline-block; width: 8px; height: 14px; margin-left: 2px; vertical-align: -2px;
  background: var(--term-fg); animation: blink 1100ms steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* Header */
.topbar { position: sticky; top: 0; z-index: 30; background: var(--page); border-bottom: 1px solid var(--rule); }
header.site { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wordmark {
  display: inline-flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none;
  font-family: var(--serif); font-size: 34px; line-height: 1; letter-spacing: -0.01em; color: var(--ink);
}
.wordmark:hover { color: var(--ink); }
.wordmark svg { width: 26px; height: 26px; flex: none; }
.mark-tile { fill: var(--ink); } .mark-bar { fill: var(--page); } .mark-lead { fill: #3c3fd6; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-family: var(--mono); font-size: 12.5px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink); text-decoration: none; padding: 12px 10px;
  transition: color 150ms var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.tools { display: flex; align-items: center; gap: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border: 1px solid var(--rule); border-radius: 0;
  font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  background: var(--btn-bg); color: var(--btn-fg);
  box-shadow: 2px 2px 0 var(--rule);
  transition: transform 150ms var(--ease), box-shadow 150ms var(--ease), opacity 150ms var(--ease);
}
.btn:hover { color: var(--btn-fg); opacity: 0.9; }
.btn:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--rule); }
.btn:disabled { opacity: 0.55; cursor: wait; }
.btn.ghost { background: var(--page); color: var(--ink); }
.btn.ghost:hover { color: var(--ink); background: var(--panel); opacity: 1; }
.btn.small { min-height: 40px; padding: 0 14px; font-size: 12px; }
.btn svg { width: 16px; height: 16px; }
.icon-btn {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; border-radius: 0;
  transition: background-color 150ms var(--ease);
}
.icon-btn:hover { background: var(--panel); }
.icon-btn:active { transform: translateY(1px); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-moon { display: none; }
  :root:not([data-theme="light"]) .icon-sun { display: block; }
}
.menu-btn, .mobile-menu { display: none; }
.menu-btn .icon-close { display: none; }
.menu-btn[aria-expanded="true"] .icon-open { display: none; }
.menu-btn[aria-expanded="true"] .icon-close { display: block; }

/* Typography */
h1, h2, .display { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; text-wrap: balance; }
h1 { margin: 0; font-size: clamp(46px, 6.4vw, 80px); line-height: 0.98; }
h2 { margin: 0; font-size: clamp(34px, 4vw, 48px); line-height: 1.04; }
h3 { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; }
h1 em, h2 em { font-style: italic; }
.lede { margin: 16px 0 0; font-size: 19px; line-height: 1.5; color: var(--muted); max-width: 46ch; }
.prose { max-width: 68ch; }
.prose p, .prose li { color: var(--muted); }
.prose h2 { margin: 48px 0 12px; font-size: 34px; }
.prose h3 { margin: 28px 0 8px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ol, .prose ul { padding-left: 20px; }
.prose li { margin: 6px 0; }
.prose code, kbd {
  font-family: var(--mono); font-size: 13.5px; background: var(--panel); border: 1px solid var(--line);
  padding: 1px 6px; color: var(--ink);
}
.prose pre {
  font-family: var(--mono); font-size: 13.5px; background: var(--term-bg); color: var(--term-fg);
  padding: 16px; overflow-x: auto; border: 1px solid var(--rule);
}
.updated { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }

/* Sections */
section.block { padding: 72px 0; border-top: 1px solid var(--rule); }
section.block.tight { padding: 56px 0; }
.block-head { max-width: 640px; margin-bottom: 32px; }
.block-head p { margin: 12px 0 0; color: var(--muted); font-size: 17px; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 32px 48px; align-items: center; padding: 40px 0 56px; }
.hero h1 { grid-column: 1 / -1; font-size: clamp(44px, 5.4vw, 74px); }
.hero .lede { margin-top: 0; }
.hero figure img { max-height: 360px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero figure { margin: 0; border: 1px solid var(--rule); box-shadow: 6px 6px 0 var(--rule); }
.hero figure img { display: block; width: 100%; height: auto; aspect-ratio: 1344 / 752; object-fit: cover; }

/* Mechanism strip */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 32px 1.2fr 32px 1.1fr; overflow-x: clip; }
.step { border-top: 1px solid var(--rule); padding: 16px 0 0; position: relative; min-width: 0; }
.step::before { content: ""; position: absolute; top: -2px; left: 0; width: 0; height: 3px; background: var(--accent); transition: width 300ms var(--ease); }
.steps.play .step-1::before { width: 100%; }
.steps.play .step-2::before { width: 100%; transition-delay: 500ms; }
.steps.play .step-3::before { width: 100%; transition-delay: 1000ms; }
.step p { margin: 4px 0 16px; font-size: 14px; color: var(--muted); }
.joint { position: relative; }
.joint::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 8px; height: 8px;
  border-top: 1px solid var(--ink); border-right: 1px solid var(--ink); transform: translate(-50%, -50%) rotate(45deg);
}
.chips { display: flex; flex-direction: column; gap: 8px; }
.chip { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; border: 1px solid var(--line); background: var(--page); padding: 10px 12px; font-size: 12.5px; }
.chip .mono { color: var(--ink); }
.chip em { font-style: normal; color: var(--faint); font-size: 12px; text-align: right; }
.js .chip { opacity: 0; }
.js .steps.play .chip { animation: rise 300ms var(--ease) forwards; }
.js .steps.play .chip:nth-child(2) { animation-delay: 90ms; }
.js .steps.play .chip:nth-child(3) { animation-delay: 180ms; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.shot { display: block; border: 1px solid var(--rule); background: var(--panel); overflow: hidden; }
.shot img { display: block; width: 100%; height: auto; }
.shot .img-dark { display: none; }
[data-theme="dark"] .shot .img-light { display: none; }
[data-theme="dark"] .shot .img-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .shot .img-light { display: none; }
  :root:not([data-theme="light"]) .shot .img-dark { display: block; }
}
.caption { margin: 12px 0 0; font-size: 13px; color: var(--faint); }

/* Demo panel */
.panel-band { background: var(--panel); }
.demo-frame { margin-top: 32px; border: 1px solid var(--rule); box-shadow: 8px 8px 0 var(--rule); background: var(--page); display: block; }
.demo-frame img { display: block; width: 100%; height: auto; }

/* Sources table */
.sources { border-top: 1px solid var(--rule); }
.source { display: grid; grid-template-columns: 220px minmax(0, 1fr) 160px; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.source h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; letter-spacing: 0; }
.source p { margin: 0; color: var(--muted); font-size: 15px; }
.source a { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; justify-self: end; padding: 10px 0; }

/* Two column facts */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.fact { padding: 20px 0; border-top: 1px solid var(--line); }
.fact p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.fact p strong { color: var(--ink); font-weight: 600; }

/* Privacy ledger, terminal world */
.dark-band { background: var(--term-bg); color: var(--term-fg); border-top-color: var(--term-bg); }
.dark-band h2 { color: var(--term-fg); }
[data-theme="dark"] .dark-band { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .dark-band { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
}
.dark-band .block-head p { color: #b5b5b0; }
.ledger { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.ledger li { display: grid; grid-template-columns: 180px minmax(0, 1fr) 120px; gap: 24px; padding: 16px 0; border-top: 1px solid #2e2e2c; align-items: baseline; }
.ledger .mono { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--term-fg); }
.ledger .mono::before { content: "> "; color: #8c8c88; }
.ledger p { margin: 0; color: #c4c4bf; }
.ledger b { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: #9fe0a8; justify-self: end; }
.ledger li:nth-child(4) b { color: #c9caff; }
.ledger li:nth-child(5) b { color: #f0d48a; }

/* Pricing */
.price-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); border: 1px solid var(--rule); box-shadow: 8px 8px 0 var(--rule); background: var(--page); }
.price-card > div { padding: 32px; }
.price-card > div + div { border-left: 1px solid var(--rule); }
.amount { font-family: var(--serif); font-size: 88px; line-height: 1; }
.amount small { font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-left: 8px; }
.includes { list-style: none; margin: 0; padding: 0; }
.includes li { padding: 10px 0 10px 28px; position: relative; font-size: 15px; }
.includes li + li { border-top: 1px solid var(--line); }
.includes li svg { position: absolute; left: 0; top: 13px; width: 16px; height: 16px; color: var(--accent); }

/* FAQ */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; font-size: 17px; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 18px; height: 18px; flex: none; color: var(--faint); transition: transform 200ms var(--ease); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq summary:hover { color: var(--accent); }
.faq details p { margin: 0 0 18px; max-width: 68ch; color: var(--muted); }

/* Forms */
.field-label { display: block; margin-bottom: 8px; }
.input {
  width: 100%; min-height: 52px; padding: 0 16px; border: 1px solid var(--rule); border-radius: 0;
  background: var(--page); color: var(--ink); font-family: var(--serif); font-size: 21px;
}
.input::placeholder { color: var(--faint); }
.form-row { display: flex; gap: 8px; max-width: 520px; }
.form-row .input { flex: 1; min-width: 0; font-family: var(--sans); font-size: 16px; min-height: 48px; }
.note { margin: 10px 0 0; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
.note:empty { display: none; }
.note.ok { color: var(--ok); }
.note.err { color: var(--err); }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }

/* Auth portal (sign up, log in) */
.portal { max-width: 576px; margin: 0 auto; padding: 72px 0 96px; }
.portal h1 { font-size: clamp(40px, 5vw, 56px); text-align: center; }
.portal .sub { text-align: center; color: var(--muted); margin: 12px 0 32px; }
.google-btn {
  width: 100%; min-height: 52px; display: flex; align-items: center; justify-content: center; gap: 12px;
  border: 1px solid var(--rule); background: var(--page); color: var(--ink); cursor: pointer; text-decoration: none;
  font-family: var(--serif); font-size: 24px; transition: background-color 150ms var(--ease);
}
.google-btn:hover { background: var(--panel); color: var(--ink); }
.google-btn:active { transform: translateY(1px); }
.google-btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
.google-btn img { width: 20px; height: 20px; }
.legal { text-align: center; margin: 16px 0 0; }
.legal a { color: var(--ink); }
.or { display: flex; align-items: center; gap: 16px; margin: 28px 0; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.portal .btn { width: 100%; margin-top: 16px; font-size: 16px; min-height: 52px; }
.portal .center { text-align: center; margin: 20px 0 0; }

/* Footer */
footer.site { border-top: 1px solid var(--rule); padding: 28px 0 40px; margin-top: 0; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 24px; align-items: center; }
.foot-links a, .foot-links span {
  font-family: var(--mono); font-size: 12.5px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 10px 0; display: inline-block;
}
.foot-links span { color: var(--muted); }
.foot-meta { margin: 16px 0 0; font-size: 13px; color: var(--faint); }

/* Page header for inner pages */
.page-head { padding: 56px 0 40px; border-bottom: 1px solid var(--rule); }
.page-head .lede { max-width: 60ch; }
.page-body { padding: 48px 0 80px; }
.guide-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.guide-step { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 32px; padding: 40px 0; border-top: 1px solid var(--rule); }
.guide-step:first-child { border-top: 0; padding-top: 0; }
.guide-step h2 { font-size: 36px; }
.guide-step .meta { margin-top: 12px; }
.log { list-style: none; margin: 0; padding: 0; }
.log li { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 24px; padding: 20px 0; border-top: 1px solid var(--line); }
.log time { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); padding-top: 3px; }
.log h3 { margin-bottom: 4px; }
.log p { margin: 0; color: var(--muted); }

@media (max-width: 900px) {
  .nav, .tools .btn { display: none; }
  .menu-btn { display: inline-flex; }
  .mobile-menu:not([hidden]) { display: flex; flex-direction: column; padding: 4px 0 20px; border-top: 1px solid var(--line); }
  .mobile-menu a:not(.btn) {
    font-family: var(--mono); font-size: 14px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
    padding: 14px 0; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line);
  }
  .mobile-menu .btn { margin-top: 20px; }
  .hero { grid-template-columns: 1fr; gap: 32px; padding: 32px 0 48px; }
  .steps { grid-template-columns: 1fr; }
  .joint { height: 32px; }
  .joint::after { transform: translate(-50%, -50%) rotate(135deg); left: 12px; }
  .source { grid-template-columns: 1fr; gap: 4px; }
  .source a { justify-self: start; }
  .facts { grid-template-columns: 1fr; }
  .ledger li { grid-template-columns: 1fr; gap: 4px; }
  .ledger b { justify-self: start; }
  .price-card { grid-template-columns: 1fr; }
  .price-card > div + div { border-left: 0; border-top: 1px solid var(--rule); }
  .guide-step { grid-template-columns: 1fr; gap: 12px; }
  .log li { grid-template-columns: 1fr; gap: 4px; }
  section.block { padding: 56px 0; }
}
@media (max-width: 480px) {
  .wordmark { font-size: 30px; }
  .terminal { font-size: 12px; }
  .form-row { flex-direction: column; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .price-card > div { padding: 24px; }
  .amount { font-size: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .step::before { width: 100%; }
  .chip, .js .chip { opacity: 1; }
}

/* Long paths and commands wrap instead of widening the page on phones. */
.guide-step > div, .prose { min-width: 0; }
.prose code { overflow-wrap: anywhere; }
.prose pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.source a { padding: 12px 0; }
