/* AI Memory Vault marketing site. One stylesheet, no framework.
   Brand: "Linen and sunshine" (docs/marketing/2026-11-27-brand-and-site-refresh.md). Warm paper and
   linen surfaces, dark warm ink for text, camel for small marks, and one bright highlighter yellow
   that always means "this came from your notes". Newsreader (serif) for headlines, Geist for
   everything else. Both fonts are self-hosted (site/build.mjs copies them). Light only.

   Layout: docs/design/2026-11-28-document-layout.md. The page reads like a document: a label column
   beside the content, hairline rules between things, tables and ledgers where the content is one.
   No shadows, no glows, no pills. A frame goes only around something the visitor uses (the demo,
   a form) or a picture of the product. */

@font-face {
  font-family: "Geist";
  src: url("/fonts/geist.woff2") format("woff2-variations");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader.woff2") format("woff2-variations");
  font-weight: 200 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader-italic.woff2") format("woff2-variations");
  font-weight: 200 800; font-style: italic; font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #fbf8f2;
  --linen: #ede4d3;
  --linen-soft: #f4eee3;
  --sheet: #ffffff;
  --ink: #2b2622;
  --ink-soft: #463e37;
  --muted: #6b5f55;
  --rule: #e6dccb;
  --rule-strong: #d3c4ab;
  --camel: #b98b5e;
  --camel-ink: #84602f;
  --hl: #ffd84d;
  --hl-soft: #fff1b8;
  --ok: #3f7a4f;
  --display: "Newsreader", Georgia, "Times New Roman", serif;
  --text: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --page: 74rem;
  --label: 11rem;
  --radius: 6px;
  --frame: 8px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--text); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ul, ol, dl, dd, figure, table { margin: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration-color: var(--camel); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
main:focus, section[tabindex="-1"]:focus, .form-done:focus { outline: none; }
::selection { background: var(--hl); color: var(--ink); }

h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: -0.015em; line-height: 1.08; text-wrap: balance; }
h1 { font-size: clamp(2.7rem, 5.6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); max-width: 24ch; }
h3 { font-size: 1.05rem; font-weight: 600; letter-spacing: -0.005em; line-height: 1.35; }
h1 em { font-style: italic; }
.lede { font-size: clamp(1.08rem, 1.5vw, 1.2rem); line-height: 1.55; color: var(--ink-soft); max-width: 36rem; text-wrap: pretty; }
.intro { margin-top: 1rem; color: var(--ink-soft); max-width: 40rem; font-size: 1.1rem; text-wrap: pretty; }
.fine { font-size: 0.9rem; color: var(--muted); }
.nums { font-variant-numeric: tabular-nums; }

.wrap { width: min(100% - 2.5rem, var(--page)); margin-inline: auto; }
@media (min-width: 40rem) { .wrap { width: min(100% - 4rem, var(--page)); } }

.visually-hidden, .hp {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 50; background: var(--ink); color: var(--paper); padding: 0.6rem 1rem; border-radius: var(--radius); }
.skip:focus { top: 1rem; color: var(--paper); }

/* ---- Page grid: a label column beside the content ------------------------------------------- */
.band { border-top: 1px solid var(--rule-strong); padding-block: clamp(3rem, 6vw, 4.75rem); scroll-margin-top: 4rem; }
.band-sheet { background: var(--sheet); }
.band-linen { background: var(--linen-soft); }
.row { display: grid; gap: 1rem 3rem; }
.label { font: 500 0.92rem/1.4 var(--text); color: var(--camel-ink); }
@media (min-width: 62rem) {
  .row { grid-template-columns: var(--label) minmax(0, 1fr); }
  .row > .label { position: sticky; top: 5.5rem; align-self: start; padding-top: 0.55rem; }
}
.block { margin-top: clamp(2rem, 4vw, 3rem); }

