/* ScanSureX public landing. Palette follows THEME-INSTRUCTIONS.md (light) and uwa's
   globals.css (dark): one teal for every interactive emphasis, dark slate text, never
   pure black. Typography: Inter with the system stack behind it. */

:root {
  color-scheme: light;
  --page: #f8fafc;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --text: #0f172a;
  --text-2: #475569;
  --muted: #64748b;
  --faint: #94a3b8;
  --brand: #0f766e;
  --brand-hover: #0d6460;
  --brand-soft: #ccfbf1;
  --brand-tint: #f0fdfa;
  --brand-line: #99f6e4;
  --brand-bright: #14b8a6;
  --cyan: #0891b2;
  --navy: #0f172a;
  --navy-2: #131e33;
  --navy-line: #24304a;
  --navy-text: #94a3b8;
  --focus: #5eead4;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 32px -16px rgba(15, 23, 42, .18);
  --shadow-lg: 0 24px 60px -24px rgba(15, 23, 42, .28);
  --r-xl: 24px; --r-lg: 20px; --r-md: 14px; --r-sm: 10px;
  --max: 1200px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
html.dark {
  color-scheme: dark;
  --page: #0b1220;
  --surface: #111a2b;
  --surface-2: #192438;
  --border: #263247;
  --border-strong: #354458;
  --text: #f1f5f9;
  --text-2: #cbd5e1;
  --muted: #94a3b8;
  --faint: #7c8ba1;
  --brand: #14b8a6;
  --brand-hover: #2dd4bf;
  --brand-soft: #134e4a;
  --brand-tint: #0f2a2a;
  --brand-line: #0f766e;
  --navy: #070d19;
  --navy-2: #0f172a;
  --navy-line: #1e293b;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 32px -16px rgba(0,0,0,.6);
  --shadow-lg: 0 24px 60px -24px rgba(0,0,0,.7);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--text); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (min-width: 900px) { .wrap { padding: 0 40px; } }

/* ------------------------------------------------------------------ type */
h1, h2, h3, h4 { margin: 0; color: var(--text); letter-spacing: -0.02em; line-height: 1.12; font-weight: 800; }
h1 { font-size: clamp(34px, 4.6vw, 56px); letter-spacing: -0.03em; }
h2 { font-size: clamp(26px, 3vw, 36px); }
h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; color: var(--text-2); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--brand); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--brand); }
.lead { font-size: 18px; line-height: 1.6; max-width: 58ch; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }

/* --------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 12px; font-weight: 600; font-size: 15px; border: 1px solid transparent; transition: background .15s, border-color .15s, color .15s, transform .15s, box-shadow .15s; white-space: nowrap; line-height: 1.2; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px -10px rgba(15,118,110,.6); }
.btn-primary:hover { background: var(--brand-hover); }
html.dark .btn-primary { color: #06201e; }
.btn-outline { border-color: var(--border-strong); color: var(--text); background: var(--surface); }
.btn-outline:hover { border-color: var(--text-2); }
.btn-ghost { color: var(--brand); border-color: var(--brand-line); background: transparent; }
.btn-ghost:hover { background: var(--brand-tint); }
.btn-on-dark { border-color: #334155; color: #e2e8f0; background: transparent; }
.btn-on-dark:hover { border-color: #5eead4; color: #fff; }
.btn-sm { padding: 9px 14px; font-size: 13.5px; border-radius: 10px; }
.btn-lg { padding: 16px 26px; font-size: 16px; border-radius: 14px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); transition: border-color .15s, color .15s; }
.icon-btn:hover { border-color: var(--border-strong); color: var(--text); }
.icon-btn svg { width: 18px; height: 18px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 12.5px; font-weight: 600; }
.pill-brand { background: var(--brand-soft); color: var(--brand); }
html.dark .pill-brand { color: #99f6e4; }
.pill-info { background: #ecfeff; color: #0891b2; }
html.dark .pill-info { background: #0e2a33; color: #67e8f9; }

/* ---------------------------------------------------------------- header */
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--surface) 85%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; gap: 20px; height: 72px; }
.logo { flex: none; }
.logo img { height: 34px; width: auto; }
.logo .logo-dark { display: none; }
html.dark .logo .logo-light { display: none; }
html.dark .logo .logo-dark { display: block; }
.nav { display: none; align-items: center; gap: 2px; margin-left: 8px; }
.nav-link { padding: 9px 13px; border-radius: 10px; font-weight: 600; font-size: 14.5px; color: var(--text-2); transition: background .15s, color .15s; }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.header-spacer { flex: 1; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle .icon-moon { display: none; }
html.dark .theme-toggle .icon-sun { display: none; }
html.dark .theme-toggle .icon-moon { display: block; }
.only-desktop { display: none !important; }
@media (min-width: 900px) {
  .nav { display: flex; }
  .only-desktop { display: inline-flex !important; }
  .only-mobile { display: none !important; }
}
@media (max-width: 899px) { .header-inner { height: 64px; } .logo img { height: 28px; } }

/* search (header variant + hero variant share the markup) */
.search { position: relative; width: 100%; }
.search-input { width: 100%; height: 44px; padding: 0 16px 0 44px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font: 500 14.5px var(--font); outline: none; transition: border-color .15s, background .15s, box-shadow .15s; }
.search-input:focus { border-color: var(--brand-line); background: var(--surface); box-shadow: 0 0 0 4px rgba(20,184,166,.12); }
.search-input::placeholder { color: var(--faint); font-weight: 500; }
.search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.search-kbd { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font: 600 11px/20px ui-monospace, monospace; color: var(--faint); background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 0 6px; pointer-events: none; }
.header-search { max-width: 460px; display: none; }
@media (min-width: 900px) { .header-search { display: block; } }
.search-hero .search-input { height: 60px; padding-left: 54px; padding-right: 130px; border-radius: 16px; font-size: 16.5px; background: var(--surface); border-color: var(--border-strong); box-shadow: var(--shadow); }
.search-hero .search-icon { left: 20px; width: 22px; height: 22px; }
.search-hero .search-kbd { display: none; }
.search-hero .search-go { position: absolute; right: 8px; top: 8px; height: 44px; padding: 0 18px; border-radius: 11px; }
.search-results { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 6px; max-height: min(64vh, 520px); overflow: auto; display: none; box-shadow: var(--shadow-lg); z-index: 45; }
.search-results.open { display: block; }
.search-group { padding: 10px 12px 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.search-item { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; }
.search-item[aria-selected="true"], .search-item:hover { background: var(--surface-2); }
.search-item .ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: #fff; }
.search-item .ico svg { width: 17px; height: 17px; }
.search-item .t { font-weight: 600; font-size: 14.5px; color: var(--text); display: block; }
.search-item .s { font-size: 12.5px; color: var(--muted); display: block; }
.search-item .open { font-size: 12.5px; font-weight: 600; color: var(--brand); padding: 5px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.search-item .open:hover { border-color: var(--brand-line); }
.search-empty { padding: 20px 12px; color: var(--muted); font-size: 14px; text-align: center; }

/* dropdown menu */
.menu { position: relative; }
.menu-panel { position: absolute; right: 0; top: calc(100% + 10px); min-width: 300px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 8px; display: none; z-index: 50; box-shadow: var(--shadow-lg); }
.menu-panel.open { display: block; }
.menu-title { padding: 10px 12px 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.menu-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; font-size: 14.5px; font-weight: 600; color: var(--text); }
.menu-item:hover { background: var(--surface-2); }
.menu-item svg { width: 17px; height: 17px; color: var(--brand); flex: none; }
.menu-item .sub { display: block; font-size: 12.5px; font-weight: 400; color: var(--muted); line-height: 1.4; }
.menu-sep { height: 1px; background: var(--border); margin: 6px 4px; }
.menu-grid { display: grid; grid-template-columns: 1fr 1fr; }
.menu-grid .menu-item { font-size: 13.5px; padding: 8px 10px; }
@media (max-width: 480px) { .menu-panel { position: fixed; left: 12px; right: 12px; top: 70px; } .menu-grid { grid-template-columns: 1fr; } }

/* drawer */
.drawer { position: fixed; inset: 0; z-index: 60; display: none; }
.drawer.open { display: block; }
.drawer-bg { position: absolute; inset: 0; background: rgba(15,23,42,.5); }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(86vw, 340px); background: var(--surface); border-left: 1px solid var(--border); padding: 16px; overflow: auto; }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--border); background: var(--surface); }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto; height: 120%; background: radial-gradient(600px 400px at 18% 30%, rgba(20,184,166,.13), transparent 60%), radial-gradient(500px 360px at 85% 20%, rgba(8,145,178,.10), transparent 60%); pointer-events: none; }
.hero-inner { position: relative; display: grid; gap: 36px; align-items: center; padding-top: 44px; padding-bottom: 60px; }
@media (min-width: 1000px) { .hero-inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; padding-top: 64px; padding-bottom: 72px; } }
.hero h1 { max-width: 15ch; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero .lead { margin-top: 18px; }
.hero .search { margin-top: 26px; max-width: 620px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-size: 13.5px; font-weight: 600; color: var(--text-2); transition: border-color .15s, color .15s, background .15s; }
.chip:hover { border-color: var(--brand-line); color: var(--brand); background: var(--brand-tint); }
.chip svg { width: 14px; height: 14px; color: var(--brand); }
.trust { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border); }
.trust div { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-2); font-weight: 500; }
.trust svg { width: 18px; height: 18px; color: var(--brand); flex: none; }
.hero-art { position: relative; }
.hero-art .illus { width: 100%; max-width: 560px; margin: 0 auto; }
@media (max-width: 999px) { .hero-art { order: -1; } .hero-art .illus { max-width: 440px; } }

