/* Quantum Spaces marketing site — UI kit styles (lifted from qs-marketing/index.html).
   Tokens come from ../../colors_and_type.css; this file holds component CSS. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); font-weight: 400; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { line-height: 1.07; text-wrap: balance; }
p { line-height: 1.78; text-wrap: pretty; }
a { text-decoration: none; color: inherit; }

.eyebrow { font-size: 10px; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink-4); }
.eyebrow-teal { color: var(--teal); }
.container { max-width: 1080px; margin: 0 auto; padding: 0 2rem; }
.rule { border: none; border-top: 0.5px solid var(--border); }
section { padding: 6.5rem 0; }

/* NAV */
nav { position: sticky; top: 0; z-index: 100; border-bottom: 0.5px solid var(--border); background: rgba(250,250,248,0.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.nav-logo { font-family: var(--font-serif); font-weight: 600; font-size: 17px; letter-spacing: -0.045em; white-space: nowrap; }
.nav-logo .nl-teal { color: var(--teal); }
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a { font-size: 13px; color: var(--ink-3); transition: color 0.2s; cursor: pointer; position: relative; }
.nav-links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -5px; height: 1.5px; background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform 0.28s cubic-bezier(0.4,0,0.2,1); }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 36px; height: 36px; border: none; background: none; cursor: pointer; padding: 0; }
.nav-toggle-bar { display: block; width: 22px; height: 1.5px; background: var(--ink); transition: transform 0.25s, opacity 0.2s; }
.nav-toggle-bar.a { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle-bar.b { transform: translateY(-6.5px) rotate(-45deg); }
.nav-drawer { display: none; flex-direction: column; border-top: 0.5px solid var(--border); background: rgba(250,250,248,0.98); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); overflow: hidden; max-height: 0; transition: max-height 0.3s ease; }
.nav-drawer.open { max-height: 420px; }
.nav-drawer-link { padding: 1rem 1.25rem; font-size: 15px; color: var(--ink-2); border-bottom: 0.5px solid var(--border); cursor: pointer; }
.nav-drawer-link:active { background: var(--paper-2); }

/* HERO */
.hero { padding: 7.5rem 0 0; border-bottom: 0.5px solid var(--border); }
.hero-meta { display: flex; justify-content: space-between; margin-bottom: 3.5rem; }
.hero-tag { font-family: var(--font-mono); font-size: 10px; color: var(--ink-4); letter-spacing: 0.08em; }
.hero-h1 { font-family: var(--font-serif); font-weight: 600; font-size: clamp(40px, 5.2vw, 66px); letter-spacing: -0.025em; line-height: 1.06; max-width: 800px; color: var(--ink); }
.hero-bottom { display: grid; grid-template-columns: 1fr 360px; gap: 4rem; align-items: end; padding: 4.75rem 0 6.5rem; }
.hero-sub { font-size: 17px; font-weight: 400; line-height: 1.72; color: var(--ink-3); }
.hero-right { text-align: right; }
.btn-ink { display: inline-block; font-weight: 700; font-size: 13px; background: var(--ink); color: var(--paper); padding: 13px 28px; border-radius: var(--r-sm); transition: background 0.2s, transform 0.15s; letter-spacing: 0.01em; cursor: pointer; }
.btn-ink:hover { background: var(--ink-2); transform: translateY(-2px); }
.btn-ink:active { transform: translateY(0); }
.hero-ticker { border-top: 0.5px solid var(--border); }

