  :root {
    --bg: #060b12;
    --bg-2: #0a121c;
    --panel: rgba(255,255,255,0.035);
    --panel-solid: #0d1722;
    --border: rgba(255,255,255,0.08);
    --border-strong: rgba(255,255,255,0.14);
    --text: #e8eef5;
    --muted: #8b9bb0;
    --dim: #5b6b80;
    --cyan: #22d3ee;
    --teal: #10b981;
    --amber: #fbbf24;
    --grad: linear-gradient(135deg, #22d3ee 0%, #10b981 100%);
    --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  }
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    margin: 0; background: var(--bg); color: var(--text);
    font: 16px/1.65 Inter, "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, -apple-system, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased; overflow-x: hidden;
  }
  a { color: inherit; }
  .wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
  .grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

  /* ---------- Nav ---------- */
  nav {
    position: fixed; inset: 0 0 auto 0; z-index: 50;
    transition: background .3s, border-color .3s;
    border-bottom: 1px solid transparent;
  }
  nav.scrolled { background: rgba(6,11,18,0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--border); }
  nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
  .logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; text-decoration: none; letter-spacing: -0.01em; }
  .logo svg { width: 30px; height: 30px; }
  .nav-links { display: flex; gap: 32px; font-size: 14.5px; color: var(--muted); }
  .nav-links a { text-decoration: none; transition: color .2s; }
  .nav-links a:hover { color: var(--text); }
  .btn {
    display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; font-size: 15px;
    padding: 11px 20px; border-radius: 10px; transition: transform .2s, box-shadow .2s, background .2s; cursor: pointer; border: 0;
  }
  .btn-primary { background: var(--grad); color: #04130f; box-shadow: 0 6px 30px -8px rgba(34,211,238,.55); }
  .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 40px -8px rgba(34,211,238,.7); }
  .btn-ghost { border: 1px solid var(--border-strong); color: var(--text); background: rgba(255,255,255,0.02); }
  .btn-ghost:hover { background: rgba(255,255,255,0.06); }
  .btn-sm { padding: 8px 16px; font-size: 14px; }
  .nav-right { display: flex; align-items: center; gap: 12px; }
  .lang-switch { display: flex; padding: 3px; border-radius: 999px; border: 1px solid var(--border-strong); background: rgba(255,255,255,.03); }
  .lang-switch button { border: 0; background: none; color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 999px; cursor: pointer; transition: all .2s; }
  .lang-switch button.on { background: rgba(34,211,238,.16); color: var(--text); }
  html[lang="zh-Hant-TW"] h1, html[lang="zh-Hant-TW"] h2 { letter-spacing: 0; line-height: 1.22; }
  html[lang="zh-Hant-TW"] .eyebrow { letter-spacing: .3em; }

  /* ---------- Hero ---------- */
  .hero { position: relative; padding: 150px 0 90px; overflow: hidden; }
  .hero-bg { position: absolute; inset: 0; pointer-events: none; }
  .orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .45; animation: float 18s ease-in-out infinite; }
  .orb.a { width: 560px; height: 560px; background: #0e7490; top: -180px; left: -120px; }
  .orb.b { width: 480px; height: 480px; background: #047857; top: 60px; right: -160px; animation-delay: -6s; }
  .orb.c { width: 380px; height: 380px; background: #1e3a8a; bottom: -200px; left: 35%; animation-delay: -12s; opacity: .35; }
  @keyframes float {
    0%,100% { transform: translate(0,0) scale(1); }
    33% { transform: translate(60px,40px) scale(1.08); }
    66% { transform: translate(-40px,70px) scale(.95); }
  }
  .grid-bg {
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 75%);
  }
  .ecg { position: absolute; left: 0; right: 0; top: 330px; width: 100%; height: 120px; opacity: .5; }
  .ecg path { fill: none; stroke: url(#ecgGrad); stroke-width: 2; stroke-dasharray: 2400; stroke-dashoffset: 2400; animation: ecg 5s linear infinite; filter: drop-shadow(0 0 6px rgba(34,211,238,.8)); }
  @keyframes ecg { 0% { stroke-dashoffset: 2400; } 70% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -2400; } }

  .hero-inner { position: relative; text-align: center; }
  .pill {
    display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 8px; border-radius: 999px;
    background: rgba(255,255,255,0.04); border: 1px solid var(--border-strong); font-size: 13.5px; color: var(--muted);
  }
  .pill .dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); margin-left: 6px; }
  .pill .dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--teal); animation: ping 1.8s cubic-bezier(0,0,.2,1) infinite; }
  @keyframes ping { 75%,100% { transform: scale(2.6); opacity: 0; } }
  h1 {
    font-size: clamp(40px, 7vw, 76px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 800;
    margin: 26px auto 22px; max-width: 900px;
  }
  h1 .word { display: inline-block; opacity: 0; transform: translateY(24px); filter: blur(8px); animation: wordIn .9s cubic-bezier(.2,.7,.2,1) forwards; }
  @keyframes wordIn { to { opacity: 1; transform: none; filter: none; } }
  .hero p.sub { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 680px; margin: 0 auto 36px; opacity: 0; animation: wordIn .9s .9s forwards; }
  .hero .ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; opacity: 0; animation: wordIn .9s 1.1s forwards; }

  /* ---------- Demo window ---------- */
  .demo-wrap { position: relative; margin: 80px auto 0; max-width: 1080px; opacity: 0; animation: rise 1.2s 1.3s cubic-bezier(.2,.7,.2,1) forwards; perspective: 1600px; }
  @keyframes rise { from { opacity: 0; transform: translateY(60px); } to { opacity: 1; transform: none; } }
  .demo-glow { position: absolute; inset: -2px; border-radius: 20px; background: conic-gradient(from var(--angle), transparent 0 70%, #22d3ee 80%, #10b981 90%, transparent 100%); animation: spin 6s linear infinite; filter: blur(2px); opacity: .9; }
  @property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
  @keyframes spin { to { --angle: 360deg; } }
  .demo {
    position: relative; border-radius: 18px; background: #0a131d; border: 1px solid var(--border-strong);
    box-shadow: 0 40px 120px -20px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.02) inset; overflow: hidden; text-align: left;
  }
  .demo-bar { display: flex; align-items: center; gap: 8px; padding: 13px 16px; border-bottom: 1px solid var(--border); background: rgba(255,255,255,.02); }
  .demo-bar i { width: 11px; height: 11px; border-radius: 50%; background: #2a3646; }
  .demo-bar i:nth-child(1) { background: #ff5f57; } .demo-bar i:nth-child(2) { background: #febc2e; } .demo-bar i:nth-child(3) { background: #28c840; }
  .demo-bar .title { margin-left: 14px; font-size: 13px; color: var(--dim); font-family: var(--mono); }
  .demo-bar .status { margin-left: auto; font-size: 12px; font-family: var(--mono); color: var(--cyan); display: flex; align-items: center; gap: 8px; }
  .demo-bar .status b { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: blink 1s infinite; }
  @keyframes blink { 50% { opacity: .2; } }
  .demo-body { display: grid; grid-template-columns: 0.82fr 1.18fr; min-height: 470px; }
  .pane { padding: 22px 24px; }
  .pane + .pane { border-left: 1px solid var(--border); background: rgba(255,255,255,.012); }
  .pane-label { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); font-weight: 600; margin-bottom: 14px; display: flex; justify-content: space-between; }
  .pane-label span:last-child { font-family: var(--mono); letter-spacing: 0; text-transform: none; color: var(--cyan); }
  .notes { font-family: var(--mono); font-size: 13.5px; line-height: 1.85; color: #cfe3f1; white-space: pre-wrap; min-height: 150px; }
  .caret { display: inline-block; width: 8px; height: 17px; background: var(--cyan); vertical-align: -3px; animation: blink .9s steps(1) infinite; }
  .gaps { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; }
  .gap {
    border: 1px solid rgba(251,191,36,.28); background: rgba(251,191,36,.06); border-radius: 10px; padding: 10px 12px;
    font-size: 13px; opacity: 0; transform: translateX(-16px); transition: all .5s cubic-bezier(.2,.7,.2,1);
  }
  .gap.show { opacity: 1; transform: none; }
  .gap .q { color: var(--amber); font-weight: 600; display: flex; gap: 8px; align-items: center; }
  .gap .a { font-family: var(--mono); color: #d7f5e9; margin-top: 4px; min-height: 18px; }
  .gap.done { border-color: rgba(16,185,129,.35); background: rgba(16,185,129,.07); }
  .gap.done .q { color: #6ee7b7; }
  .record { font-size: 13.5px; line-height: 1.75; }
  .rec-sec { margin-bottom: 12px; opacity: 0; transform: translateY(8px); transition: all .4s; }
  .rec-sec.show { opacity: 1; transform: none; }
  .rec-sec h5 { margin: 0 0 3px; font-size: 11.5px; letter-spacing: .1em; color: var(--cyan); font-weight: 700; }
  .rec-sec .body { color: #c5d3e2; }
  .ins { background: rgba(16,185,129,.18); color: #a7f3d0; border-radius: 4px; padding: 0 4px; animation: flash 1.4s ease-out; }
  @keyframes flash { 0% { background: rgba(16,185,129,.7); } 100% { background: rgba(16,185,129,.18); } }
  .signoff {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--border-strong);
    opacity: 0; transition: opacity .5s;
  }
  .signoff.show { opacity: 1; }
  .signoff .meta { font-size: 12px; color: var(--dim); font-family: var(--mono); }
  .stamp {
    font-weight: 700; font-size: 13px; color: #04130f; background: var(--grad); padding: 8px 14px; border-radius: 8px;
    transform: scale(.6); opacity: 0; transition: all .45s cubic-bezier(.3,1.6,.5,1);
  }
  .stamp.show { transform: scale(1); opacity: 1; }
  .demo-foot { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--border); }
  .metric { padding: 14px 20px; font-size: 12.5px; color: var(--dim); }
  .metric + .metric { border-left: 1px solid var(--border); }
  .metric b { display: block; font-size: 20px; color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }

  /* ---------- Marquee ---------- */
  .marquee { margin-top: 90px; border-block: 1px solid var(--border); padding: 20px 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
  .marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 40s linear infinite; }
  .marquee-track span { color: var(--muted); font-weight: 500; white-space: nowrap; display: flex; align-items: center; gap: 56px; }
  .marquee-track span::after { content: "✦"; color: var(--cyan); opacity: .6; font-size: 12px; }
  @keyframes marquee { to { transform: translateX(-50%); } }

  /* ---------- Sections ---------- */
  section { padding: 120px 0; position: relative; }
  .eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--cyan); }
  h2 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.1; letter-spacing: -0.03em; margin: 14px 0 18px; font-weight: 800; }
  .section-sub { color: var(--muted); font-size: 18px; max-width: 640px; margin: 0; }
  .center { text-align: center; } .center .section-sub { margin: 0 auto; }
  .reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
  .reveal.in { opacity: 1; transform: none; }

  .problems { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
  .card {
    position: relative; background: var(--panel); border: 1px solid var(--border); border-radius: 18px; padding: 30px; overflow: hidden;
    transition: border-color .3s, transform .3s;
  }
  .card::before {
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
    background: radial-gradient(420px circle at var(--mx,50%) var(--my,50%), rgba(34,211,238,.12), transparent 45%);
  }
  .card:hover { border-color: var(--border-strong); transform: translateY(-4px); }
  .card:hover::before { opacity: 1; }
  .card h3 { font-size: 20px; margin: 18px 0 8px; letter-spacing: -0.01em; }
  .card p { color: var(--muted); margin: 0; font-size: 15.5px; }
  .icon {
    width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
    background: linear-gradient(135deg, rgba(34,211,238,.16), rgba(16,185,129,.12)); border: 1px solid rgba(34,211,238,.25);
  }
  .icon svg { width: 22px; height: 22px; stroke: var(--cyan); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

  /* Steps */
  .steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 70px; }
  .steps-line { position: absolute; top: 27px; left: 12.5%; right: 12.5%; height: 2px; background: var(--border); overflow: hidden; }
  .steps-line::after { content: ""; position: absolute; inset: 0; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform 2.2s cubic-bezier(.6,.1,.2,1) .3s; }
  .steps.in .steps-line::after { transform: scaleX(1); }
  .step { position: relative; text-align: center; padding: 0 8px; }
  .step-num {
    width: 56px; height: 56px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-family: var(--mono);
    background: var(--bg); border: 2px solid var(--border-strong); color: var(--muted); position: relative; z-index: 1;
    transition: all .5s;
  }
  .steps.in .step-num { border-color: var(--cyan); color: var(--text); box-shadow: 0 0 0 6px rgba(34,211,238,.08), 0 0 30px rgba(34,211,238,.35); }
  .steps.in .step:nth-child(2) .step-num { transition-delay: .3s; }
  .steps.in .step:nth-child(3) .step-num { transition-delay: .85s; }
  .steps.in .step:nth-child(4) .step-num { transition-delay: 1.4s; }
  .steps.in .step:nth-child(5) .step-num { transition-delay: 1.95s; }
  .step h3 { margin: 0 0 8px; font-size: 18px; }
  .step p { margin: 0; color: var(--muted); font-size: 15px; }

  /* Features bento */
  .bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; margin-top: 56px; }
  .bento .card { grid-column: span 2; }
  .bento .card.wide { grid-column: span 3; }
  .tag-soon { display: inline-block; margin-left: 8px; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.06); color: var(--muted); vertical-align: 3px; letter-spacing: .02em; }
  .mini-doc { margin-top: 22px; display: grid; gap: 8px; }
  .mini-doc div { height: 9px; border-radius: 5px; background: rgba(255,255,255,.07); position: relative; overflow: hidden; }
  .mini-doc div::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(34,211,238,.45), transparent); transform: translateX(-100%); animation: shimmer 2.6s infinite; }
  .mini-doc div:nth-child(2)::after { animation-delay: .2s; } .mini-doc div:nth-child(3)::after { animation-delay: .4s; } .mini-doc div:nth-child(4)::after { animation-delay: .6s; }
  @keyframes shimmer { to { transform: translateX(100%); } }
  .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
  .chips span { font-size: 12.5px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--border-strong); color: var(--muted); font-family: var(--mono); }
  .chips span.warn { border-color: rgba(251,191,36,.4); color: var(--amber); animation: pulseWarn 2.4s infinite; }
  @keyframes pulseWarn { 50% { box-shadow: 0 0 0 4px rgba(251,191,36,.12); } }

  /* Safety */
  .safety { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
  .safety > *, .companion > * { min-width: 0; }
  #safety { overflow: hidden; }
  .shield-wrap { position: relative; aspect-ratio: 1; max-width: 440px; margin: 0 auto; display: grid; place-items: center; width: 100%; }
  .ring { position: absolute; border-radius: 50%; border: 1px solid rgba(34,211,238,.22); animation: ringPulse 4s ease-out infinite; }
  .ring:nth-child(1) { inset: 22%; } .ring:nth-child(2) { inset: 11%; animation-delay: 1.3s; } .ring:nth-child(3) { inset: 0; animation-delay: 2.6s; }
  @keyframes ringPulse { 0% { opacity: 0; transform: scale(.85); } 30% { opacity: 1; } 100% { opacity: 0; transform: scale(1.05); } }
  .orbit { position: absolute; inset: 6%; border-radius: 50%; border: 1px dashed rgba(255,255,255,.08); animation: rot 30s linear infinite; }
  .orbit::before { content: ""; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 16px var(--cyan); }
  @keyframes rot { to { transform: rotate(360deg); } }
  .shield { width: 38%; filter: drop-shadow(0 0 40px rgba(34,211,238,.45)); animation: bob 5s ease-in-out infinite; }
  @keyframes bob { 50% { transform: translateY(-10px); } }
  .checklist { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 18px; }
  .checklist li { display: flex; gap: 14px; }
  .checklist .ck { flex: none; width: 26px; height: 26px; border-radius: 8px; background: rgba(16,185,129,.14); border: 1px solid rgba(16,185,129,.35); display: grid; place-items: center; margin-top: 1px; }
  .checklist .ck svg { width: 14px; stroke: #34d399; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
  .checklist b { display: block; font-weight: 600; }
  .checklist span.t { color: var(--muted); font-size: 15px; }

  /* CTA */
  .cta {
    position: relative; overflow: hidden; border-radius: 28px; padding: 90px 40px; text-align: center;
    background: radial-gradient(ellipse at 50% 0%, rgba(34,211,238,.22), transparent 60%), linear-gradient(180deg, #0b1724, #08111b);
    border: 1px solid var(--border-strong);
  }
  .cta h2 { max-width: 760px; margin-left: auto; margin-right: auto; }
  .cta .section-sub { margin: 0 auto 36px; }
  .cta-beam { position: absolute; top: 0; left: -40%; width: 40%; height: 1px; background: linear-gradient(90deg, transparent, var(--cyan), transparent); animation: beam 4s linear infinite; }
  @keyframes beam { to { left: 100%; } }

  footer { padding: 50px 0 60px; color: var(--dim); font-size: 14px; }
  footer a { color: var(--muted); text-decoration: none; } footer a:hover { color: var(--text); }

  /* ---------- Responsive ---------- */
  @media (max-width: 900px) {
    .nav-links { display: none; }
    .demo-body { grid-template-columns: 1fr; }
    .pane + .pane { border-left: 0; border-top: 1px solid var(--border); }
    .problems { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr 1fr; row-gap: 48px; }
    .steps-line { display: none; }
    .bento .card, .bento .card.wide { grid-column: span 6; }
    .safety { grid-template-columns: 1fr; gap: 40px; }
    section { padding: 90px 0; }
  }
  @media (max-width: 560px) {
    .wrap { padding: 0 16px; }
    nav .btn-sm { display: none; }
    .hero { padding-top: 120px; }
    .steps { grid-template-columns: 1fr; }
    .demo-foot { grid-template-columns: 1fr; }
    .metric + .metric { border-left: 0; border-top: 1px solid var(--border); }
    .cta { padding: 64px 22px; }
    .ecg { top: 300px; }
  }
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
    .reveal { opacity: 1; transform: none; }
  }

  /* ================= Shared additions ================= */
  html[lang="en"] .l-zh, html[lang="zh-Hant-TW"] .l-en { display: none !important; }
  .nav-links a.on { color: var(--text); }
  .nav-links a.on::after { content: ""; display: block; height: 2px; margin-top: 4px; border-radius: 2px; background: var(--grad); }
  .btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
  .link-arrow { color: var(--cyan); text-decoration: none; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
  .link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }
  kbd { font-family: var(--mono); font-size: .82em; padding: 2px 7px; border-radius: 6px; border: 1px solid var(--border-strong); border-bottom-width: 2px; background: rgba(255,255,255,.04); color: var(--text); white-space: nowrap; }

  /* Footer (multi-column) */
  footer .foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; border-top: 1px solid var(--border); padding-top: 44px; }
  footer .foot-grid h4 { margin: 0 0 14px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
  footer .foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
  footer .foot-brand p { margin: 14px 0 0; max-width: 300px; line-height: 1.6; }
  footer .foot-legal { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 12.5px; color: var(--dim); }
  footer .foot-legal p { margin: 0; max-width: 760px; }

  /* Companion section: MedNote floating beside an HIS */
  .companion { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
  .stage { position: relative; aspect-ratio: 16 / 11; width: 100%; }
  .his {
    position: absolute; inset: 0 22% 6% 0; border-radius: 14px; background: #0c1520; border: 1px solid var(--border-strong);
    box-shadow: 0 30px 80px -30px rgba(0,0,0,.9); overflow: hidden;
  }
  .his-bar { height: 30px; display: flex; align-items: center; gap: 6px; padding: 0 12px; background: #111c29; border-bottom: 1px solid var(--border); font-size: 11px; color: var(--dim); font-family: var(--mono); }
  .his-bar i { width: 8px; height: 8px; border-radius: 50%; background: #2a3646; }
  .his-body { display: grid; grid-template-columns: 30% 1fr; height: calc(100% - 30px); }
  .his-side { border-right: 1px solid var(--border); padding: 12px; display: grid; gap: 8px; align-content: start; }
  .his-side div, .his-row { height: 9px; border-radius: 4px; background: rgba(255,255,255,.06); }
  .his-side div:nth-child(2) { background: rgba(34,211,238,.18); }
  .his-main { padding: 14px; display: grid; gap: 9px; align-content: start; }
  .his-field { margin-top: 6px; border: 1px dashed rgba(255,255,255,.14); border-radius: 8px; padding: 10px; min-height: 42%; position: relative; }
  .his-field .lbl { font-size: 10px; color: var(--dim); font-family: var(--mono); margin-bottom: 8px; }
  .his-field .pasted { display: grid; gap: 6px; }
  .his-field .pasted div { height: 7px; border-radius: 4px; background: rgba(16,185,129,.35); transform-origin: left; transform: scaleX(0); }
  .stage.in .his-field .pasted div { animation: paste 9s infinite; }
  .stage.in .his-field .pasted div:nth-child(2) { animation-delay: .08s; } .stage.in .his-field .pasted div:nth-child(3) { animation-delay: .16s; }
  .stage.in .his-field .pasted div:nth-child(4) { animation-delay: .24s; } .stage.in .his-field .pasted div:nth-child(5) { animation-delay: .32s; }
  @keyframes paste { 0%, 62% { transform: scaleX(0); } 68%, 94% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
  .float {
    position: absolute; right: 0; top: 9%; width: 36%; bottom: 0; border-radius: 14px; background: #0a131d; border: 1px solid rgba(34,211,238,.45);
    box-shadow: 0 0 0 1px rgba(34,211,238,.12), 0 30px 80px -20px rgba(0,0,0,.9), 0 0 60px -10px rgba(34,211,238,.35); overflow: hidden;
  }
  .stage.in .float { animation: bob 6s ease-in-out infinite; }
  .float-bar { height: 30px; display: flex; align-items: center; justify-content: space-between; padding: 0 10px; background: rgba(34,211,238,.08); border-bottom: 1px solid var(--border); font-size: 11px; font-weight: 700; }
  .float-bar .pin { font-size: 11px; color: var(--cyan); }
  .float-body { padding: 10px; display: grid; gap: 7px; }
  .float-body .chip { height: 18px; border-radius: 6px; background: rgba(255,255,255,.05); border: 1px solid var(--border); }
  .float-body .ln { height: 6px; border-radius: 3px; background: rgba(255,255,255,.08); transform-origin: left; transform: scaleX(0); }
  .stage.in .float-body .ln { animation: draft 9s infinite; }
  .float-body .ln.w { background: rgba(251,191,36,.45); }
  .float-body .ln:nth-child(3) { animation-delay: .25s; } .float-body .ln:nth-child(4) { animation-delay: .5s; } .float-body .ln:nth-child(5) { animation-delay: .75s; }
  .float-body .ln:nth-child(6) { animation-delay: 1s; } .float-body .ln:nth-child(7) { animation-delay: 1.25s; } .float-body .ln:nth-child(8) { animation-delay: 1.5s; }
  @keyframes draft { 0%, 8% { transform: scaleX(0); } 22%, 94% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
  .float-body .sign { margin-top: 4px; height: 22px; border-radius: 6px; background: var(--grad); opacity: .25; }
  .stage.in .float-body .sign { animation: signPulse 9s infinite; }
  @keyframes signPulse { 0%, 50% { opacity: .25; } 55%, 62% { opacity: 1; box-shadow: 0 0 20px rgba(34,211,238,.7); } 70%, 100% { opacity: .25; } }
  .toast {
    position: absolute; left: 50%; bottom: 14%; transform: translate(-50%, 10px); font-size: 12px; font-weight: 600; padding: 7px 12px; border-radius: 8px;
    background: #0f2a22; border: 1px solid rgba(16,185,129,.5); color: #a7f3d0; opacity: 0; white-space: nowrap; font-family: var(--mono);
  }
  .stage.in .toast { animation: toast 9s infinite; }
  @keyframes toast { 0%, 56% { opacity: 0; transform: translate(-50%, 10px); } 60%, 74% { opacity: 1; transform: translate(-50%, 0); } 80%, 100% { opacity: 0; transform: translate(-50%, -6px); } }
  .ticks { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 14px; }
  .ticks li { display: flex; gap: 12px; color: var(--muted); }
  .ticks li::before { content: "✓"; flex: none; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #34d399; background: rgba(16,185,129,.14); border: 1px solid rgba(16,185,129,.35); margin-top: 2px; }
  .ticks b { color: var(--text); font-weight: 600; }

  /* FAQ accordion */
  .faq { display: grid; gap: 12px; }
  .faq details { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; transition: border-color .25s, background .25s; }
  .faq details[open] { border-color: rgba(34,211,238,.35); background: rgba(34,211,238,.035); }
  .faq summary { cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 600; font-size: 16.5px; display: flex; justify-content: space-between; gap: 18px; align-items: center; }
  .faq summary::-webkit-details-marker { display: none; }
  .faq summary::after { content: "+"; flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; color: var(--cyan); border: 1px solid var(--border-strong); font-size: 18px; font-weight: 400; transition: transform .3s; }
  .faq details[open] summary::after { transform: rotate(45deg); }
  .faq .ans { padding: 0 22px 20px; color: var(--muted); font-size: 15.5px; }
  .faq .ans p { margin: 0 0 10px; } .faq .ans p:last-child { margin: 0; }
  .faq .ans a { color: var(--cyan); }
  .faq-search { width: 100%; max-width: 520px; margin: 34px auto 0; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--border-strong); background: rgba(255,255,255,.03); }
  .faq-search input { flex: 1; background: none; border: 0; outline: 0; color: var(--text); font: inherit; }
  .faq-search svg { width: 18px; stroke: var(--muted); fill: none; stroke-width: 2; }
  .faq-cat { margin: 56px 0 18px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); }
  .faq-empty { text-align: center; color: var(--muted); margin-top: 40px; }

  /* ================= Doc pages ================= */
  .page-hero { position: relative; padding: 150px 0 70px; overflow: hidden; text-align: center; border-bottom: 1px solid var(--border); }
  .page-hero h1 { font-size: clamp(36px, 5.6vw, 60px); margin: 18px auto 16px; }
  .page-hero .sub { color: var(--muted); font-size: 18px; max-width: 680px; margin: 0 auto; }
  .page-hero .orb { opacity: .3; }
  .doc { display: grid; grid-template-columns: 230px 1fr; gap: 64px; padding: 70px 0 110px; align-items: start; }
  .toc { position: sticky; top: 96px; font-size: 14px; }
  .toc h4 { margin: 0 0 12px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
  .toc a { display: block; padding: 7px 0 7px 14px; color: var(--muted); text-decoration: none; border-left: 2px solid var(--border); transition: all .2s; }
  .toc a:hover { color: var(--text); }
  .toc a.on { color: var(--text); border-left-color: var(--cyan); }
  .doc-body { min-width: 0; max-width: 820px; }
  .doc-body section { padding: 0 0 72px; scroll-margin-top: 90px; }
  .doc-body h2 { font-size: clamp(26px, 3.4vw, 36px); margin: 0 0 14px; }
  .doc-body h3 { font-size: 19px; margin: 34px 0 10px; }
  .doc-body p, .doc-body li { color: var(--muted); }
  .doc-body p { margin: 0 0 14px; }
  .doc-body ul, .doc-body ol { padding-left: 22px; margin: 0 0 14px; }
  .doc-body li { margin-bottom: 6px; }
  .doc-body strong { color: var(--text); }
  .doc-body a { color: var(--cyan); }
  .callout { display: flex; gap: 14px; padding: 16px 18px; border-radius: 14px; margin: 20px 0; border: 1px solid rgba(34,211,238,.28); background: rgba(34,211,238,.05); color: var(--muted); font-size: 15px; }
  .callout::before { content: "i"; flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 700 13px var(--mono); color: #04130f; background: var(--cyan); margin-top: 1px; }
  .callout.warn { border-color: rgba(251,191,36,.35); background: rgba(251,191,36,.06); }
  .callout.warn::before { content: "!"; background: var(--amber); }
  .callout b { color: var(--text); }
  .steps-v { list-style: none; padding: 0; margin: 26px 0; counter-reset: s; display: grid; gap: 16px; }
  .steps-v > li { counter-increment: s; position: relative; padding: 20px 22px 20px 74px; border-radius: 16px; background: var(--panel); border: 1px solid var(--border); margin: 0; }
  .steps-v > li::before {
    content: counter(s, decimal-leading-zero); position: absolute; left: 20px; top: 18px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
    font: 700 13px var(--mono); color: var(--text); border: 2px solid var(--cyan); box-shadow: 0 0 18px rgba(34,211,238,.3);
  }
  .steps-v h4 { margin: 0 0 6px; font-size: 17px; color: var(--text); }
  .steps-v p { margin: 0; }
  .steps-v p + p { margin-top: 8px; }
  .code {
    font-family: var(--mono); font-size: 13.5px; line-height: 1.8; white-space: pre-wrap; padding: 16px 18px; border-radius: 12px; margin: 14px 0;
    background: #08111a; border: 1px solid var(--border-strong); color: #cfe3f1;
  }
  .code .hl { color: var(--cyan); } .code .miss { color: var(--amber); }
  .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 18px 0; }
  .pair .code { margin: 0; }
  .pair .cap { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin-bottom: 8px; font-weight: 600; }
  .tbl-wrap { overflow-x: auto; margin: 18px 0; border-radius: 14px; border: 1px solid var(--border); }
  table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 520px; }
  th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
  th { background: rgba(255,255,255,.03); color: var(--text); font-weight: 600; font-size: 13px; letter-spacing: .02em; }
  td { color: var(--muted); }
  tr:last-child td { border-bottom: 0; }
  td.y { color: #34d399; font-weight: 700; } td.n { color: #f87171; font-weight: 700; }
  .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0; }
  .mini { padding: 20px; border-radius: 16px; background: var(--panel); border: 1px solid var(--border); }
  .mini h4 { margin: 0 0 6px; color: var(--text); font-size: 16px; }
  .mini p { margin: 0; font-size: 14.5px; }
  .mini.no { border-color: rgba(248,113,113,.25); } .mini.no h4 { color: #fca5a5; }
  .mini.yes { border-color: rgba(16,185,129,.3); } .mini.yes h4 { color: #6ee7b7; }
  .kbd-list { display: grid; gap: 10px; margin: 16px 0; }
  .kbd-list div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 16px; border-radius: 12px; background: var(--panel); border: 1px solid var(--border); color: var(--muted); font-size: 15px; }

  /* Data-flow diagram */
  .flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 10px; margin: 26px 0; }
  .node { padding: 18px 14px; border-radius: 14px; text-align: center; background: var(--panel); border: 1px solid var(--border-strong); }
  .node b { display: block; color: var(--text); font-size: 15px; }
  .node > span { display: block; font-size: 12.5px; color: var(--dim); margin-top: 4px; }
  .node.hub { border-color: rgba(34,211,238,.45); box-shadow: 0 0 40px -10px rgba(34,211,238,.4); }
  .wire { position: relative; width: 56px; height: 2px; background: var(--border-strong); overflow: hidden; }
  .wire::after { content: ""; position: absolute; top: 0; left: -40%; width: 40%; height: 100%; background: var(--grad); animation: beam 1.8s linear infinite; }
  .flow-note { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

  .notice { position: relative; padding: 22px 22px 18px; border-radius: 14px; border: 1px dashed rgba(34,211,238,.45); background: rgba(34,211,238,.04); color: #d6e6f3; line-height: 1.85; margin: 16px 0; }
  .notice .copy { position: absolute; top: 12px; right: 12px; }
  .btn-xs { padding: 6px 12px; font-size: 13px; border-radius: 8px; }

  @media (max-width: 900px) {
    .companion { grid-template-columns: 1fr; gap: 40px; }
    .doc { grid-template-columns: 1fr; gap: 0; padding-top: 40px; }
    .toc { display: none; }
    footer .foot-grid { grid-template-columns: 1fr 1fr; }
    .flow { grid-template-columns: 1fr; }
    .wire { width: 2px; height: 30px; margin: 0 auto; }
    .wire::after { width: 100%; height: 40%; left: 0; top: -40%; animation: beamV 1.8s linear infinite; }
  }
  @keyframes beamV { to { top: 100%; } }
  @media (max-width: 560px) {
    .page-hero { padding-top: 120px; }
    .pair, .grid2, .flow-note { grid-template-columns: 1fr; }
    footer .foot-grid { grid-template-columns: 1fr; }
    .steps-v > li { padding: 70px 18px 18px; }
    .faq summary { padding: 16px 18px; font-size: 15.5px; }
  }
  @media (prefers-reduced-motion: reduce) {
    .his-field .pasted div, .float-body .ln { transform: none; }
    .toast { opacity: 1; transform: translate(-50%, 0); }
  }

  /* ---------- Patient notice poster ---------- */
  .poster-page { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 40px; align-items: start; padding-top: 8px; padding-bottom: 100px; }
  .poster-ctl { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 12px; padding: 22px; border: 1px solid var(--border); border-radius: 16px; background: var(--panel); }
  .poster-ctl > label { font-weight: 600; font-size: 14px; }
  .poster-ctl input[type=text], .poster-ctl #clinicName { width: 100%; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--border-strong); background: rgba(0,0,0,.25); color: var(--text); font: inherit; }
  .poster-ctl #clinicName:focus { outline: none; border-color: var(--cyan); }
  .poster-ctl .chk { display: flex; gap: 8px; align-items: center; font-size: 15px; cursor: pointer; margin-top: 4px; }
  .poster-ctl .chk input { accent-color: #10b981; width: 16px; height: 16px; }
  .poster-ctl .hint { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.6; }
  .poster-ctl .btn { justify-content: center; margin-top: 6px; }
  .poster-stage { container-type: inline-size; max-width: 680px; }

  .poster {
    --pc: #0f2a33; --pm: #4b6470; --pa: #0d9488; --pb: #0891b2; --pl: #e2eef0;
    width: 100%; aspect-ratio: 210 / 297; font-size: calc(100cqw / 52);
    background: #fff; color: var(--pc); border-radius: .6em; overflow: hidden; position: relative;
    padding: 3.4em 3.6em 2.6em; display: flex; flex-direction: column; justify-content: space-between;
    font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", Inter, sans-serif; line-height: 1.55;
    box-shadow: 0 30px 80px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.06);
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }
  .poster::before { content: ""; position: absolute; inset: 0 0 auto 0; height: .55em; background: linear-gradient(90deg, var(--pb), var(--pa)); }
  .poster::after { content: ""; position: absolute; width: 30em; height: 30em; right: -12em; top: -12em; border-radius: 50%; background: radial-gradient(circle, rgba(13,148,136,.09), transparent 65%); pointer-events: none; }
  .poster .pe { display: none; font-style: normal; color: var(--pm); }
  .poster.with-en .pe { display: block; }
  .poster.with-en .p-tag .pe { display: inline; }
  .p-top { display: flex; justify-content: space-between; align-items: center; gap: 1em; position: relative; z-index: 1; }
  .pc-clinic { font-size: 1.55em; font-weight: 900; letter-spacing: .04em; min-height: 1.5em; }
  .pc-clinic.blank { width: 11em; border-bottom: .09em dashed #9fb6bd; }
  .p-tag { font-size: .78em; font-weight: 700; color: var(--pa); background: rgba(13,148,136,.09); border: .09em solid rgba(13,148,136,.3); padding: .35em .9em; border-radius: 99em; white-space: nowrap; }
  .p-head { position: relative; z-index: 1; }
  .p-badge { width: 3.6em; height: 3.6em; border-radius: 1em; display: grid; place-items: center; font: 800 1.15em/1 Inter, sans-serif; color: #fff; background: linear-gradient(135deg, var(--pb), var(--pa)); box-shadow: 0 .6em 1.4em -.5em rgba(13,148,136,.6); margin-bottom: 1.1em; }
  .p-head h2 { font-size: 3.3em; line-height: 1.22; font-weight: 900; margin: 0; letter-spacing: .02em; }
  .p-lead { font-size: 1.3em; color: var(--pm); margin: .6em 0 0; font-weight: 500; }
  .p-lead-en { font-size: .95em; margin-top: .3em; }
  .p-items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1.1em; }
  .p-items li { display: flex; gap: .9em; padding: 1.25em 1.2em; border-radius: 1em; background: #f6fafb; border: .09em solid var(--pl); }
  .p-items i { flex: none; width: 2.6em; height: 2.6em; border-radius: .75em; display: grid; place-items: center; color: var(--pa); background: rgba(13,148,136,.1); }
  .p-items i svg { width: 1.45em; height: 1.45em; }
  .p-items b { font-size: 1.15em; display: block; margin-bottom: .25em; }
  .p-items p { margin: 0; font-size: .92em; color: var(--pm); line-height: 1.6; }
  .p-items .pe { font-size: .78em; margin-top: .45em; line-height: 1.45; }
  .p-optout { padding: 1.4em 1.6em; border-radius: 1em; background: linear-gradient(135deg, rgba(8,145,178,.08), rgba(13,148,136,.12)); border: .12em solid rgba(13,148,136,.35); text-align: center; }
  .p-optout b { font-size: 1.35em; color: #0b766d; }
  .p-optout p { margin: .35em 0 0; font-size: 1.05em; line-height: 1.7; }
  .p-optout .pe { font-size: .82em; margin-top: .4em; }
  .p-foot { display: flex; justify-content: space-between; align-items: center; font-size: .78em; color: #7a909a; border-top: .1em solid var(--pl); padding-top: 1em; }
  .p-mark { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; color: var(--pm); }
  .p-mark svg { width: 1.3em; height: 1.3em; }

  .poster-preview { display: block; width: min(100%, 340px); margin: 18px 0 6px; text-decoration: none; border-radius: 10px; transition: transform .25s; }
  .poster-preview:hover { transform: translateY(-3px); }
  .poster-scale { container-type: inline-size; }
  .poster.is-mini { box-shadow: 0 20px 50px -25px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.08); }
  .poster-actions { margin: 12px 0 0; }

  @media (max-width: 900px) {
    .poster-page { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .poster-ctl { position: static; }
  }
  @media print {
    @page { size: A4 portrait; margin: 0; }
    html, body { background: #fff !important; }
    body > *:not(.poster-page):not(svg) { display: none !important; }
    nav, footer, .page-hero, .poster-ctl { display: none !important; }
    .poster-page { display: block !important; padding: 0 !important; margin: 0 !important; max-width: none !important; }
    .poster-stage { max-width: none; container-type: normal; }
    .poster.is-full { width: 210mm; height: 297mm; aspect-ratio: auto; font-size: calc(210mm / 52); border-radius: 0; box-shadow: none; break-inside: avoid; }
  }

  /* ---------- Download ---------- */
  .dl-page { max-width: 880px; padding-bottom: 100px; }
  .dl-card { display: grid; grid-template-columns: auto 1fr auto; gap: 18px 22px; align-items: center; padding: 28px; border-radius: 20px; border: 1px solid var(--border-strong); background: linear-gradient(135deg, rgba(34,211,238,.07), rgba(16,185,129,.05)); }
  .dl-ico { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; background: rgba(34,211,238,.1); color: var(--cyan); }
  .dl-ico svg { width: 32px; height: 32px; }
  .dl-meta h2 { margin: 0; font-size: 24px; }
  .dl-meta .ver { font: 500 14px var(--mono); color: var(--muted); margin-left: 6px; }
  .dl-meta p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
  .dl-btn { gap: 10px; }
  .dl-btn svg { width: 18px; height: 18px; }
  .dl-sha { grid-column: 1 / -1; display: flex; gap: 10px; align-items: baseline; font-size: 12px; color: var(--dim); border-top: 1px solid var(--border); padding-top: 14px; min-width: 0; }
  .dl-sha code { font-family: var(--mono); overflow-wrap: anywhere; color: var(--muted); }
  .dl-steps { list-style: none; padding: 0; margin: 40px 0; display: grid; gap: 14px; }
  .dl-steps li { display: flex; gap: 18px; padding: 20px 22px; border-radius: 16px; border: 1px solid var(--border); background: var(--panel); }
  .dl-steps li > b { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #04130f; font-weight: 800; }
  .dl-steps h4 { margin: 4px 0 6px; font-size: 17px; }
  .dl-steps p { margin: 0; color: var(--muted); }
  .dl-steps a, .dl-more a { color: var(--cyan); }
  .dl-foot { margin-top: 28px; font-size: 14px; color: var(--muted); }
  .dl-foot code { font-family: var(--mono); font-size: 13px; color: var(--text); }
  @media (max-width: 640px) {
    .dl-card { grid-template-columns: auto 1fr; }
    .dl-btn { grid-column: 1 / -1; justify-content: center; }
  }
  .doc-body a.btn-primary { color: #04130f; }
  @media (max-width: 560px) { .notice { padding-top: 54px; } }
  .dl-sha > span { white-space: nowrap; }
