
/* =========================================================
   Encorphin · AIQ — professional white design system
   White surfaces, navy accent, hairline structure, restrained type.
   ========================================================= */
:root {
  --bg: #ffffff; --bg-alt: #F7F9FC; --text: #0F172A; --text-2: #475569; --hair: #E2E8F0; --hair-2: #CBD5E1;
  --accent: #0B3A6E; --accent-hover: #082C54; --link: #1D5FA7; --accent-soft: #EEF3F9; --card: #ffffff;
  /* tokens shared with the product visuals */
  --paper: #ffffff; --surface: #ffffff; --panel: #F1F5F9; --rule: #E2E8F0; --ink: #0F172A; --ink-2: #334155; --muted: #64748B;
  --amber: #A9C1DE; --amber-soft: #EEF3F9; --amber-ink: #0B3A6E; --signal: #0B3A6E; --blue: #1D5FA7; --blue-soft: #EEF3F9; --green: #2F6B3B;
  --tablet: #EEF1F5; --screen-head: #1F5FA8;
  --shadow: 0 24px 48px -28px rgba(15, 23, 42, .28);
  --radius-s: 6px; --radius-m: 8px; --radius-l: 10px;
  --maxw: 1200px; --gutter: clamp(20px, 5vw, 48px);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", "Segoe UI", Arial, sans-serif;
  --serif-tc: "Noto Sans TC", "PingFang TC", sans-serif;
  color-scheme: light;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
html { scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 76px); -webkit-text-size-adjust: 100%; }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 17px; line-height: 1.52; letter-spacing: -.022em; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
html[lang="zh-Hant"] body { letter-spacing: .01em; line-height: 1.75; }
img, svg { max-width: 100%; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button { font: inherit; letter-spacing: inherit; }
h1, h2, h3 { margin: 0; color: inherit; font-weight: 600; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 3px; }
h1[tabindex="-1"]:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--accent); color: #fff; border: 0; padding: 10px 16px; border-radius: 6px; }
.skip:focus { left: 12px; }
.wrap, .wrap.narrow { width: min(var(--maxw), 100% - 2 * var(--gutter)); margin-inline: auto; }
.muted { color: var(--text-2); }
main:focus { outline: none; }

/* ---------- Global navigation ---------- */
.gnav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--hair); padding-top: env(safe-area-inset-top, 0px); }
.gnav-in { width: min(var(--maxw), 100% - 2 * var(--gutter)); margin-inline: auto; height: 68px; display: flex; align-items: center; gap: 40px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 17px; font-weight: 600; white-space: nowrap; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; }
.brand b { font-weight: 600; margin-right: 2px; }
.gnav-links { display: flex; gap: 28px; }
.gnav-links a { color: var(--ink-2); font-size: 14.5px; font-weight: 500; padding: 22px 0 20px; border-bottom: 2px solid transparent; white-space: nowrap; }
.gnav-links a:hover { color: var(--text); text-decoration: none; }
.gnav-links a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }
.gnav-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; flex: none; }
.gbtn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; min-width: 36px; padding: 0 9px; border: 0; border-radius: 6px; background: transparent; color: var(--ink-2); cursor: pointer; font-size: 13.5px; font-weight: 500; }
.gbtn:hover { color: var(--text); background: var(--panel); text-decoration: none; }
.gbtn svg { width: 17px; height: 17px; }
.gnav-cta { margin-left: 10px; }
.menu-btn { display: none; }
@media (max-width: 980px) {
  .gnav-links { display: none; }
  .menu-btn { display: inline-flex; }
  .gnav-actions .gnav-cta { display: none; }
  .gnav-links.open { display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); padding: 8px var(--gutter) 24px; gap: 0; border-bottom: 1px solid var(--hair); box-shadow: var(--shadow); }
  .gnav-links.open a { font-size: 18px; padding: 14px 0; border-bottom: 1px solid var(--hair); }
}
@media (max-width: 420px) { .lang-btn svg { display: none; } .brand { font-size: 15px; } .gnav-in { gap: 12px; } }

/* ---------- Services sub-navigation ---------- */
.chapternav { border-bottom: 1px solid var(--hair); background: var(--bg); overflow-x: auto; }
.chapternav ul { list-style: none; margin: 0 auto; padding: 0; display: flex; gap: 32px; width: min(var(--maxw), 100% - 2 * var(--gutter)); min-width: max-content; }
.chapternav a { display: flex; align-items: center; gap: 9px; color: var(--ink-2); font-size: 14px; font-weight: 500; padding: 15px 0 13px; border-bottom: 2px solid transparent; }
.chapternav a:hover { text-decoration: none; color: var(--text); }
.chapternav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }
.chapternav a[aria-current="page"] span { border: 0; padding: 0; font-weight: 500; }
.chapternav svg { width: 20px; height: 20px; color: var(--muted); }
.chapternav a[aria-current="page"] svg { color: var(--accent); }

/* ---------- Type & buttons ---------- */
.eyebrow { font-size: 12.5px; font-weight: 600; color: var(--muted); margin: 0 0 16px; letter-spacing: .12em; text-transform: uppercase; }
html[lang="zh-Hant"] .eyebrow { letter-spacing: .14em; font-size: 13.5px; }
.h-hero { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.1; letter-spacing: -.022em; font-weight: 600; max-width: 18ch; }
.headline { font-size: clamp(26px, 3vw, 38px); line-height: 1.18; letter-spacing: -.018em; font-weight: 600; margin-bottom: 16px; max-width: 26ch; }
.subhead { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.6; color: var(--text-2); max-width: 62ch; font-weight: 400; letter-spacing: -.004em; }
html[lang="zh-Hant"] .h-hero, html[lang="zh-Hant"] .headline { letter-spacing: .01em; line-height: 1.3; font-weight: 700; }
html[lang="zh-Hant"] .h-hero { max-width: 16em; }
html[lang="zh-Hant"] .headline { max-width: 20em; }
.statement { font-size: clamp(20px, 2.2vw, 26px); line-height: 1.5; font-weight: 500; letter-spacing: -.012em; max-width: 46ch; border-left: 3px solid var(--accent); padding-left: 24px; }
.fine { font-size: 13px; color: var(--muted); margin-top: 14px; }
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: #fff; border: 1px solid var(--accent); border-radius: 6px; padding: 11px 20px; font-size: 15px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--accent-hover); text-decoration: none; }
.btn svg { width: 15px; height: 15px; }
.btn-sm { padding: 8px 14px; font-size: 13.5px; }
.btn-lg { padding: 13px 24px; font-size: 16px; }
.more { display: inline-flex; align-items: center; gap: 7px; color: var(--link); font-size: 15.5px; font-weight: 500; }
.more .chev { width: 7px; height: 12px; margin-top: 1px; }
.ctas { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; margin: 32px 0 0; }

