/* ============================================================
   STRATUMCHECK — DESIGN SYSTEM
   Bold + confident SaaS energy. Used by every page.
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Newsreader:ital,opsz,wght@0,18..72,400;0,18..72,500;0,18..72,600;0,18..72,700;1,18..72,400&family=JetBrains+Mono:wght@400;500;600&display=swap");

:root {
  /* Brand palette */
  --blue: #1E5DAA;
  --blue-dark: #134380;
  --blue-deep: #0D2D5C;
  --blue-ink: #050E22;
  --gold: #F4B400;
  --gold-bright: #FFC727;
  --gold-dark: #C99200;

  /* Severity (functional, kept understated in marketing) */
  --sev-shall: #A32D2D;
  --sev-should: #854F0B;
  --sev-may: #546B85;

  /* Surfaces */
  --white: #FFFFFF;
  --bg: #FAFAFA;
  --bg-soft: #F5F5F4;
  --bg-warm: #F7F4EE;
  --line: #E5E5E2;
  --line-strong: #C9C9C5;

  /* Text */
  --text: #0A0A0A;
  --text-2: #404040;
  --text-3: #6B7280;
  --text-mute: #9CA3AF;

  /* Semantic */
  --green: #15803D;
  --green-soft: #DCFCE7;
  --amber-soft: #FEF3C7;

  /* Type */
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Layout */
  --container: 1200px;
  --container-narrow: 880px;
  --container-prose: 720px;

  /* Motion */
  --t-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-slow: 450ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
button { font: inherit; background: none; border: none; cursor: pointer; }
input, textarea, select { font: inherit; }

/* Layout helpers */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 24px; }
.container-prose { max-width: var(--container-prose); margin: 0 auto; padding: 0 24px; }
@media (min-width: 768px) { .container, .container-narrow, .container-prose { padding: 0 32px; } }

/* Typography utilities */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--blue);
}
.eyebrow.gold { color: var(--gold-dark); }
.eyebrow.gold::before { background: var(--gold-dark); }
.eyebrow.light { color: var(--gold); }
.eyebrow.light::before { background: var(--gold); }

