/* landing.css — accepted.dev · design system · 2026-06-09 v2
   Parchment + ink. Three CSS-only signature animations.
   All `prefers-reduced-motion: reduce`-respectful.

   Token conventions:
   - Color: parchment (light bg), ink (text), rule (borders), signal (accent)
   - Type: serif (display + body), sans (UI labels), mono (hashes, code)
   - Space: 4px base unit, 1.5 line-height for body, 1.05 for display
   - Radius: 3px controls, 4px cards, 6px hero elements
*/

:root {
  color-scheme: light dark;

  /* Palette */
  --parchment:        #FAF7F2;  /* main bg */
  --parchment-soft:   #f3eee5;  /* card bg, codeblock bg */
  --parchment-raise:  #fefcf8;  /* raised card bg */

  --ink:              #0B1A2E;  /* primary text + primary CTA */
  --ink-soft:         #2a3a4e;  /* body lede */
  --ink-mute:         #5a6675;  /* secondary */
  --ink-faint:        #8a92a0;  /* tertiary, captions */

  --rule:             #d8d2c7;  /* primary border */
  --rule-soft:        #ebe5d9;  /* divider */
  --rule-strong:      #0B1A2E;  /* bold border */

  --signal:           #0E5C4A;  /* green accent — valid, primary action */
  --signal-soft:      #b8d4cb;  /* green tint */
  --signal-ink:       #FAF7F2;  /* text on signal */

  --warn:             #a8351c;  /* red — invalid, error */
  --warn-soft:        #f5d4cb;

  --highlight:        #fff3a8;  /* yellow for emphasized text */

  /* Typography */
  --serif: "Source Serif 4", "Iowan Old Style", ui-serif, Charter, Georgia, "Times New Roman", serif;
  --sans:  "Inter Tight", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono:  "JetBrains Mono", "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;

  /* Scale (modular, 1.250 ratio) */
  --t-12: 0.75rem;
  --t-13: 0.8125rem;
  --t-14: 0.875rem;
  --t-15: 0.9375rem;
  --t-16: 1rem;
  --t-18: 1.125rem;
  --t-20: 1.25rem;
  --t-22: 1.375rem;
  --t-28: 1.75rem;
  --t-36: 2.25rem;
  --t-48: 3rem;
  --t-64: 4rem;

  /* Space (4px base) */
  --s-4:  4px;
  --s-8:  8px;
  --s-12: 12px;
  --s-16: 16px;
  --s-20: 20px;
  --s-24: 24px;
  --s-32: 32px;
  --s-48: 48px;
  --s-64: 64px;
  --s-96: 96px;

  /* Radius */
  --r-3: 3px;
  --r-4: 4px;
  --r-6: 6px;
  --r-pill: 999px;

  /* Shadow */
  --shadow-1: 0 1px 2px rgba(11, 26, 46, 0.04), 0 0 0 1px rgba(11, 26, 46, 0.04);
  --shadow-2: 0 4px 12px rgba(11, 26, 46, 0.06), 0 0 0 1px rgba(11, 26, 46, 0.05);
  --shadow-3: 0 12px 32px rgba(11, 26, 46, 0.10), 0 0 0 1px rgba(11, 26, 46, 0.04);
}

@media (prefers-color-scheme: dark) {
  :root {
    --parchment:        #0B1A2E;
    --parchment-soft:   #11243d;
    --parchment-raise:  #142b48;

    --ink:              #FAF7F2;
    --ink-soft:         #c8d4e0;  /* cooler, more readable than warm tan */
    --ink-mute:         #8995a8;  /* cooler neutral, less warm */
    --ink-faint:        #5a6678;

    --rule:             #1f3854;  /* slightly more visible */
    --rule-soft:        #182c48;
    --rule-strong:      #FAF7F2;  /* kept for icon/badge accents; receipt no longer uses it */

    --signal:           #5fc7a8;
    --signal-soft:      #1a4a40;
    --signal-ink:       #0B1A2E;

    --warn:             #e88a76;
    --warn-soft:        #4a1c14;

    --highlight:        #3a2e0a;

    --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.30), 0 0 0 1px rgba(255, 255, 255, 0.04);
    --shadow-2: 0 4px 12px rgba(0, 0, 0, 0.40), 0 0 0 1px rgba(255, 255, 255, 0.05);
    --shadow-3: 0 12px 32px rgba(0, 0, 0, 0.50), 0 0 0 1px rgba(95, 199, 168, 0.10);
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--parchment);
  color: var(--ink);
  font-family: var(--serif);
  font-size: var(--t-18);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern", "liga", "calt", "ss01";
}

