/* =============================================================================
   AiMolSim marketing site. Shared stylesheet.
   Design language inherited from aiserva.com (light theme, ONE accent, DM Sans
   display + Inter body + JetBrains Mono figures, radius scale 12/16/24, soft
   tinted shadows, motion via transitions + IntersectionObserver only).
   AiMolSim identity: burnt "site-safety" orange accent on steel-navy ink.
   No sticky or fixed chrome anywhere (owner rule): the header scrolls away.
   ============================================================================= */
:root {
  color-scheme: light;
  --accent: #0f766e;        /* text-safe orange (AA on white) */
  --accent-fill: #14b8a6;   /* fills, bars, icons */
  --accent-deep: #115e59;
  --accent-tint: #e9faf7;
  --ink: #0b1b5c;           /* steel navy */
  --ink-2: #1b2a6b;
  --muted: #4a5670;
  --line: #e1e6f0;
  --canvas: #f5f8fc;
  --panel: #edf2f8;
  --ok: #15803d; --warn: #b45309; --bad: #b91c1c;
  --r-chip: 12px; --r-card: 16px; --r-panel: 24px;
  --shadow-soft: 0 1px 2px rgba(11,27,92,.05), 0 8px 24px -12px rgba(11,27,92,.14);
  --shadow-lift: 0 4px 10px rgba(11,27,92,.06), 0 28px 56px -24px rgba(11,27,92,.24);
  --ease: cubic-bezier(.16,1,.3,1);
  --spring: cubic-bezier(.34,1.56,.64,1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--ink); font: 16px/1.6 'Inter', ui-sans-serif, system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: 'DM Sans', 'Inter', sans-serif; margin: 0; color: var(--ink); font-weight: 800; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); letter-spacing: -.035em; line-height: 1.04; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); letter-spacing: -.028em; line-height: 1.08; }
h3 { font-size: 1.2rem; letter-spacing: -.015em; line-height: 1.25; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }
.em { color: var(--accent); }
.muted { color: var(--muted); }
.lede { font-size: 1.125rem; color: var(--muted); line-height: 1.65; max-width: 62ch; }
.small { font-size: .875rem; }
.eyebrow { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--accent); margin-bottom: .9rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 10; padding: 10px 16px; background: var(--ink); color: #fff; border-radius: 999px; }
.skip:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--accent-fill); outline-offset: 2px; border-radius: 6px; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }
section { padding: 88px 0; }
@media (max-width: 768px) { section { padding: 60px 0; } }
.sec-tint { background: var(--canvas); }
.sec-head { max-width: 760px; margin-bottom: 44px; }
.sec-head p { margin-top: 14px; }
.stack > * + * { margin-top: 12px; }

/* Grid helpers (collapse to one column under 768px unless stated) */
.g { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.split.rev > :first-child { order: 2; }
@media (max-width: 960px) { .g4 { grid-template-columns: repeat(2, minmax(0,1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0,1fr)); } .split { grid-template-columns: 1fr; gap: 36px; } .split.rev > :first-child { order: 0; } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

/* Buttons: full-pill, one primary style, one ghost style */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px; font-weight: 700; font-size: .95rem; text-decoration: none; white-space: nowrap; border: 1px solid transparent; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px -10px rgba(15,118,110,.55); }
.btn-primary:hover { background: var(--accent-deep); transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: #c9d1dd; transform: translateY(-1px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { color: var(--accent); font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 3px; }
.mi { font-family: 'Material Icons Outlined'; font-weight: normal; font-style: normal; font-size: 20px; line-height: 1; display: inline-block; text-transform: none; letter-spacing: normal; white-space: nowrap; direction: ltr; -webkit-font-smoothing: antialiased; font-feature-settings: 'liga'; }

/* Header: normal flow, scrolls away with the page */
.site-head { border-bottom: 1px solid var(--line); background: #fff; position: relative; z-index: 5; }
.site-head > .wrap { height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: 'DM Sans', sans-serif; font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; flex: none; }
.brand-mark img { width: 34px; height: 34px; display: block; }
.brand b { color: var(--accent); }
.nav { display: flex; align-items: center; gap: 2px; font-size: .92rem; font-weight: 600; color: var(--muted); }
.nav > .dd > button, .nav > a { background: none; border: 0; font: inherit; color: inherit; padding: 9px 13px; border-radius: 999px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 2px; }
.nav > .dd > button:hover, .nav > a:hover, .nav > .dd.open > button { background: var(--panel); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); }
.dd { position: relative; }
.dd-panel { position: absolute; left: 50%; top: calc(100% + 10px); transform: translateX(-50%) translateY(6px); opacity: 0; pointer-events: none; transition: opacity .2s var(--ease), transform .25s var(--ease); background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-lift); padding: 8px; display: grid; grid-template-columns: repeat(2, 270px); gap: 2px; }
.dd-panel.one { grid-template-columns: 290px; }
.dd.open .dd-panel { opacity: 1; transform: translateX(-50%); pointer-events: auto; }
.dd-panel a { display: flex; gap: 12px; padding: 11px; border-radius: var(--r-chip); text-decoration: none; }
.dd-panel a:hover { background: var(--canvas); }
.dd-panel strong { display: block; font-size: .9rem; color: var(--ink); }
.dd-panel span.d { display: block; font-size: .78rem; color: var(--muted); font-weight: 500; margin-top: 2px; line-height: 1.4; }
.ichip { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-tint); color: var(--accent); }
.ichip.lg { width: 48px; height: 48px; flex-basis: 48px; border-radius: 14px; }
.ichip.lg .mi { font-size: 26px; }
.head-cta { display: flex; gap: 10px; align-items: center; }
.menu-btn { display: none; }
@media (max-width: 1100px) {
  .nav, .head-cta .btn-ghost { display: none; }
  .menu-btn { display: inline-flex; width: 46px; height: 46px; border-radius: 999px; border: 1px solid var(--line); background: #fff; align-items: center; justify-content: center; cursor: pointer; }
}
@media (max-width: 420px) { .head-cta .btn-primary { display: none; } }
.mnav { display: none; border-bottom: 1px solid var(--line); background: #fff; padding: 8px 0 24px; }
.mnav.open { display: block; }
.mnav h4 { font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 18px 0 6px; }
.mnav a { display: flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; font-weight: 600; }
.mnav .btn-row { margin-top: 18px; }

/* Breadcrumb */
.crumbs { font-size: .8rem; color: var(--muted); padding-top: 22px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.crumbs a { text-decoration: none; } .crumbs a:hover { text-decoration: underline; }
.crumbs li + li::before { content: '/'; margin-right: 6px; color: #9aa4b2; }

/* Hero */
.hero { padding: 56px 0 72px; position: relative; overflow: hidden; }
@media (min-width: 961px) { .hero .split { grid-template-columns: 1fr 1.08fr; } }
.hero .lede { margin: 20px 0 30px; }
.bg-grid::before { content: ''; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(to right, rgba(11,27,92,.05) 1px, transparent 1px), linear-gradient(to bottom, rgba(11,27,92,.05) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(70% 60% at 30% 0%, #000 25%, transparent 100%); mask-image: radial-gradient(70% 60% at 30% 0%, #000 25%, transparent 100%); }
.hero-media { position: relative; }
.photo { border-radius: var(--r-panel); overflow: hidden; box-shadow: var(--shadow-lift); border: 1px solid var(--line); background: var(--panel); }
.photo img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.photo.tall img { aspect-ratio: 4/5; }
.float-card { position: absolute; background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-lift); padding: 14px 16px; font-size: .82rem; min-width: 210px; }
.float-card .k { font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 1.35rem; color: var(--ink); }
.float-card.a { right: -14px; bottom: 22px; }
.float-card.b { left: -22px; top: 26px; }
@media (max-width: 960px) { .float-card.a { right: 10px; } .float-card.b { left: 10px; } }
@media (max-width: 520px) { .float-card { display: none; } }
.page-hero { padding: 40px 0 64px; }
.page-hero h1 { max-width: 20ch; }

/* Stat band */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); border: 1px solid var(--line); border-radius: var(--r-panel); background: #fff; }
.stats > div { padding: 26px 24px; }
.stats > div + div { border-left: 1px solid var(--line); }
.stats .n { font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 2rem; letter-spacing: -.03em; color: var(--ink); }
.stats .n small { font-size: 1rem; color: var(--accent); }
.stats p { margin: 6px 0 0; font-size: .88rem; color: var(--muted); }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, minmax(0,1fr)); } .stats > div:nth-child(3) { border-left: 0; } .stats > div:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* Cards */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); padding: 26px; box-shadow: var(--shadow-soft); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .2s; }
a.card { text-decoration: none; display: block; }
a.card:hover, .card.hov:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: #d3dae5; }
.card h3 { margin: 16px 0 8px; }
.card p { color: var(--muted); font-size: .95rem; margin: 0; }
.card .more { margin-top: 16px; }
.card-img { padding: 0; overflow: hidden; }
.card-img img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.card-img .in { padding: 22px 24px 26px; }
.card-img .in h3 { margin-top: 0; }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 20px; }
.bento > * { grid-column: span 2; }
.bento .w3 { grid-column: span 3; } .bento .w4 { grid-column: span 4; } .bento .w6 { grid-column: span 6; }
.bento .ink { background: var(--ink); color: #dfe6f0; border-color: var(--ink); }
.bento .ink h3 { color: #fff; } .bento .ink p { color: #b8c3d3; }
.bento .ink .ichip { background: rgba(20,184,166,.18); color: #5eead4; }
.bento .tint { background: var(--accent-tint); border-color: #bfeee7; }
.bento .photo-cell { padding: 0; overflow: hidden; position: relative; min-height: 260px; }
.bento .photo-cell img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 960px) { .bento { grid-template-columns: 1fr 1fr; } .bento > *, .bento .w3, .bento .w4, .bento .w6 { grid-column: span 1; } .bento .w4, .bento .w6 { grid-column: span 2; } }
@media (max-width: 640px) { .bento { grid-template-columns: 1fr; } .bento > *, .bento .w4, .bento .w6 { grid-column: span 1; } }

/* Feature list with checks */
.checks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks li::before { content: 'check_circle'; font-family: 'Material Icons Outlined'; font-size: 20px; color: var(--accent-fill); line-height: 1.3; -webkit-font-smoothing: antialiased; }
.checks.two { grid-template-columns: 1fr 1fr; column-gap: 28px; }
@media (max-width: 640px) { .checks.two { grid-template-columns: 1fr; } }

/* Pipeline steps (horizontal scroll-snap on small screens) */
.flow { display: grid; grid-template-columns: repeat(var(--n, 6), minmax(0,1fr)); gap: 14px; counter-reset: f; }
.flow > div { background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); padding: 18px; position: relative; }
.flow .ichip { margin-bottom: 12px; }
.flow h4 { font-size: .95rem; }
.flow p { font-size: .84rem; color: var(--muted); margin: 6px 0 0; }
@media (max-width: 1000px) { .flow { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 74%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; padding-bottom: 8px; } .flow > div { scroll-snap-align: start; } }

/* Tables (semantic, LLM-readable) */
.tbl-wrap { overflow-x: auto; overflow-y: hidden; border: 1px solid var(--line); border-radius: var(--r-card); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 13px 16px; vertical-align: top; }
thead th { background: var(--canvas); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); border-bottom: 1px solid var(--line); }
tbody tr + tr td { border-top: 1px solid var(--line); }
td.num, th.num { text-align: right; font-family: 'JetBrains Mono', monospace; white-space: nowrap; }
caption { caption-side: bottom; text-align: left; padding: 12px 16px; font-size: .8rem; color: var(--muted); }

/* Pills */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--panel); color: var(--ink-2); }
.pill.o { background: var(--accent-tint); color: var(--accent-deep); }
.pill.g { background: #e9f7ef; color: var(--ok); }
.pill.r { background: #fdecec; color: var(--bad); }
.pill.y { background: #fef6e3; color: var(--warn); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }

/* FAQ */
.faq details { border: 1px solid var(--line); border-radius: var(--r-card); background: #fff; padding: 0 22px; }
.faq details + details { margin-top: 12px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 700; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: 'add'; font-family: 'Material Icons Outlined'; font-size: 22px; color: var(--accent); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 20px; color: var(--muted); }

/* CTA band */
.cta-band { border-radius: var(--r-panel); background: var(--ink); color: #dfe6f0; padding: 56px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #b8c3d3; margin-top: 12px; }
.cta-band::after { content: ''; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(20,184,166,.35), transparent 65%); pointer-events: none; }
.cta-band .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; padding: 36px 24px; } }

/* Footer */
.site-foot { border-top: 1px solid var(--line); background: var(--canvas); padding: 64px 0 48px; margin-top: 40px; font-size: .9rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(5, 1fr); gap: 28px; }
.site-foot h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 12px; }
.site-foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-foot a { text-decoration: none; color: var(--ink-2); } .site-foot a:hover { color: var(--accent); }
.foot-base { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .82rem; }
@media (max-width: 960px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: span 2; } }

