/* Direction A: Clinical Calm. Editorial, soft tints instead of borders. */

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; color: var(--text); letter-spacing: -.01em; }
h1 { font-size: var(--step-4); line-height: 1.04; letter-spacing: -.025em; }
h1 em { font-style: italic; color: var(--primary); padding-bottom: .06em; }
.section-title { font-size: var(--step-3); line-height: 1.12; max-width: 20ch; }
h3 { font-size: var(--step-1); line-height: 1.25; }
p { max-width: 62ch; }
h1, h2, h3 { text-wrap: balance; }

.eyebrow {
  font-size: var(--step--1); font-weight: 600; color: var(--primary);
  letter-spacing: .02em; margin-bottom: var(--space-m);
}

/* Buttons: full pill */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px; padding: .6rem 1.2rem; border-radius: var(--radius-pill);
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; white-space: nowrap;
  border: 1.5px solid transparent;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-lg { min-height: 52px; padding: .85rem 1.6rem; font-size: 1.0625rem; }
.btn-primary { background: var(--primary); color: var(--primary-contrast); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary { border-color: color-mix(in srgb, var(--primary) 45%, transparent); color: var(--primary); }
.btn-secondary:hover { background: var(--tint); border-color: var(--primary); }
.btn-ghost { color: var(--text); }
.btn-ghost:hover { background: var(--tint); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

.text-link {
  display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--primary);
  text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--primary) 35%, transparent);
  text-underline-offset: .25em; min-height: 44px;
}
.text-link .icon { width: 1em; height: 1em; transition: transform var(--dur) var(--ease); }
.text-link:hover { text-decoration-color: var(--primary); }
.text-link:hover .icon { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  transition: box-shadow var(--dur) var(--ease);
}
.site-header.is-compact { box-shadow: 0 1px 0 var(--border); }
.header-inner { display: flex; align-items: center; gap: var(--space-m); height: 84px; transition: height var(--dur) var(--ease); }
.is-compact .header-inner { height: 68px; }
.brand img { height: 64px; width: auto; mix-blend-mode: multiply; transition: height var(--dur) var(--ease); }
.is-compact .brand img { height: 52px; }
.primary-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: .25rem; }
.nav-link {
  display: inline-flex; align-items: center; gap: .3rem; min-height: 44px; padding: .4rem .8rem;
  background: none; border: 0; border-radius: var(--radius-pill);
  font-weight: 600; font-size: 1rem; color: var(--text); text-decoration: none;
}
.nav-link:hover, .is-open > .nav-link { background: var(--tint); }
.nav-link[aria-current="page"] { color: var(--primary); }
.nav-link .icon { width: 1rem; height: 1rem; transition: transform var(--dur) var(--ease); }
.is-open > .nav-link .icon { transform: rotate(180deg); }
.nav-item--mobile-only { display: none; }
.header-actions { display: flex; align-items: center; gap: .5rem; }
.nav-toggle {
  width: 44px; height: 44px; align-items: center; justify-content: center;
  border: 0; border-radius: var(--radius-pill); background: var(--tint); color: var(--text);
}
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle-close, .nav-open .nav-toggle-open { display: none; }
.nav-open .nav-toggle-close { display: inline; }

/* Mega menu */
.nav-item[data-menu] { position: static; }
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  padding-inline: var(--gutter);
}
.mega-inner {
  max-width: calc(var(--max) - 2 * var(--gutter)); margin: .25rem auto 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-l);
  padding: var(--space-l); background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
}
.mega-title { display: flex; align-items: center; gap: .5rem; font-family: var(--font-display); font-size: var(--step-1); margin-bottom: .75rem; }
.mega-title .icon { color: var(--primary); }
.mega ul { display: grid; gap: .1rem; }
.mega a { display: block; padding: .4rem .6rem; margin-inline: -.6rem; border-radius: var(--radius-sm); text-decoration: none; color: var(--muted); }
.mega a:hover { background: var(--tint); color: var(--text); }

@media (max-width: 1023px) {
  .header-inner { height: 72px; }
  .brand img { height: 52px; }
  .primary-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    max-height: calc(100dvh - 72px); overflow-y: auto;
    background: var(--bg); border-top: 1px solid var(--border); padding: var(--space-s) var(--gutter) var(--space-l);
  }
  .nav-list { flex-direction: column; align-items: stretch; }
  .nav-link { width: 100%; justify-content: space-between; font-size: 1.125rem; border-radius: var(--radius-sm); }
  .nav-item--mobile-only { display: block; }
  .nav-item--book { margin-top: var(--space-s); }
  .nav-item--book .btn { width: 100%; }
  .mega { position: static; padding: 0; }
  .mega-inner { grid-template-columns: 1fr; gap: var(--space-m); padding: var(--space-s) var(--space-s) var(--space-m); box-shadow: none; background: var(--tint); }
  .header-actions { margin-left: auto; }
}
@media (max-width: 560px) { .header-actions .btn-primary { display: none; } }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2rem, 1rem + 4vw, 5rem) var(--space-xl); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero h1 { margin-bottom: var(--space-m); }
.lede { font-size: var(--step-1); line-height: 1.5; color: var(--muted); margin-bottom: var(--space-l); max-width: 34ch; }
.trust-line { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: var(--space-l); color: var(--muted); font-size: var(--step--1); font-weight: 600; }
.trust-line li { display: inline-flex; align-items: center; gap: .4rem; }
.trust-line .icon { color: var(--primary); }
.hero-media { position: relative; }
.hero-media::before {
  content: ""; position: absolute; inset: 2.5rem -1.5rem -1.5rem 2.5rem;
  background: var(--tint-strong); border-radius: var(--radius);
}
.hero-media img { position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }

@media (max-width: 899px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { max-width: 34rem; margin-right: 1.5rem; }
  .hero-media img { aspect-ratio: 4 / 3; }
}

/* ---------- Two ways ---------- */
.ways { padding-block: var(--space-xl); }
.ways .section-title { margin-bottom: var(--space-l); }
.ways-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: var(--space-m); align-items: stretch; }
.way { border-radius: var(--radius); overflow: hidden; }
.way h3 { font-size: var(--step-2); margin-bottom: .5rem; }
.way p { color: var(--muted); margin-bottom: .75rem; }
.way--team { background: var(--surface); display: grid; grid-template-rows: auto 1fr; }
.way--team img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.way-body { padding: var(--space-l); }
.way--tech { background: var(--primary); color: #e3edf7; padding: var(--space-l); display: flex; flex-direction: column; }
.way--tech h3 { color: #fff; }
.way--tech p { color: #cfdfee; font-size: var(--step-1); line-height: 1.45; font-family: var(--font-display); }
.way-points { display: grid; gap: .85rem; margin: var(--space-m) 0 auto; padding-bottom: var(--space-m); }
.way-points li { display: flex; gap: .75rem; align-items: center; }
.way-points .icon { width: 2.25rem; height: 2.25rem; padding: .5rem; border-radius: 50%; background: rgb(255 255 255 / .12); color: #fff; }
.way--tech .text-link { color: #fff; text-decoration-color: rgb(255 255 255 / .4); }
@media (max-width: 899px) { .ways-grid { grid-template-columns: 1fr; } }

/* ---------- Services ---------- */
.services { padding-block: var(--space-xl) var(--space-2xl); }
.services .section-title { margin-bottom: var(--space-l); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 4rem); }
.service-group { display: flex; flex-direction: column; padding-top: var(--space-m); border-top: 2px solid var(--text); }
.service-group h3 { display: flex; align-items: center; gap: .6rem; margin-bottom: var(--space-m); }
.service-group h3 .icon { color: var(--primary); width: 1.4rem; height: 1.4rem; }
.service-group dl { display: grid; gap: 1.1rem; margin-bottom: var(--space-m); }
.service-group dt { font-weight: 600; }
.service-group dd { color: var(--muted); font-size: var(--step--1); line-height: 1.55; }
.service-group .text-link { margin-top: auto; }
@media (max-width: 899px) { .services-grid { grid-template-columns: 1fr; } }

/* ---------- Spotlight ---------- */
.spotlight { background: var(--tint); padding-block: var(--space-2xl); }
.spotlight-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.spotlight .section-title { margin-bottom: var(--space-m); }
.spotlight-copy > p:not(.eyebrow):not(.stat) { color: var(--muted); }
.check-list { display: grid; gap: .6rem; margin-block: var(--space-m) var(--space-l); }
.check-list li { display: flex; gap: .6rem; align-items: flex-start; }
.check-list .icon { color: var(--primary); margin-top: .2em; }
.stat { display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 1rem; padding-block: var(--space-m); border-block: 1px solid var(--tint-strong); margin-bottom: var(--space-m); }
.stat-num { font-family: var(--font-display); font-size: var(--step-3); color: var(--primary); line-height: 1; grid-row: span 2; white-space: nowrap; }
.stat-label { font-weight: 600; font-size: var(--step-1); align-self: end; line-height: 1.2; }
.stat-src { color: var(--muted); font-size: var(--step--1); }
.store-row { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; }
.store-badge {
  display: inline-flex; align-items: center; gap: .6rem; min-height: 52px; padding: .45rem 1.1rem .45rem .9rem;
  background: var(--text); color: #fff; border-radius: var(--radius-sm); text-decoration: none; font-weight: 600; font-size: 1.125rem; line-height: 1.05;
}
.store-badge .icon { width: 1.7rem; height: 1.7rem; }
.store-badge small { display: block; font-weight: 400; font-size: .7rem; letter-spacing: .02em; }
.store-soon { display: inline-flex; align-items: center; gap: .4rem; color: var(--muted); font-size: var(--step--1); }

/* Scribe demo */
.scribe { display: grid; grid-template-columns: 1fr auto 1.1fr; gap: .75rem; align-items: center; }
.scribe-panel { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.1rem 1.2rem 1.25rem; align-self: stretch; }
.scribe-bar { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .9rem; font-size: .8125rem; color: var(--muted); }
.scribe-label { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; color: var(--text); }
.scribe-label .icon { color: var(--primary); width: 1.1rem; height: 1.1rem; }
.scribe-rec { display: inline-flex; align-items: center; gap: .35rem; color: var(--accent-text); font-weight: 600; }
.scribe-rec::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--accent); }
.scribe-draft { color: var(--muted); }
.scribe-lines { display: grid; gap: .7rem; font-size: .9375rem; line-height: 1.45; }
.scribe-lines .who { display: block; font-size: .75rem; font-weight: 600; color: var(--muted); }
.scribe-fields { display: grid; gap: .6rem; font-size: .9rem; line-height: 1.45; }
.scribe-fields div { display: grid; grid-template-columns: 1.75rem 1fr; gap: .5rem; }
.scribe-fields dt { font-family: var(--font-display); font-size: 1.15rem; color: var(--primary); line-height: 1.2; }
.scribe-flag { display: flex; gap: .45rem; align-items: flex-start; margin-top: .9rem; padding: .6rem .75rem; border-radius: var(--radius-sm); background: #fbeeea; color: #7c3324; font-size: .875rem; font-weight: 600; line-height: 1.4; }
.scribe-flag .icon { width: 1.1rem; height: 1.1rem; margin-top: .1em; }
.scribe-arrow { color: var(--primary); }
.scribe-caption { grid-column: 1 / -1; font-size: .8125rem; color: var(--muted); }
@media (max-width: 1023px) {
  .spotlight-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .scribe { grid-template-columns: 1fr; }
  .scribe-arrow { justify-self: center; transform: rotate(90deg); }
}

/* ---------- Who we serve ---------- */
.serve { padding-block: var(--space-2xl) var(--space-xl); }
.serve .section-title { margin-bottom: var(--space-l); }
.serve-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.serve-feature { background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.serve-feature img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.serve-feature-body { padding: var(--space-l); }
.serve-feature h3 { font-size: var(--step-2); margin-bottom: .5rem; }
.serve-feature p { color: var(--muted); }
.serve-list { display: grid; gap: var(--space-l); padding-top: var(--space-s); }
.serve-list li { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; }
.serve-list .icon { width: 3rem; height: 3rem; padding: .7rem; border-radius: 50%; background: var(--tint); color: var(--primary); }
.serve-list h3 { margin-bottom: .25rem; }
.serve-list p { color: var(--muted); }
@media (max-width: 899px) { .serve-grid { grid-template-columns: 1fr; } }

/* ---------- Steps ---------- */
.steps { padding-block: var(--space-xl); }
.steps .section-title { margin-bottom: var(--space-l); }
.steps-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); counter-reset: none; }
.steps-list li { position: relative; padding-top: var(--space-m); }
.steps-list li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--border); }
.step-num { display: block; font-family: var(--font-display); font-size: var(--step-4); line-height: 1; color: var(--accent); margin-bottom: var(--space-s); }
.steps-list h3 { margin-bottom: .4rem; }
.steps-list p { color: var(--muted); }
@media (max-width: 767px) { .steps-list { grid-template-columns: 1fr; } }

/* ---------- Quote ---------- */
.quote { padding-block: var(--space-xl); }
.quote figure { max-width: 52rem; margin-inline: auto; text-align: center; padding: var(--space-xl) var(--gutter); background: var(--surface); border-radius: var(--radius); }
.quote blockquote p { font-family: var(--font-display); font-style: italic; font-size: var(--step-2); line-height: 1.35; max-width: none; padding-bottom: .1em; }
.quote figcaption { margin-top: var(--space-m); font-weight: 600; color: var(--muted); }