a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--ink); }
code, pre, .mono { font-family: var(--mono); font-feature-settings: "calt" 0; }

/* ============================================================
   Layout primitives
   ============================================================ */
main.wrap { max-width: 920px; margin: 0 auto; padding: var(--s-56) var(--s-32) var(--s-96); }
main.wrap.narrow { max-width: 720px; }

/* ============================================================
   Masthead (top nav)
   ============================================================ */
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--s-32);
  margin-bottom: var(--s-80);
  border-bottom: 1px solid var(--rule);
}
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
}
.brand-logo {
  display: block;
  height: 36px;
  width: auto;
  transition: transform 0.2s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.brand:hover .brand-logo {
  transform: translateY(-1px);
}
.receipt-mark-img {
  display: block;
  width: 40px;
  height: 48px;
  flex-shrink: 0;
}
/* .sigil: legacy text sigil. Replaced by .brand-logo + .receipt-mark-img SVGs in v0.1.1. Kept as dead code (no DOM references) so the receipt-mark fallback path in older browsers still works. */
.sigil {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: var(--ink);
  color: var(--parchment);
  border-radius: var(--r-4);
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
}

@keyframes stamp {
  0%   { transform: translateY(-14px) scale(1.5) rotate(-8deg); opacity: 0; }
  50%  { transform: translateY(2px)   scale(0.92) rotate(2deg); opacity: 1; }
  75%  { transform: translateY(-1px)  scale(1.03) rotate(-1deg); }
  100% { transform: translateY(0)     scale(1)    rotate(0); opacity: 1; }
}
.wordmark { color: var(--ink); }
.nav { display: flex; gap: var(--s-24); font-family: var(--sans); font-size: var(--t-14); }
.nav a { color: var(--ink-mute); text-decoration: none; }
.nav a:hover { color: var(--ink); }
.nav a.cta-link {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: var(--ink);
  color: var(--parchment);
  border-radius: var(--r-3);
  font-weight: 500;
}
.nav a.cta-link:hover { background: var(--signal); }

/* ============================================================
   Hero
   ============================================================ */
.hero { margin-bottom: clamp(96px, 28vh, 400px); }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-8);
  font-family: var(--sans);
  font-size: var(--t-12);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--ink-mute);
  margin-bottom: var(--s-24);
}
.hero-eyebrow .pulse {
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--signal);
  border-radius: 50%;
  animation: pulse 2.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.8); }
}
.title {
  font-family: var(--serif);
  font-size: clamp(34px, 5.2vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 0 0 var(--s-16);
  font-weight: 500;
  color: var(--ink);
  max-width: 20ch;
}
.title em {
  font-style: italic;
  font-weight: 500;
  color: var(--ink);
}
.lede {
  font-family: var(--serif);
  font-size: clamp(17px, 1.85vw, 20px);
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 64ch;
  margin: 0 0 var(--s-24);
}
.lede strong { color: var(--ink); font-weight: 600; }
.cta-row { display: flex; flex-wrap: wrap; gap: var(--s-16); align-items: center; }
.cta {
  display: inline-flex;
  align-items: center;
  gap: var(--s-8);
  padding: 12px 22px;
  font-family: var(--sans);
  font-size: var(--t-14);
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--r-3);
  border: 1px solid var(--ink);
  transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
  cursor: pointer;
  background: none;
  color: var(--ink);
}
.cta-primary { background: var(--ink); color: var(--parchment); }
.cta-primary:hover { background: var(--signal); border-color: var(--signal); color: var(--parchment); }
.cta-secondary { background: transparent; color: var(--ink); }
.cta-secondary:hover { background: var(--ink); color: var(--parchment); }
.cta-ghost { background: transparent; border-color: transparent; color: var(--ink-mute); padding: 12px 8px; }
.cta-ghost:hover { color: var(--ink); }
.arrow { font-size: 16px; transition: transform 0.15s ease; }
.cta:hover .arrow { transform: translateX(2px); }