/* TICKER */
.stats-sources { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 2px solid var(--teal); }
.stats-source-btn { padding: 1.2rem 1rem; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; cursor: pointer; border: none; background: none; border-right: 0.5px solid var(--border); transition: background 0.2s; position: relative; }
.stats-source-btn:last-child { border-right: none; }
.stats-source-btn:hover { background: var(--paper-2); }
.stats-source-btn.active { background: var(--teal-light); }
.stats-source-btn.active::after { content: ''; position: absolute; bottom: -2px; left: 20%; right: 20%; height: 2px; background: var(--ink); }
.stats-source-btn svg { width: 42px; height: 42px; color: var(--teal); transition: color 0.2s; }
.stats-source-btn.active svg { color: var(--ink); }
.stats-source-btn-label { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal); transition: color 0.2s; }
.stats-source-btn.active .stats-source-btn-label { color: var(--ink); }
.stats-detail { overflow: hidden; background: var(--teal-light); border-bottom: 0.5px solid var(--border); }
.stats-detail-inner { animation: fadeIn 0.2s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.stats-detail-cols { display: grid; grid-template-columns: 0.85fr 1fr 1fr; gap: 0; max-width: 920px; margin: 0 auto; padding: 2.5rem 3rem 2.8rem; }
.stats-detail-col { padding: 0 2.2rem; border-right: 0.5px solid rgba(13,148,136,0.15); }
.stats-detail-col:last-child { border-right: none; }
.stats-col-header { font-size: 9px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal-dark); margin-bottom: 1.1rem; display: block; }
.stats-line { margin-bottom: 0.85rem; }
.stats-val { font-family: var(--font-serif); font-weight: 600; font-size: 25px; letter-spacing: -0.025em; color: var(--ink); line-height: 1.05; display: block; }
.stats-txt { font-size: 10.5px; color: var(--ink-3); line-height: 1.4; display: block; margin-top: 2px; }
.stats-region-note { font-size: 10px; letter-spacing: 0.14em; color: var(--ink-4); text-align: center; margin: 1.5rem 0 0; text-transform: uppercase; opacity: 0.65; font-weight: 500; }

/* PROBLEM */
.problem-grid { display: grid; grid-template-columns: 0.92fr 1fr; gap: 3.5rem; align-items: stretch; }
.problem-panel { position: relative; overflow: hidden; min-height: 480px; display: flex; flex-direction: column; }
.problem-figure { position: relative; flex: 1 1 auto; overflow: hidden; margin-top: 0.75rem; }
.problem-panel-img { position: absolute; bottom: -32%; left: 40%; transform: translateX(-50%); height: 162%; width: auto; filter: brightness(0); opacity: 0.4; z-index: 1; }
.problem-panel-header { position: relative; z-index: 2; }
.problem-panel-header .eyebrow { color: var(--ink-4); }
.problem-h2-over { font-family: var(--font-serif); font-weight: 600; font-size: clamp(26px, 3vw, 38px); letter-spacing: -0.02em; line-height: 1.1; color: var(--ink); margin-top: 0.75rem; }
.problem-body { display: flex; flex-direction: column; }
.problem-body p { font-size: 16px; font-weight: 400; color: var(--ink-3); margin-bottom: 1.25rem; line-height: 1.8; }
.problem-body p:last-of-type { margin-bottom: 0; }
.problem-closing { margin-top: auto; padding-top: 2.25rem; }
.problem-statement { font-family: var(--font-serif); font-weight: 600; font-size: clamp(21px, 2.1vw, 27px); letter-spacing: -0.02em; line-height: 1.18; color: var(--teal-dark); margin-top: auto; padding-top: 2.25rem; max-width: 22ch; }

/* WHY NOW */
.why-bg { background: var(--paper-2); }
.why-header { display: grid; grid-template-columns: 1fr; gap: 1.5rem; align-items: start; padding-bottom: 2.75rem; margin-bottom: 2.75rem; border-bottom: 0.5px solid var(--border-md); }
.why-h2 { font-family: var(--font-serif); font-weight: 600; font-size: clamp(26px, 3vw, 38px); letter-spacing: -0.02em; line-height: 1.08; margin-top: 0.75rem; white-space: nowrap; }
.why-box { max-width: 46rem; }
.why-box p { font-family: var(--font-sans); font-size: 17px; line-height: 1.7; color: var(--ink-2); font-weight: 400; margin: 0; }
.why-box strong { color: var(--ink); font-weight: 600; }