/* ---- Header --------------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 20; background: rgb(251 248 242 / 0.92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: border-color 200ms ease;
}
.site-header.is-scrolled { border-bottom-color: var(--rule-strong); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }
.logo { white-space: nowrap; display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 600; font-size: 1.02rem; letter-spacing: -0.01em; text-decoration: none; color: var(--ink); }
.logo-mark { width: 1.75rem; height: 1.75rem; flex: none; }
.nav { display: flex; align-items: center; gap: 0.25rem 1.5rem; white-space: nowrap; }
@media (max-width: 26rem) { .header-row { gap: 0.5rem; } .nav { gap: 0.6rem; } .nav-link:not(.hide-sm) { font-size: 0.875rem; } .logo { font-size: 0.92rem; gap: 0.4rem; } .site-header .btn-small { padding: 0 0.75rem; font-size: 0.84rem; } .logo-mark { width: 1.45rem; height: 1.45rem; } }
@media (max-width: 23rem) { .nav-link:not(.hide-sm) { display: none; } }
.nav-link { color: var(--ink-soft); text-decoration: none; font-size: 0.95rem; font-weight: 500; min-height: 2.75rem; display: inline-flex; align-items: center; }
.nav-link:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--camel); }
.hide-sm { display: none !important; }
@media (min-width: 56rem) { .hide-sm { display: inline-flex !important; } }

/* ---- Buttons and forms ---------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font: 500 1rem/1 var(--text); color: var(--paper); background: var(--ink);
  border: 0; border-radius: var(--radius); padding: 0 1.25rem; min-height: 3rem; cursor: pointer; text-decoration: none;
  transition: background 160ms ease;
}
.btn:hover { background: #45392f; color: var(--paper); }
.btn-small { min-height: 2.5rem; padding: 0 1rem; font-size: 0.92rem; }
@media (pointer: coarse) { .btn-small { min-height: 2.75rem; } }
.btn-big { min-height: 3.25rem; padding: 0 1.5rem; }
.btn-block { width: 100%; }
.btn-outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.btn-outline:hover { background: var(--linen-soft); color: var(--ink); }
.btn[aria-busy="true"] { opacity: 0.7; cursor: progress; }

.signup-fields { display: grid; gap: 1rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-size: 0.88rem; font-weight: 500; color: var(--ink-soft); }
.optional { color: var(--muted); font-weight: 400; }
input[type="email"], input[type="text"], select, textarea {
  width: 100%; min-height: 3rem; padding: 0 0.9rem; font: 400 1rem var(--text); color: var(--ink);
  background: var(--sheet); border: 1px solid var(--rule-strong); border-radius: var(--radius); appearance: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
textarea { padding: 0.7rem 0.9rem; min-height: 6.5rem; line-height: 1.5; resize: vertical; }
select {
  padding-right: 2.5rem; cursor: pointer;
  background: var(--sheet) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%236b5f55' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E") right 0.9rem center / 1rem no-repeat;
}
input::placeholder { color: #8a7d70; }
input:hover, select:hover, textarea:hover { border-color: var(--muted); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--hl-soft); }
input[aria-invalid="true"] { border-color: #b4412f; }
.form-error { color: #a43a2a; font-size: 0.92rem; min-height: 0; }
.form-error:empty { display: none; }
.form-note { font-size: 0.9rem; color: var(--muted); }
.form-note a { color: var(--ink-soft); }
.form-done { display: none; font-weight: 500; padding: 0.9rem 1rem; border-radius: var(--radius); background: var(--hl-soft); color: var(--ink); }
.signup.is-done .signup-fields, .signup.is-done .form-note, .signup.is-done .form-error { display: none; }
.signup.is-done .form-done { display: block; }
.signup-card { background: var(--sheet); border: 1px solid var(--rule-strong); border-radius: var(--frame); padding: clamp(1.25rem, 3vw, 1.75rem); }

/* ---- Hero: the promise, then the product doing it ------------------------------------------- */
.hero { padding-block: clamp(2.5rem, 5vw, 4rem) clamp(3rem, 6vw, 4.5rem); }
.hero-top { display: grid; gap: 1.75rem 4rem; align-items: end; }
@media (min-width: 62rem) { .hero-top { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); } }
.tagline { margin-top: 1.1rem; font-family: var(--display); font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.3; color: var(--ink-soft); max-width: 28rem; text-wrap: balance; }
.hero-cta { margin-top: 1.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; }
.hero-cta a:not(.btn) { font-weight: 500; }
.hero .fine { margin-top: 0.9rem; }

