/* ==========================================================================
   Zelims — zelims.com.

   Palette and typographic manners come from the product's own token layer
   (src/styles/tokens.css) so site and app read as one thing: warm
   ledger-paper neutrals, a deep pine accent, ink hairlines, uppercase
   eyebrows, tabular numerals.

   The brand mark is monochrome by the brand guide (black on light, white on
   dark) and is never recoloured here — pine is reserved for interface
   affordances (buttons, links, the status chip), never for the logo.

   DELIBERATELY SINGLE-THEME: the product's identity IS ledger paper. The ink
   hero and ink footer are the stationery's black bars at scale, not a theme.
   ========================================================================== */

:root {
  --paper: #fcfbf9;
  --paper-sunken: #f6f5f2;
  --paper-raised: #ffffff;
  --ink: #1c1b17;
  --ink-soft: #2a2822;
  --ink-muted: #54524a;
  --ink-faint: #6f6c62;
  --rule: #e3e0d9;
  --rule-strong: #1c1b17;
  --pine: #0e5c46;
  --pine-deep: #0a4836;
  --pine-light: #8cc7ad;
  --green: #146b3a;
  --green-wash: #eaf4ee;

  --measure: 66ch;
  --wrap: 1120px;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; text-wrap: balance; letter-spacing: -0.015em; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }

a { color: var(--pine); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible { outline: 2px solid var(--pine); outline-offset: 2px; border-radius: 3px; }
/* On the ink bands the pine ring disappears — brighten it there (WCAG 2.4.11). */
.deck :focus-visible, .foot :focus-visible { outline-color: var(--pine-light); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
@media (min-width: 768px) { .wrap { padding-inline: 40px; } }

.num { font-variant-numeric: tabular-nums; }

/* ── Eyebrow ────────────────────────────────────────────────────────────── */
.eyebrow {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.eyebrow-dark { color: var(--pine-light); }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--pine); color: #fff; }
.btn-primary:hover { background: var(--pine-deep); }
.btn-secondary { background: var(--paper-raised); border-color: var(--ink-faint); color: var(--ink); }
.btn-secondary:hover { background: var(--paper-sunken); }
.btn-on-dark { border-color: rgba(252, 251, 249, 0.55); color: var(--paper); }
.btn-on-dark:hover { background: rgba(252, 251, 249, 0.12); color: var(--paper); }
.btn-lg { padding: 13px 24px; font-size: 15px; }

.link-arrow { font-size: 14px; font-weight: 600; }
.link-arrow::after { content: " \2192"; }
.link-arrow-dark { color: var(--pine-light); }

/* ══ HERO ═══════════════════════════════════════════════════════════════ */
.deck { background: var(--ink); color: var(--paper); padding-bottom: 64px; }

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 22px;
}
.mark { display: inline-flex; color: var(--paper); padding: 4px; }
.mark svg { height: 26px; width: auto; display: block; }
.bar-nav { display: flex; align-items: center; gap: 20px; }
.bar-link { color: var(--paper); font-size: 14px; font-weight: 500; }
.bar-link:hover { color: var(--pine-light); text-decoration: none; }
@media (max-width: 519px) {
  .bar-nav { gap: 14px; }
  .bar-nav .bar-link[href$="/trust"] { display: none; }
}

.hero { display: grid; gap: 48px; padding-top: 40px; }
@media (min-width: 1080px) {
  .hero { grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; padding-top: 64px; }
}

.hero h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.7rem);
  font-weight: 800;
  line-height: 1.07;
  letter-spacing: -0.03em;
}
.lede {
  margin-top: 22px;
  max-width: 48ch;
  font-size: 1.075rem;
  line-height: 1.62;
  color: rgba(252, 251, 249, 0.78);
}
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; margin-top: 34px; }
.hero-foot { margin-top: 26px; font-size: 0.85rem; color: rgba(252, 251, 249, 0.55); }

/* The close package, in the product's own vocabulary, on paper. */
.artifact {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  border-radius: 8px;
  padding: 22px 24px 20px;
  box-shadow: 0 22px 50px -24px rgba(0, 0, 0, 0.6);
}
.artifact-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule-strong);
}
.chip {
  background: var(--green-wash);
  color: var(--green);
  border-radius: 3px;
  padding: 3px 7px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.artifact-title { font-size: 12.5px; font-weight: 600; }
.artifact-rows > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
}
.artifact-rows dt { font-size: 13px; color: var(--ink-muted); }
.artifact-rows dd { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.artifact-sig { margin-top: 14px; font-size: 12px; color: var(--ink-muted); }
.artifact-hash {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  overflow-wrap: anywhere;
}
.artifact-hash span {
  display: block;
  font-family: Inter, sans-serif;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 3px;
}
.artifact figcaption {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink-faint);
}

/* ══ BANDS ══════════════════════════════════════════════════════════════ */
.band { padding-block: 68px; }
@media (min-width: 768px) { .band { padding-block: 92px; } }
/* Tint is a full-bleed background; the inner .wrap keeps the measure. */
.band-tint { background: var(--paper-sunken); border-block: 1px solid var(--rule); }

