/* website/css/style.css */
/* Heat Signature — Dark site theme */

@import url("/css/brand-tokens.css");

/* ─── Custom Properties — Dark Theme (default) ─────────── */
:root {
  /* Base */
  --bg-deep: #08080c;
  --bg-surface: #12121a;
  --bg-elevated: #1a1a24;
  --border: #2a2a36;
  --shell-rail: rgba(160, 160, 190, 0.12);
  --shell-fill: rgba(18, 18, 26, 0.18);
  --shell-shadow: 0 6px 22px rgba(0, 0, 0, 0.24);

  /* Text */
  --text-primary: #f0f0f4;
  --text-secondary: #9898a8;
  --text-muted: #5c5c6c;

  /* Thermal accent — shared single source from shared/styles/brand-tokens.css */
  --accent: var(--hs-accent);
  --accent-hover: var(--hs-accent-hover);
  --accent-glow: var(--hs-accent-glow);
  --heat: var(--hs-heat);
  --heat-rgb: var(--hs-heat-rgb);
  --heat-deep: var(--hs-heat-deep);
  --heat-deep-rgb: var(--hs-heat-deep-rgb);
  --heat-hover: var(--hs-heat-hover);
  --blue-flame: var(--hs-blue-flame);
  --blue-flame-rgb: var(--hs-blue-flame-rgb);
  --blue-flame-deep: var(--hs-blue-flame-deep);
  --blue-flame-deep-rgb: var(--hs-blue-flame-deep-rgb);

  /* Subtle thermal gradient (violet → blue → burnt orange) */
  --gradient-thermal: linear-gradient(135deg, #3b1d5c 0%, #1e2a4a 40%, var(--hs-accent) 100%);
  --gradient-accent: linear-gradient(135deg, var(--hs-accent) 0%, #ef4444 100%);
}

/* ─── Reset & Base ─────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-deep);
}

.site-main {
  max-width: 940px;
  margin: 0 auto;
  padding-bottom: 3rem;
  position: relative;
}

.site-main::before {
  content: '';
  position: absolute;
  inset: 0 0 0 0;
  margin: 0 auto;
  width: min(900px, calc(100% - 2rem));
  border-left: 1px solid var(--shell-rail);
  border-right: 1px solid var(--shell-rail);
  background: linear-gradient(180deg, var(--shell-fill) 0%, transparent 12%, transparent 88%, var(--shell-fill) 100%);
  border-radius: 14px;
  box-shadow: var(--shell-shadow);
  pointer-events: none;
  z-index: 0;
}

.site-main > * {
  position: relative;
  z-index: 1;
}

/* ─── Typography ───────────────────────────────────────── */
h1, h2, h3, h4 {
  line-height: 1.3;
  margin-bottom: 0.5em;
  font-weight: 600;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.4rem; }

p {
  margin-bottom: 1em;
  color: var(--text-secondary);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent-hover);
}

/* ─── Layout ───────────────────────────────────────────── */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.container-wide {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem;
}

/* ─── Header ───────────────────────────────────────────── */
header {
  background: rgba(8, 8, 12, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Homepage: reveal the static header logo only after the hero title has passed */
header.header-home {
  background: rgba(8, 8, 12, 0.84);
  border-bottom: 1px solid var(--border);
  position: sticky;
  width: auto;
}

header.header-home .logo {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-0.25rem);
}

header.header-home.header-title-visible .logo {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

header .inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
  transition: color 0.2s, opacity 0.18s ease, transform 0.18s ease;
}

.logo-text {
  color: inherit;
}

.logo:hover {
  color: var(--accent);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.site-nav a {
  color: rgba(240, 240, 244, 0.68);
  font-size: 0.92rem;
  font-weight: 550;
  line-height: 1;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.site-nav a:hover {
  color: var(--text-primary);
}

.site-nav .nav-partner,
.site-nav .nav-install {
  padding: 0.48rem 0.72rem;
  border-radius: 8px;
  font-weight: 700;
}

.site-nav .nav-partner {
  border: 1px solid rgba(var(--heat-rgb), 0.34);
  color: rgba(240, 240, 244, 0.86);
  background: rgba(var(--heat-rgb), 0.08);
}

.site-nav .nav-partner:hover {
  border-color: rgba(var(--heat-rgb), 0.52);
  background: rgba(var(--heat-rgb), 0.13);
}

.site-nav .nav-install {
  border: 1px solid rgba(var(--blue-flame-rgb), 0.44);
  color: var(--text-primary);
  background: rgba(var(--blue-flame-rgb), 0.16);
}

.site-nav .nav-install:hover {
  border-color: rgba(var(--blue-flame-rgb), 0.66);
  background: rgba(var(--blue-flame-rgb), 0.24);
}

/* ─── Verify Page ─────────────────────────────────────── */
.verify-shell {
  padding: 2.5rem 0 1rem;
}

.verify-intro {
  max-width: 720px;
  margin-bottom: 1.5rem;
}

.verify-eyebrow {
  font: 600 0.75rem/1.2 "Segoe UI", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.7rem;
}

.verify-title {
  font-size: clamp(2rem, 5vw, 2.6rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.verify-lead {
  max-width: 60ch;
  font-size: 1.02rem;
}

.verify-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.8fr);
  gap: 1.25rem;
  align-items: start;
}

.verify-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.16);
}

.verify-form label,
.verify-side-title {
  display: block;
  margin: 0 0 0.45rem;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}

.verify-form input,
.verify-form textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  font: inherit;
  padding: 0.85rem 0.95rem;
  margin-bottom: 1rem;
}

.verify-form input:focus,
.verify-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
}

