/* DocuTrain marketing pages — terminal-bold on cream paper.
   Design system: PRODUCT.md (register=brand) + DESIGN.md (extended).
   Pages using this stylesheet: index.html, pricing.html, why-docutrain.html. */

/* ========== Tokens ========== */

:root {
  --paper:        #f6f4ef;
  --paper-inset:  #f0ead8;
  --paper-edge:   #e6e0d4;
  --bg-grid:      radial-gradient(circle at 1px 1px, rgba(26, 22, 18, 0.05) 1px, transparent 0);
  --bg-grid-size: 24px 24px;
  --paper-rule:   #ece7de;
  --ink:          #1a1612;
  --ink-muted:    #5a544c;
  --ink-subtle:   #8a8377;
  --accent:       #0066cc;
  --accent-deep:  #003d80;
  --accent-wash:  rgba(0, 102, 204, 0.06);

  --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, Consolas, 'Courier New', monospace;
  --font-sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif;

  --container: 1120px;
  --container-narrow: 760px;
  --gutter: 24px;
  --section-y: 96px;
  --section-y-sm: 64px;

  color-scheme: light only;
  supported-color-schemes: light;
}

/* ========== Reset ========== */

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-grid) 0 0 / var(--bg-grid-size) fixed, var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-deep); }

ul, ol { padding: 0; margin: 0; }

::selection { background: var(--ink); color: var(--paper); }

/* ========== Typography utilities ========== */

.mono { font-family: var(--font-mono); }
.sans { font-family: var(--font-sans); }

.label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-subtle);
}

.label-accent {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.muted { color: var(--ink-muted); }
.subtle { color: var(--ink-subtle); }

/* ========== Container ========== */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ========== Hairline rule ========== */

.rule {
  border: 0;
  border-top: 1px solid var(--paper-edge);
  margin: 0;
}

/* ========== Nav ========== */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: var(--bg-grid) 0 0 / var(--bg-grid-size) fixed, var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color 100ms ease-out;
}
.nav.scrolled { border-bottom-color: var(--paper-edge); }

.nav-container {
  max-width: var(--container);
  margin-inline: auto;
  padding: 16px var(--gutter);
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  height: 36px;
}
.nav-logo img { height: 30px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
}
.nav-link {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
  padding: 7px 12px;
  border-radius: 4px;
  letter-spacing: -0.005em;
  transition: color 100ms ease-out, background-color 100ms ease-out;
}
.nav-link:hover { color: var(--ink); background: var(--paper-inset); }
.nav-link.active { color: var(--ink); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

/* Session-aware nav: toggled by inline head script + landing.js.
   Default state is logged-out; logged-in elements are revealed when
   <html> gets the .is-authed class. */
[data-auth="logged-in"] { display: none !important; }
html.is-authed [data-auth="logged-in"] { display: inline-flex !important; }
html.is-authed [data-auth="logged-out"] { display: none !important; }
.mobile-menu [data-auth] { display: none !important; }
.mobile-menu [data-auth="logged-out"] { display: block !important; }
html.is-authed .mobile-menu [data-auth="logged-out"] { display: none !important; }
html.is-authed .mobile-menu [data-auth="logged-in"] { display: block !important; }
.user-menu-mount {
  align-items: center;
}
/* Matches ChatHeaderHamburgerTrigger: w-7 h-7 rounded-md bordered (vercel-* chat chrome) */
.user-menu-skeleton {
  box-sizing: border-box;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid var(--paper-edge);
  background: #fff;
}

/* ========== Buttons ========== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border-radius: 4px;
  transition: background-color 120ms ease-out, color 120ms ease-out, border-color 120ms ease-out;
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
}
.btn-primary:hover { background: #000; color: var(--paper); }

.btn-accent {
  background: var(--accent);
  color: var(--paper);
  border: 1px solid var(--accent);
}
.btn-accent:hover { background: var(--accent-deep); color: var(--paper); }

.btn-ghost {
  color: var(--paper);
  background-color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-ghost:hover {
  color: var(--ink-muted);
  background-color: var(--paper-inset);
  border-color: transparent;
}

/* Anchors: ensure link visited / UA styles don’t strip the dark pill */
a.btn.btn-ghost,
a.btn.btn-ghost:visited {
  color: var(--paper);
  background-color: var(--ink);
  border: 1px solid var(--ink);
}
a.btn.btn-ghost:hover {
  color: var(--ink-muted);
  background-color: var(--paper-inset);
  border-color: transparent;
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--paper-edge);
}
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }

.btn-hero-outline {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--paper-rule);
  border-radius: 9999px;
}
.btn-hero-outline:hover {
  border-color: var(--ink-muted);
  background: var(--paper);
  color: var(--ink);
}

.btn-lg {
  height: 44px;
  padding: 0 18px;
  font-size: 14px;
}

.btn-hero-primary {
  border-radius: 9999px;
  font-weight: 600;
  letter-spacing: -0.012em;
}

.btn-arrow svg {
  width: 14px;
  height: 14px;
  stroke-width: 1.75;
}

/* ========== Mobile nav ========== */

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  height: 1.5px;
  width: 18px;
  margin: 2px auto;
  background: var(--ink);
  transition: transform 200ms ease-out, opacity 100ms ease-out;
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: 60px 0 0 0;
  z-index: 49;
  background: var(--paper);
  padding: 32px var(--gutter);
  flex-direction: column;
  gap: 4px;
  border-top: 1px solid var(--paper-edge);
}
.mobile-menu.active { display: flex; }
.mobile-menu a {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-muted);
  padding: 12px 8px;
  border-bottom: 1px solid var(--paper-edge);
  text-decoration: none;
  letter-spacing: -0.005em;
}
.mobile-menu a:hover { color: var(--ink); }
.mobile-menu a.btn-primary {
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  margin-top: 16px;
  text-align: center;
  justify-content: center;
}
.mobile-menu a.btn-primary:hover { color: var(--paper); }

@media (max-width: 900px) {
  .nav-links, .nav-actions { display: none; }
  .nav-toggle { display: flex; }
}

/* ========== Sections ========== */

main { padding-top: 60px; }

.section { padding-block: var(--section-y); }
.section-sm { padding-block: var(--section-y-sm); }
.section-divided { border-top: 1px solid var(--paper-edge); }

.section-marker {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 16px;
  display: inline-block;
}

.section-head { margin-bottom: 48px; max-width: 720px; }
.section-head h2 {
  font-family: var(--font-mono);
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 12px 0;
  color: var(--ink);
}
.section-head p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-muted);
  margin: 0;
}

/* ========== Hero (landing) ========== */

.hero {
  /* Clay paper matches app login/dashboard (--v-bg / bg-vercel-bg); electric blue retained for hero CTA. */
  --paper: #f6f4ef;
  --paper-inset: #f0ead8;
  --paper-edge: #e6e0d4;
  --paper-rule: #ece7de;
  --ink: #1a1612;
  --ink-muted: #5a544c;
  --ink-subtle: #8a8377;
  --accent: #1d4ef5;
  --accent-deep: #143dbd;
  --accent-wash: rgba(29, 78, 245, 0.08);
  --accent-cite: rgba(29, 78, 245, 0.78);
  --transcribed-bg: #fff1d6;
  --transcribed-fg: #a36400;
  --font-sans: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, 'Courier New', monospace;

  position: relative;
  padding-top: 96px;
  padding-bottom: 96px;
  border-bottom: 1px solid var(--paper-edge);
  background: var(--bg-grid) 0 0 / var(--bg-grid-size) fixed;
  overflow: hidden;
}

/* Bottom-right radial vignette (~3% ink) to seat the dark assistant card */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse 85% 70% at 100% 100%,
    rgba(12, 12, 12, 0.03) 0%,
    transparent 58%
  );
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 40px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.hero-meta-dot {
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent);
}

.hero-meta-sep {
  width: 24px;
  height: 1px;
  background: var(--paper-edge);
}