/* maturity matrix */
.why-matrix { border: 0.5px solid var(--border-md); border-radius: var(--r-lg); overflow: hidden; background: var(--paper); }
.wm-row { display: grid; grid-template-columns: 1.9fr repeat(4, 1fr); }
.wm-row:not(:last-child) { border-bottom: 0.5px solid var(--border); }
.wm-cell { padding: 1.05rem 1.15rem; border-left: 0.5px solid var(--border); display: flex; flex-direction: column; justify-content: center; }
.wm-cell:first-child { border-left: none; }
.wm-head { background: var(--paper-2); }
.wm-head-cell { gap: 0.3rem; }
.wm-colnum { font-family: var(--font-mono); font-size: 10px; color: var(--teal); letter-spacing: 0.08em; }
.wm-collabel { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); line-height: 1.25; }
.wm-collabel-lead { color: var(--ink-4); }
.wm-domain-cell { flex-direction: row; align-items: center; justify-content: flex-start; gap: 0.7rem; }
.wm-ico { width: 24px; height: 24px; color: var(--ink-3); flex-shrink: 0; display: flex; }
.wm-ico svg { width: 100%; height: 100%; }
.wm-domain { font-family: var(--font-serif); font-weight: 600; font-size: 15.5px; color: var(--ink); line-height: 1.15; white-space: nowrap; }
.wm-row-emr .wm-domain { white-space: normal; }
.wm-era { font-size: 14px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.wm-note { font-size: 11px; font-weight: 300; color: var(--ink-3); line-height: 1.4; margin-top: 3px; }
.wm-stage { display: none; }
.wm-cellval { display: flex; flex-direction: column; }

.wm-row-emr { background: var(--teal-light); }
.wm-row-emr .wm-cell { border-left-color: rgba(8,80,65,0.12); }
.wm-row-emr .wm-domain-cell { border-left: 2px solid var(--teal); padding-left: calc(1.15rem - 2px); }
.wm-row-emr .wm-ico { color: var(--teal-dark); }
.wm-row-emr .wm-domain { color: var(--teal-dark); }
.wm-now { color: var(--teal-dark); display: inline-flex; align-items: center; gap: 6px; }
.wm-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); display: inline-block; }
.wm-cell-ahead .wm-era { color: var(--ink-4); font-weight: 500; }
.wm-cell-ahead .wm-note { color: var(--ink-4); font-style: italic; }
.wm-coming { color: var(--teal) !important; font-weight: 600 !important; }
.wm-foot-note { margin: 1rem 0 0; text-align: right; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-4); }

/* radiation footnote (paper, hairline — rhymes with the table columns) */
.why-foot { margin-top: 2.75rem; padding-top: 2.25rem; border-top: 0.5px solid var(--border-md); display: grid; grid-template-columns: 1.9fr 2fr 2fr; gap: 0 2.5rem; align-items: start; }
.why-foot-label { display: flex; align-items: center; gap: 0.65rem; }
.why-foot-ico { width: 22px; height: 22px; color: var(--teal); flex-shrink: 0; display: flex; }
.why-foot-ico svg { width: 100%; height: 100%; }
.why-foot .why-emr-note-label { font-size: 10px; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: var(--teal); }
.why-foot p { font-size: 13.5px; font-weight: 300; line-height: 1.75; color: var(--ink-3); margin: 0; }
.why-foot strong { color: var(--ink-2); font-weight: 600; }
.why-copy { font-size: 14px; font-weight: 300; color: var(--ink-3); line-height: 1.72; }

