/* =========================================================
   DANA Brain Vital — data-driven / dashboard aesthetic
   Self-contained, no external assets.
   ========================================================= */

:root {
  /* Core palette */
  --ink:        #0A1A33;
  --ink-2:      #142c4d;
  --bg:         #f4f7fb;
  --bg-alt:     #eef3f9;
  --surface:    #ffffff;
  --text:       #16233a;
  --muted:      #5b6b82;
  --muted-2:    #8493a8;
  --line:       #e2e9f2;
  --line-2:     #d3deec;

  /* Accents */
  --primary:    #2563eb;
  --primary-600:#1d4ed8;
  --primary-050:#eaf1ff;
  --teal:       #0ea5a4;
  --teal-050:   #e2f7f6;
  --orange:     #f97316;
  --amber:      #f59e0b;
  --green:      #16a34a;
  --violet:     #7c3aed;
  --rose:       #e11d48;

  /* Chart categorical (accessible, distinct) */
  --c-1: #2563eb;
  --c-2: #0ea5a4;
  --c-3: #7c3aed;
  --c-4: #f59e0b;
  --c-5: #e11d48;
  --c-6: #16a34a;
  --c-muted: #9fb0c6;

  --radius:   16px;
  --radius-sm:10px;
  --shadow:   0 1px 2px rgba(10,26,51,.06), 0 8px 24px rgba(10,26,51,.06);
  --shadow-lg:0 12px 40px rgba(10,26,51,.14);
  --maxw: 1160px;
  --mono: ui-monospace, "SF Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.18rem; }
p  { margin: 0 0 1rem; }
a  { color: var(--primary); text-decoration: none; }
code { font-family: var(--mono); font-size: .88em; background: var(--bg-alt); padding: .1em .4em; border-radius: 5px; color: var(--ink-2); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 820px; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; justify-content: center;
  font-weight: 600; font-size: .95rem; font-family: inherit;
  padding: .7rem 1.25rem; border-radius: 10px; border: 1px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn-sm { padding: .5rem .9rem; font-size: .875rem; }
.btn-lg { padding: .85rem 1.5rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 18px rgba(37,99,235,.28); }
.btn-primary:hover { background: var(--primary-600); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: #fff; border-color: var(--muted-2); }

/* ============ Header ============ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 20px rgba(10,26,51,.05); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; }
.brand-mark { flex: none; border-radius: 8px; }
.brand-text { font-weight: 800; color: var(--ink); letter-spacing: -0.02em; font-size: 1.05rem; line-height: 1; display: flex; flex-direction: column; }
.brand-text.light { color: #fff; }
.brand-sub { font-weight: 600; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); margin-top: 2px; }
.brand-text.light .brand-sub { color: var(--teal); }

.main-nav { display: flex; align-items: center; gap: 1.6rem; }
.main-nav > a { color: var(--muted); font-weight: 500; font-size: .92rem; transition: color .15s ease; }
.main-nav > a:hover { color: var(--ink); }
.header-cta { display: flex; align-items: center; gap: .75rem; }

/* Nav dropdowns (Platform / Solutions / Company) */
.nav-drop { position: relative; }
.nav-drop-btn { display: flex; align-items: center; gap: .3rem; background: none; border: none; font-family: inherit; color: var(--muted); font-weight: 500; font-size: .92rem; cursor: pointer; padding: .3rem 0; transition: color .15s ease; }
.nav-drop-btn:hover { color: var(--ink); }
.nav-drop.open .nav-drop-btn { color: var(--ink); }
.nav-chev { flex: none; transition: transform .15s ease; }
.nav-drop.open .nav-chev { transform: rotate(180deg); }
.nav-drop-menu { position: absolute; top: 100%; left: 0; margin-top: .7rem; min-width: 190px; max-height: 80vh; overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: .45rem; display: none; flex-direction: column; z-index: 60; }
.nav-drop-menu.wide { min-width: 240px; }
.nav-drop.open .nav-drop-menu { display: flex; }
.nav-drop-menu a { padding: .5rem .65rem; border-radius: 8px; color: var(--ink-2); font-size: .87rem; font-weight: 500; transition: background .12s ease, color .12s ease; }
.nav-drop-menu a:hover { background: var(--bg-alt); color: var(--ink); }
.nav-drop-sep { height: 1px; background: var(--line); margin: .35rem .5rem; }
.nav-drop-group { display: block; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-2); padding: .6rem .65rem .25rem; }
.nav-drop-group:first-child { padding-top: .2rem; }

.mnav-label { display: block; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-2); padding: 1rem .2rem .3rem; }
.mobile-nav span.mnav-label:first-child { padding-top: 0; }

.nav-toggle { display: none; flex-direction: column; gap: 4px; width: 40px; height: 38px; align-items: center; justify-content: center; background: transparent; border: 1px solid var(--line-2); border-radius: 9px; cursor: pointer; }
.nav-toggle span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }
.mobile-nav { display: none; flex-direction: column; gap: .3rem; padding: 1rem 24px 1.4rem; border-top: 1px solid var(--line); background: #fff; max-height: calc(100vh - 68px); max-height: calc(100dvh - 68px); overflow-y: auto; -webkit-overflow-scrolling: touch; }
.mobile-nav a { padding: .6rem .2rem; color: var(--ink); font-weight: 500; }
.mobile-nav .btn { margin-top: .5rem; }

/* ============ Hero ============ */
.hero { position: relative; padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem); overflow: hidden; }
.hero-glow { position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 340px at 78% 12%, rgba(14,165,164,.14), transparent 60%),
    radial-gradient(680px 420px at 8% 0%, rgba(37,99,235,.12), transparent 60%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }

.hero-photo-bg { position: absolute; inset: 0; z-index: 0; }
.hero-photo-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.hero-photo-bg::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--bg) 0%, var(--bg) 32%, rgba(244,247,251,.82) 48%, rgba(244,247,251,.35) 66%, rgba(244,247,251,.05) 82%); }
.hero.hero-photo .hero-glow { display: none; }
.hero.hero-photo .wrap { position: relative; z-index: 1; }
@media (max-width: 760px) { .hero-photo-bg { display: none; } }

.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .82rem; font-weight: 600; color: var(--ink-2);
  background: var(--surface); border: 1px solid var(--line); padding: .4rem .8rem; border-radius: 999px; box-shadow: var(--shadow); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(249,115,22,.15); }
.hero h1 { margin: 1.1rem 0 1rem; }
.hero .hl { color: var(--primary); position: relative; white-space: nowrap; }
.lede { font-size: 1.14rem; color: var(--muted); max-width: 34rem; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin: 1.6rem 0 1.4rem; }
.hero-badges { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0; }
.hero-badges li { font-size: .78rem; font-weight: 600; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); padding: .32rem .7rem; border-radius: 8px; }

/* Hero dashboard panel */
.hero-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 1.4rem; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; }
.panel-kicker { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-2); font-weight: 600; }
.panel-title strong { color: var(--ink); font-size: 1.02rem; }
.pill { display: inline-flex; align-items: center; gap: .4rem; font-size: .72rem; font-weight: 600; padding: .3rem .6rem; border-radius: 999px; }
.pill-live { background: var(--teal-050); color: #0a7a79; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(14,165,164,.5);} 70%{ box-shadow: 0 0 0 7px rgba(14,165,164,0);} 100%{ box-shadow:0 0 0 0 rgba(14,165,164,0);} }

.panel-score { display: flex; align-items: center; gap: 1.1rem; margin: 1rem 0; padding: 1rem; background: linear-gradient(180deg, var(--bg-alt), var(--surface)); border: 1px solid var(--line); border-radius: 14px; }
.score-gauge { width: 92px; height: 92px; flex: none; }
.score-value { font-family: var(--mono); font-size: 2.6rem; font-weight: 700; color: var(--ink); line-height: 1; }
.score-label { font-size: .8rem; color: var(--muted); }
.score-delta { font-size: .82rem; font-weight: 600; margin-top: .3rem; }
.score-delta.up { color: var(--orange); }

.panel-chart { margin: .5rem 0 1rem; }
.chart-head { display: flex; align-items: baseline; justify-content: space-between; font-size: .82rem; font-weight: 600; color: var(--ink-2); margin-bottom: .4rem; }
.chart-note { font-size: .7rem; font-weight: 500; color: var(--muted-2); text-transform: uppercase; letter-spacing: .06em; }
.chart-svg { width: 100%; }
.chart-svg svg { display: block; width: 100%; height: auto; }
.chart-svg.tall { min-height: 240px; }
.chart-x { display: flex; justify-content: space-between; font-size: .68rem; color: var(--muted-2); margin-top: .35rem; }

.panel-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.mini-tile { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: .6rem .7rem; display: flex; flex-direction: column; gap: .15rem; }
.mini-label { font-size: .68rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.mini-value { font-family: var(--mono); font-size: 1.25rem; font-weight: 700; color: var(--ink); }
.mini-value small { font-size: .62rem; color: var(--muted); margin-left: 1px; }
.spark { display: block; height: 22px; margin-top: .2rem; }
.spark svg { width: 100%; height: 22px; display: block; }

/* ============ Trust bar ============ */
.trustbar { background: var(--ink); color: #fff; }
.trust-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; padding: 1.1rem 24px; }
.trust-item { display: flex; flex-direction: column; }
.trust-item strong { color: #fff; font-size: .98rem; }
.trust-item span { color: #9fb4d1; font-size: .78rem; }

/* ============ Generic sections ============ */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section.alt { background: var(--bg-alt); }
.section-kicker { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--primary); margin-bottom: .6rem; }
.section-head.center { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.section-sub { color: var(--muted); font-size: 1.05rem; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.two-col > * { min-width: 0; } /* let columns shrink so the code card fits & scrolls internally instead of widening the page */
.two-col.reverse .col-visual { order: -1; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.3rem; }

.check-list { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .7rem; }
.check-list li { position: relative; padding-left: 1.9rem; color: var(--text); }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 1.35rem; height: 1.35rem; background: var(--primary-050); color: var(--primary); border-radius: 6px; display: grid; place-items: center; font-size: .8rem; font-weight: 700; }
.fineprint { font-size: .8rem; color: var(--muted-2); margin-top: 1rem; }

/* legend */
.legend { display: flex; gap: 1.2rem; flex-wrap: wrap; margin-top: .7rem; font-size: .8rem; color: var(--muted); }
.legend .lg { display: inline-flex; align-items: center; gap: .4rem; }
.legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }

/* ============ How it works ============ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.step-num { font-family: var(--mono); font-size: .9rem; font-weight: 700; color: var(--primary); background: var(--primary-050); width: 2.4rem; height: 2.4rem; border-radius: 10px; display: grid; place-items: center; margin-bottom: 1rem; }
.step h3 { margin-bottom: .4rem; }
.step p { color: var(--muted); font-size: .95rem; }
.step-viz { height: 60px; margin-top: 1rem; }
.step-viz svg { width: 100%; height: 60px; display: block; }

/* ============ Visual timeline (implementation models) ============ */
.timeline { display: flex; align-items: flex-start; margin-top: 1rem; }
.timeline-item { flex: 1; min-width: 0; position: relative; text-align: center; padding: 0 .7rem; }
.timeline-item::before { content: ''; position: absolute; top: 21px; left: -50%; width: 100%; height: 2px; background: var(--line-2); z-index: 0; }
.timeline-item:first-child::before { display: none; }
.timeline-node { position: relative; z-index: 1; width: 42px; height: 42px; border-radius: 50%; background: var(--surface); border: 2px solid var(--primary); color: var(--primary); font-family: var(--mono); font-weight: 700; font-size: .85rem; display: grid; place-items: center; margin: 0 auto .9rem; }
.timeline-item h3 { font-size: .95rem; margin-bottom: .35rem; }
.timeline-item p { color: var(--muted); font-size: .84rem; }
@media (max-width: 900px) {
  .timeline { flex-direction: column; gap: 1.7rem; }
  .timeline-item { text-align: left; padding: 0 0 0 2.7rem; }
  .timeline-item::before { display: none; }
  .timeline-item::after { content: ''; position: absolute; left: 20px; top: 42px; bottom: -1.7rem; width: 2px; background: var(--line-2); }
  .timeline-item:last-child::after { display: none; }
  .timeline-node { position: absolute; left: 0; top: 0; margin: 0; }
}

/* ============ Score / formula ============ */
.formula-card { padding: 1.8rem 1.4rem; }
.formula-row { display: flex; align-items: center; justify-content: center; gap: .6rem; flex-wrap: wrap; }
.formula-metric { text-align: center; display: flex; flex-direction: column; align-items: center; gap: .3rem; min-width: 92px; }
.fm-gauge { width: 84px; height: 84px; }
.fm-gauge.big { width: 116px; height: 116px; }
.fm-name { font-weight: 700; color: var(--ink); font-size: .92rem; line-height: 1.15; }
.fm-desc { font-size: .74rem; color: var(--muted); }
.formula-op { font-size: 1.8rem; color: var(--muted-2); font-weight: 300; }
.formula-metric.result .fm-name { color: var(--primary); }

/* ============ Features grid ============ */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.feature-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.fi-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--primary-050); color: var(--primary); display: grid; place-items: center; margin-bottom: .9rem; }
.feature-card:nth-child(2n) .fi-icon { background: var(--teal-050); color: #0a7a79; }
.feature-card h3 { font-size: 1.03rem; margin-bottom: .35rem; }
.feature-card p { color: var(--muted); font-size: .9rem; margin: 0; }

/* ============ Battery / radar ============ */
.chip-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.3rem; }
.chip { font-size: .82rem; font-weight: 600; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line-2); padding: .45rem .8rem; border-radius: 999px; }