.verify-form textarea {
  min-height: 260px;
  resize: vertical;
}

.verify-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.verify-submit {
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  padding: 0.8rem 1.2rem;
  font: 600 0.95rem/1 "Segoe UI", sans-serif;
  cursor: pointer;
  transition: transform 120ms ease, background 120ms ease, box-shadow 120ms ease;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.verify-submit:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.verify-submit:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

.verify-status {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.verify-side-copy,
.verify-side-copy li {
  color: var(--text-secondary);
}

.verify-side-copy ul {
  margin: 0.6rem 0 0 1.1rem;
}

.verify-result {
  margin-top: 1.35rem;
}

.verify-result.is-hidden {
  display: none;
}

.verify-result-card {
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 1.25rem;
  background: var(--bg-surface);
}

.verify-result-card.match_exact {
  border-color: rgba(72, 156, 96, 0.45);
}

.verify-result-card.match_contained {
  border-color: rgba(50, 129, 194, 0.45);
}

.verify-result-card.match_fuzzy_high {
  border-color: rgba(160, 92, 196, 0.45);
}

.verify-result-card.match_fuzzy_partial {
  border-color: rgba(214, 122, 54, 0.45);
}

.verify-result-card.mismatch {
  border-color: rgba(191, 74, 74, 0.45);
}

.verify-result-top {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.verify-result-icon {
  font-size: 1.8rem;
  line-height: 1;
  width: 2rem;
  flex: 0 0 auto;
}

.verify-result-label {
  font-size: 1.45rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.verify-result-copy {
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}

.verify-result-confidence {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.verify-signals,
.verify-citations {
  margin-top: 1rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.verify-section-title {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
}

.verify-signal-row {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  gap: 0.8rem;
  align-items: center;
  margin-bottom: 0.7rem;
}

.verify-signal-name,
.verify-signal-value,
.verify-citation-meta {
  font-size: 0.9rem;
}

.verify-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  overflow: hidden;
}

.verify-bar-fill {
  height: 100%;
  border-radius: inherit;
}

.verify-citation-row {
  padding: 0.75rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.verify-citation-row:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.verify-citation-excerpt {
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

.verify-citation-explanation {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.verify-empty {
  color: var(--text-secondary);
}

@media (max-width: 860px) {
  .verify-layout {
    grid-template-columns: 1fr;
  }

  .verify-signal-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
}

/* ─── Hero ─────────────────────────────────────────────── */
.hero,
.home-hero {
  background: var(--bg-deep);
  position: relative;
  color: var(--text-primary);
  padding: 6.75rem 2rem 6rem;
  text-align: center;
  overflow: hidden;
}

/* Subtle radial glow — thermal "hotspot" */
.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(245, 158, 11, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero h1,
.home-hero h1 {
  font-size: 3.2rem;
  margin-bottom: 0;
  font-weight: 700;
  letter-spacing: -0.03em;
  position: relative;
}

.hero .tagline,
.home-hero .tagline {
  font-family: 'Synonym', sans-serif;
  font-size: 1.18rem;
  font-weight: 300;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  margin-top: 0.7rem;
  margin-bottom: 2.5rem;
  position: relative;
}

.hero .cta {
  display: inline-block;
  background: var(--accent);
  color: var(--bg-deep);
  padding: 0.9rem 2.2rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1.05rem;
  transition: all 0.2s;
  position: relative;
}

.hero .cta:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.25);
}

/* Homepage composition (replaces template inline styles) */
.home-hero {
  display: block;
  text-align: left;
  width: 100vw;
  min-height: 640px;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: clamp(2.4rem, 4.6vw, 3.8rem) max(2rem, calc((100vw - 1180px) / 2)) clamp(2.8rem, 5vw, 4.2rem);
  isolation: isolate;
  background:
    radial-gradient(circle at 72% 30%, rgba(var(--blue-flame-rgb), 0.22), transparent 27%),
    radial-gradient(circle at 38% 76%, rgba(var(--blue-flame-deep-rgb), 0.15), transparent 34%),
    linear-gradient(90deg, #05060a 0%, #0b111c 15%, #111b2a 48%, #0a0d14 78%, #05060a 100%);
}

.home-hero::before {
  inset: 0;
  width: auto;
  height: auto;
  transform: none;
  top: 0;
  left: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 92px 92px;
  mask-image: radial-gradient(circle at center, black 0%, transparent 72%);
  opacity: 0.55;
  z-index: 0;
}

.home-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 120px;
  background:
    linear-gradient(180deg, rgba(7, 9, 14, 0) 0%, rgba(7, 9, 14, 0.5) 52%, rgba(7, 9, 14, 0.92) 100%);
  opacity: 1;
  z-index: 0;
  pointer-events: none;
}

.home-flame-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.home-flame {
  position: absolute;
  border-radius: 999px;
  filter: blur(22px);
  opacity: 0.58;
  transform: rotate(-16deg);
}

.home-flame-orange {
  display: none;
}

.home-flame-blue {
  width: min(52vw, 620px);
  height: 150px;
  right: -13vw;
  top: 28%;
  background: linear-gradient(90deg, rgba(var(--blue-flame-deep-rgb), 0.04), rgba(var(--blue-flame-rgb), 0.62), transparent);
  transform: rotate(16deg);
}

.home-hero-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.74fr);
  gap: clamp(2.25rem, 7vw, 6rem);
  align-items: start;
  position: relative;
  z-index: 1;
}

.home-hero-left {
  min-width: 0;
  max-width: 660px;
  display: grid;
  gap: 1rem;
  justify-items: start;
}

.home-hero-right {
  min-width: 0;
  display: flex;
  justify-content: center;
  overflow: visible;
}

.home-lockup {
  margin-bottom: 0;
  display: flex;
  align-items: flex-start;
}

.home-wordmark {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.72rem;
  align-items: flex-start;
}

.home-wordmark-title {
  margin: 0;
  line-height: 1;
}

.home-wordmark-title .hs-title-lockup {
  --hs-title-size: clamp(2.35rem, 4.45vw, 3.95rem);
  letter-spacing: -0.035em;
  margin-left: -0.08em;
}

.home-wordmark-title .hs-title-lockup .hs-title-heat {
  color: var(--heat);
  text-shadow: 0 0 34px rgba(var(--heat-rgb), 0.35);
}

.home-wordmark-title .hs-title-lockup .hs-title-sig {
  color: #f7f7fb;
  text-shadow: none;
}

.home-elevator-pitch {
  max-width: none;
  margin: 0;
  color: rgba(240, 240, 244, 0.74);
  font-size: clamp(1.02rem, 1.55vw, 1.15rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.7;
  max-width: 42rem;
  text-align: left;
}

.home-hero .tagline {
  display: block;
  width: auto;
  color: rgba(240, 240, 244, 0.82);
  font-family: 'Synonym', sans-serif;
  font-size: clamp(1.25rem, 2.25vw, 1.65rem);
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: 0.045em;
  text-transform: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.quickstart-panel {
  width: min(100%, 460px);
  display: grid;
  gap: 1rem;
}

.quickstart-label {
  display: block;
  margin: 0;
  padding-left: 3.2rem;
  border: 0;
  color: rgba(240, 240, 244, 0.44);
  background: transparent;
  font: 800 0.76rem/1 "Segoe UI", sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.home-quickstart {
  position: relative;
  display: grid;
  gap: 0.85rem;
  width: 100%;
  margin: 0;
  padding: 0rem 0 1rem 3.2rem;
  list-style: none;
}

.home-quickstart::before {
  content: "";
  position: absolute;
  top: 0.5rem;
  bottom: 0.5rem;
  left: 1.45rem;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(var(--blue-flame-rgb), 0.42), rgba(var(--heat-rgb), 0.5), transparent);
}

.home-quickstart::after {
  content: "";
  position: absolute;
  inset: -3rem -5rem -3rem -2rem;
  z-index: -1;
  background:
    radial-gradient(circle at 52% 44%, rgba(var(--blue-flame-rgb), 0.18), transparent 44%),
    radial-gradient(circle at 75% 56%, rgba(var(--heat-rgb), 0.14), transparent 38%);
  filter: blur(18px);
}

.home-hero-jumps-panel {
  display: grid;
  gap: 1rem;
  width: min(100%, 25.5rem);
  margin-top: 2.65rem;
}

.home-hero-jumps-label {
  display: block;
  margin: 0 0 0 1rem;
  padding: 0;
  border: 0;
  color: rgba(240, 240, 244, 0.44);
  background: transparent;
  font: 800 0.76rem/1 "Segoe UI", sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.home-hero-jumps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  width: 100%;
  margin: 0;
  padding: 0;
}

.home-hero-jump {
  margin-left: 1em;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 1rem;
  padding: 0.95rem;
  border: 1px solid rgba(255,255,255, 0.48);
  border-radius: 1rem;
  color: rgba(255,255,255,0.58);
  text-decoration: none;
  background: rgba(13, 16, 23, 0.26);
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.04),
    inset -1px -1px 0 rgba(0, 0, 0, 0.24);
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease, color 150ms ease, background 150ms ease;
}

.home-hero-jump:hover {
  transform: translateY(-1px);
  color: rgba(255, 208, 169, 0.98);
  border-color: rgba(var(--heat-rgb), 0.72);
  background: rgba(13, 16, 23, 0.34);
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.05),
    inset -1px -1px 0 rgba(0, 0, 0, 0.32),
    0 0 18px rgba(var(--heat-rgb), 0.06);
}

.home-hero-jump-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  text-align: center;
}

.home-hero-jump-label {
  font: 650 1.02rem/1.05 "Segoe UI", sans-serif;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.home-quickstart li {
  --step-accent: rgba(var(--heat-rgb), 0.72);
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
  min-height: 82px;
  padding: 1rem 1.1rem 1rem 1rem;
  border: 1px solid rgba(var(--blue-flame-rgb), 0.14);
  border-radius: 16px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
  background-size: 36px 100%, auto;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.025),
    0 18px 34px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(8px);
}

.home-quickstart .quick-action {
  --step-accent: rgba(var(--blue-flame-rgb), 0.95);
  display: block;
  padding: 0;
  border-color: rgba(var(--blue-flame-rgb), 0.34);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(135deg, rgba(var(--blue-flame-rgb), 0.92), rgba(var(--blue-flame-deep-rgb), 0.94));
  background-size: 36px 100%, auto;
  box-shadow:
    0 20px 42px rgba(var(--blue-flame-deep-rgb), 0.26),
    0 0 0 1px rgba(255, 255, 255, 0.18) inset,
    0 0 34px rgba(var(--blue-flame-rgb), 0.13);
}

.home-quickstart .quick-action:hover {
  border-color: rgba(var(--blue-flame-rgb), 0.62);
  box-shadow:
    0 24px 52px rgba(var(--blue-flame-deep-rgb), 0.34),
    0 0 0 1px rgba(255, 255, 255, 0.22) inset,
    0 0 42px rgba(var(--blue-flame-rgb), 0.18);
  transform: translateY(-1px);
}

.home-quickstart li::before {
  content: "";
  position: absolute;
  left: -2.2rem;
  top: 50%;
  width: 2px;
  height: 34px;
  border-radius: 999px;
  background: var(--step-accent);
  box-shadow: 0 0 18px color-mix(in srgb, var(--step-accent), transparent 45%);
  transform: translateY(-50%);
}

.quick-link {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  min-height: 82px;
  padding: 1rem 1.1rem 1rem 1rem;
  color: inherit;
  text-decoration: none;
}

.quick-index {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid rgba(var(--blue-flame-rgb), 0.52);
  border-radius: 999px;
  color: var(--heat);
  background: rgba(var(--heat-rgb), 0.12);
  box-shadow:
    0 0 0 1px rgba(var(--heat-rgb), 0.08) inset,
    0 0 18px rgba(var(--heat-rgb), 0.12);
  font: 800 0.78rem/1 "Segoe UI", sans-serif;
  letter-spacing: 0.08em;
}

.quick-copy {
  color: #f0f0f4;
  font: 600 clamp(1.05rem, 1.75vw, 1.35rem)/1.15 "Segoe UI", sans-serif;
  letter-spacing: -0.02em;
}

.quick-action .quick-index {
  border-color: rgba(var(--blue-flame-rgb), 0.7);
  color: var(--heat);
  background: rgba(8, 8, 12, 0.42);
}

.quick-action .quick-copy {
  color: #fff7ed;
}

.quick-arrow {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  color: #fff7ed;
  background: rgba(8, 8, 12, 0.22);
  font-size: 1.3rem;
  line-height: 1;
}

.home-howit-title {
  text-align: center;
  margin-bottom: 1.6rem;
}

.home-latest {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.home-latest-container {
  border-bottom: 1px solid rgba(var(--heat-rgb), 0.16);
}

.home-latest-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  margin-bottom: 1.25rem;
}

.home-latest-heading h2 {
  margin-bottom: 0;
  text-align: left;
}

.home-latest-heading a {
  font-size: 0.95rem;
  font-weight: 700;
}

.home-latest-list {
  display: grid;
  gap: 1rem;
}

.home-latest-item {
  border: 1px solid rgba(240, 240, 244, 0.1);
  border-radius: 8px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.025);
}

.home-latest-kicker {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.home-latest-item h3 {
  font-size: 1.18rem;
  margin-bottom: 0.4rem;
}

.home-latest-item h3 a {
  color: var(--text-primary);
}

.home-latest-item h3 a:hover {
  color: var(--accent);
}

.home-latest-item p:last-child {
  margin-bottom: 0;
}

/* ─── Sections ─────────────────────────────────────────── */
section {
  padding: 4rem 2rem;
}

section.alt {
  background: var(--bg-surface);
}

section h2 {
  text-align: center;
  margin-bottom: 2rem;
}

/* ─── Cards ────────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.8rem;
  transition: all 0.25s;
}

.card:hover {
  border-color: rgba(245, 158, 11, 0.3);
  box-shadow: 0 0 24px var(--accent-glow);
}

.card h3 {
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

/* ─── Footer ───────────────────────────────────────────── */
footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  padding: 2.5rem 2rem;
  font-size: 0.9rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.55rem 2rem;
  align-items: center;
}

.footer-brand {
  color: var(--text-primary);
  font-weight: 600;
}

.footer-nav {
  display: flex;
  justify-content: flex-end;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--text-muted);
  margin: 0;
  transition: color 0.2s;
}

footer a:hover,
.footer-brand:hover {
  color: var(--text-primary);
}

.footer-meta {
  grid-column: 1 / -1;
  margin-top: 0.25rem;
  margin-bottom: 0;
}

/* ─── Legal Pages ──────────────────────────────────────── */
.legal-content {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 2.5rem;
  border-radius: 10px;
  margin-top: 2rem;
}

.legal-content h2 {
  text-align: left;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.legal-content h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.legal-content ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.legal-content li {
  margin-bottom: 0.5rem;
}

.legal-content a {
  overflow-wrap: anywhere;
}

.legal-last-updated {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.legal-authorship-disclaimer {
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
}

/* ─── SDK Docs ─────────────────────────────────────────── */
.sdk-shell {
  padding: 2.4rem 0 1rem;
}

.sdk-container {
  max-width: 920px;
}

.sdk-intro {
  max-width: 760px;
  margin-bottom: 1.2rem;
}

.sdk-eyebrow {
  font: 600 0.75rem/1.2 "Segoe UI", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.7rem;
}

.sdk-title {
  font-size: clamp(2rem, 5vw, 2.6rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.sdk-lead {
  max-width: 68ch;
  font-size: 1.02rem;
}

.sdk-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.2rem;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.16);
  margin-bottom: 1rem;
}

.sdk-card h2 {
  margin: 0 0 0.8rem;
  font-size: 1.2rem;
}

.sdk-card p:last-child,
.sdk-card ul:last-child {
  margin-bottom: 0;
}

.sdk-card ul {
  margin-left: 1.1rem;
  color: var(--text-secondary);
}

.sdk-card li {
  margin-bottom: 0.35rem;
}

.sdk-table-wrap {
  overflow-x: auto;
}

.sdk-meta-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

.sdk-meta-table th,
.sdk-meta-table td {
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  padding: 0.62rem 0.5rem;
}

.sdk-meta-table th {
  color: var(--text-primary);
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sdk-meta-table td {
  color: var(--text-secondary);
  font-size: 0.94rem;
}

.sdk-code {
  background: rgba(0, 0, 0, 0.26);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: #f5f5f9;
  margin: 0.9rem 0;
  overflow-x: auto;
  padding: 0.85rem 0.95rem;
}

.sdk-code code,
.sdk-meta-table code,
.sdk-card code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.9em;
}

.sdk-note {
  border-top: 1px solid var(--border);
  margin-top: 0.9rem;
  padding-top: 0.9rem;
}

.contact-content {
  max-width: 720px;
}

.contact-subscribe {
  margin: 1.25rem 0 0;
}

.contact-subscribe label {
  display: block;
  margin: 0 0 0.45rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.contact-subscribe-row {
  display: flex;
  gap: 0.75rem;
  align-items: stretch;
}

.contact-subscribe input[type="email"] {
  flex: 1 1 16rem;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  font: inherit;
  padding: 0.8rem 0.9rem;
}

.contact-subscribe input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
}

.contact-subscribe button {
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font: 700 0.95rem/1 "Segoe UI", sans-serif;
  padding: 0.8rem 1rem;
}

.contact-subscribe button:hover {
  background: var(--accent-hover);
}

.contact-subscribe button:disabled,
.contact-subscribe input:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.contact-subscribe-note {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-top: 0.75rem;
}

.work-content > p:first-child {
  color: var(--text-primary);
  font-size: 1.08rem;
}

.work-lanes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 2rem 0 0;
}

.work-lane {
  border: 1px solid rgba(240, 240, 244, 0.1);
  border-radius: 8px;
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.025);
}

.work-lane h2 {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
  font-size: 1.16rem;
}

.work-lane p {
  font-size: 0.96rem;
}

.work-link {
  display: inline-flex;
  align-items: center;
  margin-top: 0.25rem;
  font-weight: 700;
}

/* ─── Editorial Pages ─────────────────────────────────── */
.article-shell {
  padding: 2.5rem 1rem 1rem;
}

.article-frame {
  --article-paper: #f8f2e8;
  --article-paper-edge: #e2d4c3;
  --article-ink: #17100c;
  --article-muted: #645447;
  --article-rule: rgba(88, 63, 43, 0.2);
  width: min(100%, 860px);
  margin: 0 auto;
  padding: clamp(1.5rem, 3vw, 2.4rem);
  border: 1px solid var(--article-paper-edge);
  border-radius: 6px;
  position: relative;
  background:
    radial-gradient(circle at top left, rgba(var(--heat-deep-rgb), 0.07), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), transparent 18%),
    var(--article-paper);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.36),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.article-folio {
  position: absolute;
  top: 2.4rem;
  right: calc(100% + 1.15rem);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: max-content;
  color: rgba(226, 212, 195, 0.72);
  font: 700 0.68rem/1 "Segoe UI", sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transform: rotate(-90deg);
  transform-origin: top right;
  white-space: nowrap;
}

.article-folio span + span::before {
  content: "";
  display: inline-block;
  width: 2.2rem;
  height: 1px;
  margin: 0 0.7rem 0 0;
  vertical-align: 0.22em;
  background: currentColor;
  opacity: 0.48;
}

.article-mast {
  max-width: 42rem;
  margin-bottom: 2rem;
  position: relative;
  padding-right: min(11rem, 24%);
}

.article-kicker {
  margin: 0 0 0.8rem;
  font: 700 0.74rem/1.2 "Segoe UI", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--heat-deep);
}