/* PROGRESSION (dark) */
.prog-bg { background: var(--night); }
.prog-section { padding: 5rem 0; }
.prog-eyebrow { font-size: 10px; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: var(--teal-mid); }
.prog-h2 { font-family: var(--font-serif); font-weight: 600; font-size: clamp(24px, 2.8vw, 34px); letter-spacing: -0.02em; color: #fff; margin-top: 0.75rem; margin-bottom: 2.5rem; line-height: 1.1; }
.prog-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border: 0.5px solid rgba(255,255,255,0.1); border-radius: 12px; overflow: hidden; }
.prog-col { display: flex; flex-direction: column; background: rgba(255,255,255,0.02); border-right: 0.5px solid rgba(255,255,255,0.07); cursor: pointer; transition: background 0.2s; position: relative; }
.prog-col:not(:last-child)::after { content: '\2192'; position: absolute; right: -9px; top: 50%; transform: translateY(-50%); z-index: 3; font-size: 14px; line-height: 1; color: var(--teal-mid); background: var(--night); padding: 6px 2px; opacity: 0.7; transition: opacity 0.2s, color 0.2s; }
.prog-col:hover::after, .prog-col.active::after { opacity: 1; }
.prog-col:last-child { border-right: none; }
.prog-col.active, .prog-col:hover { background: rgba(29,158,117,0.07); }
.prog-col-top { padding: 1.25rem 1.25rem 1rem; border-bottom: 0.5px solid rgba(255,255,255,0.07); display: flex; align-items: flex-start; justify-content: space-between; gap: 0.5rem; }
.prog-step-label { font-family: var(--font-serif); font-weight: 600; font-size: 16px; color: rgba(255,255,255,0.88); letter-spacing: -0.01em; line-height: 1.1; }
.prog-col.active .prog-step-label { color: var(--teal-mid); }
.prog-step-num { font-size: 10px; font-weight: 700; color: rgba(255,255,255,0.18); flex-shrink: 0; margin-top: 3px; }
.prog-col-body { padding: 1.25rem; flex: 1; }
.prog-col-title { font-size: 11px; font-weight: 700; color: var(--teal-mid); margin-bottom: 0.5rem; letter-spacing: 0.04em; }
.prog-col-text { font-size: 12px; font-weight: 300; color: rgba(255,255,255,0.38); line-height: 1.65; }

/* PILLARS */
.pillars-header { display: grid; grid-template-columns: 1fr; gap: 1.5rem; align-items: start; margin-bottom: 3.5rem; }
.pillars-h2 { font-family: var(--font-serif); font-weight: 600; font-size: clamp(26px, 3vw, 40px); letter-spacing: -0.02em; line-height: 1.08; margin-top: 0.75rem; }
.pillars-intro { max-width: 46rem; font-size: 17px; font-weight: 400; color: var(--ink-2); line-height: 1.7; }
.pillars-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pillar-card { border: 0.5px solid var(--border-md); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; transition: border-color 0.2s, transform 0.2s; }
.pillar-card:hover { border-color: rgba(0,0,0,0.22); transform: translateY(-3px); }
.pillar-head { padding: 2rem 2rem 1.5rem; border-bottom: 0.5px solid var(--border); background: var(--paper); }
.pillar-meta { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 0.9rem; }
.pillar-n { font-family: var(--font-mono); font-size: 11px; color: var(--ink-4); letter-spacing: 0.06em; }
.pillar-eyebrow-tag { font-size: 10px; font-weight: 700; letter-spacing: 0.11em; text-transform: uppercase; color: var(--teal); }
.pillar-eyebrow-muted { font-size: 10px; font-weight: 700; letter-spacing: 0.11em; text-transform: uppercase; color: var(--ink-4); }
.pillar-h3 { font-family: var(--font-serif); font-weight: 600; font-size: 22px; letter-spacing: -0.02em; color: var(--ink); margin-bottom: 0.35rem; line-height: 1.15; }
.pillar-subtitle { font-size: 13px; font-weight: 400; color: var(--ink-3); }
.pillar-body { padding: 1.75rem 2rem 2rem; flex: 1; background: var(--paper); }
.pillar-body p { font-size: 14px; font-weight: 400; color: var(--ink-3); line-height: 1.8; margin-bottom: 1.1rem; }
.pillar-body p:last-of-type { margin-bottom: 0; }
.pillar-action { margin-top: 1.5rem; }
.pillar-link { font-size: 13px; font-weight: 700; color: var(--teal); display: inline-flex; align-items: center; gap: 4px; transition: gap 0.2s, color 0.2s; cursor: pointer; }
.pillar-link:hover { gap: 8px; color: var(--teal-dark); }
.pillar-link-muted { font-family: var(--font-mono); font-size: 12px; color: var(--ink-4); }
.pillar-foot { padding: 1rem 2rem; background: var(--paper-2); border-top: 0.5px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.status-live { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--teal); }
.status-dev { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-4); }