.radar-card .chart-svg { display: grid; place-items: center; }

/* ============ Questionnaires ============ */
.q-chips { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; }
.q-chip { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .7rem 1rem; font-weight: 700; color: var(--ink); box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: flex-start; min-width: 120px; }
.q-chip small { font-weight: 500; color: var(--muted); font-size: .72rem; margin-top: 2px; }
.q-chip.more { justify-content: center; align-items: center; color: var(--primary); background: var(--primary-050); border-color: transparent; }

/* ============ Specialties ============ */
.spec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.spec-grid.single { grid-template-columns: minmax(260px, 420px); }
.spec-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); position: relative; transition: transform .18s ease, box-shadow .18s ease; }
.spec-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.spec-tier { display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--teal); background: var(--teal-050); padding: .25rem .55rem; border-radius: 6px; margin-bottom: .8rem; }
.spec-card:nth-child(3n+1) .spec-tier { color: var(--primary); background: var(--primary-050); }
.spec-card h3 { margin-bottom: .4rem; }
.spec-card p { color: var(--muted); font-size: .92rem; margin: 0; }
.spec-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin: .7rem 0 0; }
.spec-tag { font-size: .72rem; font-weight: 600; color: var(--muted); background: var(--bg-alt); border: 1px solid var(--line); padding: .15rem .55rem; border-radius: 999px; }
.spec-more { text-align: center; color: var(--muted); margin-top: 1.6rem; font-size: .92rem; }

/* ============ Proof ============ */
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 2.5rem; }
.proof-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); }
.proof-check { width: 38px; height: 38px; border-radius: 50%; background: var(--orange); color: #fff; display: grid; place-items: center; font-weight: 700; margin-bottom: .8rem; }
.proof-card h3 { font-size: 1rem; margin-bottom: .3rem; }
.proof-card p { color: var(--muted); font-size: .88rem; margin: 0; }

.logos, .pubs { text-align: center; margin-top: 1.5rem; }
.logos-label, .pubs-label { font-size: .82rem; color: var(--muted); font-weight: 600; }

.research-callout { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-top: 1.5rem; border-left: 4px solid var(--primary); }
.research-callout .rc-text h3 { margin: .3rem 0 .4rem; }
.research-callout .rc-text p { color: var(--muted); font-size: .92rem; max-width: 480px; margin: 0; }
.research-callout .btn { flex: none; }
.logo-strip { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 1rem; }
.logo-slot { width: 130px; height: 56px; border: 1.5px dashed var(--line-2); border-radius: 10px; display: grid; place-items: center; color: var(--muted-2); font-size: .72rem; letter-spacing: .15em; font-weight: 700; }
.logo-slot.text { width: auto; height: auto; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: .6rem 1rem; letter-spacing: normal; font-size: .82rem; font-weight: 600; color: var(--ink-2); }
.logo-slot.img { width: auto; height: 76px; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: .6rem 1.1rem; }
.logo-slot.img img { max-height: 56px; max-width: 160px; width: auto; height: auto; object-fit: contain; display: block; }
.ph { color: #b45309; background: #fff7ed; border: 1px solid #fed7aa; padding: .05em .45em; border-radius: 5px; font-size: .82em; font-weight: 600; }
.ph.block { display: block; margin-top: .8rem; padding: .7rem .9rem; }

/* ============ Testimonials ============ */
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.quote-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); margin: 0; }
.quote-card p { color: var(--ink-2); font-size: 1rem; }
.quote-card footer { display: flex; align-items: center; gap: .7rem; font-size: .82rem; color: var(--muted); }
.q-avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--teal)); flex: none; opacity: .7; }

