/* Graphium Health — "AI skin" stylesheet (design language of app.graphium.ai).
   Same selectors as legacy main.css; only the visual system changed.
   Flat, Open Sans, slate-900 panels, teal interactive, red/blue brand accents.
   Legacy skin: main-legacy.css. See DESIGN-DOC-AI.md. */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: var(--font-weight-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text-on-light);
  background: #ffffff;
}
img, video { max-width: 100%; display: block; }
a { color: var(--color-accent-dark); }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: var(--font-weight-heading); color: #0f172a; line-height: 1.12; margin: 0 0 .5em; }
h1 { font-size: clamp(34px, 4.2vw, 52px); letter-spacing: -0.03em; line-height: 1.06; }
h2 { font-size: clamp(25px, 2.6vw, 38px); letter-spacing: var(--letter-spacing-h2); }
h3 { font-size: clamp(19px, 1.8vw, 26px); }
.eyebrow {
  font-size: 13px; font-weight: var(--font-weight-eyebrow);
  letter-spacing: var(--letter-spacing-eyebrow); text-transform: uppercase;
  color: var(--color-brand-red); margin: 0 0 12px;
}
.on-navy .eyebrow { color: var(--color-cyan); }
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
section { padding: clamp(56px, 6vw, 96px) 0; scroll-margin-top: 65px; }
.section-light { background: var(--color-bg-light); border-top: 1px solid var(--color-bg-light-3); border-bottom: 1px solid var(--color-bg-light-3); }
.section-navy { background: var(--color-primary); }
.section-navy, .section-navy h1, .section-navy h2, .section-navy h3 { color: var(--color-text); }
.section-navy p { color: var(--color-text-muted); }
.lede { font-size: clamp(17px, 1.3vw, 20px); }
.lede + .lede { margin-top: 10px; }
.lede b { color: inherit; font-weight: 600; }