/* ============================================================
   THE RECEIPT CARD — the hero of the landing
   ============================================================ */
.receipt-stage {
  margin: var(--s-64) 0;
  perspective: 1200px;
}
.receipt {
  background: var(--parchment-raise);
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-6);
  padding: var(--s-48) var(--s-56) var(--s-40);
  max-width: 720px;
  margin: 0 auto;
  box-shadow: var(--shadow-3);
  position: relative;
  /* Sigil Pulse: subtle one-time glow on the seal */
  animation: settle 0.6s cubic-bezier(0.2, 0.9, 0.3, 1) 0.1s both;
}
@keyframes settle {
  0%   { opacity: 0; transform: translateY(12px) rotate(-0.5deg); }
  100% { opacity: 1; transform: translateY(0)    rotate(0); }
}
/* paper texture — single SVG data-URL, no external request */
.receipt::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 25% 30%, rgba(11, 26, 46, 0.020) 0, transparent 50%),
    radial-gradient(circle at 75% 70%, rgba(11, 26, 46, 0.020) 0, transparent 50%);
  mix-blend-mode: multiply;
}
@media (prefers-color-scheme: dark) {
  /* Receipt card: drop the cream border (looks like a notification in dark).
     Rely on the slightly raised bg + green-tinted shadow + soft top edge highlight
     to give the "paper lit from above" effect. */
  .receipt { border: 1px solid var(--rule); }
  .receipt::before {
    mix-blend-mode: screen;
    opacity: 0.4;
    background-image:
      radial-gradient(circle at 25% 15%, rgba(95, 199, 168, 0.04) 0, transparent 50%),
      radial-gradient(circle at 75% 90%, rgba(11, 26, 46, 0.30) 0, transparent 50%);
  }
  /* Subtle inner top highlight to suggest paper catching light */
  .receipt::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.025) 0%, transparent 8%);
  }
  /* The italic emphasis in the title gets a signal-green tint, like an accent seal */
  .title em { color: var(--signal); }
  /* Trust-articles labels (Art. 12, 14, 9, 13): in dark, the muted warm tan was
     too faint. Bump the color up so the article numbers are scannable. */
  .trust-articles li strong { color: var(--ink); letter-spacing: 0.12em; }
  /* Hero "Try it" nav button: invert the dark-mode treatment so it stays light
     on dark for visual weight (matches the primary CTA). */
  .nav a.cta-link { color: var(--parchment); }
  /* Receipt validity pill text: brighter signal green for legibility */
  .receipt-validity { color: var(--signal); }
  /* Receipt-foot algo seal: invert to light-on-dark for consistency */
  .receipt-foot .algo .seal { background: var(--ink); color: var(--parchment); }
  /* Receipt-pane badge (UNTOUCHED, APPROVED): in dark mode the parchment-soft
     swatch blended with the pane — use the raise color and a visible border */
  .receipt-pane-label .badge {
    background: var(--parchment-raise);
    border-color: var(--rule);
    color: var(--ink-mute);
  }
  /* .proof-num in dark: the signal green is already brighter, just make sure it
     has enough contrast against the dark proof card */
  .proof .proof-num { color: var(--signal); }
  /* CTA-ghost: warm tan was too dim. Cooler, slightly brighter for hover affordance */
  .cta-ghost { color: var(--ink-mute); }
  .cta-ghost:hover { color: var(--ink); }
  /* Footer .foot meta — cooler neutral */
  .foot { color: var(--ink-mute); }
  .foot a { color: var(--ink-mute); }
  .foot a:hover { color: var(--ink); }
  /* Receipt "AI draft / Final" pane labels need slightly more emphasis in dark */
  .receipt-pane-label { color: var(--ink-mute); }
  /* .codeblock-header .dot — the three macOS dots. In light they were tan.
     In dark, make them slightly lighter for visibility */
  .codeblock-header .dot { background: var(--rule); }
}