.hero-wordmark {
  font-family: var(--font-mono);
  font-size: clamp(56px, 12vw, 144px);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.95;
  color: var(--ink);
  margin: 0 0 24px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
  }
}

.hero-headline {
  font-family: var(--font-sans);
  font-size: clamp(40px, 7.2vw, 96px);
  font-weight: 700;
  letter-spacing: -0.038em;
  line-height: 0.98;
  color: var(--ink);
  margin: 0 0 28px 0;
  max-width: 560px;
}

.hero-headline-line { display: block; }
.hero-headline-accent {
  color: var(--accent);
  white-space: nowrap;
}

.hero-subdeck {
  font-family: var(--font-sans);
  font-size: 19px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--ink);
  margin: 0 0 32px 0;
  letter-spacing: -0.01em;
  max-width: 580px;
  text-wrap: pretty;
}

.hero-subdeck-muted {
  color: var(--ink-subtle);
  font-weight: 400;
}

/* Wavy underline on emphasized words in the headline */
.hero-headline-wavy {
  text-decoration: underline;
  text-decoration-style: wavy;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.18em;
}

/* Hero formats — full-width centered format-tile strip below the hero grid */
.hero-formats {
  margin-top: 72px;
  padding-top: 40px;
  border-top: 1px solid var(--paper-edge);
  text-align: center;
}

.hero-formats-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-subtle);
  margin-bottom: 24px;
}

.hero-formats-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-format {
  flex: 1 1 148px;
  max-width: 184px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  padding: 22px 12px 18px;
  background: var(--paper-inset);
  border: 1px solid var(--paper-edge);
  border-radius: 6px;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.hero-format:hover {
  border-color: var(--ink-subtle);
  background: #ffffff;
}

.hero-format-icon {
  width: 56px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}

.hero-format-icon svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Page outline + corner fold get the warm white paper fill */
.hero-format-icon-page {
  fill: #ffffff;
}

.hero-format-icon-fold {
  fill: var(--paper);
}

/* The PDF stamp sits in accent — single accent pop per tile */
.hero-format-icon-stamp {
  fill: var(--accent-wash);
  stroke: var(--accent);
}

.hero-format-icon-stampchar {
  font-family: var(--font-mono);
  font-size: 6.4px;
  font-weight: 600;
  letter-spacing: 0.08em;
  fill: var(--accent);
  stroke: none;
}

.hero-format-icon-pin {
  fill: var(--accent);
}

.hero-format-icon-play {
  color: var(--accent);
}

/* Audio waveform peak bars — single accent pop on the tile */
.hero-format-icon-peak {
  fill: var(--accent);
}

.hero-format-name {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
}

.hero-format-sub {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-subtle);
  margin-top: -6px;
}

@media (max-width: 980px) {
  .hero-format {
    flex: 1 1 calc(33.333% - 10px);
    max-width: none;
  }
}

@media (max-width: 600px) {
  .hero-formats {
    margin-top: 56px;
    padding-top: 32px;
  }
  .hero-formats-row {
    gap: 12px;
  }
  .hero-format {
    flex: 1 1 calc(50% - 6px);
    padding: 20px 12px 16px;
    gap: 12px;
  }
  .hero-format-icon {
    width: 48px;
    height: 56px;
  }
}

/* Hero flow visual — files converging into a live chat widget */

.hero-flow {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
}

@media (max-width: 1023.98px) {
  .hero-flow { display: none; }
}

.hero-flow-files {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 8px;
  align-items: stretch;
}

.file-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  align-self: stretch;
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--paper-rule);
  border-radius: 10px;
  padding: 10px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink);
  box-shadow: 0 2px 10px rgba(12, 12, 12, 0.04);
  letter-spacing: -0.01em;
  white-space: nowrap;
  max-width: 100%;
}

.file-chip-1,
.file-chip-2,
.file-chip-3,
.file-chip-4 {
  transform: none;
  margin-left: 0;
}

.file-chip-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 2px;
  flex-shrink: 0;
}