.display-1 {
  font-size: clamp(40px, 7vw, 84px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.98;
}
.display-2 {
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.04;
}
.display-3 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.lede {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.6;
  color: var(--text-2);
  font-weight: 400;
}
.serif { font-family: var(--serif); font-weight: 400; }
.mono { font-family: var(--mono); }
.tnum { font-variant-numeric: tabular-nums; }

/* ============================================================
   NAV — sticky, with subtle backdrop blur on scroll
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-base), background var(--t-base);
}
.nav.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(255, 255, 255, 0.92);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
@media (min-width: 768px) { .nav-inner { padding: 16px 32px; } }
.nav-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-mark svg { width: 30px; height: 30px; }
.nav-word {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}
.nav-word .b { color: var(--blue); }
.beta-tag {
  display: inline-block;
  padding: 2px 8px;
  background: var(--gold);
  color: var(--blue-deep);
  font-size: 10px;
  letter-spacing: 0.14em;
  font-weight: 700;
  margin-left: 6px;
  vertical-align: middle;
  border-radius: 3px;
}
.nav-links {
  display: none;
  gap: 4px;
  margin-left: 32px;
  flex: 1;
}
@media (min-width: 880px) { .nav-links { display: flex; } }
.nav-link {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  border-radius: 6px;
  transition: background var(--t-fast), color var(--t-fast);
}
.nav-link:hover { background: var(--bg-soft); color: var(--text); }
.nav-link.is-active { color: var(--text); }
.nav-link.is-active::after {
  content: "";
  display: block;
  height: 2px;
  background: var(--gold);
  margin-top: 4px;
  margin-left: -14px;
  margin-right: -14px;
}
.nav-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  border: 1.5px solid transparent;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--t-fast);
  position: relative;
}
.btn-primary {
  background: var(--blue-ink);
  color: var(--white);
  border-color: var(--blue-ink);
}
.btn-primary:hover {
  background: var(--blue-deep);
  border-color: var(--blue-deep);
  transform: translateY(-1px);
  box-shadow: 0 8px 16px -8px rgba(5, 14, 34, 0.4);
}
.btn-accent {
  background: var(--gold);
  color: var(--blue-ink);
  border-color: var(--gold);
}
.btn-accent:hover {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
  transform: translateY(-1px);
  box-shadow: 0 8px 16px -8px rgba(244, 180, 0, 0.5);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  border-color: var(--text);
  background: var(--bg-soft);
}
.btn-link {
  background: transparent;
  border-color: transparent;
  color: var(--blue);
  padding: 6px 0;
}
.btn-link:hover { color: var(--blue-deep); }
.btn-lg { padding: 14px 24px; font-size: 15px; border-radius: 10px; }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 6px; }
.btn .arrow { transition: transform var(--t-fast); }
.btn:hover .arrow { transform: translateX(2px); }

/* ============================================================
   HERO — bold display with subtle gradient
   ============================================================ */
.hero {
  position: relative;
  padding: 80px 0 80px;
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 80% -20%, rgba(244, 180, 0, 0.07), transparent 60%),
    radial-gradient(800px 400px at 0% 0%, rgba(30, 93, 170, 0.05), transparent 50%);
}
@media (min-width: 880px) {
  .hero { padding: 120px 0 100px; }
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
@media (min-width: 880px) {
  .hero-grid { grid-template-columns: 1.15fr 1fr; gap: 64px; }
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-2);
  margin-bottom: 28px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.hero-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(244, 180, 0, 0.2);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(244, 180, 0, 0.2); }
  50% { box-shadow: 0 0 0 8px rgba(244, 180, 0, 0.05); }
}
.hero h1 { margin-bottom: 24px; }
.hero h1 .accent {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-lede { max-width: 540px; margin-bottom: 20px; }
.hero-reassure {
  max-width: 540px;
  padding: 16px 20px;
  background: var(--bg-warm);
  border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-2);
  margin-bottom: 32px;
}
.hero-reassure strong { color: var(--text); font-weight: 700; }
.hero-ctas { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.hero-fineprint { font-size: 13px; color: var(--text-3); }

/* Product preview card — the demo of the app inside hero */
.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 24px 48px -16px rgba(5, 14, 34, 0.12),
    0 8px 16px -8px rgba(5, 14, 34, 0.08);
  position: relative;
  transform: rotate(-0.5deg);
  transition: transform var(--t-slow);
}
.product-card:hover { transform: rotate(0deg) translateY(-4px); }
.product-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}
.product-chrome .dot { width: 9px; height: 9px; border-radius: 50%; }
.product-chrome .url {
  margin-left: 12px;
  font-size: 11px;
  color: var(--text-3);
  font-family: var(--mono);
}
.product-head {
  padding: 14px 18px;
  background: var(--blue-ink);
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.16em;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
}
.product-head .live-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  background: rgba(244, 180, 0, 0.15);
  border-radius: 100px;
  font-size: 9px;
}
.product-head .live-tag::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse-dot 1.5s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.product-body { padding: 16px 18px; }
.product-stat {
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 12px;
}
.product-stat strong {
  color: var(--text);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.finding-row {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  align-items: flex-start;
}
.finding-row:last-child { padding-bottom: 0; }
.sev {
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  border: 1px solid;
  border-radius: 3px;
  flex-shrink: 0;
  margin-top: 2px;
}
.sev.shall { color: var(--sev-shall); border-color: var(--sev-shall); background: rgba(163, 45, 45, 0.05); }
.sev.should { color: var(--sev-should); border-color: var(--sev-should); background: rgba(133, 79, 11, 0.05); }
.sev.may { color: var(--sev-may); border-color: var(--sev-may); background: rgba(84, 107, 133, 0.05); }
.finding-row .body { font-size: 13px; color: var(--text); flex: 1; line-height: 1.45; }
.finding-row .ref {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-3);
  margin-top: 3px;
  letter-spacing: 0.02em;
}
.product-foot {
  padding: 8px 18px;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: var(--text-3);
  letter-spacing: 0.08em;
  font-family: var(--mono);
}

/* ============================================================
   SECTION SCAFFOLDING
   ============================================================ */
.section { padding: 80px 0; }
@media (min-width: 880px) { .section { padding: 112px 0; } }
.section.bg-soft { background: var(--bg-soft); }
.section.bg-warm { background: var(--bg-warm); }
.section.bg-ink {
  background: var(--blue-ink);
  color: var(--white);
}
.section.bg-ink .section-head h2,
.section.bg-ink .display-2,
.section.bg-ink .display-3 { color: var(--white); }
.section.bg-ink .lede { color: rgba(255, 255, 255, 0.7); }

.section-head { text-align: center; margin-bottom: 56px; max-width: 720px; margin-left: auto; margin-right: auto; }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head h2 { margin-bottom: 16px; }

