@font-face {
  font-family: "Lora";
  src: url("/fonts/Lora-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

/* Someone deciding whether to trust a tool with years of their mail, reading on a laptop in
   daylight. One committed ink-blue band carries the brand; the rest is quiet reading surface,
   and the product itself is the imagery. Tokens follow extension/ui/style.css. */
:root {
  color-scheme: light;
  --font-reading: "Lora", Georgia, "Times New Roman", serif;
  --font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --page: oklch(0.985 0.002 255);
  --surface: oklch(1 0 0);
  --panel: oklch(0.965 0.005 255);
  --text: oklch(0.24 0.012 255);
  --muted: oklch(0.47 0.012 255);
  --line: oklch(0.90 0.006 255);
  --line-strong: oklch(0.76 0.010 255);
  --accent: oklch(0.45 0.11 255);
  --accent-hover: oklch(0.39 0.11 255);
  --tint: oklch(0.955 0.018 255);
  --mark: oklch(0.91 0.05 250);
  --ink: oklch(0.29 0.075 258);
  --ink-deep: oklch(0.24 0.065 258);
  --on-ink: oklch(0.97 0.01 255);
  --on-ink-muted: oklch(0.82 0.035 255);
  --sky: oklch(0.80 0.07 255);
  --radius: 6px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(16px, 5vw, 56px);
  --measure: 1120px;
  font: 17px/1.6 var(--font-ui);
  background: var(--page);
  color: var(--text);
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--text); }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 3px; }
h1, h2, h3 { font-family: var(--font-reading); font-weight: 500; text-wrap: balance; margin: 0; }
p { margin: 0; text-wrap: pretty; }
.wrap { max-width: var(--measure); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--surface); padding: 8px 12px; }

/* Header sits on the ink band. */
.top { background: var(--ink); color: var(--on-ink); }
.top nav { display: flex; align-items: center; gap: 28px; padding-block: 20px; }
.top nav .brand { margin-right: auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none;
  font-family: var(--font-reading); font-size: 1.3rem; font-weight: 600; }
.brand img { width: 30px; height: 30px; }
.top nav a:not(.brand) { color: var(--on-ink-muted); text-decoration: none; font-size: 0.95rem; }
.top nav a:not(.brand):hover { color: var(--on-ink); }

/* Hero: headline on ink, the product vignette straddling the band's lower edge. */
.hero { background: var(--ink); color: var(--on-ink); padding-block: clamp(40px, 8vw, 96px) 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: end; }
.hero h1 { font-size: clamp(2.3rem, 1.5rem + 2.6vw, 3.7rem); line-height: 1.08; letter-spacing: -0.02em; max-width: 16ch; }
.hero .lede { margin-top: 24px; font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem); color: var(--on-ink-muted); max-width: 42ch; }
.hero .status { margin-top: 32px; display: inline-flex; gap: 10px; align-items: baseline; font-size: 0.95rem; color: var(--on-ink); }
.hero .status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sky); flex: none; transform: translateY(-1px); }
.hero-copy { padding-bottom: clamp(40px, 7vw, 112px); }
.stage { position: relative; margin-bottom: -96px; }
.after-hero { padding-top: 160px; }

/* The vignette reuses the extension's result anatomy with fictional mail. */
.demo { margin: 0; background: var(--surface); color: var(--text); border-radius: 10px; overflow: hidden;
  box-shadow: 0 30px 60px -20px oklch(0.18 0.05 258 / 0.55), 0 0 0 1px oklch(0.18 0.05 258 / 0.08); }