/* ---------- Security ---------- */
.security { padding-block: var(--space-xl) var(--space-2xl); }
.security-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.security .section-title { margin-bottom: var(--space-m); }
.security-copy p { color: var(--muted); margin-bottom: var(--space-s); }
.security-items { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.security-items li { display: flex; align-items: center; gap: .75rem; padding: 1.25rem; border-radius: var(--radius); background: var(--tint); font-weight: 600; }
.security-items .icon { width: 1.75rem; height: 1.75rem; color: var(--primary); }
.security-items a { color: var(--text); text-underline-offset: .2em; }
@media (max-width: 899px) { .security-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .security-items { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { padding: 0 var(--gutter) var(--space-xl); }
.cta-inner {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--space-l); align-items: center;
  background: var(--primary); color: #e3edf7; border-radius: var(--radius);
  padding: clamp(2rem, 5vw, 4.5rem);
}
.cta-band h2 { color: #fff; font-size: var(--step-3); line-height: 1.1; margin-bottom: .75rem; }
.cta-copy p { color: #cfdfee; font-size: var(--step-1); }
.cta-actions { display: grid; gap: var(--space-m); justify-items: start; }
.cta-band .btn-primary { background: #fff; color: var(--primary); }
.cta-band .btn-primary:hover { background: var(--tint); }
.cta-contact { display: grid; gap: .25rem; }
.cta-contact a { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; color: #fff; text-decoration: none; font-weight: 600; }
.cta-contact a:hover { text-decoration: underline; }
@media (max-width: 899px) { .cta-inner { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { padding-block: var(--space-xl) 6rem; color: var(--muted); font-size: var(--step--1); }
.footer-grid { display: grid; grid-template-columns: 1fr 2.4fr; gap: var(--space-l); padding-bottom: var(--space-l); }
.footer-name { font-family: var(--font-display); font-size: var(--step-1); color: var(--text); margin-bottom: .75rem; }
.site-footer address { font-style: normal; margin-bottom: .75rem; }
.footer-nav { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-m); }
.footer-title { font-weight: 600; color: var(--text); margin-bottom: .5rem; }
.footer-nav ul { display: grid; gap: .1rem; }
.site-footer a { color: var(--muted); text-decoration: none; display: inline-block; padding-block: .3rem; }
.site-footer a:hover { color: var(--primary); text-decoration: underline; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: var(--space-m); border-top: 1px solid var(--border); }
.footer-legal ul { display: flex; flex-wrap: wrap; gap: 1.25rem; }
@media (max-width: 899px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-nav { grid-template-columns: 1fr 1fr; }
}

/* ---------- Chat ---------- */
.chat-launcher {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 52px; padding: .75rem 1.2rem .75rem 1rem;
  background: var(--primary); color: #fff; border: 0; border-radius: var(--radius-pill);
  font-weight: 600; box-shadow: var(--shadow);
}
.chat-launcher:hover { background: var(--primary-hover); }
.chat-launcher .icon { width: 1.4rem; height: 1.4rem; }
.chat-panel { background: var(--surface); border-radius: 16px; box-shadow: 0 24px 60px -12px rgb(28 43 58 / .3); }
.chat-head { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.1rem; background: var(--tint); }
.chat-title { font-family: var(--font-display); font-size: 1.2rem; }
.chat-status { font-size: .8125rem; color: var(--muted); }
.chat-close { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; border-radius: 50%; }
.chat-close:hover { background: var(--tint-strong); }
.chat-log { padding: 1rem 1.1rem; display: grid; gap: .6rem; align-content: start; }
.chat-msg { padding: .65rem .85rem; border-radius: 12px; font-size: .9375rem; line-height: 1.45; max-width: 88%; }
.chat-msg--bot { background: var(--bg); }
.chat-msg--user { background: var(--primary); color: #fff; justify-self: end; }
.chat-chips { display: grid; gap: .4rem; justify-items: start; }
.chat-chips button { min-height: 40px; padding: .45rem .85rem; border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius-pill); font-size: .875rem; text-align: left; color: var(--primary); font-weight: 600; }
.chat-chips button:hover { background: var(--tint); }
.chat-form { display: flex; gap: .5rem; padding: .75rem; border-top: 1px solid var(--border); }
.chat-form input { flex: 1; min-height: 44px; padding: .5rem .85rem; border: 1px solid #a7b4c0; border-radius: var(--radius-pill); background: var(--surface); }
.chat-form input::placeholder { color: #66717a; }
.chat-form button { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--primary); color: #fff; }

/* ======================================================
   About page
   ====================================================== */
.page-hero { padding-block: clamp(2rem, 1rem + 4vw, 5rem) var(--space-xl); }
.page-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: end; }
.page-hero h1 { margin-bottom: var(--space-m); }
.page-hero .lede { max-width: 26ch; font-family: var(--font-display); font-size: var(--step-2); color: var(--text); line-height: 1.3; margin: 0; }
.page-hero img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 899px) { .page-hero-grid { grid-template-columns: 1fr; } }

.about-intro { padding-block: var(--space-xl); }
.about-intro-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(2rem, 5vw, 5rem); }
.about-intro-body p { margin-bottom: var(--space-s); font-size: var(--step-1); line-height: 1.55; color: var(--muted); }
.fact-row { display: flex; flex-wrap: wrap; gap: var(--space-l); margin-top: var(--space-l); }
.fact-row dt { font-size: var(--step--1); color: var(--muted); }
.fact-row dd { font-family: var(--font-display); font-size: var(--step-2); }
@media (max-width: 899px) { .about-intro-grid { grid-template-columns: 1fr; } }

.mission { padding-block: var(--space-2xl); background: var(--tint); text-align: center; }
.mission blockquote p { font-family: var(--font-display); font-style: italic; font-size: var(--step-4); line-height: 1.1; max-width: 16ch; margin-inline: auto; color: var(--primary); padding-bottom: .1em; }
.mission .mission-body { margin: var(--space-l) auto 0; font-size: var(--step-1); color: var(--muted); max-width: 46ch; }

.about-serve { padding-block: var(--space-2xl) var(--space-xl); }
.about-serve .section-title { margin-bottom: var(--space-l); }
.tag-cloud { display: flex; flex-wrap: wrap; gap: .75rem; }
.tag-cloud li { display: inline-flex; align-items: center; gap: .6rem; padding: .9rem 1.3rem; background: var(--surface); border-radius: var(--radius-pill); font-size: var(--step-1); font-family: var(--font-display); }
.tag-cloud .icon { color: var(--primary); }
.tag-cloud li:nth-child(4) { background: var(--primary); color: #fff; }
.tag-cloud li:nth-child(4) .icon { color: #fff; }

.apart { padding-block: var(--space-xl); }
.apart .section-title { margin-bottom: var(--space-l); }
.apart-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-m); }
.apart-grid li { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding: var(--space-l); background: var(--surface); border-radius: var(--radius); }
.apart-grid li:nth-child(1) { background: var(--tint); }
.apart-grid .icon { width: 3rem; height: 3rem; padding: .7rem; border-radius: 50%; background: var(--bg); color: var(--primary); }
.apart-grid h3 { margin-bottom: .3rem; }
.apart-grid p { color: var(--muted); }
@media (max-width: 767px) { .apart-grid { grid-template-columns: 1fr; } }

.leaders { padding-block: var(--space-xl); }
.leaders .section-title { margin-bottom: var(--space-l); }
.leader-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-m); }
.leader-grid .ph-block { aspect-ratio: 4 / 5; min-height: 0; border-radius: var(--radius); margin-bottom: .9rem; }
.leader-grid h3 { margin-bottom: .2rem; }
@media (max-width: 767px) { .leader-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .leader-grid { grid-template-columns: 1fr; } }

.affil { padding-block: var(--space-xl); }
.affil .section-title { margin-bottom: var(--space-l); }
.affil-list { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-m); }
.affil-list li { display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; align-items: start; padding: var(--space-l); background: var(--surface); border-radius: var(--radius); }
.affil-mark { display: grid; place-items: center; width: 5.5rem; height: 5.5rem; border-radius: 50%; border: 2px solid var(--primary); color: var(--primary); font-weight: 600; font-size: 1.05rem; text-align: center; line-height: 1.05; }
.affil-list h3 { margin-bottom: .3rem; }
.affil-list p { color: var(--muted); }
.affil-note { margin-top: var(--space-m); color: var(--muted); font-style: italic; }
@media (max-width: 767px) { .affil-list { grid-template-columns: 1fr; } }

.location { padding-block: var(--space-xl); }
.location-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--space-m); align-items: stretch; }
.location-card { padding: var(--space-l); background: var(--surface); border-radius: var(--radius); }
.location-card .section-title { margin-bottom: var(--space-m); }
.location-card address { font-style: normal; font-size: var(--step-1); line-height: 1.5; margin-bottom: var(--space-m); }
.location-card ul { display: grid; gap: .25rem; }
.location-card a { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; color: var(--text); font-weight: 600; text-decoration: none; }
.location-card a:hover { color: var(--primary); text-decoration: underline; }
.location-map {
  position: relative; min-height: 18rem; border-radius: var(--radius); overflow: hidden;
  background:
    linear-gradient(90deg, transparent 49.6%, rgb(255 255 255 / .9) 49.6% 50.4%, transparent 50.4%) 0 0 / 7rem 7rem,
    linear-gradient(0deg, transparent 49.6%, rgb(255 255 255 / .9) 49.6% 50.4%, transparent 50.4%) 0 0 / 5rem 5rem,
    var(--tint-strong);
  display: grid; place-items: center;
}
.location-pin { display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1.1rem; background: var(--surface); border-radius: var(--radius-pill); box-shadow: var(--shadow); font-weight: 600; }
.location-pin .icon { color: var(--accent); }
@media (max-width: 899px) { .location-grid { grid-template-columns: 1fr; } }

/* ======================================================
   Clinical Simple additions (round two)
   ====================================================== */

/* Top bar */
.topbar { background: var(--primary); color: #e3edf7; font-size: var(--step--1); }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 40px; }
.topbar p { max-width: none; }
.topbar ul { display: flex; gap: 1.5rem; }
.topbar a { display: inline-flex; align-items: center; gap: .4rem; color: #fff; text-decoration: none; padding-block: .4rem; }
.topbar a:hover { text-decoration: underline; }
@media (max-width: 767px) { .topbar p { display: none; } .topbar-inner { justify-content: center; } }

.site-header { background: color-mix(in srgb, var(--surface) 94%, transparent); }
.site-header.is-compact { box-shadow: 0 1px 0 var(--border), 0 8px 24px -16px rgb(46 95 138 / .25); }
.brand img { height: 84px; mix-blend-mode: normal; }
.is-compact .brand img { height: 68px; }
@media (max-width: 1023px) { .brand img { height: 60px; } }

/* Hero */
.hero { padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem) var(--space-xl); background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%); }
.hero h1 { font-size: clamp(2.375rem, 1.7rem + 2.6vw, 3.75rem); line-height: 1.08; max-width: 21ch; }
.hero-media { max-width: 30rem; justify-self: end; width: 100%; }
.hero-media img { aspect-ratio: 4 / 5; object-position: center top; }
.hero-note {
  position: absolute; left: -1.75rem; bottom: 2rem;
  display: flex; align-items: center; gap: .75rem; padding: .85rem 1.1rem .85rem .85rem;
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  font-size: .9375rem; line-height: 1.3;
}
.hero-note strong { display: block; }
.hero-note span:last-child { color: var(--muted); }
.hero-note-icon .icon { width: 2.5rem; height: 2.5rem; padding: .55rem; border-radius: 50%; background: var(--tint); color: var(--primary); }
.hero-note--top { left: auto; right: -1.25rem; bottom: auto; top: 2rem; }
@media (max-width: 899px) {
  .hero-media { justify-self: start; max-width: 26rem; width: calc(100% - 1.5rem); }
  .hero-note { left: 1rem; bottom: 1rem; }
  .hero-note--top { left: auto; right: .75rem; bottom: auto; top: .75rem; }
}
@media (max-width: 479px) { .hero-note--top { display: none; } }

/* Section heading pattern: title with one plain line under it */
.section-head { max-width: 40rem; margin-bottom: var(--space-l); }
.section-head .section-title { margin-bottom: .6rem; }
.section-head p { color: var(--muted); font-size: var(--step-1); line-height: 1.5; }

/* Services: six cards, like the current home page */
.services { padding-block: var(--space-xl) var(--space-xl); }
.svc-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.svc-cards a {
  display: flex; flex-direction: column; gap: .55rem; height: 100%;
  padding: 1.75rem 1.6rem 1.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text); text-decoration: none;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.svc-cards a:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.svc-icon .icon {
  width: 3.25rem; height: 3.25rem; padding: .8rem; margin-bottom: .6rem; border-radius: 50%;
  background: var(--tint); color: var(--primary); transition: background-color .35s var(--ease), color .35s var(--ease);
}
.svc-cards a:hover .svc-icon .icon { background: var(--primary); color: #fff; }
.svc-cards h3 { font-size: var(--step-1); }
.svc-cards p { color: var(--muted); font-size: 1rem; line-height: 1.55; }
.svc-more { display: inline-flex; align-items: center; gap: .35rem; margin-top: auto; padding-top: .6rem; font-weight: 600; color: var(--primary); }
.svc-more .icon { width: 1em; height: 1em; transition: transform .35s var(--ease); }
.svc-cards a:hover .svc-more .icon { transform: translateX(4px); }
.svc-all { margin-top: var(--space-m); }
@media (max-width: 1023px) { .svc-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .svc-cards { grid-template-columns: 1fr; } }

/* Service is our passion */
.passion { padding-block: var(--space-2xl); background: var(--tint); }
.passion-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.passion h2 { font-size: var(--step-3); line-height: 1.12; margin-bottom: var(--space-m); max-width: 18ch; }
.passion h2 em { color: var(--primary); padding-bottom: .05em; }
.passion-copy p { color: #2f3d4a; font-size: var(--step-1); line-height: 1.6; margin-bottom: var(--space-s); }
.focus-card { padding: clamp(1.5rem, 3vw, 2.25rem); background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.focus-card h3 { margin-bottom: var(--space-m); }
.focus-card ul { display: grid; gap: .9rem; }
.focus-card li { display: flex; align-items: center; gap: .9rem; font-weight: 600; line-height: 1.35; }
.focus-card li .icon { width: 2.75rem; height: 2.75rem; padding: .65rem; border-radius: 50%; background: var(--tint); color: var(--primary); }
.focus-note { display: flex; align-items: center; gap: .5rem; margin-top: var(--space-m); padding-top: var(--space-s); border-top: 1px solid var(--border); color: var(--muted); font-size: var(--step--1); }
.focus-note .icon { color: var(--primary); }
@media (max-width: 899px) { .passion-grid { grid-template-columns: 1fr; } }

/* HIPAA / testimonial / partners */
.trio { padding-block: var(--space-2xl) var(--space-xl); }
.trio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.trio-card { display: flex; flex-direction: column; gap: .7rem; padding: 2rem 1.75rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.trio-card h2 { font-size: var(--step-2); }
.trio-card p { color: var(--muted); }
.trio-card .text-link { margin-top: auto; }
.trio-icon .icon { width: 3rem; height: 3rem; padding: .75rem; border-radius: 50%; background: var(--tint); color: var(--primary); }
.trio-card--quote { background: var(--primary); border-color: var(--primary); }
.trio-card--quote h2 { color: #fff; }
.trio-card--quote .trio-icon .icon { background: rgb(255 255 255 / .14); color: #fff; }
.trio-card--quote blockquote p { color: #fff; font-family: var(--font-display); font-style: italic; font-size: var(--step-1); line-height: 1.45; }
.trio-card--quote .trio-cite { margin-top: auto; color: #cfdfee; font-weight: 600; font-size: var(--step--1); }
@media (max-width: 899px) { .trio-grid { grid-template-columns: 1fr; } }

/* About tweaks for this version */
.page-hero { background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%); }
.hero { padding-top: clamp(2rem, 1rem + 3vw, 3.5rem); }
@media (max-width: 640px) {
  .svc-cards { gap: .75rem; }
  .svc-cards a { display: grid; grid-template-columns: 2.75rem 1fr; column-gap: 1rem; row-gap: .3rem; padding: 1.15rem 1.1rem; }
  .svc-icon { grid-row: span 3; }
  .svc-icon .icon { width: 2.75rem; height: 2.75rem; padding: .65rem; margin: 0; }
  .svc-more { padding-top: .2rem; }
}
.apart-grid li, .affil-list li, .location-card, .tag-cloud li { border: 1px solid var(--border); }
.apart-grid li:nth-child(1), .tag-cloud li:nth-child(4) { border-color: transparent; }

/* Brand blue accents (msaiaccess.com) */
/* Brand blue deepened one step so white text passes AA (5:1); #6796bf with white is only 3.1:1. */
.topbar { background: #42739e; color: #fff; }
.topbar a { color: #fff; font-weight: 600; }
.hero-media::before { background: color-mix(in srgb, var(--brand) 38%, #fff); }
.passion h2 em, .hero h1 em { color: var(--primary); }
.cta-inner { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%); }
.trio-card--quote { background: var(--primary); border-color: var(--primary); }

/* ======================================================
   Motion: calm, clinical, easy on the eyes.
   Only transform and opacity move; everything below the
   reduced-motion query is skipped for visitors who ask for less motion.
   ====================================================== */

/* Reading progress under the header */
.scroll-progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--primary));
  transform: scaleX(0); transform-origin: 0 50%; pointer-events: none;
}

/* Heartbeat line: the one decorative motif, under the hero and the mission */
.hero, .mission { position: relative; isolation: isolate; overflow: clip; }
.hero { padding-bottom: calc(var(--space-xl) + 3rem); }
.hero + .services { padding-top: var(--space-l); }
.pulse-line { position: absolute; z-index: -1; left: 0; bottom: .5rem; width: 100%; height: clamp(64px, 7vw, 96px); pointer-events: none; }
.pulse-line path { fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.pulse-base { stroke: color-mix(in srgb, var(--brand) 50%, transparent); stroke-width: 1.5; }
/* Dash values overshoot 1 because non-scaling strokes measure pathLength slightly differently across browsers. */
.pulse-glow { stroke: var(--brand); stroke-width: 3; stroke-dasharray: .08 2; opacity: 0; }

/* Marker sweep under the italic words in the main headings */
.hero h1 em, .passion h2 em {
  background: linear-gradient(transparent 74%, color-mix(in srgb, var(--brand) 22%, transparent) 74% 90%, transparent 90%) no-repeat 0 0 / 100% 100%;
}

/* Short accent rule under section titles */
.section-head .section-title::after {
  content: ""; display: block; width: 3rem; height: 3px; margin-top: .9rem;
  border-radius: 3px; background: var(--brand); transform-origin: 0 50%;
}

/* Soft light that follows the pointer across a service card */
.svc-cards a { position: relative; isolation: isolate; overflow: hidden; }
.svc-cards a::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(22rem circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--brand) 16%, transparent), transparent 65%);
  opacity: 0; transition: opacity .4s var(--ease);
}
.svc-cards a:hover::before, .svc-cards a:focus-visible::before { opacity: 1; }
.svc-cards a:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow); }

/* Cards that lift on hover */
.trio-grid > *, .apart-grid > li, .tag-cloud > li, .affil-list > li {
  transition: translate .35s var(--ease), box-shadow .35s var(--ease);
}
.trio-grid > *:hover, .apart-grid > li:hover, .tag-cloud > li:hover, .affil-list > li:hover {
  translate: 0 -4px; box-shadow: var(--shadow);
}

/* Primary button: a light sweep on hover */
.btn-primary { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 50%; z-index: -1; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgb(255 255 255 / .28), transparent);
  transform: skewX(-18deg);
}
.cta-band .btn-primary::after { background: linear-gradient(100deg, transparent, rgb(103 150 191 / .3), transparent); }
.btn-lg { transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), translate var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.btn-lg:hover { translate: 0 -2px; box-shadow: 0 10px 24px -12px rgb(46 95 138 / .45); }

/* Passion section: two soft glows that drift as you scroll */
.passion { position: relative; isolation: isolate; overflow: clip; view-timeline: --passion; }
.passion::before, .passion::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; }
.passion::before { width: 38rem; height: 38rem; top: -16rem; right: -12rem; background: radial-gradient(circle, color-mix(in srgb, var(--brand) 24%, transparent), transparent 70%); }
.passion::after { width: 30rem; height: 30rem; bottom: -14rem; left: -10rem; background: radial-gradient(circle, rgb(255 255 255 / .8), transparent 70%); }

/* Map pin ripple (About) */
.location-pin { position: relative; }
.location-pin::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  border: 2px solid var(--brand); opacity: 0;
}

.chat-launcher { position: relative; }
.chat-typing { display: flex; gap: .3rem; align-items: center; justify-self: start; min-height: 2.4rem; }

@media (prefers-reduced-motion: no-preference) {
  /* Hero: image settles in, tinted block slides into place, notes float */
  .hero-media img, .page-hero img { animation: settle 1.6s var(--ease) both; }
  .hero-media::before { animation: slide-in 1.2s var(--ease) .15s both; }
  .hero-note {
    animation: float-in .8s var(--ease) .9s both, bob 6s ease-in-out 1.7s infinite;
    animation-play-state: running, paused;
  }
  .hero-note--top { animation-delay: 1.15s, 4.7s; }
  .is-live .hero-note { animation-play-state: running, running; }
  .js .trust-line .icon { animation: pop .6s var(--ease) both; }
  .js .trust-line li:nth-child(1) .icon { animation-delay: .9s; }
  .js .trust-line li:nth-child(2) .icon { animation-delay: 1.02s; }
  .js .trust-line li:nth-child(3) .icon { animation-delay: 1.14s; }

  /* Heartbeat: draws once, then a soft glow travels along it while on screen */
  .pulse-base { stroke-dasharray: 1.5; stroke-dashoffset: 1.5; animation: draw 2.6s var(--ease) .5s forwards; }
  .pulse-glow { animation: travel 5s linear 2.6s infinite paused; }
  .is-live .pulse-glow { animation-play-state: running; }

  /* Marker sweep and section rule */
  .js .hero h1 em { background-size: 0 100%; animation: mark 1.3s var(--ease) .7s forwards; }
  .js .passion h2 em { background-size: 0 100%; transition: background-size 1.3s var(--ease) .45s; }
  .js .passion-copy.is-visible h2 em { background-size: 100% 100%; }
  .js .section-head .section-title::after { transform: scaleX(0); transition: transform .9s var(--ease) .25s; }
  .js .section-head.is-visible .section-title::after { transform: none; }

  /* Service icons give a small nod on hover */
  .svc-cards a:hover .svc-icon .icon, .chat-launcher:hover .icon { animation: nudge .6s var(--ease); }

  /* Focus list: each icon sends out one soft ring as it appears */
  .focus-card ul.is-visible .icon { animation: ring 1.4s var(--ease) both; animation-delay: calc(var(--i, 0) * 140ms + .35s); }

  /* Reveal transitions plus a quick hover lift on the same elements */
  .js .trio-grid > *, .js .apart-grid > li, .js .tag-cloud > li, .js .affil-list > li {
    transition: opacity .7s var(--ease), transform .7s var(--ease), translate .35s var(--ease), box-shadow .35s var(--ease);
    transition-delay: calc(var(--i, 0) * 80ms), calc(var(--i, 0) * 80ms), 0s, 0s;
  }

  .btn-primary:hover::after { translate: 360% 0; transition: translate .8s var(--ease); }

  /* Menus and the chat panel ease in when they open */
  .mega-inner { animation: drop-in .3s var(--ease); }
  .nav-open .primary-nav { animation: drop-in .35s var(--ease); }
  .chat-panel { animation: rise-in .35s var(--ease); }
  .chat-msg { animation: rise-in .35s var(--ease) both; }
  .chat-launcher::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    animation: call 1.8s ease-out 3s 2;
  }
  .chat-typing span { animation: typing 1s ease-in-out infinite; }
  .chat-typing span:nth-child(2) { animation-delay: .15s; }
  .chat-typing span:nth-child(3) { animation-delay: .3s; }

  /* About: map pin drops in, then ripples while on screen */
  .js .location-grid .location-pin { opacity: 0; translate: 0 -1.5rem; }
  .js .location-grid.is-visible .location-pin { animation: pin-drop .9s var(--ease) .3s forwards; }
  .location-pin::before { animation: ripple 2.8s ease-out 1.4s infinite paused; }
  .is-live .location-pin::before { animation-play-state: running; }

  /* Scroll-linked depth where the browser supports it; static elsewhere */
  @supports (animation-timeline: view()) {
    .hero-media img { animation: settle 1.6s var(--ease) both, sink linear both; animation-timeline: auto, scroll(root); animation-range: normal, 0 90vh; }
    .passion::before { animation: drift-a linear both; animation-timeline: --passion; }
    .passion::after { animation: drift-b linear both; animation-timeline: --passion; }
  }

  @keyframes settle { from { scale: 1.05; } }
  @keyframes sink { to { translate: 0 2.5rem; } }
  @keyframes slide-in { from { opacity: 0; translate: -1.25rem -1.25rem; } }
  @keyframes float-in { from { opacity: 0; transform: translateY(12px); } }
  @keyframes bob { 50% { translate: 0 -6px; } }
  @keyframes pop { from { opacity: 0; scale: .5; } }
  @keyframes draw { to { stroke-dashoffset: 0; } }
  @keyframes travel {
    0% { stroke-dashoffset: .08; opacity: 0; }
    10%, 80% { opacity: 1; }
    100% { stroke-dashoffset: -1.2; opacity: 0; }
  }
  @keyframes mark { to { background-size: 100% 100%; } }
  @keyframes nudge { 30% { rotate: -8deg; scale: 1.08; } 60% { rotate: 5deg; } }
  @keyframes ring {
    from { box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 50%, transparent); }
    to { box-shadow: 0 0 0 14px transparent; }
  }
  @keyframes drop-in { from { opacity: 0; translate: 0 -8px; } }
  @keyframes rise-in { from { opacity: 0; translate: 0 10px; } }
  @keyframes call {
    from { box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 60%, transparent); }
    to { box-shadow: 0 0 0 16px transparent; }
  }
  @keyframes typing { 30% { opacity: 1; translate: 0 -3px; } }
  @keyframes pin-drop {
    0% { opacity: 0; translate: 0 -1.5rem; }
    60% { opacity: 1; translate: 0 3px; }
    100% { opacity: 1; translate: 0 0; }
  }
  @keyframes ripple { from { opacity: .7; scale: 1; } to { opacity: 0; scale: 1.45 1.9; } }
  @keyframes drift-a { from { translate: 0 -3rem; } to { translate: -5rem 5rem; } }
  @keyframes drift-b { from { translate: 0 3rem; } to { translate: 5rem -3rem; } }
}