/* ============================================================
   STANDARDS GRID — 4-up cards
   ============================================================ */
.standards-strip {
  padding: 64px 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.standards-label {
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.2em;
  font-weight: 600;
  color: var(--text-3);
  margin-bottom: 32px;
  text-transform: uppercase;
}
.standards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 1080px;
  margin: 0 auto;
}
@media (min-width: 600px) { .standards-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 880px) { .standards-grid { grid-template-columns: repeat(4, 1fr); } }
.std-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  position: relative;
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.std-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.08);
  border-color: var(--line-strong);
}
.std-card .status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  font-size: 10px;
  letter-spacing: 0.1em;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 100px;
  margin-bottom: 16px;
}
.std-card.is-live .status { background: var(--green-soft); color: var(--green); }
.std-card.is-live .status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--green); }
.std-card.is-soon .status { background: var(--amber-soft); color: var(--gold-dark); }
.std-card.is-far .status { background: var(--bg-soft); color: var(--text-3); border: 1px solid var(--line); }
.std-card h4 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--text);
  margin-bottom: 8px;
}
.std-card p { font-size: 13px; color: var(--text-2); line-height: 1.55; }

/* ============================================================
   FEATURE / VALUE GRIDS
   ============================================================ */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 768px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .feature-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .feature-grid.cols-4 { grid-template-columns: repeat(4, 1fr); } }

.feature-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 32px;
  transition: transform var(--t-base), border-color var(--t-base), box-shadow var(--t-base);
}
.feature-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.06);
}
.feature-card .num {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--blue);
  margin-bottom: 16px;
}
.feature-card .icon {
  width: 44px;
  height: 44px;
  background: var(--bg-warm);
  color: var(--blue-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border-radius: 10px;
}
.feature-card .icon svg { width: 22px; height: 22px; }
.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.005em;
  margin-bottom: 8px;
  color: var(--text);
}
.feature-card p { font-size: 14px; color: var(--text-2); line-height: 1.6; }

/* Bento — asymmetric feature grid */
.bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 880px) {
  .bento {
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: minmax(180px, auto);
  }
  .bento .b-tall { grid-column: span 2; grid-row: span 2; }
  .bento .b-wide { grid-column: span 4; }
  .bento .b-half { grid-column: span 3; }
  .bento .b-third { grid-column: span 2; }
}

/* ============================================================
   STATS
   ============================================================ */
.stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  text-align: left;
}
@media (min-width: 768px) { .stat-row { grid-template-columns: repeat(4, 1fr); } }
.stat .stat-num {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  margin-bottom: 8px;
}
.section.bg-ink .stat .stat-num { color: var(--gold); }
.stat .stat-label {
  font-size: 13px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.section.bg-ink .stat .stat-label { color: rgba(255, 255, 255, 0.55); }

/* ============================================================
   QUOTE / MANIFESTO
   ============================================================ */
.manifesto {
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
}
.manifesto blockquote {
  font-family: var(--serif);
  font-size: clamp(24px, 3.5vw, 40px);
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--text);
  font-weight: 400;
  font-style: italic;
}
.section.bg-ink .manifesto blockquote { color: var(--white); }
.manifesto blockquote::before { content: "\201C"; color: var(--gold); }
.manifesto blockquote::after { content: "\201D"; color: var(--gold); }
.manifesto cite {
  display: block;
  margin-top: 24px;
  font-style: normal;
  font-size: 13px;
  color: var(--text-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}
.section.bg-ink .manifesto cite { color: rgba(255, 255, 255, 0.55); }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta {
  background:
    radial-gradient(800px 400px at 50% 0%, rgba(244, 180, 0, 0.18), transparent 60%),
    var(--blue-ink);
  color: var(--white);
  padding: 80px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 4px solid var(--gold);
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}
.cta > * { position: relative; }
.cta h2 {
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
  color: var(--white);
  line-height: 1.1;
}
.cta p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 540px;
  margin: 0 auto 28px;
  line-height: 1.55;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--blue-ink);
  color: rgba(255, 255, 255, 0.6);
  padding: 64px 0 32px;
}
.site-footer .container {
  max-width: var(--container);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 48px;
}
@media (min-width: 600px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 880px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand-name { color: var(--white); font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
.footer-tagline { font-size: 13px; line-height: 1.6; max-width: 280px; }
.footer-col h4 {
  font-size: 11px;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 16px;
  text-transform: uppercase;
}
.footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  padding: 5px 0;
  text-decoration: none;
  transition: color var(--t-fast);
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
  flex-wrap: wrap;
  gap: 12px;
}

/* ============================================================
   DOCUMENT PAGES (about, security, privacy, terms, etc.)
   ============================================================ */
.doc-hero {
  padding: 80px 0 40px;
  background:
    radial-gradient(800px 300px at 80% 0%, rgba(244, 180, 0, 0.06), transparent 60%);
}
@media (min-width: 880px) { .doc-hero { padding: 120px 0 60px; } }
.doc-hero .container-prose .eyebrow { margin-bottom: 20px; }
.doc-hero h1 { margin-bottom: 16px; }
.doc-hero .lede { max-width: 640px; }
.doc-meta {
  font-size: 12px;
  font-family: var(--mono);
  color: var(--text-3);
  letter-spacing: 0.04em;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.doc-body { padding: 32px 0 96px; }
.doc-body h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-top: 56px;
  margin-bottom: 16px;
  scroll-margin-top: 80px;
}
.doc-body h2:first-of-type { margin-top: 24px; }
.doc-body h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-top: 32px;
  margin-bottom: 10px;
}
.doc-body p,
.doc-body li {
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 16px;
}
.doc-body ul,
.doc-body ol { padding-left: 24px; margin-bottom: 16px; }
.doc-body strong { color: var(--text); font-weight: 700; }
.doc-body a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.doc-body a:hover { color: var(--blue-deep); }
.doc-body hr { border: 0; border-top: 1px solid var(--line); margin: 48px 0; }
.doc-callout {
  padding: 20px 24px;
  background: var(--bg-warm);
  border-left: 4px solid var(--gold);
  border-radius: 0 8px 8px 0;
  margin: 24px 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-2);
}
.doc-callout strong { color: var(--text); }
.doc-callout.info {
  background: #EFF6FF;
  border-left-color: var(--blue);
}