.file-chip-name {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-chip-size {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
}

.file-chip-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: var(--accent-wash);
  padding: 4px 8px;
  border-radius: 9999px;
  text-transform: uppercase;
  flex-shrink: 0;
}

.file-chip-tag--amber {
  color: var(--transcribed-fg);
  background: var(--transcribed-bg);
}

.hero-flow-lines-wrap {
  position: relative;
  width: 100%;
  height: 48px;
  flex-shrink: 0;
}

.hero-flow-lines {
  display: block;
  width: 100%;
  height: 48px;
  color: var(--accent);
}

.hero-chat {
  position: relative;
  background: #0c0c0c;
  color: var(--paper);
  border-radius: 14px;
  padding: 26px 20px 22px;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  box-shadow: 0 20px 50px rgba(12, 12, 12, 0.18);
  margin-top: -1px;
}

.hero-chat-ports {
  position: absolute;
  top: 0;
  left: 11%;
  right: 11%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 2;
}

.hero-chat-port {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow:
    0 0 0 2px rgba(29, 78, 245, 0.35),
    0 0 14px 3px rgba(29, 78, 245, 0.45);
}

.hero-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(239, 233, 217, 0.55);
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(239, 233, 217, 0.14);
}

.hero-chat-head-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.hero-chat-head-square {
  width: 14px;
  height: 14px;
  background: var(--accent);
  border-radius: 3px;
  flex-shrink: 0;
}

.hero-chat-head-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-chat-head-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  color: rgba(239, 233, 217, 0.75);
  letter-spacing: 0.12em;
}

.hero-chat-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.35);
}

.hero-chat-msg {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
}

.hero-chat-avatar {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
}

.hero-chat-avatar-q {
  background: var(--accent);
  color: #ffffff;
}

.hero-chat-avatar-a {
  background: transparent;
  border: 1.5px solid rgba(239, 233, 217, 0.82);
  color: rgba(239, 233, 217, 0.92);
  border-radius: 50%;
}

.hero-chat-text {
  flex: 1;
  color: rgba(239, 233, 217, 0.92);
  padding-top: 1px;
}

.hero-chat-text strong {
  color: rgba(239, 233, 217, 0.95);
  font-weight: 600;
}

.hero-chat-cite {
  display: block;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-cite);
  letter-spacing: -0.01em;
}

.hero-chat-cite::before {
  content: '↳ ';
  color: var(--accent-cite);
}

.hero-deck {
  font-family: var(--font-sans);
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 400;
  line-height: 1.35;
  color: var(--ink);
  margin: 0 0 12px 0;
  max-width: 720px;
  letter-spacing: -0.01em;
}

.hero-tagline {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  margin: 0 0 48px 0;
  letter-spacing: -0.005em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.text-link {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--paper-edge);
  padding-bottom: 2px;
  transition: color 100ms ease-out, border-color 100ms ease-out;
}
.text-link:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* ========== Narrative (replaces stats) ========== */

.narrative {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.narrative-step {
  padding: 48px 32px;
  border-right: 1px solid var(--paper-edge);
}
.narrative-step:last-child { border-right: 0; }
.narrative-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 16px;
}
.narrative-step h3 {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin: 0 0 8px 0;
  color: var(--ink);
}
.narrative-step p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-muted);
  margin: 0;
}

@media (max-width: 800px) {
  .narrative { grid-template-columns: 1fr; }
  .narrative-step { border-right: 0; border-bottom: 1px solid var(--paper-edge); }
  .narrative-step:last-child { border-bottom: 0; }
}

/* ========== Syllabus (feature list, replaces bento) ========== */

.syllabus { border-top: 1px solid var(--paper-edge); }
.syllabus-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  padding: 40px 0;
  border-bottom: 1px solid var(--paper-edge);
  align-items: start;
}
.syllabus-marker {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--accent);
  padding-top: 6px;
}
.syllabus-content h3 {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin: 0 0 12px 0;
  color: var(--ink);
}
.syllabus-content p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-muted);
  margin: 0 0 16px 0;
  max-width: 640px;
}
.syllabus-content p:last-child { margin-bottom: 0; }

