/* NeuroPenetrance · direction A "Clinical clarity" */
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-ext.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/plex-mono-latin-500.woff2") format("woff2"); font-weight: 500; font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/plex-mono-latin-ext-500.woff2") format("woff2"); font-weight: 500; font-display: swap;
  unicode-range: U+0100-02BA, U+1E00-1E9F; }

:root {
  --navy: #0D2438; --teal: #0B6E79; --teal-dark: #08545C; --teal-soft: #E6F2F3;
  --slate: #4C5D6E; --muted: #5E6E7F; --input-border: #7F8FA0; --panel: #F3F6F9; --line: #E3E8EE; --white: #FFFFFF; --amber: #B7791F; --amber-line: #E1A33D;
  --radius: 14px; --max: 1160px; --read: 760px;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--navy); background: var(--white); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); }
a:hover { color: var(--teal-dark); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 4px; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 12px; }

/* type */
h1, h2, h3, h4 { color: var(--navy); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; overflow-wrap: break-word; hyphens: auto; }
h1 { font-size: clamp(2.1rem, 4.2vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.eyebrow { font-family: var(--mono); font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); font-weight: 500; display: block; margin-bottom: 12px; }
.lede { font-size: 1.18rem; color: var(--slate); max-width: 640px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.prose { max-width: var(--read); }
.prose p, .prose li { color: var(--slate); }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 999px; padding: 12px 22px; font-weight: 600; font-size: 15.5px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background .15s, color .15s; font-family: var(--sans); }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); color: #fff; }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-sm { padding: 8px 15px; font-size: 14px; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

/* header */
.site-header { position: sticky; top: 0; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); z-index: 50; }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--navy); margin-right: auto; }
.brand-icon { width: 36px; height: 28px; }
.brand-name { font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.brand-name span { color: var(--teal); }
.primary-nav { display: flex; align-items: center; gap: 18px; }
.primary-nav > a:not(.btn) { color: var(--slate); text-decoration: none; font-size: 14.5px; font-weight: 500; white-space: nowrap; }
.primary-nav .btn { white-space: nowrap; }
.primary-nav > a:not(.btn):hover, .primary-nav > a[aria-current="page"] { color: var(--navy); }
.primary-nav > a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--teal); }
.lang-switch { display: inline-flex; gap: 5px; font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--muted); }
.lang-switch a { color: var(--muted); text-decoration: none; }
.lang-switch a[aria-current] { color: var(--navy); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; font-size: 20px; width: 44px; height: 44px; cursor: pointer; color: var(--navy); }
@media (max-width: 1180px) {
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .primary-nav { display: none; position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 24px 18px; box-shadow: 0 12px 24px rgba(13,36,56,.08); }
  .primary-nav.open { display: flex; }
  .primary-nav > a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .primary-nav .lang-switch { padding: 14px 0; font-size: 15px; }
  .primary-nav .btn { margin-top: 10px; }
}

/* sections */
.section { padding: 80px 0; }
.section-tight { padding: 48px 0; }
.section.alt { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 36px; }
.page-head { padding: 64px 0 24px; }
.page-head .lede { margin-bottom: 0; }