/* ============================================================
   SCROLL REVEAL — fail-safe
   .reveal elements are always visible by default. JS adds an
   .is-observed class right before observing them, which kicks
   in the hidden state, then .is-visible animates them back.
   This means: if JS fails OR elements never enter view OR
   playwright takes a full-page screenshot — everything is still
   visible, just not animated.
   ============================================================ */
.reveal { opacity: 1; transform: none; }

.js-reveal-ready .reveal.is-observed {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms cubic-bezier(0.4, 0, 0.2, 1), transform 600ms cubic-bezier(0.4, 0, 0.2, 1);
}
.js-reveal-ready .reveal.is-observed.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.js-reveal-ready .reveal.is-observed.delay-1 { transition-delay: 80ms; }
.js-reveal-ready .reveal.is-observed.delay-2 { transition-delay: 160ms; }
.js-reveal-ready .reveal.is-observed.delay-3 { transition-delay: 240ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js-reveal-ready .reveal.is-observed { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   PRICING
   ============================================================ */
.tier-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 880px) { .tier-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.tier {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform var(--t-base), border-color var(--t-base), box-shadow var(--t-base);
}
.tier:hover {
  border-color: var(--line-strong);
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.08);
}
.tier.is-featured {
  border: 2px solid var(--gold);
  background: linear-gradient(180deg, var(--white) 0%, rgba(244, 180, 0, 0.03) 100%);
  box-shadow: 0 24px 48px -16px rgba(244, 180, 0, 0.15);
}
.tier.is-coming {
  background: var(--bg-soft);
  border-style: dashed;
}
.tier-ribbon {
  position: absolute;
  top: -12px;
  left: 32px;
  background: var(--gold);
  color: var(--blue-ink);
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 4px;
}
.tier-ribbon.dark { background: var(--blue-ink); color: var(--gold); }
.tier-name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.tier-tagline {
  font-size: 14px;
  color: var(--text-3);
  margin-bottom: 28px;
  min-height: 56px;
  line-height: 1.5;
}
.tier-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
  min-height: 64px;
}
.tier-price .amount {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
}
.tier-price .unit { font-size: 14px; font-weight: 600; color: var(--text-3); }
.tier-price-note { font-size: 13px; color: var(--text-3); margin-bottom: 24px; min-height: 20px; }
.tier-cta { margin-bottom: 24px; }
.tier-cta .btn { width: 100%; }
.tier-scope {
  padding: 10px 14px;
  background: var(--bg-soft);
  border-radius: 6px;
  font-size: 11px;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--text-2);
  margin-bottom: 20px;
  text-transform: uppercase;
  border-left: 3px solid var(--blue);
}
.tier.is-coming .tier-scope { border-left-color: var(--gold-dark); }
.tier-features {
  list-style: none;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.tier-features li {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.5;
  align-items: flex-start;
}
.tier-features li::before {
  content: "";
  width: 16px;
  height: 16px;
  background: var(--blue);
  flex-shrink: 0;
  margin-top: 3px;
  border-radius: 4px;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'%3E%3Cpath d='M6.5 12L2 7.5l1.4-1.4L6.5 9.2 12.6 3.1 14 4.5z'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'%3E%3Cpath d='M6.5 12L2 7.5l1.4-1.4L6.5 9.2 12.6 3.1 14 4.5z'/%3E%3C/svg%3E");
}
.tier.is-featured .tier-features li::before { background: var(--gold-dark); }
.tier.is-coming .tier-features li::before { background: var(--text-3); }
.tier-features li strong { color: var(--text); font-weight: 700; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-q {
  width: 100%;
  text-align: left;
  padding: 24px 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: color var(--t-fast);
  list-style: none;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::marker { display: none; content: ""; }
.faq-q:hover { color: var(--blue); }
.faq-q::after {
  content: "+";
  font-size: 24px;
  font-weight: 400;
  color: var(--text-3);
  transition: transform var(--t-fast);
  flex-shrink: 0;
}
.faq-item[open] .faq-q::after { transform: rotate(45deg); }
.faq-item[open] .faq-q { color: var(--blue); }
.faq-a {
  padding: 0 0 24px;
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.7;
}
.faq-a strong { color: var(--text); font-weight: 700; }

/* ============================================================
   EXAMPLE GRID (for examples page)
   ============================================================ */
.example-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 768px) { .example-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .example-grid { grid-template-columns: repeat(3, 1fr); } }
.example-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px 24px 20px;
  transition: transform var(--t-base), border-color var(--t-base), box-shadow var(--t-base);
}
.example-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: 0 16px 32px -12px rgba(0, 0, 0, 0.1);
}
.example-card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 16px; }
.example-card-top .std-badge {
  font-size: 10px; letter-spacing: 0.12em; font-weight: 700;
  color: var(--blue); background: #EFF6FF; padding: 4px 10px; border-radius: 4px;
  text-transform: uppercase;
}
.example-card-top .std-badge.cadd { color: #5F5E5A; background: #F1EFE8; }
.example-card-top .std-badge.hdm { color: var(--gold-dark); background: #FEF3C7; }
.example-card-top .sheet-type { font-size: 11px; letter-spacing: 0.1em; font-weight: 600; color: var(--text-3); text-transform: uppercase; }
.example-card h3 { font-size: 17px; font-weight: 700; color: var(--text); line-height: 1.3; margin-bottom: 10px; }
.example-card p { font-size: 14px; color: var(--text-2); line-height: 1.6; margin-bottom: 16px; }
.example-card-foot {
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.example-card-ref { font-size: 12px; font-family: var(--mono); color: var(--text-3); }
.preview-card-coming {
  background: var(--bg-soft);
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  padding: 24px;
  position: relative;
}
.preview-card-coming::before {
  content: "Coming in Design Review";
  position: absolute;
  top: -10px;
  left: 20px;
  background: var(--gold);
  color: var(--blue-ink);
  padding: 3px 10px;
  font-size: 10px;
  letter-spacing: 0.12em;
  font-weight: 700;
  border-radius: 4px;
  text-transform: uppercase;
}

/* ============================================================
   FILTERS
   ============================================================ */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 24px; }
.chip {
  padding: 7px 14px;
  font-size: 12px;
  letter-spacing: 0.08em;
  font-weight: 700;
  background: var(--white);
  color: var(--text-2);
  border: 1px solid var(--line);
  border-radius: 100px;
  cursor: pointer;
  text-transform: uppercase;
  transition: all var(--t-fast);
}
.chip:hover { border-color: var(--line-strong); color: var(--text); }
.chip.is-active { background: var(--blue-ink); border-color: var(--blue-ink); color: var(--white); }
.chip-divider { width: 1px; height: 20px; background: var(--line); margin: 0 6px; }
.chip-label { font-size: 11px; letter-spacing: 0.14em; font-weight: 600; color: var(--text-3); text-transform: uppercase; margin-right: 4px; }