/* PRINCIPLES (dark) */
.principles-bg { background: var(--night-2); }
.principles-section { padding: 6.5rem 0; }
.principles-inner { display: grid; grid-template-columns: 280px 1fr; gap: 5.5rem; align-items: start; }
.principles-h2 { font-family: var(--font-serif); font-weight: 600; font-size: clamp(24px, 2.8vw, 32px); letter-spacing: -0.02em; color: #fff; line-height: 1.1; margin-top: 0.75rem; }
.principles-sub { font-size: 13px; font-weight: 300; color: rgba(255,255,255,0.48); margin-top: 1rem; line-height: 1.75; }
.principles-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 0.5px solid rgba(255,255,255,0.08); border-radius: var(--r-lg); overflow: hidden; }
.principle { padding: 1.6rem 1.5rem; border-right: 0.5px solid rgba(255,255,255,0.08); border-bottom: 0.5px solid rgba(255,255,255,0.08); transition: background 0.2s; }
.principle:hover { background: rgba(255,255,255,0.03); }
.principle:nth-child(2n) { border-right: none; }
.principle:nth-last-child(-n+2) { border-bottom: none; }
.p-n { font-family: var(--font-mono); font-size: 13px; font-weight: 700; color: var(--teal-mid); letter-spacing: 0.08em; display: block; margin-bottom: 0.6rem; }
.p-title { font-family: var(--font-serif); font-weight: 600; font-size: 15px; color: #fff; letter-spacing: -0.01em; margin-bottom: 0.5rem; }
.p-body { font-size: 13px; font-weight: 300; color: rgba(255,255,255,0.55); line-height: 1.7; }

/* GET INVOLVED */
.final-bg { background: var(--paper); border-top: 0.5px solid var(--border); padding: 6.5rem 0; }
.final-inner { display: grid; grid-template-columns: 0.8fr 1fr; gap: 5.5rem; align-items: start; }
.final-h2 { font-family: var(--font-serif); font-weight: 600; letter-spacing: -0.02em; color: var(--ink); line-height: 1.08; }
.final-h2-line1 { display: block; font-size: clamp(32px, 3.8vw, 50px); font-weight: 600; }
.final-h2 em { font-style: italic; font-weight: 300; color: var(--ink-3); display: block; font-size: clamp(20px, 2.4vw, 28px); margin-top: 0.6rem; }
.final-quote { background: var(--teal-light); border-radius: 10px; padding: 1.25rem 1.5rem; margin-bottom: 1.5rem; }
.final-quote p { font-size: 14px; font-weight: 400; color: var(--teal-dark); line-height: 1.7; margin: 0; }
.final-links { display: flex; flex-direction: column; gap: 0; border: 0.5px solid var(--border-md); border-radius: var(--r-md); overflow: hidden; }
.final-link { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.5rem; border-bottom: 0.5px solid var(--border); background: transparent; cursor: pointer; transition: background 0.2s, transform 0.15s; border-left: 2px solid transparent; }
.final-link:last-of-type { border-bottom: none; }
.final-link:hover { background: var(--paper-2); transform: translateX(2px); }
.final-link.fl-active { border-left: 2px solid var(--teal); background: var(--teal-light); }
.final-link.fl-active .fl-label { color: var(--teal-dark); }
.fl-label { font-size: 14px; font-weight: 500; color: var(--ink-3); }
.fl-sub { font-size: 12px; color: var(--ink-4); margin-top: 2px; font-family: var(--font-mono); }
.fl-arrow { font-size: 14px; color: var(--ink-4); display: inline-block; transition: color 0.2s, transform 0.2s; }
.final-link:hover .fl-arrow { color: var(--ink); transform: translateX(3px); }
.fl-slider { overflow: hidden; background: var(--paper-2); border-bottom: 0.5px solid var(--border); }
.fl-slider-pad { padding: 1.5rem; }
.fl-slider p { font-size: 14px; font-weight: 400; color: var(--ink-3); line-height: 1.7; margin-bottom: 1rem; }
.btn-teal { display: inline-block; font-weight: 700; font-size: 13px; background: var(--teal); color: #fff; padding: 11px 24px; border-radius: var(--r-sm); transition: background 0.2s, transform 0.15s; cursor: pointer; border: none; }
.btn-teal:hover { background: var(--teal-dark); transform: translateY(-1px); }
.btn-teal:active { transform: translateY(0); }

/* ── REFINED: surfaced 'Why we say radiation' note (nested in EMR row) ── */
.why-emr-note { padding: 1.2rem 1.4rem; background: #fff; border: 0.5px solid rgba(8,80,65,0.16); border-radius: var(--r-md); }
.why-emr-note-label { display: block; font-size: 10px; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: var(--teal-dark); margin-bottom: 0.7rem; }
.why-emr-note p { font-size: 13px; font-weight: 300; line-height: 1.72; color: var(--ink-3); margin-bottom: 0.7rem; }
.why-emr-note p:last-child { margin-bottom: 0; }
.why-emr-note strong { color: var(--ink-2); font-weight: 600; }

/* ── REFINED: focus-visible rings ── */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .stats-source-btn:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.photy-img { width: 84px; height: 84px; object-fit: contain; }
.fl-form-stub { display: flex; flex-direction: column; gap: 0.75rem; max-width: 360px; }
.fl-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.fl-form-stub input, .fl-form-stub select { font-family: var(--font-sans); font-size: 13px; padding: 10px 14px; border: 0.5px solid var(--border-md); border-radius: var(--r-sm); background: var(--paper); outline: none; transition: border-color 0.2s; width: 100%; }
.fl-form-stub input:focus, .fl-form-stub select:focus { border-color: var(--teal); }
.fl-form-stub input::placeholder { color: var(--ink-4); }
.fl-form-stub textarea { font-family: var(--font-sans); font-size: 13px; padding: 10px 14px; border: 0.5px solid var(--border-md); border-radius: var(--r-sm); background: var(--paper); outline: none; transition: border-color 0.2s; width: 100%; min-height: 64px; resize: vertical; }
.fl-form-stub textarea:focus { border-color: var(--teal); }
.fl-form-stub textarea::placeholder { color: var(--ink-4); }
.fl-consent { display: flex; align-items: flex-start; gap: 8px; padding: 4px 0 0; }
.fl-consent input[type="checkbox"] { width: 14px; height: 14px; margin-top: 2px; accent-color: var(--teal); flex-shrink: 0; cursor: pointer; }
.fl-consent label { font-size: 11px; color: var(--ink-3); line-height: 1.5; cursor: pointer; }
.fl-consent label a { color: var(--teal-dark); text-decoration: underline; cursor: pointer; }

/* FOOTER */
footer { border-top: 1px solid #D4D3CF; padding: 2.5rem 0; background: var(--paper); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-left { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.footer-logo { font-family: var(--font-serif); font-weight: 600; font-size: 15px; letter-spacing: -0.045em; }
.footer-logo .nl-teal { color: var(--teal); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: 12px; color: var(--ink-4); transition: color 0.2s; cursor: pointer; }
.footer-links a:hover { color: var(--ink); }
.footer-copy { font-family: var(--font-mono); font-size: 11px; color: var(--ink-4); }

/* dual-renderer maturity matrix — desktop table by default, mobile accordion at ≤820px */
.why-mobile { display: none; }

@media (max-width: 820px) {
  .why-desktop { display: none; }
  .why-mobile { display: block; }

  /* card shell */
  .why-mobile .mcard { background: var(--paper); border: 0.5px solid var(--border-md); border-radius: var(--r-lg); overflow: hidden; margin-bottom: 12px; }
  .why-mobile .mcard:last-child { margin-bottom: 0; }
  .why-mobile .mc-head { display: flex; align-items: center; gap: 0.6rem; padding: 0.95rem 1rem; border-bottom: 0.5px solid var(--border); width: 100%; background: transparent; border-left: none; border-right: none; border-top: none; text-align: left; cursor: pointer; font: inherit; color: inherit; }
  .why-mobile .mc-ico { width: 22px; height: 22px; color: var(--ink-3); flex-shrink: 0; display: flex; }
  .why-mobile .mc-ico svg { width: 100%; height: 100%; }
  .why-mobile .mc-name { font-family: var(--font-serif); font-weight: 600; font-size: 16px; color: var(--ink); }
  .why-mobile .mc-head-l { display: flex; align-items: center; gap: 0.6rem; flex: 1; }
  .why-mobile .mc-sum { font-family: 'Courier New', monospace; font-size: 10px; letter-spacing: 0.04em; color: var(--ink-4); margin-right: 0.6rem; }
  .why-mobile .chev { width: 13px; height: 13px; color: var(--ink-4); transition: transform 0.25s; flex-shrink: 0; }
  .why-mobile .mcard.open .chev { transform: rotate(180deg); }
  .why-mobile .tray { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
  .why-mobile .mcard.open .tray { max-height: 480px; }

  /* EMR tray highlight */
  .why-mobile .mcard.emr { background: var(--teal-light); border-color: rgba(8,80,65,0.18); border-left: 2px solid var(--teal); }
  .why-mobile .mcard.emr .mc-head { border-bottom-color: rgba(8,80,65,0.14); }
  .why-mobile .mcard.emr .mc-ico,
  .why-mobile .mcard.emr .mc-name,
  .why-mobile .mcard.emr .mc-sum { color: var(--teal-dark); }

  /* timeline */
  .why-mobile .tl { padding: 0.5rem 1rem 0.9rem; }
  .why-mobile .step { position: relative; padding: 0.55rem 0 0.55rem 1.4rem; }
  .why-mobile .step::before { content: ''; position: absolute; left: 3px; top: 0; bottom: 0; width: 1px; background: var(--border-md); }
  .why-mobile .step:first-child::before { top: 12px; }
  .why-mobile .step:last-child::before { bottom: auto; height: 12px; }
  .why-mobile .step::after { content: ''; position: absolute; left: 0; top: 11px; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--ink-4); background: var(--paper); }
  .why-mobile .stage { display: block; font-size: 9.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-4); }
  .why-mobile .era { font-size: 14px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; display: inline-block; margin-top: 3px; }
  .why-mobile .note { font-size: 11px; font-weight: 400; color: var(--ink-3); line-height: 1.4; display: inline; margin-left: 6px; }
  .why-mobile .coming { color: var(--teal); font-weight: 600; font-size: 13px; display: inline-block; margin-top: 3px; }

  /* EMR-specific timeline coloring */
  .why-mobile .mcard.emr .step.live::after { background: var(--teal); border-color: var(--teal); }
  .why-mobile .mcard.emr .step.up::after { border-color: var(--teal); }
  .why-mobile .mcard.emr .step::before { background: rgba(8,80,65,0.16); }
}

@media (prefers-reduced-motion: reduce) {
  .why-mobile .tray, .why-mobile .chev { transition: none; }
}

@media (max-width: 860px) {
  .container { padding: 0 1.25rem; }
  .hero-bottom, .problem-grid, .why-header, .pillars-header, .pillars-grid, .principles-inner, .principles-grid, .final-inner { grid-template-columns: 1fr; gap: 2rem; }
  .why-h2 { white-space: normal; }
  .why-foot { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero-right { text-align: left; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-drawer { display: flex; }
  .prog-grid { grid-template-columns: 1fr 1fr; }
  .stats-detail-cols { grid-template-columns: 1fr; }
  .problem-panel { min-height: 340px; }
}

@media (max-width: 600px) {
  section { padding: 3.75rem 0; }
  .prog-section, .principles-section, .final-bg { padding: 3.75rem 0; }
  .hero { padding: 5rem 0 0; }
  .hero-bottom { padding: 2.75rem 0 3.75rem; }

  /* ticker: 2x2 sources */
  .stats-sources { grid-template-columns: 1fr 1fr; }
  .stats-source-btn:nth-child(2) { border-right: none; }
  .stats-source-btn:nth-child(-n+2) { border-bottom: 0.5px solid var(--border); }
  .stats-detail-cols { padding: 1.75rem 1.5rem 2rem; }

  /* maturity matrix mobile rules removed — now handled by .why-mobile accordion at 820px breakpoint */
  .wm-foot-note { text-align: left; }

  /* progression: single column, drop arrows */
  .prog-grid { grid-template-columns: 1fr; }
  .prog-col { border-right: none; border-bottom: 0.5px solid rgba(255,255,255,0.07); }
  .prog-col:last-child { border-bottom: none; }
  .prog-col:not(:last-child)::after { display: none; }

  /* principles: single column */
  .principle { border-right: none; }
  .principle:nth-last-child(-n+2) { border-bottom: 0.5px solid rgba(255,255,255,0.08); }
  .principle:last-child { border-bottom: none; }

  .fl-form-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