.band h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 800;
  line-height: 1.16;
  max-width: 24ch;
}
.section-lede { margin-top: 16px; max-width: var(--measure); font-size: 1.02rem; color: var(--ink-muted); }
.section-more { margin-top: 34px; }

/* ── Three-column prose ─────────────────────────────────────────────────── */
.cols-3 { display: grid; gap: 32px; margin-top: 44px; }
@media (min-width: 820px) { .cols-3 { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.col { border-top: 2px solid var(--rule-strong); padding-top: 18px; }
.col h3 { font-size: 1.03rem; font-weight: 700; }
.col p { margin-top: 10px; font-size: 0.95rem; color: var(--ink-muted); }

/* ── Claims ─────────────────────────────────────────────────────────────── */
.claims { margin-top: 44px; display: grid; }
@media (min-width: 880px) { .claims { grid-template-columns: 1fr 1fr; column-gap: 56px; } }
.claims li { padding: 26px 0; border-top: 1px solid var(--rule); }
.claims h3 { font-size: 1.06rem; font-weight: 700; }
.claims p { margin-top: 10px; font-size: 0.95rem; color: var(--ink-muted); max-width: 52ch; }
.claims .how {
  margin-top: 12px;
  padding-left: 14px;
  border-left: 2px solid var(--pine);
  font-size: 0.875rem;
  color: var(--ink-faint);
}

/* ── Pullquote ──────────────────────────────────────────────────────────── */
.pullquote {
  margin-top: 44px;
  padding-top: 26px;
  border-top: 2px solid var(--rule-strong);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  font-weight: 500;
  line-height: 1.5;
  max-width: 58ch;
}

/* ── Steps (a real sequence, so it is numbered) ─────────────────────────── */
.steps { margin-top: 44px; }
.steps li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  padding: 26px 0;
  border-top: 1px solid var(--rule);
}
@media (min-width: 768px) { .steps li { grid-template-columns: 84px 1fr; gap: 28px; } }
.step-n {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--pine);
  letter-spacing: 0.06em;
  padding-top: 3px;
}
.steps h3 { font-size: 1.06rem; font-weight: 700; }
.steps p { margin-top: 8px; font-size: 0.95rem; color: var(--ink-muted); max-width: 62ch; }

/* ── Feature list (term/definition pairs) ───────────────────────────────── */
.grid-features { margin-top: 44px; display: grid; }
@media (min-width: 700px) { .grid-features { grid-template-columns: 1fr 1fr; column-gap: 48px; } }
@media (min-width: 1000px) { .grid-features { grid-template-columns: repeat(3, 1fr); } }
.grid-features > div { padding: 18px 0; border-top: 1px solid var(--rule); }
.grid-features dt { font-size: 0.95rem; font-weight: 700; }
.grid-features dd { margin-top: 5px; font-size: 0.88rem; color: var(--ink-muted); }

/* ── Film (added when the edit lands) ───────────────────────────────────── */
.film { margin: 44px 0 0; }
.film video { width: 100%; height: auto; display: block; border-radius: 8px; background: var(--ink); }
.film figcaption { margin-top: 12px; font-size: 0.85rem; color: var(--ink-faint); }

/* ── Closing CTA ────────────────────────────────────────────────────────── */
.band-cta { border-top: 2px solid var(--rule-strong); }
.band-cta h2 { max-width: 26ch; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.foot { background: var(--ink); color: rgba(252, 251, 249, 0.72); padding-block: 34px; font-size: 13px; }
.foot-in { display: grid; gap: 14px; }
@media (min-width: 860px) {
  .foot-in { grid-template-columns: 1fr auto 1fr; align-items: center; }
  .foot-legal { text-align: right; }
}
.foot-brand { color: var(--paper); font-weight: 600; }
.foot-note { margin-top: 2px; color: rgba(252, 251, 249, 0.55); }
.foot-nav { display: flex; flex-wrap: wrap; gap: 20px; }
@media (min-width: 860px) { .foot-nav { justify-content: center; } }
.foot-nav a { color: rgba(252, 251, 249, 0.72); }
.foot-nav a:hover { color: var(--pine-light); text-decoration: none; }

/* ── Print / save-to-PDF: the ink bands must not disappear ──────────────── */
@media print {
  .deck, .foot { background: #fff !important; color: #000 !important; }
  .mark, .bar-link, .foot-brand, .foot-nav a { color: #000 !important; }
  .lede, .hero-foot, .foot-note { color: #333 !important; }
  .btn { border: 1px solid #000 !important; background: #fff !important; color: #000 !important; }
  .artifact { box-shadow: none; border: 1px solid #999; }
  .eyebrow-dark { color: #333 !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 10px; color: #555; }
}

/* ── Questions ──────────────────────────────────────────────────────────── */
.faq { margin-top: 44px; display: grid; }
@media (min-width: 880px) { .faq { grid-template-columns: 1fr 1fr; column-gap: 56px; } }
.faq-item { padding: 24px 0; border-top: 1px solid var(--rule); }
.faq-item h3 { font-size: 1.02rem; font-weight: 700; }
.faq-item p { margin-top: 10px; font-size: 0.94rem; color: var(--ink-muted); max-width: 54ch; }