.article-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.9rem, 4vw, 2.25rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
  margin-bottom: 1rem;
  color: var(--article-ink);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  color: var(--article-muted);
  font: 600 0.86rem/1.4 "Segoe UI", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.055em;
}

.article-proof-slot {
  position: absolute;
  top: 0.05rem;
  right: 0;
  width: min(10.5rem, 28%);
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
}

.article-proof-slot > * {
  pointer-events: auto;
}

.article-meta-sep {
  color: rgba(100, 84, 71, 0.55);
}

.article-body a {
  color: var(--heat-deep);
  text-decoration: underline;
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.16em;
}

.article-body a:hover {
  color: var(--heat-deep);
}

.article-body {
  max-width: 42rem;
}

.article-body h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 2.4rem 0 0.85rem;
  color: var(--article-ink);
}

.article-body p,
.article-body li {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.16rem;
  line-height: 1.82;
  color: var(--article-ink);
}

.article-body > p:first-child {
  font-size: 1.16rem;
  line-height: 1.82;
  color: var(--article-ink);
}

.article-body p {
  margin-bottom: 1.2rem;
}

.article-body ol,
.article-body ul {
  margin: 0 0 1.4rem 1.4rem;
  color: var(--article-ink);
}

.article-body li + li {
  margin-top: 0.45rem;
}