.syllabus-example {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  background: var(--paper-inset);
  border: 1px solid var(--paper-edge);
  border-radius: 4px;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink);
  max-width: 100%;
  overflow-x: auto;
}
.syllabus-example .prompt { color: var(--accent); }
.syllabus-example .meta { color: var(--ink-subtle); font-size: 11px; }

@media (max-width: 700px) {
  .syllabus-row { grid-template-columns: 1fr; gap: 8px; }
  .syllabus-marker { padding-top: 0; }
}

/* ========== Manifest (formats) ========== */

.manifest {
  font-family: var(--font-mono);
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-align: left;
  line-height: 2;
  word-spacing: 6px;
  padding-block: 24px;
  border-top: 1px solid var(--paper-edge);
  border-bottom: 1px solid var(--paper-edge);
}
.manifest-sep {
  color: var(--paper-edge);
  padding: 0 8px;
  font-weight: 400;
}
.manifest-format {
  display: inline-block;
  padding: 4px 0;
  border-bottom: 1px dashed transparent;
  transition: border-color 120ms ease-out, color 120ms ease-out;
}
.manifest-format:hover {
  border-bottom-color: var(--accent);
  color: var(--accent);
  cursor: default;
}

/* ========== Steps (How it works) ========== */

.steps { display: flex; flex-direction: column; gap: 0; }
.step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  padding: 40px 0;
  border-bottom: 1px solid var(--paper-edge);
}
.step:first-child { border-top: 1px solid var(--paper-edge); }
.step-num {
  font-family: var(--font-mono);
  font-size: 56px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: var(--accent);
}
.step-content h3 {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin: 0 0 8px 0;
  color: var(--ink);
}
.step-content p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-muted);
  margin: 0;
  max-width: 640px;
}

@media (max-width: 700px) {
  .step { grid-template-columns: 1fr; gap: 12px; }
  .step-num { font-size: 36px; }
}

/* ========== Use cases ========== */

.usecases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--paper-edge);
  border-bottom: 1px solid var(--paper-edge);
}
.usecase {
  padding: 40px 32px;
  border-right: 1px solid var(--paper-edge);
}
.usecase:last-child { border-right: 0; }
.usecase-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.usecase h3 {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin: 0 0 10px 0;
  color: var(--ink);
}
.usecase p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-muted);
  margin: 0;
}

@media (max-width: 800px) {
  .usecases { grid-template-columns: 1fr; }
  .usecase { border-right: 0; border-bottom: 1px solid var(--paper-edge); }
  .usecase:last-child { border-bottom: 0; }
}

/* ========== CTA section ========== */

.cta-section {
  padding: 96px 0;
  text-align: left;
  border-top: 1px solid var(--paper-edge);
}
.cta-section h2 {
  font-family: var(--font-mono);
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
  margin: 0 0 16px 0;
}
.cta-section p {
  font-size: 18px;
  color: var(--ink-muted);
  margin: 0 0 40px 0;
  max-width: 600px;
}

/* ========== Footer ========== */

.footer {
  border-top: 1px solid var(--paper-edge);
  padding: 64px 0 48px 0;
  background: var(--bg-grid) 0 0 / var(--bg-grid-size) fixed, var(--paper);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand img { height: 22px; width: auto; margin-bottom: 16px; }
.footer-brand p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-muted);
  margin: 0;
  max-width: 320px;
}
.footer-col-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink-subtle);
  margin-bottom: 16px;
  display: block;
}
.footer-col a {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-muted);
  padding: 6px 0;
  letter-spacing: -0.005em;
  text-decoration: none;
}
.footer-col a:hover { color: var(--ink); }

.footer-meta {
  border-top: 1px solid var(--paper-edge);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-subtle);
  letter-spacing: 0.02em;
}

@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-meta { flex-direction: column; gap: 12px; align-items: flex-start; }
}