/* ======================================================
   Services menu: the live site's hierarchy in our card style
   ====================================================== */
.mega a {
  display: flex; align-items: center; gap: .7rem; min-height: 44px; margin: 0; padding: .4rem .6rem;
  border-radius: var(--radius-sm); color: var(--text); font-weight: 600; line-height: 1.3;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.mega a[aria-current="page"] { color: var(--primary); }
.mega-ico { display: grid; place-items: center; flex: none; width: 2rem; height: 2rem; border-radius: 50%; background: var(--tint); color: var(--primary); transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease); }
.mega-ico .icon { width: 1.05rem; height: 1.05rem; }
.mega-chev { display: grid; margin-left: auto; color: var(--brand); transition: translate var(--dur) var(--ease); }
.mega-chev .icon { width: .95rem; height: .95rem; rotate: -90deg; }
.mega-inner[role="list"], .mega-sub[role="list"] { gap: .1rem; }
@media (min-width: 1024px) {
  .nav-item[data-menu] { position: relative; }
  .mega { left: 0; right: auto; top: 100%; padding: .4rem 0 0; }
  .mega-inner[role="list"] {
    display: grid; grid-template-columns: 1fr; position: relative; width: 22rem; max-width: none; margin: 0; padding: .5rem;
    border: 1px solid var(--border); border-radius: var(--radius);
  }
  .mega-sub[role="list"] {
    position: absolute; left: calc(100% + .5rem); top: -1px; display: grid; width: max-content; padding: .5rem;
    /* Stays open for a moment after the pointer leaves, so crossing the gap never closes it */
    visibility: hidden; opacity: 0; transition: opacity .15s var(--ease) .3s, visibility 0s linear .45s;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
  }
  /* Invisible bridge across the menu card's padding and the gap, so the pointer can reach the side card.
     It must span at least 1rem (.5rem padding + 1px border + .5rem gap). */
  .mega-sub::before { content: ""; position: absolute; top: -.5rem; bottom: -.5rem; left: -1.15rem; width: 1.15rem; }
  .mega-sub a { padding-inline: .75rem; font-weight: 400; color: var(--muted); }
  .mega-item:hover > a, .mega-item:focus-within > a { background: var(--tint); color: var(--primary); }
  .mega-item:hover .mega-ico, .mega-item:focus-within .mega-ico { background: var(--primary); color: #fff; }
  .mega-item:hover .mega-chev, .mega-item:focus-within .mega-chev { translate: 3px 0; }
  .mega-sub a:hover, .mega-sub a:focus-visible { background: var(--tint); color: var(--primary); }
  .has-sub:hover > .mega-sub, .has-sub:focus-within > .mega-sub { visibility: visible; opacity: 1; transition-delay: 0s; }
}
/* The menu sits further left when the header is tight, so the side card stays on screen. */
@media (min-width: 1024px) and (max-width: 1399px) { .mega { left: -3rem; } }
.nav-link { white-space: nowrap; }
@media (min-width: 1024px) and (max-width: 1199px) {
  .mega { left: -5.5rem; }
  .header-inner { gap: .5rem; }
  .nav-list { gap: 0; }
  .nav-link { padding-inline: .55rem; }
  .header-actions .btn { padding-inline: .85rem; }
}
/* Touch screens at this width have no hover, so show the sub-lists in place. */
@media (min-width: 1024px) and (hover: none) {
  .mega-sub[role="list"] { position: static; display: grid; width: auto; padding: 0 0 .4rem 2.7rem; border: 0; box-shadow: none; visibility: visible; opacity: 1; }
  .mega-chev { display: none; }
}
@media (max-width: 1023px) {
  .mega-inner[role="list"] { padding: .4rem; }
  .mega-chev { display: none; }
  .mega-ico { background: var(--surface); }
  .mega-sub[role="list"] { margin-left: 1.55rem; padding-left: .75rem; border-left: 2px solid var(--tint-strong); }
  .mega-sub a { color: var(--muted); font-weight: 400; }
}
@media (prefers-reduced-motion: no-preference) and (min-width: 1024px) and (hover: hover) {
  .has-sub:hover > .mega-sub, .has-sub:focus-within > .mega-sub { animation: side-in .28s var(--ease); }
  @keyframes side-in { from { opacity: 0; translate: -8px 0; } }
}
.nav-link.is-current { color: var(--primary); }
.footer-title a { padding: 0; color: var(--text); font-weight: 600; }
@media (min-width: 900px) { .footer-nav { grid-template-columns: 1.25fr 1fr 1.15fr .7fr; } }

/* ======================================================
   Service pages
   ====================================================== */
.crumbs { margin-bottom: var(--space-m); font-size: var(--step--1); color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem .5rem; }
.crumbs li + li::before { content: "/"; margin-right: .5rem; color: var(--border); }
.crumbs a { color: var(--primary); font-weight: 600; text-underline-offset: .2em; }
.hero-sub { margin-bottom: .75rem; font-family: var(--font-display); font-size: var(--step-2); line-height: 1.25; color: var(--text); max-width: 26ch; }
.crumbs ~ .lede { max-width: 42ch; font-size: var(--step-0); line-height: 1.6; }
.hero-media--wide { max-width: 34rem; }
.hero-media--wide img { aspect-ratio: 5 / 4; object-position: 60% center; }

/* Hero card: one claim moving through the cycle */
.claim-card {
  justify-self: end; width: 100%; max-width: 27rem; padding: clamp(1.25rem, 3vw, 1.75rem);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
}
.claim-head { display: flex; align-items: center; gap: .85rem; line-height: 1.3; color: var(--muted); font-size: .9375rem; }
.claim-head strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: var(--step-1); color: var(--text); }
.claim-icon .icon { width: 2.75rem; height: 2.75rem; padding: .65rem; border-radius: 50%; background: var(--tint); color: var(--primary); }
.claim-bar { height: 6px; margin-block: 1.1rem; border-radius: 6px; background: var(--tint); overflow: hidden; }
.claim-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--primary)); transform-origin: 0 50%; }
.claim-steps { display: grid; gap: .6rem; }
.claim-steps li { display: flex; align-items: center; gap: .7rem; font-weight: 600; }
.claim-steps .icon { width: 1.6rem; height: 1.6rem; padding: .3rem; border-radius: 50%; background: var(--primary); color: #fff; }
.claim-card figcaption { margin-top: 1rem; font-size: .8125rem; color: var(--muted); }
@media (max-width: 899px) { .claim-card { justify-self: start; max-width: none; } }

/* Proof strip */
.proof { padding-block: 0 var(--space-m); }
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.proof-grid li { display: grid; gap: .2rem; align-content: start; padding-left: 1rem; border-left: 3px solid var(--brand); color: var(--muted); line-height: 1.35; }
.proof-grid strong { font-family: var(--font-display); font-weight: 400; font-size: var(--step-2); line-height: 1.15; color: var(--primary); font-variant-numeric: tabular-nums; }
@media (max-width: 899px) { .proof-grid { grid-template-columns: 1fr 1fr; } }

/* Revenue cycle stepper */
.cycle { padding-block: var(--space-xl); }
.stepper { padding: clamp(1.25rem, 3vw, 2.25rem); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.stepper-tabs { position: relative; display: grid; grid-template-columns: repeat(var(--steps, 7), 1fr); margin-bottom: var(--space-l); }
.stepper-tabs::before, .stepper-tabs::after {
  content: ""; position: absolute; top: 1.3rem; left: calc(100% / (var(--steps, 7) * 2)); right: calc(100% / (var(--steps, 7) * 2)); height: 3px; border-radius: 3px; background: var(--tint-strong);
}
.stepper-tabs::after {
  background: var(--primary); transform: scaleX(var(--progress, 0)); transform-origin: 0 50%;
  transition: transform .6s var(--ease);
}
.stepper-tabs [role="tab"] {
  position: relative; z-index: 1; display: grid; justify-items: center; align-content: start; gap: .55rem; min-height: 44px; padding: 0 .3rem;
  background: none; border: 0; color: var(--muted); font-weight: 600; font-size: var(--step--1); line-height: 1.25; text-align: center;
  transition: color var(--dur) var(--ease);
}
.stepper-tabs b {
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--tint-strong); color: var(--primary); font-weight: 600; font-size: 1.0625rem;
  transition: background-color .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease), scale .35s var(--ease);
}
.stepper-tabs [role="tab"]:hover { color: var(--text); }
.stepper-tabs [role="tab"]:hover b { border-color: var(--brand); }
.stepper-tabs .is-done b { background: var(--tint); border-color: var(--primary); }
.stepper-tabs [aria-selected="true"] { color: var(--primary); }
.stepper-tabs [aria-selected="true"] b { background: var(--primary); border-color: var(--primary); color: #fff; scale: 1.1; }
.stepper-panel, .product-panel { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.stepper-panel[hidden], .product-panel[hidden], .finder-panel[hidden], .use-panel[hidden] { display: none; }
.stepper-count { margin-bottom: .35rem; color: var(--primary); font-weight: 600; font-size: var(--step--1); }
.stepper-panel h3, .product-panel h3 { margin-bottom: .6rem; font-size: var(--step-2); }
.stepper-panel p:not(.stepper-count), .product-panel > div > p:not(.stat) { margin-bottom: .75rem; color: var(--muted); }
.tick-list[role="list"] { display: grid; gap: .7rem; padding: 1.25rem; background: var(--tint); border-radius: var(--radius); }
.tick-list li { display: flex; align-items: flex-start; gap: .65rem; font-weight: 600; line-height: 1.4; }
.tick-list .icon { width: 1.4rem; height: 1.4rem; padding: .25rem; margin-top: .05em; border-radius: 50%; background: var(--primary); color: #fff; }
.stepper-nav { display: flex; justify-content: space-between; gap: .75rem; margin-top: var(--space-m); padding-top: var(--space-m); border-top: 1px solid var(--border); }
.stepper-nav .btn:disabled { opacity: .45; cursor: not-allowed; }
@media (max-width: 767px) {
  .stepper-tabs { margin-bottom: var(--space-m); }
  .stepper-tabs::before, .stepper-tabs::after { top: 1.05rem; }
  .stepper-tabs [role="tab"] { padding: 0; min-height: 44px; }
  .stepper-tabs [role="tab"] span {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
  .stepper-tabs b { width: 2.25rem; height: 2.25rem; font-size: 1rem; }
  .stepper-panel, .product-panel { grid-template-columns: 1fr; }
}

/* Service finder */
.finder { padding-block: var(--space-xl); background: var(--tint); position: relative; isolation: isolate; overflow: clip; }
.finder-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 1.25rem; align-items: stretch; }
.finder-tabs { display: grid; gap: .5rem; }
.finder-tabs [role="tab"] {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 52px; padding: .7rem 1.1rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text); font-weight: 600; text-align: left; line-height: 1.3;
  transition: background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease), translate .3s var(--ease);
}
.finder-tabs .icon { width: 1.1em; height: 1.1em; opacity: 0; translate: -6px 0; transition: opacity .3s var(--ease), translate .3s var(--ease); }
.finder-tabs [role="tab"]:hover { border-color: var(--brand); translate: 4px 0; }
.finder-tabs [role="tab"]:hover .icon { opacity: 1; translate: 0 0; }
.finder-tabs [aria-selected="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }
.finder-tabs [aria-selected="true"] .icon { opacity: 1; translate: 0 0; }
.finder-panel {
  display: flex; flex-direction: column; align-items: flex-start; gap: .6rem; padding: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
}
.finder-panel h3 { font-size: var(--step-2); }
.finder-panel p { margin-bottom: .75rem; color: var(--muted); }
.finder-panel .btn { margin-top: auto; white-space: normal; }
@media (max-width: 899px) { .finder-grid { grid-template-columns: minmax(0, 1fr); } }

/* Client result and software */
.result { padding-block: var(--space-xl) var(--space-2xl); }
.result-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.result-quote h2 { margin-bottom: var(--space-m); font-size: var(--step-3); line-height: 1.12; }
.result-quote blockquote { padding-left: 1.25rem; border-left: 3px solid var(--brand); }
.result-quote blockquote p { font-family: var(--font-display); font-style: italic; font-size: var(--step-1); line-height: 1.5; color: var(--text); max-width: none; }
.result-num { font-family: var(--font-display); font-size: clamp(3.5rem, 2.5rem + 4vw, 5.5rem); line-height: 1; color: var(--primary); font-variant-numeric: tabular-nums; }
.result-label { margin-bottom: var(--space-l); color: var(--muted); font-weight: 600; }
.result-side h3 { margin-bottom: .75rem; }
.chip-list { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip-list li { padding: .3rem .8rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-pill); font-size: var(--step--1); font-weight: 600; color: var(--muted); }
@media (max-width: 899px) { .result-grid { grid-template-columns: 1fr; } }

/* Clinical Documentation */
.why-docs { padding-block: var(--space-l) var(--space-xl); }
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.value-grid li { display: grid; align-content: start; gap: .5rem; padding: 1.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.value-grid h3 { font-size: var(--step-1); }
.value-grid p { color: var(--muted); font-size: 1rem; line-height: 1.5; }
@media (max-width: 1023px) { .value-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .value-grid { grid-template-columns: 1fr; } }

.demo { padding-block: var(--space-xl); background: var(--tint); }
.demo-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 1rem 2rem; margin-bottom: var(--space-l); }
.demo-head .section-head { margin-bottom: 0; }
.demo .btn-secondary { background: var(--surface); }
.demo-points { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-top: var(--space-l); }
.demo-points li { display: grid; gap: .5rem; align-content: start; font-weight: 600; line-height: 1.4; }
.demo-points .icon { width: 2.5rem; height: 2.5rem; padding: .6rem; border-radius: 50%; background: var(--surface); color: var(--primary); }
@media (max-width: 899px) { .demo-points { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .demo-points { grid-template-columns: 1fr; } }

.products { padding-block: var(--space-xl); }
.switcher { padding: clamp(1.25rem, 3vw, 2.25rem); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.pill-tabs { display: inline-flex; flex-wrap: wrap; gap: .25rem; padding: .3rem; margin-bottom: var(--space-l); background: var(--tint); border-radius: var(--radius); }
.pill-tabs [role="tab"], .chip-tabs [role="tab"] {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .5rem 1.1rem;
  background: none; border: 0; border-radius: var(--radius-sm); color: var(--primary); font-weight: 600; line-height: 1.25; text-align: left;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.pill-tabs [role="tab"]:hover { background: var(--tint-strong); }
.pill-tabs [aria-selected="true"], .pill-tabs [aria-selected="true"]:hover { background: var(--primary); color: #fff; }
.product-panel .store-row { margin-bottom: .5rem; }
.product-panel .stat { border-color: var(--border); }
.mini-title { margin-bottom: .75rem; font-family: var(--font-display); font-weight: 400; font-size: var(--step-1); }
.mini-steps { display: grid; gap: .9rem; }
.mini-steps li { display: grid; grid-template-columns: 2.25rem 1fr; gap: .8rem; color: var(--muted); line-height: 1.4; }
.mini-steps b { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--tint); color: var(--primary); }
.mini-steps strong { display: block; color: var(--text); }

.uses { padding-block: var(--space-l) var(--space-2xl); }
.uses-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.uses .section-title { margin-bottom: var(--space-m); }
.chip-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: var(--space-m); }
.chip-tabs [role="tab"] { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-pill); }
.chip-tabs [role="tab"]:hover { border-color: var(--brand); }
.chip-tabs [aria-selected="true"], .chip-tabs [aria-selected="true"]:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.use-panel { display: flex; align-items: center; gap: 1rem; min-height: 5rem; font-family: var(--font-display); font-size: var(--step-1); line-height: 1.35; }
.uses .trio-card--quote { margin: 0; }
@media (max-width: 899px) { .uses-grid { grid-template-columns: 1fr; } }

/* Every tab panel can take keyboard focus; keep its focus ring off the rounded card edge */
[role="tabpanel"]:focus-visible { outline-offset: 4px; border-radius: var(--radius-sm); }

@media (prefers-reduced-motion: no-preference) {
  [role="tabpanel"] { animation: rise-in .45s var(--ease) both; }
  .tick-list li { animation: rise-in .45s var(--ease) both; }
  .tick-list li:nth-child(2) { animation-delay: .06s; }
  .tick-list li:nth-child(3) { animation-delay: .12s; }
  .tick-list li:nth-child(4) { animation-delay: .18s; }
  .tick-list li:nth-child(5) { animation-delay: .24s; }
  .tick-list li:nth-child(6) { animation-delay: .3s; }
  .js .claim-card { animation: rise-in .8s var(--ease) .15s both; }
  .js .claim-bar span { animation: bar-fill 2.4s var(--ease) .5s both; }
  .js .claim-steps li { animation: rise-in .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 340ms + .6s); }
  .js .claim-steps .icon { animation: pop .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 340ms + .75s); }
  .chip-list li { transition: translate .25s var(--ease), border-color .25s var(--ease); }
  .chip-list li:hover { translate: 0 -2px; border-color: var(--brand); }
  @keyframes bar-fill { from { transform: scaleX(0); } }
}

/* ======================================================
   Billing sub-pages: Accounts Receivables, Charge Entry
   ====================================================== */
.aging-card, .ticket {
  justify-self: end; width: 100%; max-width: 27rem; padding: clamp(1.25rem, 3vw, 1.75rem);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
}
.aging-card figcaption, .ticket figcaption { margin-top: 1rem; font-size: .8125rem; color: var(--muted); }
.aging-bars { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; height: 13rem; margin-top: 1.25rem; }
.aging-bars span { display: grid; grid-template-rows: 1fr auto; gap: .4rem; min-height: 0; }
.aging-bars b { align-self: end; height: var(--h); border-radius: var(--radius-sm) var(--radius-sm) 0 0; background: linear-gradient(180deg, var(--brand), var(--primary)); transform-origin: 50% 100%; }
.aging-bars small { font-size: .8125rem; font-weight: 600; color: var(--muted); text-align: center; white-space: nowrap; }

.ticket-rows { display: grid; margin-top: 1rem; }
.ticket-rows div { display: grid; grid-template-columns: 1fr 4.5rem; align-items: center; gap: 1rem; padding-block: .6rem; border-top: 1px solid var(--border); }
.ticket-rows dt { font-weight: 600; line-height: 1.3; }
.ticket-rows dd { height: .55rem; border-radius: 1rem; background: linear-gradient(90deg, var(--brand), var(--tint-strong)); transform-origin: 0 50%; }
@media (max-width: 899px) { .aging-card, .ticket { justify-self: start; max-width: none; } }

.work-areas { padding-block: var(--space-m) var(--space-xl); }
.value-grid--3 { grid-template-columns: repeat(3, 1fr); }
.value-grid li { transition: translate .35s var(--ease), box-shadow .35s var(--ease); }
.value-grid > li:hover { translate: 0 -4px; box-shadow: var(--shadow); }
.value-grid .chip-list { margin-top: .4rem; }
.value-grid .chip-list li { display: block; padding: .2rem .7rem; }
.value-grid .chip-list li:hover { translate: none; box-shadow: none; }
@media (max-width: 899px) { .value-grid--3 { grid-template-columns: 1fr; } }

.benefits { padding-block: var(--space-xl) var(--space-m); }
.benefits--tint { padding-block: var(--space-xl); background: var(--tint); }

/* Charge entry timeline */
.process { padding-block: var(--space-m) var(--space-xl); }
.process-grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.process-intro { position: sticky; top: 7rem; }
.process-intro .section-title { margin-bottom: var(--space-s); }
.process-intro p { margin-bottom: var(--space-m); color: var(--muted); font-size: var(--step-1); line-height: 1.5; }
.timeline li { position: relative; display: grid; grid-template-columns: 2.75rem 1fr; gap: 1.1rem; padding-bottom: var(--space-m); }
.timeline li:not(:last-child)::before { content: ""; position: absolute; left: calc(1.375rem - 1px); top: 2.75rem; bottom: 0; width: 2px; background: var(--tint-strong); }
.timeline b { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 600; }
.timeline h3 { margin-bottom: .25rem; }
.timeline p { color: var(--muted); }
@media (max-width: 899px) { .process-grid { grid-template-columns: 1fr; } .process-intro { position: static; } }

/* Claim check demo */
.scrub-section { padding-block: var(--space-xl); background: var(--tint); }
.scrub-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.scrub-grid .section-title { margin-bottom: var(--space-s); }
.scrub-grid > div:not(.scrub) > p:not(.stat) { color: #2f3d4a; font-size: var(--step-1); line-height: 1.55; }
.stat--plain { margin: var(--space-m) 0 0; border-color: var(--tint-strong); }
.scrub { padding: clamp(1.25rem, 3vw, 2rem); background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.scrub-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1rem; }
.scrub .btn:disabled { opacity: .55; cursor: progress; }
.scrub-rows { display: grid; gap: .5rem; }
.scrub-rows li {
  display: flex; align-items: center; gap: .7rem; min-height: 3rem; padding: .5rem .75rem; line-height: 1.3;
  border: 1px solid var(--border); border-radius: var(--radius-sm); font-weight: 600;
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
}
.scrub-rows em { margin-left: auto; padding-left: .5rem; font-style: normal; font-size: var(--step--1); color: var(--muted); text-align: right; }
.scrub-dot { display: grid; place-items: center; flex: none; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--tint); color: transparent; transition: background-color .3s var(--ease), color .3s var(--ease); }
.scrub-dot .icon { width: .95rem; height: .95rem; }
.scrub-rows [data-state="checking"] { border-color: var(--brand); background: var(--tint); }
.scrub-rows [data-state="ok"] .scrub-dot { background: var(--primary); color: #fff; }
.scrub-rows [data-state="ok"] em { color: var(--primary); font-weight: 600; }
.scrub-rows [data-state="flag"] { border-color: #e6b8ae; background: #fbeeea; }
.scrub-rows [data-state="flag"] .scrub-dot { background: var(--accent); }
.scrub-rows [data-state="flag"] em { color: #7c3324; font-weight: 600; }
.scrub-status { min-height: 3em; margin-top: .9rem; font-weight: 600; color: var(--primary); }
.scrub-note { font-size: .8125rem; color: var(--muted); }
@media (max-width: 899px) { .scrub-grid { grid-template-columns: minmax(0, 1fr); } }

/* Submission flow */
.flow-section { padding-block: var(--space-xl); }
.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.flow li { position: relative; display: grid; align-content: start; gap: .5rem; padding: 1.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.flow li:not(:last-child)::after { content: ""; position: absolute; top: 50%; right: calc(-2.5rem + .4rem); width: calc(2.5rem - .8rem); height: 2px; background: var(--brand); }
.flow h3 { font-size: var(--step-1); }
.flow p { color: var(--muted); font-size: 1rem; line-height: 1.5; }
@media (max-width: 767px) {
  .flow { grid-template-columns: 1fr; gap: 1.5rem; }
  .flow li:not(:last-child)::after { top: 100%; left: 50%; right: auto; width: 2px; height: 1.5rem; }
}

/* Sibling links */
.more-billing { padding-block: var(--space-xl); }
.more-title { margin-bottom: var(--space-m); font-size: var(--step-2); }
.more-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.more-list a {
  display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: .45rem 1rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-pill);
  color: var(--primary); font-weight: 600; line-height: 1.25; text-decoration: none;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.more-list a:hover { background: var(--tint); border-color: var(--brand); }
.more-list a[aria-current="page"] { background: var(--primary); border-color: var(--primary); color: #fff; }

@media (prefers-reduced-motion: no-preference) {
  .js .aging-card, .js .ticket { animation: rise-in .8s var(--ease) .15s both; }
  /* Bars start at their "before" height and settle to the worked-down one */
  .js .aging-bars b { animation: age-down 2s var(--ease) .9s both; }
  .js .ticket-rows dd { animation: ticket-fill .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 220ms + .6s); }
  .timeline b { transition: scale .5s var(--ease); }
  .timeline li.is-visible b { animation: ring-primary 1.2s var(--ease) .15s both; }
  .scrub-rows [data-state="flag"] { animation: nudge-x .45s var(--ease); }
  .scrub-rows [data-state="ok"] .scrub-dot { animation: pop .4s var(--ease); }
  .js .flow > li { transition: opacity .7s var(--ease), transform .7s var(--ease); }
  @keyframes age-down { from { transform: scaleY(var(--from, 1)); } }
  @keyframes ticket-fill { from { transform: scaleX(0); } }
  @keyframes ring-primary {
    from { box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 55%, transparent); }
    to { box-shadow: 0 0 0 12px transparent; }
  }
  @keyframes nudge-x { 30% { translate: -3px 0; } 60% { translate: 3px 0; } }
}

/* ======================================================
   Services overview
   ====================================================== */
.mega-all { margin-top: .3rem; padding-top: .3rem; border-top: 1px solid var(--border); }
.mega-all a { color: var(--primary); }
.footer-title a:hover { color: var(--primary); }

.need-card {
  justify-self: end; width: 100%; max-width: 27rem; padding: clamp(1.25rem, 3vw, 1.75rem);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
}
.need-card h2 { margin-bottom: .75rem; font-size: var(--step-1); }
.need-card ul { display: grid; gap: .2rem; }
.need-card button {
  display: flex; align-items: center; gap: .75rem; width: 100%; min-height: 52px; padding: .5rem .6rem;
  background: none; border: 0; border-radius: var(--radius-sm); color: var(--text); font-weight: 600; text-align: left;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.need-card button > .icon { width: 1.05em; height: 1.05em; margin-left: auto; color: var(--brand); transition: translate var(--dur) var(--ease); }
.need-card button:hover { background: var(--tint); color: var(--primary); }
.need-card button:hover .mega-ico { background: var(--primary); color: #fff; }
.need-card button:hover > .icon { translate: 3px 0; }
@media (max-width: 899px) { .need-card { justify-self: start; max-width: none; } }

.services--all { padding-block: var(--space-m) var(--space-xl); scroll-margin-top: 6rem; }
.services--all:focus { outline: none; }
.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: var(--space-m); }
.filter-bar button {
  min-height: 44px; padding: .45rem 1.05rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-pill);
  color: var(--primary); font-weight: 600; line-height: 1.25;
  transition: background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.filter-bar button:hover { border-color: var(--brand); }
.filter-bar [aria-pressed="true"], .filter-bar [aria-pressed="true"]:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

/* Cards here can hold a sub-list, so the outer item carries the border and lift */
.svc-cards--all { align-items: start; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1180px) { .svc-cards--all { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 640px) { .svc-cards--all { grid-template-columns: minmax(0, 1fr); } }
.svc-cards--all > li {
  display: flex; flex-direction: column; overflow: hidden; height: 100%;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  transition: translate .35s var(--ease), box-shadow .35s var(--ease);
}
.svc-cards--all > li[hidden] { display: none; }
.svc-cards--all > li:hover, .svc-cards--all > li:focus-within { translate: 0 -4px; box-shadow: var(--shadow); }
.svc-cards--all > li > a { flex: 1; height: auto; background: none; border: 0; border-radius: 0; }
.svc-cards--all > li > a:hover, .svc-cards--all > li > a:focus-visible { transform: none; box-shadow: none; }
.svc-sub { border-top: 1px solid var(--border); }
.svc-sub summary {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 48px; padding: .5rem 1.6rem;
  color: var(--primary); font-weight: 600; cursor: pointer; list-style: none;
}
.svc-sub summary::-webkit-details-marker { display: none; }
.svc-sub summary .icon { width: 1rem; height: 1rem; transition: rotate var(--dur) var(--ease); }
.svc-sub[open] summary .icon { rotate: 180deg; }
.svc-sub summary:hover { background: var(--tint); }
.svc-sub ul { padding: 0 .9rem .7rem; }
.svc-sub a { display: flex; align-items: center; min-height: 40px; padding: .3rem .7rem; border-radius: var(--radius-sm); color: var(--muted); text-decoration: none; line-height: 1.3; }
.svc-sub a:hover { background: var(--tint); color: var(--primary); }
@media (max-width: 640px) {
  .svc-cards--all > li > a { padding: 1.15rem 1.1rem; }
  .svc-sub summary { padding-inline: 1.1rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .js .need-card { animation: rise-in .8s var(--ease) .15s both; }
  .js .svc-cards--all > li {
    transition: opacity .7s var(--ease), transform .7s var(--ease), translate .35s var(--ease), box-shadow .35s var(--ease);
    transition-delay: calc(var(--i, 0) * 80ms), calc(var(--i, 0) * 80ms), 0s, 0s;
  }
  /* Cards ease back in whenever a filter shows them */
  .js .svc-cards--all.is-visible > li:not([hidden]) { animation: rise-in .4s var(--ease); }
  .svc-sub[open] ul { animation: rise-in .3s var(--ease); }
}

/* ======================================================
   About Us
   ====================================================== */
.audience { padding-block: var(--space-m) var(--space-xl); }
.audience-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.audience-grid li {
  display: flex; align-items: center; gap: .85rem; min-height: 4.25rem; padding: .75rem 1.1rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); font-weight: 600; line-height: 1.3;
  transition: translate .35s var(--ease), box-shadow .35s var(--ease);
}
.audience-grid li:hover { translate: 0 -3px; box-shadow: var(--shadow); }
.audience-grid li:hover .mega-ico { background: var(--primary); color: #fff; }
@media (max-width: 899px) { .audience-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .audience-grid { grid-template-columns: 1fr; } }
.key-services { padding-block: 0 var(--space-xl); }
.key-services .value-grid li { grid-template-rows: auto auto 1fr auto; }
.key-services .text-link { font-size: 1rem; line-height: 1.3; }
.emr { padding-block: var(--space-xl); }
.emr .finder-tabs [role="tab"] { background: var(--surface); }
.emr .finder-tabs [aria-selected="true"] { background: var(--primary); }
.promise { padding-block: 0 var(--space-xl); }
.promise p {
  max-width: 34ch; margin-inline: auto; text-align: center; font-family: var(--font-display); font-style: italic;
  font-size: var(--step-2); line-height: 1.35; color: var(--primary);
}

/* ======================================================
   Contact Us
   ====================================================== */
.hero--short { padding-bottom: calc(var(--space-l) + 4.5rem); }
.need-card a {
  display: flex; align-items: center; gap: .75rem; min-height: 52px; padding: .5rem .6rem;
  border-radius: var(--radius-sm); color: var(--text); font-weight: 600; text-decoration: none; overflow-wrap: anywhere;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.need-card a > .icon { width: 1.05em; height: 1.05em; margin-left: auto; color: var(--brand); transition: translate var(--dur) var(--ease); }
.need-card a:hover { background: var(--tint); color: var(--primary); }
.need-card a:hover .mega-ico { background: var(--primary); color: #fff; }
.need-card a:hover > .icon { translate: 3px 0; }

.contact-main { padding-block: var(--space-m) var(--space-2xl); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(1.25rem, 3vw, 2.5rem); align-items: start; }
.form-card { padding: clamp(1.25rem, 3vw, 2.25rem); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.form-card h2, .office h2 { font-size: var(--step-2); }
.form-hint { margin: .25rem 0 var(--space-m); color: var(--muted); font-size: var(--step--1); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: var(--space-m); }
.field--wide { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: .3rem; font-weight: 600; }
.field input, .field textarea {
  display: block; width: 100%; min-height: 48px; padding: .6rem .8rem; background: var(--surface);
  border: 1px solid #8494a3; border-radius: var(--radius-sm); line-height: 1.4;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field textarea { resize: vertical; font: inherit; color: inherit; }
.field input:hover, .field textarea:hover { border-color: var(--primary); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 35%, transparent); }
.field [aria-invalid="true"] { border-color: var(--accent-text); }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.field-note { margin-top: .3rem; color: var(--muted); font-size: var(--step--1); }
.field-error { margin-top: .3rem; color: var(--accent-text); font-size: var(--step--1); font-weight: 600; }
.form-preview { display: flex; align-items: center; gap: .4rem; margin-top: .9rem; color: var(--muted); font-size: var(--step--1); }
.form-preview .icon { color: var(--primary); }
.form-done { display: grid; justify-items: start; gap: .6rem; }
.form-done[hidden] { display: none; }
.form-done:focus { outline: none; }
.form-done p { color: var(--muted); }
.office h2 { margin-bottom: var(--space-s); }
.contact-main .location-grid { display: block; }
.office .pill-tabs { margin-bottom: var(--space-s); }
.office-panel { display: grid; gap: .9rem; }
.office-panel[hidden] { display: none; }
.office .location-map { min-height: 14rem; }
.office address { font-style: normal; font-size: var(--step-1); line-height: 1.45; }
@media (max-width: 899px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }

@media (prefers-reduced-motion: no-preference) {
  .js .audience-grid > li {
    transition: opacity .7s var(--ease), transform .7s var(--ease), translate .35s var(--ease), box-shadow .35s var(--ease);
    transition-delay: calc(var(--i, 0) * 80ms), calc(var(--i, 0) * 80ms), 0s, 0s;
  }
  .form-done { animation: rise-in .5s var(--ease); }
  .form-done .svc-icon .icon { animation: pop .5s var(--ease) .1s both; }
  .field-error { animation: rise-in .25s var(--ease); }
}

/* ======================================================
   Medical Coding and Patient Statement pages
   ====================================================== */
.cert-list { margin: 1.1rem 0 .9rem; }
.cert-list li { padding: .35rem .9rem; border-color: var(--brand); color: var(--primary); font-size: 1rem; }
.cert-note { color: var(--muted); font-size: var(--step--1); line-height: 1.5; }
.coding-services, .types { padding-block: var(--space-m) var(--space-xl); }
.accuracy, .cadence { padding-block: var(--space-xl); }
.accuracy, .anatomy { background: var(--tint); }
.demographics, .eligibility, .outsource, .records { padding-block: var(--space-xl); }
.eligibility { background: var(--tint); }
.outsource { padding-block: var(--space-xl) var(--space-m); }
.anatomy { padding-block: var(--space-xl); }
.coding-services .product-panel { grid-template-columns: 1.3fr 1fr; }
@media (max-width: 767px) { .coding-services .product-panel { grid-template-columns: minmax(0, 1fr); } }

.tick-list--plain { margin-top: var(--space-m); padding: 0; background: none; }
.value-grid--2 { grid-template-columns: repeat(2, 1fr); }
.value-grid--2 li { align-content: center; }
.benefit-row { margin-top: var(--space-l); }
@media (max-width: 899px) { .value-grid--2 { grid-template-columns: 1fr 1fr; } }

/* Coding accuracy toggle */
.toggle { display: flex; flex-wrap: wrap; gap: .25rem; padding: .3rem; margin-bottom: var(--space-s); background: var(--tint); border-radius: var(--radius); }
.toggle button {
  flex: 1; min-height: 44px; padding: .45rem .9rem; background: none; border: 0; border-radius: var(--radius-sm);
  color: var(--primary); font-weight: 600; line-height: 1.25;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.toggle button:hover { background: var(--tint-strong); }
.toggle [aria-pressed="true"], .toggle [aria-selected="true"], .toggle [aria-pressed="true"]:hover, .toggle [aria-selected="true"]:hover { background: var(--primary); color: #fff; }
.code-case { padding: 1rem; border: 1px solid var(--border); border-radius: var(--radius); transition: background-color .4s var(--ease), border-color .4s var(--ease); }
.code-case[data-state="missing"] { background: #fbeeea; border-color: #e6b8ae; }
.code-flow { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: .75rem; }
.code-step { padding: .4rem .8rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-pill); font-weight: 600; font-size: var(--step--1); line-height: 1.25; }
.code-step--end { background: var(--primary); border-color: var(--primary); color: #fff; }
.code-case[data-state="missing"] .code-step--end { background: var(--accent-text); border-color: var(--accent-text); }
.code-case[data-state="missing"] [data-code-step] { border-color: var(--accent-text); color: #7c3324; }
.code-arrow .icon { width: 1rem; height: 1rem; color: var(--brand); }
.code-case .scrub-status { min-height: 0; margin-top: 0; color: var(--text); font-weight: 400; }

/* Demographics */
.demo-split { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(1.25rem, 3vw, 2.5rem); align-items: start; }
.demo-split .mini-title { margin-bottom: var(--space-s); }
.demo-note { margin-top: var(--space-s); color: var(--muted); }
.warn-card { display: grid; gap: .6rem; align-content: start; padding: clamp(1.25rem, 3vw, 1.75rem); background: #fbeeea; border: 1px solid #e6b8ae; border-radius: var(--radius); }
.warn-card .trio-icon .icon { background: var(--surface); color: var(--accent-text); }
.warn-card p { color: #5d2a20; }
@media (max-width: 899px) { .demo-split { grid-template-columns: 1fr; } }

/* Eligibility checklist */
.chip-list--lg li { padding: .45rem 1rem; font-size: 1rem; color: var(--primary); }
.check-progress { margin-bottom: .5rem; font-weight: 600; color: var(--muted); }
.check-progress span { color: var(--primary); }
.scrub .claim-bar { margin-block: .5rem 1rem; }
.scrub .claim-bar span { transition: transform .5s var(--ease); }
.check-items { display: grid; gap: .4rem; }
.check-items label {
  display: flex; align-items: flex-start; gap: .75rem; min-height: 48px; padding: .6rem .8rem; cursor: pointer; line-height: 1.35;
  border: 1px solid var(--border); border-radius: var(--radius-sm); font-weight: 600;
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
}
.check-items label:hover { border-color: var(--brand); }
.check-items label:has(input:checked) { background: var(--tint); border-color: var(--primary); }
.check-items input { flex: none; width: 1.25rem; height: 1.25rem; margin-top: .1rem; accent-color: var(--primary); }
.check-items input:focus-visible { outline-offset: 2px; }
.is-complete .scrub-status { color: var(--primary); }

/* Patient statement */
.statement-mini .delivery-list { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: 1rem; }
.delivery-list li { display: flex; align-items: center; gap: .6rem; padding: .7rem .8rem; background: var(--tint); border-radius: var(--radius-sm); font-weight: 600; }
.delivery-list .icon { width: 1.4rem; height: 1.4rem; color: var(--primary); }
.types-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 20rem)); gap: 1.25rem; }
.types-grid li { display: flex; align-items: center; gap: 1rem; padding: 1.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); transition: translate .35s var(--ease), box-shadow .35s var(--ease); }
.types-grid li:hover { translate: 0 -4px; box-shadow: var(--shadow); }
.types-grid h3 { font-size: var(--step-2); }
@media (max-width: 560px) { .types-grid { grid-template-columns: minmax(0, 1fr); } }

.anatomy-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 1.25rem; align-items: stretch; }
.anatomy .finder-tabs [role="tab"] { background: var(--surface); }
.anatomy .finder-tabs [aria-selected="true"] { background: var(--primary); }
.statement-side { display: grid; gap: 1rem; align-content: start; }
.statement-sheet {
  display: grid; gap: .75rem; padding: 1.25rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
}
.s-part { display: grid; gap: .45rem; padding: .7rem .8rem; border: 2px solid transparent; border-radius: var(--radius-sm); font-size: var(--step--1); color: var(--muted); transition: background-color .4s var(--ease), border-color .4s var(--ease), translate .4s var(--ease); }
.s-part strong { font-family: var(--font-display); font-weight: 400; font-size: var(--step-1); color: var(--text); }
.s-part i { display: block; height: .5rem; border-radius: 1rem; background: var(--tint-strong); }
.s-part i:nth-of-type(2) { width: 70%; }
.s-part b { display: block; width: 6rem; height: .75rem; border-radius: 1rem; background: var(--tint-strong); }
.statement-demo:has(#sa-1[aria-selected="true"]) .s-1,
.statement-demo:has(#sa-2[aria-selected="true"]) .s-2,
.statement-demo:has(#sa-3[aria-selected="true"]) .s-3,
.statement-demo:has(#sa-4[aria-selected="true"]) .s-4 { background: var(--tint); border-color: var(--primary); translate: 4px 0; }
.statement-demo:has(#sa-4[aria-selected="true"]) .s-4 b { background: var(--primary); }
.statement-side .finder-panel { padding: 1.25rem 1.5rem; }
.statement-side .finder-panel h3 { font-size: var(--step-1); }
.statement-side .finder-panel p { margin: 0; }
@media (max-width: 899px) { .anatomy-grid { grid-template-columns: minmax(0, 1fr); } }

.toggle--weeks { margin-bottom: 1rem; }
.week-panel[hidden] { display: none; }
.groups { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; margin-bottom: .8rem; }
.groups span { height: 4.25rem; border-radius: var(--radius-sm); background: var(--tint); transition: background-color .4s var(--ease), scale .4s var(--ease); }
.groups .on { background: linear-gradient(180deg, var(--brand), var(--primary)); scale: 1 1.12; }
.week-panel p { max-width: none; }

.records-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.faq { display: grid; gap: .6rem; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 56px; padding: .75rem 1.25rem;
  font-weight: 600; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { flex: none; width: 1.1rem; height: 1.1rem; color: var(--primary); transition: rotate var(--dur) var(--ease); }
.faq details[open] summary .icon { rotate: 180deg; }
.faq summary:hover { color: var(--primary); }
.faq p { padding: 0 1.25rem 1.1rem; color: var(--muted); max-width: none; }
@media (max-width: 899px) { .records-grid { grid-template-columns: minmax(0, 1fr); } }

@media (prefers-reduced-motion: no-preference) {
  .js .cert-list li { animation: pop .5s var(--ease) both; }
  .js .cert-list li:nth-child(1) { animation-delay: .7s; } .js .cert-list li:nth-child(2) { animation-delay: .8s; }
  .js .cert-list li:nth-child(3) { animation-delay: .9s; } .js .cert-list li:nth-child(4) { animation-delay: 1s; }
  .js .cert-list li:nth-child(5) { animation-delay: 1.1s; } .js .cert-list li:nth-child(6) { animation-delay: 1.2s; }
  .js .statement-mini .delivery-list li { animation: rise-in .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 160ms + .6s); }
  .js .statement-mini .delivery-list .icon { animation: pop .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 160ms + .75s); }
  .js .types-grid > li { transition: opacity .7s var(--ease), transform .7s var(--ease), translate .35s var(--ease), box-shadow .35s var(--ease); transition-delay: calc(var(--i, 0) * 80ms), calc(var(--i, 0) * 80ms), 0s, 0s; }
  /* Coding toggle: the three steps replay each time the case changes */
  .code-case[data-state] .code-step { animation: rise-in .45s var(--ease) both; }
  .code-case .code-step:nth-of-type(2) { animation-delay: .12s; }
  .code-case .code-step:nth-of-type(3) { animation-delay: .24s; }
  .code-case[data-state="missing"] .code-step--end { animation: rise-in .45s var(--ease) .24s both, nudge-x .5s var(--ease) .7s; }
  .code-case[data-state="accurate"] .code-step--end { animation: rise-in .45s var(--ease) .24s both, ring-primary 1.2s var(--ease) .7s; }
  .is-complete .claim-bar span { animation: ring-primary 1.2s var(--ease); }
  .check-items label:has(input:checked) { animation: pop-soft .35s var(--ease); }
  .s-part { animation: none; }
  .groups .on { animation: pop-soft .5s var(--ease); }
  .faq details[open] p { animation: rise-in .35s var(--ease); }
  @keyframes pop-soft { from { scale: .97; } }
}
.result-plain { margin-bottom: var(--space-m); color: var(--muted); font-size: var(--step-1); line-height: 1.5; }

/* ======================================================
   Payment Posting, Prior Authorization, Credentialing
   ====================================================== */
.finder-panel .chip-list { margin-top: -.25rem; }
.denials, .auth-what { padding-block: var(--space-xl); }
.cycle--tint { background: var(--tint); }
.cycle--tint .stepper { box-shadow: var(--shadow); }

/* Denial router: one start node branching to four outcomes */
.router { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.router-map {
  position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: repeat(4, auto); column-gap: 3.5rem; row-gap: .75rem;
  padding: clamp(1.25rem, 3vw, 2rem); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
}
.router-start {
  grid-row: 1 / -1; align-self: center; display: flex; align-items: center; gap: .5rem; padding: .7rem 1rem;
  background: #fbeeea; border: 1px solid #e6b8ae; border-radius: var(--radius-pill); font-weight: 600; color: #7c3324; white-space: nowrap;
}
.router-start .icon { color: var(--accent-text); }
.router-end {
  position: relative; display: flex; align-items: center; gap: .6rem; min-height: 3rem; padding: .55rem .9rem;
  border: 1px solid var(--border); border-radius: var(--radius-sm); font-weight: 600; color: var(--muted);
  transition: background-color .4s var(--ease), border-color .4s var(--ease), color .4s var(--ease), translate .4s var(--ease);
}
.router-end .icon { width: 1.25rem; height: 1.25rem; color: var(--brand); }
.router-end::before {
  content: ""; position: absolute; right: 100%; top: 50%; width: 3.5rem; height: 2px; margin-top: -1px;
  background: var(--tint-strong); transform-origin: 0 50%; transition: background-color .4s var(--ease);
}
.router:has(#rt-1[aria-selected="true"]) .r-1,
.router:has(#rt-2[aria-selected="true"]) .r-2,
.router:has(#rt-3[aria-selected="true"]) .r-3,
.router:has(#rt-4[aria-selected="true"]) .r-4 { background: var(--tint); border-color: var(--primary); color: var(--primary); translate: 4px 0; }
.router:has(#rt-1[aria-selected="true"]) .r-1::before,
.router:has(#rt-2[aria-selected="true"]) .r-2::before,
.router:has(#rt-3[aria-selected="true"]) .r-3::before,
.router:has(#rt-4[aria-selected="true"]) .r-4::before { background: var(--primary); height: 3px; }
.router-side .chip-tabs { margin-bottom: var(--space-s); }
.router-side .use-panel p { margin: 0; }
@media (max-width: 899px) { .router { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
  .router-map { grid-template-columns: minmax(0, 1fr); column-gap: 0; }
  .router-start { grid-row: auto; justify-self: start; margin-bottom: .25rem; }
  .router-end::before { display: none; }
}

/* Authorization outcomes reuse the coding toggle styles */
.outcome[hidden] { display: none; }
.outcome p { margin: 0; color: var(--text); }
.prevent-grid { max-width: 52rem; }

/* Credentialing timeline card */
.cred-total { margin: 1rem 0 .25rem; font-family: var(--font-display); font-size: clamp(2.5rem, 2rem + 2vw, 3.25rem); line-height: 1; color: var(--primary); font-variant-numeric: tabular-nums; }
.cred-total small { font-family: var(--font-body); font-size: 1rem; font-weight: 600; color: var(--muted); }
.cred-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; margin-top: 1rem; }
.cred-track li { display: grid; gap: .45rem; font-size: .8125rem; font-weight: 600; color: var(--muted); line-height: 1.25; }
.cred-track span { display: block; height: .55rem; border-radius: 1rem; background: linear-gradient(90deg, var(--brand), var(--primary)); transform-origin: 0 50%; }
.stage-time { display: grid; align-content: center; gap: .25rem; padding: 1.5rem; background: var(--tint); border-radius: var(--radius); }
.stage-time strong { font-family: var(--font-display); font-weight: 400; font-size: var(--step-3); line-height: 1; color: var(--primary); }
.stage-time span { color: var(--muted); font-weight: 600; }
.audience-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1023px) { .audience-grid--4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .audience-grid--4 { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: no-preference) {
  .router:has(#rt-1[aria-selected="true"]) .r-1::before,
  .router:has(#rt-2[aria-selected="true"]) .r-2::before,
  .router:has(#rt-3[aria-selected="true"]) .r-3::before,
  .router:has(#rt-4[aria-selected="true"]) .r-4::before { animation: line-draw .5s var(--ease); }
  .js .router-start { animation: none; }
  .js .router.is-visible .router-start { animation: pop .6s var(--ease) .2s both; }
  .js .cred-track span { animation: ticket-fill .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 260ms + .7s); }
  .stage-time { animation: rise-in .45s var(--ease) .1s both; }
  @keyframes line-draw { from { transform: scaleX(0); } }
}
.cycle--tint + .audience { padding-top: var(--space-xl); }

/* ======================================================
   MindScribeAi pages, Practice Revenue Management, Medical Records Summary
   ====================================================== */
.section-lede { margin-bottom: var(--space-s); color: var(--muted); font-size: var(--step-1); line-height: 1.55; }
.audience .passion-grid { align-items: start; }
.value-grid--stack { grid-template-columns: 1fr; }
.value-grid--stack li { grid-template-columns: auto 1fr; align-items: center; column-gap: 1rem; }
.value-grid--stack h3 { font-size: var(--step-1); }
.hero-copy .store-row { gap: .75rem 1rem; }

/* Phone mock-up */
.phone { justify-self: end; display: grid; justify-items: center; gap: .75rem; margin: 0; }
.phone figcaption { font-size: .8125rem; color: var(--muted); }
.phone-screen {
  position: relative; display: grid; align-content: start; gap: .9rem; width: min(19rem, 100%); min-height: 30rem; padding: 2.25rem 1.1rem 1.25rem;
  background: var(--surface); border: 10px solid var(--navy); border-radius: 2.4rem; box-shadow: var(--shadow), 0 30px 60px -30px rgb(0 29 57 / .45);
}
.phone-screen::before { content: ""; position: absolute; top: .55rem; left: 50%; width: 5rem; height: 1.1rem; margin-left: -2.5rem; border-radius: 1rem; background: var(--navy); }
.phone-top { display: flex; justify-content: space-between; align-items: center; font-size: .8125rem; color: var(--muted); font-weight: 600; }
.phone-wave { display: flex; align-items: center; justify-content: center; gap: .3rem; height: 3.5rem; padding: .5rem; background: var(--tint); border-radius: var(--radius); }
.phone-wave i { width: .3rem; height: 30%; border-radius: 1rem; background: linear-gradient(180deg, var(--brand), var(--primary)); }
.phone-wave i:nth-child(3n) { height: 70%; } .phone-wave i:nth-child(4n) { height: 50%; } .phone-wave i:nth-child(5n) { height: 85%; }
.phone-lines { display: grid; gap: .55rem; font-size: .875rem; line-height: 1.4; }
.phone-lines li { padding: .5rem .7rem; background: var(--bg); border-radius: 10px; }
.phone-lines b { display: block; font-size: .75rem; color: var(--muted); }
.phone-note { display: flex; align-items: center; gap: .45rem; padding: .6rem .75rem; border-radius: 10px; background: var(--primary); color: #fff; font-weight: 600; font-size: .875rem; }
@media (max-width: 899px) { .phone { justify-self: center; } }

/* Behavioral cue demo */
.cues { padding-block: var(--space-xl); background: var(--tint); }
.cues .scrub-grid > div:not(.scrub) > p { color: #2f3d4a; font-size: var(--step-1); line-height: 1.55; margin-bottom: var(--space-s); }
.cue-text { padding: 1rem 1.1rem; background: var(--bg); border-radius: var(--radius-sm); line-height: 1.9; }
.cue-text .who { display: block; font-size: .8125rem; font-weight: 600; color: var(--muted); }
.cue { position: relative; padding: .1em .2em; background: none; color: inherit; border-radius: 4px; transition: background-color .4s var(--ease), box-shadow .4s var(--ease); }
.show-cues .cue { background: color-mix(in srgb, var(--brand) 22%, transparent); box-shadow: inset 0 -2px 0 var(--primary); }
.show-cues .cue::after {
  content: attr(data-cue); position: absolute; left: 0; bottom: calc(100% + .1rem); padding: .05rem .4rem; border-radius: 4px;
  background: var(--primary); color: #fff; font-size: .6875rem; font-weight: 600; line-height: 1.4; white-space: nowrap;
}
.cue-legend { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: .9rem; font-size: var(--step--1); font-weight: 600; color: var(--muted); }
/* Legend text stays readable; only the markers fade until the demo runs */
.cue-dot { opacity: .35; transition: opacity .4s var(--ease); }
.show-cues .cue-dot, .show-edits .cue-dot { opacity: 1; }
.cue-legend li { display: flex; align-items: center; gap: .4rem; }
.cue-dot { width: .75rem; height: .75rem; border-radius: 3px; background: color-mix(in srgb, var(--brand) 40%, transparent); box-shadow: inset 0 -2px 0 var(--primary); }
.cue-demo [aria-pressed="true"] { background: var(--primary-hover); }
.soon { display: inline-block; margin-left: .35rem; padding: .05rem .5rem; border-radius: var(--radius-pill); background: var(--surface); border: 1px solid var(--brand); color: var(--primary); font-size: .75rem; font-weight: 600; vertical-align: middle; }

/* Get the app band */
.get-app { padding-block: var(--space-m) var(--space-l); }
.get-app-card {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: clamp(1.5rem, 4vw, 2.75rem); border-radius: var(--radius); color: #e3edf7;
  background: linear-gradient(135deg, var(--primary) 0%, var(--navy) 100%);
}
.get-app-card h2 { color: #fff; font-size: var(--step-3); line-height: 1.1; margin-bottom: .5rem; }
.get-app-card p { color: #cfdfee; max-width: 42ch; }
.store-badge--light { background: #fff; color: var(--text); }
.store-soon--light { color: #e3edf7; }

/* OpenEMR sync card */
.sync-card {
  justify-self: end; width: 100%; max-width: 27rem; padding: clamp(1.25rem, 3vw, 1.75rem);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
}
.sync-card figcaption { margin-top: 1rem; font-size: .8125rem; color: var(--muted); }
.sync-node { display: flex; align-items: center; gap: .85rem; padding: .85rem; border: 1px solid var(--border); border-radius: var(--radius-sm); line-height: 1.3; color: var(--muted); font-size: .9375rem; }
.sync-node strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: var(--step-1); color: var(--text); }
.sync-node--emr { border-color: var(--primary); background: var(--tint); }
.sync-path { position: relative; height: 3.25rem; margin-left: 2.2rem; border-left: 2px dashed var(--brand); }
.sync-path i { position: absolute; left: -6px; top: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); opacity: 0; }
.sync-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
.sync-tags li { padding: .2rem .7rem; border-radius: var(--radius-pill); background: var(--tint); color: var(--primary); font-size: .8125rem; font-weight: 600; }
@media (max-width: 899px) { .sync-card { justify-self: start; max-width: none; } }

/* Benefit table */
.why-small { padding-block: var(--space-xl); }
.why-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.why-grid .section-title { margin-bottom: var(--space-m); }
.table-card { overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.value-table { width: 100%; border-collapse: collapse; }
.value-table thead th { padding: .8rem 1.25rem; background: var(--tint); text-align: left; font-size: var(--step--1); color: var(--primary); }
.value-table tbody th, .value-table td { padding: .85rem 1.25rem; border-top: 1px solid var(--border); text-align: left; vertical-align: middle; line-height: 1.4; }
.value-table tbody th { white-space: nowrap; font-weight: 600; }
.value-table tbody th .icon { margin-right: .4rem; vertical-align: -.2em; color: var(--primary); }
.value-table td { color: var(--muted); }
.value-table tbody tr { transition: background-color .3s var(--ease); }
.value-table tbody tr:hover { background: var(--tint); }
.value-table tbody tr:first-child td { color: var(--primary); font-weight: 600; }
@media (max-width: 899px) { .why-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
  .value-table thead { display: none; }
  .value-table tr { display: grid; padding: .75rem 1rem; border-top: 1px solid var(--border); }
  .value-table tbody th, .value-table td { padding: 0; border: 0; white-space: normal; }
  .value-table td { margin-top: .2rem; }
}
.quote-band { padding-block: var(--space-xl) 0; }
.quote-band .trio-card--quote { max-width: 44rem; margin: 0 auto; }

/* Practice revenue management */
.gauges { display: grid; gap: .8rem; margin-top: 1.1rem; }
.gauges li { display: grid; gap: .35rem; font-weight: 600; font-size: .9375rem; }
.gauges b { display: block; height: .55rem; border-radius: 1rem; background: linear-gradient(90deg, var(--brand), var(--primary)); transform-origin: 0 50%; }
.router-start--brand { background: var(--tint); border-color: var(--primary); color: var(--primary); }
.router-start--brand .icon { color: var(--primary); }
.promise--spaced { padding-block: var(--space-xl) 0; }
.promise a { color: inherit; }

/* Medical records summary */
.paper-stack { position: relative; height: 5.5rem; margin: 1rem 0 .5rem; }
.paper-stack span {
  position: absolute; left: calc(var(--i) * 1.4rem); top: calc(var(--i) * .35rem); width: 60%; height: 4.25rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: 0 6px 14px -10px rgb(22 42 59 / .4);
  background-image: linear-gradient(var(--tint-strong), var(--tint-strong)), linear-gradient(var(--tint-strong), var(--tint-strong)), linear-gradient(var(--tint-strong), var(--tint-strong));
  background-size: 70% 4px, 55% 4px, 62% 4px; background-position: 12px 14px, 12px 26px, 12px 38px; background-repeat: no-repeat;
}
.accuracy .mini-steps { margin-top: var(--space-m); }
.record-list { display: grid; gap: .45rem; }
.record-list li {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .8rem; padding: .55rem .8rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); line-height: 1.3; font-size: .9375rem; color: var(--muted);
}
.record-list strong { display: block; color: var(--text); }
.record-list em { font-style: normal; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--muted); }
.record-list.is-organized li { border-color: var(--tint-strong); }
.record-list.is-organized em { color: var(--primary); }
.record-list.is-organized li:first-child { border-color: var(--primary); }
.finder--plain { background: none; }
.finder--plain .finder-tabs [role="tab"] { background: var(--surface); }
.finder--plain .finder-tabs [aria-selected="true"] { background: var(--primary); }

@media (prefers-reduced-motion: no-preference) {
  .js .phone { animation: rise-in .8s var(--ease) .15s both; }
  .js .phone-lines li { animation: rise-in .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 500ms + .9s); }
  .js .phone-note { animation: pop .5s var(--ease) both; animation-delay: 2.6s; }
  .phone-wave i { animation: wave 1.1s ease-in-out infinite paused; transform-origin: 50% 50%; }
  .phone-wave i:nth-child(2n) { animation-delay: -.3s; } .phone-wave i:nth-child(3n) { animation-delay: -.6s; } .phone-wave i:nth-child(5n) { animation-delay: -.85s; }
  .is-live .phone-wave i { animation-play-state: running; }
  .show-cues .cue::after { animation: pop .35s var(--ease) both; }
  .show-cues .cue:nth-of-type(2)::after { animation-delay: .12s; } .show-cues .cue:nth-of-type(3)::after { animation-delay: .24s; }
  .js .sync-card { animation: rise-in .8s var(--ease) .15s both; }
  .sync-path i { animation: sync-drop 2.4s var(--ease) infinite paused; }
  .sync-path i:nth-child(2) { animation-delay: .8s; } .sync-path i:nth-child(3) { animation-delay: 1.6s; }
  .is-live .sync-path i { animation-play-state: running; }
  .js .sync-node--emr { animation: ring-primary 1.4s var(--ease) 1.2s; }
  .value-table tbody tr:first-child td { transition: none; }
  .js .gauges b { animation: ticket-fill 1.1s var(--ease) both; animation-delay: calc(var(--i, 0) * 220ms + .6s); }
  .js .paper-stack span { animation: stack-in .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 150ms + .4s); }
  @keyframes wave { 50% { transform: scaleY(.35); } }
  @keyframes sync-drop { 0% { top: 0; opacity: 0; } 15%, 80% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
  @keyframes stack-in { from { opacity: 0; translate: -1.5rem -.5rem; rotate: -6deg; } }
}

/* ======================================================
   Medical Report Editing and Virtual Medical Scribes
   ====================================================== */
/* Editing demo: deletions and insertions only appear once "Edit" is pressed */
.edit-text { padding: 1rem 1.1rem; background: var(--bg); border-radius: var(--radius-sm); line-height: 2; }
.edit-text del { text-decoration: none; }
.edit-text ins { display: none; text-decoration: none; }
.show-edits .edit-text del { text-decoration: line-through; text-decoration-color: var(--accent-text); color: var(--muted); }
.show-edits .edit-text ins {
  position: relative; display: inline; margin-left: .25em; padding: .1em .25em; border-radius: 4px;
  background: color-mix(in srgb, var(--brand) 22%, transparent); box-shadow: inset 0 -2px 0 var(--primary); color: var(--text);
}
.show-edits .edit-text ins::after {
  content: attr(data-fix); position: absolute; left: 0; bottom: calc(100% + .1rem); padding: .05rem .4rem; border-radius: 4px;
  background: var(--primary); color: #fff; font-size: .6875rem; font-weight: 600; line-height: 1.4; white-space: nowrap;
}
.edit-demo [aria-pressed="true"] { background: var(--primary-hover); }
.accuracy .scrub-grid > div:not(.scrub) > p { margin-bottom: var(--space-s); color: #2f3d4a; font-size: var(--step-1); line-height: 1.55; }

/* Live visit card */
.live-note { display: grid; gap: .1rem; margin-top: 1rem; }
.live-note div { display: grid; grid-template-columns: 7.5rem 1fr; align-items: center; gap: .75rem; padding-block: .55rem; border-top: 1px solid var(--border); }
.live-note dt { font-weight: 600; }
.live-note dd { position: relative; height: .55rem; }
.live-note dd span { position: absolute; inset: 0; border-radius: 1rem; background: linear-gradient(90deg, var(--brand), var(--tint-strong)); transform-origin: 0 50%; }
.live-done { display: flex; align-items: center; gap: .5rem; margin-top: .9rem; padding: .55rem .75rem; border-radius: var(--radius-sm); background: var(--tint); color: var(--primary); font-weight: 600; }
.live-done .icon { width: 1.1rem; height: 1.1rem; }

@media (prefers-reduced-motion: no-preference) {
  .js .edit-card { animation: rise-in .8s var(--ease) .15s both; }
  .show-edits .edit-text ins { animation: pop .35s var(--ease) both; }
  .show-edits .edit-text ins:nth-of-type(2) { animation-delay: .15s; }
  .show-edits .edit-text ins:nth-of-type(3) { animation-delay: .3s; }
  .js .live-visit { animation: rise-in .8s var(--ease) .15s both; }
  /* Each line "types" in, one after another, then the note is ready */
  .js .live-note dd span { animation: ticket-fill 1s steps(14, end) both; animation-delay: calc(var(--i, 0) * 700ms + .7s); }
  .js .live-done { animation: rise-in .5s var(--ease) 3.6s both; }
}
.accuracy + .coding-services { padding-top: var(--space-xl); }

/* ======================================================
   Virtual Medical Office Assistant and Release of Information
   ====================================================== */
.btn-sm { min-height: 44px; padding: .4rem .95rem; font-size: .9375rem; }

/* Front desk hand-off: each task turns blue once it's handled */
.task-list { display: grid; gap: .45rem; }
.task-list li {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .8rem; padding: .55rem .6rem .55rem .8rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); line-height: 1.3;
  transition: background-color .35s var(--ease), border-color .35s var(--ease);
}
.task-list strong { display: block; }
.task-list small { display: block; color: var(--muted); font-size: .875rem; }
.task-list .mega-ico { transition: background-color .35s var(--ease), color .35s var(--ease); }
.task-list .is-done { background: var(--tint); border-color: var(--tint-strong); }
.task-list .is-done small { color: var(--primary); font-weight: 600; }
.task-list .is-done .mega-ico { background: var(--primary); color: #fff; }
.task-list .btn:disabled { border-color: transparent; background: none; color: var(--primary); cursor: default; }
.handoff-reset { margin-top: -.25rem; margin-bottom: .5rem; background: none; border: 0; padding: .25rem 0; font: inherit; font-weight: 600; cursor: pointer; }
@media (max-width: 479px) {
  .task-list li { grid-template-columns: auto minmax(0, 1fr); }
  .task-list .btn { grid-column: 2; justify-self: start; }
}

/* ROI request: authorization gate and audit trail */
.roi-label { margin-bottom: .4rem; font-weight: 600; color: var(--muted); font-size: .9375rem; }
.toggle--roi button { flex: 1 1 auto; }
.roi-consent {
  display: flex; align-items: center; gap: .7rem; min-height: 48px; margin-bottom: 1rem; padding: .55rem .8rem; cursor: pointer;
  border: 1px dashed var(--brand); border-radius: var(--radius-sm); font-weight: 600;
}
.roi-consent input { flex: none; width: 1.25rem; height: 1.25rem; accent-color: var(--primary); }
.roi-consent:has(input:not(:checked)) { border-color: #e6b8ae; background: #fbeeea; }
.scrub-rows [data-state="stopped"] { color: var(--muted); border-style: dashed; }
.scrub-rows [data-state="stopped"] em { color: #7c3324; }
.audit { margin-top: 1rem; padding: .8rem 1rem; background: var(--bg); border-radius: var(--radius-sm); }
.audit-title { display: flex; align-items: center; gap: .45rem; margin-bottom: .45rem; font-weight: 600; font-size: .9375rem; color: var(--primary); }
.audit-title .icon { width: 1rem; height: 1rem; }
.audit-log { display: grid; gap: .3rem; min-height: 1.5rem; font-size: .875rem; line-height: 1.35; }
.audit-log li { display: grid; grid-template-columns: 4.5rem 1fr; gap: .5rem; }
.audit-log time { font-variant-numeric: tabular-nums; color: var(--muted); }
.audit-log .is-flag span { color: #7c3324; font-weight: 600; }
.audit-log .audit-empty { display: block; color: var(--muted); }

@media (prefers-reduced-motion: no-preference) {
  .js .desk-card, .js .roi-card { animation: rise-in .8s var(--ease) .15s both; }
  .task-list .is-done .mega-ico { animation: pop .4s var(--ease); }
  .is-complete .claim-bar span { animation: ring-primary 1.2s var(--ease); }
  .audit-log li:not(.audit-empty) { animation: rise-in .35s var(--ease) both; }
}
.handoff-reset[hidden] { display: none; }
/* Buttons styled as secondary had the browser's grey button face */
.btn-secondary, .btn-ghost { background-color: transparent; }
.btn-secondary:hover, .btn-ghost:hover { background-color: var(--tint); }
.toggle--roi { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ======================================================
   Technology: app tour (working phone mock) and video chapters
   ====================================================== */
.app-tour { padding-block: var(--space-xl); background: var(--tint); }
.tour-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.tour-head p { margin-block: var(--space-s) var(--space-m); color: #2f3d4a; font-size: var(--step-1); line-height: 1.55; }
.tour-steps { display: grid; gap: .5rem; }
.tour-steps [role="tab"] {
  display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); gap: .85rem; align-items: start; padding: .8rem 1rem; text-align: left;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); color: var(--muted); font: inherit; line-height: 1.4; cursor: pointer;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), translate .3s var(--ease);
}
.tour-steps [role="tab"]:hover { border-color: var(--brand); translate: 4px 0; }
.tour-steps b { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--tint); color: var(--primary); transition: background-color .3s var(--ease), color .3s var(--ease); }
.tour-steps strong { display: block; color: var(--text); font-size: 1.0625rem; }
.tour-steps [aria-selected="true"] { border-color: var(--primary); box-shadow: var(--shadow); }
.tour-steps [aria-selected="true"] b { background: var(--primary); color: #fff; }

/* Phone and in-app screens */
.tour-phone { justify-self: center; }
.app-screen { width: 19.5rem; height: 34rem; min-height: 0; padding: 2.4rem 1rem 1rem; overflow: hidden auto; gap: 0; font-size: .9375rem; }
.app-panel { display: grid; align-content: start; gap: .7rem; }
.app-panel[hidden] { display: none; }
.app-panel:focus-visible { outline-offset: -4px; }
.app-brand { margin-top: .5rem; text-align: center; font-weight: 800; font-size: 2rem; letter-spacing: .02em; color: var(--primary); }
.app-brand--sm { margin: 0; font-size: 1.1rem; color: #fff; }
.app-title { font-family: inherit; font-size: 1.125rem; font-weight: 700; color: var(--text); }
.app-panel > .app-title:first-child { margin-top: .25rem; }
.app-fields { display: grid; gap: .55rem; }
.app-fields dt { font-size: .8125rem; font-weight: 700; color: var(--text); }
.app-fields dd { padding: .5rem .7rem; border-radius: 8px; background: var(--bg); color: var(--muted); }
.app-fields--rows div { display: flex; justify-content: space-between; gap: .5rem; padding-block: .35rem; border-bottom: 1px solid var(--border); }
.app-fields--rows dt { font-weight: 600; color: var(--muted); }
.app-fields--rows dd { padding: 0; background: none; color: var(--text); font-weight: 600; text-align: right; }
.app-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 44px; padding: .5rem 1rem;
  border: 1.5px solid var(--primary); border-radius: var(--radius-pill); background: var(--primary); color: #fff; font: inherit; font-weight: 600; cursor: pointer;
  transition: background-color .25s var(--ease), opacity .25s var(--ease);
}
.app-btn:hover { background: var(--primary-hover); }
.app-btn:disabled { opacity: .45; cursor: not-allowed; }
.app-btn[hidden] { display: none; }
.app-btn--ghost { background: transparent; color: var(--primary); }
.app-btn--ghost:hover { background: var(--tint); }
.app-btn .icon { width: 1.1rem; height: 1.1rem; }
.app-fine { display: flex; gap: .45rem; font-size: .75rem; line-height: 1.45; color: var(--muted); }
.app-fine .icon { flex: none; width: .95rem; height: .95rem; margin-top: .1rem; }
.is-scanning [data-app-signin="face"] .icon { animation: scan 0.9s var(--ease) infinite; }

.app-bar { display: flex; justify-content: space-between; align-items: center; margin: -.4rem -.4rem 0; padding: .6rem .8rem; border-radius: 12px; background: linear-gradient(135deg, var(--primary-hover), var(--primary)); color: #fff; font-size: .8125rem; }
.app-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: .2rem; padding: .2rem; border-radius: 10px; background: var(--bg); }
.app-seg button { min-height: 40px; padding: .3rem .2rem; border: 0; border-radius: 8px; background: none; color: var(--muted); font: inherit; font-size: .8125rem; font-weight: 600; cursor: pointer; }
.app-seg i { display: inline-block; min-width: 1.2rem; margin-left: .15rem; padding: 0 .3rem; border-radius: 1rem; background: var(--tint-strong); color: var(--primary); font-style: normal; font-size: .75rem; }
.app-seg [aria-pressed="true"] { background: var(--surface); color: var(--primary); box-shadow: 0 1px 4px rgb(22 42 59 / .15); }
.app-reports { display: grid; gap: .4rem; }
.app-reports li > label, .app-reports li:not(:has(label)) {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .6rem; min-height: 48px; padding: .45rem .6rem;
  border: 1px solid var(--border); border-radius: 10px; line-height: 1.25; font-size: .8125rem; color: var(--muted);
}
.app-reports li:not(:has(label)) { grid-template-columns: minmax(0, 1fr) auto; }
.app-reports label { cursor: pointer; }
.app-reports label:has(input:checked) { border-color: var(--primary); background: var(--tint); }
.app-reports input { width: 1.1rem; height: 1.1rem; accent-color: var(--primary); }
.app-reports strong { display: block; color: var(--text); font-size: .875rem; }
.app-reports em { padding: .1rem .45rem; border-radius: 1rem; background: var(--tint); color: var(--primary); font-style: normal; font-weight: 600; font-size: .75rem; white-space: nowrap; }
.app-reports [data-status="pending"] em { background: #fbeeea; color: #7c3324; }
.app-reports [data-status="signed"] em { background: var(--primary); color: #fff; }
.app-empty { display: grid; justify-items: center; gap: .35rem; padding: 1.25rem .5rem; text-align: center; }
.app-empty[hidden] { display: none; }
.app-empty span { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--tint); color: var(--primary); }
.app-empty .icon { width: 1.5rem; height: 1.5rem; }
.app-empty p { font-size: .8125rem; color: var(--muted); line-height: 1.45; }

.app-hero-strip { display: grid; gap: .2rem; margin: -.4rem -.4rem 0; padding: .8rem; border-radius: 12px; background: linear-gradient(135deg, var(--primary-hover), var(--primary)); color: #fff; }
.app-hero-strip span { font-size: .75rem; opacity: .9; }
.app-hero-strip strong { font-size: 1.05rem; line-height: 1.3; }
.app-hero-strip small { font-size: .8125rem; }
.app-player { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .6rem; margin-top: .4rem; }
.app-play { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; color: var(--primary); cursor: pointer; }
.app-play .icon { width: 1.25rem; height: 1.25rem; }
.app-play[aria-pressed="true"] { box-shadow: 0 0 0 4px rgb(255 255 255 / .35); }
.app-track { height: 5px; border-radius: 5px; background: rgb(255 255 255 / .35); overflow: hidden; }
.app-track span { display: block; height: 100%; background: #fff; transform: scaleX(0); transform-origin: 0 50%; transition: transform 1s linear; }
.app-player em { font-style: normal; font-size: .75rem; font-variant-numeric: tabular-nums; }
.app-row {
  display: flex; align-items: center; gap: .6rem; min-height: 44px; padding: .4rem .6rem; border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface); color: var(--text); font: inherit; font-weight: 600; text-align: left; cursor: pointer;
}
.app-row::after { content: "›"; margin-left: auto; font-size: 1.2rem; color: var(--muted); transition: rotate .25s var(--ease); }
.app-row[aria-expanded="true"] { border-color: var(--primary); }
.app-row[aria-expanded="true"]::after { rotate: 90deg; }
.app-row .icon { width: 1.1rem; height: 1.1rem; color: var(--primary); }
.app-logs { display: grid; gap: .3rem; padding: .2rem .4rem; font-size: .8125rem; }
.app-logs[hidden], .app-doc[hidden] { display: none; }
.app-logs li { display: flex; justify-content: space-between; gap: .5rem; padding-block: .25rem; border-bottom: 1px dashed var(--border); }
.app-logs em { font-style: normal; color: var(--muted); }
.app-doc { display: grid; gap: .35rem; padding: .7rem; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); font-size: .8125rem; }
.app-doc span { height: .45rem; border-radius: 1rem; background: var(--tint-strong); }
.app-doc span:nth-of-type(2n) { width: 80%; } .app-doc span:nth-of-type(3n) { width: 60%; }

.app-timer { margin-top: .4rem; text-align: center; font-size: 2rem; font-weight: 300; font-variant-numeric: tabular-nums; color: var(--text); }
.app-wave { height: 2.75rem; }
.app-mic {
  justify-self: center; display: grid; place-items: center; width: 4.5rem; height: 4.5rem; border: 0; border-radius: 50%;
  background: var(--primary); color: #fff; box-shadow: 0 0 0 8px var(--tint); cursor: pointer; transition: box-shadow .3s var(--ease), background-color .3s var(--ease);
}
.app-mic .icon { width: 1.75rem; height: 1.75rem; }
.app-mic[aria-pressed="true"] { background: var(--accent); box-shadow: 0 0 0 8px #fbeeea; }
.app-hint { text-align: center; font-weight: 600; font-size: .875rem; color: var(--muted); }

.app-settings { display: grid; gap: .45rem; }
.app-settings li { display: flex; justify-content: space-between; align-items: center; gap: .5rem; min-height: 48px; padding: .35rem .7rem; border: 1px solid var(--border); border-radius: 10px; }
.app-settings span { display: flex; align-items: center; gap: .5rem; font-weight: 600; }
.app-settings .icon { width: 1.1rem; height: 1.1rem; color: var(--primary); }
.app-settings em { font-style: normal; color: var(--muted); }
.app-switch { position: relative; flex: none; width: 48px; height: 28px; border: 0; border-radius: 1rem; background: #b8c4cf; cursor: pointer; transition: background-color .25s var(--ease); }
.app-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .25); transition: translate .25s var(--ease); }
.app-switch[aria-checked="true"] { background: var(--primary); }
.app-switch[aria-checked="true"]::after { translate: 20px 0; }

.app-status { width: min(19.5rem, 100%); min-height: 2.8em; text-align: center; font-weight: 600; color: var(--primary); line-height: 1.4; }

/* Walkthrough video */
.walkthrough { padding-block: var(--space-xl); }
.walk-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.walk-lede { margin-block: var(--space-s) var(--space-m); color: #2f3d4a; font-size: var(--step-1); line-height: 1.55; }
.walk-label { margin-bottom: .5rem; font-weight: 600; color: var(--muted); }
.chapters { display: grid; gap: .3rem; }
.chapters button {
  display: flex; align-items: center; gap: .8rem; width: 100%; min-height: 44px; padding: .45rem .75rem; text-align: left;
  border: 1px solid transparent; border-radius: var(--radius-sm); background: none; color: var(--text); font: inherit; font-weight: 600; cursor: pointer;
  transition: background-color .25s var(--ease), border-color .25s var(--ease);
}
.chapters button:hover { background: var(--tint); }
.chapters em { min-width: 2.6rem; font-style: normal; font-variant-numeric: tabular-nums; color: var(--primary); }
.chapters [aria-current="true"] { border-color: var(--primary); background: var(--tint); }
.walk-video { display: grid; gap: .6rem; }
.walk-video video { width: 100%; aspect-ratio: 1728 / 1078; border-radius: var(--radius); background: #000; box-shadow: var(--shadow); }
.walk-note { font-size: .8125rem; color: var(--muted); }
.tech-more { background: var(--tint); }

@media (max-width: 899px) {
  .tour-grid, .walk-grid { grid-template-columns: minmax(0, 1fr); }
  .tour-phone { justify-self: center; }
}
@media (max-width: 379px) {
  .app-screen { width: 100%; }
}

@media (prefers-reduced-motion: no-preference) {
  .js .tech-card { animation: rise-in .8s var(--ease) .15s both; }
  .app-panel:not([hidden]) { animation: rise-in .35s var(--ease) both; }
  .app-wave i { animation: wave 1.1s ease-in-out infinite paused; transform-origin: 50% 50%; }
  .app-wave i:nth-child(2n) { animation-delay: -.3s; } .app-wave i:nth-child(3n) { animation-delay: -.6s; }
  .is-recording .app-wave i { animation-play-state: running; }
  .is-recording .app-mic { animation: ring-mic 1.6s var(--ease) infinite; }
  .app-reports li { animation: rise-in .3s var(--ease) both; }
  @keyframes scan { 50% { scale: 1.25; opacity: .5; } }
  @keyframes ring-mic { 50% { box-shadow: 0 0 0 14px #fbeeea; } }
}

/* ======================================================
   Privacy Policy, Terms of Use and FAQ
   ====================================================== */
.hero--legal .hero-copy { max-width: 46rem; }
.legal-meta { display: inline-flex; align-items: center; gap: .45rem; margin-top: .9rem; padding: .35rem .8rem; border-radius: var(--radius-pill); background: var(--tint); color: var(--primary); font-weight: 600; font-size: .9375rem; }
.legal-meta .icon { width: 1rem; height: 1rem; }

.legal { position: relative; padding-block: var(--space-l) var(--space-2xl); }
.legal-grid { display: grid; grid-template-columns: 16.5rem minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.legal-side { position: sticky; top: 6.5rem; display: grid; gap: 1rem; max-height: calc(100vh - 8rem); }
.legal-toc { overflow: auto; padding: 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.legal-toc summary { list-style: none; cursor: pointer; font-weight: 700; color: var(--text); }
.legal-toc summary::-webkit-details-marker { display: none; }
.legal-toc ol { display: grid; gap: .15rem; margin-top: .6rem; counter-reset: toc; }
.legal-toc a {
  display: block; padding: .4rem .6rem; border-left: 3px solid transparent; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--muted); font-size: .9375rem; line-height: 1.35; text-decoration: none; transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.legal-toc a:hover { background: var(--tint); color: var(--primary); }
.legal-toc a[aria-current="true"] { border-left-color: var(--primary); background: var(--tint); color: var(--primary); font-weight: 600; }
.legal-print { justify-self: start; }
.legal-print .icon { width: 1.1rem; height: 1.1rem; }

.legal-body { max-width: 46rem; color: #2f3d4a; font-size: 1.0625rem; line-height: 1.7; }
.legal-body > * + * { margin-top: 1rem; }
.legal-body h2 {
  scroll-margin-top: 6.5rem; margin-top: var(--space-l); padding-top: var(--space-m); border-top: 1px solid var(--border);
  font-size: var(--step-2); line-height: 1.2; color: var(--text);
}
.legal-body > h2:first-child, .legal-body > p:first-child + h2 { margin-top: 0; }
.legal-body h3 { margin-top: 1.6rem; font-family: inherit; font-size: 1.125rem; font-weight: 700; color: var(--text); }
.legal-body p[id] { scroll-margin-top: 6.5rem; }
.legal-body strong { color: var(--text); }
.legal-body ul { display: grid; gap: .5rem; padding-left: 1.25rem; list-style: disc; }
.legal-body ul ul { margin-top: .5rem; list-style: circle; }
.legal-body li::marker { color: var(--brand); }
.legal-body a { color: var(--primary); text-underline-offset: 2px; overflow-wrap: anywhere; }
.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.table-scroll:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.table-scroll table { width: 100%; min-width: 46rem; border-collapse: collapse; font-size: .875rem; line-height: 1.5; }
.table-scroll th, .table-scroll td { padding: .75rem .9rem; vertical-align: top; text-align: left; border-bottom: 1px solid var(--border); }
.table-scroll th { position: sticky; top: 0; background: var(--tint); color: var(--text); font-weight: 700; }
.table-scroll td:first-child { font-weight: 600; color: var(--text); }
.table-scroll tbody tr:hover { background: var(--bg); }

.to-top {
  position: fixed; right: 1.25rem; bottom: 5.5rem; z-index: 20; display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: .45rem .9rem;
  border-radius: var(--radius-pill); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
  color: var(--primary); font-weight: 600; text-decoration: none; opacity: 0; visibility: hidden; translate: 0 8px;
  transition: opacity .3s var(--ease), translate .3s var(--ease), visibility 0s .3s;
}
.to-top.is-shown { opacity: 1; visibility: visible; translate: 0 0; transition: opacity .3s var(--ease), translate .3s var(--ease); }
.to-top .icon { width: 1rem; height: 1rem; }

@media (max-width: 899px) {
  .legal-grid { grid-template-columns: minmax(0, 1fr); }
  .legal-side { position: static; max-height: none; }
  .legal-toc summary::after { content: "+"; float: right; color: var(--primary); }
  .legal-toc[open] summary::after { content: "–"; }
}
@media print {
  .site-header, .topbar, .site-footer, .legal-side, .to-top, .chat, .scroll-progress, .hero .pulse, .crumbs { display: none !important; }
  .legal-grid { display: block; }
  .legal-body { max-width: none; font-size: 11pt; color: #000; }
  .hero { padding: 0 !important; background: none !important; }
}

/* FAQ */
.faq-search-card { align-self: center; }
.faq-search-label { display: block; margin-bottom: .6rem; font-family: var(--font-display, inherit); font-size: var(--step-1); font-weight: 600; color: var(--text); }
.faq-search { position: relative; }
.faq-search .icon { position: absolute; left: .9rem; top: 50%; width: 1.2rem; height: 1.2rem; translate: 0 -50%; color: var(--muted); pointer-events: none; }
.faq-search input {
  width: 100%; min-height: 52px; padding: .7rem 1rem .7rem 2.75rem; border: 1.5px solid var(--border); border-radius: var(--radius-pill);
  background: var(--surface); color: var(--text); font: inherit; transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.faq-search input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--tint-strong); }
.faq-quick { margin-top: 1rem; font-size: .875rem; font-weight: 600; color: var(--muted); }
.faq-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .45rem; }
.faq-chips button {
  min-height: 40px; padding: .3rem .9rem; border: 1px solid var(--brand); border-radius: var(--radius-pill); background: var(--surface);
  color: var(--primary); font: inherit; font-size: .9375rem; font-weight: 600; cursor: pointer; transition: background-color .25s var(--ease), color .25s var(--ease);
}
.faq-chips button:hover { background: var(--tint); }
.faq-chips [aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }

.faq { padding-block: var(--space-l) var(--space-xl); }
.faq-wrap { max-width: 56rem; }
.faq-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem; margin-bottom: 1rem; }
.faq-count { font-weight: 600; color: var(--primary); }
.faq-actions { display: flex; gap: .5rem; }
.faq-list { display: grid; gap: .6rem; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); scroll-margin-top: 7rem; transition: border-color .3s var(--ease), box-shadow .3s var(--ease); }
.faq-item[hidden] { display: none; }
.faq-item:hover { border-color: var(--brand); }
.faq-item[open] { border-color: var(--primary); box-shadow: var(--shadow); }
.faq-item summary { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr) 1.5rem; align-items: center; gap: .9rem; padding: 1rem 1.1rem; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: var(--radius); }
.faq-num { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--tint); color: var(--primary); font-weight: 700; font-size: .9375rem; transition: background-color .3s var(--ease), color .3s var(--ease); }
.faq-item[open] .faq-num { background: var(--primary); color: #fff; }
.faq-q { font-family: inherit; font-size: 1.0625rem; font-weight: 600; line-height: 1.4; color: var(--text); }
.faq-icon { position: relative; width: 1.25rem; height: 1.25rem; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; border-radius: 2px; background: var(--primary); transition: rotate .3s var(--ease); }
.faq-icon::after { rotate: 90deg; }
.faq-item[open] .faq-icon::after { rotate: 0deg; }
.faq-a { padding: 0 1.1rem 1.1rem calc(1.1rem + 2.25rem + .9rem); color: #2f3d4a; line-height: 1.65; }
.faq mark, .faq-item mark { padding: 0 .1em; border-radius: 3px; background: color-mix(in srgb, var(--brand) 30%, transparent); color: inherit; }
.faq-empty { display: grid; justify-items: center; gap: .75rem; padding: 2rem 1rem; text-align: center; border: 1px dashed var(--border); border-radius: var(--radius); }
.faq-empty[hidden] { display: none; }
@media (max-width: 599px) {
  .faq-item summary { grid-template-columns: 2rem minmax(0, 1fr) 1.25rem; gap: .7rem; padding: .9rem; }
  .faq-num { width: 2rem; height: 2rem; }
  .faq-a { padding: 0 .9rem 1rem; }
  .faq-actions { width: 100%; }
  .faq-actions .btn { flex: 1; }
}
@media (prefers-reduced-motion: no-preference) {
  .faq-item[open] .faq-a { animation: rise-in .35s var(--ease) both; }
  .legal-body h2 { transition: color .3s var(--ease); }
}
.legal-body p, .faq-a p, .faq-empty p { max-width: none; }
.faq-search-card .faq-chips { display: flex; gap: .4rem; }
.faq-search-card .faq-chips button { display: inline-flex; width: auto; min-height: 40px; padding: .3rem .9rem; border: 1px solid var(--brand); color: var(--primary); }
.faq-search-card .faq-chips button:hover { background: var(--tint); }
.faq-search-card .faq-chips [aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ======================================================
   Accessibility Tools tab and floating FAQ button (all pages)
   ====================================================== */
.a11y { position: fixed; top: 9.5rem; right: 0; z-index: 60; display: flex; align-items: flex-start; }
.a11y-toggle {
  display: grid; place-items: center; width: 56px; height: 56px; padding: 0; border: 0; border-radius: var(--radius) 0 0 var(--radius);
  background: var(--primary); color: #fff; cursor: pointer; box-shadow: var(--shadow); transition: background-color .25s var(--ease), width .25s var(--ease);
}
.a11y-toggle:hover { background: var(--primary-hover); width: 62px; }
.a11y-toggle .icon { width: 2rem; height: 2rem; }
.a11y.is-open .a11y-toggle { border-radius: var(--radius) 0 0 var(--radius); width: 56px; }
.a11y-panel {
  width: 17rem; max-height: calc(100vh - 11rem); overflow: auto; padding: 1rem .75rem 1rem 1rem;
  background: var(--surface); border: 1px solid var(--border); border-right: 0; box-shadow: 0 24px 60px -18px rgb(28 43 58 / .35);
}
.a11y-panel[hidden] { display: none; }
.a11y-title { margin: 0 0 .5rem .35rem; font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; color: var(--text); }
.a11y-list { display: grid; gap: .1rem; }
.a11y-list button {
  display: flex; align-items: center; gap: .7rem; width: 100%; min-height: 44px; padding: .4rem .6rem; border: 0; border-radius: var(--radius-sm);
  background: none; color: var(--text); font: inherit; font-size: 1rem; text-align: left; cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease);
}
.a11y-list button:hover { background: var(--tint); color: var(--primary); }
.a11y-list button .icon { flex: none; width: 1.25rem; height: 1.25rem; color: var(--primary); }
.a11y-list [aria-pressed="true"] { background: var(--primary); color: #fff; }
.a11y-list [aria-pressed="true"] .icon { color: #fff; }
.a11y-list button:disabled { opacity: .45; cursor: not-allowed; }
.a11y-list li:last-child { margin-top: .3rem; padding-top: .3rem; border-top: 1px solid var(--border); }

.faq-fab {
  position: fixed; right: 1rem; bottom: calc(1rem + 52px + .75rem); z-index: 45; display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 50%; background: var(--surface); color: var(--primary); border: 1.5px solid var(--primary);
  box-shadow: var(--shadow); text-decoration: none; transition: background-color .25s var(--ease), color .25s var(--ease), scale .25s var(--ease);
}
.faq-fab .icon { width: 1.75rem; height: 1.75rem; }
.faq-fab:hover, .faq-fab:focus-visible { background: var(--primary); color: #fff; }
.faq-fab-label {
  position: absolute; right: calc(100% + .5rem); padding: .3rem .7rem; border-radius: var(--radius-pill); background: var(--text); color: #fff;
  font-size: .875rem; font-weight: 600; white-space: nowrap; opacity: 0; translate: 6px 0; pointer-events: none; transition: opacity .2s var(--ease), translate .2s var(--ease);
}
.faq-fab:hover .faq-fab-label, .faq-fab:focus-visible .faq-fab-label { opacity: 1; translate: 0 0; }
.faq-fab[aria-current] { display: none; }
.to-top { right: auto; left: 1rem; bottom: 1rem; }
@media (max-width: 599px) {
  .a11y { top: auto; bottom: calc(1rem + 52px + .75rem + 52px + .75rem); }
  .a11y-toggle { width: 48px; height: 48px; }
  .a11y-toggle .icon { width: 1.7rem; height: 1.7rem; }
  .a11y-panel { max-height: 60vh; }
}
@media print { .a11y, .faq-fab { display: none !important; } }

/* Modes chosen in Accessibility Tools */
html.a11y-grayscale { filter: grayscale(1); }
html.a11y-negative { filter: invert(1) hue-rotate(180deg); background: #fff; }
html.a11y-negative :is(img, video, .hero-photo) { filter: invert(1) hue-rotate(180deg); }
html.a11y-high-contrast {
  --text: #000; --muted: #000; --primary: #002b52; --primary-hover: #001a33; --brand: #002b52; --navy: #000;
  --border: #000; --bg: #fff; --surface: #fff; --tint: #fff; --tint-strong: #e2e8ee; --accent-text: #8a1c10;
}
html.a11y-high-contrast body { color: #000; }
html.a11y-high-contrast a:not(.btn):not(.store-badge) { text-decoration: underline; }
html.a11y-high-contrast :is(.btn-secondary, .faq-fab, .a11y-panel, .value-grid li, .svc-cards a, .faq-item, .legal-toc) { border-color: #000; }
html.a11y-light { --bg: #fff; --surface: #fff; --tint: #fff; --tint-strong: #e9eef3; }
html.a11y-light :is(.hero, .topbar, .cta-inner, .site-footer, .app-tour, .accuracy, .benefits--tint, .tech-more, .cycle--tint) { background: #fff !important; }
html.a11y-light :is(.topbar, .cta-inner, .site-footer) :is(*, a) { color: #000 !important; }
html.a11y-light .cta-inner .btn { border-color: #000; }
html.a11y-underline a { text-decoration: underline !important; text-underline-offset: 2px; }
html.a11y-readable body, html.a11y-readable body :is(h1, h2, h3, h4, p, a, li, button, input, label, summary, em, strong, span, td, th, dt, dd) {
  font-family: Arial, Helvetica, sans-serif !important; font-style: normal; letter-spacing: normal !important;
}

/* Contact form: hidden spam trap, sending and error states */
.form-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { margin-top: .9rem; padding: .75rem 1rem; border-radius: var(--radius-sm); background: #fbeeea; color: #7c3324; font-weight: 600; }
.form-error[hidden] { display: none; }
[data-form-submit]:disabled { opacity: .7; cursor: progress; }
.footer-a11y { padding: .3rem 0; border: 0; background: none; color: var(--muted); font: inherit; cursor: pointer; }
.footer-a11y:hover { color: var(--primary); text-decoration: underline; }

/* Client Portal */
.portal { padding-block: var(--space-l) var(--space-xl); }
.portal-cards h2 { font-size: var(--step-1); line-height: 1.25; }
.portal-host { display: inline-flex; align-items: center; gap: .4rem; color: var(--muted); font-size: .9375rem; }
.portal-host .icon { width: 1rem; height: 1rem; color: var(--primary); }
.portal-help { padding-block: var(--space-xl); background: var(--tint); }
.portal-help-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.portal-help-grid p { margin-block: var(--space-s) var(--space-m); color: #2f3d4a; font-size: var(--step-1); line-height: 1.55; }
.portal-contact, .portal-contact[role="list"] { display: grid; gap: .75rem; padding: 1.5rem; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.portal-contact li { display: grid; grid-template-columns: 1.25rem minmax(0, 1fr); gap: .75rem; align-items: start; line-height: 1.45; }
.portal-contact .icon { width: 1.25rem; height: 1.25rem; margin-top: .1rem; color: var(--primary); }
.portal-contact a { color: var(--primary); font-weight: 600; }
@media (max-width: 899px) { .portal-help-grid { grid-template-columns: minmax(0, 1fr); } }

/* Client feedback 2026-11-23: no tagline in the top bar, larger hero eyebrow */
.topbar-inner { justify-content: flex-end; }
@media (max-width: 767px) { .topbar-inner { justify-content: center; } }
.hero .eyebrow { font-size: var(--step-0); letter-spacing: .03em; }

/* Client feedback 2026-11-23 (2): header room around the larger logo */
.header-inner { height: 100px; }
.is-compact .header-inner { height: 80px; }
.brand img { height: 84px; }
.is-compact .brand img { height: 62px; }
@media (max-width: 1023px) {
  .header-inner, .is-compact .header-inner { height: 76px; }
  .brand img, .is-compact .brand img { height: 58px; }
  .primary-nav { max-height: calc(100dvh - 76px); }
}

/* Tab rows fill the width on phones instead of leaving a gap after a short tab */
@media (max-width: 640px) {
  .pill-tabs { display: flex; width: 100%; }
  .pill-tabs [role="tab"] { flex: 1 1 auto; justify-content: center; text-align: center; }
}

/* Billing sub-list on the Services page: plain left-aligned rows, not mini cards */
.svc-cards .svc-sub a {
  flex-direction: row; justify-content: flex-start; gap: .5rem; height: auto;
  padding: .45rem .7rem; background: none; border: 0; border-radius: var(--radius-sm);
  color: var(--muted); font-size: var(--step--1); text-align: left;
}
.svc-cards .svc-sub a:hover { transform: none; box-shadow: none; background: var(--tint); color: var(--primary); }
.svc-sub ul { display: grid; gap: .1rem; }

/* ---------- HIPAA Security, Latest News, Partners ---------- */
.trio-card--news { background: var(--surface); }

.hipaa-rule { padding-block: var(--space-xl); }
.hipaa-intro-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: var(--space-l); align-items: start; }
.hipaa-prose { display: grid; gap: 1rem; }
.hipaa-prose p { max-width: 68ch; color: var(--muted); }
@media (max-width: 899px) { .hipaa-intro-grid { grid-template-columns: 1fr; gap: 0; } }

.hipaa-explorer { padding-block: var(--space-xl) var(--space-2xl); }
.hipaa-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; margin-bottom: var(--space-m); }
.hipaa-bar .pill-tabs { margin-bottom: 0; }
.req-filter { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; }
.req-filter-label { margin-right: .25rem; color: var(--muted); font-size: var(--step--1); font-weight: 600; }
.req-filter button {
  display: inline-flex; align-items: center; gap: .4rem; min-height: 40px; padding: .35rem .85rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-pill);
  color: var(--text); font-size: var(--step--1); font-weight: 600; cursor: pointer;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.req-filter button:hover { border-color: var(--primary); }
.req-filter button[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }
.req-filter button[aria-pressed="true"] .req { box-shadow: 0 0 0 2px #fff; }

.req { display: inline-grid; place-items: center; flex: none; min-width: 1.6rem; height: 1.6rem; padding-inline: .3rem; border-radius: 6px; font-size: .8rem; font-weight: 700; line-height: 1; }
.req--r { background: var(--primary); color: #fff; }
.req--a { background: var(--tint-strong); color: var(--primary); }
.req .visually-hidden { position: absolute; }

.hipaa-panel-title { margin-bottom: var(--space-s); font-size: var(--step-1); color: var(--primary); }
.hipaa-panel[hidden] { display: none; }
.std-list { display: grid; gap: .75rem; counter-reset: std; }
.std { position: relative; padding: 1.15rem 1.25rem 1.15rem 3.4rem; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); counter-increment: std; transition: border-color .3s var(--ease), background-color .3s var(--ease), opacity .3s var(--ease); }
.std::before { content: counter(std); position: absolute; left: 1.1rem; top: 1.1rem; display: grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--tint); color: var(--primary); font-size: .85rem; font-weight: 700; }
.std > p { max-width: 75ch; color: var(--muted); }
.std .std-head { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .6rem; margin-bottom: .35rem; color: var(--text); }
.std-head strong { font-size: var(--step-0); }
.cfr { padding: .1rem .55rem; border-radius: var(--radius-pill); background: var(--tint); color: var(--primary); font-size: var(--step--1); font-weight: 600; font-variant-numeric: tabular-nums; }
.std-subs { display: grid; gap: .35rem; margin-top: .75rem; }
.std-subs li { display: flex; align-items: flex-start; gap: .6rem; padding: .45rem .6rem; border-radius: var(--radius-sm); line-height: 1.45; transition: background-color .3s var(--ease), opacity .3s var(--ease); }
.std-subs li strong { color: var(--text); }
.is-filtering .std-subs li:not(.is-match), .is-filtering .std-subs li:not(.is-match) strong { color: var(--muted); }
.is-filtering .std-subs li.is-match { background: var(--tint); }
.is-filtering .std.is-match { border-color: var(--primary); }

.hipaa-sources { margin-top: var(--space-l); padding-top: var(--space-m); border-top: 1px solid var(--border); }
.hipaa-sources-title { margin-bottom: .5rem; font-family: var(--font-body, inherit); font-size: var(--step-0); }
.hipaa-sources ul { display: grid; gap: .3rem; }
.hipaa-sources li { color: var(--muted); font-size: var(--step--1); overflow-wrap: anywhere; }
.hipaa-sources li span { white-space: nowrap; margin-left: .4rem; }

/* Latest News */
.news-jump { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: var(--space-m); }
.news-jump a { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: .4rem 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-pill); color: var(--primary); font-weight: 600; text-decoration: none; transition: border-color .25s var(--ease), background-color .25s var(--ease); }
.news-jump a:hover { border-color: var(--primary); background: var(--tint); }
.news { padding-block: var(--space-xl); }
.news-feed { display: grid; gap: var(--space-l); }
.news-item { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: var(--space-m); padding-top: var(--space-l); border-top: 1px solid var(--border); scroll-margin-top: 110px; }
.news-item:first-child { border-top: 0; padding-top: 0; }
.news-meta { display: grid; align-content: start; justify-items: start; gap: .6rem; }
.news-num { font-family: var(--font-display); font-size: var(--step-4); line-height: 1; color: #6b8cab; }
.news-tag { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .7rem; border-radius: var(--radius-pill); background: var(--tint); color: var(--primary); font-size: var(--step--1); font-weight: 600; }
.news-body { display: grid; gap: 1rem; justify-items: start; max-width: 48rem; }
.news-body h2 { font-size: var(--step-3); line-height: 1.15; }
.news-body > p { color: var(--muted); }
.news-ticks { display: grid; gap: .55rem; }
.news-close { font-style: italic; }
@media (max-width: 767px) {
  .news-item { grid-template-columns: 1fr; gap: .75rem; }
  .news-meta { grid-auto-flow: column; align-items: center; }
  .news-num { font-size: var(--step-3); }
}

.ehr-check { width: 100%; padding: var(--space-m); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.ehr-check-q { margin-bottom: .75rem; font-weight: 600; }
.ehr-options { display: flex; flex-wrap: wrap; gap: .45rem; }
.ehr-options button {
  min-height: 44px; padding: .4rem 1rem; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-pill);
  color: var(--text); font-weight: 600; cursor: pointer; transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.ehr-options button:hover { border-color: var(--primary); }
.ehr-options button[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }
.ehr-result { display: flex; align-items: center; gap: .85rem; min-height: 4.25rem; margin-top: var(--space-s); padding: .85rem 1rem; border-radius: var(--radius-sm); background: var(--tint); }
.ehr-result p { max-width: none; }
.ehr-hint { color: var(--muted); }
.ehr-badge .icon { width: 2.4rem; height: 2.4rem; padding: .55rem; border-radius: 50%; background: var(--primary); color: #fff; }
@media (prefers-reduced-motion: no-preference) { .ehr-result.is-new > * { animation: rise-in .35s var(--ease); } }

.news-next { padding-block: var(--space-xl); }
.roadmap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.roadmap li { position: relative; display: grid; align-content: start; justify-items: start; gap: .7rem; padding: 1.5rem; background: var(--surface); border: 1px dashed var(--tint-strong); border-radius: var(--radius); }
.roadmap h3 { font-size: var(--step-1); line-height: 1.3; }
.soon { margin-top: auto; padding: .2rem .65rem; border-radius: var(--radius-pill); background: var(--tint); color: var(--primary); font-size: var(--step--1); font-weight: 600; }
@media (max-width: 1023px) { .roadmap { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .roadmap { grid-template-columns: 1fr; } }

.news-demo { padding-block: var(--space-xl) 0; }
.news-demo-inner { display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: var(--space-m); align-items: center; padding: var(--space-l); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.news-demo-inner p { color: var(--muted); }
.news-demo-inner .section-title { margin-bottom: .5rem; }
@media (max-width: 899px) { .news-demo-inner { grid-template-columns: 1fr; } }

/* Partners */
.partners { padding-block: var(--space-xl); }
.partner-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; align-items: start; }
.partner-card { display: grid; gap: 1rem; justify-items: start; padding: clamp(1.5rem, 3vw, 2.25rem); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.partner-card > p { color: var(--muted); }
.partner-head { display: flex; align-items: center; gap: 1.1rem; }
.partner-head h2 { font-size: var(--step-3); line-height: 1; }
.partner-full { margin-top: .3rem; color: var(--muted); font-weight: 600; }
.partner-stats { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; width: 100%; }
.partner-stats div { padding: .8rem 1rem; border-radius: var(--radius-sm); background: var(--tint); }
.partner-stats dt { color: var(--muted); font-size: var(--step--1); font-weight: 600; }
.partner-stats dd { margin: 0; color: var(--primary); font-family: var(--font-display); font-size: var(--step-2); line-height: 1.2; }
.partner-msai { display: grid; gap: .6rem; width: 100%; padding: 1.1rem 1.2rem; border-left: 3px solid var(--primary); background: var(--bg); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.partner-msai-title { display: inline-flex; align-items: center; gap: .45rem; color: var(--primary); font-weight: 700; }
.partner-msai p:not(.partner-msai-title) { color: var(--muted); }
@media (max-width: 899px) { .partner-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .partner-head { flex-direction: column; align-items: flex-start; } .partner-head .affil-mark { width: 4.5rem; height: 4.5rem; font-size: .9rem; } }

.pledge { padding-block: var(--space-xl); }
.pledge-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: var(--space-l); align-items: start; }
.pledge-list { display: grid; gap: .8rem; margin-bottom: var(--space-m); }
.pledge-note { color: var(--muted); }
@media (max-width: 899px) { .pledge-grid { grid-template-columns: 1fr; gap: 0; } }

/* Staging checklist: one primary header CTA; Client Portal is a small link in the top bar */
.topbar-portal { padding-right: 1.5rem; border-right: 1px solid rgb(255 255 255 / .3); }
@media (max-width: 767px) { .topbar-portal { display: none; } }

/* Keyboard focus stays visible on the blue top bar, CTA band and blue cards */
:is(.topbar, .cta-inner, .trio-card--quote, .req-filter button[aria-pressed="true"]) :focus-visible,
.req-filter button[aria-pressed="true"]:focus-visible,
.btn-primary:focus-visible { outline-color: #fff; box-shadow: 0 0 0 6px var(--focus); }
html.a11y-light :is(.topbar, .cta-inner) :focus-visible { outline-color: #000; box-shadow: none; }

/* Larger logo tagline (wider artwork): keep it readable when the header shrinks */
.is-compact .header-inner { height: 88px; }
.is-compact .brand img { height: 72px; }
@media (max-width: 1023px) {
  .header-inner, .is-compact .header-inner { height: 80px; }
  .brand img, .is-compact .brand img { height: 64px; }
  .primary-nav { max-height: calc(100dvh - 80px); }
}

/* Enlarged text (Accessibility Tools sets the font size on <html>): wrap instead of
   pushing the page sideways. Scoped so the default layout is untouched. */
html[style*="font-size"] .topbar ul { flex-wrap: wrap; justify-content: center; row-gap: 0; }
@media (max-width: 767px) {
  html[style*="font-size"] :is(main, .site-footer) :not(table, table *, svg, svg *, .icon, .visually-hidden) { min-width: 0; overflow-wrap: break-word; }
  html[style*="font-size"] .btn { white-space: normal; max-width: 100%; text-align: center; }
  html[style*="font-size"] :is(.portal-host, .cfr, .portal-cards a, .stepper button, .chip-tabs button) { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
  html[style*="font-size"] .partner-stats { grid-template-columns: minmax(0, 1fr); }
}
html[style*="font-size"] .cta-contact a { max-width: 100%; overflow-wrap: anywhere; }
html[style*="font-size"] :is(.value-grid, .stepper-tabs) > * { min-width: 0; overflow-wrap: anywhere; }

/* Floating buttons never sit on top of the focused control */
html { scroll-padding-bottom: 6rem; }
html:has(.chat-panel:not([hidden])) .faq-fab { visibility: hidden; }
.nav-open .quick-tools { visibility: hidden; }
@media (max-width: 599px) {
  /* Phones: one compact row of icons in the bottom corner */
  html { scroll-padding-bottom: 80px; }
  .site-footer { padding-bottom: 88px; }
  .chat-launcher { width: 48px; min-height: 48px; padding: 0; justify-content: center; border-radius: 50%; }
  .chat-launcher .icon { width: 24px; height: 24px; }
  .chat-launcher > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .chat { right: 16px; bottom: 16px; }
  .a11y { right: 72px; bottom: 16px; }
  .a11y-toggle, .a11y.is-open .a11y-toggle, .a11y-toggle:hover { width: 48px; border-radius: 50%; }
  .a11y-toggle .icon { width: 26px; height: 26px; }
  .a11y-panel { position: absolute; right: -56px; bottom: 60px; width: min(17rem, calc(100vw - 32px)); border-right: 1px solid var(--border); border-radius: var(--radius); }
  .faq-fab { right: 128px; bottom: 16px; width: 48px; height: 48px; }
  .faq-fab .icon { width: 26px; height: 26px; }
  html:has(.chat-panel:not([hidden])) .a11y { visibility: hidden; }
}

/* Contact Us: two-step booking. Step 1 is our form, step 2 is MSAI's Calendly calendar. */
.contact-grid:has(.booking-card) { grid-template-columns: minmax(0, 1fr); }
.contact-grid:has(.booking-card) .office { max-width: 40rem; }
.booking-card { display: grid; gap: .75rem; scroll-margin-top: 7rem; }
.booking-card:focus, .booking-card h2:focus { outline: none; }
.booking-step[hidden] { display: none; }
.booking-form { max-width: 46rem; }
.booking-kicker { color: var(--primary); font-size: var(--step--1); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.booking-step h2 { font-size: var(--step-2); }
.booking-step .form-hint { margin-bottom: var(--space-s); }
.booking-who { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .75rem; color: var(--muted); }
.link-button { min-height: 44px; padding: 0; border: 0; background: none; color: var(--primary); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.booking-frame-wrap { margin-inline: calc(-1 * clamp(0rem, 1vw, .5rem)); }
.booking-frame { display: block; width: 100%; height: 700px; border: 0; }
.booking-done:empty { display: none; }
.booking-done { padding: .85rem 1rem; border-radius: var(--radius-sm); background: var(--tint); color: var(--primary); font-weight: 600; }
.booking-ph { min-height: 22rem; }
.booking-alt, .booking-direct { color: var(--muted); font-size: var(--step--1); }
.booking-direct a { color: var(--primary); font-weight: 600; }
@media (max-width: 640px) { .booking-frame { height: 760px; } }

/* Services menu sits above the header's bottom edge and reading-progress line once the header shrinks */
@media (min-width: 1024px) { .mega { z-index: 2; } }
/* Services menu opens below the header and its reading-progress line, not over them.
   The extra top padding is transparent, so the pointer can still cross from the button to the menu. */
@media (min-width: 1024px) {
  .mega { padding-top: calc((100px - 44px) / 2 + 10px); }
  .is-compact .mega { padding-top: calc((88px - 44px) / 2 + 10px); }
}
