/* Montserrat: the WOFF2 Latin subsets first (30 KB a face, cut from the brand TTFs by
   brand/build_webfonts.py), the full TTF behind them for a browser without WOFF2 */
/* HEARTio — public site. Same design tokens as the ECGio demo console (serve/static/styles.css). */
@font-face { font-family: "Montserrat"; font-weight: 400; src: url(assets/fonts/Montserrat-Regular.woff2) format("woff2"), url(assets/fonts/Montserrat-Regular.ttf) format("truetype"); font-display: swap; }
@font-face { font-family: "Montserrat"; font-weight: 600; src: url(assets/fonts/Montserrat-SemiBold.woff2) format("woff2"), url(assets/fonts/Montserrat-SemiBold.ttf) format("truetype"); font-display: swap; }
@font-face { font-family: "Montserrat"; font-weight: 700; src: url(assets/fonts/Montserrat-Bold.woff2) format("woff2"), url(assets/fonts/Montserrat-Bold.ttf) format("truetype"); font-display: swap; }

/* Light only, and SAID so: the app forces .light, and a browser's auto-dark (Android Chrome's
   "dark theme for web contents") otherwise repaints the page from #ddecf8 to (32,45,54) and
   remaps the mark's red, the state colours and the coronary map's ink — measured. `only light`
   is the documented opt-out. */
:root {
  color-scheme: only light;
  --bg: #ddecf8;
  --fg: #102a43;
  --pos: #7ed957;
  --neg: #ff8f8f;
  --gold: #ffc145;
  --red: #ff474c;
  --card: #ffffff;
  --card-2: #f3f8fd;
  --line: #c3d6ea;
  /* 5.69:1 on white and 5.33:1 on --card-2 at 11-12px (WCAG AA below 18.66px needs 4.5); the
     earlier #5b7a99 measured 4.48 / 4.19 and this token carries every secondary line on the page */
  --muted: #496a86;
  /* green and red as TYPE: the ink tokens above fail AA as text (pos 2.95:1 on white, red 3.36:1),
     so anything SET in green or red uses these — brand/tokens.json pos_text / red_text */
  --pos-text: #2a7218;
  --red-text: #c62a2f;
  --shadow: 0 6px 22px rgba(16, 42, 67, 0.08);
  --shadow-lg: 0 18px 50px rgba(16, 42, 67, 0.14);
  --radius: 14px;
  --nav-h: 68px;
  --max: 1180px;
}

* { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 10px); }
html, body { margin: 0; padding: 0; overflow-x: hidden; }
body {
  font-family: "Montserrat", "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--fg);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--fg); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.015em; line-height: 1.15; }
h1 { font-size: clamp(32px, 4.3vw, 54px); }
h2 { font-size: clamp(26px, 3.4vw, 40px); }
h3 { font-size: 18px; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.pos { color: var(--pos-text); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 26px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
/* keyboard: one on-brand focus ring everywhere (the UA default is invisible on the navy buttons),
   and a skip link that appears on the first Tab press */
:focus-visible { outline: 3px solid var(--fg); outline-offset: 2px; }
.btn:focus-visible { outline-color: var(--gold); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: 10px; background: var(--fg); color: #fff; font-weight: 700; text-decoration: none; transition: top .15s; }
.skip:focus { top: 12px; }

/* ── buttons & chips (from the console) ─────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: 0; border-radius: 10px; padding: 12px 20px;
  font-family: inherit; font-weight: 700; font-size: 14px; cursor: pointer; text-decoration: none;
  background: var(--fg); color: #fff;
  transition: transform .06s ease, opacity .15s ease, box-shadow .15s ease;
}
.btn:hover { opacity: .92; box-shadow: 0 8px 22px rgba(16,42,67,.18); }
.btn:active { transform: translateY(1px); }
.btn.secondary { background: var(--card); color: var(--fg); border: 1px solid var(--line); }
.btn.positive { background: var(--pos); color: var(--fg); }
.btn.sm { padding: 8px 14px; font-size: 13px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line);
  font-size: 12.5px; font-weight: 600; color: var(--fg); line-height: 1.4;
}
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pos); flex: none; }
.chip .dot.bad { background: var(--neg); }
.chip .dot.gold { background: var(--gold); }
.chip.soft { background: var(--card-2); }
.kicker {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 12px;
}
.kicker::before { content: ""; display: inline-block; width: 22px; height: 3px; border-radius: 2px; background: var(--pos); margin-right: 10px; vertical-align: 3px; }

/* ── top bar ─────────────────────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.92); backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; gap: 18px; height: var(--nav-h); }
.topbar .logo { height: 40px; width: auto; }
.topbar .tabs { display: flex; gap: 2px; margin-left: auto; }
.topbar .tab {
  position: relative; padding: 8px 12px; border-radius: 8px; text-decoration: none;
  font-weight: 600; font-size: 13.5px; color: var(--muted); white-space: nowrap;
  transition: color .15s, background .15s;
}
.topbar .tab:hover { color: var(--fg); background: var(--card-2); }
.topbar .tab.active { color: var(--fg); }
.topbar .tab-cta { display: none; }
.topbar .tab.active::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 3px; border-radius: 2px; background: var(--pos);
}
.topbar .cta { margin-left: 6px; }
.burger {
  display: none; margin-left: auto; border: 1px solid var(--line); background: var(--card); border-radius: 10px;
  width: 42px; height: 42px; cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.burger i { display: block; width: 20px; height: 2px; background: var(--fg); border-radius: 2px; transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.progress { position: absolute; left: 0; bottom: -1px; height: 3px; width: 0; background: linear-gradient(90deg, var(--pos), var(--pos-text)); transition: width .1s linear; }

/* ── sections ────────────────────────────────────────────────────────────── */
section { padding: 96px 0; position: relative; }
section + section { padding-top: 0; }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head p { margin-top: 12px; font-size: 17px; color: var(--fg); }
.card {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 24px;
}
.card.soft { background: var(--card-2); box-shadow: none; border: 1px solid var(--line); }
/* the scroll-reveal exists only when JS does (app.js stamps html.js first thing): without it a
   reader — or a crawler — sees every pre-rendered card at full opacity rather than at 0 */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
html.js .reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }

/* ── hero ────────────────────────────────────────────────────────────────── */
#home { padding: 64px 0 80px; overflow: hidden; }
#home::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 120%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(600px 400px at 12% 20%, rgba(255,255,255,.75), transparent 70%),
    radial-gradient(520px 380px at 88% 10%, rgba(126,217,87,.22), transparent 70%),
    radial-gradient(420px 300px at 70% 90%, rgba(255,143,143,.18), transparent 70%);
}
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero .eyebrow { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.hero h1 { margin-bottom: 18px; }
.hero h1 .accent { color: var(--pos-text); position: relative; white-space: nowrap; }
.hero h1 .accent::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 10px; z-index: -1; border-radius: 6px;
  background: rgba(126,217,87,.38);
}
.hero .lede { font-size: 18px; color: var(--fg); max-width: 540px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero .facts { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin-top: 36px; max-width: 560px; }
.fact { background: var(--card); border-radius: 12px; padding: 14px 16px; box-shadow: var(--shadow); }
.fact b { display: block; font-size: 15px; }
.fact span { font-size: 12px; color: var(--muted); }

/* the live console mock */
.console {
  background: var(--card); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden;
  border: 1px solid rgba(195,214,234,.7);
}
.console .chead {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--card-2);
}
.console .chead img { height: 22px; }
.console .chead .t { font-size: 12px; font-weight: 700; }
.console .chead .t small { display: block; font-weight: 400; color: var(--muted); font-size: 11px; }
.console .chead .chip { margin-left: auto; font-size: 11px; padding: 4px 9px; }
.console .body { padding: 14px 16px 16px; }
.ecg-wrap { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; position: relative; }
canvas.ecg { width: 100%; height: 150px; display: block; }
.ecg-wrap .lbl { position: absolute; top: 8px; left: 10px; font-size: 10px; font-weight: 700; color: var(--muted); letter-spacing: .06em; }
.ecg-wrap .lbl b { color: var(--fg); }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.kpi { background: var(--card-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px 16px; position: relative; overflow: hidden; }
.kpi .label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.kpi .value { font-size: 15px; font-weight: 700; margin-top: 3px; line-height: 1.2; }
.kpi .bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--line); }
.kpi .bar i { display: block; height: 100%; width: 0; background: var(--pos); transition: width 1.2s ease; }
.kpi.bad .bar i { background: var(--neg); }
.kpi.warn .bar i { background: var(--gold); }
.kpi.plain .bar { display: none; }   /* the console's `none` state: Age · sex carries no verdict bar */
.console .foot { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 11px; color: var(--muted); }
.console .foot .spin { width: 12px; height: 12px; border: 2px solid var(--line); border-top-color: var(--fg); border-radius: 50%; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── problem ─────────────────────────────────────────────────────────────── */
.problem { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; }
.problem h2 { margin-bottom: 18px; }
.problem .big { font-size: 20px; line-height: 1.45; }
.problem .big + .big { margin-top: 14px; }
.stat-row { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin-top: 28px; }
.stat { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; border-top: 4px solid var(--neg); }
.stat.g { border-top-color: var(--pos); }
.stat b { display: block; font-size: 22px; line-height: 1.1; margin-bottom: 4px; }
.stat span { font-size: 12.5px; color: var(--muted); }
.problem.one { grid-template-columns: minmax(0, 1fr); }
.problem.one .big { max-width: 820px; }
.wishlist { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; }
.wishlist.band { margin-top: 28px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 22px 36px; align-items: center; padding: 28px 30px; }
.wishlist.band h3 { grid-column: 1 / -1; margin-bottom: 0; font-size: 22px; }
.wishlist.band ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wishlist.band .then { margin-top: 0; font-size: 18px; }
@media (max-width: 960px) { .wishlist.band { grid-template-columns: 1fr; } .wishlist.band ul { grid-template-columns: 1fr; } }
.wishlist h3 { font-size: 20px; margin-bottom: 14px; }
.wishlist ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.wishlist li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--card-2); border: 1px solid var(--line); border-radius: 12px; font-weight: 600; }
.wishlist li i { width: 30px; height: 30px; border-radius: 50%; background: var(--pos); color: var(--fg); display: inline-grid; place-items: center; font-style: normal; font-weight: 700; font-size: 14px; flex: none; }
.wishlist li i.x { background: var(--neg); }
.wishlist .then { margin-top: 18px; font-weight: 700; font-size: 17px; }
.wishlist .then span { color: var(--pos-text); }
.plaque { margin-top: 18px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.plaque svg { width: 100%; height: auto; display: block; }

/* ── solution ────────────────────────────────────────────────────────────── */
.equation { display: grid; grid-template-columns: 1fr auto 1fr auto 1.2fr; gap: 14px; align-items: center; margin: 8px 0 44px; }
.equation .term { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; text-align: center; }
.equation .term .ic { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; margin: 0 auto 10px; background: var(--card-2); border: 1px solid var(--line); }
.equation .term b { display: block; font-size: 16px; }
.equation .term span { font-size: 12.5px; color: var(--muted); }
.equation .term.result { background: var(--fg); color: #fff; }
.equation .term.result span { color: rgba(255,255,255,.72); }
.equation .term.result .ic { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); }
.equation .op { font-size: 36px; font-weight: 700; color: var(--muted); text-align: center; }
/* ⛔ ONE COLUMN, STACKED: THE SHOT ON TOP, THE CLAIMS UNDER IT.  A half-width shot rendered the
   three surfaces about 580 px wide between them, which is an impression rather than something a
   reader can look into; full width is the whole point of a picture of three screens. */
.outputs { margin-top: 28px; display: grid; grid-template-columns: 1fr; gap: 20px;
           align-items: stretch; }
.outputs .claims { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* ⛔ NO CARD, NO BORDER, NO BACKGROUND.  The shot is a transparent PNG whose only edges are
   the three surfaces' own; a frame around it would draw a box around a picture of boxes. */
.shot { width: 100%; height: auto; display: block; }
.outputs .card h3 { margin-bottom: 12px; }
.outlist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px 14px; }
.outlist li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.outlist li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--pos); margin-top: 7px; flex: none; }
.outlist li b { display: block; }
.outlist li span { font-size: 12.5px; color: var(--muted); }
.claims { display: grid; gap: 10px; }
.claim { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 12px; background: var(--card-2); border: 1px solid var(--line); }
.claim i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); flex: none; }
.claim b { display: block; font-size: 14px; }
.claim span { font-size: 12.5px; color: var(--muted); }

