/* Hearing Loop Designer site styles. Colors and type follow the Phase 1 page; dark mode follows the system setting. */
:root {
  --bg: #f6f8fa;
  --bg-alt: #edf2f5;
  --surface: #ffffff;
  --border: #d9e2ea;
  --text: #0f1b2a;
  --muted: #4b5b6e;
  --soft: #6b7a8c;
  --accent: #0f766e;
  --accent-text: #0f766e;
  --tint: #e6f4f2;
  --btn-bg: #0f766e;
  --btn-text: #ffffff;
  --btn-hover: #115e59;
  --shadow: 0 1px 2px rgba(15, 27, 42, .05), 0 12px 32px rgba(15, 27, 42, .07);
  --radius: 14px;
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0f1c;
    --bg-alt: #0d1424;
    --surface: #111a2d;
    --border: #1f2b42;
    --text: #e7edf5;
    --muted: #9aa9bd;
    --soft: #8696ab;
    --accent: #2dd4bf;
    --accent-text: #5eead4;
    --tint: #0f2a2f;
    --btn-bg: #2dd4bf;
    --btn-text: #042f2b;
    --btn-hover: #5eead4;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px rgba(0, 0, 0, .35);
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
img, svg, canvas { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: var(--accent-text); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: 12px; top: -64px; z-index: 200; padding: 10px 14px; border-radius: 8px; background: var(--btn-bg); color: var(--btn-text); font-weight: 600; }
.skip:focus { top: 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: 10px; border: 1.5px solid transparent; font-weight: 650; font-size: 15px; text-decoration: none; transition: background-color .15s ease, border-color .15s ease, transform .15s ease; }
.btn .arrow, .btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--btn-bg); color: var(--btn-text); }
.btn-primary:hover { background: var(--btn-hover); transform: translateY(-1px); }
.btn-secondary { border-color: var(--border); color: var(--text); background: var(--surface); }
.btn-secondary:hover { border-color: var(--accent); }
.btn-sm { min-height: 38px; padding: 7px 14px; font-size: 14px; }

/* Header and navigation */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--bg); background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: saturate(150%) blur(10px); -webkit-backdrop-filter: saturate(150%) blur(10px); border-bottom: 1px solid var(--border); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; position: relative; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 17px; letter-spacing: -0.01em; white-space: nowrap; }
.wordmark svg { width: 30px; height: 30px; color: var(--accent); flex: none; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav-links { display: flex; align-items: center; gap: 22px; list-style: none; padding: 0; }
.nav a { white-space: nowrap; }
.nav-links a, .nav-signin { color: var(--muted); text-decoration: none; }
.nav-links a:hover, .nav-signin:hover { color: var(--text); }
.nav-links a[aria-current] { color: var(--text); font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.nav-actions { display: flex; align-items: center; gap: 18px; }
.nav a.btn-primary, .nav a.btn-primary:hover { color: var(--btn-text); }
.nav-toggle { display: none; align-items: center; gap: 8px; min-height: 42px; padding: 6px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.nav-toggle svg { width: 20px; height: 20px; }
@media (max-width: 1020px) {
  .nav-links { gap: 16px; }
  .nav { gap: 20px; }
}
@media (max-width: 960px) {
  /* Without JavaScript the links wrap under the wordmark; with it, a menu button opens them. */
  .header-row { flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
  .nav { flex-wrap: wrap; gap: 10px 20px; }
  .nav-links { flex-wrap: wrap; gap: 8px 16px; }
  .js .header-row { flex-wrap: nowrap; padding-top: 0; padding-bottom: 0; }
  .js .nav-toggle { display: inline-flex; }
  .js .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 18px; background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: var(--shadow); }
  .js .nav.open { display: flex; }
  .js .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
  .js .nav-links a { display: block; padding: 12px 8px; font-size: 16px; border-bottom: 1px solid var(--border); }
  .js .nav-links a[aria-current] { text-underline-offset: 6px; }
  .js .nav-actions { justify-content: space-between; padding: 14px 8px 0; }
}
@media (max-width: 420px) { .wordmark span { font-size: 15px; } }

/* Shared type */
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 14px; }
.lede { font-size: 18px; color: var(--muted); max-width: 40em; }
.lede strong { color: var(--text); font-weight: 600; }
.standard-note { display: flex; gap: 12px; align-items: flex-start; margin-top: 24px; padding: 14px 16px; border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 10px; background: var(--surface); font-size: 15px; color: var(--muted); max-width: 36em; }
.standard-note svg { width: 20px; height: 20px; flex: none; color: var(--accent); margin-top: 2px; }
.standard-note strong { color: var(--text); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 28px; }
.signin-link { font-size: 15px; color: var(--muted); }
.signin-link a { font-weight: 600; }
.email-line { margin-top: 18px; font-size: 15px; color: var(--muted); }
.footnote { margin-top: 18px; font-size: 14px; color: var(--soft); }
.more-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-weight: 600; text-decoration: none; }
.more-link:hover { text-decoration: underline; }
.more-link .arrow { width: 16px; height: 16px; }
.hero-actions .more-link { margin-top: 0; }
.chip { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-text); border: 1px solid currentColor; border-radius: 999px; padding: 0 7px; line-height: 1.6; }