/* hero */
.hero { padding: 72px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* app card (hero illustration) */
.app-card { background: var(--navy); color: #E7EEF2; border-radius: 18px; padding: 22px; box-shadow: 0 24px 48px rgba(13,36,56,.18); }
.app-card .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-weight: 600; font-size: 14px; }
.ruo { font-size: 10.5px; font-weight: 800; letter-spacing: .1em; border: 1px solid var(--amber-line); color: var(--amber-line); border-radius: 5px; padding: 3px 7px; white-space: nowrap; }
.ruo.on-light { color: var(--amber); border-color: var(--amber-line); }
.gauge { position: relative; width: 170px; height: 92px; margin: 6px auto 0; }
.gauge svg { width: 170px; height: 92px; }
.gauge .v { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; font-size: 32px; font-weight: 800; color: #fff; }
.app-card .cap { text-align: center; font-size: 12px; opacity: .75; margin: 2px 0 12px; }
.bars div { display: flex; align-items: center; gap: 10px; margin: 7px 0; font-size: 12.5px; }
.bars span { width: 70px; }
.bars i { display: block; height: 8px; border-radius: 6px; }

/* trust strip */
.trust { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(5, 1fr); }
.trust-grid div { padding: 22px 12px; font-size: 13.5px; color: var(--slate); line-height: 1.35; }
.trust-grid b { display: block; font-size: 24px; color: var(--navy); letter-spacing: -.02em; }
@media (max-width: 760px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }

/* cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .cards, .cards.two { grid-template-columns: 1fr; } }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: #fff; }
.card p { color: var(--slate); font-size: 15.5px; margin-bottom: 0; }
.card .ic { font-size: 24px; margin-bottom: 6px; }
.card-link { text-decoration: none; color: inherit; display: block; transition: border-color .15s, box-shadow .15s; }
.card-link:hover { border-color: var(--teal); box-shadow: 0 10px 24px rgba(13,36,56,.08); color: inherit; }
.card-link .go { color: var(--teal); font-weight: 600; margin-top: 12px; display: inline-block; }

/* banner (Engine 1) */
.banner { display: flex; gap: 16px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; font-size: 15.5px; color: var(--slate); }
.tag { font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; background: var(--teal-soft); color: var(--teal); border-radius: 6px; padding: 4px 9px; white-space: nowrap; font-weight: 500; }
@media (max-width: 640px) { .banner { flex-direction: column; align-items: flex-start; } }

/* steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.steps li { counter-increment: step; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: #fff; color: var(--slate); font-size: 15px; }
.steps li::before { content: counter(step); display: inline-flex; width: 30px; height: 30px; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 700; align-items: center; justify-content: center; margin-bottom: 10px; }
.steps li strong { display: block; color: var(--navy); margin-bottom: 4px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* lists, tables */
.check-list { list-style: none; padding: 0; }
.check-list li { padding-left: 28px; position: relative; margin: 8px 0; color: var(--slate); }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 800; }
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 15px; }
table.data th, table.data td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
table.data th { font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }

/* split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.shot { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: 0 16px 36px rgba(13,36,56,.12); overflow: hidden; background: #fff; }
.shot figcaption { font-size: 13px; color: var(--muted); padding: 10px 14px; border-top: 1px solid var(--line); }

/* callouts */
.callout { border-left: 4px solid var(--teal); background: var(--teal-soft); padding: 16px 20px; border-radius: 0 12px 12px 0; color: var(--navy); margin: 24px 0; }
.callout-label, .plain-label { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--teal); display: block; margin-bottom: 6px; }
.todo-note { border: 2px dashed var(--amber-line); background: #FFF8EC; color: #6B4A0E; padding: 14px 18px; border-radius: 12px; margin: 16px 0 28px; }

/* forms */
.form-card { border: 1px solid var(--line); border-radius: 18px; padding: 32px; background: #fff; box-shadow: 0 12px 30px rgba(13,36,56,.06); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } .form-card { padding: 22px; } }
label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--navy); }
input, select, textarea { width: 100%; font: inherit; font-size: 16px; padding: 11px 13px; border: 1px solid var(--input-border); border-radius: 10px; background: #fff; color: var(--navy); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(11,110,121,.15); }
textarea { min-height: 130px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.form-status { margin-top: 14px; font-weight: 600; }

/* evidence (kept components) */
.plain-box { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; }
.console { border: 1px solid var(--line); border-radius: 18px; padding: 28px; background: #fff; box-shadow: 0 12px 30px rgba(13,36,56,.06); }
.console-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 22px; }
.dataset-id { font-family: var(--mono); font-size: 13px; color: var(--teal); }
.dataset-meta { font-size: 13.5px; color: var(--muted); }
.console-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; }
@media (max-width: 860px) { .console-grid { grid-template-columns: 1fr; } }
.bar-row { margin-bottom: 20px; }
.bar-label { display: flex; justify-content: space-between; font-size: 15px; margin-bottom: 6px; color: var(--navy); }
.bar-track { height: 12px; background: var(--panel); border-radius: 8px; overflow: hidden; }
.bar-fill { height: 100%; transition: width 1.1s cubic-bezier(.2,.7,.2,1); }
.bar-fill.baseline { background: #C9D3DD; } .bar-fill.full { background: #8FA6BA; } .bar-fill.signature { background: var(--teal); }
.bar-sub { margin-top: 6px; font-size: 13.5px; color: var(--muted); }
.gene-block { margin-bottom: 14px; }
.gh { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; color: var(--muted); margin-bottom: 6px; }
.gene-chip { display: inline-block; font-family: var(--mono); font-size: 13px; border-radius: 6px; padding: 4px 10px; margin: 3px 4px 3px 0; }
.gene-block.inflam .gene-chip { background: #FBE9EC; color: #8C1D2B; }
.gene-block.lymph .gene-chip { background: var(--teal-soft); color: var(--teal-dark); }
.console-note { margin: 22px 0 0; font-size: 14.5px; color: var(--slate); border-top: 1px solid var(--line); padding-top: 16px; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 760px) { .stat-row { grid-template-columns: 1fr; } }
.stat-cell { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.stat-cell .num { font-size: 28px; font-weight: 800; color: var(--navy); }
.stat-cell .label { font-size: 14px; color: var(--slate); }

/* team */
.person-card { display: grid; grid-template-columns: 96px 1fr; gap: 22px; border: 1px solid var(--line); border-radius: 18px; padding: 26px; margin-bottom: 20px; }
@media (max-width: 600px) { .person-card { grid-template-columns: 1fr; } }
.initials { width: 96px; height: 96px; border-radius: 50%; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 28px; }
.person-card .role { color: var(--teal); font-weight: 600; margin-bottom: 10px; }

/* tabs (science literature) */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tab { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 16px; font: inherit; font-size: 14.5px; cursor: pointer; color: var(--slate); }
.tab.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.tab-panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }

/* CTA band */
.cta-band { background: var(--navy); color: #E7EEF2; border-radius: 22px; padding: 44px; display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { margin: 0; color: #B9C7D4; }

/* footer */
.site-footer { background: var(--navy); color: #B9C7D4; margin-top: 40px; font-size: 14.5px; }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; padding: 52px 24px 28px; }
.site-footer nav { display: flex; flex-direction: column; gap: 8px; }
.site-footer a { color: #E7EEF2; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.brand-footer .brand-name { color: #fff; }
.brand-footer .brand-name span { color: #5FC4CC; }
.footer-base { border-top: 1px solid rgba(255,255,255,.12); padding: 16px 24px 28px; font-size: 13px; color: #8FA6BA; }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; } }

/* carried-over helpers */
:root { --text-mid: #4C5D6E; --text-dim: #6B7B8C; }
.btn-ghost { border-color: var(--line); color: var(--navy); background: #fff; }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }
.section-title { margin-top: 0; }
.stat-cell .num.small { font-size: 24px; }
.citation-list { display: grid; gap: 10px; margin-top: 14px; }
.citation-card { display: block; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; text-decoration: none; color: inherit; }
.citation-card:hover { border-color: var(--teal); color: inherit; }
.citation-title { display: block; font-weight: 600; color: var(--navy); }
.citation-meta { display: block; font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.form-status.error { color: #A6192E; }
.roadmap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.roadmap .card { border-top: 4px solid var(--teal); }
.roadmap .card.next { border-top-color: #8FA6BA; }
.roadmap .card.later { border-top-color: #C9D3DD; }
@media (max-width: 860px) { .roadmap { grid-template-columns: 1fr; } }