/* ========== Pricing — plan cards ========== */

.pricing-hero {
  padding-top: 96px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--paper-edge);
}
.pricing-hero .hero-wordmark {
  font-size: clamp(48px, 8vw, 96px);
  margin-bottom: 16px;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-bottom: 1px solid var(--paper-edge);
}
.plan-card {
  display: flex;
  flex-direction: column;
  padding: 40px 28px;
  border-right: 1px solid var(--paper-edge);
  position: relative;
}
.plan-card:last-child { border-right: 0; }
.plan-card.featured { background: var(--paper-inset); }

.plan-recommended {
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  padding: 3px 8px;
  border: 1px solid var(--accent);
  border-radius: 4px;
}
.plan-tier {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-subtle);
  margin-bottom: 8px;
}
.plan-name {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 16px;
}
.plan-description {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-muted);
  margin: 0 0 24px 0;
  min-height: 60px;
}
.plan-price {
  font-family: var(--font-mono);
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 4px;
}
.plan-price-note {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-subtle);
  margin-bottom: 24px;
}
.plan-limits {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
}
.plan-limit-chip {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-muted);
  padding: 3px 8px;
  border: 1px solid var(--paper-edge);
  border-radius: 999px;
  background: var(--paper);
}

.plan-features {
  list-style: none;
  margin: 0 0 32px 0;
  padding: 16px 0 0 0;
  border-top: 1px solid var(--paper-edge);
  flex: 1;
}
.plan-features li {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 10px;
  padding: 6px 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink);
  align-items: start;
}
.plan-features li.unavailable { color: var(--ink-subtle); }
.plan-features .check {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.4;
}
.plan-features .dash {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-subtle);
  line-height: 1.4;
}

.plan-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 120ms ease-out, color 120ms ease-out, border-color 120ms ease-out;
}
.plan-cta-primary {
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
}
.plan-cta-primary:hover { background: #000; color: var(--paper); }

.plan-cta-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--paper-edge);
}
.plan-cta-outline:hover { border-color: var(--ink); color: var(--ink); }

@media (max-width: 1000px) {
  .plan-grid { grid-template-columns: repeat(2, 1fr); }
  .plan-card:nth-child(2n) { border-right: 0; }
  .plan-card:nth-child(-n+2) { border-bottom: 1px solid var(--paper-edge); }
}
@media (max-width: 600px) {
  .plan-grid { grid-template-columns: 1fr; }
  .plan-card { border-right: 0; border-bottom: 1px solid var(--paper-edge); }
  .plan-card:last-child { border-bottom: 0; }
}

/* ========== Comparison table ========== */

.comparison-wrap {
  border: 1px solid var(--paper-edge);
  border-radius: 6px;
  background: var(--paper);
  overflow-x: auto;
}
.comparison {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.comparison thead th {
  text-align: left;
  padding: 16px 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-subtle);
  border-bottom: 1px solid var(--paper-edge);
  background: var(--paper-inset);
  white-space: nowrap;
}
.comparison thead th.col-featured { color: var(--accent); }
.comparison tbody td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--paper-edge);
  vertical-align: middle;
}
.comparison tbody tr:last-child td { border-bottom: 0; }
.comparison tbody td:first-child { color: var(--ink); font-weight: 500; }
.comparison tbody td.col-featured {
  background: var(--accent-wash);
  color: var(--accent);
  font-weight: 500;
}
.comparison .cat-row td {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-subtle);
  background: var(--paper-inset);
  padding: 12px 20px;
}
.comparison .check {
  font-family: var(--font-mono);
  color: var(--ink);
  font-weight: 600;
}
.comparison .check.primary { color: var(--accent); }
.comparison .dash {
  font-family: var(--font-mono);
  color: var(--ink-subtle);
}
.comparison .value {
  font-family: var(--font-mono);
  color: var(--ink);
  font-weight: 500;
}
.comparison .value.accent { color: var(--accent); }

/* ========== FAQ accordion ========== */