/* Header */
.site-header { background: var(--color-primary); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(255,255,255,.08); }
.site-header .container { display: flex; align-items: center; gap: 28px; min-height: 64px; }
.site-header .logo img { height: 36px; width: auto; }
.site-nav { display: flex; flex-wrap: nowrap; gap: 4px 22px; margin-left: auto; align-items: center; }
.site-nav a { color: #e2e8f0; text-decoration: none; font-weight: 500; font-size: 14px; padding: 6px 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--color-accent-hover); }
.site-nav a.btn { padding: 9px 20px; color: #fff; margin-left: 8px; }
.site-nav a.btn:hover { color: #fff; }

/* Buttons — flat, app style */
.btn { display: inline-block; border-radius: var(--radius); padding: 13px 26px;
  font-weight: 500; font-size: 15px; text-decoration: none; transition: var(--transition);
  box-shadow: none; border: 1px solid transparent; cursor: pointer; }
.btn-primary { background: var(--color-accent); color: #fff; }
.btn-primary:hover { background: var(--color-accent-hover); }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35); }
.btn-ghost:hover { border-color: var(--color-accent-hover); color: var(--color-accent-hover); }
.btn-ghost-navy { background: #fff; color: #334155; border: 1px solid var(--color-bg-light-3); }
.btn-ghost-navy:hover { background: var(--color-bg-light); color: #0f172a; }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.cta-note { font-size: 14px; color: var(--color-text-soft); margin-top: 10px; }

/* Hero */
.hero { padding: clamp(64px, 7vw, 116px) 0; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* Proof strip — brand blue owns this band */
.proof-strip { background: var(--color-brand-blue); padding: 26px 0; }
.proof-strip .container { display: flex; flex-wrap: wrap; gap: 18px 44px; justify-content: center; }
.proof-item { text-align: center; }
.proof-item b { display: block; font-size: 26px; font-weight: 600; color: #fff; }
.proof-item span { font-size: 12px; color: #c7d2ec; text-transform: uppercase; letter-spacing: 1px; }
.proof-item a { color: #82d4ea; text-decoration: none; }

/* Cards */
.card-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-top: 36px; }
.card { background: #fff; border: 1px solid var(--color-bg-light-3); border-radius: var(--radius-card);
  padding: 26px; box-shadow: none; display: flex; flex-direction: column; }
.card h3 { margin: 0 0 12px; min-height: 2.3em; display: flex; align-items: flex-end; }
.card .media-slot { margin-bottom: 14px; }
.card p { flex: 1; }
.card p.eyebrow { flex: 0 0 auto; }
.card .price-tag { font-size: 13px; font-weight: 600; color: var(--color-brand-red); }
.card a.more { font-weight: 600; text-decoration: none; }

/* Video / media placeholder */
.media-slot { border: 1.5px dashed #cbd5e1; border-radius: var(--radius-card); background: var(--color-bg-light);
  aspect-ratio: 16/10; display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 18px; color: #64748b; }
.media-slot .label { font-size: 14px; color: #64748b; }
.media-slot .label b { display: block; font-size: 14px; font-weight: 600; color: #0f172a; margin-bottom: 6px; }
.media-slot.small { aspect-ratio: 16/9; }
.section-navy .media-slot { background: var(--color-surface); border-color: #475569; }
.section-navy .media-slot .label, .section-navy .media-slot .label b { color: #cbd5e1; }

/* Feature rows */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: clamp(28px, 3vw, 48px) 0; }
.feature-row.flip > .feature-media { order: 2; }
@media (max-width: 900px) { .feature-row, .feature-row.flip > .feature-media { grid-template-columns: 1fr; order: initial; } }

/* Quote / testimonial */
.quote { border-left: 3px solid var(--color-accent); padding: 6px 0 6px 24px; margin: 0; }
.quote p { font-size: clamp(18px, 1.5vw, 22px); font-weight: 400; color: #0f172a; }
.quote .quote-title { font-size: clamp(19px, 1.6vw, 24px); font-weight: 600; color: var(--color-accent-dark); margin: 0 0 10px; }
.quote footer { font-size: 14px; color: #64748b; }

/* FAQ */
details { border-bottom: 1px solid var(--color-bg-light-3); padding: 14px 0; }
details summary { font-weight: 600; font-size: 16px; color: #0f172a; cursor: pointer; }
details[open] summary { color: var(--color-accent-dark); }
details p { max-width: 800px; }

/* Tables */
table { border-collapse: collapse; width: 100%; margin: 24px 0; font-size: 15px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--color-bg-light-3); }
th { background: var(--color-bg-light); color: #0f172a; font-weight: 600; }

/* Persona router */
.persona { border-top: 3px solid var(--color-brand-blue); }

/* Platform capability cards: teal keyline instead of icons — color does the categorizing */
#platform .card { border-top: 3px solid var(--color-accent); }

/* Footer */
.site-footer { background: var(--color-primary-dark); color: #94a3b8; padding: 56px 0 32px; border-top: 1px solid rgba(255,255,255,.08); }
.site-footer img { height: 32px; margin-bottom: 18px; }
.site-footer a { color: #94a3b8; text-decoration: none; }
.site-footer a:hover { color: var(--color-cyan-footer); }
.footer-cols { display: grid; gap: 32px; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; }
@media (max-width: 800px) { .footer-cols { grid-template-columns: 1fr 1fr; } }
.footer-cols h4 { color: #82d4ea; font-size: 13px; text-transform: uppercase; letter-spacing: 1.5px; font-weight: 600; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li { margin: 8px 0; font-size: 14px; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }

/* Utility */
.tag { display: inline-block; background: #ecfeff; color: #0f7894; border-radius: 6px; padding: 3px 10px; font-size: 13px; font-weight: 600; margin: 2px 4px 2px 0; }
.check-list { list-style: none; padding: 0; }
.check-list li { padding-left: 28px; position: relative; margin: 10px 0; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--color-accent); font-weight: 700; }
.banner-draft { background: #fcd34d; color: #0f172a; text-align: center; font-size: 13px; font-weight: 600; padding: 6px 12px; }

/* Survey Analytics tabbed showcase (dark section on /patient-satisfaction-surveys/) */
.dash-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 32px 0 28px; }
.dash-tab { font: 500 14px 'Inter', sans-serif; color: #cbd5e1; background: transparent; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; padding: 9px 18px; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.dash-tab:hover { color: #fff; border-color: rgba(255,255,255,.55); }
.dash-tab.active { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }
.dash-scene { display: none; }
.dash-scene.active { display: block; }
.dash-scene h3 { font-size: 28px; font-weight: 600; color: #fff; margin: 0 0 10px; }
.dash-scene p { max-width: 820px; color: #cbd5e1; margin: 0 0 22px; }
.dash-scene img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid rgba(255,255,255,.14); background: #fff; }

/* Nav dropdown (Platform) */
.nav-drop { position: relative; }
/* Draw a clear triangle at a consistent size instead of a tiny font glyph. */
.nav-drop > a .caret { display: inline-block; width: 0; height: 0; margin-left: 4px; vertical-align: middle; font-size: 0; line-height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 7px solid currentColor; opacity: .9; }
.nav-drop-menu { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 8px 0; min-width: 210px; display: none; box-shadow: 0 12px 32px -14px rgba(15,23,42,.3); }
.nav-drop-menu::before { content: ""; position: absolute; top: -8px; left: 0; right: 0; height: 8px; }
.nav-drop:hover .nav-drop-menu, .nav-drop:focus-within .nav-drop-menu { display: block; }
.site-nav .nav-drop-menu a { display: block; padding: 9px 18px; color: #0f172a; font-size: 14px; }
.site-nav .nav-drop-menu a:hover { background: #f1f5f9; color: var(--color-accent-hover); }
@media (max-width: 800px) { .nav-drop-menu { position: static; transform: none; display: none; } }

/* Deep Dive search (hero) */
.cta-row .dd-hero-search { flex: 1 1 100%; }
.dd-hero-search { display: flex; flex-wrap: wrap; gap: 12px; width: 100%; max-width: 700px; margin: 0; }
.dd-hero-search input[type=search] { -webkit-appearance: none; appearance: none; }
.dd-hero-search input { flex: 1 1 320px; font: 400 17px 'Inter', sans-serif; color: #0f172a; padding: 13px 20px; border: 1px solid rgba(255,255,255,.25); border-radius: 8px; background: #fff; }
.dd-hero-search input:focus { outline: none; box-shadow: 0 0 0 3px rgba(21,152,184,.45); }
.dd-hero-search #dd-count, .dd-hero-search #dd-none { flex-basis: 100%; margin: 2px 2px 0; font-size: .92rem; color: #cbd5e1; }
.dd-hero-search #dd-none a { color: #fff; }

/* Two-column card grid (leadership) */
.card-grid.two { grid-template-columns: 1fr 1fr; }
@media (max-width: 700px) { .card-grid.two { grid-template-columns: 1fr; } }

/* QCDR measure library (Phase B) */
.m-head { background: var(--color-bg-light-2, #f1f5f9); padding: 56px 0 32px; }
.m-head h1 { font-size: clamp(26px, 3.4vw, 38px); margin: 8px 0 18px; }
.m-switch { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; }
.m-switch a { font: 500 13px 'Inter', sans-serif; color: #334155; text-decoration: none; border: 1px solid #cbd5e1; border-radius: 999px; padding: 6px 14px; }
.m-switch a:hover { border-color: var(--color-accent); color: var(--color-accent); }
.m-switch a.on { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }
.measure-doc h3.m-label { font-size: 13px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: #1598b8; margin: 34px 0 8px; }
.measure-doc table { border-collapse: collapse; width: 100%; margin: 14px 0; font-size: .9rem; display: block; overflow-x: auto; }
.measure-doc th, .measure-doc td { border: 1px solid #e2e8f0; padding: 7px 10px; text-align: left; }
.measure-doc th { background: #f8fafc; font-weight: 600; }
.measure-doc li { margin: 4px 0; }
.m-prevnext { display: flex; justify-content: space-between; gap: 16px; margin-top: 44px; padding-top: 20px; border-top: 1px solid #e2e8f0; }
.m-copyright { font-size: 11.5px; color: #94a3b8; margin-top: 36px; line-height: 1.5; }
@media print {
  .site-header, .site-footer, .banner-draft, .no-print, .m-switch, .m-prevnext { display: none !important; }
  .m-head { background: #fff; padding: 0 0 8px; }
  body { background: #fff; }
  .measure-doc table { display: table; }
  a { color: inherit; text-decoration: none; }
}

/* Measure library table + CPT search */
.m-search { margin: 0 0 26px; }
.m-search form { display: flex; flex-wrap: wrap; gap: 12px; max-width: 720px; }
.m-search input { flex: 1 1 300px; font: 400 16px 'Inter', sans-serif; color: #0f172a; padding: 12px 18px; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; }
.m-search input:focus { outline: none; border-color: var(--color-accent); box-shadow: 0 0 0 3px rgba(21,152,184,.15); }
.m-search p { margin: 10px 2px 0; font-size: .92rem; color: #475569; }
.m-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.m-table th, .m-table td { border-bottom: 1px solid #e2e8f0; padding: 12px 14px; text-align: left; vertical-align: top; }
.m-table th { font-size: 12px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: #475569; border-bottom: 2px solid #cbd5e1; }
.m-table td a.mid { font-weight: 600; white-space: nowrap; text-decoration: none; }
.m-table tr:hover td { background: #f8fafc; }
.m-attrib { font-size: 11.5px; color: #94a3b8; margin-top: 18px; }

/* Clickable manual cards */
a.card-link { display: block; text-decoration: none; color: inherit; transition: border-color .15s; }
a.card-link:hover { border-color: var(--color-accent); }
a.card-link h3 { color: var(--color-accent); }

/* Clickable card with inner links */
.card-click { cursor: pointer; transition: border-color .15s; }
.card-click:hover, .card-click:focus-visible { border-color: var(--color-accent); }
.card-click h3 { color: var(--color-accent); }

/* Program mechanics long read */
.measure-doc h2 { scroll-margin-top: 84px; margin-top: 48px; }
.measure-doc h3 { margin-top: 32px; }

/* Integration logo wall */
.logo-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin-top: 30px; }
.logo-tile { background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; height: 72px; display: flex; align-items: center; justify-content: center; padding: 12px 18px; }
.logo-tile img { max-width: 100%; max-height: 42px; width: auto; height: auto; filter: grayscale(1); opacity: .72; transition: filter .15s, opacity .15s; }
.logo-tile:hover img { filter: none; opacity: 1; }

/* Lead-gen form grid */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; margin: 26px 0 22px; }
.form-grid label { display: flex; flex-direction: column; gap: 7px; font-weight: 600; font-size: 14px; color: #0f172a; }
.form-grid input, .form-grid select { font: 400 16px 'Inter', sans-serif; color: #0f172a; padding: 11px 14px; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; }
.form-grid input:focus, .form-grid select:focus { outline: none; border-color: var(--color-accent); box-shadow: 0 0 0 3px rgba(21,152,184,.15); }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* Form preview thumbnails */
.form-thumb { width: 100%; height: auto; border: 1px solid #e2e8f0; border-radius: 8px; margin-top: 14px; }


/* Design-system alignment (graphium.ai family), 2026-09-01 */
.eyebrow { font-size: 12px; display: inline-flex; align-items: center; gap: 8px; }
.eyebrow::before { content: ""; width: 9px; height: 10.4px; background: currentColor; clip-path: var(--clip-hex); flex: 0 0 auto; }
.btn-primary { clip-path: var(--clip-chamfer); }
/* Red is graphium.ai's CTA colour. On this site it appears on exactly ONE control: the hand-off to graphium.ai. */
.btn-brand { background: var(--color-brand-red); color: #fff; clip-path: var(--clip-chamfer); }
.btn-brand:hover { background: #b31d25; color: #fff; }

/* Footprint map band: continues the hero's dark field into the proof strip */
.footprint { background: #111725; padding: 0 0 8px; }
.footprint img { display: block; width: 100%; max-width: 1100px; height: auto; margin: 0 auto; }

/* Product video slots */
.hero-media { display: flex; justify-content: center; align-items: center; }
.vid-hero { display: block; height: 600px; aspect-ratio: 3 / 4; max-width: 100%; width: auto; border: 0; background: transparent; }
.card-media { display: flex; justify-content: center; margin-bottom: 14px; }
.vid-card, .img-card { display: block; max-height: 300px; max-width: 100%; width: auto; border-radius: 10px; }
@media (max-width: 900px) { .vid-hero { height: 420px; } }
.hero-diagram { display: block; width: 100%; max-width: 620px; height: auto; border-radius: 12px; border: 1px solid rgba(255,255,255,.1); }
.img-card.img-wide { max-height: none; width: 100%; border: 1px solid #e2e8f0; }

/* Consistent prose measure for intro paragraphs in full-width sections */
.container:not(.narrow) > p { max-width: 780px; }

/* Same-background section following another: collapse the doubled gap */
.section-compact { padding-top: 0; }

/* AI nav item + external-link arrow */
.nav-ai { display: inline-flex; align-items: center; gap: 6px; }
.ai-spark { height: 15px; width: auto; display: inline-block; }
.btn .ext { vertical-align: -2px; margin-left: 6px; }
.scene-video { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid rgba(255,255,255,.14); background: #fff; aspect-ratio: 8 / 5; }

/* Our Story hero photo (2026-09-10) */
.fig-hero { margin: 0; max-width: 620px; width: 100%; }
.img-hero { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid rgba(255,255,255,.12); }
.fig-hero figcaption { margin-top: 10px; font-size: 13px; color: #94a3b8; text-align: center; }

/* Our Story milestones + photos (2026-09-10) */
.milestones { display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; align-items: start; }
.milestones .check-list { margin: 0; }
.milestone-photos { display: grid; gap: 18px; position: sticky; top: 90px; }
.milestone-photos figure { margin: 0; }
.milestone-photos img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid #e2e8f0; }
.milestone-photos figcaption { margin-top: 8px; font-size: 13px; color: #64748b; }
@media (max-width: 800px) { .milestones { grid-template-columns: 1fr; } .milestone-photos { position: static; } }

/* portrait phone video inside a feature row (2026-09-10) */
.vid-phone, .img-phone { display: block; height: 560px; width: auto; max-width: 100%; margin: 0 auto; border-radius: 18px; border: 1px solid rgba(15,23,42,.12); }
.section-navy .vid-phone { border-color: rgba(255,255,255,.14); }
@media (max-width: 900px) { .vid-phone, .img-phone { height: 440px; } }

/* billing vendor tiles (2026-09-11) */
.vendor-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-top: 26px; }
.vendor-tile { display: flex; flex-direction: column; gap: 10px; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 18px; text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s; }
.vendor-tile:hover { border-color: #94a3b8; }
.vendor-logo { display: flex; align-items: center; justify-content: center; height: 56px; }
.vendor-logo img { max-height: 44px; max-width: 100%; width: auto; height: auto; }
.vendor-logo .vendor-name { display: none; font-family: var(--font-display, inherit); font-weight: 600; font-size: 20px; color: #0f172a; letter-spacing: -0.01em; }
.vendor-logo.nologo .vendor-name { display: block; }
.vendor-note { font-size: 14px; color: #475569; line-height: 1.45; }

.img-diagram { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid #e2e8f0; }

/* ---------- Mobile navigation + responsive pass (2026-09-11) ---------- */
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; padding: 10px; background: transparent; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; }
.nav-toggle span { display: block; height: 2px; background: #e2e8f0; border-radius: 2px; transition: transform .2s, opacity .2s; }
.site-header.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 1080px) {
  .site-header .container { gap: 12px; min-height: 60px; }
  .site-header .logo img { height: 30px; }
  .nav-toggle { display: flex; }
  .site-nav { display: none; }
  .site-header.open .site-nav { display: flex; flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 0; position: fixed; left: 0; right: 0; top: var(--nav-top, 60px); bottom: 0; background: var(--color-primary); border-top: 1px solid rgba(255,255,255,.08); padding: 8px 20px 32px; overflow-y: auto; -webkit-overflow-scrolling: touch; z-index: 60; }
  .site-header.open .site-nav > a, .site-header.open .nav-drop > a { display: block; padding: 14px 4px; font-size: 17px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .site-header.open .nav-drop > a .caret { float: right; margin-top: 6px; transition: transform .2s; }
  .site-header.open .nav-drop > a.nav-ai { display: flex; align-items: center; gap: 0; }
  .site-header.open .nav-drop > a.nav-ai .ai-spark { order: 2; margin: 0 0 0 10px; }
  .site-header.open .nav-drop > a.nav-ai .caret { order: 3; margin-left: auto; float: none; margin-top: 0; }
  .site-header.open .nav-drop.open > a .caret { transform: rotate(180deg); }
  .site-header.open .nav-drop-menu { position: static; transform: none; display: none; background: transparent; border: 0; box-shadow: none; padding: 0 0 6px 18px; min-width: 0; }
  .site-header.open .nav-drop.open .nav-drop-menu { display: block; }
  .site-header.open .nav-drop-menu a { color: #cbd5e1; padding: 10px 4px; font-size: 15px; border-bottom: 0; }
  .site-header.open .nav-drop:hover .nav-drop-menu { display: none; }
  .site-header.open .nav-drop.open:hover .nav-drop-menu { display: block; }
  .site-header.open .site-nav a.btn { margin: 16px 0 0; text-align: center; padding: 13px 20px; font-size: 16px; border-bottom: 0; }
  section { scroll-margin-top: 61px; }
}
/* Small screens: sizes and wraps */
@media (max-width: 640px) {
  .container { padding: 0 18px; }
  h1 { font-size: clamp(30px, 8.5vw, 38px); }
  h2 { font-size: clamp(23px, 6.5vw, 30px); }
  .hero { padding: 44px 0 40px; }
  .hero-grid { gap: 28px; }
  .cta-row { gap: 10px; }
  .cta-row .btn { flex: 1 1 auto; text-align: center; }
  .vid-hero { height: auto; width: 100%; max-width: 360px; aspect-ratio: auto; }
  .vid-phone, .img-phone { height: auto; width: 100%; max-width: 340px; }
  .proof-strip .container { gap: 14px 24px; justify-content: space-between; }
  .proof-item { flex: 1 1 40%; }
  .footer-cols { grid-template-columns: 1fr; gap: 24px; }
  .footer-cols > div:first-child { grid-column: 1 / -1; }
  .milestone-photos { grid-template-columns: 1fr; }
  .fig-hero { max-width: 100%; }
  .m-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .banner-draft { font-size: 12px; padding: 5px 10px; }
  .dash-gallery { grid-template-columns: 1fr; }
  .vendor-grid { grid-template-columns: 1fr 1fr; }
  .lede { font-size: 16px; }
}

.fig-phone { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.fig-phone figcaption { font-size: 13px; color: #64748b; text-align: center; }
.section-navy .fig-phone figcaption { color: #94a3b8; }

/* Survey callout shared by the homepage and clinical product heroes. */
.hero-surveys { margin-top: 32px; padding: 22px 0 0 20px; border-top: 1px solid rgba(255,255,255,.18); border-left: 3px solid var(--color-accent); }
.hero-surveys h2 { font-size: 20px; line-height: 1.35; letter-spacing: -.01em; margin: 0 0 8px; }
.hero-surveys h2 span { display: block; color: var(--color-cyan); font-size: 16px; font-weight: 500; }
.hero-surveys p { font-size: 15px; line-height: 1.6; margin: 0 0 10px; max-width: 450px; }
.hero-surveys a { display: inline-block; color: var(--color-cyan); font-weight: 600; padding: 5px 0; text-underline-offset: 4px; }
.hero-surveys a:hover { color: #fff; }
.hero-surveys a:focus-visible { outline: 2px solid var(--color-cyan); outline-offset: 5px; }
@media (max-width: 640px) {
  .hero-surveys { margin-top: 26px; padding-left: 16px; }
}

/* Optional product availability note and the patient survey phone example. */
.hero .hero-note { font-size: 15px; line-height: 1.6; margin: 20px 0 0; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.18); }
.survey-phone { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; min-width: 0; }
.survey-phone-frame { position: relative; width: min(300px, 100%); border: 10px solid #111827; border-radius: 46px; background: #111827; box-shadow: 0 0 0 1px #64748b, 0 16px 38px rgba(15,23,42,.18); }
.survey-phone-frame::before { content: ""; position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 28%; height: 18px; border-radius: 14px; background: #080b12; pointer-events: none; }
.survey-phone-frame img { display: block; width: 100%; height: auto; border-radius: 36px; }
.survey-phone figcaption { max-width: 320px; text-align: center; font-size: 13px; color: #64748b; }

/* Eight-question patient survey walkthrough. */
.survey-slides { display: grid; }
.survey-slides::before { z-index: 2; }
.survey-slides .survey-slide { grid-area: 1 / 1; opacity: 0; transition: opacity .5s ease; pointer-events: none; }
.survey-slides .survey-slide.is-active { opacity: 1; }
.survey-controls { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.survey-controls[hidden] { display: none; }
.survey-controls button { min-height: 44px; padding: 8px 12px; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; color: #334155; font: inherit; font-size: 13px; cursor: pointer; }
.survey-controls button:hover { border-color: #0e7490; color: #0e7490; }
.survey-controls button:focus-visible { outline: 2px solid #0e7490; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .survey-slides .survey-slide { transition: none; } }

.survey-controls .survey-position { flex-basis: 100%; text-align: center; font-size: 13px; color: #64748b; }
.survey-phone figcaption strong { display: block; margin-bottom: 4px; color: #334155; font-size: 14px; }

/* Tailored demo topics and the single self-education call to action. */
.demo-topics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.demo-topics .card h3 { min-height: 0; align-items: flex-start; font-size: 22px; line-height: 1.25; }
.demo-topics .card p { margin: 0; }
.demo-self-educate { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.demo-self-educate > div { max-width: 700px; }
.demo-self-educate .btn { flex-shrink: 0; }
.demo-self-educate p:last-child { margin-bottom: 0; }
.demo-request { margin-top: 28px; padding: 26px; border: 1px solid #e2e8f0; border-radius: var(--radius-card); background: #f8fafc; }
.demo-request > p:first-child { margin-top: 0; }
@media (max-width: 900px) { .demo-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .demo-topics { grid-template-columns: 1fr; }
}

/* Demo request layout, inactive until delivery is connected. */
.demo-form-fields { border: 0; padding: 0; margin: 0; min-width: 0; }
.demo-form-fields legend { padding: 0; font-weight: 600; color: #0f172a; }
.demo-form-fields .form-grid { margin-top: 0; }
.demo-form-fields > .btn { display: block; }
.demo-field-full { grid-column: 1 / -1; }
.demo-form-fields input { width: 100%; min-width: 0; }
.demo-form-fields input::placeholder { color: #64748b; opacity: 1; }
.demo-form-fields:disabled input { background: #f1f5f9; color: #64748b; }
.demo-form-fields .btn:disabled { opacity: .55; cursor: not-allowed; }

/* Analytics library and optional custom-reporting example. */
.analytics-library { margin: 0; }
.analytics-library img, .analytics-explore img { display: block; width: 100%; height: auto; border: 1px solid #e2e8f0; border-radius: 12px; }
.analytics-library figcaption, .analytics-explore figcaption { margin-top: 12px; color: #64748b; font-size: 13px; line-height: 1.6; }
.analytics-explore { margin: 0 0 28px; padding: 20px 24px; border: 1px solid #e2e8f0; border-radius: 12px; background: #f8fafc; }
.analytics-explore summary { cursor: pointer; font-weight: 600; color: #0e7490; }
.analytics-explore summary:focus-visible, .analytics-library a:focus-visible, .analytics-explore a:focus-visible { outline: 2px solid #0e7490; outline-offset: 4px; }
.analytics-explore figure { margin: 20px 0 0; }

/* Scroll through the original utilization dashboard without altering its data. */
.utilization-tour { margin: 0; }
.utilization-controls { display: none; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.tour-ready .utilization-controls { display: flex; }
.utilization-controls button { font: inherit; font-size: 14px; line-height: 1.4; padding: 10px 14px; border: 1px solid #64748b; border-radius: 6px; color: #e2e8f0; background: #172438; cursor: pointer; }
.utilization-controls button[aria-pressed="true"] { border-color: #83d6e8; background: #164e63; color: #fff; }
.utilization-controls [data-tour-toggle] { margin-left: auto; }
.utilization-controls button:focus-visible, .utilization-tour a:focus-visible { outline: 2px solid #83d6e8; outline-offset: 3px; }
.utilization-viewport { border-radius: 12px; border: 1px solid #64748b; overflow: hidden; background: #fff; }
.tour-ready .utilization-viewport { aspect-ratio: 4 / 3; }
.dash-scene .utilization-viewport img { display: block; width: 100%; height: auto; max-height: none; border: 0; border-radius: 0; }
.utilization-tour figcaption { margin-top: 14px; color: #cbd5e1; font-size: 14px; line-height: 1.6; }
.utilization-tour figcaption a { color: #83d6e8; text-decoration: underline; }
@media (max-width: 600px) { .utilization-controls [data-tour-toggle] { margin-left: 0; } }

/* Separate optional capabilities from included reporting and trust. */
.nav-platform-menu { min-width: 246px; }
.nav-group-label { margin: 0; padding: 8px 18px 4px; color: #64748b; font-size: 11px; line-height: 1.4; font-weight: 600; letter-spacing: .035em; text-transform: uppercase; }
.nav-link-group + .nav-link-group { margin-top: 6px; padding-top: 6px; border-top: 1px solid #e2e8f0; }
.footer-platform h5 { margin: 18px 0 6px; color: #cbd5e1; font: 600 12px/1.5 var(--font-body); }
@media (max-width: 1080px) {
  .site-header.open .nav-group-label { color: #82d4ea; padding: 14px 4px 4px; }
  .site-header.open .nav-link-group + .nav-link-group { border-color: rgba(255,255,255,.12); }
}

/* Launch accessibility: keyboard bypass and long URLs in educational/legal pages. */
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 10000; padding: 12px 20px; background: #fff; color: #0f172a; border: 2px solid currentColor; border-radius: 4px; transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }
.measure-doc { overflow-wrap: anywhere; }

/* Clinical photography: original compositions, responsive sizes. */
.or-photo { display: block; width: 100%; height: auto; border-radius: 16px; }
.or-photo-row { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.or-photo-row figure { width: 100%; max-width: 380px; margin: 0 auto; }
.or-photo-testimonial { margin: 48px auto 0; }
.dd-photo-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 28px; align-items: center; margin: 0 0 32px; }
.dd-photo-intro h3 { margin-top: 0; }
.dd-photo-intro p { margin-bottom: 0; }
.dd-photo-intro figure { margin: 0; }
.dd-photo-intro[hidden] { display: none; }
@media (max-width: 700px) {
  .or-photo-row, .dd-photo-intro { grid-template-columns: minmax(0, 1fr); }
  .dd-photo-intro figure { order: -1; }
  .or-photo-row figure { max-width: 340px; }
}

/* Standalone surveys: static, accessible four-step workflow. */
.survey-flow { margin: 0; padding: 28px; background: #f4f9fb; border: 1px solid #d7e7ee; border-radius: 20px; }
.survey-flow > h3 { margin: 0 0 28px; max-width: 380px; font-size: 25px; line-height: 1.18; }
.survey-flow-steps { position: relative; list-style: none; padding: 0; margin: 0; }
.survey-flow-steps::before { content: ""; position: absolute; top: 30px; bottom: 60px; left: 29px; width: 2px; background: #a6d5df; }
.survey-flow-steps > li { position: relative; display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 20px; align-items: center; margin: 0; padding: 0 0 30px; }
.survey-flow-steps > li:last-child { padding-bottom: 0; }
.survey-flow-icon { position: relative; display: grid; place-items: center; width: 60px; height: 68px; color: #087f9d; background: #fff; border: 1px solid #c4e0e7; border-radius: 12px; }
.survey-flow-icon > svg { width: 42px; height: 48px; }
.survey-flow-icon > span { position: absolute; left: -8px; top: -8px; display: grid; place-items: center; width: 21px; height: 21px; border: 2px solid #f4f9fb; border-radius: 50%; background: #0f172a; color: #fff; font-size: 11px; font-weight: 600; line-height: 1; }
.survey-flow-brand { background: #0f172a; border-color: #0f172a; }
.survey-flow-icon img { width: 42px; height: 42px; object-fit: contain; }
.survey-flow h4 { margin: 0 0 6px; font-size: 17px; line-height: 1.3; }
.survey-flow p { margin: 0; font-size: 14px; line-height: 1.5; color: #475569; }
.survey-flow .survey-flow-channels { display: flex; flex-wrap: wrap; gap: 8px; }
.survey-flow-channels span { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; background: #e2f1f5; border-radius: 6px; color: #12647a; }
.survey-flow-channels svg, .survey-flow-delivery svg { width: 17px; height: 17px; flex: 0 0 17px; }
.survey-flow .survey-flow-delivery { display: flex; align-items: center; gap: 6px; margin-top: 7px; color: #12647a; }
.survey-flow figcaption { margin: 25px 0 0; padding-top: 18px; border-top: 1px solid #d7e7ee; font-size: 14px; line-height: 1.6; color: #475569; }
.survey-flow figcaption strong { color: #0f172a; }
@media (max-width: 480px) {
  .survey-flow { padding: 24px 20px; }
  .survey-flow > h3 { font-size: 23px; }
  .survey-flow-steps > li { grid-template-columns: 48px minmax(0, 1fr); gap: 14px; }
  .survey-flow-icon { width: 48px; height: 60px; }
  .survey-flow-icon > svg { width: 35px; height: 42px; }
  .survey-flow-icon img { width: 36px; height: 36px; }
  .survey-flow-steps::before { left: 23px; }
}

/* Patient-facing survey hero: real screenshot and an approved patient comment. */
.survey-patient-hero { display: flex; flex-direction: column; align-items: flex-end; width: 100%; max-width: 450px; margin: 0; padding: 0 18px 0 0; }
.survey-patient-phone { width: 280px; max-width: 100%; border: 6px solid #334155; border-radius: 30px; overflow: hidden; background: #f7f8fa; box-shadow: 0 18px 50px rgba(0,0,0,.2); }
.survey-patient-phone img { display: block; width: 100%; height: auto; }
.survey-patient-comment { position: relative; align-self: flex-start; width: 300px; max-width: 100%; margin: -18px 0 0; padding: 24px; border-left: 4px solid #1598b8; border-radius: 12px; background: #fff; box-shadow: 0 12px 30px rgba(0,0,0,.18); }
.hero .survey-patient-comment p { margin: 0; font-size: 21px; line-height: 1.4; color: #0f172a; font-weight: 500; }
.survey-patient-comment footer { margin-top: 12px; font-size: 13px; line-height: 1.4; color: #475569; }
@media (max-width: 400px) {
  .survey-patient-hero { padding-right: 0; }
  .survey-patient-phone { width: 250px; }
  .survey-patient-comment { width: 280px; padding: 20px; }
  .hero .survey-patient-comment p { font-size: 19px; }
}

/* Keep the header on one line; retain the primary action in collapsed navigation. */
.site-header .logo, .site-nav > * { flex-shrink: 0; }
.site-nav > a, .nav-drop > a { white-space: nowrap; }
.header-demo { display: none; white-space: nowrap; flex-shrink: 0; }
@media (max-width: 1080px) {
  .site-header .header-demo { display: inline-flex; align-items: center; justify-content: center; margin-left: auto; min-height: 44px; }
  .site-header .nav-toggle { margin-left: 0; flex-shrink: 0; }
  .site-header.open .site-nav > .btn { display: none; }
}
@media (max-width: 400px) {
  .site-header .container { padding-left: 16px; padding-right: 16px; gap: 8px; }
  .site-header .logo img { height: 26px; }
  .site-header .header-demo { padding: 9px 12px; font-size: 13px; }
}