/* ============ Developers / code ============ */
.code-card { background: var(--ink); border: 1px solid #1e3358; padding: 0; overflow: hidden; }
.code-head { display: flex; align-items: center; gap: .7rem; padding: .7rem 1rem; border-bottom: 1px solid #1e3358; }
.code-head .dots { display: inline-flex; gap: .35rem; }
.code-head .dots i { width: 11px; height: 11px; border-radius: 50%; background: #37507a; }
.code-head .dots i:nth-child(1){ background:#e15a5a;} .code-head .dots i:nth-child(2){ background:#e0a83a;} .code-head .dots i:nth-child(3){ background:#3aae5a;}
.code-file { font-family: var(--mono); font-size: .78rem; color: #8ba0c4; }
.code-body { margin: 0; padding: 1.1rem 1.2rem; overflow-x: auto; }
.code-body code { background: none; padding: 0; font-family: var(--mono); font-size: .82rem; line-height: 1.7; color: #cdd9ee; white-space: pre; }
.c-com { color: #6b83a8; font-style: italic; } .c-kw { color: #79b8ff; } .c-fn { color: #b392f0; } .c-str { color: #9ecbff; } .c-lit { color: #f0a35e; }

/* ============ Reimbursement ============ */
.reimburse-inner { display: grid; grid-template-columns: 1.5fr 1fr; gap: 3rem; align-items: center; }
.reimburse-cta { text-align: center; display: flex; flex-direction: column; align-items: center; gap: .6rem; }
.cta-note { display: block; margin-top: .7rem; font-size: .82rem; color: var(--muted); }

/* ============ FAQ ============ */
.accordion { display: grid; gap: .7rem; }
.acc-item { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; transition: border-color .15s ease; }
.acc-item.open { border-color: var(--line-2); box-shadow: var(--shadow); }
.acc-q { width: 100%; text-align: left; background: none; border: none; padding: 1.1rem 1.2rem; font-size: 1rem; font-weight: 600; color: var(--ink); cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-family: inherit; }
.acc-ic { width: 20px; height: 20px; flex: none; position: relative; }
.acc-ic::before, .acc-ic::after { content: ""; position: absolute; background: var(--primary); border-radius: 2px; transition: transform .2s ease; }
.acc-ic::before { top: 9px; left: 2px; width: 16px; height: 2px; }
.acc-ic::after { top: 2px; left: 9px; width: 2px; height: 16px; }
.acc-item.open .acc-ic::after { transform: scaleY(0); }
.acc-a { max-height: 0; overflow: hidden; transition: max-height .28s ease; }
.acc-a p { padding: 0 1.2rem 1.1rem; margin: 0; color: var(--muted); }

/* ============ Demo ============ */
.demo { background: linear-gradient(180deg, var(--ink), #06132a); color: #fff; }
.demo h2 { color: #fff; }
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.demo-copy p { color: #b7c6de; font-size: 1.05rem; }
.demo-contact { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: .9rem; }
.demo-contact li { display: flex; align-items: center; gap: .7rem; color: #cdd9ee; font-size: .95rem; }
.demo-contact svg { color: var(--teal); flex: none; }
.demo-contact a { color: #cdd9ee; }
.demo-contact a:hover { color: #fff; }

.demo-form { padding: 1.6rem; }
.demo-form label { display: block; font-size: .82rem; font-weight: 600; color: var(--ink-2); margin-bottom: .9rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.demo-form input, .demo-form select, .demo-form textarea {
  width: 100%; margin-top: .35rem; padding: .65rem .8rem; border: 1px solid var(--line-2); border-radius: 9px;
  font-family: inherit; font-size: .92rem; color: var(--text); background: var(--bg); font-weight: 400; transition: border-color .15s ease, box-shadow .15s ease;
}
.demo-form input:focus, .demo-form select:focus, .demo-form textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.15); background: #fff; }
.demo-form textarea { resize: vertical; }
.form-note { font-size: .76rem; color: var(--muted-2); text-align: center; margin: .8rem 0 0; }
.form-success { display: flex; align-items: center; gap: .8rem; margin-top: 1rem; padding: 1rem; background: #ecfdf3; border: 1px solid #abefc6; border-radius: 12px; color: #067647; font-size: .9rem; }
.form-success[hidden] { display: none; }
.fs-check { width: 34px; height: 34px; border-radius: 50%; background: var(--orange); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }

/* ============ Footer ============ */
.site-footer { background: var(--ink); color: #a9bbd6; padding: 3.5rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 2fr; gap: 3rem; padding-bottom: 2.5rem; border-bottom: 1px solid #1e3358; }
.footer-brand p { font-size: .9rem; margin: 1rem 0 0; }
.foot-contact { font-size: .85rem; line-height: 1.7; }
.foot-contact a { color: var(--teal); }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.fcol h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1rem; }
.fcol a { display: block; color: #a9bbd6; font-size: .9rem; padding: .28rem 0; }
.fcol a:hover { color: #fff; }
.compliance { padding-top: 1.6rem; }
.compliance p { font-size: .78rem; color: #7d92b5; line-height: 1.7; }
.compliance strong { color: #cdd9ee; }
.copyright { margin-top: .8rem; font-size: .74rem; color: #647aa0; }

/* ============ Toast ============ */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: .85rem 1.3rem; border-radius: 12px; box-shadow: var(--shadow-lg); font-size: .9rem; z-index: 100; opacity: 0; transition: opacity .25s ease, transform .25s ease; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============ Reveal animation ============ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ============ Responsive ============ */
@media (max-width: 980px) {
  .main-nav, .header-cta .btn { display: none; }
  .nav-toggle { display: flex; }
  .mobile-nav:not([hidden]) { display: flex; } /* show the menu once JS un-hides it */
  body.nav-open { overflow: hidden; } /* lock page scroll while the menu is open — only the menu scrolls */
  .hero-grid, .two-col, .two-col.reverse, .reimburse-inner, .demo-grid, .footer-grid { grid-template-columns: 1fr; }
  .two-col.reverse .col-visual { order: 0; }
  .feature-grid, .proof-grid { grid-template-columns: repeat(2, 1fr); }
  .spec-grid, .quote-grid, .steps { grid-template-columns: 1fr; }
  .hero-panel { max-width: 460px; }
}
@media (max-width: 560px) {
  .feature-grid, .proof-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .trust-inner { gap: .8rem 1.2rem; }
  .panel-tiles { grid-template-columns: 1fr 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .formula-op { display: none; }
}


/* --- specialty market groups (boss-edit restructure) --- */
.spec-group { margin-top: 2.6rem; }
.spec-group-title { font-size: 1.4rem; color: var(--ink); margin: 0 0 .35rem; padding-bottom: .5rem; border-bottom: 2px solid var(--primary); display: inline-block; }
.spec-group-sub { color: var(--muted); margin: 0 0 1.2rem; font-size: .95rem; max-width: 780px; }

/* --- specialty subpages (SEO build-out) --- */
.breadcrumb { font-size: .82rem; color: var(--muted-2); margin-bottom: 1.1rem; }
.breadcrumb a { color: var(--muted); font-weight: 500; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb .sep { margin: 0 .45rem; color: var(--line-2); }
.hero.sub { padding: clamp(2.6rem, 5vw, 4.2rem) 0 clamp(2.4rem, 4vw, 3.4rem); }
.hero.sub .hero-copy { max-width: 780px; }
.spec-link { display: inline-block; margin-top: .85rem; font-weight: 600; font-size: .88rem; color: var(--primary); }
.spec-link::after { content: " →"; }
.spec-link:hover { text-decoration: underline; }
.cta-band { text-align: center; max-width: 720px; margin: 0 auto; }
.cta-band .btn { margin-top: 1.3rem; }
.related-strip { display: flex; flex-wrap: wrap; gap: .55rem; justify-content: center; margin-top: 2rem; }
.related-strip .chip:hover { border-color: var(--primary); color: var(--primary); }

/* --- use-case directory (centered themed index) --- */
.uc-dir { max-width: 1000px; margin: 2.6rem auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2.8rem 3rem; }
.uc-cat { --acc: var(--primary); --acc-050: var(--primary-050); display: flex; flex-direction: column; }
.uc-cat.c2 { --acc: var(--teal); --acc-050: var(--teal-050); }
.uc-cat.c3 { --acc: var(--violet); --acc-050: #f1eafe; }
.uc-cat.c4 { --acc: var(--amber); --acc-050: #fef4e2; }
.uc-cat-head { text-align: center; margin-bottom: 1.1rem; }
.uc-cat-title { font-size: 1.22rem; margin: 0 0 .35rem; color: var(--ink); }
.uc-cat-sub { font-size: .88rem; color: var(--muted); margin: 0 auto; max-width: 540px; }
.uc-list { display: grid; }
.uc-row { display: grid; grid-template-columns: 40px 1fr auto; gap: 1rem; align-items: center; padding: .9rem .75rem; border-top: 1px solid var(--line); color: inherit; text-decoration: none; transition: background .15s ease; }
.uc-list > :last-child { border-bottom: 1px solid var(--line); }
a.uc-row:hover { background: var(--acc-050); }
.uc-ic { width: 40px; height: 40px; border-radius: 10px; background: var(--bg-alt); color: var(--acc); display: grid; place-items: center; transition: background .15s ease; }
a.uc-row:hover .uc-ic { background: #fff; }
.uc-txt { min-width: 0; }
.uc-txt strong { display: block; color: var(--ink); font-size: .96rem; line-height: 1.3; }
.uc-txt span { display: block; color: var(--muted); font-size: .83rem; line-height: 1.45; }
.uc-go { color: var(--acc); font-weight: 700; font-size: 1.05rem; opacity: 0; transform: translateX(-5px); transition: opacity .15s ease, transform .15s ease; }
a.uc-row:hover .uc-go { opacity: 1; transform: translateX(0); }
@media (max-width: 820px) {
  .uc-dir { grid-template-columns: 1fr; max-width: 620px; gap: 2.4rem; }
  .uc-cat + .uc-cat { border-top: 1px dashed var(--line-2); padding-top: 2.4rem; }
}
@media (max-width: 560px) {
  .uc-row { padding: .85rem .4rem; gap: .8rem; }
}

/* --- esports specialty page --- */
.es-glow { position:absolute; inset:0; pointer-events:none;
  background: radial-gradient(600px 340px at 82% 8%, rgba(124,58,237,.16), transparent 60%),
              radial-gradient(680px 420px at 4% 0%, rgba(14,165,164,.14), transparent 60%); }
.es-tag { display:inline-flex; align-items:center; gap:.45rem; font-size:.72rem; font-weight:700; letter-spacing:.06em; text-transform:uppercase;
  color:#6d28d9; background:#f1eafe; border:1px solid #e4d7fb; padding:.3rem .7rem; border-radius:999px; }

/* Stat band */
.es-stats { display:grid; grid-template-columns:repeat(4,1fr); gap:1rem; margin-top:1rem; }
.es-stat { background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:1.4rem 1.2rem; box-shadow:var(--shadow); text-align:center; }
.es-stat .num { font-family:var(--mono); font-size:2.1rem; font-weight:700; color:var(--primary); line-height:1; }
.es-stat:nth-child(2n) .num { color:var(--teal); }
.es-stat .lbl { display:block; margin-top:.5rem; color:var(--muted); font-size:.84rem; line-height:1.4; }
.es-stat .src { display:block; margin-top:.5rem; font-size:.68rem; color:var(--muted-2); }

/* Roster heatmap */
.heat-card { background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow); padding:1.3rem; }
.heat-grid { display:grid; grid-template-columns:88px repeat(7,1fr); gap:5px; margin-top:.8rem; }
.heat-corner, .heat-col, .heat-name { font-size:.7rem; color:var(--muted-2); font-weight:600; display:flex; align-items:center; }
.heat-col { justify-content:center; }
.heat-name { color:var(--ink-2); font-size:.78rem; }
.heat-cell { aspect-ratio:1; border-radius:5px; min-height:26px; }
.h-hi { background:#16a34a; } .h-md { background:#f59e0b; } .h-lo { background:#e11d48; } .h-na { background:var(--bg-alt); }
.heat-legend { display:flex; gap:1rem; margin-top:.9rem; font-size:.74rem; color:var(--muted); flex-wrap:wrap; }
.heat-legend i { display:inline-block; width:11px; height:11px; border-radius:3px; margin-right:.35rem; vertical-align:-1px; }

/* Positioning diagram: train vs measure */
.vs-row { display:grid; grid-template-columns:1fr auto 1fr auto 1fr; align-items:center; gap:1rem; margin-top:1.5rem; }
.vs-card { background:var(--surface); border:1px solid var(--line); border-radius:14px; padding:1.3rem; box-shadow:var(--shadow); text-align:center; }
.vs-card.accent { border-color:var(--primary); box-shadow:0 8px 30px rgba(37,99,235,.16); }
.vs-card h4 { margin-bottom:.35rem; font-size:1rem; }
.vs-card p { margin:0; color:var(--muted); font-size:.84rem; }
.vs-card .vs-eyebrow { display:block; font-size:.68rem; text-transform:uppercase; letter-spacing:.08em; font-weight:700; color:var(--muted-2); margin-bottom:.5rem; }
.vs-card.accent .vs-eyebrow { color:var(--primary); }
.vs-op { font-size:1.6rem; font-weight:700; color:var(--muted-2); }
@media (max-width:820px){ .vs-row { grid-template-columns:1fr; } .vs-op { display:none; } }

/* Scenario cards use existing .feature-grid/.feature-card; add a tag chip */
.es-scenario .sc-tag { display:inline-block; font-size:.68rem; font-weight:700; letter-spacing:.05em; text-transform:uppercase; color:var(--teal); background:var(--teal-050); border-radius:999px; padding:.15rem .55rem; margin-bottom:.7rem; }

/* Wellness note strip */
.es-note { background:#f1eafe; border:1px solid #e4d7fb; color:#4c1d95; border-radius:12px; padding:1rem 1.2rem; font-size:.9rem; }
.es-note strong { color:#3b1673; }

@media (max-width:760px){ .es-stats { grid-template-columns:repeat(2,1fr); } }
@media (max-width:520px){ .heat-grid { grid-template-columns:70px repeat(7,1fr); } }

/* --- cognitive-impairment detection-gap bars --- */
.gap-viz { display:flex; align-items:flex-end; gap:2rem; justify-content:center; height:200px; margin:1rem 0 .3rem; padding:0 1rem; }
.gap-col { display:flex; flex-direction:column; align-items:center; justify-content:flex-end; height:100%; flex:1; max-width:130px; }
.gap-track { width:100%; height:100%; display:flex; align-items:flex-end; }
.gap-fill { width:100%; border-radius:8px 8px 0 0; position:relative; }
.gap-fill.big { background:var(--bg-alt); border:1px solid var(--line-2); }
.gap-fill.small { background:var(--primary); box-shadow:0 6px 18px rgba(37,99,235,.25); }
.gap-val { position:absolute; top:-1.6rem; left:0; right:0; text-align:center; font-family:var(--mono); font-weight:700; font-size:1.05rem; color:var(--ink); }
.gap-fill.small .gap-val { color:var(--primary); top:-1.7rem; }
.gap-cap { margin-top:.6rem; font-size:.82rem; color:var(--muted); font-weight:600; text-align:center; }
.gap-note { text-align:center; color:var(--muted); font-size:.86rem; margin:.6rem 0 0; }

/* --- DANA Daily (consumer sister app) --- */
.dd-glow { position:absolute; inset:0; pointer-events:none;
  background: radial-gradient(600px 340px at 80% 8%, rgba(14,165,164,.20), transparent 60%),
              radial-gradient(680px 420px at 4% 0%, rgba(249,115,22,.10), transparent 60%); }
.dd-tag { display:inline-flex; align-items:center; gap:.45rem; font-size:.72rem; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:#0a7a79; background:var(--teal-050); border:1px solid #bfeceb; padding:.3rem .7rem; border-radius:999px; }
.dd-hl { color:var(--teal); }
.nav-daily { color:var(--teal) !important; font-weight:700 !important; }

/* phone mockup */
.phone { width:288px; margin:0 auto; background:#0A1A33; border-radius:40px; padding:10px; box-shadow:var(--shadow-lg); }
.phone-screen { background:var(--bg); border-radius:31px; overflow:hidden; position:relative; padding:26px 15px 16px; }
.phone-notch { position:absolute; top:9px; left:50%; transform:translateX(-50%); width:84px; height:6px; border-radius:999px; background:#0A1A33; opacity:.8; }

/* cognitive-task preview mockups (homepage "what it actually looks like") */
.game-preview-row { display: flex; gap: 2.2rem; justify-content: center; flex-wrap: wrap; }
.game-preview { text-align: center; max-width: 220px; }
.gp-video-frame { width: 200px; height: 280px; margin: 0 auto; border-radius: 16px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow-lg); }
.gp-video { width: 100%; height: 100%; object-fit: contain; display: block; }

.hero-video { display: flex; justify-content: center; }
.hero-video-frame { width: 100%; max-width: 260px; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg); background: var(--surface); aspect-ratio: 774 / 1688; }
.hero-video-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
.game-preview h3 { margin: 1rem 0 .3rem; font-size: 1rem; }
.game-preview p { font-size: .85rem; color: var(--muted); margin: 0; }
.dd-app-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:.7rem; }
.dd-greet { font-weight:700; color:var(--ink); font-size:.92rem; }
.dd-greet small { display:block; font-weight:500; font-size:.72rem; color:var(--muted); }
.dd-avatar { width:30px; height:30px; border-radius:50%; background:var(--teal-050); border:1px solid var(--teal); flex:none; }
.dd-banner { background:linear-gradient(120deg,var(--teal),#12b7b5); color:#fff; border-radius:13px; padding:.6rem .75rem; font-size:.78rem; font-weight:600; margin-bottom:.7rem; }
.dd-readycard { background:var(--surface); border:1px solid var(--line); border-radius:16px; padding:.9rem; text-align:center; box-shadow:var(--shadow); }
.dd-readylabel { font-size:.68rem; text-transform:uppercase; letter-spacing:.08em; color:var(--muted-2); font-weight:700; }
.dd-readystate { font-size:1.3rem; font-weight:800; color:var(--teal); margin:.15rem 0 .35rem; }
.dd-readycard .score-gauge { margin:0 auto; }
.dd-mini { display:grid; grid-template-columns:1fr 1fr 1fr; gap:.4rem; margin-top:.7rem; }
.dd-mini .mini-tile { padding:.45rem .5rem; }

/* readiness state cards */
.dd-states { display:grid; grid-template-columns:repeat(3,1fr); gap:1rem; max-width:820px; margin:0 auto; }
.dd-state { background:var(--surface); border:1px solid var(--line); border-radius:16px; padding:1.5rem; text-align:center; box-shadow:var(--shadow); border-top:4px solid var(--acc); }
.dd-state.sharper { --acc:var(--green); } .dd-state.stable { --acc:var(--teal); } .dd-state.slower { --acc:var(--amber); }
.dd-state .dd-dot { width:44px; height:44px; border-radius:50%; margin:0 auto .8rem; background:var(--acc); opacity:.15; display:grid; place-items:center; }
.dd-state .dd-dot::after { content:""; width:18px; height:18px; border-radius:50%; background:var(--acc); }
.dd-state h3 { color:var(--acc); margin-bottom:.3rem; }
.dd-state p { color:var(--muted); font-size:.9rem; margin:0; }

/* app-store badges */
.dd-badges { display:flex; gap:.7rem; flex-wrap:wrap; margin-top:1.5rem; align-items:center; }
.dd-badge { display:inline-flex; align-items:center; gap:.6rem; background:var(--ink); color:#fff; border-radius:12px; padding:.55rem 1rem; }
.footer-brand .dd-badges { margin-top: 1.1rem; }
.footer-brand .dd-badge { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); }
.dd-badge svg { flex:none; }
.dd-badge .bt { line-height:1.05; }
.dd-badge .bt small { display:block; font-size:.6rem; font-weight:500; opacity:.75; text-transform:uppercase; letter-spacing:.06em; }
.dd-badge .bt span { font-size:.98rem; font-weight:700; }
.dd-soon { font-size:.75rem; color:var(--muted); font-weight:600; }

/* journal / wearable cards */
.dd-journal { background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow); padding:1.2rem; }
.dd-jrow { display:flex; align-items:center; gap:.8rem; padding:.7rem .2rem; border-top:1px solid var(--line); }
.dd-journal .dd-jrow:first-of-type { border-top:none; }
.dd-jrow .dd-jic { width:34px; height:34px; border-radius:9px; background:var(--teal-050); color:#0a7a79; display:grid; place-items:center; flex:none; }
.dd-jrow strong { display:block; font-size:.9rem; color:var(--ink); }
.dd-jrow span { font-size:.8rem; color:var(--muted); }
.dd-jrow .dd-jval { margin-left:auto; font-family:var(--mono); font-weight:700; color:var(--ink); font-size:.9rem; }

@media (max-width:640px){ .dd-states { grid-template-columns:1fr; } }

/* --- real DANA brand logo (full-color header, white footer) --- */
.brand-logo { height: 42px; width: auto; display: block; }
.brand-logo-light { height: 34px; width: auto; display: block; }
@media (max-width: 560px) { .brand-logo { height: 34px; } }

/* --- Research & Publications page --- */
.research-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 0 0 2.5rem; }
.research-stats-3 { grid-template-columns: repeat(3, 1fr); }
.research-stat { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.2rem; text-align: center; }
.research-stat .rs-num { font-family: var(--mono); font-size: 1.9rem; font-weight: 800; color: var(--primary); line-height: 1; }
.research-stat .rs-label { font-size: .8rem; color: var(--muted); font-weight: 600; margin-top: .4rem; }

.research-filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2rem; }
.filter-chip { font-size: .84rem; font-weight: 600; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line-2); padding: .5rem 1rem; border-radius: 999px; cursor: pointer; transition: border-color .15s ease, color .15s ease, background .15s ease; font-family: inherit; }
.filter-chip:hover { border-color: var(--primary); color: var(--primary); }
.filter-chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.filter-chip .fc-count { opacity: .8; margin-left: .3rem; }

.studies-list { display: grid; gap: .8rem; }
.study-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; transition: border-color .15s ease, box-shadow .15s ease; }
.study-card.open { border-color: var(--line-2); box-shadow: var(--shadow-lg); }
.study-q { width: 100%; display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; text-align: left; background: none; border: none; padding: 1.1rem 1.3rem; cursor: pointer; font-family: inherit; }
.study-q-main { display: flex; flex-direction: column; gap: .5rem; }
.study-q-top { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.study-year { font-family: var(--mono); font-size: .78rem; font-weight: 700; color: var(--primary); background: var(--primary-050); padding: .15rem .5rem; border-radius: 6px; }
.study-journal-line { font-size: .82rem; color: var(--muted); }
.study-topic { font-weight: 700; color: var(--ink); font-size: 1.02rem; line-height: 1.35; }
.study-tags-inline { display: flex; gap: .4rem; flex-wrap: wrap; }
.study-tag { font-size: .66rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: #0a7a79; background: var(--teal-050); padding: .18rem .5rem; border-radius: 999px; white-space: nowrap; }
.study-a { max-height: 0; overflow: hidden; transition: max-height .28s ease; }
.study-a-inner { padding: 1rem 1.3rem 1.3rem; border-top: 1px solid var(--line); }
.study-citation { font-size: .86rem; color: var(--ink-2); white-space: pre-line; margin: 0 0 .9rem; line-height: 1.6; }
.study-summary { font-size: .9rem; color: var(--muted); white-space: pre-line; line-height: 1.7; margin: 0 0 1rem; }
.study-link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; color: var(--primary); font-size: .9rem; }
.study-nolink { display: inline-block; font-size: .82rem; color: var(--muted-2); font-style: italic; }
.study-more { margin-top: 1rem; padding-top: .9rem; border-top: 1px dashed var(--line); }
.study-more summary { cursor: pointer; font-size: .82rem; font-weight: 700; color: var(--primary); list-style: none; }
.study-more summary::-webkit-details-marker { display: none; }
.study-more summary::before { content: '+ '; }
.study-more[open] summary { margin-bottom: .8rem; }
.study-more[open] summary::before { content: '\2212  '; }
.study-summary-full { font-size: .84rem; color: var(--muted-2); white-space: pre-line; line-height: 1.6; margin: 0; }

.studies-empty { text-align: center; color: var(--muted); padding: 2rem; }

.study-card.open .study-ic::after { transform: scaleY(0); }

@media (max-width: 760px) { .research-stats { grid-template-columns: repeat(2, 1fr); } .research-stats-3 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .study-q { flex-direction: column; } .acc-ic.study-ic { align-self: flex-end; margin-top: -1.6rem; } }

/* --- legal documents (privacy / terms) --- */
.legal-page { padding-top: clamp(2rem, 5vw, 3rem); }
.legal { max-width: 800px; margin: 0 auto; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin: .3rem 0 .4rem; }
.legal .legal-updated { color: var(--muted); font-size: .92rem; margin: 0 0 1.6rem; }
.legal h2 { font-size: 1.15rem; margin: 2rem 0 .5rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.legal h2:first-of-type { border-top: none; padding-top: 0; }
.legal h3 { font-size: 1rem; color: var(--ink-2); margin: 1.3rem 0 .4rem; }
.legal p { color: var(--text); font-size: .95rem; line-height: 1.75; margin: 0 0 1rem; }
.legal ul { margin: 0 0 1.2rem; padding-left: 1.3rem; }
.legal li { color: var(--text); font-size: .93rem; line-height: 1.7; margin-bottom: .55rem; }
.legal a { color: var(--primary); word-break: break-word; }
.legal .legal-contact { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 12px; padding: 1.1rem 1.3rem; margin-top: 1rem; }
.legal .legal-contact p { margin: 0 0 .3rem; }
.legal .legal-toc { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.3rem; margin: 0 0 2rem; box-shadow: var(--shadow); }
.legal .legal-toc strong { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-2); margin-bottom: .5rem; }
.legal .legal-toc ol { margin: 0; padding-left: 1.2rem; columns: 2; column-gap: 2rem; font-size: .86rem; }
@media (max-width: 640px) { .legal .legal-toc ol { columns: 1; } }

/* footer legal links */
.footer-legal { text-align: center; padding: .2rem 24px 1.2rem; }
.footer-legal a { color: #9fb4d1; font-size: .82rem; }
.footer-legal a:hover { color: #fff; }
.footer-legal .sep { margin: 0 .5rem; color: #45597a; }