/* ===== Software UI frame (real product screen, rebuilt in HTML for the walkthrough) ===== */
.app { border: 1px solid #d6dce6; border-radius: var(--r-card); background: #fff; box-shadow: var(--shadow-lift); overflow: hidden; font-size: 13px; }
.app-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--canvas); border-bottom: 1px solid var(--line); }
.app-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d4dae3; }
.app-bar .t { margin-left: 10px; font-weight: 600; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-body { display: grid; grid-template-columns: 170px 1fr; min-height: 400px; }
.app-side { border-right: 1px solid var(--line); padding: 12px 8px; background: #fbfcfd; }
.app-side div { padding: 7px 10px; border-radius: 8px; color: var(--muted); font-weight: 600; font-size: 12px; display: flex; align-items: center; gap: 8px; transition: background .3s, color .3s; }
.app-side div .mi { font-size: 16px; }
.app-side div.on { background: var(--accent-tint); color: var(--accent-deep); }
.app-main { padding: 16px 18px; position: relative; min-width: 0; }
@media (max-width: 640px) { .app-body { grid-template-columns: 1fr; } .app-side { display: flex; overflow-x: auto; overflow-y: hidden; border-right: 0; border-bottom: 1px solid var(--line); gap: 4px; } .app-side div { white-space: nowrap; } }

/* Walkthrough player */
.wt { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: start; }
.wt-steps { display: grid; gap: 6px; }
.wt-steps button { text-align: left; background: #fff; border: 1px solid var(--line); border-radius: var(--r-chip); padding: 12px 14px; font: inherit; cursor: pointer; display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: center; transition: border-color .2s, background .2s, transform .2s var(--ease); position: relative; overflow: hidden; }
.wt-steps button:hover { border-color: #cdd5e1; }
.wt-steps button[aria-selected="true"] { border-color: var(--accent-fill); background: var(--accent-tint); }
.wt-steps .no { width: 28px; height: 28px; border-radius: 50%; background: var(--panel); display: grid; place-items: center; font-weight: 800; font-size: .8rem; font-family: 'JetBrains Mono', monospace; }
.wt-steps button[aria-selected="true"] .no { background: var(--accent); color: #fff; }
.wt-steps strong { font-size: .9rem; display: block; }
.wt-steps span.d { font-size: .78rem; color: var(--muted); display: block; line-height: 1.35; }
.wt-steps .bar { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--accent-fill); width: 0; }
.wt-steps button[aria-selected="true"] .bar { animation: wtbar var(--dur, 7s) linear forwards; }
.wt.paused .wt-steps .bar { animation-play-state: paused; }
@keyframes wtbar { to { width: 100%; } }
.wt-ctrl { display: flex; gap: 10px; margin-top: 12px; align-items: center; }
.wt-ctrl button { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font: inherit; font-weight: 700; font-size: .85rem; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.wt-screen { min-width: 0; }
.wt-cap { margin-top: 14px; color: var(--muted); font-size: .92rem; min-height: 3em; }
.js .scr:not(.on) { pointer-events: none; }
.js .scr.on { animation: scrIn .55s var(--ease); }
@keyframes scrIn { from { opacity: 0; transform: translateY(10px) scale(.99); } to { opacity: 1; transform: none; } }
.js .scr .rv { opacity: 0; transform: translateY(6px); }
.scr.on .rv { animation: rv .5s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 140ms + 200ms); }
@keyframes rv { to { opacity: 1; transform: none; } }
@media (max-width: 960px) { .wt { grid-template-columns: 1fr; } .wt-steps { grid-auto-flow: column; grid-auto-columns: 220px; overflow-x: auto; overflow-y: hidden; padding-bottom: 6px; } }

/* Mini UI atoms used inside .app */
.ui-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.ui-h b { font-size: 14px; font-family: 'DM Sans', sans-serif; }
.ui-row { display: grid; grid-template-columns: var(--cols, 1fr auto); gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; align-items: center; background: #fff; }
.ui-row + .ui-row { margin-top: 6px; }
.ui-row .s { color: var(--muted); font-size: 11.5px; }
.ui-kpis { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; margin-bottom: 12px; }
.ui-kpis div { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.ui-kpis b { display: block; font-family: 'JetBrains Mono', monospace; font-size: 16px; }
.ui-kpis span { font-size: 11px; color: var(--muted); }
@media (max-width: 640px) { .ui-kpis { grid-template-columns: 1fr 1fr; } }
.ui-bar { height: 8px; border-radius: 99px; background: var(--accent-fill); transform-origin: left; }
.scr.on .ui-bar { animation: grow 1.1s var(--ease) both; animation-delay: calc(var(--i, 0) * 120ms + 300ms); }
@keyframes grow { from { transform: scaleX(0); } }
.ui-ai { border: 1px dashed #8fdcd1; background: var(--accent-tint); border-radius: 10px; padding: 10px 12px; font-size: 12.5px; display: flex; gap: 8px; }
.ui-ai .mi { color: var(--accent); font-size: 18px; }
.typing::after { content: ''; display: inline-block; width: 7px; height: 13px; background: var(--accent-fill); margin-left: 2px; vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.kanban { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 8px; }
.kanban > div { background: var(--canvas); border-radius: 10px; padding: 8px; min-height: 180px; }
.kanban h5 { margin: 0 0 8px; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.kcard { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 7px 8px; font-size: 11.5px; margin-bottom: 6px; }
.kcard b { display: block; font-size: 12px; }
@media (max-width: 640px) { .kanban { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 46%; overflow-x: auto; overflow-y: hidden; } }
.gantt { display: grid; gap: 6px; }
.gantt .r { display: grid; grid-template-columns: 120px 1fr; gap: 8px; align-items: center; font-size: 11.5px; }
.gantt .t { position: relative; height: 16px; background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), var(--line) calc(10% - 1px) 10%); border-radius: 4px; }
.gantt .t span { position: absolute; top: 2px; height: 12px; border-radius: 4px; background: #94a3b8; }
.gantt .t span.c { background: var(--accent-fill); }
.scr.on .gantt .t span { animation: grow .9s var(--ease) both; animation-delay: calc(var(--i, 0) * 110ms + 300ms); }

/* Interactive calculator */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.calc label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 8px; }
.calc .field + .field { margin-top: 20px; }
.calc input[type=range] { width: 100%; accent-color: var(--accent-fill); }
.calc output { font-family: 'JetBrains Mono', monospace; font-weight: 700; color: var(--accent); }
.calc .res { background: var(--ink); color: #dfe6f0; border-radius: var(--r-panel); padding: 28px; }
.calc .res .big { font-family: 'JetBrains Mono', monospace; font-size: 2.6rem; font-weight: 700; color: #fff; letter-spacing: -.03em; }
.calc .res dl { display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; margin: 22px 0 0; font-size: .92rem; }
.calc .res dd { margin: 0; font-family: 'JetBrains Mono', monospace; color: #fff; text-align: right; }
.calc .res dt { color: #b8c3d3; }
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } }

/* Tabs (horizontal strip: overflow-y hidden stated explicitly) */
.tabs { display: flex; gap: 6px; overflow-x: auto; overflow-y: hidden; padding-bottom: 4px; margin-bottom: 22px; }
.tabs button { flex: 0 0 auto; min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font: inherit; font-weight: 700; font-size: .88rem; cursor: pointer; color: var(--muted); }
.tabs button[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.tabpanel[hidden] { display: none; }

/* Glossary */
.gloss { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.gloss dt { font-weight: 800; font-family: 'DM Sans', sans-serif; }
.gloss > div { border: 1px solid var(--line); border-radius: var(--r-card); padding: 18px 20px; background: #fff; }
.gloss dd { margin: 6px 0 0; color: var(--muted); font-size: .93rem; }
@media (max-width: 760px) { .gloss { grid-template-columns: 1fr; } }

/* Contact form */
.form { display: grid; gap: 18px; }
.form label { font-weight: 700; font-size: .9rem; display: block; margin-bottom: 6px; }
.form input, .form select, .form textarea { width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1px solid #c9d1dd; border-radius: var(--r-chip); padding: 12px 14px; min-height: 48px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid rgba(20,184,166,.25); border-color: var(--accent-fill); }
.form .help { font-size: .82rem; color: var(--muted); margin-top: 6px; }

/* Reveal on scroll */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--d, 0) * 80ms); }
  .js .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .scr .rv { opacity: 1; transform: none; }
}
.mt0 { margin-top: 0; } .mt1 { margin-top: 12px; } .mt2 { margin-top: 24px; } .mt3 { margin-top: 40px; }
.center { text-align: center; }
.note { font-size: .82rem; color: var(--muted); }
.app td:first-child, .app th:first-child { white-space: nowrap; }
.wt.compact { grid-template-columns: 1fr; gap: 16px; }
.wt.compact .wt-steps { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); overflow-x: auto; overflow-y: hidden; }
.wt.compact .wt-ctrl { display: none; }
.wt.compact .app-body { grid-template-columns: 1fr; }
.wt.compact .app-side { display: none; }
/* Grid children may shrink below their content (stops wide strips forcing page overflow) */
.wt > *, .split > *, .g > *, .bento > *, .calc > *, .cta-band > * { min-width: 0; }
.vlist { display: grid; gap: 10px; }
.vlist > div { background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); padding: 14px 16px; }
.vlist h4 { font-size: .95rem; } .vlist p { font-size: .88rem; color: var(--muted); margin: 4px 0 0; }
.role-row { gap: 28px; align-items: start; } @media (min-width: 961px) { .role-row { grid-template-columns: .8fr 1.2fr; } }
/* Walkthrough v2: AI status line, typed search, source grid, stacked value bar */
.app-bar .t { flex: 0 1 auto; }
.ai-status { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; min-width: 0; max-width: 60%; font-size: 11.5px; font-weight: 600; color: var(--accent-deep); background: var(--accent-tint); border: 1px solid #bfeee7; border-radius: 999px; padding: 4px 10px; }
.ai-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spin { width: 11px; height: 11px; flex: 0 0 11px; border-radius: 50%; border: 2px solid #5eead4; border-top-color: var(--accent-fill); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.wt.paused .spin { animation-play-state: paused; }
@media (max-width: 640px) { .ai-status { max-width: 100%; } .app-bar { flex-wrap: wrap; } .app-bar .t { display: none; } }
.ui-search { display: flex; align-items: center; gap: 8px; border: 1px solid #c9d1dd; border-radius: 999px; padding: 8px 14px; margin-bottom: 10px; min-height: 38px; font-size: 12.5px; }
.ui-search .mi { color: var(--accent); font-size: 18px; }
.typing-q::after { content: ''; display: inline-block; width: 6px; height: 13px; background: var(--accent-fill); margin-left: 2px; vertical-align: -2px; animation: blink 1s steps(1) infinite; }
.src-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 10px; }
.src { display: flex; align-items: center; gap: 6px; font-size: 11.5px; border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; background: #fbfcfd; }
.src .mi { font-size: 15px; color: var(--ok); }
.src b { margin-left: auto; font-family: 'JetBrains Mono', monospace; }
@media (max-width: 640px) { .src-grid { grid-template-columns: 1fr; } }
.stack-bar { display: flex; gap: 3px; height: 14px; }
.stack-bar .ui-bar { height: 14px; border-radius: 4px; }
/* Long step lists scroll inside their own column on desktop (the active step is followed by JS) */
@media (min-width: 961px) { .wt:not(.compact) .wt-steps { max-height: 600px; overflow-y: auto; overflow-x: hidden; padding-right: 4px; overscroll-behavior: contain; } }
/* Nav stays on one line: labels never wrap; switch to the menu button before space runs out */
.nav > .dd > button, .nav > a { white-space: nowrap; padding: 9px 11px; }
@media (max-width: 1240px) {
  .nav, .head-cta .btn-ghost { display: none; }
  .menu-btn { display: inline-flex; width: 46px; height: 46px; border-radius: 999px; border: 1px solid var(--line); background: #fff; align-items: center; justify-content: center; cursor: pointer; }
}

/* Walkthrough: every screen shares one grid cell, so the window keeps the height of the tallest screen (no jump) */
.wt-screen .app-main { display: grid; align-content: start; }
.wt-screen .scr { display: block; grid-area: 1 / 1; }
.js .wt-screen .scr { visibility: hidden; }
.js .wt-screen .scr.on { visibility: visible; }
/* Compact players keep a Pause/Play control (WCAG 2.2.2); only prev/next are hidden */
.wt.compact .wt-ctrl { display: flex; margin-top: 0; }
.wt.compact .wt-ctrl [data-act="prev"], .wt.compact .wt-ctrl [data-act="next"] { display: none; }
/* Steps inside a card read as a vertical list */
.card .flow { grid-template-columns: 1fr; grid-auto-flow: row; grid-auto-columns: auto; overflow: visible; gap: 10px; }
.card .flow > div { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; padding: 14px; }
.card .flow > div .ichip { margin-bottom: 0; grid-row: span 2; }
.form select { min-height: 52px; }
/* Hero stats sit BELOW the photo, never over it */
.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.hero-stats .float-card { position: static; min-width: 0; box-shadow: var(--shadow-soft); }
@media (max-width: 520px) { .hero-stats .float-card { display: block; } }

.mnav .wrap { display: block; height: auto; }
/* Step caption keeps its space so the page below never shifts between steps */
.wt .wt-cap { min-height: calc(3 * 1.6em); }

/* Without JavaScript every walkthrough screen is shown as a readable stacked list */
html:not(.js) .wt-screen .app-main { display: block; }
html:not(.js) .wt-screen .scr + .scr { margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--line); }
html:not(.js) .wt-ctrl, html:not(.js) .ai-status { display: none; }
/* Heading levels: footer and menu group labels are h2, step titles are h3, styled as before */
.foot-h, .mnav-h { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 12px; font-weight: 700; }
.mnav-h { margin: 18px 0 6px; }
.h4, h3.h4, h2.h4 { font-size: 1rem; font-weight: 700; letter-spacing: 0; line-height: 1.3; }
.flow h3.h4 { font-size: .95rem; } .vlist h3.h4 { font-size: .95rem; }
/* Pill text contrast >= 4.5:1 (WCAG AA) */
.pill { color: #3f4856; }
.pill.o { color: #115e59; }
.pill.g { color: #166534; }
.pill.y { color: #92400e; }
.pill.r { color: #991b1b; }
/* Keyboard-scrollable regions show focus */
.tbl-wrap:focus-visible, .flow:focus-visible, .wt-steps:focus-visible { outline: 3px solid var(--accent-fill); outline-offset: 2px; }

/* ===== Home hero walkthrough (.hwt): dark Chemistry Lab window, chips below ===== */
@media (min-width: 961px) { .hero .split.hsplit { grid-template-columns: .82fr 1.18fr; gap: 44px; } }
.hwt { display: block; position: relative; }
.hwt::before { content: ''; position: absolute; inset: -40px -30px; z-index: -1; background: radial-gradient(45% 50% at 70% 40%, rgba(20,184,166,.22), transparent 70%), radial-gradient(40% 45% at 20% 80%, rgba(11,27,92,.16), transparent 70%); filter: blur(10px); }
.app.dark { background: #0a1540; border-color: #1c2b66; color: #dbe4f5; box-shadow: 0 30px 70px -30px rgba(11,27,92,.6), 0 0 0 1px rgba(94,234,212,.08); }
.app.dark .app-bar { background: #0d1a4d; border-color: #1c2b66; }
.app.dark .app-bar i { background: #2a3a78; }
.app.dark .app-bar .t { color: #9fb0d6; }
.app.dark .ai-status { background: rgba(20,184,166,.12); border-color: rgba(94,234,212,.3); color: #7ef0dc; }
.app.dark .app-body { grid-template-columns: 150px 1fr; min-height: 372px; }
.app.dark .app-side { background: #0b173f; border-color: #1c2b66; }
.app.dark .app-side div { color: #8796bd; }
.app.dark .app-side div.on { background: rgba(20,184,166,.16); color: #7ef0dc; }
.app.dark .app-main { overflow: hidden; }
.hwt .scr { position: absolute; inset: 16px 18px; opacity: 0; transition: opacity .45s var(--ease); }
.hwt .scr.on { opacity: 1; }
html:not(.js) .hwt .scr { position: static; opacity: 1; }
.app.dark .ui-row, .app.dark .ui-kpis div { background: #0f1d52; border-color: #22346f; color: #dbe4f5; }
.app.dark .ui-kpis b { color: #fff; font-size: 14px; }
.app.dark .ui-kpis span, .app.dark .s { color: #8f9fc6; }
.app.dark .ui-h b { color: #fff; }
.app.dark .pill { background: #1a2a64; color: #c8d3ee; }
.app.dark .pill.g { background: rgba(20,184,166,.18); color: #7ef0dc; }
.app.dark .ui-ai { background: rgba(20,184,166,.1); border-color: rgba(94,234,212,.35); color: #cfe9e5; }
.app.dark .ui-ai .mi { color: #5eead4; }
.app.dark .mono { font-family: 'JetBrains Mono', monospace; }
.app.dark .ui-bar { background: linear-gradient(90deg, #14b8a6, #5eead4); }
/* chat */
.hwt .msg { max-width: 88%; padding: 10px 13px; border-radius: 14px; font-size: 13px; margin-bottom: 10px; }
.hwt .msg.me { margin-left: auto; background: #14b8a6; color: #04201c; font-weight: 600; border-bottom-right-radius: 4px; }
.hwt .msg.me .typing-q::after { content: ''; display: inline-block; width: 6px; height: 13px; background: #04201c; margin-left: 2px; vertical-align: -2px; animation: blink 1s steps(1) infinite; }
.hwt .msg.ai { display: flex; gap: 8px; background: #13225c; border: 1px solid #22346f; border-bottom-left-radius: 4px; }
.hwt .msg.ai .mi { color: #5eead4; font-size: 18px; }
.hwt .offer { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 1px solid rgba(94,234,212,.4); background: linear-gradient(135deg, rgba(20,184,166,.16), rgba(20,184,166,.04)); border-radius: 12px; padding: 12px 14px; }
.hwt .offer span { display: block; font-size: 11.5px; color: #8f9fc6; }
.hwt .qbtn { background: #14b8a6; color: #04201c !important; font-weight: 800; font-size: 12.5px !important; padding: 7px 16px; border-radius: 999px; animation: pulse 1.6s var(--ease) infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(94,234,212,.55); } 50% { box-shadow: 0 0 0 8px rgba(94,234,212,0); } }
.hwt .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.hwt .chips span { font-size: 11.5px; padding: 5px 10px; border-radius: 999px; border: 1px solid #2a3d7c; color: #b9c6e6; }
/* viewer */
.hwt .viewer { position: relative; height: 250px; border-radius: 12px; background: radial-gradient(60% 70% at 50% 45%, #15296e, #0a1540 75%); border: 1px solid #22346f; margin-bottom: 10px; overflow: hidden; }
.hwt .viewer::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(126,240,220,.12) 1px, transparent 1px); background-size: 18px 18px; pointer-events: none; }
.hwt .mol { width: 100%; height: 100%; }
.hwt .bond { stroke: #c9d4ea; stroke-width: 9; stroke-linecap: round; }
.hwt .meas { fill: none; stroke: #5eead4; stroke-width: 2; stroke-dasharray: 4 4; }
.hwt .scr.on .rock { animation: rock 6s ease-in-out infinite; transform-origin: 50% 50%; transform-box: fill-box; }
@keyframes rock { 0%,100% { transform: scaleX(1); } 50% { transform: scaleX(.72); } }
.hwt .hl, .hwt .hr { transform-origin: 160px 80px; }
.hwt .scr.on .hl { animation: bendL 1.1s ease-in-out infinite; }
.hwt .scr.on .hr { animation: bendR 1.1s ease-in-out infinite; }
@keyframes bendL { 50% { transform: rotate(7deg); } }
@keyframes bendR { 50% { transform: rotate(-7deg); } }
.hwt .tag { position: absolute; font-size: 11.5px; background: rgba(10,21,64,.85); border: 1px solid rgba(94,234,212,.4); color: #cfe9e5; padding: 4px 9px; border-radius: 8px; z-index: 1; }
.hwt .tag b { color: #7ef0dc; font-family: 'JetBrains Mono', monospace; }
.hwt .t1 { left: 12px; top: 12px; } .hwt .t2 { left: 12px; top: 44px; }
.hwt .atomcard { position: absolute; right: 12px; top: 12px; z-index: 1; display: grid; gap: 2px; font-size: 11px; color: #9fb0d6; background: #0f1d52; border: 1px solid #22346f; padding: 8px 10px; border-radius: 10px; }
.hwt .atomcard b { color: #fff; font-size: 13px; }
/* charts */
.hwt .chart { position: relative; border-radius: 12px; border: 1px solid #22346f; background: #0c1848; padding: 10px 10px 24px; margin-bottom: 10px; }
.hwt .chart svg { width: 100%; height: 170px; }
.hwt .chart .axis { position: absolute; left: 14px; bottom: 6px; font-size: 10.5px; color: #7f8fb8; }
.hwt .grid line, .hwt .base { stroke: #1f3170; stroke-width: 1; }
.hwt .draw { fill: none; stroke: #5eead4; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 420; stroke-dashoffset: 420; filter: drop-shadow(0 0 6px rgba(94,234,212,.6)); }
.hwt .scr.on .draw { animation: dash 2.2s var(--ease) .2s forwards; }
@keyframes dash { to { stroke-dashoffset: 0; } }
.hwt .endpt { fill: #5eead4; opacity: 0; }
.hwt .scr.on .endpt { animation: pop .4s var(--spring) 2.2s forwards, pulse2 1.6s 2.6s infinite; }
@keyframes pop { to { opacity: 1; } }
@keyframes pulse2 { 50% { r: 8; } }
.hwt .sticks line { stroke: #5eead4; stroke-width: 5; stroke-linecap: round; transform-origin: center bottom; transform-box: fill-box; transform: scaleY(0); }
.hwt .scr.on .sticks line { animation: growY .8s var(--spring) forwards; animation-delay: calc(var(--i) * 260ms + 200ms); }
@keyframes growY { to { transform: scaleY(1); } }
.hwt .spec text { fill: #9fb0d6; font: 600 10px 'JetBrains Mono', monospace; text-anchor: middle; }
/* orbitals */
.hwt .orbs { display: grid; grid-template-columns: 1.3fr 1fr; gap: 12px; margin-bottom: 10px; }
.hwt .orbview { position: relative; height: 240px; border-radius: 12px; background: radial-gradient(60% 70% at 50% 50%, #15296e, #0a1540 75%); border: 1px solid #22346f; overflow: hidden; }
.hwt .lobe { position: absolute; left: 50%; width: 92px; height: 92px; margin-left: -46px; border-radius: 50%; filter: blur(2px); }
.hwt .lobe.a { top: 26px; background: radial-gradient(circle at 40% 35%, #a7f3e8, #14b8a6 55%, rgba(20,184,166,0) 72%); }
.hwt .lobe.b { bottom: 26px; background: radial-gradient(circle at 40% 35%, #c7d2fe, #4f46e5 55%, rgba(79,70,229,0) 72%); }
.hwt .core { position: absolute; left: 50%; top: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ffb4b4, #e5484d 60%, #8f1d22); }
.hwt .spinw { position: absolute; inset: 0; }
.hwt .scr.on .spinw { animation: orbspin 7s linear infinite; }
.hwt .scr.on .lobe { animation: breathe 2.4s ease-in-out infinite; }
@keyframes orbspin { to { transform: rotate(360deg); } }
@keyframes breathe { 50% { transform: scale(1.12); } }
.hwt .levels { display: flex; flex-direction: column; justify-content: center; gap: 12px; font-size: 11px; color: #8f9fc6; }
.hwt .lv { display: flex; align-items: center; gap: 4px; border-top: 2px solid #5eead4; padding-top: 4px; }
.hwt .lv.v { border-color: #6b7bb4; border-top-style: dashed; }
.hwt .lv i { width: 7px; height: 12px; background: #5eead4; clip-path: polygon(50% 0, 100% 40%, 65% 40%, 65% 100%, 35% 100%, 35% 40%, 0 40%); }
.hwt .lv i + i { transform: rotate(180deg); }
.hwt .gap { font-size: 10px; color: #6b7bb4; text-align: center; }
/* screening, validation, report */
.hwt .simgrid .ui-row { padding: 5px 10px; }
.hwt .sim { display: block; background: #172866; border-radius: 99px; overflow: hidden; }
.hwt .tick { width: 22px; height: 22px; border-radius: 50%; background: rgba(20,184,166,.2); color: #5eead4; display: grid; place-items: center; }
.hwt .tick .mi { font-size: 16px; }
.hwt .scr.on .tick { animation: pop2 .5s var(--spring) both; animation-delay: inherit; }
@keyframes pop2 { from { transform: scale(0); } }
.hwt .report { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: center; margin-bottom: 10px; }
.hwt .paper { background: #fff; color: #0b1b5c; border-radius: 10px; padding: 16px; display: grid; gap: 8px; box-shadow: 0 18px 40px -18px rgba(0,0,0,.6); transform: rotate(-3deg); }
.hwt .paper span { height: 7px; border-radius: 4px; background: #dfe6f0; }
.hwt .paper .w60 { width: 60%; background: #5eead4; } .hwt .paper .w80 { width: 80%; } .hwt .paper .w40 { width: 40%; }
.hwt .paper em { font-style: normal; font-size: 11px; color: #0f766e; font-weight: 700; }
.hwt .chain { display: grid; gap: 8px; position: relative; }
.hwt .node { display: flex; align-items: center; gap: 8px; font-size: 12.5px; background: #0f1d52; border: 1px solid #22346f; border-radius: 10px; padding: 8px 10px; position: relative; }
.hwt .node .mi { color: #5eead4; font-size: 18px; }
.hwt .node + .node::before { content: ''; position: absolute; left: 18px; top: -9px; height: 9px; border-left: 2px solid #5eead4; }
/* chips row under the window */
.hwt-foot { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.hwt .wt-steps { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; flex: 1; padding: 2px; }
.hwt .wt-steps::-webkit-scrollbar { display: none; }
.hwt .wt-steps button { display: block; grid-template-columns: none; padding: 7px 13px; border-radius: 999px; font-size: .8rem; white-space: nowrap; flex: none; }
.hwt .wt-steps strong { font-size: .8rem; }
.hwt .wt-ctrl { margin: 0; }
.hwt .wt-ctrl button { min-height: 34px; padding: 0 12px; font-size: .78rem; }
.hwt .wt-cap { margin-top: 10px; min-height: 3.2em; font-size: .9rem; }
@media (max-width: 640px) {
  .app.dark .app-body { grid-template-columns: 1fr; min-height: 0; }
  .app.dark .app-side { display: none; }
  .app.dark .app-main { height: 400px; }
  .hwt .orbs, .hwt .report { grid-template-columns: 1fr; }
  .hwt .orbview { height: 150px; } .hwt .viewer { height: 210px; }
  .hwt .chart svg { height: 130px; }
}
@media (prefers-reduced-motion: reduce) { .hwt *, .hwt *::before { animation: none !important; } .hwt .draw { stroke-dashoffset: 0; } .hwt .sticks line { transform: none; } .hwt .endpt { opacity: 1; } }
.hwt .sim .ui-bar { display: block; }
.hwt .ui-kpis.kw { grid-template-columns: 1.7fr 1fr 1fr 1fr; }
@media (max-width: 640px) { .app.dark .app-main { height: 450px; } .hwt .ui-kpis.kw { grid-template-columns: 1fr 1fr; } }

/* Fixed glass header (owner 2026-10-18): stays at the top while scrolling, Apple-style translucent blur */
html { scroll-padding-top: 84px; }
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.72); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(11,27,92,.08); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .site-head { background: rgba(255,255,255,.97); } }
.site-head .mnav { background: transparent; max-height: calc(100vh - 70px); overflow-y: auto; }

/* Domain map (/domains/) */
.dmap { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
@media (max-width: 960px) { .dmap { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .dmap { grid-template-columns: 1fr; } }
.dcard { padding: 22px; }
.dhead { display: flex; gap: 14px; align-items: flex-start; }
.dhead h3 { margin: 2px 0 4px; } .dhead h3 a { text-decoration: none; } .dhead h3 a:hover { color: var(--accent); }
.dhead p { font-size: .88rem; }
.dbar { display: flex; height: 8px; border-radius: 99px; overflow: hidden; margin: 16px 0 14px; background: var(--panel); gap: 2px; }
.dbar .l { background: #15803d; } .dbar .p { background: #d97706; } .dbar .n { background: #cbd5e1; }
.dsubs { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .86rem; }
.dsubs li { display: flex; gap: 8px; align-items: flex-start; color: var(--muted); }
.dsubs li::before { content: ''; width: 8px; height: 8px; border-radius: 50%; flex: 0 0 8px; margin-top: 7px; background: #cbd5e1; }
.dsubs li.l { color: var(--ink); font-weight: 600; } .dsubs li.l::before { background: #15803d; }
.dsubs li.p { color: var(--ink-2); } .dsubs li.p::before { background: #d97706; }
.gates { margin: 20px 0 0; padding-left: 22px; display: grid; gap: 8px; }
.gates li::marker { color: var(--accent); font-weight: 800; }

/* Hero walkthrough with real molecules (2026-10-18) */
.hwt .bd { stroke: #c9d4ea; stroke-width: 3.2; stroke-linecap: round; }
.hwt .lp { fill: #5eead4; } .hwt .ln { fill: #818cf8; }
.hwt .orbview.real { background: radial-gradient(60% 70% at 50% 45%, #15296e, #0a1540 75%); }
.hwt .orbview.real svg { width: 100%; height: 100%; }
.hwt .spec .ax { font-size: 9px; fill: #6f80ab; }
.hwt .drug + .drug { margin-top: 12px; padding-top: 12px; border-top: 1px dashed #22346f; }
.hwt .drug .ui-kpis { margin-bottom: 8px; }
.app.dark .pill.y { background: rgba(217,119,6,.2); color: #fbbf77; }
.hwt-note { margin: 2px 0 0; font-size: .78rem; color: var(--muted); }
.hwt .scr.on .rock { animation: rock 9s ease-in-out infinite; }
.hwt .orbs.big { grid-template-columns: 1.9fr 1fr; }
.hwt .orbs.big .orbview { height: 262px; }
@media (max-width: 640px) { .hwt .orbs.big { grid-template-columns: 1fr; } .hwt .orbs.big .orbview { height: 220px; } }
.hwt #hwt-s2 .chart svg { height: 128px; }
.hwt #hwt-s2 .ui-kpis { margin-bottom: 8px; }
.hwt #hwt-s2 .ui-row { padding: 6px 10px; font-size: 12px; }
@media (max-width: 640px) { .app.dark .app-main { height: 540px; } }

/* three.js molecule viewer (assets/mol3d.js); the SVG is the no-WebGL fallback */
.hwt .m3d { position: relative; }
.hwt .m3d-canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; cursor: grab; touch-action: pan-y; z-index: 0; }
.hwt .m3d.grab .m3d-canvas { cursor: grabbing; }
.hwt .m3d.ready > svg { visibility: hidden; }
.hwt .m3d .tag, .hwt .m3d .atomcard { z-index: 2; pointer-events: none; }
.hwt .hint3d { display: none; position: absolute; left: 12px; bottom: 10px; z-index: 2; font-size: 11px; color: #9fb0d6; align-items: center; gap: 4px; pointer-events: none; }
.hwt .hint3d .mi { font-size: 15px; color: #5eead4; }
.hwt .m3d.ready .hint3d { display: inline-flex; }
.hwt .viewer.m3d { height: 282px; }
.hwt .orbs.big .orbview.m3d { height: 282px; }
.hwt .viewer::after { z-index: 1; }
@media (max-width: 640px) { .hwt .viewer.m3d, .hwt .orbs.big .orbview.m3d { height: 240px; } }

/* ===== Animated software comparison (.cmpx, inc/compare_tbl.php) ===== */
.cmpx { position: relative; }
.cmp-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.cmp-filters button { font: inherit; font-size: .85rem; font-weight: 700; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.cmp-filters button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.cmp-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-panel); background: #fff; box-shadow: var(--shadow-soft); }
.cmp-scroll:focus-visible { outline: 3px solid var(--accent-fill); outline-offset: 2px; }
table.cmp { min-width: 940px; border-collapse: separate; border-spacing: 0; font-size: .86rem; }
table.cmp caption { caption-side: bottom; text-align: left; padding: 12px 18px; color: var(--muted); font-size: .78rem; }
table.cmp thead th { position: sticky; top: 0; background: var(--canvas); text-transform: none; letter-spacing: 0; font-size: .9rem; color: var(--ink); padding: 16px 14px; text-align: center; border-bottom: 1px solid var(--line); }
table.cmp thead th.rowh { text-align: left; }
table.cmp th.rowh { position: sticky; left: 0; z-index: 1; background: #fff; text-align: left; font-weight: 600; width: 250px; min-width: 210px; border-right: 1px solid var(--line); }
table.cmp thead th.rowh { background: var(--canvas); z-index: 2; }
table.cmp td, table.cmp tbody th { padding: 11px 12px; border-top: 1px solid var(--line); vertical-align: middle; }
table.cmp td { text-align: center; }
table.cmp tr.grp th { background: var(--panel); font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); padding: 9px 14px; position: sticky; left: 0; }
/* AiMolSim column */
table.cmp .me { background: linear-gradient(180deg, #ecfdf9, #f4fffc); position: relative; }
table.cmp thead th.me { background: var(--ink); color: #fff; border-radius: 0; box-shadow: inset 0 -3px 0 #14b8a6; }
table.cmp td.me { border-left: 2px solid rgba(20,184,166,.35); border-right: 2px solid rgba(20,184,166,.35); }
/* cell values */
.cv { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; line-height: 1.2; }
.cv .mi { font-size: 22px; }
.cv .cl { font-size: .72rem; font-weight: 700; }
.cv .cn { font-size: .7rem; color: var(--muted); max-width: 150px; }
.cv.y .mi, .cv.y .cl { color: #15803d; }
.cv.p .mi, .cv.p .cl { color: #b45309; }
.cv.n .mi, .cv.n .cl { color: #4f46e5; }
.cv.x .mi, .cv.x .cl { color: #94a3b8; }
.cv.o .mi, .cv.o .cl { color: #64748b; }
.cv.c .mi, .cv.c .cl { color: #94a3b8; }
.cmp-legend { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 14px; }
.cmp-legend .cv { flex-direction: row; gap: 6px; }
.cmp-legend .cv .mi { font-size: 18px; }
/* animation: rows cascade, icons pop, beam sweeps the AiMolSim column */
.js .cmpx tbody tr:not(.grp) { opacity: 0; transform: translateY(10px); }
.js .cmpx.in tbody tr:not(.grp) { opacity: 1; transform: none; transition: opacity .5s var(--ease), transform .5s var(--ease); transition-delay: calc(var(--r) * 55ms); }
.js .cmpx .cv .mi { transform: scale(0); }
.js .cmpx.in .cv .mi { transform: scale(1); transition: transform .45s var(--spring); transition-delay: calc(var(--r, 0) * 55ms + 180ms); }
.js .cmpx tr td { --r: inherit; }
.cmpx.in table.cmp tbody td.me::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 100%; background: linear-gradient(180deg, transparent, rgba(94,234,212,.45), transparent); opacity: 0; animation: beam 3.6s ease-in-out infinite; animation-delay: calc(var(--r, 0) * 120ms + 900ms); pointer-events: none; }
@keyframes beam { 0%, 70%, 100% { opacity: 0; } 20% { opacity: 1; } }
.cmpx tbody tr.hide { display: none; }
.cmpx tbody tr:not(.grp):hover th, .cmpx tbody tr:not(.grp):hover td:not(.me) { background: #f8fafc; }
.cmpx.compact table.cmp { min-width: 820px; }
@media (prefers-reduced-motion: reduce) { .js .cmpx tbody tr, .js .cmpx .cv .mi { opacity: 1 !important; transform: none !important; } .cmpx table.cmp td.me::after { display: none; } }
@media (max-width: 640px) { table.cmp th.rowh { width: 150px; min-width: 150px; font-size: .8rem; } }
.cv.u .mi, .cv.u .cl { color: #94a3b8; }

/* ===== Capability matrix (.mx): dark showcase panel, glowing dots, diagonal light-up wave ===== */
.mx { position: relative; background: radial-gradient(80% 60% at 15% 0%, #13306b 0%, #0a1540 55%, #070f30 100%); border-radius: 28px; padding: 26px; color: #dbe4f5; box-shadow: 0 40px 80px -40px rgba(11,27,92,.55); overflow: hidden; }
.mx::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(126,240,220,.08) 1px, transparent 1px); background-size: 22px 22px; pointer-events: none; }
.mx-top { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; align-items: center; margin-bottom: 18px; }
.mx-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.mx-filters button { font: inherit; font-size: .82rem; font-weight: 700; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(148,163,209,.3); background: rgba(255,255,255,.04); color: #c7d2ee; cursor: pointer; transition: all .2s; }
.mx-filters button:hover { border-color: rgba(94,234,212,.6); }
.mx-filters button.on { background: #14b8a6; border-color: #14b8a6; color: #04201c; }
.mx-legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: .74rem; color: #9fb0d6; }
.mx-legend .lg { display: inline-flex; align-items: center; gap: 6px; }
.mx-scroll { position: relative; overflow-x: auto; border-radius: 18px; border: 1px solid rgba(148,163,209,.18); background: rgba(5,12,40,.35); }
.mx-scroll:focus-visible { outline: 3px solid #5eead4; outline-offset: 2px; }
table.mxt { border-collapse: separate; border-spacing: 0; min-width: 1080px; width: 100%; font-size: .84rem; color: #dbe4f5; }
table.mxt caption { caption-side: bottom; text-align: left; padding: 12px 16px; color: #8696bf; font-size: .75rem; }
table.mxt thead th { position: sticky; top: 0; background: #0b1846; padding: 14px 3px 12px; text-align: center; vertical-align: bottom; border-bottom: 1px solid rgba(148,163,209,.2); text-transform: none; letter-spacing: 0; color: #fff; }
table.mxt .ph .pn { display: block; font-weight: 800; font-size: .8rem; line-height: 1.2; }
table.mxt .ph .pk { display: block; font-size: .64rem; font-weight: 600; color: #7f90bb; margin-top: 3px; }
table.mxt th.rh { position: sticky; left: 0; z-index: 2; text-align: left; font-weight: 600; color: #e6ecfa; padding: 10px 12px; width: 176px; min-width: 168px; background: rgba(10,21,64,.94); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border-right: 1px solid rgba(148,163,209,.18); }
table.mxt thead th.rh { z-index: 3; background: #0b1846; color: #9fb0d6; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; }
table.mxt td { text-align: center; padding: 8px 2px; border-top: 1px solid rgba(148,163,209,.1); }
table.mxt tr.grp th { position: sticky; left: 0; text-align: left; padding: 14px 14px 6px; background: transparent; border: 0; }
table.mxt tr.grp th span { font-size: .7rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: #5eead4; }
/* AiMolSim column */
table.mxt .me { background: linear-gradient(180deg, rgba(20,184,166,.20), rgba(20,184,166,.10)); }
table.mxt thead th.me { background: linear-gradient(180deg, #0f766e, #0d5f59); box-shadow: inset 0 -3px 0 #5eead4; border-radius: 14px 14px 0 0; }
table.mxt td.me { border-left: 1px solid rgba(94,234,212,.35); border-right: 1px solid rgba(94,234,212,.35); min-width: 128px; }
table.mxt td.me .nt { display: block; font-size: .66rem; color: #a7f3e8; margin-top: 3px; line-height: 1.25; }
/* dots */
.mx .dot { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; }
.mx .dot .mi { font-size: 16px; }
.mx .y .dot { background: radial-gradient(circle at 35% 30%, #6ff2d9, #10b5a0); color: #032a25; box-shadow: 0 0 14px rgba(45,212,191,.55); }
.mx .p .dot { background: radial-gradient(circle at 35% 30%, #fcd38a, #e3962a); color: #3a2203; box-shadow: 0 0 12px rgba(245,158,11,.4); }
.mx .n .dot { background: transparent; border: 2px solid #a5b4fc; color: #c7d2fe; }
.mx .x .dot { width: 18px; height: 18px; background: rgba(148,163,209,.12); color: #5d6d98; }
.mx .x .dot .mi { font-size: 13px; }
.mx .o .dot { background: rgba(148,163,209,.16); color: #9fb0d6; }
.mx .c .dot { background: rgba(148,163,209,.08); color: #6b7aa4; }
.mx .u .dot { background: transparent; border: 1px dashed rgba(148,163,209,.45); color: #7f90bb; }
.mx-legend .dot { width: 18px; height: 18px; } .mx-legend .dot .mi { font-size: 12px; }
.mx-legend .x .dot { width: 14px; height: 14px; }
table.mxt td.d { cursor: default; }
table.mxt tbody tr:not(.grp):hover th.rh { background: rgba(19,48,107,.98); }
table.mxt tbody tr:not(.grp):hover td:not(.me) { background: rgba(255,255,255,.035); }
/* animation: diagonal wave (row + column) */
.js .mx td.d .dot { opacity: 0; transform: scale(.2); }
.js .mx.in td.d .dot { opacity: 1; transform: scale(1); transition: opacity .35s ease, transform .55s var(--spring); transition-delay: calc(var(--w) * 38ms); }
.js .mx tbody th.rh { opacity: 0; transform: translateX(-8px); }
.js .mx.in tbody th.rh { opacity: 1; transform: none; transition: opacity .5s ease, transform .5s var(--ease); }
.mx.in td.me.y .dot { animation: glow 2.6s ease-in-out infinite; animation-delay: calc(var(--w) * 38ms + 900ms); }
@keyframes glow { 50% { box-shadow: 0 0 22px rgba(94,234,212,.95), 0 0 0 4px rgba(94,234,212,.15); } }
.mx tbody tr.hide, .mx-home:not(.all) tbody tr.more { display: none; }
.mx-more { position: relative; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 18px; }
.mx-more .btn-ghost { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(148,163,209,.35); }
.mx-more .link-arrow { color: #5eead4; }
.mx-src { position: relative; margin-top: 18px; color: #c7d2ee; }
.mx-src summary { cursor: pointer; font-weight: 700; color: #fff; }
.mx-src ul { margin: 12px 0 0; padding-left: 18px; display: grid; gap: 6px; font-size: .84rem; }
.mx-src a { color: #8ff0e0; }
.mx-src .muted { color: #8696bf; }
@media (max-width: 640px) { .mx { padding: 16px; border-radius: 20px; } table.mxt th.rh { width: 140px; min-width: 140px; font-size: .78rem; } }
@media (prefers-reduced-motion: reduce) { .js .mx td.d .dot, .js .mx tbody th.rh { opacity: 1 !important; transform: none !important; } .mx td.me .dot { animation: none !important; } }
/* home section 2 heading on the light page */
.sec-cmp { padding-top: 8px; }
.mx .q .dot { background: transparent; border: 1px dotted rgba(251,191,36,.6); color: #fbbf77; }
table.mxt { min-width: 1500px; }
table.mxt thead th.ph { min-width: 62px; }

/* ===== Compact light capability matrix (.cm), one view on desktop, picker on phones ===== */
.cm { position: relative; }
.cm-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 18px; margin-bottom: 6px; }
.cm-key { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; padding: 0; font-size: .74rem; color: var(--muted); }
.cm-key li { display: inline-flex; align-items: center; gap: 6px; }
.cm-pick { display: none; align-items: center; gap: 8px; font-size: .85rem; font-weight: 600; }
.cm-pick select { font: inherit; font-weight: 700; padding: 7px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
table.cmt { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; font-size: .8rem; }
table.cmt caption { caption-side: bottom; text-align: left; padding: 10px 0 0; font-size: .74rem; color: var(--muted); }
table.cmt th.cl { width: 196px; text-align: left; font-weight: 500; color: var(--ink-2); padding: 0 8px 0 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
table.cmt thead th { height: 112px; vertical-align: bottom; padding: 0 0 6px; background: none; border: 0; text-transform: none; letter-spacing: 0; }
table.cmt thead th.ph { position: relative; }
table.cmt thead th.ph span { position: absolute; left: 50%; bottom: 8px; transform-origin: 0 50%; transform: rotate(-55deg); white-space: nowrap; font-size: .76rem; font-weight: 700; color: var(--ink-2); transition: color .2s; }
table.cmt thead th.me span { color: var(--accent); font-weight: 800; font-size: .84rem; }
table.cmt thead th.ph::after { content: ''; position: absolute; left: 50%; bottom: 0; width: 1px; height: 5px; background: var(--line); }
table.cmt td, table.cmt tbody th { height: 20px; padding: 0; border: 0; }
table.cmt td { text-align: center; position: relative; }
table.cmt tr.gh th { height: 26px; padding: 8px 0 2px; text-align: left; font-size: .66rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--accent); }
table.cmt tbody tr:not(.gh):hover th.cl { color: var(--ink); font-weight: 700; }
table.cmt tbody tr:not(.gh):hover td { background: rgba(20,184,166,.07); }
table.cmt .hc { background: rgba(20,184,166,.07); }
table.cmt thead th.hc { background: none; } table.cmt thead th.hc span { color: var(--accent); }
/* AiMolSim column band */
table.cmt td.me { background: rgba(20,184,166,.09); }
table.cmt tbody tr:nth-child(2) td.me { border-radius: 8px 8px 0 0; }
table.cmt tbody tr:last-child td.me { border-radius: 0 0 8px 8px; }
table.cmt .mt { display: none; }
/* status marks: simple shapes */
.cm i.s { display: inline-block; width: 10px; height: 10px; border-radius: 50%; vertical-align: middle; }
.cm i.y { background: var(--accent-fill); box-shadow: 0 0 0 3px rgba(20,184,166,.14); }
.cm i.p { background: linear-gradient(90deg, #f59e0b 50%, transparent 50%); border: 1.5px solid #f59e0b; width: 11px; height: 11px; }
.cm i.n { border: 1.5px solid #6366f1; width: 10px; height: 10px; }
.cm i.x { width: 4px; height: 4px; background: #cbd5e1; }
.cm i.o { width: 9px; height: 9px; border-radius: 2px; border: 1.5px solid #94a3b8; transform: rotate(45deg); }
.cm i.c { width: 6px; height: 6px; border: 1.5px solid #cbd5e1; }
.cm i.u { width: 9px; height: 9px; border: 1.5px dashed #94a3b8; }
.cm i.q { width: 9px; height: 9px; border: 1.5px dotted #d97706; }
table.cmt td.me i.y { box-shadow: 0 0 0 3px rgba(20,184,166,.22); }
/* animation: wave across the grid, then a soft pulse on AiMolSim */
.js .cm td i.s { opacity: 0; transform: scale(0); }
.js .cm.in td i.s { opacity: 1; transform: scale(1); transition: opacity .3s ease, transform .5s var(--spring); transition-delay: calc(var(--d) * 22ms); }
.js .cm.in td.o i.s { transform: rotate(45deg) scale(1); }
.js .cm thead th.ph span { opacity: 0; }
.js .cm.in thead th.ph span { opacity: 1; transition: opacity .6s ease; }
.cm.in td.me.y i.s { animation: cmpulse 2.8s ease-in-out infinite; animation-delay: calc(var(--d) * 22ms + 1.4s); }
@keyframes cmpulse { 50% { box-shadow: 0 0 0 6px rgba(20,184,166,.18); } }
.cm-more { margin-top: 12px; }
.cm-src { margin-top: 14px; }
.cm-src summary { cursor: pointer; font-weight: 700; }
.cm-src ul { margin: 10px 0 0; padding-left: 18px; display: grid; gap: 5px; font-size: .84rem; }
/* phones and small tablets: AiMolSim beside one chosen program */
@media (max-width: 860px) {
  .cm-pick { display: inline-flex; }
  table.cmt .hid { display: none; }
  table.cmt thead th { height: auto; padding: 8px 4px; }
  table.cmt thead th.ph span { position: static; transform: none; font-size: .82rem; }
  table.cmt thead th.ph::after { display: none; }
  table.cmt th.cl { width: 46%; white-space: normal; padding: 6px 8px 6px 0; }
  table.cmt td, table.cmt tbody th { height: auto; padding: 6px 4px; border-top: 1px solid var(--line); }
  table.cmt tr.gh th { border-top: 0; }
  table.cmt .mt { display: block; font-size: .68rem; color: var(--muted); line-height: 1.25; margin-top: 2px; }
}
@media (prefers-reduced-motion: reduce) { .js .cm td i.s, .js .cm thead th.ph span { opacity: 1 !important; transform: none !important; } .js .cm td.o i.s { transform: rotate(45deg) !important; } .cm td.me i.s { animation: none !important; } }
/* fit pass: whole matrix within ~680px, rotated names inside the box */
table.cmt { width: calc(100% - 46px); }
table.cmt th.cl { width: 212px; }
table.cmt thead th { height: 98px; }
table.cmt thead th.ph span { transform: rotate(-60deg); font-size: .74rem; }
table.cmt td, table.cmt tbody th { height: 17px; }
table.cmt tr.gh th { height: 20px; padding: 5px 0 1px; }
.cm i.s { width: 9px; height: 9px; } .cm i.y { box-shadow: 0 0 0 2.5px rgba(20,184,166,.14); }
.cm-key { font-size: .72rem; }
@media (max-width: 860px) { table.cmt { width: 100%; } table.cmt td, table.cmt tbody th { padding: 4px; height: auto; } }
table.cmt td, table.cmt tbody th, table.cmt tr.gh th { line-height: 1; }
table.cmt td, table.cmt tbody th { height: 18px; }
table.cmt tr.gh th { height: 18px; padding: 6px 0 2px; }
table.cmt thead th { height: 112px; }
.cm i.s.x { width: 4px; height: 4px; }
.cm i.s.c { width: 6px; height: 6px; }
@media (max-width: 860px) { table.cmt td, table.cmt tbody th { height: auto; line-height: 1.3; } table.cmt thead th { height: auto; } }
table.cmt td, table.cmt tbody th { height: 17px; }
table.cmt tr.gh th { height: 16px; padding: 5px 0 1px; }
table.cmt thead th { height: 120px; padding-bottom: 4px; }
.cm-bar { margin-bottom: 0; }
table.cmt caption { padding-top: 6px; }
.cm-more { margin-top: 6px; }
table.cmt { margin-top: 10px; } @media (max-width: 860px) { table.cmt { margin-top: 4px; } }
@media (max-width: 860px) { table.cmt { table-layout: auto; } table.cmt th.cl { width: auto; } table.cmt td { width: 27%; } table.cmt td i.s { margin-bottom: 2px; } }
@media (max-width: 860px) { table.cmt thead th { height: auto; padding: 6px 4px; } }
/* "Yes" reads as clearly ON: vivid green disc with a white tick; partial brighter amber */
.cm i.s.y { width: 13px; height: 13px; background: #16a34a; box-shadow: 0 0 0 2.5px rgba(22,163,74,.18), 0 1px 3px rgba(22,163,74,.45); position: relative; }
.cm i.s.y::after { content: ''; position: absolute; left: 4.4px; top: 2.2px; width: 3px; height: 6px; border: solid #fff; border-width: 0 1.8px 1.8px 0; transform: rotate(45deg); }
table.cmt td.me i.s.y { background: #0d9488; box-shadow: 0 0 0 3px rgba(13,148,136,.22), 0 1px 4px rgba(13,148,136,.5); }
.cm i.s.p { width: 12px; height: 12px; border-color: #f59e0b; background: linear-gradient(90deg, #f59e0b 50%, #fff 50%); }
.cm.in td.me.y i.s { animation-name: cmpulse2; }
@keyframes cmpulse2 { 50% { box-shadow: 0 0 0 6px rgba(13,148,136,.2), 0 1px 4px rgba(13,148,136,.5); } }
/* ===== Matrix colour system v3 (brand teal + navy): one clear meaning per colour ===== */
.cm { --c-yes: #14b8a6; --c-yes-deep: #0f766e; --c-part: #f59e0b; --c-plan: #6366f1; --c-no: #d5dbe5; --c-slate: #94a3b8; }
.cm i.s.y { width: 13px; height: 13px; background: var(--c-yes); box-shadow: 0 0 0 2.5px rgba(20,184,166,.16), 0 1px 3px rgba(15,118,110,.35); }
.cm i.s.y::after { border-color: #fff; }
table.cmt td.me i.s.y { width: 14px; height: 14px; background: linear-gradient(135deg, #2dd4bf, #0e7490); box-shadow: 0 0 0 3px rgba(45,212,191,.25), 0 2px 6px rgba(14,116,144,.45); }
table.cmt td.me i.s.y::after { left: 4.8px; top: 2.4px; }
.cm i.s.p { width: 12px; height: 12px; border: 1.8px solid var(--c-part); background: linear-gradient(90deg, var(--c-part) 50%, #fff7e6 50%); box-shadow: 0 1px 3px rgba(245,158,11,.35); }
.cm i.s.n { width: 11px; height: 11px; border: 2px solid var(--c-plan); background: #eef2ff; }
.cm i.s.x { width: 4px; height: 4px; background: var(--c-no); border: 0; box-shadow: none; }
.cm i.s.o { width: 8px; height: 8px; border: 1.6px solid var(--c-slate); background: #fff; border-radius: 2px; }
.cm i.s.c { width: 7px; height: 7px; border: 1.5px solid var(--c-no); background: #fff; }
.cm i.s.u { width: 10px; height: 10px; border: 1.5px dashed var(--c-slate); background: #fff; }
.cm i.s.q { width: 10px; height: 10px; border: 1.8px dotted var(--c-part); background: #fffbeb; }
table.cmt td.me { background: linear-gradient(180deg, rgba(20,184,166,.10), rgba(14,116,144,.07)); }
table.cmt thead th.me span { color: var(--c-yes-deep); }
table.cmt tbody tr:not(.gh):hover td, table.cmt .hc { background: rgba(99,102,241,.06); }
table.cmt tbody tr:not(.gh):hover td.me { background: rgba(20,184,166,.16); }
.cm.in td.me.y i.s { animation-name: cmpulse3; }
@keyframes cmpulse3 { 50% { box-shadow: 0 0 0 6px rgba(45,212,191,.22), 0 2px 6px rgba(14,116,144,.45); } }

/* ===== React Bits effects (ported, assets/rb.js) ===== */
/* BlurText */
.rb-blur .rb-w { display: inline-block; opacity: 0; filter: blur(12px); transform: scale(1.4) translateY(-6px); }
.rb-blur.rb-go .rb-w { animation: rbBlur .9s cubic-bezier(.22,1,.36,1) forwards; animation-delay: calc(var(--i) * 90ms + 120ms); }
@keyframes rbBlur { 55% { opacity: .9; filter: blur(2px); transform: scale(.97); } 100% { opacity: 1; filter: blur(0); transform: none; } }
/* ShinyText */
.rb-shiny { background: linear-gradient(110deg, var(--accent) 0%, var(--accent) 40%, #7ef0dc 50%, var(--accent) 60%, var(--accent) 100%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: rbShine 3.2s linear infinite; }
@keyframes rbShine { from { background-position: 120% 0; } to { background-position: -120% 0; } }
/* GradientText on highlighted heading words */
h1 .em, h2 .em { background: linear-gradient(90deg, #0f766e, #14b8a6, #22d3ee, #6366f1, #14b8a6, #0f766e); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: rbGrad 8s ease-in-out infinite alternate; }
@keyframes rbGrad { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
/* SpotlightCard */
.rb-spot { position: relative; isolation: isolate; }
.rb-spot::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0; opacity: 0; transition: opacity .35s ease;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(20,184,166,.13), transparent 70%); }
.rb-spot::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .35s ease;
  background: radial-gradient(180px circle at var(--mx, 50%) var(--my, 50%), rgba(20,184,166,.75), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.rb-spot:hover::after, .rb-spot:hover::before { opacity: 1; }
.rb-spot > * { position: relative; z-index: 1; }
/* StarBorder: a light travelling around the button edge */
@property --rb-a { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.btn.rb-star { position: relative; isolation: isolate; }
.btn.rb-star::before { content: ''; position: absolute; inset: -2px; border-radius: inherit; z-index: -1; padding: 2px;
  background: conic-gradient(from var(--rb-a), transparent 0 70%, #7ef0dc 80%, #ffffff 84%, #7ef0dc 88%, transparent 96%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: rbStar 4s linear infinite; }
@keyframes rbStar { to { --rb-a: 360deg; } }
/* Magnet: smooth return */
.btn-primary { transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .25s, background .2s; }
/* ClickSpark layer */
.rb-spark-layer { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 60; }
/* DotGrid behind the hero */
[data-rb-dots] { position: relative; }
.rb-dots { position: absolute; inset: 0; z-index: 0; pointer-events: none; -webkit-mask-image: radial-gradient(75% 70% at 30% 35%, #000 30%, transparent 100%); mask-image: radial-gradient(75% 70% at 30% 35%, #000 30%, transparent 100%); }
[data-rb-dots] > .wrap { position: relative; z-index: 1; }
.hero.bg-grid[data-rb-dots]::before { display: none; }
@media (prefers-reduced-motion: reduce) { .rb-shiny, h1 .em, h2 .em, .btn.rb-star::before { animation: none !important; } }
h1 .em.rb-w { transform: scale(1.4) translateY(-6px); }
.rb-blur.rb-go .em.rb-w { animation: rbBlur .9s cubic-bezier(.22,1,.36,1) forwards, rbGrad 8s ease-in-out infinite alternate; animation-delay: calc(var(--i) * 90ms + 120ms), 0s; }
/* open source / proprietary switch and group divider */
.cm-src-f { display: inline-flex; gap: 4px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.cm-src-f button { font: inherit; font-size: .76rem; font-weight: 700; border: 0; background: none; color: var(--muted); padding: 5px 12px; border-radius: 999px; cursor: pointer; }
.cm-src-f button.on { background: var(--ink); color: #fff; }
table.cmt td.cg, table.cmt thead th.cg { box-shadow: inset 1px 0 0 var(--line); }
table.cmt .srch { display: none; }
table.cmt th.cl { width: 196px; }
table.cmt thead th.ph span { font-size: .7rem; }
@media (max-width: 860px) { .cm-src-f { display: none; } }
table.cmt td, table.cmt tbody th { height: 16px; } table.cmt th.cl { width: 208px; } @media (max-width: 860px) { table.cmt td, table.cmt tbody th { height: auto; } table.cmt th.cl { width: auto; } }
/* 30-row fit pass */
table.cmt td, table.cmt tbody th { height: 15px; }
table.cmt tr.gh th { height: 14px; padding: 4px 0 1px; font-size: .62rem; }
table.cmt thead th { height: 108px; }
.cm i.s.y { width: 12px; height: 12px; } .cm i.s.y::after { left: 4px; top: 1.8px; width: 2.8px; height: 5.6px; }
table.cmt td.me i.s.y { width: 13px; height: 13px; }
table.cmt th.cl { font-size: .76rem; }
@media (max-width: 860px) { table.cmt td, table.cmt tbody th { height: auto; } table.cmt thead th { height: auto; } table.cmt th.cl { font-size: .8rem; } }
table.cmt thead th { height: 100px; } @media (max-width: 860px) { table.cmt thead th { height: auto; } }