/* -------------------------------------------------------------- sections */
.section { padding: 72px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-head p { margin-top: 10px; max-width: 70ch; font-size: 16.5px; }
.view-all { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; color: var(--brand); white-space: nowrap; padding-bottom: 4px; }
.view-all svg { width: 17px; height: 17px; transition: transform .15s; }
.view-all:hover svg { transform: translateX(3px); }
@media (max-width: 640px) { .section { padding: 56px 0; } .section-head { flex-direction: column; align-items: flex-start; gap: 8px; } }

/* carousel: two rows, snaps one column at a time, arrows overlay the edges */
.rail { position: relative; }
.rail-track { display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, 1fr); grid-auto-columns: var(--col, 300px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: 4px; padding: 4px; margin: -4px; scrollbar-width: none; scroll-behavior: smooth; }
.rail-track::-webkit-scrollbar { display: none; }
.rail-track > * { scroll-snap-align: start; }
.rail-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 48px; height: 48px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); color: var(--text); box-shadow: var(--shadow-lg); display: grid; place-items: center; transition: opacity .2s, transform .15s, border-color .15s; }
.rail-arrow:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-50%) scale(1.04); }
.rail-arrow svg { width: 20px; height: 20px; }
.rail-arrow.prev { left: -24px; }
.rail-arrow.next { right: -24px; }
.rail-arrow[disabled] { opacity: 0; pointer-events: none; }
.rail-dots { display: flex; justify-content: center; gap: 6px; margin-top: 24px; }
.rail-dots button { width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong); transition: width .2s, background .2s; }
.rail-dots button[aria-current="true"] { width: 24px; border-radius: 4px; background: var(--brand); }
@media (max-width: 640px) { .rail-track { --col: 260px; } .rail-arrow { display: none; } }

/* cards */
.card { position: relative; display: flex; flex-direction: column; min-height: 176px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px; transition: border-color .2s, box-shadow .2s, transform .2s; }
.card:hover { border-color: var(--border-strong); box-shadow: var(--shadow); transform: translateY(-2px); }
.card-link { position: absolute; inset: 0; border-radius: var(--r-lg); }
.card-row { display: flex; align-items: flex-start; gap: 14px; }
.card-icon { width: 44px; height: 44px; flex: none; border-radius: 13px; display: grid; place-items: center; color: #fff; }
.card-icon svg { width: 21px; height: 21px; }
.card-title { font-weight: 700; color: var(--text); font-size: 16px; letter-spacing: -0.01em; line-height: 1.3; }
.card-sub { margin-top: 5px; font-size: 13.5px; line-height: 1.5; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card-foot .how { display: inline-flex; align-items: center; gap: 5px; font-size: 13.5px; font-weight: 600; color: var(--brand); }
.card-foot .how svg { width: 15px; height: 15px; transition: transform .15s; }
.card:hover .how svg { transform: translateX(3px); }
.card-foot .open { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 4px; padding: 6px 11px; border-radius: 9px; border: 1px solid var(--border); background: var(--surface); font-size: 12.5px; font-weight: 600; color: var(--text-2); transition: border-color .15s, color .15s; }
.card-foot .open:hover { border-color: var(--brand); color: var(--brand); }
.card-foot .open svg { width: 13px; height: 13px; }
.card-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

/* how it works */
.steps-row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); counter-reset: hiw; }
.hiw { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 26px 24px; }
.hiw .n { position: absolute; top: 22px; right: 22px; font-size: 13px; font-weight: 700; color: var(--faint); letter-spacing: .04em; }
.hiw .ico { width: 46px; height: 46px; border-radius: 14px; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; margin-bottom: 18px; }
.hiw .ico svg { width: 22px; height: 22px; }
.hiw h3 { margin-bottom: 8px; }
.hiw p { font-size: 14.5px; }