/* Sections */
section[id], [id].anchor { scroll-margin-top: 84px; }
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 38px); font-weight: 800; margin-bottom: 12px; }
.section-head p { font-size: 17px; color: var(--muted); }
.section-head .eyebrow { margin-bottom: 10px; }

/* Home hero and demo */
.hero { padding: 64px 0 72px; background: radial-gradient(1200px 520px at 85% -10%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 48px; align-items: start; }
.hero h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 800; margin-bottom: 20px; }
.hero-text { padding-top: 12px; }
.hero .lede { max-width: 36em; }

.demo { background: #0b1220; color: #dbe4ef; border: 1px solid #1d2a40; border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.demo-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px 10px 18px; border-bottom: 1px solid #1d2a40; background: #0e1729; }
.demo-title { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 650; letter-spacing: .02em; }
.tag { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #5eead4; border: 1px solid rgba(94, 234, 212, .35); border-radius: 999px; padding: 2px 8px; }
.demo-btn { appearance: none; font: inherit; font-size: 13px; font-weight: 600; color: #dbe4ef; background: transparent; border: 1px solid #2a3953; border-radius: 8px; min-height: 34px; padding: 4px 12px; cursor: pointer; }
.demo-btn:hover { border-color: #5eead4; }
.demo-btn:focus-visible { outline-color: #5eead4; }
.demo-stage { position: relative; height: 360px; background: #070b16; }
#demo-canvas { position: absolute; inset: 0; cursor: grab; touch-action: pan-y; }
#demo-canvas:active { cursor: grabbing; }
#demo-canvas canvas { width: 100% !important; height: 100% !important; }
.demo-hint { position: absolute; left: 12px; bottom: 10px; font-size: 12px; color: #8ea0b8; background: rgba(7, 11, 22, .7); padding: 3px 8px; border-radius: 6px; pointer-events: none; }
.demo-fallback { position: absolute; inset: auto 12px 10px auto; max-width: calc(100% - 24px); font-size: 12px; color: #b6c3d4; background: rgba(7, 11, 22, .8); padding: 3px 8px; border-radius: 6px; }
.demo-meta { padding: 10px 18px; font-size: 12.5px; color: #8ea0b8; border-top: 1px solid #1d2a40; }
.demo-meta strong { color: #dbe4ef; font-weight: 600; }
.legend { padding: 14px 18px 4px; }
.legend-title { font-size: 12px; font-weight: 600; color: #b6c3d4; margin-bottom: 38px; }
.scale { position: relative; height: 12px; border-radius: 4px; background: linear-gradient(90deg, #1e1b4b 0%, #1e40af 38.46%, #38bdf8 59.62%, #10b981 71.15%, #22c55e 76.92%, #a3e635 82.69%, #fde047 88.46%, #f97316 94.23%, #dc2626 100%); }
.scale-band { position: absolute; left: 71.15%; width: 11.54%; top: -18px; height: 30px; border: 1.5px solid #e2e8f0; border-bottom: 0; border-radius: 4px 4px 0 0; pointer-events: none; }
.scale-band span { position: absolute; bottom: 100%; left: 50%; transform: translate(-50%, -2px); font-size: 11px; font-weight: 600; white-space: nowrap; color: #e2e8f0; }
.ticks { position: relative; height: 18px; margin-top: 4px; font: 11px/1 var(--mono); color: #8ea0b8; }
.ticks span { position: absolute; top: 2px; transform: translateX(-50%); white-space: nowrap; }
.ticks span:first-child { transform: none; }
.ticks span:last-child { transform: translateX(-100%); }
.readout { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 1px; margin: 10px 18px 0; background: #1d2a40; border: 1px solid #1d2a40; border-radius: 10px; overflow: hidden; }
.stat { background: #0e1729; padding: 10px 12px; }
.stat-label { font-size: 11.5px; color: #8ea0b8; line-height: 1.35; }
.stat-value { font: 600 19px/1.3 var(--mono); color: #f1f5f9; margin-top: 2px; white-space: nowrap; }
.stat-value small { font-size: 12px; color: #8ea0b8; font-weight: 500; }
.controls { display: grid; grid-template-columns: 1fr auto; gap: 14px 24px; align-items: end; padding: 14px 18px 16px; }
.control label, .control legend { display: block; font-size: 12px; font-weight: 600; color: #b6c3d4; margin-bottom: 6px; padding: 0; }
.control output { font-family: var(--mono); color: #f1f5f9; font-weight: 600; margin-left: 6px; }
.control input[type=range] { width: 100%; accent-color: #2dd4bf; min-height: 28px; }
fieldset.control { border: 0; margin: 0; padding: 0; min-width: 0; }
.seg { display: inline-flex; border: 1px solid #2a3953; border-radius: 9px; overflow: hidden; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg label { margin: 0; padding: 7px 12px; font-size: 13px; font-weight: 600; color: #b6c3d4; cursor: pointer; white-space: nowrap; }
.seg input:checked + label { background: #2dd4bf; color: #042f2b; }
.seg input:focus-visible + label { outline: 3px solid #5eead4; outline-offset: -3px; }
.check { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; font-size: 13px; color: #b6c3d4; }
.check input { width: 18px; height: 18px; accent-color: #2dd4bf; margin: 0; }
.demo-note { padding: 12px 18px 16px; font-size: 12.5px; line-height: 1.55; color: #8ea0b8; border-top: 1px solid #1d2a40; }

/* Cards and grids */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { position: relative; padding: 22px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); display: flex; flex-direction: column; }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { font-size: 15px; color: var(--muted); }
.card .more-link { margin-top: auto; padding-top: 14px; }
.icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); margin-bottom: 14px; flex: none; }
.icon svg { width: 22px; height: 22px; }
.audiences { padding: 0 0 72px; }
.audience-note { margin-top: 18px; font-size: 15px; color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; list-style: none; margin: 0; padding: 0; }
.step { position: relative; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.step-num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-weight: 700; font-size: 15px; color: var(--btn-text); background: var(--btn-bg); margin-bottom: 14px; }
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15.5px; }
.claim-box { display: flex; gap: 16px; margin-top: 28px; padding: 22px 24px; border-radius: var(--radius); border: 1px dashed var(--accent); border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); background: var(--surface); }
.claim-box > svg { width: 24px; height: 24px; flex: none; color: var(--accent); margin-top: 2px; }
.claim-box h2, .claim-box h3 { font-size: 17px; margin-bottom: 6px; letter-spacing: -0.01em; }
.claim-box p { color: var(--muted); font-size: 15.5px; max-width: 62em; }

.cta { text-align: center; }
.cta h2 { font-size: clamp(30px, 4vw, 42px); font-weight: 800; margin-bottom: 14px; }
.cta p { color: var(--muted); font-size: 17px; max-width: 40em; margin: 0 auto; }
.cta .hero-actions { justify-content: center; }
.cta .hero-actions p { margin: 0; max-width: none; }
.cta .email-line { font-size: 15px; }

/* Inner pages */
.page-hero { padding: 48px 0 40px; background: radial-gradient(900px 380px at 90% -20%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%); }
.page-hero h1 { font-size: clamp(32px, 4.4vw, 48px); font-weight: 800; margin-bottom: 16px; max-width: 22em; }
.page-hero .lede { max-width: 42em; }
.page-hero .standard-note { max-width: 44em; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 22px; padding: 0; font-size: 14px; color: var(--muted); }
.breadcrumbs li + li::before { content: '/'; margin-right: 6px; color: var(--soft); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent-text); text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: var(--text); }
.section.tight { padding: 56px 0; }
.section.first { padding-top: 24px; }

.tour { display: grid; gap: 18px; }
.tour-item { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 4px 20px; padding: 28px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.tour-item .icon { margin: 0; width: 48px; height: 48px; }
.tour-item h2 { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.tour-item p { color: var(--muted); max-width: 46em; }
.tour-item ul { margin-top: 12px; padding-left: 20px; color: var(--muted); }
.tour-item li { margin: 5px 0; }
.tour-item li::marker { color: var(--accent); }
.tour-item .more-link { margin-top: 12px; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 48px; align-items: start; }
.split.figure-split { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 28px 36px; }
.section-title { font-size: clamp(28px, 3.4vw, 38px); font-weight: 800; }
.panel { padding: 28px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); }
.panel h2 { font-size: clamp(22px, 2.6vw, 28px); font-weight: 800; margin-bottom: 10px; }
.panel h3 { font-size: 18px; margin: 20px 0 8px; }
.panel p { color: var(--muted); }
.panel p + p { margin-top: 12px; }
.panel ul, .panel ol { margin-top: 12px; padding-left: 20px; color: var(--muted); }
.panel li { margin: 6px 0; }
.panel li::marker { color: var(--accent); }
.panel .hero-actions { margin-top: 22px; }
.panel.highlight { box-shadow: var(--shadow); }

/* Prose */
.prose { max-width: 760px; }
.wrap.prose { max-width: 1180px; }
.wrap.prose > * { max-width: 760px; }
.prose > * + * { margin-top: 16px; }
.prose h2 { font-size: clamp(24px, 2.8vw, 30px); font-weight: 800; margin-top: 48px; }
.prose h3 { font-size: 20px; margin-top: 28px; }
.prose h4 { font-size: 17px; margin-top: 22px; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: 10px; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 7px 0; }
.prose li::marker { color: var(--accent); }
.prose .lede-p { font-size: 18px; color: var(--muted); }
.prose code { font-family: var(--mono); font-size: .9em; background: var(--bg-alt); padding: 1px 5px; border-radius: 4px; }
.prose pre { overflow-x: auto; padding: 14px 16px; border-radius: 10px; background: var(--bg-alt); border: 1px solid var(--border); }
.prose pre code { background: none; padding: 0; }
.callout { padding: 18px 22px; border-left: 4px solid var(--accent); border-radius: 0 12px 12px 0; background: var(--tint); }
.callout p + p { margin-top: 10px; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.table th { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.checklist { list-style: none; padding: 0 !important; }
.checklist li { position: relative; padding-left: 30px; }
.checklist li::before { content: ''; position: absolute; left: 4px; top: .45em; width: 12px; height: 7px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }
.not-list li::before { content: ''; position: absolute; left: 3px; top: .62em; width: 14px; height: 2.5px; background: var(--accent); transform: none; border: 0; }

/* Outputs */
.output-figure { margin: 0; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); overflow: hidden; }
.output-figure .figure-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--border); font-size: 13px; font-weight: 650; color: var(--muted); }
.output-figure .tag { color: var(--accent-text); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.output-figure svg { width: 100%; height: auto; color: var(--text); }
.output-figure figcaption { padding: 12px 16px 16px; font-size: 13.5px; color: var(--soft); border-top: 1px solid var(--border); }

/* Learn */
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; padding: 0; list-style: none; }
.pill { display: inline-block; padding: 6px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text); font-size: 14px; font-weight: 600; text-decoration: none; }
.pill:hover { border-color: var(--accent); color: var(--accent-text); }
.learn-group + .learn-group { margin-top: 56px; }
.learn-group .section-head { margin-bottom: 22px; }
.learn-group .section-head h2 { font-size: clamp(24px, 2.8vw, 30px); }
.learn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.learn-card { position: relative; padding: 22px 22px 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); display: flex; flex-direction: column; gap: 8px; transition: border-color .15s ease, transform .15s ease; }
.learn-card:hover, .learn-card:focus-within { border-color: var(--accent); }
.learn-card:hover { transform: translateY(-1px); }
.learn-card h2, .learn-card h3 { font-size: 18.5px; line-height: 1.25; letter-spacing: -0.01em; }
.learn-card h2 a, .learn-card h3 a { color: var(--text); text-decoration: none; }
.learn-card h2 a::after, .learn-card h3 a::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.learn-card h2 a:focus-visible, .learn-card h3 a:focus-visible { outline: none; }
.learn-card:focus-within { outline: 3px solid var(--accent); outline-offset: 3px; }
.learn-card p { color: var(--muted); font-size: 15px; }
.learn-card .learn-card-meta { font-size: 13px; font-weight: 650; letter-spacing: .03em; color: var(--accent-text); }
.article-meta { margin-top: 16px; font-size: 14.5px; color: var(--soft); }
.draft-note { margin-top: 20px; max-width: 44em; padding: 12px 16px; border: 1px dashed var(--accent); border-radius: 10px; background: var(--surface); font-size: 15px; color: var(--muted); }
.article-layout { display: grid; grid-template-columns: minmax(0, 760px) 240px; gap: 64px; justify-content: space-between; align-items: start; }
.article-body h2, .article-body h3 { scroll-margin-top: 84px; }
.article-aside { position: sticky; top: 96px; font-size: 14.5px; }
.article-aside .aside-title { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.article-aside ol { list-style: none; padding: 0; margin: 0 0 16px; border-left: 2px solid var(--border); }
.article-aside li a { display: block; padding: 6px 0 6px 14px; color: var(--text); text-decoration: none; line-height: 1.35; }
.article-aside li a:hover { color: var(--accent-text); }
.article-sources { margin-top: 56px !important; padding-top: 8px; border-top: 1px solid var(--border); }
.article-sources ol { font-size: 15px; }
.article-sources li { color: var(--muted); overflow-wrap: anywhere; }
.learn-cta-box { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; align-items: center; padding: 34px 38px; border-radius: 18px; border: 1px solid var(--border); background: radial-gradient(600px 300px at 100% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%), var(--surface); }
.learn-cta-box h2 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; margin: 6px 0 10px; }
.learn-cta-box p { color: var(--muted); }
.learn-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }

/* 404 */
.not-found { padding: 96px 0; text-align: center; }
.not-found .icon { margin: 0 auto 20px; width: 56px; height: 56px; }
.not-found h1 { font-size: clamp(32px, 4vw, 44px); font-weight: 800; margin-bottom: 12px; }
.not-found p { color: var(--muted); max-width: 34em; margin: 0 auto; }
.not-found .hero-actions { justify-content: center; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 48px 0 48px; font-size: 14px; color: var(--muted); background: var(--bg); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 28px 40px; align-items: start; }
.footer-brand p { margin-top: 12px; max-width: 30em; }
.footer-col h2 { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text); margin-bottom: 12px; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col li + li { margin-top: 8px; }
.footer-col a { color: var(--muted); text-decoration: none; }
.footer-col a:hover { color: var(--text); text-decoration: underline; }
.family { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 14px; }
.fine { margin-top: 14px; font-size: 13px; line-height: 1.6; color: var(--soft); }
.fine p + p { margin-top: 6px; }

/* Responsive */
@media (max-width: 1080px) {
  .card-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .article-aside { display: none; }
}
@media (max-width: 960px) {
  .hero { padding: 40px 0 56px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hero-text { padding-top: 0; }
  .card-grid, .steps, .split, .split.figure-split { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .learn-cta-box { grid-template-columns: minmax(0, 1fr); }
  .learn-cta-actions { justify-content: flex-start; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .section { padding: 64px 0; }
  .page-hero { padding: 32px 0 28px; }
  .card-grid.four { grid-template-columns: minmax(0, 1fr); }
  .tour-item { grid-template-columns: minmax(0, 1fr); padding: 22px 18px; }
  .panel { padding: 22px 18px; }
  .demo-stage { height: 300px; }
  .readout { grid-template-columns: 1fr 1fr; margin: 10px 14px 0; }
  .readout .stat:first-child { grid-column: 1 / -1; }
  .legend, .controls { padding-left: 14px; padding-right: 14px; }
  .demo-meta, .demo-note { padding-left: 14px; padding-right: 14px; }
  .controls { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .claim-box { padding: 18px; }
  .learn-cta-box { padding: 24px 18px; }
  .learn-grid { grid-template-columns: minmax(0, 1fr); }
}
@media print {
  .site-header, .nav-toggle, .skip, .article-aside, .learn-cta { display: none !important; }
  body { background: #fff; color: #000; }
}