.faq { border-top: 1px solid var(--paper-edge); }
.faq-item { border-bottom: 1px solid var(--paper-edge); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.faq-question:hover { color: var(--accent); }
.faq-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  color: var(--ink-subtle);
  transition: transform 200ms ease-out, color 100ms ease-out;
  flex-shrink: 0;
  margin-left: 16px;
}
.faq-chevron svg { width: 12px; height: 12px; }
.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  color: var(--accent);
}
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 200ms ease-out;
}
.faq-item.open .faq-answer { grid-template-rows: 1fr; }
.faq-answer-inner {
  overflow: hidden;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-muted);
}
.faq-answer-inner > div { padding: 0 0 24px 0; }
.faq-answer-inner a { color: var(--accent); text-decoration: underline; }

/* ========== Editorial article (why-docutrain) ========== */

.article-header {
  padding: 96px 0 48px 0;
  border-bottom: 1px solid var(--paper-edge);
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-subtle);
  margin-bottom: 32px;
}
.article-meta-sep {
  width: 24px;
  height: 1px;
  background: var(--paper-edge);
}
.article-title {
  font-family: var(--font-mono);
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
  margin: 0 0 16px 0;
}
.article-deck {
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.4;
  color: var(--ink-muted);
  margin: 0;
  max-width: 720px;
  letter-spacing: -0.005em;
}

.article-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 0;
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
}
.article-body p { margin: 0 0 24px 0; }
.article-body p strong { color: var(--ink); font-weight: 600; }
.article-body p em { font-style: italic; color: var(--ink); }

.article-section {
  margin-bottom: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--paper-edge);
}
.article-section:last-child { border-bottom: 0; padding-bottom: 0; }

.article-section h2 {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 24px 0;
}

.article-section .label {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
}

.principle-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--paper-edge);
}
.principle-list li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--paper-edge);
  align-items: start;
}
.principle-num {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--accent);
}
.principle-list h3 {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--ink);
  margin: 0 0 8px 0;
}
.principle-list p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-muted);
  margin: 0;
}

.pull-quote {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 500;
  font-style: italic;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper-inset);
  border: 1px solid var(--paper-edge);
  border-radius: 6px;
  padding: 24px 28px;
  margin: 32px 0;
}

.bio-block { display: grid; gap: 16px; }
.bio-block a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

.article-cta {
  display: grid;
  gap: 16px;
  padding: 32px 0;
  margin-top: 24px;
  border-top: 1px solid var(--paper-edge);
  border-bottom: 1px solid var(--paper-edge);
}
.article-cta p {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ink-muted);
  margin: 0;
}

/* ========== Blog ========== */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 0;
  border-top: 1px solid var(--paper-edge);
  border-left: 1px solid var(--paper-edge);
}
.blog-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 28px 24px 28px;
  border-right: 1px solid var(--paper-edge);
  border-bottom: 1px solid var(--paper-edge);
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  transition: background-color 200ms ease;
}
.blog-card:hover { background: var(--accent-wash); color: var(--ink); }
.blog-card-order {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.blog-card-title {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--ink);
  margin: 0;
}
.blog-card-deck {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-muted);
  margin: 0;
  flex: 1;
}
.blog-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-subtle);
  padding-top: 12px;
  border-top: 1px solid var(--paper-rule);
}
.blog-card-arrow {
  font-family: var(--font-mono);
  color: var(--accent);
  transition: transform 200ms ease;
}
.blog-card:hover .blog-card-arrow { transform: translateX(4px); }

/* Blog post body — extends .article-body with code, lists, tables, h3/h4 */

.blog-back {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-decoration: none;
}
.blog-back:hover { color: var(--accent-deep); }