.receipt-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-24);
  padding-bottom: var(--s-24);
  border-bottom: 1px solid var(--rule);
  margin-bottom: var(--s-32);
}
.receipt-mark {
  display: flex;
  align-items: center;
  gap: var(--s-12);
}
.receipt-mark .sigil { animation: none; width: 32px; height: 32px; font-size: 19px; }
.receipt-mark .label { font-family: var(--sans); font-size: var(--t-12); text-transform: uppercase; letter-spacing: 0.14em; font-weight: 600; color: var(--ink-mute); }
.receipt-validity {
  display: inline-flex;
  align-items: center;
  gap: var(--s-8);
  padding: 5px 12px;
  background: var(--signal-soft);
  color: var(--signal);
  font-family: var(--sans);
  font-size: var(--t-12);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  border-radius: var(--r-pill);
  white-space: nowrap;
}
.receipt-validity .dot {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--signal);
  border-radius: 50%;
  flex-shrink: 0;
}
.receipt-purpose {
  font-family: var(--sans);
  font-size: var(--t-12);
  text-transform: uppercase;
  letter-spacing: 0.10em;
  font-weight: 600;
  color: var(--ink-mute);
  margin: 0 0 var(--s-8);
}
.receipt-title {
  font-family: var(--serif);
  font-size: var(--t-28);
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-weight: 500;
  margin: 0 0 var(--s-8);
  color: var(--ink);
}
.receipt-when {
  font-family: var(--sans);
  font-size: var(--t-13);
  color: var(--ink-mute);
  margin: 0;
}

.receipt-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-24);
  margin: var(--s-24) 0;
}
@media (max-width: 640px) { .receipt-pair { grid-template-columns: 1fr; } }
.receipt-pane {
  background: var(--parchment-soft);
  border: 1px solid var(--rule-soft);
  border-radius: var(--r-4);
  padding: var(--s-20);
}
.receipt-pane-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 var(--s-12);
  font-family: var(--sans);
  font-size: var(--t-12);
  text-transform: uppercase;
  letter-spacing: 0.10em;
  font-weight: 600;
  color: var(--ink-mute);
}
.receipt-pane-label .badge {
  display: inline-block;
  padding: 2px 6px;
  border-radius: var(--r-3);
  background: var(--parchment);
  border: 1px solid var(--rule);
  font-size: 10px;
  font-weight: 500;
  color: var(--ink-mute);
  letter-spacing: 0.05em;
}
.receipt-pane-text {
  font-family: var(--serif);
  font-size: var(--t-15);
  line-height: 1.55;
  color: var(--ink);
  margin: 0;
  white-space: pre-wrap;
  max-height: 220px;
  overflow-y: auto;
}
.receipt-pane-text em.edited {
  background: var(--highlight);
  font-style: normal;
  padding: 0 2px;
  border-radius: 2px;
}

.receipt-facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 10px var(--s-20);
  margin: var(--s-24) 0;
  padding: var(--s-20);
  background: var(--parchment-soft);
  border: 1px solid var(--rule-soft);
  border-radius: var(--r-4);
}
.receipt-facts dt {
  font-family: var(--sans);
  font-size: var(--t-12);
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--ink-mute);
  font-weight: 600;
  align-self: center;
  white-space: nowrap;
}
.receipt-facts dd {
  margin: 0;
  font-family: var(--mono);
  font-size: var(--t-13);
  color: var(--ink);
  word-break: break-all;
}
.receipt-facts dd.serif {
  font-family: var(--serif);
  font-size: var(--t-15);
  word-break: normal;
}