/* partner band */
.band-dark { position: relative; background: var(--navy); color: #e2e8f0; padding: 72px 0; overflow: hidden; }
.band-dark::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 400px at 90% 0%, rgba(20,184,166,.14), transparent 60%); pointer-events: none; }
.band-dark .wrap { position: relative; }
.band-dark h2, .band-dark h3, .band-dark .card-title { color: #fff; }
.band-dark p, .band-dark .card-sub { color: var(--navy-text); }
.band-dark .eyebrow { color: #5eead4; } .band-dark .eyebrow::before { background: #5eead4; }
.band-dark .view-all { color: #5eead4; }
.band-dark .card { background: var(--navy-2); border-color: var(--navy-line); }
.band-dark .card:hover { border-color: #3b4a61; box-shadow: 0 24px 50px -24px rgba(0,0,0,.8); }
.band-dark .card-foot .how { color: #5eead4; }
.band-dark .card-foot .open { background: transparent; border-color: #334155; color: #cbd5e1; }
.band-dark .card-foot .open:hover { border-color: #5eead4; color: #fff; }
.band-dark .rail-arrow { background: var(--navy-2); border-color: var(--navy-line); color: #fff; }
.band-dark .rail-arrow:hover { border-color: #5eead4; color: #5eead4; }
.band-dark .rail-dots button { background: #334155; } .band-dark .rail-dots button[aria-current="true"] { background: #5eead4; }
.band-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 36px; }
.band-actions p { font-size: 14.5px; }
.band-dark .menu-panel { background: var(--navy-2); border-color: var(--navy-line); }
.band-dark .menu-item { color: #e2e8f0; } .band-dark .menu-item:hover { background: #1a2740; } .band-dark .menu-sep { background: var(--navy-line); }

/* closing CTA */
.cta { background: linear-gradient(135deg, #0f766e, #0891b2); color: #fff; border-radius: var(--r-xl); padding: 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; box-shadow: var(--shadow-lg); }
.cta h2 { color: #fff; font-size: clamp(22px, 2.4vw, 30px); }
.cta p { color: rgba(255,255,255,.82); margin-top: 8px; max-width: 54ch; font-size: 16px; }
.cta .btn-primary { background: #fff; color: #0f766e; box-shadow: none; }
.cta .btn-primary:hover { background: #ecfeff; }
.cta .btn-on-dark { border-color: rgba(255,255,255,.4); color: #fff; }

/* ---------------------------------------------------------------- footer */
.footer { border-top: 1px solid var(--border); background: var(--surface); }
.footer-grid { display: grid; gap: 32px 24px; grid-template-columns: repeat(2, 1fr); padding: 56px 0 36px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.5fr repeat(4, 1fr); } }
.footer h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 14px; font-weight: 700; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer li a { font-size: 14px; color: var(--text-2); transition: color .15s; }
.footer li a:hover { color: var(--brand); }
.footer-brand img { height: 32px; width: auto; margin-bottom: 14px; }
.footer-brand p { font-size: 14px; max-width: 32ch; }
.footer-brand .logo-dark { display: none; }
html.dark .footer-brand .logo-light { display: none; }
html.dark .footer-brand .logo-dark { display: block; }
.footer-bottom { border-top: 1px solid var(--border); padding: 20px 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; font-size: 13px; color: var(--muted); }
.footer-bottom a { color: var(--muted); } .footer-bottom a:hover { color: var(--brand); }

/* ---------------------------------------------------------- detail pages */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13.5px; color: var(--muted); padding-top: 28px; }
.crumbs a:hover { color: var(--brand); }
.detail-hero { padding: 28px 0 8px; }
.detail-hero .title-row { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.detail-hero .card-icon { width: 56px; height: 56px; border-radius: 16px; }
.detail-hero .card-icon svg { width: 26px; height: 26px; }
.detail-hero .eyebrow { margin: 0 0 4px; }
.detail-hero h1 { font-size: clamp(30px, 3.6vw, 44px); }
.detail-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.access-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; padding: 12px 14px; border-radius: 12px; background: var(--brand-tint); border: 1px solid var(--brand-line); font-size: 14px; color: var(--text-2); max-width: 760px; }
.access-note svg { width: 17px; height: 17px; flex: none; color: var(--brand); margin-top: 3px; }
.detail-grid { display: grid; gap: 32px; padding: 32px 0 72px; }
@media (min-width: 960px) { .detail-grid { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; gap: 48px; } }
.detail-main > section + section { margin-top: 44px; }
.detail-main h2 { font-size: 24px; margin-bottom: 14px; }
.prose p { font-size: 16px; } .prose p + p { margin-top: 12px; }
.highlights { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.highlight { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 18px; }
.highlight b { display: block; color: var(--text); margin-bottom: 5px; font-size: 15px; }
.highlight p { font-size: 14px; }
.lens { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; }
.step { display: grid; grid-template-columns: 36px 1fr; gap: 16px; padding: 14px 0; }
.step + .step { border-top: 1px solid var(--border); }
.step .n { width: 34px; height: 34px; border-radius: 10px; background: var(--brand-tint); border: 1px solid var(--brand-line); color: var(--brand); font-weight: 700; font-size: 13.5px; display: grid; place-items: center; }
.step b { display: block; color: var(--text); font-size: 15.5px; margin-bottom: 3px; }
.step p { font-size: 14.5px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checks li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; font-size: 14.5px; color: var(--text-2); }
.checks svg { width: 18px; height: 18px; color: var(--brand); margin-top: 3px; }
.money { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 18px; display: grid; grid-template-columns: 42px 1fr; gap: 14px; }
.money .ico { width: 42px; height: 42px; border-radius: 12px; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; }
.money .ico svg { width: 20px; height: 20px; }
.money b { display: block; color: var(--text); margin-bottom: 4px; }
.money p { font-size: 14.5px; }
.faq { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.faq + .faq { margin-top: 10px; }
.faq summary { list-style: none; cursor: pointer; padding: 15px 18px; font-weight: 600; color: var(--text); display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 600; }
.faq[open] summary::after { content: "–"; }
.faq .a { padding: 0 18px 16px; font-size: 14.5px; color: var(--text-2); }
.related { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.related a { display: flex; gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); transition: border-color .15s; }
.related a:hover { border-color: var(--brand-line); }
.related .card-icon { width: 38px; height: 38px; border-radius: 11px; }
.related .card-icon svg { width: 18px; height: 18px; }
.related b { font-size: 14.5px; color: var(--text); display: block; }
.related span { font-size: 12.5px; color: var(--muted); }
.access-card { position: sticky; top: 92px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 24px; display: grid; gap: 16px; box-shadow: var(--shadow); }
.access-card h3 { font-size: 17px; }
.access-card .steps .step { padding: 10px 0; grid-template-columns: 28px 1fr; gap: 12px; }
.access-card .step .n { width: 28px; height: 28px; border-radius: 8px; font-size: 12.5px; }
.access-card .step b { font-size: 14.5px; }
.access-card .step p { font-size: 13.5px; }
.access-card .fine { font-size: 12.5px; color: var(--muted); }
.kv { display: grid; gap: 4px; padding: 14px; border-radius: 12px; background: var(--surface-2); }
.kv span { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.kv b { font-size: 14px; color: var(--text); font-weight: 600; }
.cta-panel { background: var(--navy); color: #fff; border-radius: var(--r-xl); padding: 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.cta-panel h2 { color: #fff; font-size: 24px; margin-bottom: 6px; }
.cta-panel p { color: var(--navy-text); font-size: 14.5px; max-width: 56ch; }
.cta-panel .btn-primary { background: #14b8a6; color: #06201e; box-shadow: none; }
.cta-panel .btn-primary:hover { background: #2dd4bf; }

/* -------------------------------------------------------------- list pages */
.page-hero { padding: 48px 0 12px; }
.page-hero h1 { font-size: clamp(30px, 3.6vw, 44px); }
.page-hero .lead { margin-top: 14px; }
.group + .group { margin-top: 44px; }
.group-head { margin-bottom: 18px; }
.group-head h2 { font-size: 22px; }
.group-head p { font-size: 15px; margin-top: 4px; }

/* ---------------------------------------------------------------- pricing */
.price-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.price-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.price-card .name { font-weight: 700; color: var(--text); font-size: 17px; letter-spacing: -0.01em; }
.price-num { font-size: 34px; font-weight: 800; color: var(--brand); line-height: 1; letter-spacing: -0.02em; }
.price-num small { font-size: 13.5px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.price-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.price-card li { display: grid; grid-template-columns: 16px 1fr; gap: 9px; font-size: 14px; color: var(--text-2); }
.price-card li svg { width: 15px; height: 15px; color: var(--brand); margin-top: 4px; }
.price-card .foot { margin-top: auto; padding-top: 10px; }
.payg { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.payg-row { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 16px 18px; background: var(--surface); }
@media (min-width: 720px) { .payg-row { grid-template-columns: 40px 220px 1fr; align-items: start; } }
.payg-row .card-icon { width: 38px; height: 38px; border-radius: 11px; }
.payg-row .card-icon svg { width: 18px; height: 18px; }
.payg-row b { color: var(--text); font-size: 15px; }
.payg-row p { font-size: 14px; }
.payg-row .lbl { font-weight: 600; color: var(--text); font-size: 13.5px; margin-top: 2px; }
.live-note { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.live-note.is-live .live-dot { background: #16a34a; }

/* ----------------------------------------------------------------- about */
.about-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.about-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px; }
.about-card h3 { margin-bottom: 10px; }
.about-card p { font-size: 15px; }
.ai-band { display: grid; gap: 32px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 32px; }
@media (min-width: 900px) { .ai-band { grid-template-columns: 1fr 1fr; padding: 40px; } }
.ai-points { display: grid; gap: 16px; }
.ai-point { display: grid; grid-template-columns: 40px 1fr; gap: 14px; }
.ai-point .ico { width: 40px; height: 40px; border-radius: 12px; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; }
.ai-point .ico svg { width: 19px; height: 19px; }
.ai-point b { display: block; color: var(--text); font-size: 15.5px; }
.ai-point p { font-size: 14.5px; }

/* ----------------------------------------------------------------- legal */
.legal { max-width: 760px; }
.legal h2 { font-size: 20px; margin: 30px 0 8px; }
.legal p { font-size: 15.5px; }
.updated { font-size: 13.5px; color: var(--muted); margin-top: 8px; }

/* ---------------------------------------------------------- illustration */
.illus svg { width: 100%; height: auto; }
.illus .il-surface { fill: var(--surface); }
.illus .il-surface-2 { fill: var(--surface-2); }
.illus .il-border { stroke: var(--border); }
.illus .il-text { fill: var(--text); }
.illus .il-muted { fill: var(--muted); }
.illus .il-faint { stroke: var(--border-strong); }
.illus .il-glow { fill: var(--brand-tint); }
html.dark .illus .il-glow { fill: #0f2a2a; }
@media (prefers-reduced-motion: reduce) { .illus * { animation: none !important; } .rail-track { scroll-behavior: auto; } }

/* ================================================================ polish v3 */
/* header gains depth once the page scrolls */
.site-header.scrolled { box-shadow: 0 8px 30px -18px rgba(15,23,42,.35); }
html.dark .site-header.scrolled { box-shadow: 0 8px 30px -18px rgba(0,0,0,.8); }
.skip { position: absolute; left: 16px; top: -48px; z-index: 100; background: var(--brand); color: #fff; padding: 10px 14px; border-radius: 10px; font-weight: 600; }
.skip:focus { top: 12px; }

/* hero refinements */
.hero .trust { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px 28px; }
.hero .trust div { font-size: 13.5px; white-space: nowrap; }
@media (max-width: 640px) { .hero .trust { grid-template-columns: 1fr; } }
.ecg { position: absolute; left: 0; right: 0; bottom: -1px; height: 44px; pointer-events: none; }
.ecg svg { width: 100%; height: 44px; }
.ecg path { fill: none; stroke: var(--brand-bright); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: .55; stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: ecgdraw 7s linear infinite; }
@keyframes ecgdraw { 0% { stroke-dashoffset: 1400; opacity: 0; } 8% { opacity: .55; } 75% { stroke-dashoffset: 0; opacity: .55; } 100% { stroke-dashoffset: 0; opacity: 0; } }

/* gradient icon chips */
.card-icon, .payg-row .card-icon, .related .card-icon, .detail-hero .card-icon { background: linear-gradient(145deg, var(--c), color-mix(in srgb, var(--c) 72%, #0f172a)); box-shadow: inset 0 1px 0 rgba(255,255,255,.18); }

/* scroll reveal */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; } .reveal[data-delay="2"] { transition-delay: .16s; } .reveal[data-delay="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .ecg path { animation: none; stroke-dashoffset: 0; } }

/* ------------------------------------------------------- walkthrough */
.walk { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .walk { grid-template-columns: minmax(0, 1fr) 380px; gap: 64px; } }
.wt-steps { display: grid; gap: 8px; }
.wt-step { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 18px 18px 18px 16px; border-radius: 16px; text-align: left; border: 1px solid transparent; transition: background .2s, border-color .2s; overflow: hidden; }
.wt-step:hover { background: var(--surface); border-color: var(--border); }
.wt-step.active { background: var(--surface); border-color: var(--border); box-shadow: var(--shadow); }
.wt-step .ico { width: 44px; height: 44px; border-radius: 13px; background: var(--surface-2); color: var(--muted); display: grid; place-items: center; transition: background .2s, color .2s; }
.wt-step .ico svg { width: 21px; height: 21px; }
.wt-step.active .ico { background: var(--brand); color: #fff; }
.wt-step b { display: block; font-size: 16.5px; color: var(--text); letter-spacing: -0.01em; }
.wt-step p { font-size: 14px; margin-top: 4px; color: var(--muted); transition: color .2s; }
.wt-step.active p { color: var(--text-2); }
.wt-step .bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--brand-line); transform-origin: left; transform: scaleX(0); }
.wt-step.active .bar { animation: wtbar var(--wt-ms, 4200ms) linear forwards; background: var(--brand); }
@keyframes wtbar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.wt-step.paused .bar { animation-play-state: paused; }
.phone-wrap { display: grid; justify-items: center; gap: 12px; }
.phone { position: relative; width: 300px; height: 620px; border-radius: 44px; background: #0f172a; padding: 12px; box-shadow: var(--shadow-lg), inset 0 0 0 2px #334155; }
.phone::before { content: ""; position: absolute; top: 22px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; border-radius: 14px; background: #0f172a; z-index: 3; }
.screen { position: relative; width: 100%; height: 100%; border-radius: 34px; overflow: hidden; background: var(--page); }
.scr { position: absolute; inset: 0; padding: 60px 16px 18px; opacity: 0; transform: translateX(28px); transition: opacity .45s ease, transform .45s ease; pointer-events: none; display: flex; flex-direction: column; gap: 10px; }
.scr.active { opacity: 1; transform: none; }
.scr.leaving { transform: translateX(-28px); }
.m-title { font-size: 15px; font-weight: 700; color: var(--text); letter-spacing: -0.01em; }
.m-sub { font-size: 11.5px; color: var(--muted); }
.m-search { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: 11px; background: var(--surface); border: 1px solid var(--border); font-size: 12.5px; font-weight: 600; color: var(--text); }
.m-search svg { width: 15px; height: 15px; color: var(--brand); }
.m-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px; display: grid; gap: 4px; transition: border-color .2s; }
.m-card.sel { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(20,184,166,.15); }
.m-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.m-name { font-size: 12.5px; font-weight: 700; color: var(--text); }
.m-meta { font-size: 11px; color: var(--muted); }
.m-price { font-size: 13px; font-weight: 800; color: var(--brand); }
.m-star { color: #f59e0b; font-size: 11px; font-weight: 700; }
.m-pill { display: inline-flex; padding: 2px 8px; border-radius: 999px; font-size: 10px; font-weight: 700; background: var(--brand-soft); color: var(--brand); }
html.dark .m-pill { color: #99f6e4; }
.m-pill.warn { background: #fef3c7; color: #92400e; }
.m-days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.m-day { text-align: center; padding: 8px 0; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); font-size: 11px; color: var(--muted); }
.m-day b { display: block; font-size: 14px; color: var(--text); }
.m-day.sel { background: var(--brand); border-color: var(--brand); color: #ccfbf1; } .m-day.sel b { color: #fff; }
.m-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.m-slot { text-align: center; padding: 9px 0; border-radius: 9px; background: var(--surface); border: 1px solid var(--border); font-size: 11.5px; font-weight: 600; color: var(--text); }
.m-slot.off { opacity: .35; text-decoration: line-through; }
.m-slot.sel { border-color: var(--brand); color: var(--brand); background: var(--brand-tint); }
.m-btn { margin-top: auto; height: 40px; border-radius: 11px; background: var(--brand); color: #fff; font-size: 13px; font-weight: 700; display: grid; place-items: center; }
.m-check { width: 68px; height: 68px; border-radius: 50%; background: var(--brand); display: grid; place-items: center; margin: 14px auto 6px; color: #fff; transform: scale(.4); opacity: 0; }
.m-check svg { width: 34px; height: 34px; }
.scr.active .m-check { animation: mcheck .6s cubic-bezier(.2,1.4,.4,1) .3s forwards; }
@keyframes mcheck { to { transform: scale(1); opacity: 1; } }
.m-center { text-align: center; }
.m-ref { font: 600 11px ui-monospace, monospace; background: var(--surface-2); padding: 3px 8px; border-radius: 6px; color: var(--text-2); }
.m-lines { display: grid; gap: 6px; margin-top: 2px; }
.m-lines i { display: block; height: 7px; border-radius: 4px; background: var(--surface-2); }
.m-lines i:nth-child(2) { width: 85%; } .m-lines i:nth-child(3) { width: 60%; }
.m-sign { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: #f0fdfa; border: 1px solid #99f6e4; font-size: 11.5px; color: #134e4a; opacity: 0; transform: translateY(6px); }
html.dark .m-sign { background: #0f2a2a; border-color: #0f766e; color: #99f6e4; }
.m-sign svg { width: 16px; height: 16px; color: #0f766e; flex: none; }
.scr.active .m-sign { animation: msign .5s ease 1.1s forwards; }
@keyframes msign { to { opacity: 1; transform: none; } }
.m-scan { height: 96px; border-radius: 12px; background: radial-gradient(circle at 50% 50%, #1e3a5f, #0b1220); position: relative; overflow: hidden; }
.m-scan::before { content: ""; position: absolute; inset: 14px 40px; border: 2px solid #5eead4; border-radius: 50%; opacity: .8; }
.m-scan::after { content: ""; position: absolute; left: 0; right: 0; height: 22px; top: -22px; background: linear-gradient(to bottom, transparent, rgba(94,234,212,.7), transparent); animation: mscan 2.4s ease-in-out infinite; }
@keyframes mscan { to { top: 100%; } }
.wt-note { font-size: 12px; color: var(--muted); text-align: center; }

/* back to top */
.to-top { position: fixed; right: 24px; bottom: 24px; z-index: 30; width: 44px; height: 44px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); color: var(--text); box-shadow: var(--shadow-lg); display: grid; place-items: center; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .25s, transform .25s, border-color .15s, color .15s; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { border-color: var(--brand); color: var(--brand); }
.to-top svg { width: 18px; height: 18px; }

/* ================================================================ v4: photos */
/* image cards, as on the patient portal's Services tab */
.card.has-media { padding: 0; overflow: hidden; min-height: 0; }
.card-media { position: relative; aspect-ratio: 16 / 10; background: var(--surface-2); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,23,42,.72) 0%, rgba(15,23,42,.15) 55%, transparent 100%); }
.card-media .card-icon { position: absolute; left: 14px; top: 14px; z-index: 2; width: 40px; height: 40px; border-radius: 12px; box-shadow: 0 6px 16px -6px rgba(0,0,0,.5); }
.card-media .card-icon svg { width: 19px; height: 19px; }
.card-media .card-title { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 2; color: #fff; font-size: 18px; font-weight: 800; letter-spacing: -0.015em; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }
.card-body .card-sub { margin-top: 0; font-size: 14px; color: var(--text-2); }
.card-body .card-sub { margin-bottom: 14px; }
.card-body .card-foot { padding-top: 14px; margin-top: auto; border-top: 1px solid var(--border); }
.band-dark .card-body .card-foot { border-color: var(--navy-line); }
.rail-track.single { grid-template-rows: 1fr; --col: 324px; }
@media (max-width: 640px) { .rail-track.single { --col: 280px; } }

/* hero: real photo with floating live status cards */
.hero-photo { position: relative; aspect-ratio: 5 / 4; border-radius: 28px; overflow: visible; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 35%; border-radius: 28px; box-shadow: var(--shadow-lg); }
.hero-photo .shade { position: absolute; inset: 0; border-radius: 28px; background: linear-gradient(to top, rgba(15,23,42,.55), transparent 55%); pointer-events: none; }
.hero-photo .ring { position: absolute; inset: -14px; border-radius: 40px; border: 1px solid var(--border); pointer-events: none; }
.float { position: absolute; display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px); border: 1px solid var(--border); box-shadow: var(--shadow-lg); min-width: 230px; opacity: 0; animation: floatin .7s ease forwards; }
.float .fi { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: #fff; background: var(--brand); }
.float .fi svg { width: 18px; height: 18px; }
.float b { display: block; font-size: 13.5px; color: var(--text); letter-spacing: -0.01em; line-height: 1.2; }
.float small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.float .prog { grid-column: 1 / -1; height: 4px; border-radius: 3px; background: var(--surface-2); overflow: hidden; margin-top: -2px; }
.float .prog i { display: block; height: 100%; width: 40%; border-radius: 3px; background: linear-gradient(90deg, var(--brand), var(--brand-bright)); animation: prog 3.2s ease-in-out infinite; }
@keyframes prog { 0% { width: 8%; } 70% { width: 100%; } 100% { width: 100%; } }
.fc-1 { left: -28px; top: 26px; animation-delay: .3s; }
.fc-2 { right: -22px; bottom: 28px; animation-delay: 1.3s; }
.fc-2 .fi { background: #0891b2; }
.fc-3 { right: -18px; top: 38%; animation-delay: .8s; min-width: 210px; }
.fc-3 .fi { background: #0f172a; }
html.dark .fc-3 .fi { background: #1e293b; }
.fc-3 .ld { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #16a34a; margin-right: 6px; box-shadow: 0 0 0 0 rgba(22,163,74,.5); animation: ping 1.8s ease-out infinite; vertical-align: middle; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(22,163,74,.5); } 100% { box-shadow: 0 0 0 9px rgba(22,163,74,0); } }
@keyframes floatin { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.float.bobbing { animation: floatin .7s ease forwards, bobf 6s ease-in-out 1.2s infinite; }
@keyframes bobf { 0%,100% { translate: 0 0; } 50% { translate: 0 -6px; } }
@media (max-width: 999px) { .hero-photo { max-width: 520px; margin: 0 auto; } .float { min-width: 0; padding: 10px 12px; } .fc-1 { left: 10px; top: 14px; } .fc-2 { right: 10px; bottom: 14px; } .fc-3 { display: none; } }
@media (prefers-reduced-motion: reduce) { .float { opacity: 1; animation: none; } .float .prog i { animation: none; width: 70%; } }

/* compact walkthrough */
.phone { width: 270px; height: 540px; border-radius: 40px; padding: 10px; }
.screen { border-radius: 31px; }
.scr { padding: 52px 14px 16px; gap: 9px; }
.phone::before { top: 18px; width: 84px; height: 22px; }
.wt-step { padding: 14px 16px 14px 14px; gap: 14px; grid-template-columns: 40px 1fr; }
.wt-step .ico { width: 40px; height: 40px; }
.wt-step b { font-size: 16px; }
@media (min-width: 960px) { .walk { grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; } }

/* service detail hero with the service photo */
.detail-top { display: grid; gap: 28px; align-items: center; }
@media (min-width: 960px) { .detail-top { grid-template-columns: minmax(0, 1fr) 420px; gap: 48px; } }
.detail-photo { position: relative; aspect-ratio: 16 / 10; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); }
.detail-photo img { width: 100%; height: 100%; object-fit: cover; }
.detail-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,23,42,.45), transparent 60%); }
.detail-photo .pill { position: absolute; left: 16px; bottom: 16px; z-index: 2; background: rgba(255,255,255,.92); color: #0f766e; }

@media (max-width: 640px) {
  .eyebrow { font-size: 11.5px; letter-spacing: .07em; }
  .search-hero .search-input { height: 54px; padding-right: 104px; font-size: 15px; }
  .search-hero .search-go { height: 40px; top: 7px; padding: 0 14px; font-size: 14px; }
}

/* ================================================================ v5 */
/* rhythm: tighter, even */
.section { padding: 64px 0; }
.band-dark { padding: 64px 0; }
.section-head { margin-bottom: 24px; }
.hero-inner { padding-top: 40px; padding-bottom: 48px; gap: 32px; }
@media (min-width: 1000px) { .hero-inner { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 56px; padding-top: 52px; padding-bottom: 60px; } }
.hero .eyebrow { margin-bottom: 10px; }
.hero .lead { margin-top: 14px; font-size: 17px; }
.hero .search { margin-top: 22px; }
.chips { margin-top: 12px; }
.trust { margin-top: 22px; padding-top: 16px; }
.ecg { height: 32px; } .ecg svg { height: 32px; }

/* hero photo: 4:3 frame, two SOLID status cards that sit on the frame edge, never on faces */
.hero-photo { aspect-ratio: 4 / 3; }
.hero-photo img { object-position: 50% 45%; }
.hero-photo .shade { background: linear-gradient(to top, rgba(15,23,42,.42), transparent 45%); }
.float { background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; border-color: var(--border); }
.fc-1 { left: -28px; bottom: 30px; top: auto; animation-delay: .4s; }
.fc-2 { right: -22px; top: 26px; bottom: auto; animation-delay: 1.1s; }
.fc-3 { display: none; }
.photo-tag { position: absolute; left: 18px; top: 18px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: rgba(15,23,42,.55); color: #fff; font-size: 12.5px; font-weight: 600; backdrop-filter: blur(6px); }
.photo-tag .ld { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgba(52,211,153,.6); animation: ping 1.8s ease-out infinite; }
@media (max-width: 999px) { .fc-1 { left: 10px; bottom: 12px; } .fc-2 { right: 10px; top: 12px; } }

/* carousel: exactly three cards per view on desktop, two on tablet, ~1.15 on phones */
.rail-track.single { --gap: 20px; gap: var(--gap); grid-auto-columns: calc((100% - 2 * var(--gap)) / 3); }
@media (max-width: 1000px) { .rail-track.single { grid-auto-columns: calc((100% - var(--gap)) / 2); } }
@media (max-width: 640px) { .rail-track.single { --gap: 14px; grid-auto-columns: 84%; } }
.rail-dots { margin-top: 20px; }

/* photo cards */
.card-media .card-title { font-size: 19px; }
.card-body { padding: 16px 18px 16px; }
.card-body .card-sub { -webkit-line-clamp: 2; min-height: 42px; margin-bottom: 12px; }
.card-body .card-foot { padding-top: 12px; }
.band-dark .card-media { background: #0b1220; }

/* list pages: 3 per row */
@media (min-width: 1000px) { .card-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.page-hero { padding: 36px 0 8px; }

/* walkthrough: aligned to the top, no dead zone */
.walk { align-items: start; }
.wt-steps { gap: 10px; }
@media (min-width: 960px) { .walk { grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; } }
.phone { width: 256px; height: 520px; border-radius: 38px; }
.section-tint { background: linear-gradient(180deg, var(--brand-tint), transparent 70%); border-top: 1px solid var(--border); }
html.dark .section-tint { background: linear-gradient(180deg, #0f2a2a, transparent 70%); }

/* page banners (pricing, about, partner/service detail) */
.banner { position: relative; display: grid; gap: 28px; align-items: center; padding: 36px 0 8px; }
@media (min-width: 960px) { .banner { grid-template-columns: minmax(0, 1fr) 460px; gap: 56px; } }
.banner-photo { position: relative; aspect-ratio: 16 / 10; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); }
.banner-photo img { width: 100%; height: 100%; object-fit: cover; }
.banner-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,23,42,.45), transparent 55%); }
.banner-photo .cap { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 2; color: #fff; font-size: 14px; font-weight: 600; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.banner .lead { margin-top: 14px; }

/* stat tiles */
.stats { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { border-radius: 18px; padding: 20px; color: #fff; background: var(--c, var(--brand)); background-image: linear-gradient(145deg, rgba(255,255,255,.14), transparent 60%); }
.stat b { display: block; font-size: 30px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.stat span { display: block; margin-top: 8px; font-size: 13.5px; opacity: .9; font-weight: 500; }

/* pricing: coloured plan cards */
.price-card { position: relative; overflow: hidden; border-top: 4px solid var(--c, var(--brand)); }
.price-card .name { display: flex; align-items: center; gap: 10px; }
.price-card .pc-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: var(--c, var(--brand)); }
.price-card .pc-ico svg { width: 17px; height: 17px; }
.price-num { color: var(--c, var(--brand)); }
.price-card .foot .btn-ghost { border-color: var(--border); color: var(--c, var(--brand)); }
.price-card .foot .btn-ghost:hover { border-color: var(--c, var(--brand)); background: transparent; }
.payg-row .lbl { color: var(--brand); }

/* about: colourful cards */
.about-card { position: relative; }
.about-card .ac-ico { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; color: #fff; background: var(--c, var(--brand)); margin-bottom: 14px; }
.about-card .ac-ico svg { width: 21px; height: 21px; }
.photo-strip { display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); }
.photo-strip figure { margin: 0; position: relative; aspect-ratio: 16 / 10; border-radius: 18px; overflow: hidden; }
.photo-strip img { width: 100%; height: 100%; object-fit: cover; }
.photo-strip figcaption { position: absolute; left: 14px; right: 14px; bottom: 12px; color: #fff; font-size: 13px; font-weight: 600; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.photo-strip figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,23,42,.55), transparent 50%); }
@media (max-width: 640px) { .photo-strip { grid-template-columns: 1fr; } }

/* credits */
.credits { display: grid; gap: 10px; }
.credit { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; padding: 10px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.credit img { width: 96px; aspect-ratio: 16/10; object-fit: cover; border-radius: 8px; }
.credit b { font-size: 14px; color: var(--text); display: block; }
.credit span { font-size: 12.5px; color: var(--muted); }
.credit a { color: var(--brand); font-weight: 600; }

/* v5.1 */
@media (max-width: 999px) { .photo-tag { display: none; } }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 22px; }
.filters .chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.filters .chip[aria-pressed="true"] svg { color: #fff; }
.card-tags { margin-bottom: 8px; }
.card-tags .pill { font-size: 11.5px; padding: 3px 9px; }
.card[hidden] { display: none; }
.grid-note { font-size: 13.5px; color: var(--muted); margin-top: -8px; margin-bottom: 16px; }

/* ================================================================ v6: Health Vault hero mock */
.vault-mock { container-type: inline-size; position: relative; width: 100%; max-width: 600px; margin: 0 auto; font-family: var(--font); }
.vm-window { position: relative; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); overflow: hidden; }
.vm-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.vm-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); display: block; }
.vm-bar i:nth-child(1) { background: #f87171; } .vm-bar i:nth-child(2) { background: #fbbf24; } .vm-bar i:nth-child(3) { background: #34d399; }
.vm-url { margin-left: 8px; flex: 1; height: 24px; border-radius: 7px; background: var(--surface); border: 1px solid var(--border); font-size: 11.5px; color: var(--muted); display: flex; align-items: center; padding: 0 10px; gap: 6px; font-weight: 500; }
.vm-url svg { width: 12px; height: 12px; color: var(--brand); }
.vm-body { display: grid; grid-template-columns: 36% 1fr; min-height: 340px; }
.vm-side { border-right: 1px solid var(--border); padding: 14px 12px; display: grid; gap: 8px; align-content: start; background: var(--page); }
.vm-h { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 2px; display: flex; justify-content: space-between; }
.vm-doc { display: grid; grid-template-columns: 26px 1fr; gap: 8px; align-items: center; padding: 8px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); }
.vm-doc.sel { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(20,184,166,.14); }
.vm-doc .fi { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; color: #fff; font-size: 8.5px; font-weight: 800; }
.vm-doc b { display: block; font-size: 11.5px; color: var(--text); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vm-doc span { display: block; font-size: 10px; color: var(--muted); margin-top: 1px; }
.vm-doc .st { display: inline-block; margin-top: 3px; font-size: 9.5px; font-weight: 700; padding: 1px 6px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); }
html.dark .vm-doc .st { color: #99f6e4; }
.vm-doc .st.warn { background: #fef3c7; color: #92400e; }
.vm-doc .st.info { background: #dbeafe; color: #1d4ed8; }
.vm-upload { margin-top: 4px; border: 1.5px dashed var(--border-strong); border-radius: 10px; padding: 10px; text-align: center; font-size: 10.5px; color: var(--muted); }
.vm-upload .pb { height: 4px; border-radius: 3px; background: var(--surface-2); overflow: hidden; margin-top: 6px; }
.vm-upload .pb i { display: block; height: 100%; width: 0; background: var(--brand); animation: vmup 9s ease-in-out infinite; }
@keyframes vmup { 0% { width: 0; } 10% { width: 100%; } 100% { width: 100%; } }
.vm-main { padding: 14px 16px; display: grid; gap: 10px; align-content: start; }
.vm-title { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.vm-title b { font-size: 13.5px; color: var(--text); letter-spacing: -0.01em; }
.vm-title span { font-size: 10.5px; color: var(--muted); }
.vm-ai { border-radius: 12px; border: 1px solid var(--border); padding: 10px 12px; background: var(--surface); position: relative; overflow: hidden; }
.vm-ai .lbl { display: flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .06em; }
.vm-ai .lbl svg { width: 12px; height: 12px; }
.vm-ai .lbl .st { margin-left: auto; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--muted); }
.vm-ai .lbl .st .ana { animation: vmana 9s infinite; } .vm-ai .lbl .st .done { animation: vmdone 9s infinite; position: absolute; right: 12px; }
@keyframes vmana { 0%,38% { opacity: 1; } 42%,100% { opacity: 0; } }
@keyframes vmdone { 0%,40% { opacity: 0; } 46%,100% { opacity: 1; } }
.vm-ai .sc { height: 3px; border-radius: 2px; background: var(--surface-2); margin: 8px 0 8px; overflow: hidden; }
.vm-ai .sc i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), var(--brand-bright)); animation: vmscan 9s ease-in-out infinite; }
@keyframes vmscan { 0%,10% { width: 0; } 40% { width: 100%; } 100% { width: 100%; } }
.vm-ai p { font-size: 11.5px; line-height: 1.45; color: var(--text-2); margin: 0; }
.vm-ai p.l { opacity: 0; animation: vmline 9s ease infinite; }
.vm-ai p.l:nth-of-type(2) { animation-delay: .35s; } .vm-ai p.l:nth-of-type(3) { animation-delay: .7s; }
@keyframes vmline { 0%,40% { opacity: 0; transform: translateY(4px); } 46%,100% { opacity: 1; transform: none; } }
.vm-ai p.l b { color: var(--text); }
.vm-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.vm-chips span { font-size: 9.5px; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); opacity: 0; animation: vmline 9s ease infinite; animation-delay: .9s; }
.vm-chips span.ok { background: #dcfce7; color: #166534; } .vm-chips span.att { background: #fef3c7; color: #92400e; }
html.dark .vm-chips span.ok { background: #14532d; color: #bbf7d0; } html.dark .vm-chips span.att { background: #78350f; color: #fde68a; }
.vm-verify { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; padding: 9px 11px; border-radius: 12px; background: #f0fdfa; border: 1px solid #99f6e4; opacity: 0; transform: translateY(6px); animation: vmpop 9s cubic-bezier(.2,1.2,.4,1) infinite; }
html.dark .vm-verify { background: #0f2a2a; border-color: #0f766e; }
@keyframes vmpop { 0%,58% { opacity: 0; transform: translateY(6px) scale(.98); } 64%,100% { opacity: 1; transform: none; } }
.vm-verify .av { width: 30px; height: 30px; border-radius: 50%; background: #0f766e; color: #fff; display: grid; place-items: center; font-size: 10px; font-weight: 800; }
.vm-verify b { display: block; font-size: 11.5px; color: #134e4a; } html.dark .vm-verify b { color: #99f6e4; }
.vm-verify span { display: block; font-size: 10px; color: #0f766e; }
.vm-verify .chk { width: 20px; height: 20px; border-radius: 50%; background: #0f766e; display: grid; place-items: center; } .vm-verify .chk svg { width: 12px; height: 12px; color: #fff; }
.vm-row { display: flex; gap: 8px; align-items: center; }
.vm-btn { height: 30px; padding: 0 12px; border-radius: 8px; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.vm-btn.p { background: var(--brand); color: #fff; } html.dark .vm-btn.p { color: #06201e; }
.vm-btn.o { border: 1px solid var(--border); color: var(--text-2); background: var(--surface); }
.vm-btn svg { width: 12px; height: 12px; }
.vm-shared { margin-left: auto; font-size: 10.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 5px; opacity: 0; animation: vmline 9s ease infinite; animation-delay: 1.6s; }
.vm-shared i { width: 7px; height: 7px; border-radius: 50%; background: #16a34a; display: inline-block; }
.vm-tl { border-top: 1px solid var(--border); padding: 10px 16px 12px; background: var(--page); }
.vm-tl .vm-h { margin-bottom: 8px; }
.vm-track { position: relative; height: 26px; }
.vm-track::before { content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 2px; background: var(--border-strong); border-radius: 1px; }
.vm-track .pt { position: absolute; top: 3px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2.5px solid var(--faint); }
.vm-track .pt.c { border-color: var(--brand); background: var(--brand); }
.vm-track .pt.n { border-color: #7c3aed; background: #7c3aed; animation: vmnew 9s ease infinite; }
@keyframes vmnew { 0%,40% { transform: scale(0); } 48%,100% { transform: scale(1); } }
.vm-track .yr { position: absolute; top: 18px; font-size: 9px; color: var(--muted); font-weight: 600; transform: translateX(-50%); }
.vm-float { position: absolute; z-index: 3; display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); opacity: 0; animation: floatin .7s ease 1s forwards, bobf 6s ease-in-out 1.8s infinite; }
.vm-float .fi { width: 34px; height: 34px; border-radius: 10px; background: #7c3aed; color: #fff; display: grid; place-items: center; } .vm-float .fi svg { width: 16px; height: 16px; }
.vm-float b { display: block; font-size: 12.5px; color: var(--text); line-height: 1.2; } .vm-float small { display: block; font-size: 11px; color: var(--muted); margin-top: 1px; }
.vm-f1 { right: -22px; bottom: 54px; } .vm-f2 { left: -22px; top: 58px; } .vm-f2 .fi { background: #0891b2; }
@container (max-width: 480px) { .vm-body { grid-template-columns: 1fr; } .vm-side { display: none; } .vm-body { min-height: 0; } .vm-f2 { display: none; } .vm-f1 { right: 8px; bottom: 8px; } }
@media (prefers-reduced-motion: reduce) { .vault-mock * { animation-duration: 0s !important; animation-delay: 0s !important; } .vm-ai p.l, .vm-chips span, .vm-verify, .vm-shared, .vm-float { opacity: 1; transform: none; } .vm-ai .sc i, .vm-upload .pb i { width: 100%; } }

/* ================================================================ v6.1 audit fixes */
.detail-grid > * { min-width: 0; }
.cta-panel .btn { white-space: normal; text-align: center; }
.search-item .s { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-item > span:nth-child(2) { min-width: 0; }
/* hero mock: more room, floats off the content */
@media (min-width: 1000px) { .hero-inner { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); } }
.vault-mock { max-width: 640px; }
.vm-body { grid-template-columns: 34% 1fr; }
.vm-f1 { top: -16px; right: -22px; bottom: auto; }
.vm-f2 { left: -22px; bottom: 96px; top: auto; }
@container (max-width: 560px) { .vm-btn.o { display: none; } }
@container (max-width: 480px) { .vm-f1 { top: auto; bottom: 8px; right: 8px; } }
/* front-load the loop: analysis done by 3s, verified by 4.5s, shared by 6s */
@keyframes vmscan { 0%,4% { width: 0; } 30% { width: 100%; } 100% { width: 100%; } }
@keyframes vmana { 0%,30% { opacity: 1; } 34%,100% { opacity: 0; } }
@keyframes vmdone { 0%,32% { opacity: 0; } 36%,100% { opacity: 1; } }
@keyframes vmline { 0%,32% { opacity: 0; transform: translateY(4px); } 38%,100% { opacity: 1; transform: none; } }
@keyframes vmpop { 0%,48% { opacity: 0; transform: translateY(6px) scale(.98); } 54%,100% { opacity: 1; transform: none; } }
@keyframes vmnew { 0%,32% { transform: scale(0); } 40%,100% { transform: scale(1); } }
@keyframes vmup { 0% { width: 0; } 6% { width: 100%; } 100% { width: 100%; } }
.vm-shared { animation-delay: 1.2s; }
.vm-doc .st .ana { animation: vmana 9s infinite; } .vm-doc .st .done { animation: vmdone 9s infinite; position: absolute; left: 0; }
.vm-doc .st { position: relative; }
/* v6.2 */
.vm-doc .st { display: inline-grid; position: static; }
.vm-doc .st > span { grid-area: 1 / 1; position: static; }
.vm-ai .lbl .st { display: inline-grid; position: static; }
.vm-ai .lbl .st > span { grid-area: 1 / 1; position: static; text-align: right; }
.vm-f2 { left: -22px; top: 46%; bottom: auto; }
@container (max-width: 480px) { .vm-body { grid-template-columns: 1fr; min-height: 0; } .vm-side { display: none; } .vm-f2 { display: none; } }
/* v6.3 */
.vm-doc .st .done, .vm-doc .st .ana, .vm-ai .lbl .st .done, .vm-ai .lbl .st .ana { position: static; left: auto; right: auto; }
@container (max-width: 480px) { .vm-f1 { top: -14px; right: 8px; bottom: auto; } }
@media (max-width: 640px) { .hero .eyebrow { font-size: 11px; letter-spacing: .06em; } }

/* v7: clean photo hero */
.hero-photo .shade { background: linear-gradient(to top, rgba(15,23,42,.38), transparent 42%); }
.photo-cap { position: absolute; left: 20px; bottom: 20px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: rgba(255,255,255,.94); color: #0f172a; font-size: 13.5px; font-weight: 600; box-shadow: var(--shadow); }
.photo-cap svg { width: 16px; height: 16px; color: var(--brand); }
@media (min-width: 1000px) { .hero-inner { grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); } }

/* v8: actors illustration hero */
.hero-illus { width: 100%; max-width: 640px; margin: 0 auto; }
.hero-illus svg { width: 100%; height: auto; overflow: visible; }
@media (max-width: 999px) { .hero-illus { max-width: 460px; } }

/* ================================================================ v9 */
.hero-illus svg { filter: drop-shadow(0 24px 40px rgba(15,23,42,.10)); }
html.dark .hero-illus svg { filter: drop-shadow(0 24px 40px rgba(0,0,0,.5)); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero .chips { margin-top: 18px; }
.header-search { max-width: 520px; flex: 1; }
@media (min-width: 900px) { .header-search { display: block; } }
@media (max-width: 899px) { .header-search { display: none; } .hero-search-mobile { display: block; margin-top: 22px; } }
@media (min-width: 900px) { .hero-search-mobile { display: none; } }

/* patents & proprietary technology */
.ip-band { position: relative; overflow: hidden; border-radius: var(--r-xl); background: linear-gradient(135deg, #0f172a 0%, #134e4a 100%); color: #fff; padding: 44px; }
.ip-band::before { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(94,234,212,.28), transparent 65%); pointer-events: none; }
.ip-band .eyebrow { color: #5eead4; } .ip-band .eyebrow::before { background: #5eead4; }
.ip-band h2 { color: #fff; }
.ip-band > p { color: #cbd5e1; margin-top: 10px; max-width: 64ch; font-size: 16.5px; }
.ip-grid { display: grid; gap: 14px; margin-top: 28px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); position: relative; }
.ip-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 18px; padding: 20px; backdrop-filter: blur(6px); display: grid; gap: 10px; align-content: start; transition: background .2s, border-color .2s, transform .2s; }
.ip-card:hover { background: rgba(255,255,255,.1); border-color: rgba(94,234,212,.5); transform: translateY(-2px); }
.ip-card .ico { width: 42px; height: 42px; border-radius: 12px; background: rgba(94,234,212,.15); color: #5eead4; display: grid; place-items: center; }
.ip-card .ico svg { width: 20px; height: 20px; }
.ip-card h3 { color: #fff; font-size: 16px; }
.ip-card p { color: #cbd5e1; font-size: 14px; }
.ip-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.ip-meta span { font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: rgba(94,234,212,.14); color: #99f6e4; letter-spacing: .02em; }
.ip-meta span.num { background: rgba(255,255,255,.1); color: #e2e8f0; font-family: ui-monospace, monospace; font-weight: 600; letter-spacing: 0; }
.ip-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 26px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); }
.ip-foot p { color: #94a3b8; font-size: 13px; max-width: 70ch; }
.ip-seal { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: #fff; font-weight: 700; font-size: 14px; }
.ip-seal svg { width: 20px; height: 20px; color: #5eead4; }
@media (max-width: 640px) { .ip-band { padding: 28px 22px; } }

/* v9.1 */
.header-search { flex: 0 1 520px; min-width: 340px; max-width: 520px; margin-right: 8px; }
.search-header .search-results { min-width: 440px; }
@media (max-width: 1100px) { .header-search { min-width: 260px; } .search-header .search-results { min-width: 380px; } }
@media (max-width: 999px) { .hero-art { padding-top: 8px; } }

/* ================================================================ v10 */
/* header: logo · search | pricing · about · theme · login */
.header-search { margin-left: 8px; margin-right: 0; }
.nav { margin-left: 0; margin-right: 6px; }

/* live ticker */
.ticker { display: flex; align-items: center; gap: 12px; max-width: 620px; margin-bottom: 18px; padding: 6px 6px 6px 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.ticker-live { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
html.dark .ticker-live { color: #06201e; }
.ticker-live i { width: 7px; height: 7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 0 rgba(255,255,255,.7); animation: ping 1.6s ease-out infinite; }
html.dark .ticker-live i { background: #06201e; }
.ticker-viewport { flex: 1; min-width: 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker-track { display: inline-flex; gap: 36px; white-space: nowrap; padding-right: 36px; will-change: transform; animation: tick 46s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes tick { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.ticker-item { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.ticker-item svg { width: 15px; height: 15px; color: var(--brand); flex: none; }
@media (max-width: 640px) { .ticker { max-width: none; } .ticker-item { font-size: 12.5px; } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } .ticker-live i { animation: none; } }

/* live ECG: a repeating trace that streams like a monitor */
.ecg { height: 44px; overflow: hidden; }
.ecg svg { width: 200%; height: 44px; }
.ecg path { fill: none; stroke: var(--brand-bright); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: .7; stroke-dasharray: none; stroke-dashoffset: 0; animation: none; }
.ecg-run { animation: ecgrun 14s linear infinite; }
@keyframes ecgrun { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ecg-dot { position: absolute; right: 12%; bottom: 10px; width: 9px; height: 9px; border-radius: 50%; background: var(--brand-bright); box-shadow: 0 0 0 0 rgba(20,184,166,.6); animation: ping 1.4s ease-out infinite; }
@media (prefers-reduced-motion: reduce) { .ecg-run { animation: none; } .ecg-dot { animation: none; } }
/* v10.1: the nowrap ticker must never set the hero column's minimum width */
.hero-inner { grid-template-columns: minmax(0, 1fr); }
.hero-inner > * { min-width: 0; }
.ticker { min-width: 0; }

/* v10.2: illustration top-aligned with the text block */
@media (min-width: 1000px) { .hero-inner { align-items: start; } .hero-art { padding-top: 0; } .hero-illus { margin-top: -8px; } }
/* v10.3: v10.1's single-column rule was unscoped and overrode the desktop grid */
@media (min-width: 1000px) { .hero-inner { grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); align-items: start; } .hero-illus { margin-top: 0; } }

/* ── hero: "AI-Powered Patented Platform" badge above the illustration ─────────── */
.art-badge { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; width: max-content; max-width: 100%; margin: 0 auto 14px; padding: 9px 16px 9px 10px; border-radius: 999px; background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(120deg, #0F766E, #14B8A6 45%, #0891B2) border-box; border: 1.5px solid transparent; box-shadow: 0 10px 30px -14px rgba(15,118,110,.55); }
.art-badge-ico { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 999px; background: linear-gradient(135deg, #0F766E, #0891B2); color: #fff; flex: none; }
.art-badge-ico svg { width: 17px; height: 17px; }
.art-badge-ai { width: 26px; height: 26px; background: var(--brand-tint); color: var(--brand); }
.art-badge-ai svg { width: 14px; height: 14px; animation: badge-twinkle 2.6s ease-in-out infinite; }
.art-badge-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.art-badge-text b { font-size: 14.5px; font-weight: 800; letter-spacing: .01em; color: var(--text); white-space: nowrap; background: linear-gradient(90deg, var(--text), #0F766E 60%, #0891B2); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.art-badge-text small { margin-top: 2px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3, var(--text-2)); white-space: nowrap; }
@keyframes badge-twinkle { 0%, 100% { transform: scale(1) rotate(0); opacity: .85; } 50% { transform: scale(1.18) rotate(12deg); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .art-badge-ai svg { animation: none; } }
@media (min-width: 1000px) { .art-badge { margin-bottom: 18px; } .hero-illus { margin-top: 0; } }
@media (max-width: 640px) { .art-badge { gap: 10px; padding: 7px 12px 7px 8px; } .art-badge-text b { font-size: 13px; white-space: normal; } .art-badge-text small { font-size: 9.5px; letter-spacing: .04em; white-space: normal; } .art-badge-ai { display: none; } }
/* ── hero badge motion: breathing glow, text light-sweep, medallion ping ──────────
   Three soft loops on different periods so the badge keeps catching the eye without
   ever hard-blinking; all three stop under prefers-reduced-motion. */
.art-badge { animation: badge-glow 2.4s ease-in-out infinite; }
.art-badge::after { content: ""; position: absolute; inset: -1.5px; border-radius: inherit; pointer-events: none; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.55) 48%, rgba(255,255,255,.85) 50%, rgba(255,255,255,.55) 52%, transparent 70%); background-size: 260% 100%; background-position: 130% 0; mix-blend-mode: soft-light; animation: badge-sweep 3.6s cubic-bezier(.4,0,.2,1) infinite; }
.art-badge-text b { background-size: 220% 100%; animation: badge-text-sweep 3.6s cubic-bezier(.4,0,.2,1) infinite; }
.art-badge-ico:first-child { position: relative; isolation: isolate; }
.art-badge-ico:first-child::before, .art-badge-ico:first-child::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid #14B8A6; opacity: 0; z-index: -1; animation: badge-ping 2s cubic-bezier(0,0,.2,1) infinite; }
.art-badge-ico:first-child::after { animation-delay: 1s; }
.art-badge-ico:first-child svg { animation: badge-wiggle 2.4s ease-in-out infinite; }
@keyframes badge-glow { 0%, 100% { box-shadow: 0 10px 30px -14px rgba(15,118,110,.55), 0 0 0 0 rgba(20,184,166,.0); } 50% { box-shadow: 0 12px 34px -12px rgba(15,118,110,.75), 0 0 0 6px rgba(20,184,166,.16), 0 0 26px 2px rgba(20,184,166,.30); } }
@keyframes badge-sweep { 0%, 55% { background-position: 130% 0; } 100% { background-position: -130% 0; } }
@keyframes badge-text-sweep { 0%, 55% { background-position: 0% 0; } 100% { background-position: 100% 0; } }
@keyframes badge-ping { 0% { transform: scale(1); opacity: .75; } 80%, 100% { transform: scale(2.1); opacity: 0; } }
@keyframes badge-wiggle { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-8deg) scale(1.08); } }
html.dark .art-badge::after { mix-blend-mode: screen; opacity: .55; }
html.dark .art-badge-ico:first-child::before, html.dark .art-badge-ico:first-child::after { border-color: #5eead4; }
@media (prefers-reduced-motion: reduce) { .art-badge, .art-badge::after, .art-badge-text b, .art-badge-ico:first-child::before, .art-badge-ico:first-child::after, .art-badge-ico:first-child svg { animation: none; } .art-badge::after { display: none; } }

/* ── Instant e-Prescription band (home) + About section, 2026-11-03 ─────────────────── */
.eprx-band { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 28px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 32px 36px; position: relative; overflow: hidden; }
.eprx-band::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; background: linear-gradient(180deg, #0f766e, #0891b2); }
.eprx-band h2 { font-size: clamp(22px, 2.3vw, 30px); margin-top: 4px; }
.eprx-band > .eprx-copy > p { margin-top: 10px; max-width: 62ch; font-size: 16px; }
.eprx-points { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 18px; }
.eprx-points li { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--text-2); }
.eprx-points svg { width: 17px; height: 17px; color: var(--brand); flex-shrink: 0; }
.eprx-actions { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.eprx-actions .btn { justify-content: center; }
.eprx-about-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.eprx-about-head .lead { margin-top: 10px; max-width: 72ch; }
.eprx-about-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; align-items: start; }
html.dark .eprx-band::before { background: linear-gradient(180deg, #14b8a6, #22d3ee); }
@media (max-width: 860px) {
  .eprx-band { grid-template-columns: 1fr; padding: 24px 22px; }
  .eprx-actions { flex-direction: row; flex-wrap: wrap; }
  .eprx-about-grid { grid-template-columns: 1fr; }
}

/* ── Online Pharmacy partner page (/online-pharmacy/), 2026-11-04 ──────────────────────
   Scoped to .olp-*; reuses .banner, .steps, .highlights, .about-card, .checks, .cta-panel. */
.olp-points { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 18px; }
.olp-points li { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--text-2); }
.olp-points svg { width: 17px; height: 17px; color: #4338CA; flex-shrink: 0; }
.olp-banner .detail-actions { margin-top: 20px; }
.olp-steps { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 28px 32px; }
.olp-steps .steps { margin: 0; }
.olp-verdicts { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.olp-pricing { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 32px 36px; position: relative; overflow: hidden; }
.olp-pricing::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; background: linear-gradient(180deg, #4338CA, #6366F1); }
.olp-pricing h2 { font-size: clamp(22px, 2.3vw, 30px); margin-top: 4px; }
.olp-pricing .lead { margin-top: 10px; max-width: 62ch; }
.olp-pricing .fine { margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.olp-trust .checks { columns: 1; }
html.dark .olp-points svg { color: #A5B4FC; }
html.dark .olp-pricing::before { background: linear-gradient(180deg, #6366F1, #A5B4FC); }
@media (max-width: 860px) {
  .olp-pricing { grid-template-columns: 1fr; padding: 24px 22px; }
  .olp-steps { padding: 20px 18px; }
}
