/* =====================================================================
   Medverion - Medicine Without Limits (s3) - site.css v1
   One design system for the 10 concepts: deep-navy hero world + calm
   light sections. Plus Jakarta Sans (display), Inter (UI), Source Serif 4
   (editorial), Nothing You Could Do (handwritten notes).
   ===================================================================== */
:root {
  --ink: #050811;
  --navy: #0a1224;
  --navy-2: #0f1b35;
  --navy-3: #16274a;
  --blue: #3b6ef5;
  --blue-2: #6f9bff;
  --blue-3: #a9c3ff;
  --sky: #eaf1ff;
  --lav: #f1efff;
  --paper: #f7f8fc;
  --cream: #f5f0e8;
  --white: #ffffff;
  --text: #0d1426;
  --text-2: #3c465d;
  --muted: #6a7389;
  --line: #e2e7f1;
  --line-d: rgba(255, 255, 255, .1);
  --red: #e5484d;
  --green: #1fb46b;
  --amber: #f5a524;
  --violet: #7c6cf6;
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --shadow: 0 1px 2px rgba(13, 20, 38, .05), 0 8px 24px rgba(13, 20, 38, .07);
  --shadow-lg: 0 30px 80px rgba(13, 20, 38, .16);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font-d: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  --font: 'Inter', system-ui, sans-serif;
  --font-s: 'Source Serif 4', Georgia, serif;
  --font-h: 'Nothing You Could Do', cursive;
  --nav-h: 68px;
  --wrap: 1200px;
}
* { box-sizing: border-box; }
html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--text);
  background: var(--paper); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