.receipt-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--s-32);
  padding-top: var(--s-20);
  border-top: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: var(--t-12);
  color: var(--ink-mute);
  flex-wrap: wrap;
  gap: var(--s-12);
}
.receipt-foot .algo {
  display: inline-flex;
  align-items: center;
  gap: var(--s-8);
}
.receipt-foot .algo .seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  background: var(--ink);
  color: var(--parchment);
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
}
.receipt-foot a { color: var(--ink-mute); text-decoration: none; border-bottom: 1px solid var(--rule); padding-bottom: 1px; }
.receipt-foot a:hover { color: var(--ink); border-color: var(--ink); }

.receipt-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-12);
  justify-content: center;
  margin-top: var(--s-32);
}

/* ============================================================
   Code block (curl example)
   ============================================================ */
.codeblock {
  background: var(--parchment-soft);
  border: 1px solid var(--rule);
  border-radius: var(--r-6);
  margin: 0 0 var(--s-64);
  overflow: hidden;
  box-shadow: var(--shadow-1);
}
.codeblock-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--rule);
  background: var(--parchment);
}
.codeblock-header .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--rule);
}
.codeblock-header .filename {
  margin-left: auto;
  font-family: var(--mono);
  font-size: var(--t-12);
  color: var(--ink-mute);
}
.codeblock pre {
  margin: 0;
  padding: 20px 24px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: var(--t-13);
  line-height: 1.6;
  color: var(--ink);
  background: transparent;
}
.codeblock code { color: var(--ink); }

/* ============================================================
   Section primitives
   ============================================================ */
section { margin-bottom: var(--s-96); }
section.tight { margin-bottom: var(--s-64); }
h2.section-title {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-weight: 500;
  margin: 0 0 var(--s-12);
  color: var(--ink);
  max-width: 30ch;
}
.section-lede {
  font-family: var(--serif);
  font-size: var(--t-18);
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0 0 var(--s-32);
  max-width: 56ch;
}
.section-eyebrow {
  font-family: var(--sans);
  font-size: var(--t-12);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: var(--ink-mute);
  margin: 0 0 var(--s-12);
}

/* ============================================================
   Three-card grid (REST / OpenAI / Webhook)
   ============================================================ */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-16);
}
@media (max-width: 760px) { .grid-3 { grid-template-columns: 1fr; } }

.grid-6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-24) var(--s-32);
  margin: var(--s-24) 0 0;
}
@media (max-width: 880px) { .grid-6 { grid-template-columns: repeat(2, 1fr); gap: var(--s-20) var(--s-24); } }
@media (max-width: 520px) { .grid-6 { grid-template-columns: 1fr; } }
.proof {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}
.proof .proof-num {
  font-family: var(--mono);
  font-size: var(--t-12);
  color: var(--signal);
  letter-spacing: 0.08em;
  font-weight: 600;
}
.proof h4 {
  font-family: var(--sans);
  font-size: var(--t-15);
  font-weight: 600;
  letter-spacing: -0.005em;
  margin: 0;
  color: var(--ink);
}
.proof p {
  font-family: var(--serif);
  font-size: var(--t-14);
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0;
  max-width: 32ch;
}
.card {
  background: var(--parchment-soft);
  border: 1px solid var(--rule);
  border-radius: var(--r-4);
  padding: var(--s-24);
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
  display: flex;
  flex-direction: column;
  gap: var(--s-12);
}
.card:hover {
  border-color: var(--ink);
  box-shadow: var(--shadow-2);
  transform: translateY(-1px);
}
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  background: var(--ink);
  color: var(--parchment);
  border-radius: var(--r-4);
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
}
.card h3 {
  font-family: var(--sans);
  font-size: var(--t-15);
  font-weight: 600;
  letter-spacing: -0.005em;
  margin: 0;
  color: var(--ink);
}
.card p {
  font-family: var(--serif);
  font-size: var(--t-15);
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0;
}
.card code {
  font-family: var(--mono);
  font-size: var(--t-13);
  color: var(--signal);
  background: transparent;
  padding: 0;
}