/* The exhibit: one request, answered with and without the vault. */
.exhibit { margin-top: clamp(2.5rem, 5vw, 3.75rem); }
.exhibit-head { display: grid; gap: 0.4rem 3rem; align-items: baseline; padding-bottom: 1rem; }
@media (min-width: 62rem) { .exhibit-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.exhibit-head h2 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); max-width: none; }
.exhibit-head p { color: var(--ink-soft); font-size: 0.98rem; max-width: 34rem; }
.demo { background: var(--sheet); border: 1px solid var(--ink); border-radius: var(--frame); overflow: hidden; }
.demo-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.9rem 1rem; padding: 0.9rem 1.25rem; border-bottom: 1px solid var(--rule-strong); }
.prompt { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.75rem; }
.prompt-you { font-size: 0.85rem; font-weight: 500; color: var(--muted); }
.prompt-text { font-family: var(--display); font-size: 1.3rem; line-height: 1.3; }
.switch { display: inline-flex; border: 1px solid var(--rule-strong); border-radius: var(--radius); overflow: hidden; }
.switch button { font: 500 0.9rem var(--text); color: var(--ink-soft); background: var(--paper); border: 0; padding: 0.55rem 0.95rem; cursor: pointer; }
.switch button + button { border-left: 1px solid var(--rule-strong); }
.switch button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.switch button[data-mode-btn="on"][aria-pressed="true"] { background: var(--hl); color: var(--ink); }
.switch button:focus-visible { outline-offset: -3px; }
@media (pointer: coarse) { .switch button { min-height: 2.75rem; } }
.demo-body { display: grid; }
@media (min-width: 54rem) { .demo-body { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); } }
.context { padding: 1.25rem; background: var(--paper); border-bottom: 1px solid var(--rule-strong); }
@media (min-width: 54rem) { .context { border-bottom: 0; border-right: 1px solid var(--rule-strong); } }
.context-title, .answer-label { font-size: 0.85rem; font-weight: 500; color: var(--muted); margin-bottom: 0.75rem; }
.context-empty { color: var(--muted); font-family: var(--display); font-size: 1.15rem; line-height: 1.4; max-width: 22rem; }
.notes { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.note {
  border-bottom: 1px solid var(--rule); border-left: 3px solid transparent; padding: 0.65rem 0.75rem;
  font-size: 0.92rem; color: var(--ink-soft); transition: background 160ms ease, border-color 160ms ease;
}
.note-path { display: block; font-weight: 600; color: var(--ink); font-size: 0.82rem; margin-bottom: 0.1rem; }
.note.is-lit { border-left-color: var(--ink); background: var(--hl-soft); }
.demo[data-mode="off"] .notes { display: none; }
.demo[data-mode="on"] .context-empty { display: none; }
.answer { padding: 1.25rem 1.5rem; }
.email { display: grid; gap: 0.8rem; font-size: 1.02rem; color: var(--ink); max-width: 36rem; }
.email-off { color: var(--muted); }
.email[hidden] { display: none; }
mark { background: var(--hl-soft); color: inherit; padding: 0 0.15em; border-radius: 2px; cursor: help; transition: background 140ms ease, box-shadow 140ms ease; }
mark:hover, mark:focus-visible, mark.is-lit { background: var(--hl); outline: none; box-shadow: 0 0 0 2px var(--ink); }
.email-on.is-tracing mark:not(.is-lit) { background: transparent; }
.answer-foot { margin-top: 1.25rem; padding-top: 0.9rem; border-top: 1px solid var(--rule); font-size: 0.88rem; color: var(--muted); }
.demo.is-revealing .note { animation: drop-in 420ms cubic-bezier(.2,.8,.2,1) both; }
.demo.is-revealing .note:nth-child(2) { animation-delay: 130ms; }
.demo.is-revealing .note:nth-child(3) { animation-delay: 260ms; }
.demo.is-revealing .note:nth-child(4) { animation-delay: 390ms; }
.demo.is-revealing .email-on { animation: fade-in 500ms ease 520ms both; }
@keyframes drop-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.works { margin-top: 1.5rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem 1.5rem; font-size: 0.98rem; }
.works-title { font: 400 0.98rem var(--text); color: var(--muted); letter-spacing: 0; max-width: none; }
.works-list { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; list-style: none; padding: 0; font-weight: 500; color: var(--ink); }

/* ---- A picture of the real product ---------------------------------------------------------- */
.shot { border: 1px solid var(--rule-strong); border-radius: var(--frame); overflow: hidden; background: var(--sheet); }
.shot figcaption { padding: 0.75rem 1rem; font-size: 0.88rem; color: var(--muted); border-top: 1px solid var(--rule); }

/* ---- Ledger: a term and what it means, one ruled row each ----------------------------------- */
.ledger { border-top: 1px solid var(--ink); }
.ledger > div { display: grid; gap: 0.2rem 2rem; padding: 0.95rem 0; border-bottom: 1px solid var(--rule-strong); }
@media (min-width: 44rem) { .ledger > div { grid-template-columns: minmax(0, 17rem) minmax(0, 1fr); } }
.ledger dt { font-weight: 600; color: var(--ink); }
.ledger dd { color: var(--ink-soft); max-width: 40rem; }
.ledger-head { margin-top: clamp(2rem, 4vw, 2.75rem); margin-bottom: 0.75rem; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.25rem 1.5rem; }
.ledger-head p { font-size: 0.9rem; color: var(--muted); }

/* Numbered steps as ruled rows. */
.steps { list-style: none; padding: 0; counter-reset: step; border-top: 1px solid var(--ink); }
.steps li { counter-increment: step; display: grid; gap: 0.2rem 2rem; padding: 0.95rem 0; border-bottom: 1px solid var(--rule-strong); grid-template-columns: 2.25rem minmax(0, 1fr); }
@media (min-width: 44rem) { .steps li { grid-template-columns: 2.25rem minmax(0, 15rem) minmax(0, 1fr); } }
.steps li::before { content: counter(step); font-family: var(--display); font-size: 1.35rem; line-height: 1.25; color: var(--camel-ink); font-variant-numeric: tabular-nums; }
.steps p { color: var(--ink-soft); max-width: 40rem; }
@media (max-width: 43.99rem) { .steps p { grid-column: 2; } }
.steps-stack li { grid-template-columns: 2.25rem minmax(0, 1fr); }
.steps-stack p { grid-column: 2; }

/* A note in the margin: an aside set off by a rule, not a tinted box. */
.aside { margin-top: 1.5rem; padding-left: 1rem; border-left: 2px solid var(--camel); color: var(--ink-soft); max-width: 44rem; }
.aside strong { color: var(--ink); font-weight: 600; }
.more { margin-top: 1.25rem; font-weight: 500; }

/* Three short notes side by side, ruled on top. */
.cols { list-style: none; padding: 0; display: grid; gap: 1.5rem 2.5rem; }
@media (min-width: 52rem) { .cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cols li { border-top: 1px solid var(--rule-strong); padding-top: 0.9rem; color: var(--ink-soft); }
.cols strong { display: block; color: var(--ink); font-weight: 600; margin-bottom: 0.25rem; }

/* ---- Pictures of the product, drawn flat: a sheet with a log on it --------------------------- */
.split { display: grid; gap: 2rem 3rem; align-items: start; }
@media (min-width: 58rem) { .split { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); } }
.sheet { background: var(--sheet); border: 1px solid var(--rule-strong); border-radius: var(--frame); }
.band-sheet .sheet { background: var(--paper); }
.sheet-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 0.8rem 1.1rem; border-bottom: 1px solid var(--rule-strong); }
.sheet-title { font-weight: 600; }
.sheet-date { font-size: 0.85rem; color: var(--muted); white-space: nowrap; }
.log { list-style: none; padding: 0; }
.log li { display: grid; grid-template-columns: 5.75rem minmax(0, 1fr) auto; gap: 0.25rem 1rem; align-items: start; padding: 0.8rem 1.1rem; border-bottom: 1px solid var(--rule); }
.log li:last-child { border-bottom: 0; }
.who { font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); padding-top: 0.1rem; }
.who-ai { color: var(--camel-ink); }
.what p { font-size: 0.95rem; }
.verb { color: var(--muted); }
.title { font-weight: 500; }
.why { font-size: 0.85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.quote { margin-top: 0.2rem; font-family: var(--display); font-size: 1.05rem; color: var(--ink); }
.undo { font-size: 0.82rem; font-weight: 500; padding: 0.2rem 0.6rem; border-radius: var(--radius); border: 1px solid var(--rule-strong); }
.undo.is-done { border-color: transparent; color: var(--ok); padding-inline: 0; }
.undone .title { text-decoration: line-through; text-decoration-color: var(--camel); color: var(--muted); }
.state { font-weight: 600; color: var(--camel-ink); }
.state-done { color: var(--ok); }
.actions { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.6rem; }
.actions span { font-size: 0.82rem; font-weight: 500; padding: 0.25rem 0.7rem; border-radius: var(--radius); border: 1px solid var(--rule-strong); color: var(--ink); }
.actions span:first-child { background: var(--ink); border-color: var(--ink); color: var(--paper); }
@media (max-width: 34rem) {
  .log li { grid-template-columns: minmax(0, 1fr) auto; }
  .log .who { grid-column: 1 / -1; }
}

/* ---- Spec table: a claim, the detail, and where it is written down --------------------------- */
.spec { width: 100%; border-collapse: collapse; border-top: 1px solid var(--ink); text-align: left; }
.spec th, .spec td { padding: 0.95rem 1.5rem 0.95rem 0; vertical-align: top; border-bottom: 1px solid var(--rule-strong); }
.spec thead th { font-size: 0.85rem; font-weight: 500; color: var(--muted); padding-block: 0.55rem; }
.spec tbody th { font-weight: 600; width: 17rem; }
.spec td { color: var(--ink-soft); }
.spec td:last-child, .spec th:last-child { padding-right: 0; }
.spec .src { width: 15rem; font-size: 0.9rem; }
@media (max-width: 47.99rem) {
  .spec thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .spec, .spec tbody, .spec tr, .spec th, .spec td { display: block; width: auto; }
  .spec tr { padding: 0.9rem 0; border-bottom: 1px solid var(--rule-strong); }
  .spec th, .spec td { padding: 0; border: 0; }
  .spec tbody th { width: auto; }
  .spec td { margin-top: 0.25rem; }
  .spec .src { width: auto; margin-top: 0.4rem; }
}

/* ---- Pricing: three columns of one table, not three cards ------------------------------------ */
.plans { display: grid; border-top: 1px solid var(--ink); }
.plan { display: grid; grid-template-rows: auto auto auto 1fr auto; gap: 0.6rem; padding: 1.5rem 0; border-bottom: 1px solid var(--rule-strong); }
@media (min-width: 56rem) {
  .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--rule-strong); }
  .plan { padding: 1.5rem 1.75rem; border-bottom: 0; border-left: 1px solid var(--rule-strong); }
  .plan:first-child { border-left: 0; padding-left: 0; }
  .plan:last-child { padding-right: 0; }
  @supports (grid-template-rows: subgrid) {
    .plan { grid-row: span 5; grid-template-rows: subgrid; row-gap: 0.6rem; }
  }
}
.plan h3 { font-family: var(--display); font-weight: 500; font-size: 1.5rem; letter-spacing: -0.01em; }
.plan-for { color: var(--ink-soft); }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.6rem; }
.amount { font-family: var(--display); font-size: 2.6rem; line-height: 1.1; letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.per { color: var(--muted); font-size: 0.95rem; }
.plan-body { align-self: start; margin: 0.5rem 0 0.75rem; }
.plan-list { list-style: none; padding: 0; border-top: 1px solid var(--rule); }
.plan-list li { padding: 0.55rem 0; border-bottom: 1px solid var(--rule); color: var(--ink-soft); font-size: 0.97rem; }
.plan-note { margin-top: 0.75rem; color: var(--muted); font-size: 0.875rem; }
.plans-note { margin-top: 1.25rem; color: var(--muted); font-size: 0.95rem; }

/* ---- Start a trial --------------------------------------------------------------------------- */
.offer-grid { display: grid; gap: 2.5rem 4rem; align-items: start; }
@media (min-width: 56rem) { .offer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 26rem); } }
.plain { list-style: none; padding: 0; margin-top: 1.5rem; border-top: 1px solid var(--rule-strong); max-width: 36rem; }
.plain li { padding: 0.7rem 0; border-bottom: 1px solid var(--rule-strong); color: var(--ink-soft); }