.blog-body { max-width: 760px; }
.blog-body h2 {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
  margin: 48px 0 16px 0;
  scroll-margin-top: 100px;
}
.blog-body h3 {
  font-family: var(--font-mono);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--ink);
  margin: 32px 0 12px 0;
  scroll-margin-top: 100px;
}
.blog-body h4 {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 24px 0 8px 0;
}
.blog-body p { margin: 0 0 20px 0; }
.blog-body p strong { font-weight: 600; color: var(--ink); }
.blog-body p em { font-style: italic; }
.blog-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.blog-body a:hover { color: var(--accent-deep); }
.blog-body ul,
.blog-body ol {
  margin: 0 0 24px 0;
  padding-left: 24px;
}
.blog-body ul { list-style: disc; }
.blog-body ol { list-style: decimal; }
.blog-body li {
  margin: 0 0 8px 0;
  line-height: 1.65;
}
.blog-body li::marker { color: var(--ink-subtle); }
.blog-body hr {
  border: 0;
  border-top: 1px solid var(--paper-edge);
  margin: 40px 0;
}
.blog-body blockquote {
  margin: 24px 0;
  padding: 16px 20px;
  border-left: 3px solid var(--accent);
  background: var(--paper-inset);
  border-radius: 0 4px 4px 0;
}
.blog-body blockquote p { margin: 0; font-style: italic; color: var(--ink-muted); }

.blog-body code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--paper-inset);
  padding: 1px 6px;
  border-radius: 3px;
  border: 1px solid var(--paper-edge);
  color: var(--ink);
}
.blog-body pre {
  margin: 0 0 24px 0;
  padding: 18px 20px;
  background: #1a1612;
  color: #f6f4ef;
  border-radius: 6px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.55;
}
.blog-body pre code {
  background: transparent;
  border: 0;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

.blog-table-wrap {
  margin: 0 0 28px 0;
  overflow-x: auto;
  border: 1px solid var(--paper-edge);
  border-radius: 6px;
}
.blog-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}
.blog-table thead {
  background: var(--paper-inset);
  border-bottom: 1px solid var(--paper-edge);
}
.blog-table th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-subtle);
  padding: 12px 14px;
}
.blog-table td {
  padding: 12px 14px;
  border-top: 1px solid var(--paper-rule);
  vertical-align: top;
  line-height: 1.55;
  color: var(--ink);
}
.blog-table tbody tr:first-child td { border-top: 0; }
.blog-table td code { font-size: 12.5px; }

.article-body .blog-content-image,
.blog-body .blog-content-image {
  display: block;
  max-width: min(100%, 420px);
  width: 100%;
  height: auto;
  margin: 0 auto 32px auto;
}

.article-body .blog-content-figure,
.blog-body .blog-content-figure {
  margin: 0 auto 32px auto;
  max-width: min(100%, 420px);
}
.article-body .blog-content-figure .blog-content-image,
.blog-body .blog-content-figure .blog-content-image {
  margin: 0 0 12px 0;
  max-width: 100%;
}
.article-body .blog-content-caption,
.blog-body .blog-content-caption {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
  color: var(--ink-subtle);
}

.blog-prevnext {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 48px 0 24px 0;
  padding-top: 32px;
  border-top: 1px solid var(--paper-edge);
}
.blog-prevnext-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  border: 1px solid var(--paper-edge);
  border-radius: 6px;
  background: transparent;
  text-decoration: none;
  color: var(--ink);
  transition: background-color 200ms ease, border-color 200ms ease;
}
.blog-prevnext-link:hover {
  background: var(--accent-wash);
  border-color: var(--accent);
  color: var(--ink);
}
.blog-prevnext-next { text-align: right; }
.blog-prevnext-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.blog-prevnext-title {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--ink);
}

@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-prevnext { grid-template-columns: 1fr; }
  .blog-prevnext-next { text-align: left; }
  .blog-body pre { font-size: 12px; padding: 14px 16px; }
}

/* ========== Animations ========== */

.fade-up {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 600ms cubic-bezier(0.16, 1, 0.3, 1), transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-up.in { opacity: 1; transform: translateY(0); }
.fade-up.delay-1 { transition-delay: 80ms; }
.fade-up.delay-2 { transition-delay: 160ms; }
.fade-up.delay-3 { transition-delay: 240ms; }

@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; transition: none !important; }
}