/* ============================================================
   EU AI Act trust block
   ============================================================ */
.trust {
  border-top: 1px solid var(--rule);
  padding-top: var(--s-48);
}
.trust-articles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-16) var(--s-32);
  margin: var(--s-24) 0 0;
  padding: 0;
  list-style: none;
}
@media (max-width: 640px) { .trust-articles { grid-template-columns: 1fr; } }
.trust-articles li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: var(--s-12);
  align-items: start;
  font-family: var(--serif);
  font-size: var(--t-15);
  line-height: 1.5;
  color: var(--ink-soft);
}
.trust-articles li strong {
  display: block;
  font-family: var(--sans);
  font-size: var(--t-12);
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 2px;
}
.trust-articles li code {
  font-family: var(--mono);
  font-size: var(--t-13);
  background: var(--parchment-soft);
  padding: 1px 6px;
  border-radius: 2px;
  color: var(--ink);
}

/* ============================================================
   Try-it section
   ============================================================ */
.tryit {
  border: 1px solid var(--rule);
  border-radius: var(--r-6);
  background: var(--parchment-soft);
  padding: var(--s-32);
  margin: var(--s-32) 0 var(--s-64);
}
.tryit-warning {
  border: 1px solid var(--warn);
  background: var(--warn-soft);
  color: var(--ink);
  font-family: var(--serif);
  font-size: var(--t-15);
  line-height: 1.5;
  padding: var(--s-16) var(--s-20);
  border-radius: var(--r-4);
  margin: 0 0 var(--s-24);
  max-width: 72ch;
}
.tryit-warning strong { color: var(--warn); font-weight: 600; }
.tryit-warning em { font-style: italic; }
.tryit-form { display: grid; gap: var(--s-16); }
.tryit-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--s-16);
  align-items: start;
}
@media (max-width: 640px) { .tryit-row { grid-template-columns: 1fr; gap: var(--s-8); } }
.tryit-row label {
  font-family: var(--sans);
  font-size: var(--t-12);
  text-transform: uppercase;
  letter-spacing: 0.10em;
  font-weight: 600;
  color: var(--ink-mute);
  padding-top: 12px;
}
.tryit-row input, .tryit-row textarea {
  font-family: var(--mono);
  font-size: var(--t-13);
  background: var(--parchment);
  border: 1px solid var(--rule);
  border-radius: var(--r-3);
  padding: 10px 12px;
  color: var(--ink);
  resize: vertical;
  min-height: 44px;
  width: 100%;
  font-feature-settings: "calt" 0;
}
.tryit-row input:focus, .tryit-row textarea:focus {
  outline: 2px solid var(--signal);
  outline-offset: -1px;
  border-color: var(--signal);
}
.tryit-row textarea { min-height: 96px; }
.tryit-submit { display: flex; gap: var(--s-12); align-items: center; flex-wrap: wrap; }
.tryit-submit .note {
  font-family: var(--sans);
  font-size: var(--t-12);
  color: var(--ink-mute);
}
.tryit-out {
  display: none;
  margin-top: var(--s-24);
  padding: var(--s-20);
  background: var(--parchment);
  border: 1px solid var(--rule);
  border-radius: var(--r-4);
  font-family: var(--mono);
  font-size: var(--t-13);
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 200px;
  overflow: auto;
}
.tryit-out.error { border-color: var(--warn); background: var(--warn-soft); color: var(--warn); }
.tryit-out.show { display: block; }