/* icon default: any <svg><use> without its own size rule renders at 1.15em (zero specificity) */
svg:where(:has(> use)) { width: 1.15em; height: 1.15em; flex: none; }
.chat-log > *, .case-ui > *, .card > * { min-width: 0; }
.msg .bub { min-width: 0; overflow-wrap: anywhere; }
.tabs-line { overflow-x: auto; scrollbar-width: none; }
.quest-row > svg { width: 16px; height: 16px; color: var(--muted); }
.quest-row > span { min-width: 0; }
.empty > svg { width: 40px; height: 40px; color: var(--blue); }
.panel h4 svg { width: 18px; height: 18px; vertical-align: -3px; margin-right: 6px; color: var(--blue-2); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-d); margin: 0; letter-spacing: -.025em; line-height: 1.08; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 3px; border-radius: 6px; }
[tabindex="-1"]:focus, [tabindex="-1"]:focus-visible { outline: none; }
::selection { background: rgba(59, 110, 245, .22); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 300; background: #fff; color: #000; padding: 10px 14px; border-radius: 10px; font-weight: 600; }
.skip:focus { top: 12px; }

.wrap { width: min(var(--wrap), 100% - 48px); margin: 0 auto; }
.sec { position: relative; padding: clamp(72px, 9vw, 128px) 0; }
.dark { background: var(--ink); color: #e9eefb; }
.dark .muted { color: #9aa7c2; }
.muted { color: var(--muted); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font: 600 12px/1 var(--font); letter-spacing: .18em;
  text-transform: uppercase; color: var(--blue);
}
.dark .eyebrow { color: var(--blue-3); }
.eyebrow::before { content: ''; width: 18px; height: 1.5px; background: currentColor; opacity: .7; }
.h-xl { font-size: clamp(44px, 6.4vw, 92px); font-weight: 800; letter-spacing: -.04em; line-height: .98; }
.h-lg { font-size: clamp(34px, 4.6vw, 60px); font-weight: 800; letter-spacing: -.035em; }
.h-md { font-size: clamp(26px, 3vw, 38px); font-weight: 700; }
.h-sm { font-size: 20px; font-weight: 700; letter-spacing: -.015em; }
.lead { font-size: clamp(17px, 1.4vw, 20px); color: var(--text-2); line-height: 1.55; max-width: 60ch; }
.dark .lead { color: #b9c4dc; }
.serif { font-family: var(--font-s); }
.hand { font-family: var(--font-h); color: #c7d3ee; line-height: 1.25; }
.grad { background: linear-gradient(100deg, #8fb2ff, #3b6ef5 55%, #9a7bff); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 22px; border-radius: 999px; font: 600 15px/1 var(--font); white-space: nowrap;
  transition: background-color .25s, color .25s, box-shadow .3s, border-color .25s, transform .3s var(--ease); overflow: hidden;
}
.btn svg { width: 15px; height: 15px; flex: none; transition: transform .3s var(--ease); }
.btn:hover svg.arr { transform: translateX(3px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 24px rgba(59, 110, 245, .35); }
.btn-primary:hover { background: #2f5fe6; box-shadow: 0 12px 30px rgba(59, 110, 245, .45); }
.btn-light { background: #fff; color: var(--text); box-shadow: 0 6px 20px rgba(0, 0, 0, .2); }
.btn-ghost { border: 1.5px solid currentColor; color: inherit; }
.dark .btn-ghost { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn-ghost:hover { background: rgba(127, 140, 170, .12); }
.btn-dark { background: var(--text); color: #fff; }
.btn-dark:hover { background: #1c2742; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn-xs { height: 32px; padding: 0 13px; font-size: 13px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn .shine { position: absolute; top: 0; bottom: 0; left: -40%; width: 30%; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent); pointer-events: none; }
.btn:hover .shine { animation: shine .9s var(--ease); }
@keyframes shine { to { left: 130%; } }
.link { color: var(--blue); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.link svg { width: 13px; height: 13px; transition: transform .3s var(--ease); }
.link:hover svg { transform: translateX(3px); }
.dark .link { color: var(--blue-3); }

/* ---------- chips, cards, inputs ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); font: 500 13.5px/1 var(--font); color: var(--text-2);
  transition: all .25s var(--ease); cursor: pointer; white-space: nowrap;
}
.chip:hover { border-color: #b9c8ea; color: var(--text); }
.chip.on, .chip[aria-pressed="true"] { background: var(--text); color: #fff; border-color: var(--text); }
.dark .chip { background: rgba(255, 255, 255, .06); border-color: var(--line-d); color: #c9d3ea; }
.dark .chip.on, .dark .chip[aria-pressed="true"] { background: #fff; color: var(--text); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.dark .card, .card.d { background: rgba(255, 255, 255, .04); border-color: var(--line-d); box-shadow: none; color: #e9eefb; }
.glass { background: rgba(14, 22, 42, .62); border: 1px solid rgba(255, 255, 255, .1); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-radius: var(--r); }
.badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font: 600 12px/1 var(--font); background: var(--sky); color: var(--blue); }
.badge.g { background: #e6f8ef; color: #0f8a50; }
.badge.r { background: #fde9ea; color: #c7282e; }
.badge.a { background: #fff3dd; color: #a96800; }
.badge.v { background: #efecff; color: #5a49e6; }
.dark .badge { background: rgba(111, 155, 255, .16); color: var(--blue-3); }
.field { display: grid; gap: 7px; }
.field label { font: 600 13px/1.2 var(--font); color: var(--text-2); }
.input, .select, .textarea {
  width: 100%; height: 48px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff;
  transition: border-color .2s, box-shadow .2s; outline: none;
}
.textarea { height: auto; min-height: 120px; padding: 12px 14px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(59, 110, 245, .14); }
.field.err .input, .field.err .select, .field.err .textarea { border-color: var(--red); }
.field .msg { font-size: 12.5px; color: var(--red); min-height: 16px; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: #eef1f8; gap: 2px; }
.seg button { height: 36px; padding: 0 16px; border-radius: 999px; font: 600 13.5px/1 var(--font); color: var(--muted); transition: all .25s var(--ease); }
.seg button[aria-pressed="true"] { background: #fff; color: var(--text); box-shadow: 0 2px 8px rgba(13, 20, 38, .1); }
.dark .seg { background: rgba(255, 255, 255, .07); }
.dark .seg button[aria-pressed="true"] { background: #fff; color: var(--text); }
.kbd { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 6px; border: 1px solid var(--line); font: 600 11px/1 var(--font); color: var(--muted); background: #fff; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 80; height: var(--nav-h);
  transition: background-color .35s, border-color .35s, box-shadow .35s, transform .4s var(--ease);
  border-bottom: 1px solid transparent; color: #eaf0ff;
}
.nav.solid { background: rgba(7, 11, 22, .78); border-bottom-color: rgba(255, 255, 255, .08); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); }
.nav.light-page:not(.solid) { color: var(--text); }
.nav .wrap { display: flex; align-items: center; height: 100%; gap: 28px; width: min(1320px, 100% - 40px); }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 800 20px/1 var(--font-d); letter-spacing: -.02em; }
.brand svg { width: 30px; height: 30px; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav-links > a, .nav-more > button {
  position: relative; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border-radius: 10px;
  font: 500 14.5px/1 var(--font); opacity: .82; transition: opacity .2s, background-color .2s;
}
.nav-links > a:hover, .nav-more > button:hover, .nav-links > a.on, .nav-more.on > button { opacity: 1; background: rgba(127, 140, 170, .14); }
.nav-links > a.on::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--blue-2); }
.nav-more { position: relative; }
.nav-more > button svg { width: 10px; height: 10px; transition: transform .25s; }
.nav-more.open > button svg { transform: rotate(180deg); }
.menu {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translate(-50%, 8px); width: 520px; padding: 10px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: #fff; color: var(--text); border-radius: 18px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line); opacity: 0; pointer-events: none; transition: opacity .25s, transform .3s var(--ease);
}
.nav-more.open .menu { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.menu a { display: flex; gap: 12px; padding: 12px; border-radius: 12px; transition: background-color .2s; }
.menu a:hover { background: var(--paper); }
.menu a i { flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--sky); color: var(--blue); }
.menu a i svg { width: 18px; height: 18px; }
.menu a b { display: block; font: 600 14px/1.3 var(--font); }
.menu a span { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; transition: background-color .2s; }
.icon-btn:hover { background: rgba(127, 140, 170, .16); }
.icon-btn svg { width: 18px; height: 18px; }
.search-btn { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 8px 0 12px; border-radius: 12px; border: 1px solid rgba(127, 140, 170, .3); font-size: 14px; opacity: .85; }
.search-btn:hover { opacity: 1; background: rgba(127, 140, 170, .12); }
.search-btn svg { width: 16px; height: 16px; }
.search-btn .kbd { background: transparent; color: inherit; border-color: rgba(127, 140, 170, .4); }
.nav .login { font: 600 14.5px/1 var(--font); padding: 0 10px; height: 40px; display: inline-flex; align-items: center; opacity: .85; }
.nav .login:hover { opacity: 1; }
.user-pill { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px 0 4px; border-radius: 999px; background: rgba(127, 140, 170, .16); font: 600 14px/1 var(--font); }
.user-pill i { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--blue), var(--violet)); color: #fff; font: 700 13px/1 var(--font); font-style: normal; }
.burger { display: none; }
.progress-bar { position: fixed; left: 0; top: 0; height: 2px; z-index: 90; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--blue), var(--violet)); pointer-events: none; }

/* mobile menu */
.mnav { position: fixed; inset: 0; z-index: 120; background: rgba(5, 8, 17, .97); color: #fff; padding: 88px 24px 32px; overflow-y: auto;
  opacity: 0; pointer-events: none; transition: opacity .3s; }
.mnav.open { opacity: 1; pointer-events: auto; }
.mnav a { display: flex; align-items: center; justify-content: space-between; padding: 14px 4px; font: 600 22px/1.2 var(--font-d); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.mnav .mnav-actions { display: grid; gap: 12px; margin-top: 26px; }
.mnav-close { position: absolute; right: 18px; top: 14px; }

/* ---------- view transitions ---------- */
#app { min-height: 100vh; }
.view { animation: viewIn .55s var(--ease) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }

/* ---------- page header (inner pages) ---------- */
.phead { position: relative; padding: calc(var(--nav-h) + 56px) 0 56px; background: var(--ink); color: #eaf0ff; overflow: hidden; }
.phead::before { content: ''; position: absolute; inset: 0; background:
  radial-gradient(60% 80% at 85% 0%, rgba(59, 110, 245, .35), transparent 60%),
  radial-gradient(40% 60% at 0% 100%, rgba(124, 108, 246, .25), transparent 60%); pointer-events: none; }
.phead .wrap { position: relative; }
.phead h1 { font-size: clamp(36px, 5vw, 64px); font-weight: 800; letter-spacing: -.035em; margin: 14px 0 14px; }
.phead p { color: #b9c4dc; font-size: 18px; max-width: 62ch; }
.crumbs { display: flex; gap: 8px; font-size: 13.5px; color: #8f9dbb; }
.crumbs a:hover { color: #fff; }
.phead-bg { position: absolute; right: -4%; top: 0; height: 100%; width: 48%; object-fit: cover; opacity: .45;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%); mask-image: linear-gradient(90deg, transparent, #000 45%); }

/* ===================================================================== HOME */
/* 1 hero */
.hero { position: relative; min-height: max(760px, 100vh); background: var(--ink); color: #f2f5ff; overflow: hidden; display: flex; align-items: center; }
.hero-bg { position: absolute; inset: 0; background:
  radial-gradient(50% 60% at 62% 45%, rgba(59, 110, 245, .22), transparent 70%),
  radial-gradient(30% 40% at 70% 55%, rgba(229, 72, 77, .16), transparent 70%); }
.hero-stars { position: absolute; inset: 0; pointer-events: none; }
.hero-heart { position: absolute; right: 2%; top: 50%; width: min(66vw, 1080px); aspect-ratio: 3 / 2; transform: translateY(-48%); perspective: 1200px; pointer-events: none; }
.hero-heart .tilt { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; }
.hero-heart img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  -webkit-mask-image: radial-gradient(65% 72% at 52% 50%, #000 50%, transparent 100%); mask-image: radial-gradient(65% 72% at 52% 50%, #000 50%, transparent 100%);
  animation: beat 1.05s cubic-bezier(.3, .6, .3, 1) infinite; transform-origin: 54% 52%; }
.hero-heart .pulse { position: absolute; left: 50%; top: 52%; width: 34%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(229, 72, 77, .45), rgba(229, 72, 77, 0) 65%); mix-blend-mode: screen; animation: glow 1.05s ease-out infinite; }
@keyframes beat { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.035); } 24% { transform: scale(.995); } 36% { transform: scale(1.022); } 50% { transform: scale(1); } }
@keyframes glow { 0% { opacity: .2; transform: translate(-50%, -50%) scale(.85); } 14% { opacity: .9; } 60% { opacity: 0; transform: translate(-50%, -50%) scale(1.5); } 100% { opacity: 0; } }
.hero .wrap { position: relative; z-index: 2; width: min(1320px, 100% - 48px); padding-top: var(--nav-h); }
.hero h1 { font-size: clamp(54px, 7.6vw, 118px); font-weight: 800; letter-spacing: -.045em; line-height: .93; }
.hero h1 .ln { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .ln > span { display: inline-block; }
.hero h1 .dot { color: var(--blue-2); }
.hero-sub { margin-top: 28px; font-size: clamp(17px, 1.4vw, 20px); color: #c3cde4; max-width: 40ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-cta .btn-light { color: var(--text); }
.play-ic { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--ink); margin-left: -8px; }
.play-ic svg { width: 10px; height: 10px; }
.hero-stats { display: flex; gap: clamp(28px, 4vw, 64px); margin-top: 64px; }
.hero-stats b { display: block; font: 800 clamp(26px, 2.4vw, 34px)/1 var(--font-d); letter-spacing: -.02em; }
.hero-stats span { display: block; margin-top: 8px; font-size: 13.5px; color: #8f9dbb; }
.hero-note { position: absolute; right: 6%; top: 22%; z-index: 2; font-size: clamp(20px, 1.8vw, 28px); transform: rotate(-6deg); color: #d6def2; }
.hero-explore { position: absolute; right: 4%; bottom: 13%; z-index: 2; }
.hero-explore p { font: 600 11px/1 var(--font); letter-spacing: .2em; color: #8f9dbb; margin-bottom: 14px; }
.hero-explore a { display: flex; align-items: center; gap: 10px; padding: 5px 0; color: #c9d3ea; font-size: 15px; transition: color .2s, transform .3s var(--ease); }
.hero-explore a::before { content: ''; width: 0; height: 1.5px; background: var(--blue-2); transition: width .3s var(--ease); }
.hero-explore a:hover { color: #fff; transform: translateX(4px); }
.hero-explore a:hover::before, .hero-explore a.on::before { width: 14px; }
.hero-explore a.on { color: #fff; }
.hero-count { position: absolute; left: 50%; bottom: 10%; z-index: 2; font: 600 13px/1 var(--font); color: #8f9dbb; letter-spacing: .1em; }
.hero-count b { color: #fff; font-size: 22px; }
.scroll-cue { position: absolute; left: max(24px, calc((100% - 1320px) / 2)); bottom: 34px; z-index: 2; font: 600 11px/1 var(--font); letter-spacing: .22em; color: #8f9dbb; display: flex; gap: 10px; align-items: center; }
.scroll-cue i { width: 1.5px; height: 34px; background: linear-gradient(#8f9dbb, transparent); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ''; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: #fff; animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { to { top: 110%; } }

/* 2 better doctors */
.better { background: var(--cream); color: #1b1712; }
.better .grid { display: grid; grid-template-columns: 1fr 1.1fr .32fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.better h2 { font-family: var(--font-s); font-weight: 500; font-size: clamp(42px, 5.4vw, 76px); letter-spacing: -.03em; line-height: 1.02; }
.better .lead { color: #5c5448; margin-top: 22px; font-family: var(--font); }
.arch { position: relative; aspect-ratio: 1 / 1.08; border-radius: 300px 300px 22px 22px; overflow: hidden; background: #e8dfd1; box-shadow: 0 40px 80px rgba(70, 50, 20, .14); }
.arch img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); will-change: transform; }
.arch .sun { position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255, 236, 200, .45) 48%, transparent 62%); background-size: 250% 100%; mix-blend-mode: soft-light; animation: sun 7s ease-in-out infinite; }
@keyframes sun { 0% { background-position: 120% 0; } 60%, 100% { background-position: -40% 0; } }
.arch-note { position: absolute; right: -6%; top: 9%; font-size: 21px; color: #7a6e5c; transform: rotate(-4deg); text-shadow: 0 1px 0 rgba(255, 255, 255, .6); }
.steps-v { display: grid; gap: 4px; }
.steps-v button { text-align: left; padding: 8px 0 8px 14px; font: 500 16px/1.2 var(--font); color: #8c8273; border-left: 1.5px solid #ddd2c2; transition: all .3s var(--ease); }
.steps-v button.on { color: #1b1712; border-left-color: #1b1712; padding-left: 20px; }
.steps-v small { display: block; margin-top: 14px; font-size: 13px; color: #8c8273; line-height: 1.5; }
.avatars { display: flex; align-items: center; }
.avatars img { width: 34px; height: 34px; border-radius: 50%; border: 2px solid #fff; margin-left: -9px; object-fit: cover; }
.avatars img:first-child { margin-left: 0; }
.join { display: flex; align-items: center; gap: 14px; margin-top: 34px; font-size: 14px; color: #6d6455; }

/* 3 anatomy */
.anat { background: radial-gradient(70% 90% at 70% 40%, #12234a 0%, #070c1a 70%); color: #e9eefb; overflow: hidden; }
.anat .lead { color: #b9c4dc; }
.anat .grid { display: grid; grid-template-columns: .9fr 1.5fr; gap: 40px; align-items: center; }
.viewer { position: relative; aspect-ratio: 3 / 2; border-radius: var(--r-lg); overflow: hidden; background: #050913; border: 1px solid var(--line-d); user-select: none; }
.viewer.full { aspect-ratio: auto; height: calc(100vh - var(--nav-h) - 48px); min-height: 520px; }
.v-stage { position: absolute; inset: 0; perspective: 1400px; cursor: grab; }
.v-stage:active { cursor: grabbing; }
.v-model { position: absolute; left: 0; top: 0; width: 100%; aspect-ratio: 3 / 2; transform-style: preserve-3d; transition: transform .2s ease-out; transform-origin: 50% 50%; }
.v-model img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .6s var(--ease), filter .6s var(--ease); }
.v-model .ly { opacity: 0; mix-blend-mode: screen; }
.v-model .ly.on { opacity: 1; }
.ly-skin { filter: sepia(.9) saturate(.8) hue-rotate(-12deg) brightness(1.05) contrast(.9); mix-blend-mode: normal !important; }
.ly-vessels { filter: hue-rotate(-10deg) saturate(2.4) brightness(.9); }
.ly-nerves { filter: hue-rotate(40deg) saturate(2.6) brightness(1.1); }
.ly-organs { filter: hue-rotate(250deg) saturate(1.5) brightness(.95); }
.ly-bones { filter: grayscale(1) brightness(1.5) contrast(1.4); }
.v-model.focus img.base { filter: brightness(.45) saturate(.6); }
.v-scan { position: absolute; left: 0; right: 0; height: 22%; top: -25%; background: linear-gradient(180deg, transparent, rgba(111, 155, 255, .22), rgba(170, 200, 255, .55) 96%, transparent); mix-blend-mode: screen; pointer-events: none; }
.hot { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; z-index: 3; display: grid; place-items: center;
  transition: transform .3s var(--ease), opacity .3s; }
.hot i { width: 10px; height: 10px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(111, 155, 255, .45); }
.hot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(169, 195, 255, .8); animation: ping 2.2s ease-out infinite; }
@keyframes ping { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(2.2); opacity: 0; } }
.hot:hover, .hot.on { transform: scale(1.25); }
.hot.on i { background: var(--amber); box-shadow: 0 0 0 4px rgba(245, 165, 36, .45); }
.hot .tip { position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); white-space: nowrap; background: #fff; color: var(--text);
  font: 600 12px/1 var(--font); padding: 7px 10px; border-radius: 8px; opacity: 0; pointer-events: none; transition: opacity .2s; box-shadow: var(--shadow); }
.hot:hover .tip, .hot.on .tip { opacity: 1; }
.hot.hide { opacity: 0; pointer-events: none; transform: scale(.4); }
.v-layers { position: absolute; right: 16px; top: 16px; z-index: 4; width: 178px; padding: 12px; }
.v-layers h4 { font: 600 12px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: #8f9dbb; margin: 2px 4px 10px; display: flex; justify-content: space-between; }
.v-layers button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 8px; border-radius: 9px; font-size: 14px; color: #c9d3ea; transition: background-color .2s; }
.v-layers button:hover { background: rgba(255, 255, 255, .06); }
.v-layers button i { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid #6f7d9c; transition: all .2s; }
.v-layers button[aria-pressed="true"] { color: #fff; background: rgba(59, 110, 245, .22); }
.v-layers button[aria-pressed="true"] i { border-color: var(--blue-2); background: var(--blue-2); box-shadow: inset 0 0 0 3px #10203f; }
.v-tools { position: absolute; left: 16px; top: 16px; z-index: 4; display: grid; gap: 6px; padding: 6px; }
.v-tools button { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; color: #c9d3ea; transition: all .2s; position: relative; }
.v-tools button svg { width: 18px; height: 18px; }
.v-tools button:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.v-tools button[aria-pressed="true"] { background: var(--blue); color: #fff; }
.v-tools button span { position: absolute; left: calc(100% + 10px); top: 50%; transform: translateY(-50%); white-space: nowrap; font-size: 12px; background: #fff; color: var(--text); padding: 5px 8px; border-radius: 7px; opacity: 0; pointer-events: none; transition: opacity .2s; }
.v-tools button:hover span { opacity: 1; }
.v-info { position: absolute; left: 16px; bottom: 16px; z-index: 4; width: min(320px, 46%); padding: 16px 18px; }
.viewer.full .v-info { left: 76px; }
.v-info h5 { font: 700 15px/1.3 var(--font-d); margin-bottom: 6px; display: flex; justify-content: space-between; gap: 10px; }
.v-info p { font-size: 13.5px; color: #c9d3ea; line-height: 1.5; }
.v-info .clin { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line-d); color: #fff; }
.v-info .clin b { color: var(--amber); font-weight: 600; }
.v-hint { position: absolute; right: 16px; bottom: 14px; z-index: 4; display: flex; gap: 14px; font-size: 12px; color: #8f9dbb; }
.v-quiz { position: absolute; left: 50%; top: 16px; transform: translateX(-50%); z-index: 5; padding: 10px 16px; font-size: 14px; display: none; align-items: center; gap: 12px; white-space: nowrap; }
.v-quiz.on { display: flex; }
.v-quiz b { color: var(--amber); }
.feature-list { display: grid; gap: 12px; margin-top: 30px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; color: #c9d3ea; font-size: 15.5px; }
.feature-list li svg { width: 20px; height: 20px; flex: none; color: var(--blue-2); margin-top: 2px; }

/* 4 copilot */
.copilot-sec { background: linear-gradient(180deg, #f6f4ff, #eef3ff); overflow: hidden; }
.copilot-sec .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.robot { position: relative; width: min(340px, 70%); margin-top: 28px; }
.robot img { width: 100%; border-radius: 30px; animation: float 5s ease-in-out infinite; mix-blend-mode: multiply; }
.robot { perspective: 700px; }
.robot .head { transform-style: preserve-3d; will-change: transform; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.chatbox { padding: 18px; border-radius: var(--r-lg); background: rgba(255, 255, 255, .85); border: 1px solid #e3e1fb; box-shadow: var(--shadow-lg); backdrop-filter: blur(12px); }
.chat-log { display: grid; gap: 14px; max-height: 420px; overflow-y: auto; padding: 4px 4px 4px 0; scroll-behavior: smooth; }
.chat-log.tall { max-height: none; min-height: 420px; }
.msg { display: flex; gap: 10px; align-items: flex-start; }
.msg .av { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font: 700 12px/1 var(--font); color: #fff; background: linear-gradient(135deg, var(--blue), var(--violet)); overflow: hidden; }
.msg .av img { width: 100%; height: 100%; object-fit: cover; }
.msg .bub { padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); font-size: 14.5px; line-height: 1.55; max-width: 92%; }
.msg.me { flex-direction: row-reverse; }
.msg.me .bub { background: var(--blue); color: #fff; border-color: var(--blue); }
.msg.me .av { background: #dfe6f7; color: var(--text); }
.msg .bub p + p { margin-top: 6px; }
.msg .bub .links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.typing { display: inline-flex; gap: 4px; padding: 4px 2px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: #9aa6c2; animation: dots 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dots { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.prompts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chat-input { display: flex; gap: 10px; margin-top: 14px; }
.chat-input .input { border-radius: 999px; }
.chat-input .send { width: 48px; height: 48px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; flex: none; }
.chat-input .send svg { width: 18px; height: 18px; }
.disclaimer { font-size: 12.5px; color: var(--muted); margin-top: 10px; }

/* 5 quests */
.quests-sec { position: relative; color: #eef2ff; overflow: hidden; background: #0b1530; }
.quests-sec .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.quests-sec::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(6, 10, 24, .92) 0%, rgba(6, 10, 24, .55) 45%, rgba(6, 10, 24, .2) 100%); }
.quests-sec .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: center; min-height: 560px; }
.qpath { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.qnode { position: absolute; z-index: 3; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; display: grid; place-items: center;
  font: 800 22px/1 var(--font-d); color: #fff; background: rgba(10, 18, 40, .7); border: 2px solid rgba(255, 255, 255, .5); backdrop-filter: blur(6px); transition: background-color .4s, border-color .4s, box-shadow .4s, scale .3s var(--ease); cursor: pointer; }
.qnode:hover { scale: 1.1; }
.qnode span { position: absolute; top: 100%; margin-top: 6px; font: 700 13px/1 var(--font); white-space: nowrap; text-shadow: 0 2px 6px rgba(0, 0, 0, .6); }
.qnode.done { background: var(--blue); border-color: #fff; box-shadow: 0 0 0 8px rgba(59, 110, 245, .25), 0 0 40px rgba(111, 155, 255, .7); }
.qnode.cur { animation: nodePulse 1.8s ease-in-out infinite; }
@keyframes nodePulse { 50% { box-shadow: 0 0 0 14px rgba(111, 155, 255, .18), 0 0 50px rgba(111, 155, 255, .8); } }
.progress-card { padding: 22px; }
.progress-card h4 { font: 700 17px/1.2 var(--font-d); }
.ring { position: relative; width: 120px; height: 120px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .bgc { fill: none; stroke: rgba(127, 140, 170, .2); stroke-width: 9; }
.ring .fgc { fill: none; stroke: url(#ringGrad); stroke-width: 9; stroke-linecap: round; transition: stroke-dashoffset 1.2s var(--ease); }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font: 800 26px/1 var(--font-d); }
.ring.sm { width: 64px; height: 64px; }
.ring.sm b { font-size: 15px; }
.ring.sm .bgc, .ring.sm .fgc { stroke-width: 10; }
.checks { display: grid; gap: 10px; margin-top: 16px; }
.checks li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.checks li em { margin-left: auto; font-style: normal; color: #8f9dbb; font-size: 13px; }
.checks li i { width: 18px; height: 18px; border-radius: 6px; display: grid; place-items: center; background: rgba(31, 180, 107, .2); color: var(--green); }
.checks li i svg { width: 12px; height: 12px; }
.xpbar { height: 8px; border-radius: 8px; background: rgba(127, 140, 170, .22); overflow: hidden; }
.xpbar i { display: block; height: 100%; width: 0; border-radius: 8px; background: linear-gradient(90deg, var(--blue), var(--violet)); transition: width 1s var(--ease); }

/* 6 case */
.case-sec { background: linear-gradient(180deg, #f2f6ff, #fff); }
.case-sec .grid { display: grid; grid-template-columns: .85fr 1.4fr; gap: 48px; align-items: center; }
.case-ui { position: relative; border-radius: var(--r-lg); overflow: hidden; background: #0a1224; color: #e9eefb; box-shadow: var(--shadow-lg); display: grid; grid-template-columns: 1.15fr 1fr; }
.case-ui .pt { position: relative; min-height: 380px; }
.case-ui .pt img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.case-ui .pt .vignette { position: absolute; inset: 0; background: linear-gradient(90deg, transparent 60%, #0a1224), linear-gradient(0deg, rgba(10, 18, 36, .7), transparent 40%); }
.case-ui .stem { position: absolute; left: 16px; top: 16px; right: 16px; padding: 12px 14px; font-size: 13.5px; line-height: 1.5; }
.vitals { position: absolute; right: 12px; bottom: 12px; width: 150px; padding: 10px 12px; font-size: 12px; }
.vitals div { display: flex; justify-content: space-between; padding: 3px 0; }
.vitals b { font: 700 13px/1.2 var(--font-d); }
.vitals .bad { color: #ff6b70; }
.vitals .warn { color: #ffc15c; }
.ecg { display: block; width: 100%; height: 36px; margin-top: 4px; }
.case-q { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.case-q h4 { font: 700 15px/1.3 var(--font-d); display: flex; justify-content: space-between; align-items: center; }
.timer { display: inline-flex; align-items: center; gap: 6px; font: 600 13px/1 var(--font); color: #c9d3ea; font-variant-numeric: tabular-nums; }
.timer.low { color: #ff6b70; }
.timer svg { width: 14px; height: 14px; }
.opt { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 11px; border: 1px solid rgba(255, 255, 255, .12); font-size: 14px; text-align: left; transition: all .2s; width: 100%; }
.opt:hover { border-color: rgba(169, 195, 255, .5); background: rgba(255, 255, 255, .04); }
.opt i { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #6f7d9c; position: relative; }
.opt.sel { border-color: var(--blue-2); background: rgba(59, 110, 245, .18); }
.opt.sel i { border-color: var(--blue-2); }
.opt.sel i::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--blue-2); }
.opt.good { border-color: var(--green); background: rgba(31, 180, 107, .16); }
.opt.bad { border-color: var(--red); background: rgba(229, 72, 77, .14); }
.fb { font-size: 13.5px; line-height: 1.5; padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, .06); display: none; }
.fb.on { display: block; animation: viewIn .4s var(--ease); }
.tabs-line { display: flex; gap: 22px; border-bottom: 1px solid var(--line); margin-top: 18px; }
.tabs-line button { padding: 10px 0; font: 600 14px/1 var(--font); color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; transition: all .2s; }
.tabs-line button[aria-selected="true"] { color: var(--blue); border-bottom-color: var(--blue); }
.dark .tabs-line, .case-ui .tabs-line { border-color: rgba(255, 255, 255, .1); }
.case-ui .tabs-line button { color: #8f9dbb; }
.case-ui .tabs-line button[aria-selected="true"] { color: #fff; border-color: var(--blue-2); }
.think { font-size: 26px; color: #7e8db0; transform: rotate(-5deg); margin-top: 28px; }

/* 7 plan */
.plan-sec { background: #fff; }
.plan-sec .grid { display: grid; grid-template-columns: .8fr 1.6fr; gap: 48px; align-items: center; }
.plan-card { padding: 22px; }
.plan-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.weeks { display: flex; gap: 4px; margin: 14px 0 8px; }
.weeks button { padding: 8px 12px; border-radius: 9px; font: 600 13px/1 var(--font); color: var(--muted); }
.weeks button[aria-selected="true"] { background: var(--sky); color: var(--blue); }
.ptable { width: 100%; border-collapse: collapse; font-size: 14px; }
.ptable td { padding: 9px 8px; border-top: 1px solid var(--line); vertical-align: middle; }
.ptable td:first-child { color: var(--muted); width: 56px; font-weight: 600; }
.ptable td:last-child { text-align: right; color: var(--muted); width: 56px; font-variant-numeric: tabular-nums; }
.tag { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 7px; font: 600 12px/1 var(--font); }
.t-phys { background: #e9f1ff; color: #2f5fe6; } .t-path { background: #fde9ea; color: #c7282e; } .t-qb { background: #fff3dd; color: #a96800; }
.t-pharm { background: #efecff; color: #5a49e6; } .t-rev { background: #e6f8ef; color: #0f8a50; } .t-sim { background: #e5f6fb; color: #0b7f99; } .t-rest { background: #f1f3f8; color: #6a7389; }
.plan-side { display: grid; justify-items: center; gap: 16px; }
.legend { display: grid; gap: 8px; font-size: 13.5px; }
.legend span { display: flex; align-items: center; gap: 8px; }
.legend i { width: 10px; height: 10px; border-radius: 50%; }
.tiny-features { display: grid; grid-template-columns: repeat(4, minmax(0, 76px)); gap: 14px; margin-top: 28px; }
.tiny-features div { display: grid; justify-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); text-align: center; line-height: 1.3; }
.tiny-features i { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid #cfe9dd; color: var(--green); }
.tiny-features i svg { width: 20px; height: 20px; }

/* 8 community */
.comm-sec { background: #fff; overflow: hidden; }
.mapwrap { position: relative; aspect-ratio: 2 / 1; }
.mapwrap img.map { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.pin { position: absolute; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; padding: 3px; background: #fff; box-shadow: 0 6px 20px rgba(13, 20, 38, .18); z-index: 2; transition: scale .3s var(--ease); cursor: pointer; }
.pin img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.pin::before { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(59, 110, 245, .45); animation: ping 2.6s ease-out infinite; animation-delay: var(--d, 0s); }
.pin:hover { scale: 1.15; z-index: 4; }
.pin .tip { position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); white-space: nowrap; background: var(--text); color: #fff; font: 600 12px/1.3 var(--font); padding: 7px 10px; border-radius: 9px; opacity: 0; pointer-events: none; transition: opacity .2s; }
.pin:hover .tip { opacity: 1; }
.comm-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 28px; }
.comm-stats div { padding: 18px; }
.comm-stats b { display: block; font: 800 28px/1 var(--font-d); }
.comm-stats span { font-size: 13.5px; color: var(--muted); }
.live-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--green); margin-right: 6px; animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .3; } }

/* 9 mobile */
.mobile-sec { position: relative; overflow: hidden; background: #eef3fb; }
.mobile-sec .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.mobile-sec::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(244, 247, 252, .97) 0%, rgba(244, 247, 252, .82) 42%, rgba(244, 247, 252, .1) 100%); }
.mobile-sec .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: center; }
.stores { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.store { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 18px; border-radius: 13px; background: #0b0f19; color: #fff; transition: transform .3s var(--ease); }
.store:hover { transform: translateY(-2px); }
.store svg { width: 22px; height: 22px; }
.store small { display: block; font-size: 10.5px; opacity: .75; line-height: 1.1; }
.store b { display: block; font: 600 16px/1.1 var(--font); }
.phones { position: relative; height: 560px; }
.phone { position: absolute; width: 270px; height: 550px; border-radius: 44px; padding: 12px; background: #0d1018; box-shadow: 0 40px 80px rgba(13, 20, 38, .35), inset 0 0 0 2px #2a2f3c; }
.phone .scr { position: relative; width: 100%; height: 100%; border-radius: 34px; overflow: hidden; background: #f6f8fc; }
.phone .notch { position: absolute; left: 50%; top: 10px; width: 92px; height: 26px; border-radius: 20px; background: #0d1018; transform: translateX(-50%); z-index: 5; }
.phone.a { left: 6%; top: 10px; transform: rotate(-6deg); }
.phone.b { left: 46%; top: 0; transform: rotate(5deg); }
.phone.a .scr { background: #0b1222; color: #e9eefb; }
.app-top { padding: 46px 18px 12px; }
.app-top b { font: 800 22px/1.1 var(--font-d); }
.app-row { margin: 8px 12px; padding: 12px; border-radius: 14px; display: flex; align-items: center; gap: 10px; font-size: 13px; transition: all .3s; cursor: pointer; }
.phone.a .app-row { background: rgba(255, 255, 255, .06); }
.app-row i { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.app-row i svg { width: 15px; height: 15px; }
.app-row small { display: block; color: #8f9dbb; font-size: 11.5px; }
.app-row .ck { margin-left: auto; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #4a5878; display: grid; place-items: center; }
.app-row.done .ck { background: var(--green); border-color: var(--green); }
.app-row.done .ck::after { content: ''; width: 8px; height: 4px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
.app-row.done span { text-decoration: line-through; opacity: .55; }
.q-phone { padding: 46px 14px 14px; font-size: 12.5px; }
.q-phone .qh { display: flex; justify-content: space-between; color: var(--muted); font-size: 11.5px; margin-bottom: 8px; }
.q-phone p { line-height: 1.45; margin-bottom: 10px; color: var(--text); }
.q-phone .po { display: flex; gap: 8px; align-items: center; padding: 9px 10px; border-radius: 10px; border: 1px solid var(--line); background: #fff; margin-bottom: 6px; text-align: left; width: 100%; font-size: 12px; transition: all .2s; }
.q-phone .po.good { border-color: var(--green); background: #e9f9f1; }
.q-phone .po.bad { border-color: var(--red); background: #fdeeee; }
.q-phone .po i { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid #b5bfd4; flex: none; }
.q-phone .po.good i { background: var(--green); border-color: var(--green); }
.q-phone .submit { width: 100%; height: 38px; border-radius: 10px; background: var(--blue); color: #fff; font-weight: 600; margin-top: 6px; }
.q-phone .exp { font-size: 11.5px; color: var(--text-2); background: #eef3ff; border-radius: 10px; padding: 8px 10px; margin-top: 8px; display: none; }
.q-phone .exp.on { display: block; }

/* 10 future */
.future { position: relative; min-height: 640px; overflow: hidden; color: #fff; display: flex; align-items: center; background: #060a14; }
.future .bg { position: absolute; top: -6%; left: 22%; width: 78%; height: 112%; object-fit: cover; will-change: transform;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 22%); mask-image: linear-gradient(90deg, transparent, #000 22%); }
@media (max-width: 960px) { .future .bg { left: 0; width: 100%; -webkit-mask-image: none; mask-image: none; } }
.future::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(4, 8, 18, .88) 0%, rgba(4, 8, 18, .4) 50%, rgba(4, 8, 18, .1) 100%); }
.future .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; }
.future h2 { font-size: clamp(42px, 5.4vw, 80px); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.future-stats { display: grid; gap: 22px; text-align: right; }
.future-stats b { display: block; font: 800 30px/1 var(--font-d); }
.future-stats span { font-size: 13px; color: #b9c4dc; }
.future .hand { position: absolute; right: 6%; bottom: 9%; z-index: 2; font-size: 24px; transform: rotate(-5deg); }

/* ---------- footer ---------- */
.foot { background: #050811; color: #b9c4dc; padding: 72px 0 28px; }
.foot .top { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.foot h5 { font: 600 13px/1 var(--font); color: #fff; letter-spacing: .04em; margin-bottom: 16px; }
.foot ul { display: grid; gap: 10px; font-size: 14.5px; }
.foot ul a { transition: color .2s; }
.foot ul a:hover { color: #fff; }
.foot .brand { color: #fff; }
.foot .tagline { margin-top: 14px; font-size: 14.5px; max-width: 30ch; }
.foot .news { display: flex; gap: 8px; margin-top: 18px; }
.foot .news .input { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); color: #fff; height: 44px; }
.foot .bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13px; color: #7d8aa8; }

/* ===================================================================== INNER PAGES */
.layout-2 { display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: start; }
.layout-2.r320 { grid-template-columns: 1fr 320px; } .layout-2.l330 { grid-template-columns: 330px 1fr; } .layout-2.r300 { grid-template-columns: 1fr 300px; }
.grid > *, .layout-2 > *, .grid-2 > *, .grid-3 > *, .grid-4 > *, .dash > *, .sim > *, .cop > *, .qb-run > *, .qb-setup > * { min-width: 0; }
.prompts .chip, .msg .links .chip { white-space: normal; height: auto; min-height: 34px; padding: 8px 14px; line-height: 1.3; text-align: left; }
.sticky { position: sticky; top: calc(var(--nav-h) + 20px); }
.panel { padding: 22px; }
.panel h4 { font: 700 15px/1.2 var(--font-d); margin-bottom: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }

/* exam cards */
.exam-card { position: relative; padding: 26px; overflow: hidden; transition: translate .4s var(--ease), box-shadow .4s var(--ease); display: flex; flex-direction: column; gap: 12px; min-height: 260px; }
.exam-card:hover { translate: 0 -6px; box-shadow: var(--shadow-lg); }
.exam-card .ic { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; color: #fff; }
.exam-card .ic svg { width: 24px; height: 24px; }
.exam-card h3 { font-size: 21px; }
.exam-card p { font-size: 14.5px; color: var(--text-2); }
.exam-card .foot-row { margin-top: auto; display: flex; justify-content: space-between; align-items: center; }
.exam-card::after { content: ''; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: var(--c); opacity: .08; transition: transform .6s var(--ease); }
.exam-card:hover::after { transform: scale(1.6); }
.blue-bars { display: grid; gap: 10px; }
.blue-bars div { display: grid; grid-template-columns: 190px 1fr 44px; gap: 12px; align-items: center; font-size: 14px; }
.blue-bars i { height: 10px; border-radius: 10px; background: #eef1f8; overflow: hidden; }
.blue-bars i em { display: block; height: 100%; width: 0; border-radius: 10px; background: linear-gradient(90deg, var(--blue), var(--violet)); transition: width 1.2s var(--ease); }
.facts { display: grid; gap: 14px; }
.facts div { display: flex; gap: 14px; }
.facts div svg { width: 22px; height: 22px; color: var(--blue); flex: none; margin-top: 2px; }
.facts b { display: block; font: 600 15px/1.3 var(--font); }
.facts span { font-size: 14.5px; color: var(--text-2); }

/* library */
.lib-tools { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 22px; }
.search-in { position: relative; flex: 1; min-width: 260px; }
.search-in svg { position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--muted); }
.search-in .input { padding-left: 44px; border-radius: 999px; }
.lib-card { overflow: hidden; display: flex; flex-direction: column; transition: translate .4s var(--ease), box-shadow .4s var(--ease); }
.lib-card:hover { translate: 0 -5px; box-shadow: var(--shadow-lg); }
.lib-card .thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #0a1224; }
.lib-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.lib-card:hover .thumb img { transform: scale(1.06); }
.lib-card .thumb .badge { position: absolute; left: 12px; top: 12px; background: rgba(255, 255, 255, .92); color: var(--text); }
.lib-card .thumb .time { position: absolute; right: 12px; bottom: 12px; font: 600 12px/1 var(--font); color: #fff; background: rgba(5, 8, 17, .7); padding: 6px 8px; border-radius: 7px; }
.lib-card .body { padding: 16px 18px 18px; display: grid; gap: 6px; }
.lib-card h3 { font-size: 17px; line-height: 1.3; letter-spacing: -.01em; }
.lib-card .meta { font-size: 13px; color: var(--muted); }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.ecg-thumb { width: 100%; height: 100%; background: #07101f; }
.detail-hero { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 21 / 9; background: #0a1224; }
.detail-hero img { width: 100%; height: 100%; object-fit: cover; }
.detail-hero .play { position: absolute; left: 50%; top: 50%; width: 78px; height: 78px; margin: -39px 0 0 -39px; border-radius: 50%; background: rgba(255, 255, 255, .95); display: grid; place-items: center; color: var(--text); box-shadow: 0 10px 40px rgba(0, 0, 0, .4); transition: transform .3s var(--ease); }
.detail-hero .play:hover { transform: scale(1.08); }
.detail-hero .play svg { width: 24px; height: 24px; margin-left: 4px; }
.detail-hero .bar { position: absolute; left: 0; bottom: 0; height: 4px; background: var(--blue); width: 0; }
.kp { display: grid; gap: 12px; margin-top: 18px; counter-reset: kp; }
.kp li { position: relative; padding: 14px 16px 14px 54px; border-radius: 14px; background: #fff; border: 1px solid var(--line); font-size: 15.5px; counter-increment: kp; }
.kp li::before { content: counter(kp); position: absolute; left: 16px; top: 13px; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font: 700 13px/1 var(--font); background: var(--sky); color: var(--blue); }
.flashcard { perspective: 1000px; height: 220px; cursor: pointer; display: block; width: 100%; }
.flashcard .in { display: block; position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .7s var(--ease); }
.flashcard.flip .in { transform: rotateY(180deg); }
.flashcard .f, .flashcard .b { position: absolute; inset: 0; backface-visibility: hidden; border-radius: var(--r-lg); display: grid; place-items: center; padding: 28px; text-align: center; font: 600 19px/1.4 var(--font-d); }
.flashcard .f { background: linear-gradient(135deg, #0f1b35, #1d3570); color: #fff; }
.flashcard .b { background: #fff; border: 1px solid var(--line); transform: rotateY(180deg); color: var(--text); font-size: 17px; }

/* qbank */
.qb-setup { display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; }
.qb-run { display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: start; }
.qcard { padding: 28px; }
.qtop { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.qprog { height: 6px; border-radius: 6px; background: #eef1f8; overflow: hidden; margin-bottom: 20px; }
.qprog i { display: block; height: 100%; background: var(--blue); transition: width .5s var(--ease); }
.qstem { font-size: 17px; line-height: 1.65; }
.qask { font-weight: 600; margin-top: 14px; font-size: 17px; }
.qopts { display: grid; gap: 10px; margin-top: 18px; }
.qopt { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; text-align: left; font-size: 15.5px; transition: all .2s; width: 100%; }
.qopt:hover { border-color: #b9c8ea; }
.qopt .l { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font: 700 13px/1 var(--font); background: #f1f4fa; color: var(--muted); }
.qopt.sel { border-color: var(--blue); background: #f3f7ff; }
.qopt.sel .l { background: var(--blue); color: #fff; }
.qopt.good { border-color: var(--green); background: #effbf5; }
.qopt.good .l { background: var(--green); color: #fff; }
.qopt.bad { border-color: var(--red); background: #fdf1f1; }
.qopt.bad .l { background: var(--red); color: #fff; }
.qopt .pct { margin-left: auto; font-size: 12.5px; color: var(--muted); }
.qexp { margin-top: 20px; padding: 20px; border-radius: 16px; background: #f5f8ff; border: 1px solid #dfe7fb; display: none; }
.qexp.on { display: block; animation: viewIn .45s var(--ease); }
.qexp h5 { font: 700 15px/1.3 var(--font-d); margin-bottom: 8px; }
.qexp .hy { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: #fff; border-left: 3px solid var(--amber); font-size: 14.5px; }
.qnav { display: flex; justify-content: space-between; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.qgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.qgrid button { height: 40px; border-radius: 10px; border: 1.5px solid var(--line); font: 600 13px/1 var(--font); background: #fff; position: relative; transition: all .2s; }
.qgrid button.cur { border-color: var(--blue); color: var(--blue); }
.qgrid button.ans { background: #eef3ff; }
.qgrid button.ok { background: #e6f8ef; border-color: #b7ead0; color: #0f8a50; }
.qgrid button.no { background: #fdeceb; border-color: #f5c5c6; color: #c7282e; }
.qgrid button.mk::after { content: ''; position: absolute; right: 3px; top: 3px; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
.score-hero { display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center; padding: 30px; }
.sys-bars { display: grid; gap: 10px; }
.sys-bars div { display: grid; grid-template-columns: 150px 1fr 70px; gap: 12px; align-items: center; font-size: 14px; }
.sys-bars i { height: 8px; border-radius: 8px; background: #eef1f8; overflow: hidden; }
.sys-bars i em { display: block; height: 100%; background: var(--green); border-radius: 8px; }

/* simulation page */
.sim { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: start; }
.monitor { background: #070d1a; color: #e9eefb; border-radius: var(--r-lg); overflow: hidden; border: 1px solid #1a2744; }
.monitor .pt { position: relative; aspect-ratio: 16 / 9; }
.monitor .pt img { width: 100%; height: 100%; object-fit: cover; }
.mon-grid { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid #1a2744; }
.mon-grid div { padding: 14px 16px; border-right: 1px solid #1a2744; }
.mon-grid div:last-child { border-right: 0; }
.mon-grid small { display: block; font-size: 11.5px; letter-spacing: .12em; color: #8f9dbb; }
.mon-grid b { font: 800 28px/1.2 var(--font-d); font-variant-numeric: tabular-nums; transition: color .4s; }
.mon-grid .hr b { color: #3ee08f; } .mon-grid .bp b { color: #ff6b70; } .mon-grid .sp b { color: #5ec8ff; } .mon-grid .rr b { color: #ffd166; } .mon-grid .tp b { color: #e9eefb; }
.ecg-strip { height: 90px; border-top: 1px solid #1a2744; background: linear-gradient(rgba(62, 224, 143, .05) 1px, transparent 1px) 0 0 / 100% 18px, linear-gradient(90deg, rgba(62, 224, 143, .05) 1px, transparent 1px) 0 0 / 18px 100%; }
.ecg-strip canvas { width: 100%; height: 100%; display: block; }
.sim-panel { padding: 24px; }
.sim-panel .step { font: 600 12px/1 var(--font); letter-spacing: .14em; color: var(--blue); text-transform: uppercase; }
.sim-panel h3 { font-size: 22px; margin: 10px 0 12px; }
.finding { padding: 14px; border-radius: 14px; background: #f5f8ff; border: 1px solid #dfe7fb; font-size: 14.5px; margin-bottom: 14px; }
.finding b { display: block; font: 700 13px/1 var(--font); color: var(--blue); margin-bottom: 6px; letter-spacing: .04em; }
.sim-opts { display: grid; gap: 10px; }
.sim-opts .qopt { font-size: 15px; }
.timeline-log { display: grid; gap: 10px; margin-top: 18px; font-size: 14px; }
.timeline-log li { display: flex; gap: 10px; }
.timeline-log li i { flex: none; width: 10px; height: 10px; border-radius: 50%; margin-top: 7px; }

/* copilot page */
.cop { display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: start; }
.cop .chatbox { min-height: 640px; display: flex; flex-direction: column; }
.cop .chat-log { flex: 1; max-height: 60vh; }
.history button { display: block; width: 100%; text-align: left; padding: 10px 12px; border-radius: 10px; font-size: 14px; color: var(--text-2); transition: background-color .2s; }
.history button:hover { background: var(--paper); }

/* plan page */
.plan-form { display: grid; gap: 18px; }
.range-row { display: flex; align-items: center; gap: 14px; }
.range-row input { flex: 1; accent-color: var(--blue); }
.range-row b { font: 700 18px/1 var(--font-d); width: 46px; text-align: right; }
.chips-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.week-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
.day { padding: 12px; border-radius: 14px; background: #fff; border: 1px solid var(--line); min-height: 210px; display: flex; flex-direction: column; gap: 8px; }
.day h5 { font: 700 13px/1 var(--font); display: flex; justify-content: space-between; color: var(--text-2); }
.task { display: flex; gap: 8px; align-items: flex-start; padding: 8px; border-radius: 10px; font-size: 12.5px; line-height: 1.35; cursor: pointer; transition: all .2s; border: 1px solid transparent; text-align: left; width: 100%; }
.task:hover { border-color: var(--line); }
.task i { flex: none; width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid #b5bfd4; margin-top: 1px; display: grid; place-items: center; }
.task.done i { background: var(--green); border-color: var(--green); }
.task.done i::after { content: ''; width: 7px; height: 3.5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
.task.done span { text-decoration: line-through; opacity: .55; }
.task em { display: block; font-style: normal; color: var(--muted); font-size: 11.5px; }

/* quests page */
.badges { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.badge-card { padding: 18px 12px; text-align: center; display: grid; justify-items: center; gap: 8px; transition: translate .4s var(--ease), rotate .4s var(--ease); }
.badge-card svg { width: 64px; height: 64px; transition: filter .4s; }
.badge-card.lock svg { filter: grayscale(1) opacity(.35); }
.badge-card b { font: 700 15px/1 var(--font-d); }
.badge-card span { font-size: 12.5px; color: var(--muted); }
.badge-card:not(.lock):hover { translate: 0 -4px; rotate: -2deg; }
.quest-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: #fff; transition: all .3s var(--ease); }
.quest-row.done { background: #f2fbf6; border-color: #c7ecd9; }
.quest-row .chk { width: 26px; height: 26px; border-radius: 8px; border: 1.5px solid #b5bfd4; display: grid; place-items: center; flex: none; transition: all .2s; }
.quest-row.done .chk { background: var(--green); border-color: var(--green); color: #fff; }
.quest-row .chk svg { width: 14px; height: 14px; opacity: 0; }
.quest-row.done .chk svg { opacity: 1; }
.quest-row .xp { margin-left: auto; font: 700 13px/1 var(--font); color: var(--violet); }
.confetti { position: fixed; pointer-events: none; z-index: 200; width: 8px; height: 12px; border-radius: 2px; }

/* community page */
.feed { display: grid; gap: 16px; }
.post { padding: 20px; }
.post .who { display: flex; align-items: center; gap: 12px; }
.post .who img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.post .who b { display: block; font: 600 15px/1.2 var(--font); }
.post .who span { font-size: 13px; color: var(--muted); }
.post .txt { margin-top: 12px; font-size: 15.5px; line-height: 1.6; }
.post .acts { display: flex; gap: 6px; margin-top: 14px; }
.post .acts button { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border-radius: 10px; font-size: 13.5px; color: var(--text-2); transition: all .2s; }
.post .acts button:hover { background: var(--paper); }
.post .acts button svg { width: 17px; height: 17px; }
.post .acts button.liked { color: var(--red); }
.post .acts button.liked svg { fill: var(--red); }
.post .cmts { margin-top: 12px; display: grid; gap: 8px; }
.post .cmt { padding: 10px 12px; border-radius: 12px; background: var(--paper); font-size: 14px; }
.post .cmt b { font-weight: 600; margin-right: 6px; }
.composer { padding: 18px; }
.composer .textarea { min-height: 90px; }
.composer .row { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; gap: 10px; }
.heart-pop { animation: pop .45s var(--ease); }
@keyframes pop { 50% { transform: scale(1.35); } }

/* pricing */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 36px; align-items: stretch; }
.price { padding: 30px; display: flex; flex-direction: column; gap: 14px; position: relative; transition: translate .4s var(--ease), box-shadow .4s; }
.price:hover { translate: 0 -6px; box-shadow: var(--shadow-lg); }
.price.pop { border: 2px solid var(--blue); box-shadow: 0 30px 70px rgba(59, 110, 245, .18); }
.price .ribbon { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); height: 26px; padding: 0 12px; border-radius: 999px; background: var(--blue); color: #fff; font: 700 12px/26px var(--font); white-space: nowrap; }
.price .amt { display: flex; align-items: baseline; gap: 6px; }
.price .amt b { font: 800 50px/1 var(--font-d); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.price ul { display: grid; gap: 10px; font-size: 14.5px; margin: 6px 0 10px; }
.price ul li { display: flex; gap: 10px; }
.price ul svg { width: 18px; height: 18px; color: var(--green); flex: none; margin-top: 2px; }
.price .btn { margin-top: auto; }
.faq { display: grid; gap: 10px; max-width: 820px; margin: 0 auto; }
.faq details { padding: 18px 22px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.faq summary { cursor: pointer; font: 600 16px/1.4 var(--font); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 22px; line-height: 1; color: var(--blue); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 10px; color: var(--text-2); }
.cmp-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.cmp-table th, .cmp-table td { padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: center; }
.cmp-table th:first-child, .cmp-table td:first-child { text-align: left; }
.cmp-table td svg { width: 18px; height: 18px; color: var(--green); }

/* dashboard */
.dash { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { padding: 20px; }
.stat small { font-size: 13px; color: var(--muted); }
.stat b { display: block; font: 800 32px/1.2 var(--font-d); margin-top: 4px; }
.chart { width: 100%; height: 220px; }

/* prose pages */
.prose { max-width: 760px; }
.prose h2 { font-size: 26px; margin: 34px 0 10px; }
.prose p, .prose li { color: var(--text-2); font-size: 16.5px; line-height: 1.75; }
.prose ul { list-style: disc; padding-left: 22px; display: grid; gap: 6px; margin-top: 8px; }
.notice { display: flex; gap: 12px; padding: 14px 16px; border-radius: 14px; background: #fff7e8; border: 1px solid #f7deb0; color: #7a5200; font-size: 14.5px; }
.notice svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }

/* ---------- modal, toast, palette ---------- */
.modal { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 20px; background: rgba(5, 8, 17, .6); backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity .3s; }
.modal.open { opacity: 1; pointer-events: auto; }
.modal .box { width: min(460px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; background: #fff; border-radius: 24px; padding: 30px; box-shadow: var(--shadow-lg); transform: translateY(16px) scale(.98); transition: transform .4s var(--ease); position: relative; }
.modal.open .box { transform: none; }
.modal .box.wide { width: min(860px, 100%); padding: 0; overflow: hidden; }
.modal .x { position: absolute; right: 14px; top: 14px; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; z-index: 3; }
.modal .x:hover { background: var(--paper); }
.modal .x svg { width: 16px; height: 16px; }
.modal h3 { font-size: 26px; }
.demo-note { margin-top: 8px; font-size: 13px; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 220; transform: translate(-50%, 30px); opacity: 0; display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 14px; background: #0d1426; color: #fff; font-size: 14.5px; box-shadow: var(--shadow-lg); transition: all .4s var(--ease); pointer-events: none; max-width: calc(100% - 32px); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast svg { width: 18px; height: 18px; color: #5fe0a0; flex: none; }
.palette .box { width: min(640px, 100%); padding: 0; align-self: start; margin-top: 10vh; }
.palette .pin-in { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.palette .pin-in svg { width: 20px; height: 20px; color: var(--muted); }
.palette .pin-in input { flex: 1; border: 0; outline: none; font-size: 17px; background: none; }
.palette .res { max-height: 56vh; overflow-y: auto; padding: 8px; }
.palette .res a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 11px; }
.palette .res a.on, .palette .res a:hover { background: var(--sky); }
.palette .res a i { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--paper); color: var(--blue); flex: none; font-style: normal; }
.palette .res a i svg { width: 16px; height: 16px; }
.palette .res a b { display: block; font-size: 14.5px; font-weight: 600; }
.palette .res a span { display: block; font-size: 12.5px; color: var(--muted); }
.palette .res h6 { font: 600 11.5px/1 var(--font); letter-spacing: .12em; color: var(--muted); text-transform: uppercase; margin: 12px 12px 6px; }

/* 404 */
.nf { min-height: 80vh; display: grid; place-items: center; text-align: center; padding: calc(var(--nav-h) + 40px) 20px 60px; background: var(--ink); color: #fff; }
.nf b { font: 800 clamp(110px, 18vw, 220px)/1 var(--font-d); letter-spacing: -.06em; background: linear-gradient(180deg, #fff, #3b6ef5); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ===================================================================== RESPONSIVE */
@media (max-width: 1180px) {
  .nav-links > a.hide-md { display: none; }
  .better .grid { grid-template-columns: 1fr 1fr; }
  .better .steps-col { display: none; }
  .grid-4, .dash { grid-template-columns: repeat(2, 1fr); }
  .week-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 960px) {
  :root { --nav-h: 62px; }
  .nav-links, .nav-right .search-btn, .nav-right .login, .nav-right .btn { display: none; }
  .burger { display: grid; }
  .hero { min-height: auto; padding: calc(var(--nav-h) + 8px) 0 60px; flex-direction: column; align-items: stretch; }
  .hero-heart { position: relative; right: auto; top: auto; transform: none; width: 118%; margin: -4% -9% -16%; align-self: center; }
  .hero .wrap { display: flex; flex-direction: column; padding-top: 0; }
  .hero-heart-slot { order: -1; }
  .hero-note, .hero-explore, .hero-count, .scroll-cue { display: none; }
  .hero-stats { margin-top: 40px; flex-wrap: wrap; gap: 24px 36px; }
  .anat .grid, .copilot-sec .grid, .case-sec .grid, .plan-sec .grid, .mobile-sec .wrap, .quests-sec .wrap, .future .wrap, .better .grid { grid-template-columns: 1fr; }
  .case-ui { grid-template-columns: 1fr; }
  .case-ui .vignette { background: linear-gradient(0deg, #0a1224, transparent 50%); }
  .phones { height: 480px; }
  .phone { width: 220px; height: 450px; }
  .phone.b { left: auto; right: 4%; }
  .future-stats { text-align: left; grid-auto-flow: column; justify-content: start; gap: 28px; }
  .future .hand { display: none; }
  .arch-note { right: 0; }
  .qpath { display: none; }
  .plan-inner { grid-template-columns: 1fr !important; }
  .foot .top { grid-template-columns: 1fr 1fr; }
  .layout-2, .layout-2.r320, .layout-2.l330, .layout-2.r300, .qb-run, .qb-setup, .sim, .cop { grid-template-columns: 1fr; }
  .sticky { position: static; }
  .grid-3, .price-grid { grid-template-columns: 1fr 1fr; }
  .comm-stats { grid-template-columns: repeat(2, 1fr); }
  .badges { grid-template-columns: repeat(3, 1fr); }
  .week-grid { grid-template-columns: repeat(2, 1fr); }
  .v-layers { width: 150px; }
  .v-info { width: min(320px, 60%); }
  .menu { display: none; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .sec { padding: 64px 0; }
  .grid-3, .grid-2, .grid-4, .price-grid, .dash { grid-template-columns: 1fr; }
  .hero h1 { font-size: 15vw; }
  .viewer { aspect-ratio: 4 / 5; }
  .viewer.full { height: 78vh; }
  .v-layers { right: 10px; top: 10px; width: 132px; padding: 8px; }
  .v-layers button { font-size: 12.5px; padding: 6px; }
  .v-tools { left: 8px; }
  .v-info { left: 10px; right: 10px; bottom: 10px; width: auto; padding: 10px 12px; max-height: 32%; overflow-y: auto; }
  .viewer.full .v-info { left: 10px; }
  .v-info p { font-size: 12.5px; }
  .v-tools { left: 8px; top: 8px; padding: 4px; }
  .v-tools button { width: 34px; height: 34px; }
  .v-hint { display: none; }
  .phones { height: 430px; margin: 0 -16px; }
  .phone { width: 196px; height: 400px; border-radius: 34px; padding: 9px; }
  .phone .scr { border-radius: 26px; }
  .phone.a { left: 2%; }
  .phone.b { right: 2%; }
  .mon-grid { grid-template-columns: repeat(3, 1fr); }
  .mon-grid div:nth-child(3) { border-right: 0; }
  .blue-bars div { grid-template-columns: 1fr 70px 40px; }
  .sys-bars div { grid-template-columns: 100px 1fr 54px; }
  .qcard { padding: 20px; }
  .foot .top { grid-template-columns: 1fr; }
  .score-hero { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .badges { grid-template-columns: repeat(2, 1fr); }
  .week-grid { grid-template-columns: 1fr; }
  .comm-stats b { font-size: 22px; }
  .cmp-table { font-size: 13px; }
  .cmp-table th, .cmp-table td { padding: 10px 6px; }
  .mapwrap { aspect-ratio: 1.4 / 1; }
  .pin { width: 34px; height: 34px; margin: -17px 0 0 -17px; }
  .case-ui .pt { min-height: 300px; }
  .vitals { width: 130px; }
  .modal .box { padding: 24px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Medverion wordmark ---------- */
.mvn-word { font: 800 21px/1 var(--font-d); letter-spacing: -.025em; color: inherit; }
.mvn-word span { color: #8DB4FF; }
.nav .brand svg { width: 32px; height: 32px; }

/* brand kit v1 */
.brand-logo { display: block; height: 30px; width: auto; }
.x5-brand .brand-logo { height: 32px; }
@media (max-width: 700px) { .nav .brand-logo { height: 26px; } }