/* ---------- Sections (white, hairline structure) ---------- */
.hero { padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 5vw, 64px); }
.hero .subhead { margin-top: 20px; }
.section { padding: clamp(64px, 8vw, 104px) 0; border-top: 1px solid var(--hair); }
.section.tight { padding-top: 8px; border-top: 0; }
.section.alt, .section.dark { background: var(--bg-alt); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.split.rev { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.split.top { align-items: start; }
@media (max-width: 900px) { .split, .split.rev { grid-template-columns: minmax(0, 1fr); } .split.rev > :first-child { order: 2; } }
.prose p { font-size: 17px; color: var(--text-2); max-width: 62ch; }
.tagline { margin: 28px 0 0; color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; }
.tagline span { color: var(--ink-2); font-weight: 500; letter-spacing: .12em; }
.tagline small { font-size: 14px; }
.showcase { margin-top: clamp(40px, 5vw, 56px); background: var(--bg-alt); border: 1px solid var(--hair); border-radius: var(--radius-l); padding: clamp(24px, 5vw, 56px); }
.hero-visual { max-width: 720px; margin-inline: auto; }

/* Demo layout */
.demo, .demo-center { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 340px); gap: 32px; justify-content: center; align-items: center; }
.demo .tablet, .demo-center .tablet { margin: 0; }
.demo .docscreen, .demo-center .docscreen { margin: 0; width: auto; }
.demo .demo-caption, .demo-center .demo-caption { grid-column: 1 / -1; text-align: center; max-width: none; margin: 4px 0 0; color: var(--muted); }
.demo-center { margin-top: 40px; }
@media (max-width: 860px) { .demo, .demo-center { grid-template-columns: minmax(0, 1fr); max-width: 440px; margin-inline: auto; } }

/* Key figures */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 48px; }
.stats div { border-top: 2px solid var(--accent); padding-top: 18px; display: flex; flex-direction: column; gap: 6px; }
.stats b { font-size: clamp(36px, 4.4vw, 52px); font-weight: 600; letter-spacing: -.03em; line-height: 1; color: var(--text); font-variant-numeric: tabular-nums; }
.stats span { color: var(--text-2); font-size: 15px; max-width: 28ch; }
.stats.on-dark { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 640px; }
@media (max-width: 700px) { .stats, .stats.on-dark { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
.big-num { font-size: clamp(44px, 6vw, 72px); font-weight: 600; letter-spacing: -.03em; line-height: 1; margin-bottom: 16px; color: var(--accent); }

/* Service cards (home) */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.tile { background: var(--card); color: var(--text); border: 1px solid var(--hair); border-radius: var(--radius-l); display: flex; flex-direction: column; overflow: hidden; transition: border-color .15s; }
.tile:hover { text-decoration: none; border-color: var(--hair-2); }
.tile:hover .more { text-decoration: underline; }
.tile-copy { padding: 32px 32px 24px; }
.tile-copy .tile-eyebrow { font-size: 12.5px; font-weight: 600; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; margin: 0 0 12px; max-width: none; }
.tile h3 { font-size: 23px; line-height: 1.3; letter-spacing: -.012em; margin-bottom: 10px; }
.tile-copy p { color: var(--text-2); font-size: 15.5px; margin: 0 0 18px; max-width: 46ch; }
.tile .more { font-size: 15px; }
.tile-visual { margin-top: auto; background: var(--bg-alt); border-top: 1px solid var(--hair); padding: 32px 12% 0; height: 300px; overflow: hidden; }
@media (max-width: 800px) { .tiles { grid-template-columns: minmax(0, 1fr); } .tile-visual { height: 260px; } }

/* Cards */
.cards { display: grid; gap: 20px; margin-top: 40px; }
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: var(--card); border: 1px solid var(--hair); border-radius: var(--radius-m); padding: 24px; }
.card h3 { font-size: 17px; line-height: 1.35; margin-bottom: 8px; }
.card p { color: var(--text-2); margin: 0; font-size: 15px; }
@media (max-width: 980px) { .cards.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cards.three { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .cards.two, .cards.four { grid-template-columns: minmax(0, 1fr); } }
.cols.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 40px; }
.cols > div { border-top: 1px solid var(--hair-2); padding-top: 20px; }
.cols h3 { font-size: 18px; margin-bottom: 8px; }
.cols p { color: var(--text-2); font-size: 15.5px; margin: 0; }
@media (max-width: 820px) { .cols.three { grid-template-columns: minmax(0, 1fr); gap: 24px; } }

/* Steps */
.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; counter-reset: st; }
.steps li { counter-increment: st; border-top: 1px solid var(--hair-2); padding-top: 18px; }
.steps li::before { content: counter(st, decimal-leading-zero); display: block; font-size: 13px; font-weight: 600; color: var(--accent); letter-spacing: .08em; margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.steps h3 { font-size: 17px; margin-bottom: 6px; }
.steps p { color: var(--text-2); margin: 0; font-size: 15px; }

/* Services overview */
.svc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.svc-card { background: var(--card); color: var(--text); border: 1px solid var(--hair); border-radius: var(--radius-l); padding: 32px; display: flex; flex-direction: column; gap: 4px; }
.svc-card:hover { text-decoration: none; border-color: var(--hair-2); }
.svc-card:hover .more { text-decoration: underline; }
.svc-ic svg { width: 28px; height: 28px; color: var(--accent); margin-bottom: 18px; }
.svc-card small { color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; }
.svc-card h2 { font-size: 22px; line-height: 1.3; letter-spacing: -.012em; margin-top: 4px; }
.svc-card p { color: var(--text-2); margin: 6px 0 16px; font-size: 15.5px; }
.svc-card .more { font-size: 15px; margin-top: auto; }
@media (max-width: 760px) { .svc-grid { grid-template-columns: minmax(0, 1fr); } .svc-card { padding: 26px; } }

/* Voice and checklists */
.mic-hero { width: 44px; height: 44px; border-radius: 8px; margin: 0 0 20px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.mic-hero svg { width: 22px; height: 22px; }
.pill-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; max-width: 760px; }
.pill-list li { padding: 12px 0 12px 28px; border-top: 1px solid var(--hair); position: relative; font-size: 15.5px; color: var(--ink-2); }
.pill-list li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 12px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
@media (max-width: 640px) { .pill-list { grid-template-columns: minmax(0, 1fr); } }

/* People */
.faces { display: flex; margin-bottom: 24px; }
.face { display: block; flex: none; width: 72px; height: 72px; border-radius: 50%; overflow: hidden; background: var(--panel); border: 3px solid var(--bg); margin-right: -10px; }
.face img { width: 100%; height: 100%; object-fit: cover; }
.face.big { width: 120px; height: 120px; margin: 0 0 24px; border: 0; }
.avatar-initials { width: 100%; height: 100%; display: grid; place-items: center; font-weight: 600; font-size: 28px; color: var(--text-2); }
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; max-width: 900px; }
.person { background: var(--card); border: 1px solid var(--hair); border-radius: var(--radius-l); padding: 32px; }
.person h2 { font-size: 22px; letter-spacing: -.012em; }
.person .role { color: var(--accent); font-weight: 500; margin: 4px 0 2px; }
.person .edu { color: var(--muted); font-size: 14.5px; margin-bottom: 16px; }
.person p:not(.role):not(.edu) { color: var(--text-2); font-size: 15.5px; }
.tags { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { background: var(--panel); border-radius: 4px; padding: 4px 10px; font-size: 13px; color: var(--ink-2); }

/* Results */
.bars-card { background: var(--card); border: 1px solid var(--hair); border-radius: var(--radius-l); padding: 32px; }
.bar { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 16px; align-items: center; margin-bottom: 18px; }
.bar-l { font-size: 14px; color: var(--text-2); }
.bar-t { height: 12px; background: var(--panel); border-radius: 2px; overflow: hidden; }
.bar-t i { display: block; height: 100%; background: var(--hair-2); }
.bar.hi .bar-t i { background: var(--accent); }
.bar b { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.rings { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 32px; }
.ring { border-top: 2px solid var(--accent); padding-top: 16px; display: flex; flex-direction: column; gap: 4px; }
.ring b { font-size: 22px; font-weight: 600; color: var(--accent); }
.ring span { color: var(--text-2); font-size: 15px; }
@media (max-width: 820px) { .rings { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* About: timeline & roadmap */
.timeline { list-style: none; padding: 0; margin: 40px 0 0; max-width: 880px; }
.timeline li { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 24px; padding: 20px 0; border-top: 1px solid var(--hair); }
.timeline li:last-child { border-bottom: 1px solid var(--hair); }
.timeline .when { font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; }
.timeline p { margin: 0; color: var(--text-2); }
@media (max-width: 600px) { .timeline li { grid-template-columns: minmax(0, 1fr); gap: 4px; } }
.roadmap { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.roadmap li { border-top: 2px solid var(--accent); padding-top: 16px; display: flex; flex-direction: column; gap: 6px; }
.roadmap .when { color: var(--muted); font-weight: 600; font-size: 13px; letter-spacing: .04em; }
.roadmap b { font-size: 16px; line-height: 1.4; font-weight: 600; }
@media (max-width: 900px) { .roadmap { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Journey page extras */
.jump { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--hair); }
.jump a { font-size: 14.5px; color: var(--link); font-weight: 500; }
.scene-wrap { max-width: 920px; margin: 40px auto 0; }

/* FAQ */
.faq { border-top: 1px solid var(--hair); max-width: 880px; }
.faq details { border-bottom: 1px solid var(--hair); }
.faq summary { cursor: pointer; padding: 22px 40px 22px 0; font-size: 18px; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 30px; width: 9px; height: 9px; border-right: 1.5px solid var(--text-2); border-bottom: 1.5px solid var(--text-2); transform: rotate(45deg); transition: transform .15s; }
.faq details[open] summary::after { transform: rotate(-135deg); top: 34px; }
.faq .ans { padding: 0 0 22px; color: var(--text-2); font-size: 16px; max-width: 70ch; }

/* Search page */
.search-page { display: flex; gap: 10px; margin: 28px 0 0; max-width: 560px; }
.search-page input { flex: 1; border: 1px solid var(--hair-2); border-radius: 6px; padding: 11px 14px; font: inherit; background: var(--bg); color: var(--text); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--hair); background: var(--bg); color: var(--text-2); font-size: 13.5px; padding: 48px 0 28px; }
.foot-blurb { margin: 0 0 32px; max-width: 52ch; color: var(--text-2); }
.foot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.foot-grid h2 { font-size: 12px; color: var(--text); font-weight: 600; margin-bottom: 14px; text-transform: uppercase; letter-spacing: .1em; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-grid a { color: var(--text-2); }
.foot-grid a:hover { color: var(--text); }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; border-top: 1px solid var(--hair); margin-top: 40px; padding-top: 20px; font-size: 12.5px; color: var(--muted); }
@media (max-width: 640px) { .foot-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Chips (search, chat) ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--hair-2); background: var(--bg); border-radius: 6px; padding: 6px 12px; font-size: 13.5px; cursor: pointer; color: var(--ink-2); text-align: left; }
.chip:hover { border-color: var(--accent); color: var(--text); }
.chip[aria-pressed="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }

/* =========================================================
   Apple-style typography and motion
   ========================================================= */
.h-hero { font-size: clamp(40px, 5.2vw, 70px); line-height: 1.05; letter-spacing: -.028em; font-weight: 600; }
.headline { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.1; letter-spacing: -.024em; font-weight: 600; }
.subhead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.45; letter-spacing: -.012em; }
.eyebrow { letter-spacing: .08em; }
html[lang="zh-Hant"] .h-hero, html[lang="zh-Hant"] .headline { font-weight: 600; letter-spacing: .005em; line-height: 1.25; }
html[lang="zh-Hant"] body { letter-spacing: .01em; }

/* Split headline: words rise with a spring */
.split-h .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .02em .1em; margin: 0 -.02em -.1em; }
.split-h .w > span { display: inline-block; transform: translateY(110%); opacity: 0; animation: word-rise 1s cubic-bezier(.34, 1.56, .64, 1) forwards; animation-delay: calc(var(--i) * 55ms + 120ms); }
@keyframes word-rise { to { transform: translateY(0); opacity: 1; } }

/* Scroll reveal with spring overshoot */
.reveal { opacity: 0; transform: translateY(36px) scale(.97); transition: opacity .7s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms), transform 1s cubic-bezier(.34, 1.56, .64, 1) var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }

/* Interactive springs */
.btn { transition: transform .45s cubic-bezier(.34, 1.56, .64, 1), background .2s; }
.btn:hover { transform: scale(1.045); }
.btn:active { transform: scale(.96); transition-duration: .12s; }
.more .chev { transition: transform .4s cubic-bezier(.34, 1.56, .64, 1); }
.more:hover .chev { transform: translateX(4px); }
.tile, .card, .svc-card, .person, .bars-card, .screen-fig .mk-win { transition: transform .6s cubic-bezier(.34, 1.56, .64, 1), box-shadow .35s ease, border-color .2s; }
.tile:hover, .svc-card:hover, .card:hover, .person:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -34px rgba(15, 23, 42, .4); }
.showcase { transform-origin: 50% 0; transition: scale .1s linear; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .split-h .w > span { animation: none; transform: none; opacity: 1; }
  .btn, .tile, .card, .svc-card, .person { transition: none; }
  .btn:hover, .tile:hover, .svc-card:hover, .card:hover, .person:hover { transform: none; }
}


/* ===== Components reused from the product visuals ===== */
/* ---------- Intake demo (the one bold moment) ---------- */
.demo { position: relative; }
.screen { background: #fff; color: #1C2B40; border-radius: 16px; overflow: hidden; min-height: 360px; display: flex; flex-direction: column; }
.screen-body { padding: 18px 18px 14px; flex: 1; display: flex; flex-direction: column; }
.q-progress { display: flex; gap: 5px; margin-bottom: 14px; }
.q-progress i { flex: 1; height: 4px; border-radius: 4px; background: #E2E9F1; }
.q-progress i.on { background: #2A79C6; }
.q-title { font-size: 17px; font-weight: 700; text-align: center; margin: 4px 0 16px; color: #16263B; line-height: 1.35; }
.q-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.q-opt {
  border: 1.5px solid #2B6CB0; background: #fff; color: #1E4F8A; border-radius: 9px; padding: 11px 8px; font-weight: 600; font-size: 14.5px;
  cursor: pointer; text-align: center; line-height: 1.25; display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 58px; justify-content: center;
}
.q-opt small { font-weight: 500; font-size: 12px; color: #5A7090; }
.q-opt[aria-pressed="true"] { background: #2B6CB0; color: #fff; }
.q-opt[aria-pressed="true"] small { color: #D6E6F7; }
.q-opt:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.body-map { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.body-map .q-opt:last-child { grid-column: 1 / -1; }
.slider-wrap { text-align: center; padding: 6px 4px; }
.slider-val { font-size: 34px; font-weight: 700; color: #C4403A; font-variant-numeric: tabular-nums; }
.slider-wrap input { width: 100%; accent-color: #C4403A; }
.slider-ends { display: flex; justify-content: space-between; font-size: 13px; color: #6A7E97; }
.q-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 16px; }
.q-nav button { border-radius: 8px; padding: 8px 16px; font-weight: 600; font-size: 14px; cursor: pointer; border: 1.5px solid #2B6CB0; background: #fff; color: #1E4F8A; }
.q-nav button.next { background: linear-gradient(180deg, #FF9A3C, #F07A15); border-color: #F07A15; color: #fff; }
.q-nav button:disabled { opacity: .45; cursor: not-allowed; }
.done { text-align: center; padding: 26px 8px; }
.done b { display: block; font-size: 18px; margin-bottom: 6px; }

.docscreen {
  position: relative; margin: -34px 0 0 -28px; width: min(340px, 82%); background: var(--surface); color: var(--ink);
  border: 1px solid var(--rule); border-radius: var(--radius-m); box-shadow: var(--shadow); overflow: hidden;
}
.docscreen-head { background: linear-gradient(180deg, #F7A544, #EF8A1F); color: #fff; font-size: 12.5px; font-weight: 600; padding: 7px 12px; display: flex; justify-content: space-between; }
.docscreen-body { padding: 12px; }
.docscreen .qno { font-size: 15px; font-weight: 700; color: #2A79C6; margin-bottom: 8px; }
.cc-row { display: grid; grid-template-columns: 92px 1fr; border-radius: 8px; overflow: hidden; border: 1px solid var(--rule); min-height: 64px; }
.cc-label { background: var(--signal); color: #fff; display: grid; place-items: center; font-weight: 700; text-align: center; padding: 6px; font-size: 14px; line-height: 1.25; }
.cc-label.empty { background: var(--panel); color: var(--muted); font-weight: 500; font-size: 12.5px; }
.cc-list { margin: 0; padding: 8px 10px 8px 24px; font-size: 13.5px; }
.cc-list li { margin: 1px 0; }
.cc-list li.new { animation: pop .35s ease-out; }
.docscreen-note { font-size: 12px; color: var(--muted); margin: 9px 0 0; }
@keyframes pop { from { background: var(--amber-soft); } to { background: transparent; } }
.demo-caption { font-size: 13.5px; color: var(--muted); margin: 14px 0 0; text-align: right; max-width: 440px; margin-left: auto; }
@media (max-width: 920px) {
  .docscreen { width: auto; max-width: 440px; margin: 16px auto 0; }
  .demo-caption { text-align: left; margin-inline: auto; }
}
@media (prefers-reduced-motion: reduce) { .cc-list li.new { animation: none; } }


/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--radius-m); background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 15.5px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-weight: 650; color: var(--ink); background: var(--panel); }
tr:last-child td { border-bottom: 0; }


/* ---------- Chat assistant ---------- */
.chat-fab {
  position: fixed; right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 60;
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 18px 13px 14px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--ink); color: var(--paper); font-weight: 600; box-shadow: var(--shadow);
}
.chat-fab img { width: 26px; height: 26px; }
.chat-fab:hover { transform: translateY(-1px); }
.chat {
  position: fixed; right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 70;
  width: min(420px, calc(100vw - 36px)); height: min(640px, calc(100dvh - 36px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)));
  background: var(--surface); color: var(--ink); border: 1px solid var(--rule); border-radius: 22px; box-shadow: 0 30px 70px -30px rgba(10, 20, 35, .6);
  display: none; flex-direction: column; overflow: hidden;
}
.chat.open { display: flex; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 14px 14px 12px 18px; border-bottom: 1px solid var(--rule); }
.chat-head h2 { font-size: 1.05rem; }
.chat-head p { margin: 0; font-size: 13px; color: var(--muted); }
.chat-head .icon-btn { margin-left: auto; width: 38px; height: 38px; }
.chat-log { flex: 1; overflow-y: auto; padding: 16px 16px 8px; display: grid; gap: 12px; align-content: start; }
.msg { max-width: 92%; padding: 11px 14px; border-radius: 16px; font-size: 15.5px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.user { justify-self: end; background: var(--ink); color: var(--paper); border-bottom-right-radius: 6px; }
.msg.bot { justify-self: start; background: var(--panel); border-bottom-left-radius: 6px; }
.msg.bot .srcs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; white-space: normal; }
.msg.bot .srcs a { font-size: 13px; font-weight: 600; background: var(--surface); border: 1px solid var(--rule); border-radius: 999px; padding: 3px 10px; text-decoration: none; }
.msg.bot .mode { display: block; font-size: 12.5px; color: var(--muted); margin-top: 8px; white-space: normal; }
.msg.thinking { color: var(--muted); font-style: italic; }
.chat-suggest { padding: 0 16px 10px; }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--rule); }
.chat-form input { flex: 1; }
.chat-foot { font-size: 12px; color: var(--muted); padding: 0 16px 12px; }
@media (max-width: 560px) {
  .chat { right: 0; left: 0; bottom: 0; width: 100%; height: min(86dvh, 680px); border-radius: 22px 22px 0 0; padding-bottom: env(safe-area-inset-bottom, 0px); }
  .chat-fab span { display: none; }
  .chat-fab { padding: 13px; }
}

/* ---------- Dialogs ---------- */
dialog { border: 0; padding: 0; background: transparent; color: var(--ink); max-width: none; max-height: none; }
dialog::backdrop { background: rgba(8, 16, 28, .72); }
.lightbox-inner { width: min(1200px, 94vw); background: var(--surface); border-radius: 16px; overflow: hidden; display: grid; }
.lightbox-inner img { width: 100%; max-height: 78vh; object-fit: contain; background: #0D1828; }
.lightbox-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.lightbox-bar p { margin: 0; font-size: 15px; color: var(--ink-2); flex: 1; }
.search-inner { width: min(760px, 94vw); background: var(--surface); border-radius: 18px; overflow: hidden; margin-top: 8vh; display: grid; max-height: 80vh; grid-template-rows: auto auto 1fr; }
.search-bar { display: flex; gap: 10px; padding: 14px; border-bottom: 1px solid var(--rule); align-items: center; }
.search-bar input { flex: 1; font-size: 18px; border: 0; padding: 8px 6px; background: transparent; }
.search-bar input:focus { outline: none; }
.search-filters { padding: 10px 14px; border-bottom: 1px solid var(--rule); }
.results { overflow-y: auto; padding: 8px; display: grid; gap: 4px; align-content: start; }
.result { display: grid; gap: 3px; padding: 12px 14px; border-radius: 12px; text-decoration: none; color: var(--ink); }
.result:hover, .result:focus-visible { background: var(--panel); }
.result small { color: var(--muted); font-weight: 600; font-size: 12.5px; }
.result b { font-weight: 650; }
.result span { color: var(--ink-2); font-size: 14.5px; line-height: 1.45; }
.result mark { background: var(--amber-soft); color: inherit; padding: 0 2px; border-radius: 3px; }
.empty { padding: 28px 16px; color: var(--muted); text-align: center; }
dialog[open] { animation: fade .16s ease-out; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { dialog[open] { animation: none; } .chat-fab:hover { transform: none; } }


/* journey */
.five { list-style: none; padding: 0; margin: 20px 0 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.five li { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-m); padding: 16px 16px 14px; }
.five li.loop { background: var(--amber-soft); border-color: color-mix(in srgb, var(--amber) 60%, var(--rule)); }
.five b { font-size: 1.15rem; display: block; margin-bottom: 4px; }
.five b span { font-family: var(--serif-tc); color: var(--amber-ink); margin-left: 4px; }
.five p { margin: 0; font-size: 15px; color: var(--ink-2); }
.why-hard { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.why-hard li { background: var(--panel); border-radius: 999px; padding: 7px 14px; font-size: 15px; color: var(--ink-2); }
.journey-table { min-width: 1000px; font-size: 14.5px; }
.journey-table thead th { white-space: nowrap; }
.journey-table th[scope="row"] { white-space: nowrap; background: var(--panel); }
.stage-n { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: var(--paper); font-size: 12px; margin-right: 8px; vertical-align: 1px; }
.journey-table tr.good th { color: var(--green); }
.journey-table tr.bad th { color: var(--signal); }
.journey-table tr.fix td { background: var(--amber-soft); }
.compare td.with { background: var(--blue-soft); }
.compare th[scope="row"] { white-space: nowrap; }
.example { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; margin-top: 30px; align-items: start; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-l); padding: clamp(18px, 3vw, 28px); }
.example h3 { font-size: 1.2rem; margin-bottom: 8px; }
.example p { color: var(--ink-2); margin: 0; }
@media (max-width: 860px) { .example { grid-template-columns: 1fr; } }
.docscreen.static { margin: 0; width: auto; max-width: 440px; }
.docscreen.static .cc-row + .cc-row { margin-top: 8px; }
.cc-row.grey .cc-label { background: #6B7684; }
.cc-list li.placeholder { list-style: none; margin-left: -14px; color: var(--muted); }
.voice-btn { margin-top: 12px; width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; border: 1.5px dashed #2B6CB0; background: #F3F8FD; color: #1E4F8A; border-radius: 9px; padding: 10px; font-weight: 600; font-size: 14px; cursor: pointer; font-family: var(--font); }
.voice-btn svg { width: 18px; height: 18px; }
.voice-btn:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.voice-demo { text-align: center; padding: 4px; display: flex; flex-direction: column; align-items: center; gap: 10px; flex: 1; }
.mic-ring { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: #2B6CB0; color: #fff; animation: ring 1.4s ease-out infinite; }
.mic-ring svg { width: 28px; height: 28px; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(43, 108, 176, .45); } 100% { box-shadow: 0 0 0 18px rgba(43, 108, 176, 0); } }
.voice-state { font-size: 13px; color: #5A7090; min-height: 1.2em; margin: 0; }
.voice-text { font-size: 16px; color: #16263B; font-weight: 600; line-height: 1.5; margin: 0; min-height: 4.5em; }
.voice-note { font-size: 12px; color: #6A7E97; margin: 0; }
@media (prefers-reduced-motion: reduce) { .mic-ring { animation: none; } }
.docscreen.static .cc-row { grid-template-columns: 112px 1fr; }
/* =========================================================
   v3: recreated visuals (tablet screens, clinic scene,
   question tree, blueprint, education)
   ========================================================= */

/* Clinic scene: handheld tablet + tablet on a stand */

/* Screens gallery on service pages */
.screens { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px 24px; align-items: start; }
.screen-fig { margin: 0; }
.screen-fig figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; line-height: 1.45; }

/* Education visuals */
.edu-vis { display: grid; gap: 16px; max-width: 460px; }
.rx { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-l); box-shadow: var(--shadow); overflow: hidden; }
.rx-head { display: flex; gap: 10px; align-items: center; padding: 14px 18px; background: var(--amber-soft); border-bottom: 1px dashed color-mix(in srgb, var(--amber) 55%, var(--rule)); }
.rx-head img { width: 26px; height: 26px; }
.rx-body { display: grid; grid-template-columns: minmax(0, 1fr) 108px; gap: 16px; padding: 16px 18px; align-items: center; }
.rx-body small { color: var(--muted); font-size: 13.5px; }
.rx-topic { font-size: 1.15rem; font-weight: 700; margin: 4px 0 8px; }
.rx-body ul { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 15px; }
.rx-doc { font-size: 13.5px; color: var(--muted); margin: 10px 0 0; }
.qr { width: 108px; height: 108px; }
.qr .qb { fill: var(--surface); } .qr .qf, .qr g rect { fill: var(--ink); }
.rx-scan { margin: 0; padding: 11px 18px; background: var(--panel); font-size: 14px; font-weight: 600; }
.lib { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-l); padding: 16px 18px; }
.lib-h { font-weight: 700; margin: 0 0 12px; }
.lib-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.lib-grid span { display: flex; gap: 10px; align-items: center; background: var(--panel); border-radius: 12px; padding: 9px 12px; font-size: 14px; }
.lib-grid svg { width: 22px; height: 22px; color: var(--amber-ink); flex: none; }
.lib-grid b { font-weight: 600; }
.ortho { margin-top: 30px; }
.ortho ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; counter-reset: o; }
.ortho li { counter-increment: o; display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--rule); border-radius: 999px; padding: 6px 14px 6px 7px; font-size: 14.5px; }
.ortho li::before { content: counter(o); display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--amber); color: #12233A; font-size: 12px; font-weight: 700; }

/* Question tree: compact overview */
.tree-ov { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-l); padding: clamp(16px, 3vw, 26px); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.tree-ov > * { position: relative; }
.tree-ov > *:not(:last-child)::after { content: ""; position: absolute; left: 50%; bottom: -14px; height: 14px; border-left: 2px solid var(--rule); }
.tv-node { background: var(--signal); color: #fff; border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: 14.5px; text-align: center; }
.tv-out { background: var(--amber); color: #12233A; }
.tv-chips, .tv-shared { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.tv-chips span { background: var(--blue-soft); color: var(--blue); border-radius: 8px; padding: 5px 10px; font-size: 13.5px; font-weight: 600; }
.tv-cols { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; width: 100%; }
.tv-cols div { background: var(--panel); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.tv-cols span { overflow-wrap: anywhere; }
.tv-cols b { font-size: 14px; }
.tv-cols span { font-size: 12.5px; background: var(--surface); border-radius: 6px; padding: 3px 7px; color: var(--ink-2); }
.tv-shared { border: 1.5px dashed var(--rule); border-radius: 12px; padding: 10px; width: 100%; }
.tv-shared span { font-size: 13px; background: var(--amber-soft); color: var(--amber-ink); border-radius: 8px; padding: 4px 9px; font-weight: 600; }
@media (max-width: 640px) { .tv-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Question tree: interactive explorer */
.tx { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-l); padding: clamp(18px, 3vw, 30px); margin-top: 18px; }
.tx-root { display: flex; gap: 10px; align-items: center; font-size: 1.1rem; margin-bottom: 14px; }
.tx-code { display: inline-grid; place-items: center; min-width: 28px; height: 28px; border-radius: 8px; background: var(--signal); color: #fff; font-weight: 700; font-size: 13px; flex: none; }
.tx-complaints { display: flex; flex-wrap: wrap; gap: 8px; }
.tx-note { color: var(--muted); font-size: 14.5px; margin: 12px 0 22px; max-width: 70ch; }
.tx-path { list-style: none; margin: 0 0 0 14px; padding: 0 0 0 0; border-left: 2px solid var(--rule); display: grid; gap: 16px; }
.tx-path li { display: flex; gap: 12px; align-items: flex-start; margin-left: -15px; }
.tx-path li.shared .tx-code { background: var(--amber); color: #12233A; }
.tx-path b { display: block; }
.tx-path small { color: var(--amber-ink); font-weight: 600; font-size: 12.5px; }
.tx-opts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.tx-opts span { background: var(--blue-soft); color: var(--blue); border-radius: 8px; padding: 4px 9px; font-size: 13.5px; }
.tx-out { margin-top: 22px; background: var(--ink); color: var(--paper); border-radius: var(--radius-m); padding: 16px 18px; }
.tx-out small { opacity: .75; }
.tx-out p { margin: 6px 0 0; font-size: 1.05rem; line-height: 1.7; }
.slot { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 6px; background: var(--amber); color: #12233A; font-weight: 700; font-size: 12.5px; vertical-align: 1px; }

/* Blueprint swimlanes */
.bp-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin: 20px 0 12px; }
.seg { display: inline-flex; border: 1px solid var(--rule); border-radius: 999px; padding: 3px; background: var(--surface); }
.seg button { border: 0; background: transparent; padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: 14.5px; color: var(--ink-2); cursor: pointer; font-family: var(--font); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.bp-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.bp-legend i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; margin-right: 6px; }
.k-aiq { background: var(--amber); } .k-old { border: 1px dashed var(--muted); }
.bp[data-mode="without"] .bp-legend { visibility: hidden; }
.bp-grid { display: grid; min-width: 1080px; }
.bp-corner, .bp-phase { background: var(--panel); padding: 10px 12px; font-weight: 650; font-size: 14.5px; border-bottom: 1px solid var(--rule); }
.bp-phase { border-left: 1px solid var(--rule); }
.bp-phase b { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: var(--paper); font-size: 11.5px; margin-right: 6px; }
.bp-lane { padding: 12px; font-weight: 650; font-size: 14.5px; border-bottom: 1px solid var(--rule); background: var(--surface); position: sticky; left: 0; z-index: 1; }
.bp-cell { padding: 10px 8px; border-bottom: 1px solid var(--rule); border-left: 1px solid var(--rule); display: flex; flex-direction: column; gap: 6px; }
.bp-chip { display: block; background: var(--blue-soft); color: var(--ink); border-radius: 10px; padding: 7px 9px; font-size: 13.5px; line-height: 1.35; }
.bp-chip i { font-style: normal; font-size: 11px; font-weight: 700; color: var(--blue); margin-right: 6px; }
.bp .is-aiq { background: var(--amber); color: #12233A; font-weight: 600; }
.bp .is-aiq i { color: #12233A; }
.bp .is-old { background: transparent; border: 1px dashed var(--rule); color: var(--muted); text-decoration: line-through; }
.bp[data-mode="without"] .is-aiq { display: none; }
.bp[data-mode="without"] .is-old { background: var(--blue-soft); border: 0; color: var(--ink); text-decoration: none; }
/* ---------- Professional overrides for reused components ---------- */
/* Tables */
.table-wrap { border: 1px solid var(--hair); border-radius: var(--radius-m); background: var(--card); margin-top: 36px; }
th { background: var(--bg-alt); font-weight: 600; font-size: 14px; color: var(--ink-2); }
th, td { border-bottom: 1px solid var(--hair); font-size: 14.5px; }
.journey-table th[scope="row"] { background: var(--bg-alt); color: var(--ink-2); }
.journey-table tr.good th { color: var(--green); } .journey-table tr.bad th { color: #9F1D1D; }
.journey-table tr.fix td { background: var(--accent-soft); }
.stage-n { background: var(--accent); color: #fff; border-radius: 4px; }
.compare td.with { background: var(--accent-soft); color: var(--text); }

/* Consultation parts */
.five li { background: var(--card); border: 1px solid var(--hair); border-radius: var(--radius-m); }
.five li.loop { background: var(--card); border-color: var(--hair); border-top: 3px solid var(--accent); }
.five b span { color: var(--muted); font-family: var(--font); font-weight: 500; }
.why-hard { margin-top: 20px; }
.why-hard li { background: transparent; border: 1px solid var(--hair-2); border-radius: 4px; color: var(--ink-2); font-size: 14px; }

/* Device frames: light, product-photography style */
.q-opt { border-radius: 6px; }
.voice-btn { border: 1px solid #2B6CB0; border-style: solid; background: #fff; border-radius: 6px; }
.mic-ring { background: #0B3A6E; animation-name: ring-navy; }
@keyframes ring-navy { 0% { box-shadow: 0 0 0 0 rgba(11, 58, 110, .35); } 100% { box-shadow: 0 0 0 16px rgba(11, 58, 110, 0); } }
.cc-label { background: #B42318; }
.cc-row.grey .cc-label { background: #64748B; }
.docscreen { border-radius: var(--radius-m); box-shadow: var(--shadow); }
.docscreen.static { box-shadow: none; border: 1px solid var(--hair); }
.docscreen.static .cc-row { grid-template-columns: 112px 1fr; }

/* Question tree (overview + explorer): navy and grey, no bright colours */
.tree-ov, .tx { background: var(--card); border: 1px solid var(--hair); border-radius: var(--radius-l); color: var(--text); }
.tv-node { background: var(--accent); color: #fff; border-radius: 6px; font-weight: 500; font-size: 14px; }
.tv-out { background: var(--card); color: var(--accent); border: 1.5px solid var(--accent); }
.tv-chips span { background: var(--panel); color: var(--ink-2); border-radius: 4px; font-weight: 500; }
.tv-cols div { background: var(--bg-alt); border: 1px solid var(--hair); border-radius: 6px; min-width: 0; }
.tv-cols span { background: var(--card); border-radius: 3px; overflow-wrap: anywhere; }
.tv-shared { border: 1px dashed var(--hair-2); border-radius: 6px; }
.tv-shared span { background: var(--accent-soft); color: var(--accent); border-radius: 4px; font-weight: 500; }
.tree-ov > *:not(:last-child)::after { border-left-color: var(--hair-2); }
.tx-code { background: var(--accent); border-radius: 4px; }
.tx-path li.shared .tx-code { background: #64748B; color: #fff; }
.tx-path small { color: var(--muted); }
.tx-opts span { background: var(--panel); color: var(--ink-2); border-radius: 4px; }
.tx-out { background: var(--accent-soft); color: var(--text); border-left: 3px solid var(--accent); border-radius: 6px; }
.tx-out small { color: var(--muted); opacity: 1; }
.slot { background: var(--accent); color: #fff; border-radius: 3px; }
.example { background: var(--card); border: 1px solid var(--hair); border-radius: var(--radius-l); margin-top: 32px; color: var(--text); }

/* Blueprint */
.bp { color: var(--text); }
.seg { border-radius: 6px; padding: 2px; border-color: var(--hair-2); }
.seg button { border-radius: 4px; }
.seg button[aria-pressed="true"] { background: var(--accent); color: #fff; }
.bp-grid { background: var(--card); }
.bp-corner, .bp-phase { background: var(--bg-alt); }
.bp-phase b { background: var(--accent); border-radius: 4px; color: #fff; }
.bp-lane { background: var(--card); }
.bp-chip { background: var(--panel); border-radius: 4px; }
.bp .is-aiq { background: var(--accent-soft); color: var(--accent); border-left: 3px solid var(--accent); font-weight: 600; }
.bp .is-aiq i { color: var(--accent); }
.bp .is-old { border-radius: 4px; }
.k-aiq { background: var(--accent-soft); border-left: 3px solid var(--accent); }

/* Education visuals */
.rx, .lib { color: var(--text); text-align: left; background: var(--card); border: 1px solid var(--hair); border-radius: var(--radius-l); }
.rx { box-shadow: var(--shadow); }
.rx-head { background: var(--bg-alt); border-bottom: 1px solid var(--hair); }
.rx-scan { background: var(--bg-alt); font-weight: 500; }
.lib-grid span { background: var(--bg-alt); border-radius: 6px; }
.lib-grid svg { color: var(--accent); }
.tile .rx { box-shadow: none; }
.ortho { text-align: left; }
.ortho li { background: var(--card); border: 1px solid var(--hair); border-radius: 4px; }
.ortho li::before { background: var(--accent); color: #fff; border-radius: 3px; }

/* Screens gallery, scene */
.screens { grid-template-columns: repeat(auto-fit, minmax(280px, 440px)); justify-content: center; margin-top: 8px; }

/* Assistant, dialogs */
.chat-fab { background: var(--bg); color: var(--text); border: 1px solid var(--hair-2); border-radius: 6px; padding: 9px 14px; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; box-shadow: 0 8px 24px -12px rgba(15, 23, 42, .3); }
.chat-fab svg { width: 17px; height: 17px; color: var(--accent); }
.chat-fab img { display: none; }
.chat { border-radius: 10px; border: 1px solid var(--hair); }
.msg { border-radius: 8px; }
.msg.user { background: var(--accent); color: #fff; }
.msg .srcs a { color: var(--link); }
dialog::backdrop { background: rgba(15, 23, 42, .35); }
.search-inner { border-radius: 10px; }
.search-bar input { font-size: 17px; }
.result mark { background: var(--accent-soft); }
.tv-cols { grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); }
.tv-cols span { overflow-wrap: break-word; hyphens: auto; }

/* =========================================================
   Demo interfaces: white dashboard-style windows
   (teal data palette, thin borders, panel grid)
   ========================================================= */
:root { --t-dark: #0E5E7E; --t-mid: #1E8DB8; --t-light: #62C3E6; --t-pale: #E6F4F9; --t-title: #1B4D63; --w-line: #DCE5EE; --w-bg: #F3F7FA; --w-text: #1E2B45; --w-muted: #6B7A90; --chief: #B42318; }

/* Window chrome (demo + mocks) */
.tablet { background: #fff; border: 1px solid var(--w-line); border-radius: 10px; padding: 0; box-shadow: 0 18px 40px -26px rgba(14, 46, 78, .35); max-width: 440px; overflow: hidden; }
.screen { border-radius: 0; min-height: 380px; background: #fff; color: var(--w-text); }
.win-bar { display: flex; align-items: center; gap: 9px; padding: 11px 16px; border-bottom: 1px solid var(--w-line); background: #fff; color: var(--w-text); font-size: 13px; }
.win-bar img { width: 18px; height: 18px; }
.win-bar .mk-brand { font-weight: 700; color: #0B3A6E; letter-spacing: .01em; }
.win-bar .mk-div { width: 1px; height: 16px; background: #CBD5E1; }
.win-bar b { font-weight: 600; }
.win-bar .mk-right { margin-left: auto; color: var(--w-muted); font-size: 12.5px; }
.q-progress i { background: #E5ECF3; border-radius: 2px; }
.q-progress i.on { background: var(--t-dark); }
.q-title { color: var(--w-text); font-weight: 600; }
.q-opt { border: 1px solid var(--w-line); color: var(--w-text); background: #fff; border-radius: 6px; font-weight: 500; }
.q-opt:hover { border-color: var(--t-mid); }
.q-opt[aria-pressed="true"] { background: var(--t-pale); color: var(--t-dark); border-color: var(--t-mid); font-weight: 600; }
.q-nav button { border: 1px solid var(--w-line); color: var(--w-text); background: #fff; border-radius: 6px; font-weight: 500; }
.q-nav button.next { background: var(--t-dark); border-color: var(--t-dark); color: #fff; }
.slider-val { color: var(--t-dark); }
.slider-wrap input { accent-color: var(--t-dark); }
.voice-btn { border: 1px solid var(--w-line); background: #fff; color: var(--t-dark); border-radius: 6px; font-weight: 500; }
.voice-btn:hover { border-color: var(--t-mid); }
.mic-ring { background: var(--t-dark); animation-name: ring-teal; }
@keyframes ring-teal { 0% { box-shadow: 0 0 0 0 rgba(14, 94, 126, .35); } 100% { box-shadow: 0 0 0 16px rgba(14, 94, 126, 0); } }
.docscreen { background: #fff; color: var(--w-text); border: 1px solid var(--w-line); border-radius: 10px; box-shadow: 0 18px 40px -26px rgba(14, 46, 78, .35); overflow: hidden; }
.docscreen-body { background: var(--w-bg); }
.docscreen .qno { color: var(--t-title); }
.cc-row { background: #fff; border: 1px solid var(--w-line); border-radius: 6px; }
.cc-label { background: var(--chief); border-radius: 0; }
.cc-row.grey .cc-label { background: var(--t-dark); }
.cc-label.empty { background: #F1F5F9; color: var(--w-muted); }
.cc-list { color: var(--w-text); }
.docscreen-note { color: var(--w-muted); }

/* Mock window (scales with its container) */
.mock { container-type: inline-size; width: 100%; }
.mk-win { background: #fff; border: 1px solid var(--w-line); border-radius: 1.6cqw; box-shadow: 0 3cqw 6cqw -4cqw rgba(14, 46, 78, .3); overflow: hidden; aspect-ratio: 4 / 3; display: flex; flex-direction: column; font-size: 2.3cqw; line-height: 1.35; color: var(--w-text); font-family: var(--font); letter-spacing: 0; }
.mock.mk-tall .mk-win { aspect-ratio: 4 / 3.35; }
.mk-bar { display: flex; align-items: center; gap: 1.4cqw; padding: 1.7cqw 2.6cqw; border-bottom: 1px solid var(--w-line); flex: none; }
.mk-bar img { width: 3cqw; height: 3cqw; }
.mk-brand { font-weight: 700; color: #0B3A6E; font-size: 2.4cqw; }
.mk-div { width: 1px; height: 2.6cqw; background: #CBD5E1; }
.mk-bar b { font-weight: 600; font-size: 2.4cqw; }
.mk-right { margin-left: auto; color: var(--w-muted); font-size: 1.9cqw; }
.mk-body { flex: 1; min-height: 0; padding: 2.4cqw 2.8cqw; display: flex; flex-direction: column; overflow: hidden; }
.is-doc .mk-body { background: var(--w-bg); }
.mk-prog { display: flex; gap: .8cqw; margin-bottom: 1.6cqw; }
.mk-prog i { flex: 1; height: .6cqw; border-radius: .3cqw; background: #E5ECF3; }
.mk-prog i.on { background: var(--t-dark); }
.mk-q { font-weight: 600; text-align: center; font-size: 2.9cqw; margin: .2em 0 .9em; }
.mk-grid.g3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4cqw; }
.mk-tile { border: 1px solid var(--w-line); border-radius: .8cqw; color: var(--w-text); font-weight: 500; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5em; padding: 1.4cqw 1cqw; text-align: center; font-size: 2.1cqw; background: #fff; }
.mk-tile.on { background: var(--t-pale); border-color: var(--t-mid); color: var(--t-dark); font-weight: 600; }
.mk-tile svg { width: 5cqw; height: 5cqw; color: var(--t-dark); }
.mk-nav { margin-top: auto; display: flex; justify-content: space-between; padding-top: 1.6cqw; }
.mk-nav span { border: 1px solid var(--w-line); border-radius: .7cqw; padding: .8cqw 4.5cqw; font-weight: 500; font-size: 2.1cqw; }
.mk-nav span.next { background: var(--t-dark); border-color: var(--t-dark); color: #fff; }
.mk-row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4cqw; margin-bottom: 1.8cqw; }
.mk-queue { display: grid; grid-template-columns: repeat(10, 1fr); gap: .9cqw; }
.q-c { border: 1px solid #D5DEE8; border-radius: .6cqw; text-align: center; padding: .8cqw 0; font-size: 1.9cqw; color: var(--t-mid); font-weight: 600; }
.q-c.seen { background: #F1F5F9; border-color: #F1F5F9; color: #A7B4C4; }
.q-c.done { background: var(--t-dark); border-color: var(--t-dark); color: #fff; }
.mk-legend { margin-top: auto; display: flex; gap: 3cqw; justify-content: center; font-size: 1.8cqw; color: var(--w-muted); }
.mk-legend i { display: inline-block; width: 1.8cqw; height: 1.8cqw; border-radius: .4cqw; border: 1px solid #D5DEE8; margin-right: .8cqw; vertical-align: -.3cqw; }
.mk-legend i.lg-seen { background: #F1F5F9; border-color: #F1F5F9; }
.mk-legend i.lg-done { background: var(--t-dark); border-color: var(--t-dark); }
.mk-temp { display: flex; flex-direction: column; align-items: center; gap: 1.3cqw; }
.mk-thermo svg { width: 6cqw; height: 6cqw; color: var(--t-dark); }
.mk-temp b { font-size: 6cqw; color: var(--t-dark); line-height: 1; font-weight: 700; font-variant-numeric: tabular-nums; }
.mk-temp b small { font-size: 2.6cqw; font-weight: 500; }
.mk-slider { position: relative; width: 70%; height: .7cqw; background: #E5ECF3; border-radius: 1cqw; margin-top: 1cqw; }
.mk-slider i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--t-dark); border-radius: 1cqw; }
.mk-slider em { position: absolute; top: 50%; width: 2.8cqw; height: 2.8cqw; margin: -1.4cqw 0 0 -1.4cqw; border-radius: 50%; background: #fff; border: .5cqw solid var(--t-dark); }
.mk-ends { width: 70%; display: flex; justify-content: space-between; font-size: 1.9cqw; color: var(--w-muted); }
.mk-unknown { width: 50%; padding: 1cqw; }
.mk-chest { display: grid; grid-template-columns: 1fr 1.1fr 1fr; grid-template-areas: "a t b" "c t d" "e e e"; gap: 1.3cqw; align-items: center; }
.mk-chest .mk-tile { padding: 1.2cqw .6cqw; }
.mk-chest .mk-tile[style*="grid-area:e"] { justify-self: center; width: 36%; }
.mk-torso { width: 100%; height: auto; }
.mk-fig { fill: #E2E8F0; } .mk-fig2 { fill: #D4ECF5; } .mk-hi { fill: var(--t-mid); }
.mk-body-svg .mk-hi { fill: var(--chief); }

/* KPI cards and panels (dashboard language) */
.mk-kpi { background: #fff; border: 1px solid var(--w-line); border-radius: .8cqw; padding: 1.3cqw 1.5cqw 1.4cqw; display: flex; flex-direction: column; gap: .3cqw; min-width: 0; }
.mk-kt { font-size: 1.75cqw; font-weight: 600; color: var(--t-title); border-bottom: 1px solid var(--w-line); padding-bottom: .6cqw; margin-bottom: .3cqw; }
.mk-kpi b { font-size: 3.1cqw; font-weight: 700; color: var(--w-text); font-variant-numeric: tabular-nums; }
.mk-kpi small { font-size: 1.55cqw; color: var(--w-muted); }
.mk-kb { height: .7cqw; background: #E8EEF4; border-radius: .2cqw; margin-top: auto; overflow: hidden; }
.mk-kb i { display: block; height: 100%; background: var(--t-dark); }
.mk-panel { background: #fff; border: 1px solid var(--w-line); border-radius: .8cqw; padding: 1.3cqw 1.5cqw; min-width: 0; min-height: 0; overflow: hidden; }
.mk-pt { font-size: 1.85cqw; font-weight: 600; color: var(--t-title); margin: 0 0 .8cqw; }
.mk-panel ul { margin: 0; padding-left: 2cqw; font-size: 1.65cqw; line-height: 1.5; }
.mk-sum-top { display: grid; grid-template-columns: 2.2fr 1fr 1fr; gap: 1.2cqw; margin-bottom: 1.2cqw; }
.mk-fig-panel { display: grid; grid-template-columns: 8cqw 1fr; gap: 1.6cqw; align-items: center; }
.mk-body-svg { width: 8cqw; height: auto; }
.mk-qno { display: block; color: var(--t-title); font-size: 2.8cqw; font-weight: 700; margin-bottom: .8cqw; }
.mk-areas { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8cqw; }
.mk-areas span { border: 1px solid var(--w-line); border-radius: .6cqw; font-size: 1.6cqw; padding: 0 .7cqw .7cqw; display: flex; flex-direction: column; gap: .4cqw; overflow: hidden; color: var(--w-muted); }
.mk-areas span b { font-size: 1.6cqw; background: var(--t-dark); color: #fff; margin: 0 -.7cqw; padding: .4cqw .7cqw; font-weight: 600; }
.mk-areas span.on b { background: var(--chief); }
.mk-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2cqw; flex: 1; min-height: 0; }
.mk-rows { display: grid; gap: 1.1cqw; }
.mk-crow { display: grid; grid-template-columns: 17cqw 1fr; background: #fff; border: 1px solid var(--w-line); border-radius: .8cqw; overflow: hidden; }
.mk-crow > span { background: var(--t-dark); color: #fff; font-weight: 600; display: grid; place-items: center; text-align: center; font-size: 2.1cqw; padding: 1cqw; }
.mk-crow > span.chief { background: var(--chief); }
.mk-crow ul { margin: 0; padding: .9cqw 1cqw .9cqw 3.4cqw; font-size: 1.95cqw; line-height: 1.5; }
.mk-dash { display: flex; flex-direction: column; gap: 1.1cqw; height: 100%; }
.mk-filters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1cqw; }
.mk-filters span { background: #fff; border: 1px solid var(--w-line); border-radius: .6cqw; padding: .6cqw 1.2cqw; display: flex; align-items: center; justify-content: space-between; gap: 1cqw; }
.mk-filters small { color: var(--t-title); font-weight: 600; font-size: 1.6cqw; }
.mk-filters em { font-style: normal; font-size: 1.6cqw; color: var(--w-muted); }
.mk-filters em::after { content: "▾"; margin-left: .8cqw; font-size: 1.3cqw; }
.mk-row4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1cqw; }
.mk-row4 .mk-kpi b { font-size: 2.6cqw; }
.mk-row2 { display: grid; grid-template-columns: 1.35fr 1fr; gap: 1.1cqw; flex: 1; min-height: 0; }
.mk-row1 { display: grid; flex: 1; min-height: 0; }
.mk-svg { width: 100%; height: auto; display: block; }
.mk-svg text { font-size: 7.5px; fill: var(--w-muted); font-family: var(--font); }
.mk-svg .gl { stroke: #E8EEF4; stroke-width: 1; }
.mk-svg .ln { fill: none; stroke: var(--t-dark); stroke-width: 2; }
.mk-svg .dt { fill: var(--t-dark); }
.mk-svg .b1 { fill: var(--t-dark); } .mk-svg .b2 { fill: var(--t-light); }
.mk-row1 .mk-svg { height: 15cqw; }
.mk-hbars { display: grid; gap: 1.2cqw; margin-top: 1cqw; }
.mk-hbars div { display: grid; grid-template-columns: 9cqw 1fr; align-items: center; gap: 1cqw; font-size: 1.65cqw; color: var(--w-muted); }
.mk-hbars em { position: relative; height: 3cqw; background: #F1F5F9; display: block; }
.mk-hbars i { display: block; height: 100%; background: var(--t-dark); }
.mk-hbars b { position: absolute; right: .8cqw; top: 50%; transform: translateY(-50%); background: #fff; color: var(--w-text); font-size: 1.45cqw; padding: .1cqw .6cqw; border-radius: .3cqw; font-weight: 600; }
.mk-leg { display: flex; gap: 2cqw; justify-content: flex-end; font-size: 1.55cqw; color: var(--w-muted); margin: -2.6cqw 0 .4cqw; }
.mk-leg i { display: inline-block; width: 1.3cqw; height: 1.3cqw; border-radius: 50%; margin-right: .6cqw; vertical-align: -.15cqw; }
.mk-leg i.b1 { background: var(--t-dark); } .mk-leg i.b2 { background: var(--t-light); }
.mk-table { background: #fff; border: 1px solid var(--w-line); border-radius: .8cqw; overflow: hidden; }
.mk-th, .mk-tr { display: grid; grid-template-columns: 1.2fr 1.4fr 1fr .8fr; padding: 1.3cqw 1.8cqw; gap: 1cqw; font-size: 1.95cqw; align-items: center; }
.mk-th { background: #F7FAFC; color: var(--t-title); font-weight: 600; border-bottom: 1px solid var(--w-line); }
.mk-tr + .mk-tr { border-top: 1px solid var(--w-line); }
.mk-tr b { font-weight: 600; }
.mk-tr .ok { display: inline-block; width: 1.3cqw; height: 1.3cqw; border-radius: 50%; background: #2F9E6B; margin-right: .8cqw; }
.mk-tr .lnk { color: var(--t-mid); font-weight: 600; }

/* Clinic scene: two windows, no device frames */
.scene { margin: 0; }
.scene-stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.scene-l { font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
html[lang="zh-Hant"] .scene-l { letter-spacing: .12em; }
.scene figcaption { font-size: 14px; color: var(--muted); margin-top: 16px; max-width: 70ch; }
@media (max-width: 640px) { .scene-stage { grid-template-columns: minmax(0, 1fr); } }
.tile-visual .mk-win { box-shadow: none; }
.win-bar .mk-brand { font-size: 13.5px; }
.win-bar .mk-div { width: 1px; height: 16px; }

/* =========================================================
   Light Nova–inspired layer (prototype)
   Airy white with soft light, glass panels, numbered chapters,
   kicker labels, image-led cards and a product marquee.
   ========================================================= */
:root { --nv-radius: 20px; --nv-glass: rgba(255, 255, 255, .72); --nv-glass-line: rgba(255, 255, 255, .85); --nv-ink-line: rgba(15, 23, 42, .07); --nv-shadow: 0 30px 70px -40px rgba(15, 35, 70, .35); }
body { background: #FBFCFE; }
.section { border-top: 0; background: transparent; }
.section.alt, .section.dark { background: transparent; }
.gnav { background: rgba(251, 252, 254, .78); border-bottom-color: rgba(15, 23, 42, .06); }

/* Soft light ("aurora") behind hero and CTA */
.nv-hero, .nv-cta { position: relative; overflow: hidden; }
.aurora { position: absolute; inset: -20% -10% auto -10%; height: 140%; pointer-events: none; z-index: 0;
  background:
    radial-gradient(42% 36% at 78% 18%, rgba(110, 165, 235, .22), transparent 70%),
    radial-gradient(30% 28% at 12% 30%, rgba(242, 161, 30, .12), transparent 70%),
    radial-gradient(36% 30% at 50% 85%, rgba(98, 195, 230, .14), transparent 70%); filter: blur(10px); }
.nv-hero > .wrap, .nv-cta > .wrap { position: relative; z-index: 1; }

/* Kicker labels: short rule + spaced caps */
.kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--link); font-size: 12.5px; letter-spacing: .16em; margin-bottom: 18px; }
.kicker::before { content: ""; width: 22px; height: 1.5px; background: currentColor; opacity: .7; }
html[lang="zh-Hant"] .kicker { letter-spacing: .18em; font-size: 13.5px; }

/* Section heads */
.nv-head { margin-bottom: 8px; }
.center-head { text-align: center; display: flex; flex-direction: column; align-items: center; }
.center-head .headline, .center-head .subhead { margin-inline: auto; }
.row-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

/* Buttons */
.btn { border-radius: 12px; padding: 12px 22px; }
.btn-glass { background: var(--nv-glass); color: var(--accent); border: 1px solid rgba(11, 58, 110, .18); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-glass:hover { background: #fff; }

/* Glass panels */
.glass-panel, .showcase { background: var(--nv-glass); border: 1px solid var(--nv-glass-line); box-shadow: 0 0 0 1px var(--nv-ink-line), var(--nv-shadow); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-radius: 24px; }
.showcase { padding: clamp(24px, 4vw, 48px); }

/* Numbered chapter tag (on visuals) */
.chap { position: absolute; left: 14px; top: 14px; z-index: 2; display: inline-flex; align-items: baseline; gap: 8px; background: rgba(255, 255, 255, .86); border: 1px solid rgba(255, 255, 255, .9); box-shadow: 0 0 0 1px var(--nv-ink-line), 0 8px 20px -12px rgba(15, 35, 70, .4); backdrop-filter: blur(8px); border-radius: 10px; padding: 6px 12px; font-size: 13px; font-weight: 600; color: var(--text); font-style: italic; }
.chap b { color: var(--link); font-style: normal; font-variant-numeric: tabular-nums; }

/* Values */
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 44px; }
.value { background: var(--nv-glass); border: 1px solid var(--nv-glass-line); box-shadow: 0 0 0 1px var(--nv-ink-line), var(--nv-shadow); border-radius: var(--nv-radius); padding: 30px; }
.value h3 { font-size: 20px; margin: 14px 0 8px; letter-spacing: -.012em; }
.value p { color: var(--text-2); margin: 0; font-size: 15.5px; }
.v-n { display: inline-block; font-size: 13px; font-weight: 600; color: var(--link); letter-spacing: .08em; font-variant-numeric: tabular-nums; }
@media (max-width: 860px) { .values { grid-template-columns: minmax(0, 1fr); } }

/* Stats: lighter rule */
.stats div { border-top: 1px solid rgba(11, 58, 110, .25); }

/* Process with visuals and big numerals */
.process { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; counter-reset: none; }
.nv-step { position: relative; }
.nv-step-visual { position: relative; background: linear-gradient(180deg, #F2F6FB, #E9F0F8); border-radius: var(--nv-radius); padding: 44px 14px 0; height: 230px; overflow: hidden; box-shadow: 0 0 0 1px var(--nv-ink-line); }
.nv-step-visual .mock { transform: translateY(0); }
.big-n { display: block; font-size: 56px; font-weight: 600; line-height: 1; letter-spacing: -.04em; color: rgba(11, 58, 110, .12); margin: 20px 0 4px; font-variant-numeric: tabular-nums; }
.nv-step > h3 { font-size: 18px; margin-bottom: 6px; }
.nv-step > p { color: var(--text-2); font-size: 15px; margin: 0; }
@media (max-width: 1000px) { .process { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .process { grid-template-columns: minmax(0, 1fr); } }

/* Service cards: image-led */
.nv-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.nv-card { display: flex; flex-direction: column; color: var(--text); background: #fff; border-radius: var(--nv-radius); box-shadow: 0 0 0 1px var(--nv-ink-line), var(--nv-shadow); overflow: hidden; transition: transform .6s cubic-bezier(.34, 1.56, .64, 1), box-shadow .35s ease; }
.nv-card:hover { text-decoration: none; transform: translateY(-6px); box-shadow: 0 0 0 1px var(--nv-ink-line), 0 40px 80px -40px rgba(15, 35, 70, .45); }
.nv-card:hover .more { text-decoration: underline; }
.nv-card-visual { position: relative; height: 290px; overflow: hidden; background: linear-gradient(180deg, #F2F6FB, #E7EFF8); padding: 58px 11% 0; }
.nv-card-visual .mk-win { box-shadow: 0 20px 40px -24px rgba(15, 35, 70, .35); }
.nv-card-copy { padding: 26px 28px 28px; }
.nv-card-copy h3 { font-size: 21px; letter-spacing: -.012em; margin-bottom: 8px; }
.nv-card-copy p { color: var(--text-2); margin: 0 0 14px; font-size: 15.5px; }
.nv-card .more { font-size: 15px; }
@media (max-width: 800px) { .nv-cards { grid-template-columns: minmax(0, 1fr); } .nv-card-visual { height: 240px; } }

/* Voice visual */
.voice-visual { padding: 36px; text-align: left; }
.mic-big { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: linear-gradient(135deg, #1D5FA7, #0B3A6E); color: #fff; box-shadow: 0 16px 30px -16px rgba(11, 58, 110, .6); margin-bottom: 22px; animation: mic-pulse 2.6s ease-in-out infinite; }
.mic-big svg { width: 30px; height: 30px; }
@keyframes mic-pulse { 0%, 100% { box-shadow: 0 16px 30px -16px rgba(11, 58, 110, .6), 0 0 0 0 rgba(29, 95, 167, .25); } 50% { box-shadow: 0 16px 30px -16px rgba(11, 58, 110, .6), 0 0 0 14px rgba(29, 95, 167, 0); } }
.voice-quote { font-size: 19px; line-height: 1.5; font-weight: 500; letter-spacing: -.01em; margin: 0 0 20px; }
.voice-quote::before { content: "“"; } .voice-quote::after { content: "”"; }
html[lang="zh-Hant"] .voice-quote::before { content: "「"; } html[lang="zh-Hant"] .voice-quote::after { content: "」"; }
.voice-out { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.voice-out li { background: #fff; border-radius: 10px; padding: 10px 14px; font-size: 14.5px; box-shadow: 0 0 0 1px var(--nv-ink-line); border-left: 3px solid var(--t-dark, #0E5E7E); }

/* Product marquee */
.nv-marquee { overflow: hidden; }
.marquee { margin-top: 44px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.marquee-track { display: flex; gap: 24px; width: max-content; padding: 10px 0 30px; animation: marquee 70s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 12px)); } }
.mq-item { margin: 0; width: 360px; flex: none; }
.mq-frame { background: linear-gradient(180deg, #F2F6FB, #E7EFF8); border-radius: var(--nv-radius); padding: 22px; box-shadow: 0 0 0 1px var(--nv-ink-line); }
.mq-item figcaption { margin-top: 12px; font-size: 14px; color: var(--text-2); display: flex; gap: 10px; align-items: baseline; }
.mq-item figcaption b { color: var(--link); font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } .marquee { overflow-x: auto; } .mic-big { animation: none; } }

/* Existing blocks, softened */
.card { border: 0; border-radius: var(--nv-radius); box-shadow: 0 0 0 1px var(--nv-ink-line), var(--nv-shadow); background: #fff; }
.card .v-n { margin-bottom: 10px; }
.tree-ov, .tx, .rx, .lib, .example { border: 0; border-radius: var(--nv-radius); box-shadow: 0 0 0 1px var(--nv-ink-line), var(--nv-shadow); }
.mk-win { border-radius: 1.8cqw; }

/* CTA with the team */
.cta-card { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: center; padding: clamp(28px, 5vw, 56px); }
.cta-people { display: flex; gap: 24px; justify-content: center; }
.cta-people figure { margin: 0; text-align: center; }
.cta-people .face.big { width: 132px; height: 132px; margin: 0 auto 12px; box-shadow: 0 0 0 6px rgba(255, 255, 255, .9), 0 18px 36px -18px rgba(15, 35, 70, .45); }
.cta-people b { display: block; font-size: 16px; }
.cta-people span { font-size: 13.5px; color: var(--text-2); }
@media (max-width: 860px) { .cta-card { grid-template-columns: minmax(0, 1fr); } }
.site-footer { background: #fff; }
.nv-step-visual .rx, .nv-card-visual .rx { zoom: .78; box-shadow: 0 20px 40px -24px rgba(15, 35, 70, .35); }
.marquee-track { align-items: flex-start; }

/* Audience entry strip (hero) */
.aud { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; margin-top: 28px; padding: 16px 22px; background: var(--nv-glass); border-radius: 16px; box-shadow: 0 0 0 1px var(--nv-ink-line); }
.aud-l { font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-right: 6px; }
.aud a { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; font-size: 15px; }
.aud a .chev { width: 7px; height: 12px; }
/* Evidence */
.ev-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 36px; }
.ev-item { background: #fff; border-radius: var(--nv-radius); box-shadow: 0 0 0 1px var(--nv-ink-line), var(--nv-shadow); padding: 26px; display: flex; flex-direction: column; gap: 8px; }
.ev-item b { font-size: clamp(28px, 3vw, 38px); font-weight: 600; letter-spacing: -.03em; color: var(--accent); line-height: 1.1; }
.ev-item span { color: var(--text-2); font-size: 15px; }
.boundary { margin: 28px 0 0; padding: 16px 20px; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 8px; color: var(--ink-2); font-size: 15.5px; max-width: 900px; }
@media (max-width: 900px) { .ev-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .ev-grid { grid-template-columns: minmax(0, 1fr); } }
/* Partners */
.pt-points { display: grid; gap: 16px; }
.req { margin-top: 28px; }
.req-h { font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.req ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.req li { background: #fff; border-radius: 8px; padding: 7px 12px; font-size: 14px; box-shadow: 0 0 0 1px var(--nv-ink-line); }
.card-link { color: var(--text); display: flex; flex-direction: column; gap: 6px; }
.card-link:hover { text-decoration: none; }
.card-link .more { margin-top: auto; font-size: 15px; }



/* =========================================================
   v11 · Clinical trust layer
   Layout: calm editorial pages, product shown in context, one primary action (Book a demo).
   Colour: deep navy for text, clinical teal for action, Encorphin amber (from the logo) as the warm brand note.
   ========================================================= */
:root {
  --navy: #17384B; --teal: #0E7C77; --teal-hover: #0B6863; --teal-ink: #0B6863; --teal-bright: #159B94; --teal-soft: #DDF2EF;
  --pale: #EEF5F7; --warm: #F7FAFA; --slate: #5A707C; --line: #DCE7EA; --amber-brand: #F5B83D;
  --caution: #FFF4E6; --caution-ink: #8B5E20; --caution-line: #E8C98F; --danger: #B42318;
  --bg: #FFFFFF; --bg-alt: var(--warm); --text: var(--navy); --text-2: #3B5664; --hair: var(--line); --hair-2: #C6D7DD;
  --accent: var(--teal); --accent-hover: var(--teal-hover); --link: var(--teal-ink); --accent-soft: var(--teal-soft); --card: #FFFFFF;
  --panel: #EEF4F6; --rule: var(--line); --ink: var(--navy); --ink-2: #33505F; --muted: var(--slate); --signal: var(--navy);
  --t-dark: #0E7C77; --t-mid: #159B94; --t-light: #7FD0C8; --t-pale: #E6F5F3; --t-title: #17384B; --w-line: #DCE7EA; --w-bg: #F4F8F9; --w-text: #1C3646; --w-muted: #5F7682;
  --shadow: 0 24px 48px -30px rgba(23, 56, 75, .35);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", "Segoe UI", Roboto, Arial, sans-serif;
}
body { background: var(--warm); color: var(--text); font-family: var(--font); }
::selection { background: var(--teal-soft); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

/* Type scale (calmer than the 2019 hero scale) */
.h-hero { font-size: clamp(32px, 4.2vw, 54px); line-height: 1.1; letter-spacing: -.024em; max-width: 20ch; }
.headline { font-size: clamp(27px, 3vw, 40px); line-height: 1.16; letter-spacing: -.02em; text-wrap: balance; }
.subhead { font-size: clamp(16.5px, 1.4vw, 19px); line-height: 1.6; color: var(--text-2); }
html[lang="zh-Hant"] .h-hero { font-size: clamp(30px, 3.7vw, 48px); line-height: 1.3; letter-spacing: .01em; max-width: 18em; }
html[lang="zh-Hant"] .headline { font-size: clamp(25px, 2.7vw, 36px); line-height: 1.35; letter-spacing: .01em; }
.wide { max-width: 64ch; }
.fine { color: var(--muted); }

/* Kicker: teal label with an amber rule (brand note) */
.kicker { color: var(--teal-ink); font-weight: 600; }
.kicker::before { background: var(--amber-brand); opacity: 1; height: 2px; }

/* Buttons */
.btn { background: var(--teal); border-color: var(--teal); color: #fff; border-radius: 10px; font-weight: 600; transition: background .2s, transform .2s, box-shadow .2s, border-color .2s; }
.btn:hover { background: var(--teal-hover); transform: translateY(-1px); box-shadow: 0 10px 22px -14px rgba(14, 124, 119, .7); }
.btn:active { transform: translateY(0); transition-duration: .08s; }
.btn-ghost { background: #fff; color: var(--navy); border: 1px solid var(--hair-2); }
.btn-ghost:hover { background: #fff; color: var(--teal-ink); border-color: var(--teal); box-shadow: none; }
.btn:disabled { opacity: .65; cursor: progress; transform: none; box-shadow: none; }
.ctas.tight { margin-top: 0; }
.more { color: var(--link); }
.more.on-dark { color: #8FE0D8; }

/* Header */
.gnav { background: rgba(255, 255, 255, .92); border-bottom: 1px solid rgba(23, 56, 75, .08); }
.gnav-in { gap: 28px; }
.gnav-links { gap: 26px; }
.gnav-links a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--teal-bright); }
.gnav-cta { margin-left: 8px; }
.gnav-cta[aria-current="page"] { background: var(--teal-hover); }
.nav-extra { display: none; }
@media (max-width: 1080px) { .gnav-links { gap: 18px; } .gnav-in { gap: 20px; } }
@media (max-width: 980px) {
  .gnav-actions .gnav-cta { display: inline-flex; }
  .hide-sm { display: none; }
  .gnav-links.open .nav-extra { display: flex; gap: 8px; padding-top: 16px; }
  .gnav-links.open .nav-extra .gbtn, .gnav-links.open .nav-extra a { font-size: 15px; height: 42px; padding: 0 14px; border: 1px solid var(--hair); border-radius: 8px; }
  .gnav-links.open a[aria-current="page"] { color: var(--teal-ink); }
}
@media (max-width: 440px) { .brand b { display: none; } .gnav-in { gap: 8px; } .gnav-actions { gap: 2px; } .gnav-cta { padding: 7px 11px; font-size: 13px; margin-left: 4px; } .lang-btn { padding: 0 6px; } }

/* Sections */
.section { padding: clamp(56px, 7vw, 96px) 0; }
.section.tight { padding-top: 8px; }
.section.tint { background: var(--pale); }
.page-hero { padding: clamp(40px, 6vw, 80px) 0 clamp(28px, 3vw, 44px); }
.page-hero .subhead { margin-top: 18px; }
.page-hero .ctas { margin-top: 26px; gap: 12px; }
.center-link { text-align: center; margin: 28px 0 0; }
.aurora { background:
  radial-gradient(40% 34% at 84% 14%, rgba(21, 155, 148, .15), transparent 70%),
  radial-gradient(26% 24% at 6% 26%, rgba(245, 184, 61, .13), transparent 70%),
  radial-gradient(34% 28% at 50% 92%, rgba(127, 208, 200, .12), transparent 70%); }

/* Cards: quieter; only links lift on hover */
.card { border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 1px 2px rgba(23, 56, 75, .04); }
.card:hover, .person:hover { transform: none; box-shadow: 0 1px 2px rgba(23, 56, 75, .04); }
.tree-ov, .tx, .rx, .lib, .example { box-shadow: 0 0 0 1px var(--line), 0 20px 40px -34px rgba(23, 56, 75, .4); }
.cols > div { border-top-color: var(--hair-2); }
.statement { border-left-color: var(--amber-brand); color: var(--navy); }
.stats div { border-top: 2px solid var(--teal-bright); }
.stats.two { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 8px; }
@media (max-width: 520px) { .stats.two { grid-template-columns: minmax(0, 1fr); } }
.boundary { display: flex; gap: 12px; align-items: flex-start; margin: 28px 0 0; padding: 16px 20px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--navy); border-radius: 12px; color: var(--navy); font-size: 15.5px; max-width: 900px; }
.boundary svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--teal-ink); }
.boundary.big { font-size: clamp(17px, 1.5vw, 19px); margin: 0 auto; }

/* Status chips (core vs extended) */
.status-chip { margin-left: auto; font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; letter-spacing: .01em; text-transform: none; white-space: nowrap; line-height: 1.4; }
.status-chip.is-core { background: var(--teal-soft); color: #0A5652; }
.status-chip.is-ext { background: #F1F5F7; color: #3F5A68; border: 1px dashed #A9BEC7; }
.svc-eyebrow { display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; }
.svc-eyebrow .status-chip { margin-left: 0; letter-spacing: 0; }

/* Photos (illustrative) */
.photo { position: relative; margin: 0; border-radius: 22px; overflow: hidden; background: var(--pale); box-shadow: 0 30px 60px -38px rgba(23, 56, 75, .5); }
.photo img { width: 100%; height: auto; display: block; }
.hero-photo img { aspect-ratio: 5 / 4; object-fit: cover; object-position: 50% 45%; }
.step-photo img { aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 40%; }
.step-photo img[src*="patient-tablet"] { aspect-ratio: 4 / 5; object-position: 58% 50%; max-height: 640px; }
.photo-tag { position: absolute; left: 12px; bottom: 12px; background: rgba(255, 255, 255, .9); color: var(--navy); font-size: 12px; font-weight: 500; padding: 3px 10px; border-radius: 999px; line-height: 1.5; }
.photo .pend-flag { position: absolute; left: 12px; right: 12px; top: 12px; margin: 0; }

/* Home hero */
.hm-hero { position: relative; overflow: hidden; padding: clamp(32px, 6vw, 76px) 0 clamp(32px, 4vw, 56px); }
.hm-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hm-copy .h-hero { font-size: clamp(34px, 4.3vw, 58px); max-width: 14ch; }
html[lang="zh-Hant"] .hm-copy .h-hero { font-size: clamp(30px, 3.6vw, 48px); max-width: 12em; }
.lede { font-size: clamp(16.5px, 1.4vw, 19px); line-height: 1.62; color: var(--text-2); max-width: 54ch; margin: 20px 0 0; }
.hm-copy .ctas { margin-top: 28px; gap: 12px; }
.brand-line { display: flex; gap: 10px; align-items: center; margin: 24px 0 0; font-size: 14px; color: var(--muted); max-width: 52ch; }
.brand-line img { width: 22px; height: 22px; flex: none; }
.hm-hero > .wrap:last-child { position: relative; z-index: 1; }
.proof { list-style: none; margin: clamp(28px, 4vw, 44px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.proof li { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; min-width: 0; }
.proof-ic { width: 42px; height: 42px; border-radius: 11px; background: var(--teal-soft); color: var(--teal-ink); display: grid; place-items: center; flex: none; }
.proof-ic svg { width: 22px; height: 22px; }
.proof b { display: block; font-size: 15px; } .proof small { color: var(--muted); font-size: 13.5px; }
@media (max-width: 900px) { .hm-grid { grid-template-columns: minmax(0, 1fr); } .hm-copy .h-hero { max-width: 16ch; } }
@media (max-width: 760px) { .proof { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .hm-copy .ctas .btn { flex: 1 1 100%; justify-content: center; } }

/* Problem: research numbers, film, five parts */
.research { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 32px; }
.research div { border-top: 2px solid var(--teal-bright); padding-top: 14px; display: flex; flex-direction: column; gap: 4px; }
.research b { font-size: clamp(28px, 3.2vw, 40px); font-weight: 600; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.research span { color: var(--text-2); font-size: 14.5px; }
@media (max-width: 520px) { .research { grid-template-columns: minmax(0, 1fr); gap: 16px; } }
.film { margin: 0; }
.film-box { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: var(--navy); box-shadow: 0 30px 60px -38px rgba(23, 56, 75, .6); }
.film video { width: 100%; height: 100%; object-fit: cover; display: block; }
.film-play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .94); color: var(--teal-ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .45); transition: transform .2s; }
.film-play:hover { transform: scale(1.05); }
.film-play svg { width: 24px; height: 24px; margin-left: 3px; }
.film.is-playing .film-play { left: auto; top: auto; right: 12px; bottom: 12px; margin: 0; width: 40px; height: 40px; background: rgba(23, 56, 75, .65); color: #fff; }
.film.is-playing .film-play svg { width: 15px; height: 15px; margin: 0; }
.film-play:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.film figcaption { font-size: 13.5px; color: var(--muted); margin-top: 10px; }
.five-wrap { margin-top: 28px; }
.five-wrap h3 { font-size: 17px; margin-bottom: 4px; }
.five-wrap > p { color: var(--text-2); font-size: 15px; margin: 0 0 14px; }
.five-strip { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.five-strip li { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 10px; display: flex; flex-direction: column; gap: 4px; min-width: 0; text-align: center; }
.five-strip li.loop { border-color: var(--amber-brand); background: #FFF8EA; }
.five-strip b { font-size: 15px; } .five-strip b span { color: var(--muted); font-weight: 500; }
.five-strip small { font-size: 12px; color: #7A5418; font-weight: 600; }
@media (max-width: 440px) { .five-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Home flow */
.flow { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.flow-step { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px; position: relative; }
.flow-n { font-size: 13px; font-weight: 700; color: var(--teal-ink); letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.flow-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--teal-soft); color: var(--teal-ink); margin: 14px 0 16px; }
.flow-ic svg { width: 24px; height: 24px; }
.flow-step h3 { font-size: 19px; margin-bottom: 8px; }
.flow-step p { color: var(--text-2); margin: 0; font-size: 15.5px; }
.flow-step:not(:last-child)::after { content: ""; position: absolute; right: -19px; top: 50%; width: 11px; height: 11px; border-top: 2px solid var(--teal-bright); border-right: 2px solid var(--teal-bright); transform: translateY(-50%) rotate(45deg); }
@media (max-width: 860px) { .flow { grid-template-columns: minmax(0, 1fr); } .flow-step:not(:last-child)::after { right: auto; left: 44px; top: auto; bottom: -19px; transform: rotate(135deg); } }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); margin-top: 40px; }
.pillar { border-top: 1px solid var(--hair-2); padding-top: 22px; }
.pillar-ic { color: var(--teal-ink); display: block; }
.pillar-ic svg { width: 28px; height: 28px; }
.pillar h3 { font-size: 20px; margin: 14px 0 8px; }
.pillar p { color: var(--text-2); margin: 0; }
@media (max-width: 800px) { .pillars { grid-template-columns: minmax(0, 1fr); } }

/* Module cards */
.mod-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 36px; }
.mod-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; color: var(--text); display: flex; flex-direction: column; gap: 8px; transition: border-color .2s, transform .3s, box-shadow .3s; }
.mod-card:hover { text-decoration: none; border-color: var(--teal-bright); transform: translateY(-3px); box-shadow: 0 20px 40px -30px rgba(23, 56, 75, .5); }
.mod-card:hover .more { text-decoration: underline; }
.mod-top { display: flex; align-items: center; gap: 8px; }
.mod-ic { color: var(--teal-ink); display: inline-flex; } .mod-ic svg { width: 24px; height: 24px; }
.mod-top small { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.mod-card h3 { font-size: 18px; margin-top: 6px; }
.mod-card p { color: var(--text-2); font-size: 15px; margin: 0 0 6px; }
.mod-card .more { margin-top: auto; font-size: 15px; }
@media (max-width: 1080px) { .mod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .mod-grid { grid-template-columns: minmax(0, 1fr); } }

/* Concept UI figures and labels */
.concept-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 32px); margin-top: 36px; align-items: start; }
@media (max-width: 860px) { .concept-pair { grid-template-columns: minmax(0, 1fr); } }
.concept { margin: 0; }
.concept-label, .demo-label { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 10px; font-size: 12.5px; font-weight: 600; color: var(--caution-ink); background: var(--caution); border: 1px solid var(--caution-line); border-radius: 999px; padding: 4px 11px; line-height: 1.4; }
.concept-label svg, .demo-label svg { width: 14px; height: 14px; flex: none; }
.concept-frame { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #F3F8F8; box-shadow: 0 24px 50px -38px rgba(23, 56, 75, .5); }
.concept-frame img { width: 100%; height: auto; display: block; }
.concept figcaption { margin-top: 10px; font-size: 14.5px; color: var(--text-2); }
.concept figcaption small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.concept.wide { max-width: 1120px; margin-inline: auto; }
.demo-label { grid-column: 1 / -1; justify-self: center; margin: 0; }
.mock { position: relative; }
.mk-tag { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); z-index: 2; font-size: 10.5px; font-weight: 600; letter-spacing: .02em; color: var(--caution-ink); background: var(--caution); border: 1px solid var(--caution-line); border-radius: 999px; padding: 1px 8px; line-height: 1.5; white-space: nowrap; pointer-events: none; }
.rx { position: relative; }
.rx > .mk-tag { position: absolute; top: 12px; right: 12px; left: auto; transform: none; }
.mk-brand, .win-bar .mk-brand { color: #137F85; }
.nv-card-visual, .nv-step-visual, .mq-frame, .tile-visual { overflow: visible; }

/* Evidence */
.ev-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.ev-list .ev-item:first-child { grid-column: 1 / -1; }
.ev-item { background: #fff; border: 1px solid var(--line); box-shadow: none; border-radius: 16px; padding: 20px 22px; }
.ev-item b { color: var(--navy); font-size: clamp(26px, 2.8vw, 36px); font-variant-numeric: tabular-nums; }
.bars-card { border-radius: 18px; border: 1px solid var(--line); box-shadow: 0 24px 50px -40px rgba(23, 56, 75, .5); }
.bar.hi .bar-t i { background: var(--teal); }
.bar-t i { background: #B9CBD2; }

/* Clinical responsibility band */
.band-navy { background: var(--navy); color: #fff; }
.band-navy .headline { color: #fff; }
.band-navy .subhead { color: #CFE0E6; }
.band-navy .kicker { color: #8FE0D8; }
.resp { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.resp-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.resp-points li { display: flex; gap: 14px; align-items: flex-start; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .16); border-radius: 14px; padding: 16px 18px; }
.resp-points svg { width: 22px; height: 22px; color: #8FE0D8; flex: none; margin-top: 2px; }
.resp-points b { display: block; color: #fff; margin-bottom: 2px; }
.resp-points span { color: #CFE0E6; font-size: 15px; }
@media (max-width: 900px) { .resp { grid-template-columns: minmax(0, 1fr); } }

/* CTA band and final card */
.cta-band { padding-top: clamp(40px, 5vw, 64px); }
.cta-box { display: flex; justify-content: space-between; align-items: center; gap: 24px 40px; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: clamp(24px, 4vw, 44px); }
.cta-copy { max-width: 640px; }
.cta-box .headline { font-size: clamp(25px, 2.6vw, 34px); margin-bottom: 10px; }
.cta-box .subhead { margin: 0; font-size: 17px; }
.cta-box .ctas { margin: 0; gap: 12px; }
.cta-card { border-radius: 24px; }
.cta-card .ctas { gap: 12px; }

/* Product */
.core-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 28px; }
.core-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px; position: relative; }
.core-card .status-chip { position: absolute; right: 20px; top: 24px; }
.core-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--teal-soft); color: var(--teal-ink); margin-bottom: 18px; }
.core-ic svg { width: 24px; height: 24px; }
.core-card h3 { font-size: 19px; margin-bottom: 8px; }
.core-card p { color: var(--text-2); margin: 0; }
@media (max-width: 860px) { .core-grid { grid-template-columns: minmax(0, 1fr); } }
.spec-row { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--hair-2); }
.spec-row h3 { font-size: 18px; margin-bottom: 4px; }
.spec-row p { color: var(--text-2); margin: 0 0 12px; }
.spec-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.spec-list li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 14.5px; }
.showcase { background: #fff; border: 1px solid var(--line); box-shadow: 0 30px 60px -48px rgba(23, 56, 75, .5); border-radius: 22px; }
.chapternav a[aria-current="page"] { border-bottom-color: var(--teal-bright); }
.chapternav a[aria-current="page"] svg { color: var(--teal-ink); }

/* How it works */
.step-n { font-size: 14px; font-weight: 700; color: var(--teal-ink); letter-spacing: .1em; margin: 0 0 10px; font-variant-numeric: tabular-nums; }
.pill-list.one { grid-template-columns: minmax(0, 1fr); }
.pill-list li::before { border-color: var(--teal-bright); }
.trace { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr); gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: clamp(18px, 3vw, 28px); box-shadow: 0 24px 50px -40px rgba(23, 56, 75, .5); }
.trace > .mk-tag { top: -10px; }
.trace-q { display: grid; gap: 10px; }
.trace-qa { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: grid; gap: 3px; font-size: 13.5px; }
.trace-qa i, .trace-out li i { font-style: normal; font-size: 11px; font-weight: 700; color: #fff; background: var(--teal); border-radius: 4px; padding: 1px 6px; justify-self: start; }
.trace-qa span { color: var(--text-2); }
.trace-qa b { font-size: 14.5px; }
.trace-arrow { color: var(--teal-bright); display: grid; place-items: center; }
.trace-arrow svg { width: 40px; height: 16px; }
.trace-out { background: var(--w-bg); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.trace-h { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; margin: 0 0 10px; color: var(--navy); }
.trace-h img { width: 16px; height: 16px; }
.trace-out ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.trace-out li { display: flex; gap: 8px; align-items: baseline; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 14px; }
.trace-note { font-size: 12px; color: var(--muted); margin: 10px 0 0; }
@media (max-width: 560px) { .trace { grid-template-columns: minmax(0, 1fr); } .trace-arrow { transform: rotate(90deg); } }

/* For clinics */
.topics, .site-facts { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 12px; }
.topics li, .site-facts li { display: flex; gap: 12px; align-items: flex-start; }
.topics svg, .site-facts svg { width: 20px; height: 20px; color: var(--teal-ink); flex: none; margin-top: 3px; }
.topics b, .site-facts b { display: block; color: var(--navy); margin-bottom: 2px; }
.topics span, .site-facts span { color: var(--text-2); }
.topics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; margin-top: 28px; }
.topics li { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
@media (max-width: 760px) { .topics { grid-template-columns: minmax(0, 1fr); } }
.compare td.with { background: var(--teal-soft); }

/* Trust & safety */
.notice-card { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--teal); border-radius: 16px; padding: clamp(20px, 3vw, 32px); }
.notice-card .headline { font-size: clamp(23px, 2.4vw, 30px); margin-bottom: 10px; }
.notice { font-size: clamp(16.5px, 1.5vw, 19px); line-height: 1.6; margin: 0; color: var(--navy); max-width: 72ch; }
.flowmap { margin: 32px 0 0; }
.fm-grid { display: grid; grid-template-columns: minmax(0, 1fr) 52px minmax(0, 1fr) 52px minmax(0, 1fr); grid-template-rows: auto 36px auto; }
.fm-node { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fm-node b { font-size: 16px; } .fm-node small { color: var(--muted); font-size: 13.5px; }
.fm-node.core { border: 2px solid var(--teal); }
.fm-node.dashed { border: 1.5px dashed #9FB5BE; background: rgba(255, 255, 255, .6); }
.fm-node.todo { border-color: var(--caution-line); background: var(--caution); }
.fm-node.todo small { color: var(--caution-ink); }
.fm-node.a { grid-area: 1 / 1; } .fm-arrow.h1 { grid-area: 1 / 2; } .fm-node.b { grid-area: 1 / 3; } .fm-arrow.h2 { grid-area: 1 / 4; } .fm-node.c { grid-area: 1 / 5; }
.fm-link.v1 { grid-area: 2 / 1; } .fm-link.v2 { grid-area: 2 / 3; } .fm-node.d { grid-area: 3 / 1; } .fm-node.e { grid-area: 3 / 3; }
.fm-arrow, .fm-link { position: relative; }
.fm-arrow::before { content: ""; position: absolute; left: 8px; right: 10px; top: 50%; border-top: 2px solid var(--teal-bright); }
.fm-arrow::after { content: ""; position: absolute; right: 9px; top: 50%; width: 9px; height: 9px; border-top: 2px solid var(--teal-bright); border-right: 2px solid var(--teal-bright); transform: translateY(-50%) rotate(45deg); }
.fm-link::before { content: ""; position: absolute; left: 50%; top: 4px; bottom: 4px; border-left: 2px dashed #9FB5BE; }
.flowmap figcaption { font-size: 13.5px; color: var(--muted); margin-top: 14px; }
@media (max-width: 760px) {
  .fm-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .fm-grid > * { grid-area: auto !important; }
  .fm-arrow { height: 34px; }
  .fm-arrow::before { left: 50%; right: auto; top: 6px; bottom: 8px; border-top: 0; border-left: 2px solid var(--teal-bright); }
  .fm-arrow::after { left: 50%; right: auto; top: auto; bottom: 8px; transform: translateX(-50%) rotate(135deg); }
  .fm-link { display: none; }
  .fm-node.d, .fm-node.e { margin-top: 12px; }
}
.ti-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.ti { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; min-width: 0; }
.ti-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.ti-head h3 { font-size: 17px; }
.ti-n { font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--teal-ink); font-variant-numeric: tabular-nums; flex: none; }
.ti-body p { margin: 0; color: var(--text-2); font-size: 15px; }
.ti-body a, .pv-sec p a { color: var(--teal-ink); text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 760px) { .ti-list { grid-template-columns: minmax(0, 1fr); } }
.voice-rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.voice-rules li { display: flex; align-items: flex-start; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.voice-rules li > svg { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--teal); }
.voice-rules b { display: block; font-weight: 600; font-size: 15.5px; color: var(--navy); margin-bottom: 2px; }
.voice-rules span { color: var(--text-2); font-size: 15px; }
.stat-note { margin-top: 10px; }
.mic-hero { background: var(--teal-soft); color: var(--teal-ink); border-radius: 12px; }

/* Privacy notice */
.pv-sec { padding: 22px 0; border-top: 1px solid var(--hair-2); }
.pv-sec:last-of-type { border-bottom: 1px solid var(--hair-2); }
.pv-sec h2 { font-size: 19px; margin-bottom: 8px; }
.pv-sec p { color: var(--text-2); margin: 0 0 8px; max-width: 70ch; }
.pending { display: inline-block; font-size: 14px; color: var(--caution-ink); background: var(--caution); border: 1px dashed var(--caution-line); border-radius: 8px; padding: 4px 10px; }
.sel { user-select: all; -webkit-user-select: all; font-weight: 600; color: var(--navy); }

/* About */
.team-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 28px; max-width: 760px; }
.team-card { display: flex; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; color: var(--text); transition: border-color .2s; }
.team-card:hover { text-decoration: none; border-color: var(--teal-bright); }
.team-card .face { width: 72px; height: 72px; margin: 0; border: 0; }
.team-card b { display: block; font-size: 16.5px; }
.team-card small { display: block; color: var(--text-2); font-size: 13.5px; }
.timeline .when, .roadmap .when { color: var(--teal-ink); }
.roadmap li, .ring { border-top-color: var(--teal-bright); }
.ring b { color: var(--teal-ink); }
.person .role { color: var(--teal-ink); }

/* Book a demo */
.demo-hero { position: relative; overflow: hidden; padding: clamp(32px, 5vw, 64px) 0 clamp(48px, 6vw, 88px); }
.demo-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); grid-template-areas: "intro panel" "aside panel"; grid-template-rows: auto 1fr; gap: 28px clamp(28px, 5vw, 64px); align-items: start; }
.demo-intro { grid-area: intro; } .demo-panel { grid-area: panel; } .demo-aside { grid-area: aside; }
.demo-intro .h-hero { font-size: clamp(30px, 3.4vw, 44px); max-width: 16ch; }
html[lang="zh-Hant"] .demo-intro .h-hero { font-size: clamp(28px, 3vw, 40px); max-width: 12em; }
.demo-intro .subhead { margin-top: 16px; }
.demo-panel { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: clamp(20px, 3.4vw, 36px); box-shadow: 0 30px 60px -46px rgba(23, 56, 75, .55); }
.demo-aside h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 12px; font-weight: 600; }
.demo-aside h2:not(:first-child) { margin-top: 28px; }
.demo-aside p { color: var(--text-2); font-size: 15px; }
.next-steps { list-style: none; counter-reset: ns; margin: 0; padding: 0; display: grid; gap: 14px; }
.next-steps li { counter-increment: ns; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 2px 12px; }
.next-steps li::before { content: counter(ns); grid-row: span 2; width: 28px; height: 28px; border-radius: 50%; background: var(--teal-soft); color: var(--teal-ink); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.next-steps b { font-size: 15.5px; }
.next-steps span { color: var(--text-2); font-size: 14.5px; }
.contact-email { font-size: 15px; }
@media (max-width: 900px) { .demo-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "panel" "aside"; } }
.demo-form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; align-content: start; }
.field label { font-weight: 600; font-size: 14.5px; color: var(--navy); }
.field .opt { font-weight: 400; color: var(--muted); }
.req-mark { color: var(--danger); margin-left: 2px; }
.field-hint { margin: 0; font-size: 13px; color: var(--muted); }
.field input, .field select, .field textarea { font: inherit; font-size: 16px; letter-spacing: 0; color: var(--navy); background: #fff; border: 1px solid #A9BFC7; border-radius: 10px; padding: 11px 12px; width: 100%; min-height: 46px; }
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--slate) 50%), linear-gradient(135deg, var(--slate) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
.field [aria-invalid="true"] { border-color: var(--danger); background-color: #FFF8F7; }
.field-err { margin: 0; color: var(--danger); font-size: 13.5px; font-weight: 500; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 620px) { .field-row { grid-template-columns: minmax(0, 1fr); } }
.field.check { grid-template-columns: 22px minmax(0, 1fr); align-items: start; gap: 4px 10px; }
.field.check input { width: 20px; height: 20px; min-height: 0; margin: 2px 0 0; padding: 0; accent-color: var(--teal); }
.field.check label { font-weight: 400; font-size: 14.5px; color: var(--text-2); }
.field.check .field-err { grid-column: 2; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.nophi { display: flex; gap: 10px; align-items: flex-start; margin: 0; background: var(--caution); border: 1px solid var(--caution-line); color: var(--caution-ink); border-radius: 12px; padding: 12px 14px; font-size: 14px; }
.nophi svg { width: 20px; height: 20px; flex: none; }
.req-note { margin: 0; font-size: 13px; color: var(--muted); }
.form-err, .form-fail { background: #FFF5F4; border: 1px solid #F1B8B2; border-radius: 12px; padding: 14px 16px; color: #8A1C12; }
.form-err:focus { outline: 2px solid var(--danger); outline-offset: 2px; }
.form-err p { margin: 0 0 6px; font-weight: 600; }
.form-err ul { margin: 0; padding-left: 18px; }
.form-err a { color: #8A1C12; text-decoration: underline; }
.form-fail { display: grid; gap: 10px; justify-items: start; }
.form-fail p { margin: 0; }
.sending { margin: 0; color: var(--muted); }
.form-submit { margin: 0; }
.form-submit .btn { width: 100%; justify-content: center; }
.form-success { text-align: center; padding: clamp(24px, 5vw, 48px) 8px; }
.form-success:focus { outline: none; }
.ok-ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--teal-soft); color: var(--teal-ink); margin: 0 auto 16px; }
.ok-ic svg { width: 28px; height: 28px; }
.form-success h2 { font-size: 26px; margin-bottom: 8px; }
.form-success p { color: var(--text-2); margin: 0 auto 20px; max-width: 42ch; }

/* Footer */
.site-footer { background: #fff; border-top: 1px solid var(--line); padding: 56px 0 28px; font-size: 14px; color: var(--text-2); }
.foot-top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr); gap: 40px; }
.foot-brand .brand { font-size: 17px; }
.foot-blurb { margin: 16px 0 18px; max-width: 46ch; color: var(--text-2); }
.foot-cta { margin: 0; }
.foot-lang { display: inline-flex; border: 1px solid var(--hair-2); border-radius: 8px; padding: 2px; margin-top: 18px; }
.foot-lang button { border: 0; background: transparent; padding: 6px 12px; border-radius: 6px; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.foot-lang button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.foot-grid h2 { color: var(--navy); }
.foot-grid a { color: var(--text-2); }
.foot-disclosure { margin: 36px 0 0; font-size: 12.5px; color: var(--muted); max-width: 92ch; }
.foot-legal { margin-top: 18px; }
@media (max-width: 860px) { .foot-top { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Chat */
.chat-fab { border-radius: 10px; }
.chat-fab svg { color: var(--teal-ink); }
.msg.user { background: var(--teal); }

/* Owner review mode */
.pend-flag { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 0; padding: 8px 12px; background: #FFF3BF; border: 1px solid #E2BE3B; border-radius: 8px; color: #4D3900; font-size: 13px; line-height: 1.45; max-width: 760px; text-align: left; font-weight: 500; letter-spacing: 0; text-transform: none; }
.pend-flag svg { width: 15px; height: 15px; flex: none; margin-top: 2px; }
.center .pend-flag, .center-head .pend-flag { margin-inline: auto; }
.review-fab { position: fixed; left: calc(18px + env(safe-area-inset-left, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 65; display: inline-flex; gap: 8px; align-items: center; background: #FFE066; color: #3D2E00; border: 1px solid #C9A400; border-radius: 10px; padding: 10px 14px; font-weight: 600; font-size: 14px; cursor: pointer; box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .5); }
.review-fab svg { width: 16px; height: 16px; }
.review-inner { width: min(760px, 94vw); max-height: 84vh; overflow-y: auto; background: #fff; border-radius: 14px; padding: 22px 24px; margin-top: 6vh; color: var(--navy); }
.review-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.review-head h2 { font-size: 20px; }
.review-inner h3 { font-size: 12.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 20px 0 8px; }
.review-inner ol { margin: 0; padding-left: 20px; display: grid; gap: 10px; }
.review-inner li { font-size: 14.5px; }
.review-inner li a { display: block; font-size: 13px; margin-top: 2px; }

/* Motion: content is visible at rest; elements below the fold rise slightly into place */
.reveal { opacity: 1; transform: translateY(16px); transition: transform .8s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms); }
.reveal.in { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { transform: none; transition: none; }
  .btn, .mod-card, .film-play { transition: none; }
  .btn:hover, .mod-card:hover { transform: none; }
}

/* Search page: wrap on small screens */
.search-page { flex-wrap: wrap; }
.search-page input { min-width: 0; flex: 1 1 200px; }
.cl { display: inline-block; }