.article-sync-note {
  border: 1px dashed var(--article-rule);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.42);
}

.article-sync-detail {
  color: var(--article-muted);
  font-size: 0.98rem;
}

/* ─── Demo Report ─────────────────────────────────────── */
.demo-report-shell {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 2rem 1rem 1rem;
}

.demo-report-frame {
  overflow: hidden;
  border: 1px solid rgba(120, 96, 80, 0.26);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(249, 244, 237, 0.96)),
    repeating-linear-gradient(0deg, rgba(86, 57, 34, 0.018) 0 1px, transparent 1px 9px),
    #fbf7f0;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.82) inset,
    0 26px 80px rgba(0, 0, 0, 0.22);
}

.demo-report-topline {
  padding: clamp(1.35rem, 3vw, 2rem);
  border-bottom: 3px double rgba(120, 96, 80, 0.28);
  background:
    linear-gradient(90deg, rgba(116, 83, 56, 0.08), transparent 34%, transparent 66%, rgba(77, 103, 116, 0.06)),
    rgba(255, 251, 244, 0.88);
}

.demo-report-topline .article-kicker {
  color: #7f6048;
}

.demo-report-topline .article-title {
  color: #2a1c14;
}

.demo-report-lead {
  max-width: 62ch;
  margin-bottom: 0;
  color: #705b4a;
}