/* ---- FAQ ------------------------------------------------------------------------------------- */
.faq { border-top: 1px solid var(--ink); max-width: 52rem; }
details { border-bottom: 1px solid var(--rule-strong); }
summary {
  cursor: pointer; list-style: none; padding: 1rem 0; font-weight: 600; font-size: 1.05rem; line-height: 1.4;
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; min-height: 2.75rem;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; flex: 0 0 auto; font: 400 1.4rem/1 var(--text); color: var(--muted); transition: transform 200ms ease; }
details[open] summary::after { transform: rotate(45deg); color: var(--ink); }
summary:hover { color: var(--camel-ink); }
details p { padding-bottom: 1.2rem; color: var(--ink-soft); max-width: 42rem; }

/* ---- Footer ---------------------------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--ink); padding-block: 2.5rem 2rem; font-size: 0.92rem; color: var(--muted); }
.footer-grid { display: grid; gap: 2rem 3rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 52rem) { .footer-grid { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); } }
.footer-brand { grid-column: 1 / -1; display: grid; gap: 0.75rem; align-content: start; }
@media (min-width: 52rem) { .footer-brand { grid-column: auto; } }
.footer-brand p { max-width: 20rem; }
.footer-col h2 { font: 500 0.85rem/1.4 var(--text); letter-spacing: 0; color: var(--ink); max-width: none; margin-bottom: 0.4rem; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col a { color: var(--muted); text-decoration: none; min-height: 2.25rem; display: inline-flex; align-items: center; }
@media (pointer: coarse) { .footer-col a { min-height: 2.75rem; } }
.footer-col a:hover { color: var(--ink); text-decoration: underline; }
.footer-base { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--rule-strong); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; }

/* ---- Document pages: guide, security, questions, enterprise ---------------------------------- */
.doc { padding-block: clamp(2.5rem, 6vw, 4rem) clamp(4rem, 8vw, 6rem); }
.doc-wrap { width: min(100% - 2.5rem, 46rem); margin-inline: auto; }
.doc-wide { width: min(100% - 2.5rem, var(--page)); margin-inline: auto; }
@media (min-width: 40rem) { .doc-wide { width: min(100% - 4rem, var(--page)); } }
.doc h1 { font-size: clamp(2.4rem, 4.6vw, 3.4rem); max-width: 20ch; margin-top: 0.75rem; }
.doc .lede { margin-top: 1.1rem; }
.doc .fine { margin-top: 0.9rem; }
.doc-toc { margin-top: 2.25rem; padding: 1rem 0; border-block: 1px solid var(--rule-strong); }
.doc-toc p { font: 500 0.9rem/1.4 var(--text); color: var(--camel-ink); }
.doc-toc ol { margin: 0.6rem 0 0; padding-left: 1.25rem; display: grid; gap: 0.3rem; }
.doc-toc a { font-weight: 500; text-decoration: none; }
.doc-toc a:hover { text-decoration: underline; }
.doc section { margin-top: 3rem; scroll-margin-top: 5rem; }
.doc h2 { font-size: 1.85rem; max-width: none; }
.doc section > p, .doc section > ul, .doc section > ol { margin-top: 1rem; color: var(--ink-soft); max-width: 42rem; }
.doc section li { margin-top: 0.5rem; }
.doc section strong { color: var(--ink); font-weight: 600; }
.doc .shot { margin-top: 1.75rem; }
.doc .ledger, .doc .faq, .doc .spec { margin-top: 1.25rem; }
.doc .row { margin-top: 0; padding-block: clamp(2rem, 4vw, 2.75rem); border-top: 1px solid var(--rule-strong); }
@media (min-width: 62rem) { .doc .row { grid-template-columns: 15rem minmax(0, 1fr); } }
.doc .row h2 { font-size: 1.45rem; line-height: 1.2; }
.doc .row .ledger, .doc .row .faq { margin-top: 0; }
.doc .offer-grid .ledger { margin-top: 2rem; }
.doc .rows { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.doc-next {
  margin-top: 3.5rem; padding: 1.5rem; border-radius: var(--frame); background: var(--ink); color: var(--paper);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem;
}
.doc-next p { color: #d9cfc2; max-width: 30rem; }
.doc-next strong { display: block; color: var(--paper); font-family: var(--display); font-weight: 400; font-size: 1.5rem; margin-bottom: 0.25rem; }
.btn-light { background: var(--hl); color: var(--ink); }
.btn-light:hover { background: #ffe27a; color: var(--ink); }

/* ---- 404 ------------------------------------------------------------------------------------- */
.lost { min-height: 70vh; display: grid; place-content: center; justify-items: center; text-align: center; gap: 1.25rem; padding: 4rem 1rem; }
.lost p { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