/* ============================================================
   Footer
   ============================================================ */
.foot {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-16);
  justify-content: space-between;
  padding-top: var(--s-24);
  border-top: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: var(--t-12);
  color: var(--ink-mute);
}
.foot a { color: var(--ink-mute); text-decoration: none; }
.foot a:hover { color: var(--ink); }

/* ============================================================
   Docs page additions
   ============================================================ */
main.docs-wrap { max-width: 800px; }
.docs-h2 {
  font-family: var(--serif);
  font-size: var(--t-28);
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: var(--s-64) 0 var(--s-12);
  padding-top: var(--s-24);
  border-top: 1px solid var(--rule);
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: var(--s-12);
}
.docs-h2:first-of-type { border-top: none; padding-top: 0; margin-top: var(--s-32); }
.docs-h2 .step-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--parchment);
  font-family: var(--sans);
  font-size: var(--t-13);
  font-weight: 600;
  flex-shrink: 0;
}
.docs-h2 .hash {
  margin-left: auto;
  font-family: var(--mono);
  font-size: var(--t-12);
  color: var(--ink-faint);
  font-weight: 400;
  letter-spacing: 0;
  text-decoration: none;
}
.docs-p { font-size: var(--t-16); line-height: 1.6; color: var(--ink-soft); margin: 0 0 var(--s-16); max-width: 64ch; }
.docs-p strong { color: var(--ink); font-weight: 600; }
pre.docs-pre {
  background: var(--parchment-soft);
  border: 1px solid var(--rule);
  border-radius: var(--r-4);
  padding: 16px 20px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: var(--t-13);
  line-height: 1.6;
  color: var(--ink);
  margin: var(--s-12) 0 var(--s-24);
  font-feature-settings: "calt" 0;
}
code.docs-code { font-family: var(--mono); font-size: 0.92em; color: var(--ink); background: var(--parchment-soft); padding: 1px 6px; border-radius: var(--r-3); font-feature-settings: "calt" 0; }
.docs-pre code { background: transparent; padding: 0; color: var(--ink); }

.docs-table { width: 100%; border-collapse: collapse; margin: var(--s-12) 0 var(--s-24); font-size: var(--t-14); }
.docs-table th, .docs-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--rule-soft); }
.docs-table th { font-family: var(--sans); font-size: var(--t-12); text-transform: uppercase; letter-spacing: 0.10em; color: var(--ink-mute); font-weight: 600; }
.docs-table td { color: var(--ink-soft); }
.docs-table td code { font-family: var(--mono); font-size: var(--t-13); color: var(--ink); background: transparent; padding: 0; }

/* ============================================================
   Verify page additions
   ============================================================ */
.verify-main { max-width: 880px; }
.verify-grid { display: grid; grid-template-columns: 1fr; gap: var(--s-32); margin-top: var(--s-24); }
.receipt-sidecar {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-16);
}
.receipt-sidecar .receipt-pane-text { max-height: 320px; }

/* Verdict stamp */
.verdict {
  display: flex;
  align-items: center;
  gap: var(--s-20);
  margin-bottom: var(--s-32);
  padding: var(--s-24);
  background: var(--parchment-soft);
  border: 1px solid var(--rule);
  border-radius: var(--r-4);
}
.verdict-mark {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 700;
  flex-shrink: 0;
  font-family: var(--serif);
}
.verdict-mark.valid { background: var(--signal-soft); color: var(--signal); }
.verdict-mark.invalid { background: var(--warn-soft); color: var(--warn); }
.verdict-text h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: var(--t-22);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.verdict-text p {
  margin: 4px 0 0;
  font-family: var(--sans);
  font-size: var(--t-13);
  color: var(--ink-mute);
}

/* Loading state */
.is-loading .receipt { opacity: 0.5; }

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .sigil, .receipt, .hero-eyebrow .pulse { animation: none; }
  .arrow, .cta, .card { transition: none; }
  html { scroll-behavior: auto; }
}