.demo-report-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
  padding: 26px;
  align-items: start;
}

.document-column {
  min-width: 0;
}

.document {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.92), rgba(253,249,243,0.92));
  padding: 24px 26px;
  border: 1px solid rgba(120, 96, 80, 0.22);
  border-radius: 6px;
  word-wrap: break-word;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.84;
  color: #2f241d;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.58),
    0 14px 36px rgba(69, 43, 24, 0.06);
}

.demo-document p {
  margin: 0 0 1.1em;
  color: inherit;
}

.demo-document p:last-child {
  margin-bottom: 0;
}

.annotations {
  width: 100%;
  display: grid;
  gap: 10px;
}

.annotations.annotations--positioned {
  position: relative;
  display: block;
}

.annotation {
  background:
    linear-gradient(180deg, rgba(255, 253, 249, 0.94), rgba(250, 245, 238, 0.84));
  padding: 12px 14px;
  border: 1px solid rgba(120, 96, 80, 0.2);
  border-left: 4px solid #ccc;
  border-radius: 6px;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  box-shadow: 0 8px 22px rgba(69, 43, 24, 0.05);
}

.annotations.annotations--positioned .annotation {
  position: absolute;
  left: 0;
  right: 0;
  margin: 0;
}

.annotation.is-compact {
  padding: 8px 10px;
}