.demo-bar { display: flex; gap: 10px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--page); }
.demo-query { flex: 1; min-width: 0; font-family: var(--font-reading); font-size: 1.02rem; padding: 8px 12px;
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-mode { font-size: 0.8rem; color: var(--muted); white-space: nowrap; }
.demo-summary { margin: 16px 18px 6px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; }
.demo-summary-head { display: flex; gap: 10px; align-items: baseline; font-size: 0.8rem; color: var(--muted); }
.demo-summary-head strong { font-family: var(--font-reading); font-weight: 600; font-size: 1rem; color: var(--text); }
.demo-summary p { margin-top: 8px; font-family: var(--font-reading); font-size: 1.02rem; line-height: 1.5; min-height: 3em; }
.cite { display: inline-grid; place-items: center; min-width: 1.3em; height: 1.3em; margin-left: 3px; padding: 0 4px;
  font: 600 0.72rem/1 var(--font-ui); color: var(--accent); border: 1px solid oklch(0.80 0.06 255); border-radius: 4px;
  background: var(--tint); vertical-align: 0.15em; cursor: pointer; }
.cite:hover { background: var(--mark); }
.demo ol { list-style: none; margin: 0; padding: 4px 0 8px; }
.demo li { padding: 12px 18px; border-top: 1px solid var(--line); transition: background-color 400ms var(--ease); }
.demo li:first-child { border-top: 0; }
.demo li[data-flash] { background: var(--tint); }
.demo-meta { display: flex; gap: 8px; font-size: 0.8rem; color: var(--muted); }
.demo-meta b { color: var(--text); font-weight: 600; }
.demo-meta time { margin-left: auto; }
.demo-subject { font-family: var(--font-reading); font-size: 1.05rem; font-weight: 600; margin-top: 2px; }
.demo-excerpt { font-family: var(--font-reading); font-size: 0.95rem; line-height: 1.45; color: oklch(0.36 0.012 255); margin-top: 2px; }
mark { background: var(--mark); color: inherit; border-radius: 2px; padding: 0 1px; }
.demo-note { padding: 0 18px 14px; font-size: 0.78rem; color: var(--muted); }

/* Body sections: alternating measure, no card grids. */
section { padding-block: clamp(64px, 9vw, 128px); }
.section-head { max-width: 38ch; }
section h2 { font-size: clamp(1.9rem, 1.3rem + 2vw, 2.8rem); line-height: 1.12; letter-spacing: -0.015em; }
.section-head p { margin-top: 18px; color: var(--muted); font-size: 1.08rem; }

.modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin-top: 48px; border-top: 1px solid var(--line-strong); }
.mode { padding: 28px 32px 8px 0; }
.mode + .mode { padding-left: 32px; border-left: 1px solid var(--line); }
.mode h3 { font-size: 1.45rem; }
.mode p { margin-top: 10px; color: var(--muted); max-width: 44ch; }
.example { margin-top: 22px; font-family: var(--font-reading); font-size: 1.05rem; }
.example dt { font: 600 0.8rem/1.4 var(--font-ui); color: var(--muted); margin-top: 12px; }
.example dd { margin: 2px 0 0; }
.example .typed { color: var(--accent); }

.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.facts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.facts li { display: grid; grid-template-columns: 11ch minmax(0, 1fr); gap: 20px; padding-block: 18px; border-bottom: 1px solid var(--line); }
.facts strong { font-family: var(--font-reading); font-weight: 600; font-size: 1.05rem; }
.facts span { color: var(--muted); }

.local { background: var(--panel); }
.ledger-scroll { overflow-x: auto; margin-top: 40px; }
.ledger { width: 100%; border-collapse: collapse; min-width: 560px; }
.ledger th, .ledger td { text-align: left; vertical-align: top; padding: 16px 20px 16px 0; border-bottom: 1px solid var(--line-strong); }
.ledger thead th { font-size: 0.85rem; color: var(--muted); font-weight: 600; border-bottom-color: var(--text); }
.ledger tbody th { font-family: var(--font-reading); font-weight: 600; font-size: 1.05rem; width: 26%; }
.ledger td:nth-child(2) { width: 30%; }
.where { display: inline-flex; gap: 8px; align-items: baseline; font-weight: 600; }
.where::before { content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--accent); }
.where.network::before { background: transparent; border: 2px solid var(--accent); width: 9px; height: 9px; }

.closing { background: var(--ink-deep); color: var(--on-ink); }
.closing h2 { max-width: 22ch; }
.closing p { margin-top: 18px; color: var(--on-ink-muted); max-width: 56ch; font-size: 1.08rem; }
.closing a { color: var(--on-ink); }

footer { background: var(--ink-deep); color: var(--on-ink-muted); border-top: 1px solid oklch(0.36 0.05 258); font-size: 0.9rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; padding-block: 28px; }
footer a { color: var(--on-ink-muted); }
footer a:hover { color: var(--on-ink); }

/* Plain document pages (privacy, 404). */
.doc { padding-block: clamp(48px, 8vw, 96px); }
.doc .wrap { max-width: calc(72ch + 2 * var(--gutter)); }
.doc h1 { font-size: clamp(2.2rem, 1.6rem + 2vw, 3.2rem); line-height: 1.1; }
.doc .updated { margin-top: 12px; color: var(--muted); font-size: 0.95rem; }
.doc h2 { font-size: 1.55rem; margin-top: 48px; }
.doc p, .doc ul { margin-top: 14px; }
.doc li + li { margin-top: 8px; }

@media (max-width: 860px) {
  .hero-grid, .split { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { padding-bottom: 0; }
  .stage { margin-bottom: -64px; }
  .after-hero { padding-top: 120px; }
  .modes { grid-template-columns: minmax(0, 1fr); }
  .mode, .mode + .mode { padding: 28px 0 8px; border-left: 0; }
  .mode + .mode { border-top: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .top nav a[href="#local"] { display: none; }
  .demo-mode { display: none; }
  .facts li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}

/* Motion: the page loads already complete; with motion allowed, the hero rises in and the
   summary replays as it streams in the product. */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise 700ms var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: 80ms; }
  .hero-copy > :nth-child(3) { animation-delay: 160ms; }
  .stage { animation: lift 900ms 120ms var(--ease) both; }
  .demo-summary p.streaming::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px;
    background: var(--accent); vertical-align: -0.12em; animation: blink 900ms steps(1) infinite; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } }
  @keyframes lift { from { opacity: 0; transform: translateY(28px) scale(0.985); } }
  @keyframes blink { 50% { opacity: 0; } }
}