/* ── team ────────────────────────────────────────────────────────────────── */
.team-nav { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 28px; }
.team-nav a { text-decoration: none; }
.group { margin-top: 36px; }
.group h3 { font-size: 20px; margin-bottom: 4px; }
.group .sub { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.people { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.people.exec { grid-template-columns: repeat(3, minmax(0,1fr)); }
.person {
  display: grid; grid-template-columns: 78px 1fr; gap: 14px; align-items: center;
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.person:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.person .ph {
  width: 78px; height: 78px; border-radius: 50%; overflow: hidden; background: var(--card-2); border: 3px solid var(--bg);
  display: grid; place-items: center; font-weight: 700; color: var(--muted); font-size: 20px; box-shadow: 0 0 0 1px var(--line);
}
.person .ph img { width: 100%; height: 100%; object-fit: cover; }
.person .who b { display: block; font-size: 14.5px; line-height: 1.25; }
.person .who .role { display: block; font-size: 12.5px; font-weight: 600; color: var(--pos-text); margin-top: 3px; }
.person .who .org { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; line-height: 1.35; }
.person .links { display: flex; gap: 6px; margin-top: 7px; }
.person .links a { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: var(--card-2); border: 1px solid var(--line); }
.person .links a:hover { background: var(--pos); }
.person .links svg { width: 14px; height: 14px; fill: var(--fg); }
.people.exec .person { grid-template-columns: 96px 1fr; padding: 18px; }
.people.exec .person .ph { width: 96px; height: 96px; }
.people.exec .person .who b { font-size: 16px; }

/* ── partners ────────────────────────────────────────────────────────────── */
.logos { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 12px; }
.logo-tile {
  background: var(--card); border-radius: 12px; box-shadow: var(--shadow); padding: 16px 18px;
  display: grid; grid-template-rows: 60px; align-items: center; justify-items: center;
  text-decoration: none; transition: transform .15s ease, box-shadow .15s ease;
}
.logo-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.logo-tile img { width: 160px; height: 60px; max-width: 100%; object-fit: contain; }
.logo-tile.dark { background: var(--fg); }
.logo-tile .tname { font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; text-align: center; line-height: 1.25; color: var(--fg); }
.logo-tile figcaption { font-size: 11px; color: var(--muted); font-weight: 600; text-align: center; margin-top: 8px; line-height: 1.2; }
.logo-tile.dark figcaption { color: rgba(255,255,255,.7); }
.logo-tile.award { grid-template-rows: 60px auto; }
.pgroup { margin-top: 34px; }
.pgroup h3 { font-size: 18px; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }

/* ── news ────────────────────────────────────────────────────────────────── */
.news { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.news .card { display: flex; flex-direction: column; gap: 10px; }
.news .card .tag { align-self: flex-start; }
.news .card h3 { font-size: 17px; }
.news .card p { font-size: 14px; color: var(--muted); flex: 1; }
.news .card a.more { font-weight: 700; font-size: 13.5px; text-decoration: none; color: var(--fg); }
.news .card a.more:hover { color: var(--pos-text); }
.news .card.feature { background: var(--fg); color: #fff; }
.news .card.feature p { color: rgba(255,255,255,.75); }
.news .card.feature a.more { color: var(--pos); }
.news .card.feature .tag { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.25); color: #fff; }

/* ── watch (YouTube facades) ─────────────────────────────────────────────── */
.watch { margin-top: 44px; }
.watch h3 { font-size: 20px; margin-bottom: 4px; }
.watch > p { margin-bottom: 16px; }
.videos { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.video { margin: 0; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.video .poster, .video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: #000; }
.video .poster { position: relative; padding: 0; cursor: pointer; overflow: hidden; }
.video .poster img { width: 100%; height: 100%; object-fit: cover; opacity: .92; transition: transform .25s ease, opacity .2s; }
.video .poster:hover img { transform: scale(1.03); opacity: 1; }
.video .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 58px; height: 58px; border-radius: 50%; background: var(--pos); color: var(--fg); display: grid; place-items: center; box-shadow: 0 8px 24px rgba(16,42,67,.35); transition: transform .15s ease; }
.video .poster:hover .play { transform: translate(-50%, -50%) scale(1.06); }
.video figcaption { padding: 12px 14px 14px; }
.video figcaption b { display: block; font-size: 14px; line-height: 1.3; }
.video figcaption span { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }
@media (max-width: 960px) { .videos { grid-template-columns: 1fr; } }

/* ── publications ────────────────────────────────────────────────────────── */
.pubs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pub { display: grid; grid-template-columns: 108px 1fr auto; gap: 16px; align-items: center; background: var(--card); border-radius: 12px; box-shadow: var(--shadow); padding: 14px 18px; }
.pub .yr { font-weight: 700; font-size: 20px; color: var(--fg); }
.pub .yr small { display: block; font-size: 11px; color: var(--muted); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.pub .title { font-weight: 700; font-size: 14.5px; line-height: 1.35; }
.pub .cite { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.pub .doi-id { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; color: var(--muted); margin-top: 3px; word-break: break-all; }
.pub .doi { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; text-decoration: none; padding: 7px 11px; border-radius: 8px; background: var(--card-2); border: 1px solid var(--line); white-space: nowrap; }
.pub .doi:hover { background: var(--pos); }
.pub.hi { border-left: 4px solid var(--pos); }

/* ── demo ────────────────────────────────────────────────────────────────── */
.demo { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.demo .card.dark { background: var(--fg); color: #fff; padding: 30px; }
.demo .card.dark h3 { font-size: 24px; margin-bottom: 10px; }
.demo .card.dark p { color: rgba(255,255,255,.75); }
.demo .card.dark .btn.positive { margin-top: 20px; }
.demo .formats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.demo .formats span { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 6px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); }
.demo-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.demo-list li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; background: var(--card); border-radius: 12px; box-shadow: var(--shadow); padding: 14px; }
.demo-list li i { width: 36px; height: 36px; border-radius: 10px; background: var(--card-2); border: 1px solid var(--line); display: grid; place-items: center; }
.demo-list li b { display: block; font-size: 14px; }
.demo-list li span { font-size: 12.5px; color: var(--muted); }

/* ── footer ──────────────────────────────────────────────────────────────── */
footer { background: var(--fg); color: #fff; padding: 54px 0 30px; margin-top: 40px; }
footer .cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
footer .logo { height: 44px; margin-bottom: 14px; }
footer p { color: rgba(255,255,255,.72); font-size: 13.5px; }
footer h4 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-bottom: 12px; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
footer a { color: #fff; text-decoration: none; font-size: 14px; }
footer a:hover { color: var(--pos); }
footer .legal { margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.15); display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; font-size: 12px; color: rgba(255,255,255,.6); }
footer .legal .disc { color: var(--neg); font-weight: 700; }

/* ── responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .people { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .people.exec { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .logos { grid-template-columns: repeat(4, minmax(0,1fr)); }
}
@media (max-width: 960px) {
  .burger { display: flex; }
  .topbar .tabs {
    display: none; position: absolute; left: 0; right: 0; top: var(--nav-h);
    background: #fff; border-bottom: 1px solid var(--line); padding: 10px 16px 14px; flex-direction: column; gap: 2px;
    box-shadow: var(--shadow-lg);
  }
  .topbar .tabs.open { display: flex; }
  .topbar .tab { padding: 12px 10px; font-size: 15px; }
  .topbar .tab-cta { display: none; }
.topbar .tab.active::after { display: none; }
  .topbar .tab.active { background: var(--card-2); }
  .topbar .cta { display: none; }
  .topbar .tab-cta { display: block; margin-top: 6px; background: var(--pos); color: var(--fg); font-weight: 700; text-align: center; border-radius: 10px; }
  .hero, .problem, .outputs, .demo { grid-template-columns: 1fr; }
  .outputs .claims { grid-template-columns: 1fr; }
  .equation { grid-template-columns: 1fr; }
  .equation .op { transform: rotate(90deg); font-size: 28px; }
  .news, .stat-row { grid-template-columns: 1fr; }
  .logos { grid-template-columns: repeat(3, minmax(0,1fr)); }
  footer .cols { grid-template-columns: 1fr; }
  section { padding: 72px 0; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  #home { padding: 36px 0 56px; }
  .hero .facts { grid-template-columns: 1fr; }
  .people, .people.exec { grid-template-columns: 1fr; }
  .logos { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .kpis { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .outlist { grid-template-columns: 1fr; }
  .pub { grid-template-columns: 1fr; gap: 8px; }
  .pub .yr { font-size: 16px; }
  .pub .yr small { display: inline; margin-left: 6px; }
  .pub .doi { justify-self: start; }
}
/* the phone folds (see app.js `foldable`): above 640 px the class means nothing and the button is
   not drawn, so a wide screen and a crawler see every card; print always sees every card */
.fold-btn { display: none; }
@media (max-width: 640px) {
  .fold-btn { display: inline-block; margin-top: 12px; }
  .people.folded > .person:nth-child(n + 4), .pubs.folded > .pub:nth-child(n + 4) { display: none; }
}
@media print {
  .people.folded > .person, .pubs.folded > .pub { display: grid; }
  .fold-btn, .burger, .topbar .cta, .progress { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
.news .card .when { margin-top: -4px; }
.news .card.feature .when { color: rgba(255,255,255,.55); }