.annotation.is-compact .annotation-preview {
  display: none;
}

.annotation.is-compact .annotation-detail {
  display: -webkit-box;
  overflow: hidden;
  font-size: 12px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.annotation.typed { border-left-color: #9a8673; }
.annotation.pasted { border-left-color: #c96f2f; }
.annotation.cited { border-left-color: #668879; }
.annotation.retype { border-left-color: #a67b55; }
.annotation.ledger { border-left-color: #8d7965; }

.annotation-header {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
  color: #2f241d;
  font: 600 14px/1.35 "Segoe UI", system-ui, sans-serif;
}

.annotation-badge {
  font-size: 11px;
  line-height: 1;
  padding: 4px 7px;
  border-radius: 999px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.badge-typed { background: #eee6dc; color: #6f5d4e; }
.badge-pasted { background: #f4dfcd; color: #9f4f1f; }
.badge-cited { background: #e5eee8; color: #486d5d; }
.badge-retype { background: #f1e5d8; color: #7b5737; }
.badge-ledger { background: #e9e1d6; color: #665342; }

.annotation-preview {
  color: #666;
  font-style: italic;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.annotation-detail {
  color: #7a6a5d;
  font-size: 13px;
  line-height: 1.4;
}

.run {
  position: relative;
  border-radius: 2px;
  padding: 1px 0;
}

.demo-report-shell .run {
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  border-radius: 3px;
  padding: 0.4em 0.14em 0.4em 0.06em;
}

.run-typed { background: #e1d8cc; }
.run-pasted { background: #efbf96; }
.run-cited { background: #c6d8cf; }
.run-retype { background: #e3ccb4; }
.run-ledger { background: #d3c4b2; }

.demo-report-shell .run-typed {
  background: #eee9e2;
}

.demo-report-shell .run-pasted {
  background: #f3d7bf;
  box-shadow: none;
}

.demo-report-shell .run-cited {
  background: #dce8e1;
  box-shadow: none;
}

.demo-report-shell .run-retype {
  background: #ead8c6;
  box-shadow: none;
}

.demo-report-shell .run-ledger {
  background: #d9c6b3;
  box-shadow: none;
}

.demo-report-shell .run-typed:hover,
.demo-report-shell .run-typed.highlighted {
  background: #e4ddd4;
  outline: none;
}

.demo-report-shell .run-pasted:hover,
.demo-report-shell .run-pasted.highlighted {
  background: #edc7a7;
  outline: none;
}

.demo-report-shell .run-cited:hover,
.demo-report-shell .run-cited.highlighted {
  background: #cddfd6;
  outline: none;
}

.demo-report-shell .run-retype:hover,
.demo-report-shell .run-retype.highlighted {
  background: #e1c8ae;
  outline: none;
}

.demo-report-shell .run-ledger:hover,
.demo-report-shell .run-ledger.highlighted {
  background: #ccb49d;
  outline: none;
}

.run:hover {
  outline: 2px solid rgba(0,0,0,0.2);
}

.run.highlighted {
  outline: 2px solid #333;
}

.annotation.highlighted {
  border-color: rgba(60, 37, 24, 0.42);
  box-shadow: 0 12px 26px rgba(69, 43, 24, 0.12);
}

.legend {
  margin-top: 12px;
  color: #7a6a5d;
  font: 13px/1.5 "Segoe UI", system-ui, sans-serif;
}

/* ─── Pipeline / How It Works ──────────────────────────── */
.pipeline-step {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  align-items: flex-start;
}

.step-number {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  background: var(--accent);
  color: var(--bg-deep);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
}

.step-content h3 {
  margin-bottom: 0.3rem;
  color: var(--text-primary);
}

.step-content p {
  color: var(--text-secondary);
}

/* ─── How It Works (Doc-driven) ───────────────────────── */
.howit-container {
  max-width: 1000px;
}

.howit-lead {
  font-size: 1.2rem;
  line-height: 1.75;
  color: var(--text-primary);
  margin-bottom: 1.1rem;
}

.howit-steps {
  display: grid;
  gap: 1.4rem;
}

.howit-steps-spaced {
  margin-top: 1.8rem;
}

.howit-step-row {
  display: grid;
  grid-template-columns: auto 1fr minmax(300px, 42%);
  gap: 1rem 1.2rem;
  align-items: start;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
}

.howit-step-number {
  margin-top: 0.15rem;
}

.howit-step-copy p {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--text-primary);
}

.howit-step-media {
  margin: 0;
}

.howit-step-media video,
.howit-step-media img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

/* ─── Placeholder Comments (dev only) ──────────────────── */
.placeholder {
  background: rgba(245, 158, 11, 0.08);
  border: 2px dashed rgba(245, 158, 11, 0.4);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  color: var(--accent);
  font-style: italic;
}

/* ─── Buttons (general) ────────────────────────────────── */
.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--bg-deep);
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.2);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: transparent;
  box-shadow: none;
}

/* ─── Responsive ───────────────────────────────────────── */
@media (max-width: 600px) {
  .site-main {
    padding-bottom: 2rem;
  }

  .site-main::before {
    width: calc(100% - 1.4rem);
  }

  .hero,
  .home-hero {
    padding: 4rem 1.5rem;
    padding-top: 4.25rem;
  }

  .hero h1,
  .home-hero h1 {
    font-size: 2.2rem;
  }

  .home-wordmark-title .hs-title-lockup {
    --hs-title-size: clamp(2rem, 12vw, 2.8rem);
  }

  .home-quickstart {
    width: 100%;
    padding-left: 2.4rem;
  }

  .quickstart-label {
    margin-left: 2.4rem;
  }

  .home-quickstart li {
    min-height: 76px;
  }

  .home-quickstart li::before {
    left: -1.72rem;
  }

  .home-latest-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  header .inner {
    flex-direction: column;
    gap: 1rem;
  }

  .site-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem 1rem;
  }

  .site-nav a {
    font-size: 0.88rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .footer-nav {
    justify-content: flex-start;
    gap: 0.9rem 1.1rem;
  }

  .legal-content {
    padding: 1.25rem;
    border-radius: 8px;
  }

  .contact-subscribe-row {
    flex-direction: column;
  }

  .contact-subscribe input[type="email"],
  .contact-subscribe button {
    width: 100%;
  }

  .work-lanes {
    grid-template-columns: 1fr;
  }

  .demo-report-shell {
    padding: 1rem 0.7rem;
  }

  .demo-report-layout {
    padding: 1rem;
  }

  .document {
    padding: 1rem;
    font-size: 16px;
  }

  .pipeline-step {
    flex-direction: column;
    gap: 1rem;
  }

  .howit-lead {
    font-size: 1.08rem;
  }

  .howit-step-row {
    grid-template-columns: 1fr;
    gap: 0.9rem;
    padding: 0.95rem;
  }

  .howit-step-number {
    width: 2.4rem;
    height: 2.4rem;
    font-size: 1rem;
  }

  .howit-step-copy p {
    font-size: 1.02rem;
  }

  .article-shell {
    padding-top: 1.4rem;
  }

  .article-frame {
    border-radius: 18px;
    padding: 1.25rem;
  }

  .article-folio {
    display: none;
  }

  .article-title {
    font-size: clamp(1.8rem, 10vw, 2.25rem);
  }

  .article-mast {
    padding-right: 0;
  }

  .article-proof-slot {
    position: static;
    width: auto;
    margin-top: 0.95rem;
    justify-content: flex-start;
  }

  .article-body p,
  .article-body li {
    font-size: 1.08rem;
    line-height: 1.8;
  }
}

@media (max-width: 900px) {
  .home-hero-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .home-hero-right {
    max-width: 640px;
    justify-content: flex-start;
  }

  .home-quickstart {
    max-width: 520px;
  }

  .home-hero-jumps {
    max-width: 24rem;
    width: 100%;
    margin-inline: auto;
  }

  .home-flame-orange {
    display: none;
  }

  .home-flame-blue {
    width: 72vw;
    right: -32vw;
  }

  .demo-report-layout {
    grid-template-columns: 1fr;
    position: relative;
    padding-right: 3rem;
  }

  .demo-annotations {
    display: block;
    position: absolute;
    top: clamp(1rem, 3vw, 26px);
    right: 1rem;
    width: 1.45rem;
    margin: 0;
    z-index: 2;
  }

  .demo-annotations.annotations--positioned {
    position: absolute;
    display: block;
  }

  .demo-annotations .annotation {
    width: 1.45rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    box-shadow: none;
  }

  .demo-annotations .annotation-header {
    display: block;
    margin: 0;
    font-size: 0;
    line-height: 1;
  }

  .demo-annotations .annotation-badge {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 1.45rem;
    min-height: 3.35rem;
    padding: 0.46rem 0.24rem;
    border-radius: 999px;
    font-size: 10px;
    line-height: 1;
    letter-spacing: 0.08em;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    white-space: nowrap;
  }

  .demo-annotations .annotation-preview,
  .demo-annotations .annotation-detail {
    display: none;
  }

  .howit-step-row {
    grid-template-columns: auto 1fr;
  }

  .howit-step-media {
    grid-column: 1 / -1;
  }
}

  /* ─── Ops Error Console ───────────────────────────────── */
  .ops-container {
    max-width: 1100px;
  }

  .ops-intro {
    margin-bottom: 1rem;
  }

  .ops-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.4rem;
  }

  .ops-title {
    margin-bottom: 0.55rem;
  }

  .ops-lead {
    max-width: 70ch;
  }

  .ops-panel {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    margin-top: 1rem;
  }

  .ops-filters {
    display: grid;
    gap: 0.65rem;
  }

  .ops-grid-two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
  }

  .ops-filters label {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
  }

  .ops-filters input {
    width: 100%;
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    color: var(--text-primary);
    border-radius: 8px;
    padding: 0.6rem 0.7rem;
  }

  .ops-submit {
    width: fit-content;
    border: 0;
    border-radius: 999px;
    background: var(--accent);
    color: var(--bg-deep);
    font-weight: 700;
    padding: 0.52rem 0.95rem;
    cursor: pointer;
  }

  .ops-status {
    min-height: 1.2rem;
    color: var(--text-secondary);
    font-size: 0.92rem;
  }

  .ops-status.is-error {
    color: #f87171;
  }

  .ops-status.is-success {
    color: #4ade80;
  }

  .ops-summary {
    margin-bottom: 1rem;
  }

  .ops-active-filter {
    min-height: 1.9rem;
    margin: 0 0 0.7rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
  }

  .ops-filter-label {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.2);
    color: #bfdbfe;
    font-size: 0.8rem;
    font-weight: 600;
  }

  .ops-filter-clear {
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    color: var(--text-primary);
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
    font-size: 0.78rem;
    cursor: pointer;
  }

  .ops-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }

  .ops-summary-title {
    color: var(--text-primary);
    margin-bottom: 0.3rem;
    font-weight: 700;
  }

  .ops-summary ul {
    margin: 0;
    padding-left: 1rem;
  }

  .ops-table-wrap {
    overflow-x: auto;
  }

  .ops-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.86rem;
  }

  .ops-table th,
  .ops-table td {
    border-bottom: 1px solid var(--border);
    padding: 0.55rem;
    text-align: left;
    vertical-align: top;
  }

  .ops-table th {
    color: var(--text-primary);
  }

  .ops-message {
    min-width: 300px;
  }

  .ops-meta {
    margin-top: 0.35rem;
    color: var(--text-secondary);
    font-size: 0.78rem;
    word-break: break-word;
  }

  .ops-severity {
    display: inline-block;
    border-radius: 999px;
    padding: 0.2rem 0.45rem;
    font-weight: 700;
    text-transform: lowercase;
  }

  .ops-severity.sev-fatal,
  .ops-severity.sev-error {
    background: rgba(248, 113, 113, 0.2);
    color: #fca5a5;
  }

  .ops-severity.sev-warn {
    background: rgba(245, 158, 11, 0.2);
    color: #fcd34d;
  }

  .ops-severity.sev-info,
  .ops-severity.sev-debug {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
  }

  .ops-chip {
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: rgba(148, 163, 184, 0.16);
    color: #e2e8f0;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 600;
    padding: 0.16rem 0.45rem;
    cursor: pointer;
    text-align: left;
  }

  .ops-chip:hover {
    background: rgba(148, 163, 184, 0.24);
    border-color: rgba(148, 163, 184, 0.45);
  }

  .ops-chip-row {
    margin-top: 0.35rem;
  }

  .ops-chip-subtle {
    color: #cbd5e1;
    background: rgba(71, 85, 105, 0.2);
  }

  @media (max-width: 760px) {
    .ops-grid-two,
    .ops-summary-grid {
      grid-template-columns: 1fr;
    }

    .ops-message {
      min-width: 180px;
    }
  }
