/* ============================================================
   Al-Shifa Clinic — "calm clinical trust" design system
   Plus Jakarta Sans (display) + Source Sans 3 (text)
   Teal #0E7C7B · soft sky · deep slate ink · pale blue paper
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --ink: #1D3240;
  --ink-soft: #4A6274;
  --ink-faint: #7B92A2;
  --teal: #0E7C7B;
  --teal-deep: #0A5C5B;
  --teal-ink: #0B3B3E;
  --teal-tint: #E2F1F0;
  --teal-mist: #F1F8F7;
  --sky: #4C9FD8;
  --sky-deep: #2E77AE;
  --sky-tint: #E7F1FA;
  --paper: #FFFFFF;
  --bg: #F6FAFC;
  --line: #DCE8EF;
  --line-soft: #EBF2F7;
  --danger: #C2453D;
  --danger-tint: #FBEDEB;
  --amber: #9A6B12;
  --amber-tint: #FAF1DE;
  --green: #2E7D5B;
  --green-tint: #E5F3EB;
  --slate-tint: #EDF2F6;
  --shadow-sm: 0 1px 2px rgba(21, 62, 86, .05), 0 4px 14px rgba(21, 62, 86, .06);
  --shadow-md: 0 2px 4px rgba(21, 62, 86, .05), 0 16px 38px rgba(21, 62, 86, .11);
  --shadow-teal: 0 10px 26px rgba(14, 124, 123, .28);
  --r-sm: 10px;
  --r-md: 12px;
  --r-lg: 16px;
  --font-head: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Source Sans 3', 'Segoe UI', system-ui, sans-serif;
  --plus-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30'%3E%3Cpath d='M14 8h2v6h6v2h-6v6h-2v-6H8v-2h6z' fill='%230E7C7B' fill-opacity='.055'/%3E%3C/svg%3E");
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.18; margin: 0 0 .5em; letter-spacing: -.015em; }
p { margin: 0 0 1em; }
a { color: var(--teal-deep); }
button { font: inherit; color: inherit; }
::selection { background: var(--teal-tint); color: var(--teal-ink); }

:focus-visible { outline: 3px solid rgba(14, 124, 123, .5); outline-offset: 2px; border-radius: 4px; }

.shell { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 18px; }
.shell-slim { max-width: 820px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: -60px; left: 14px; z-index: 200;
  background: var(--teal-ink); color: #fff; padding: 10px 18px;
  border-radius: 0 0 10px 10px; font-weight: 600; text-decoration: none;
  transition: top .2s ease;
}
.skip-link:focus { top: 0; }

/* Scroll reveal */
.rise { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.rise.risen { opacity: 1; transform: none; }

/* ---------- Pill buttons ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: 15px;
  padding: 12px 24px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none; line-height: 1.2; white-space: nowrap;
  transition: background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.pill:active { transform: translateY(1px); }
.pill-solid { background: var(--teal); color: #fff; box-shadow: var(--shadow-teal); }
.pill-solid:hover { background: var(--teal-deep); }
.pill-outline { background: var(--paper); color: var(--teal-deep); border-color: #BFD9D8; }
.pill-outline:hover { border-color: var(--teal); background: var(--teal-mist); }
.pill-quiet { background: transparent; color: var(--ink-soft); border-color: var(--line); }
.pill-quiet:hover { color: var(--teal-deep); border-color: #BFD9D8; background: var(--teal-mist); }
.pill-light { background: #fff; color: var(--teal-ink); }
.pill-light:hover { background: var(--teal-tint); }
.pill-hollow { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.pill-hollow:hover { border-color: #fff; background: rgba(255, 255, 255, .12); }
.pill-lg { padding: 15px 30px; font-size: 16px; }
.pill-sm { padding: 8px 16px; font-size: 13.5px; }
.pill-wide { width: 100%; }
.pill[disabled] { opacity: .65; cursor: wait; }
.pill .spinner { display: none; }
.pill.loading .spinner { display: inline-block; }
.spinner {
  width: 15px; height: 15px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.text-link {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 0; padding: 0; cursor: pointer;
  font-family: var(--font-head); font-weight: 700; font-size: 14.5px;
  color: var(--teal-deep); text-decoration: none;
}
.text-link svg { transition: transform .18s ease; }
.text-link:hover { color: var(--teal); }
.text-link:hover svg { transform: translateX(3px); }

/* ---------- Utility topline ---------- */
.topline { background: var(--teal-ink); color: #BFD8D6; font-size: 13.5px; }
.topline-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 38px; }
.topline-hours { display: none; align-items: center; gap: 7px; }
.topline-links { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.topline a { color: #EAF6F5; text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.topline a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Masthead ---------- */
.masthead {
  position: sticky; top: 0; z-index: 90;
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow .25s ease;
}
.masthead.is-stuck { box-shadow: 0 6px 24px rgba(21, 62, 86, .09); }
.masthead-inner { display: flex; align-items: center; gap: 14px; min-height: 68px; }
.clinic-id { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; margin-right: auto; }
.id-mark { flex: none; filter: drop-shadow(0 3px 8px rgba(14, 124, 123, .3)); }
.id-name { font-family: var(--font-head); font-weight: 800; font-size: 19px; color: var(--ink); line-height: 1.05; letter-spacing: -.02em; }
.id-sub { display: block; font-family: var(--font-body); font-weight: 600; font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--teal); margin-top: 2px; }
.main-nav { display: none; align-items: center; gap: 4px; }
.nav-item {
  font-family: var(--font-head); font-weight: 600; font-size: 14.5px;
  color: var(--ink-soft); text-decoration: none; padding: 8px 12px; border-radius: 999px;
  transition: color .15s ease, background .15s ease;
}
.nav-item:hover { color: var(--teal-deep); background: var(--teal-mist); }
.masthead-cta { display: none; }
.menu-trigger {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px; border-radius: 12px;
  border: 1.5px solid var(--line); background: var(--paper); cursor: pointer;
}
.menu-trigger span { display: block; height: 2px; border-radius: 2px; background: var(--teal-deep); transition: transform .2s ease, opacity .2s ease; }
.menu-trigger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-trigger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-trigger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Mobile sheet ---------- */
.sheet-veil {
  position: fixed; inset: 0; z-index: 95; background: rgba(16, 42, 54, .45);
  opacity: 0; transition: opacity .25s ease;
}
.sheet-veil.show { opacity: 1; }
.sheet {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 96;
  width: min(330px, 88vw); background: var(--paper);
  transform: translateX(102%); transition: transform .28s cubic-bezier(.3, .8, .3, 1);
  display: flex; flex-direction: column; padding: 20px;
  box-shadow: -18px 0 50px rgba(16, 42, 54, .2); overflow-y: auto;
}
.sheet.open { transform: none; }
.sheet-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.sheet-title { font-family: var(--font-head); font-weight: 800; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); }
.sheet-dismiss {
  width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line);
  background: var(--paper); font-size: 22px; line-height: 1; cursor: pointer; color: var(--ink-soft);
}
.sheet-dismiss:hover { border-color: var(--teal); color: var(--teal-deep); }
.sheet-links { display: flex; flex-direction: column; gap: 2px; margin-bottom: 18px; }
.sheet-link {
  font-family: var(--font-head); font-weight: 700; font-size: 17px; color: var(--ink);
  text-decoration: none; padding: 13px 12px; border-radius: var(--r-sm);
  border-bottom: 1px solid var(--line-soft);
}
.sheet-link:hover { background: var(--teal-mist); color: var(--teal-deep); }
.sheet-actions { display: flex; flex-direction: column; gap: 10px; margin-top: auto; padding-top: 16px; }
.sheet-fineprint { font-size: 13px; color: var(--ink-faint); margin: 16px 0 0; }
.sheet-fineprint a { color: var(--teal-deep); }
body.sheet-open { overflow: hidden; }

/* ---------- Welcome (split hero) ---------- */
.welcome { position: relative; overflow: hidden; background: linear-gradient(180deg, #FFFFFF 0%, var(--bg) 100%); }
.welcome::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(560px 380px at 88% 8%, rgba(76, 159, 216, .14), transparent 70%),
    radial-gradient(520px 400px at 4% 96%, rgba(14, 124, 123, .09), transparent 70%),
    var(--plus-pattern);
}
.welcome-split { position: relative; display: grid; gap: 34px; padding: 46px 0 56px; }
.status-pill {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--teal-tint); color: var(--teal-ink);
  font-family: var(--font-head); font-weight: 700; font-size: 13px;
  padding: 7px 15px; border-radius: 999px; margin: 0 0 18px;
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); animation: ping 2.2s ease-out infinite; }
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(14, 124, 123, .4); }
  70% { box-shadow: 0 0 0 9px rgba(14, 124, 123, 0); }
  100% { box-shadow: 0 0 0 0 rgba(14, 124, 123, 0); }
}
.headline { font-size: clamp(31px, 7.4vw, 50px); font-weight: 800; letter-spacing: -.03em; margin-bottom: 18px; }
.headline .hl { color: var(--teal-deep); position: relative; }
.headline .hl svg { position: absolute; left: 0; right: 0; bottom: -4px; width: 100%; height: 10px; }
.lede { font-size: 18px; color: var(--ink-soft); max-width: 52ch; margin-bottom: 26px; }
.action-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.assure-list { list-style: none; display: flex; flex-wrap: wrap; gap: 9px; margin: 0; padding: 0; }
.assure-item {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 14px;
  font-size: 13.5px; font-weight: 600; color: var(--ink-soft); box-shadow: var(--shadow-sm);
}
.assure-item svg { color: var(--teal); flex: none; }

/* Quick appointment card */
.quick-card {
  position: relative; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-md);
  padding: 24px 22px 18px; max-width: 430px; width: 100%; justify-self: center;
}
.quick-card::before {
  content: ""; position: absolute; top: 0; left: 22px; right: 22px; height: 4px;
  border-radius: 0 0 4px 4px; background: linear-gradient(90deg, var(--teal), var(--sky));
}
.quick-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.quick-head h2 { font-size: 19px; margin: 0; }
.quick-sub { font-size: 14px; color: var(--ink-faint); margin-bottom: 16px; }
.quick-card .input-block { margin-bottom: 13px; }
.quick-note { font-size: 13px; color: var(--amber); margin: 8px 0 0; min-height: 1em; }
.quick-foot { display: flex; align-items: center; gap: 9px; margin-top: 16px; padding-top: 13px; border-top: 1px dashed var(--line); font-size: 13.5px; font-weight: 600; color: var(--teal-deep); }
.quick-foot .pulse-dot { flex: none; }
.ecg { margin-top: 12px; width: 100%; height: 34px; }
.ecg-base { opacity: .18; }
.ecg-run { stroke-dasharray: 620; stroke-dashoffset: 620; animation: ecg 5.5s linear infinite; }
@keyframes ecg { 0% { stroke-dashoffset: 620; } 55% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; } }

/* ---------- Bands & heads ---------- */
.band { padding: 58px 0; }
.band-tint { background: linear-gradient(180deg, #EFF6FA, #F6FAFC); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.band-head { max-width: 640px; margin-bottom: 30px; }
.band-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: 12.5px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--teal); margin: 0 0 10px;
}
.band-kicker::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--sky); }
.band-title { font-size: clamp(25px, 5vw, 34px); font-weight: 800; letter-spacing: -.025em; }
.band-sub { color: var(--ink-soft); font-size: 16.5px; margin: 0; }

/* ---------- Department rail + stage ---------- */
.dept-rail {
  display: flex; gap: 9px; overflow-x: auto; padding: 4px 2px 14px;
  scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
  scrollbar-width: thin; scrollbar-color: #C4D8E2 transparent;
}
.dept-tab {
  flex: none; scroll-snap-align: start;
  font-family: var(--font-head); font-weight: 700; font-size: 14px;
  color: var(--ink-soft); background: var(--paper); border: 1.5px solid var(--line);
  padding: 10px 18px; border-radius: 999px; cursor: pointer; white-space: nowrap;
  transition: background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.dept-tab:hover { border-color: #BFD9D8; color: var(--teal-deep); }
.dept-tab[aria-selected="true"] { background: var(--teal); border-color: var(--teal); color: #fff; box-shadow: var(--shadow-teal); }
.dept-stage {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm); padding: 26px 22px;
}
.dept-panel { display: grid; gap: 20px; animation: stage-in .35s ease; }
@keyframes stage-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.dept-ico {
  width: 64px; height: 64px; border-radius: 18px; flex: none;
  display: grid; place-items: center; background: var(--teal-tint);
}
.dept-ico.sky { background: var(--sky-tint); }
.dept-body h3 { font-size: 21px; margin-bottom: 6px; }
.dept-body > p { color: var(--ink-soft); margin-bottom: 14px; }
.dept-services { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.dept-services li { display: flex; gap: 9px; align-items: flex-start; font-size: 15.5px; color: var(--ink-soft); }
.dept-services svg { flex: none; margin-top: 4px; color: var(--teal); }
.dept-meta { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; margin-bottom: 18px; }
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 700; font-family: var(--font-head);
  padding: 5px 12px; border-radius: 999px;
}
.tag-teal { background: var(--teal-tint); color: var(--teal-ink); }
.tag-sky { background: var(--sky-tint); color: var(--sky-deep); }
.tag-slate { background: var(--slate-tint); color: var(--ink-soft); }

/* ---------- Doctor cards ---------- */
.medic-grid { display: grid; gap: 18px; }
.medic-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-sm); padding: 24px 22px; display: flex; flex-direction: column; gap: 12px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.medic-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #C8DEE9; }
.medic-top { display: flex; align-items: center; gap: 14px; }
.medic-avatar {
  width: 56px; height: 56px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 800; font-size: 18px; letter-spacing: .02em;
}
.face-teal { background: var(--teal-tint); color: var(--teal-ink); }
.face-sky { background: var(--sky-tint); color: var(--sky-deep); }
.face-slate { background: var(--slate-tint); color: var(--ink); }
.medic-top h3 { font-size: 17.5px; margin: 0 0 2px; }
.medic-role { font-size: 13.5px; font-weight: 600; color: var(--teal); margin: 0; }
.medic-cred { font-size: 13.5px; font-weight: 600; color: var(--ink-soft); margin: 0; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.pmdc-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; font-family: var(--font-head); color: var(--green); background: var(--green-tint); padding: 3px 9px; border-radius: 999px; }
.medic-bio { font-size: 15px; color: var(--ink-soft); margin: 0; flex: 1; }
.medic-days { margin: 0; }
.medic-card .text-link { align-self: flex-start; }
.medic-fineprint { font-size: 13px; color: var(--ink-faint); margin: 18px 0 0; }

/* ---------- How booking works ---------- */
.path-row { display: grid; gap: 18px; margin-bottom: 34px; }
.path-step { position: relative; display: flex; gap: 15px; align-items: flex-start; }
.path-num {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 800; font-size: 17px;
  background: var(--teal-tint); color: var(--teal-deep); border: 1.5px solid #C5E0DF;
}
.path-step h3 { font-size: 16.5px; margin: 2px 0 4px; }
.path-step p { font-size: 14.5px; color: var(--ink-soft); margin: 0; }

/* ---------- Forms ---------- */
.input-block { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; min-width: 0; }
.input-label { font-family: var(--font-head); font-weight: 700; font-size: 13.5px; color: var(--ink); }
.input-label .opt { font-weight: 500; color: var(--ink-faint); font-family: var(--font-body); }
.text-input {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: #FBFDFE; border: 1.5px solid #CFDEE8; border-radius: var(--r-sm);
  padding: 11px 14px; min-height: 46px;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.text-input::placeholder { color: #9DB2BF; }
.text-input:hover { border-color: #B7CEDB; }
.text-input:focus { outline: none; border-color: var(--teal); background: #fff; box-shadow: 0 0 0 4px rgba(14, 124, 123, .14); }
select.text-input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%230E7C7B' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
textarea.text-input { resize: vertical; min-height: 88px; }
.text-input.is-invalid { border-color: var(--danger); background: #FFFBFA; }
.text-input.is-invalid:focus { box-shadow: 0 0 0 4px rgba(194, 69, 61, .13); }
.input-help { font-size: 13px; color: var(--ink-faint); margin: 0; }
.input-error { font-size: 13px; font-weight: 600; color: var(--danger); margin: 0; }
.input-error:empty { display: none; }
.form-fineprint { font-size: 13px; color: var(--ink-faint); margin: 0 0 18px; }
.form-fineprint.center { text-align: center; margin: 14px 0 0; }
.input-pair { display: grid; gap: 0 16px; }

/* ---------- Booking section ---------- */
.reserve-grid { display: grid; gap: 20px; align-items: start; }
.reserve-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-md); padding: 26px 22px;
}
.reserve-title { font-size: 20px; margin-bottom: 4px; }
.reserve-side { display: grid; gap: 18px; }
.side-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-sm); padding: 22px; }
.side-card h3 { font-size: 16.5px; margin-bottom: 12px; display: flex; align-items: center; gap: 9px; }
.side-card h3 svg { color: var(--teal); flex: none; }
.tick-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tick-list li { display: flex; gap: 10px; font-size: 15px; color: var(--ink-soft); }
.tick-list svg { flex: none; margin-top: 4px; color: var(--teal); }
.side-card.urgent { background: var(--teal-ink); border-color: var(--teal-ink); }
.side-card.urgent h3 { color: #EAF6F5; }
.side-card.urgent h3 svg { color: #7FD1C8; }
.side-card.urgent p { font-size: 14.5px; margin: 0; color: #BFD8D6; }
.side-card.urgent strong { color: #fff; }

/* Booking success */
.booking-done { text-align: center; padding: 18px 4px; }
.booking-done:focus { outline: none; }
.done-mark { display: inline-grid; place-items: center; margin-bottom: 14px; }
.booking-done h3 { font-size: 21px; }
.done-ref { font-size: 15px; color: var(--ink-soft); }
.done-ref strong { font-family: var(--font-head); color: var(--teal-deep); letter-spacing: .04em; }
.done-summary { font-size: 15.5px; color: var(--ink-soft); background: var(--teal-mist); border: 1px dashed #BFDCDA; border-radius: var(--r-sm); padding: 14px; margin: 14px 0; }

/* ---------- Partners strip ---------- */
.partners { display: grid; gap: 20px; align-items: center; }
.partners-copy h2 { font-size: 20px; margin-bottom: 6px; }
.partners-copy p { font-size: 14.5px; color: var(--ink-soft); margin: 0; }
.partner-row { display: flex; flex-wrap: wrap; gap: 12px; }
.partner-tile {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 12px 18px; box-shadow: var(--shadow-sm);
}
.partner-tile svg { color: var(--teal); flex: none; }
.partner-name { font-family: var(--font-head); font-weight: 800; font-size: 15px; color: var(--ink); letter-spacing: -.01em; line-height: 1.1; }
.partner-kind { display: block; font-family: var(--font-body); font-weight: 600; font-size: 11.5px; color: var(--ink-faint); letter-spacing: .04em; }
.partners-fineprint { font-size: 12.5px; color: var(--ink-faint); margin: 14px 0 0; }

/* ---------- Hours & visit ---------- */
.visit-grid { display: grid; gap: 20px; align-items: start; }
.hours-card, .visit-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-sm); padding: 22px; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.hours-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 300px; }
.hours-table th {
  font-family: var(--font-head); font-size: 11.5px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint);
  text-align: left; padding: 8px 10px; border-bottom: 2px solid var(--line);
}
.hours-table td { padding: 9px 10px; border-bottom: 1px solid var(--line-soft); color: var(--ink-soft); }
.hours-table td:first-child { font-weight: 600; color: var(--ink); }
.hours-table .closed-row td { color: var(--ink-faint); font-style: italic; }
.open-note {
  display: flex; align-items: center; gap: 9px; margin: 14px 0 0;
  font-size: 14px; font-weight: 600; color: var(--teal-deep);
  background: var(--teal-mist); border-radius: var(--r-sm); padding: 10px 14px;
}
.open-note .pulse-dot { flex: none; }
.visit-card h3 { font-size: 17px; }
.visit-map { border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--line); margin-bottom: 16px; }
.visit-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.visit-list li { display: grid; gap: 1px; font-size: 15px; }
.visit-list strong { font-family: var(--font-head); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); }
.visit-list span, .visit-list a { color: var(--ink-soft); }
.visit-list a { font-weight: 600; text-decoration-color: #BFD9D8; text-underline-offset: 3px; }
.visit-list a:hover { color: var(--teal-deep); }

/* ---------- Patient voices ---------- */
.voice-grid { display: grid; gap: 18px; }
.voice-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-sm); padding: 24px 22px; margin: 0; display: flex; flex-direction: column; gap: 12px;
}
.voice-stars { color: #E0A93E; letter-spacing: 3px; font-size: 14px; }
.voice-card p { font-size: 15.5px; color: var(--ink-soft); margin: 0; flex: 1; }
.voice-card footer { display: flex; align-items: center; gap: 11px; }
.voice-card footer .medic-avatar { width: 40px; height: 40px; font-size: 13.5px; }
.voice-who strong { display: block; font-family: var(--font-head); font-size: 14.5px; color: var(--ink); line-height: 1.2; }
.voice-who span { font-size: 12.5px; color: var(--ink-faint); }

/* ---------- FAQ ---------- */
.ask-list { border-top: 1px solid var(--line); }
.ask-row { border-bottom: 1px solid var(--line); }
.ask-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: none; border: 0; cursor: pointer; text-align: left;
  font-family: var(--font-head); font-weight: 700; font-size: 16.5px; color: var(--ink);
  padding: 19px 4px;
}
.ask-trigger:hover { color: var(--teal-deep); }
.ask-icon { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--teal-tint); position: relative; transition: background .2s ease, transform .25s ease; }
.ask-icon::before, .ask-icon::after { content: ""; position: absolute; top: 50%; left: 50%; background: var(--teal-deep); border-radius: 2px; transform: translate(-50%, -50%); }
.ask-icon::before { width: 11px; height: 2px; }
.ask-icon::after { width: 2px; height: 11px; transition: opacity .2s ease; }
.ask-row.open .ask-icon { background: var(--teal); transform: rotate(180deg); }
.ask-row.open .ask-icon::before, .ask-row.open .ask-icon::after { background: #fff; }
.ask-row.open .ask-icon::after { opacity: 0; }
.ask-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.ask-row.open .ask-body { grid-template-rows: 1fr; }
.ask-body-inner { overflow: hidden; }
.ask-body p { color: var(--ink-soft); font-size: 15.5px; margin: 0; padding: 0 4px 20px; max-width: 68ch; }

/* ---------- Closing band ---------- */
.closing { padding: 10px 0 64px; }
.closing-panel {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, var(--teal-ink) 0%, var(--teal-deep) 58%, var(--teal) 100%);
  border-radius: 20px; padding: 38px 26px; color: #EAF6F5;
  display: grid; gap: 22px; box-shadow: var(--shadow-md);
}
.closing-panel::before { content: ""; position: absolute; inset: 0; background: var(--plus-pattern); opacity: .5; pointer-events: none; }
.closing-panel::after {
  content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%;
  right: -110px; top: -130px; background: rgba(76, 159, 216, .25); pointer-events: none;
}
.closing-panel > * { position: relative; }
.closing-panel h2 { color: #fff; font-size: clamp(23px, 4.6vw, 30px); margin-bottom: 8px; }
.closing-panel p { color: #C4DEDB; margin: 0; max-width: 52ch; }
.closing-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Floating book action ---------- */
.book-float {
  position: fixed; z-index: 80; right: 16px; bottom: 16px; left: 16px;
  display: flex; gap: 10px; align-items: center;
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.book-float.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.book-float .pill-solid { flex: 1; box-shadow: 0 12px 30px rgba(11, 59, 62, .35); }
.float-call {
  flex: none; width: 50px; height: 50px; border-radius: 50%;
  display: grid; place-items: center; background: var(--paper); color: var(--teal-deep);
  border: 1.5px solid var(--line); box-shadow: var(--shadow-md); text-decoration: none;
}
.float-call:hover { border-color: var(--teal); }

/* ---------- Footer ---------- */
.clinic-foot { background: #122E36; color: #B9CFD6; padding: 52px 0 0; font-size: 15px; }
.foot-cols { display: grid; gap: 32px; padding-bottom: 38px; }
.foot-id .clinic-id { margin-bottom: 14px; }
.foot-id .id-name { color: #fff; }
.foot-id .id-sub { color: #7FD1C8; }
.foot-id p { color: #9DB8C0; font-size: 14.5px; max-width: 34ch; margin: 0; }
.foot-nav h3 { font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #7FA0AB; margin-bottom: 14px; }
.foot-nav { display: flex; flex-direction: column; gap: 9px; }
.foot-nav a { color: #C9DCE2; text-decoration: none; width: fit-content; }
.foot-nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.foot-nav p { margin: 0; color: #9DB8C0; font-size: 14px; }
.foot-base {
  border-top: 1px solid rgba(255, 255, 255, .12); padding: 20px 0 26px;
  display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: #8AA7B0;
}
.foot-base p { margin: 0; }
.credit-line a { color: #9ED8D2; font-weight: 600; text-decoration: none; }
.credit-line a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================
   LOGIN — calm pale-blue scene, one centered card
   ============================================================ */
.calm-scene {
  min-height: 100vh; min-height: 100dvh;
  display: grid; place-items: center; padding: 34px 18px;
  background:
    radial-gradient(640px 420px at 12% 0%, rgba(76, 159, 216, .18), transparent 70%),
    radial-gradient(560px 420px at 92% 100%, rgba(14, 124, 123, .14), transparent 70%),
    var(--plus-pattern),
    linear-gradient(180deg, #F1F8FC, #E6F1F8);
}
.calm-wrap { width: 100%; max-width: 448px; }
.back-link {
  display: inline-flex; align-items: center; gap: 7px; margin-bottom: 16px;
  font-family: var(--font-head); font-weight: 700; font-size: 13.5px;
  color: var(--ink-soft); text-decoration: none;
}
.back-link:hover { color: var(--teal-deep); }
.calm-card {
  background: var(--paper); border: 1px solid #D5E4EE; border-radius: 20px;
  box-shadow: 0 24px 60px rgba(23, 66, 92, .14); padding: 30px 24px;
}
.calm-card.shake { animation: shake .45s ease; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-7px); } 40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); } 80% { transform: translateX(3px); }
}
.cross-mark { display: grid; place-items: center; margin-bottom: 16px; }
.cross-mark svg { filter: drop-shadow(0 6px 16px rgba(14, 124, 123, .32)); }
.calm-title { text-align: center; font-size: 23px; margin-bottom: 4px; }
.calm-sub { text-align: center; color: var(--ink-soft); font-size: 15px; margin-bottom: 22px; }
.access-box {
  background: var(--teal-mist); border: 1px solid #CBE3E1; border-radius: var(--r-md);
  padding: 15px 16px; margin-bottom: 22px;
}
.access-head { display: flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 800; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-deep); margin-bottom: 10px; }
.cred-lines { margin: 0 0 12px; display: grid; gap: 6px; }
.cred-lines > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cred-lines dt { font-size: 13px; font-weight: 600; color: var(--ink-faint); }
.cred-lines dd { margin: 0; }
.cred-lines code { font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; font-size: 13px; background: #fff; border: 1px solid #D6E7E5; border-radius: 7px; padding: 2px 8px; color: var(--teal-ink); word-break: break-all; }
.pw-holder { position: relative; }
.pw-holder .text-input { padding-right: 50px; }
.pw-peek {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 9px; border: 0; background: transparent;
  display: grid; place-items: center; cursor: pointer; color: var(--ink-faint);
}
.pw-peek:hover { color: var(--teal-deep); background: var(--teal-mist); }
.pw-peek .eye-closed { display: none; }
.pw-peek.showing .eye-open { display: none; }
.pw-peek.showing .eye-closed { display: block; }
.remember-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 2px 0 16px; }
.check { display: inline-flex; align-items: center; gap: 9px; font-size: 14.5px; font-weight: 600; color: var(--ink-soft); cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check .box {
  width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid #B7CEDB;
  background: #FBFDFE; display: inline-grid; place-items: center; flex: none;
  transition: background .15s ease, border-color .15s ease;
}
.check .box::after { content: ""; width: 10px; height: 6px; border-left: 2.4px solid #fff; border-bottom: 2.4px solid #fff; transform: rotate(-45deg) scale(0); transition: transform .15s ease; margin-top: -2px; }
.check input:checked + .box { background: var(--teal); border-color: var(--teal); }
.check input:checked + .box::after { transform: rotate(-45deg) scale(1); }
.check input:focus-visible + .box { outline: 3px solid rgba(14, 124, 123, .5); outline-offset: 2px; }
.link-action { background: none; border: 0; padding: 0; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--teal-deep); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #BFD9D8; }
.link-action:hover { color: var(--teal); }
.inline-note { font-size: 13.5px; color: var(--ink-soft); background: var(--sky-tint); border-radius: var(--r-sm); padding: 10px 13px; margin: 0 0 14px; }
.signin-error { font-size: 14px; font-weight: 600; color: var(--danger); background: var(--danger-tint); border: 1px solid #F0CCC8; border-radius: var(--r-sm); padding: 11px 14px; margin: 0 0 14px; }
.calm-foot { text-align: center; font-size: 12.5px; color: var(--ink-faint); margin: 18px 0 0; }
.calm-foot a { color: var(--teal-deep); font-weight: 600; }

/* ============================================================
   PORTAL — light dashboard
   ============================================================ */
.portal-body { background: #F3F8FB; }
.dash-top {
  position: sticky; top: 0; z-index: 90; background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.dash-top-inner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; min-height: 66px; padding-top: 8px; padding-bottom: 8px; }
.dash-top .clinic-id { margin-right: 0; }
.dash-tag { font-size: 11.5px; font-weight: 700; font-family: var(--font-head); letter-spacing: .1em; text-transform: uppercase; color: var(--sky-deep); background: var(--sky-tint); padding: 4px 11px; border-radius: 999px; }
.dash-actions { display: flex; align-items: center; gap: 9px; margin-left: auto; }
.dash-shell { max-width: 1180px; padding-top: 28px; padding-bottom: 48px; }
.hello-row { display: grid; gap: 10px; margin-bottom: 22px; }
.hello-row h1 { font-size: clamp(23px, 4.6vw, 29px); margin: 0 0 3px; }
.hello-sub { color: var(--ink-faint); font-size: 14.5px; margin: 0; }
.dash-note { font-size: 13px; color: var(--ink-faint); background: var(--sky-tint); border-radius: 999px; padding: 7px 15px; width: fit-content; margin: 0; }

.tile-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; margin-bottom: 24px; }
.tile {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-sm); padding: 17px 16px; display: grid; gap: 9px;
}
.tile-ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; }
.tile-ico.teal { background: var(--teal-tint); color: var(--teal-deep); }
.tile-ico.sky { background: var(--sky-tint); color: var(--sky-deep); }
.tile-ico.slate { background: var(--slate-tint); color: var(--ink-soft); }
.tile-ico.gold { background: var(--amber-tint); color: var(--amber); }
.tile-value { font-family: var(--font-head); font-weight: 800; font-size: 25px; color: var(--ink); line-height: 1; letter-spacing: -.02em; }
.tile-name { font-size: 13px; font-weight: 600; color: var(--ink-faint); display: block; margin-top: 3px; }
.tile-sub { font-size: 12.5px; font-weight: 700; color: var(--green); }
.tile-sub.neutral { color: var(--ink-faint); font-weight: 600; }
.tile-link { font-size: 12.5px; font-weight: 700; color: var(--teal-deep); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; width: fit-content; }
.tile-link:hover { color: var(--teal); }

.dash-tabs {
  display: flex; gap: 6px; overflow-x: auto; padding: 7px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-sm); margin-bottom: 20px;
  scrollbar-width: thin; -webkit-overflow-scrolling: touch;
}
.dash-tab {
  flex: none; font-family: var(--font-head); font-weight: 700; font-size: 14px;
  color: var(--ink-soft); background: transparent; border: 0; border-radius: 999px;
  padding: 10px 18px; cursor: pointer; white-space: nowrap;
  transition: background .16s ease, color .16s ease;
}
.dash-tab:hover { background: var(--teal-mist); color: var(--teal-deep); }
.dash-tab.is-active { background: var(--teal); color: #fff; box-shadow: var(--shadow-teal); }
.dash-panel { animation: stage-in .3s ease; }
.panel-grid { display: grid; gap: 18px; align-items: start; }

.ledger { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-sm); padding: 20px; min-width: 0; }
.ledger-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.ledger-head h2 { font-size: 17.5px; margin: 0; }
.ledger-count { font-size: 12.5px; font-weight: 700; color: var(--ink-faint); background: var(--slate-tint); padding: 3px 11px; border-radius: 999px; white-space: nowrap; }
.ledger-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.ledger-table th {
  font-family: var(--font-head); font-size: 11px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-faint); text-align: left;
  padding: 9px 12px; border-bottom: 2px solid var(--line); white-space: nowrap;
}
.ledger-table td { padding: 12px; border-bottom: 1px solid var(--line-soft); color: var(--ink-soft); vertical-align: middle; }
.ledger-table tbody tr { cursor: pointer; transition: background .14s ease; }
.ledger-table tbody tr:hover { background: #F3F9F9; }
.ledger-table tbody tr:focus-visible { outline: 3px solid rgba(14, 124, 123, .5); outline-offset: -3px; }
.ledger-table tbody tr.selected { background: var(--teal-tint); box-shadow: inset 3px 0 0 var(--teal); }
.ledger-table tbody tr.selected td { color: var(--teal-ink); border-bottom-color: #CFE5E3; }
.cell-strong { font-family: var(--font-head); font-weight: 700; color: var(--ink); display: inline-flex; align-items: center; gap: 8px; }
tr.selected .cell-strong { color: var(--teal-ink); }
.dot-new { width: 8px; height: 8px; border-radius: 50%; background: var(--sky); flex: none; }
.ledger-hint { font-size: 12.5px; color: var(--ink-faint); margin: 12px 0 0; }
.tbl-appts { min-width: 620px; }
.tbl-patients { min-width: 560px; }
.tbl-rx { min-width: 580px; }
.tbl-invoices { min-width: 560px; }
.tbl-messages { min-width: 520px; }

.state-pill {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  font-family: var(--font-head); font-size: 11.5px; font-weight: 700;
  padding: 4px 11px; border-radius: 999px;
}
.state-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.is-done { background: var(--green-tint); color: var(--green); }
.is-here { background: var(--sky-tint); color: var(--sky-deep); }
.is-booked { background: var(--amber-tint); color: var(--amber); }
.is-off { background: var(--slate-tint); color: var(--ink-faint); }
.is-late { background: var(--danger-tint); color: var(--danger); }

.insight {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-sm); padding: 22px; min-width: 0;
}
.insight-title { font-size: 18px; margin-bottom: 2px; }
.insight-sub { font-size: 13.5px; color: var(--ink-faint); margin-bottom: 16px; }
.fact-list { margin: 0 0 6px; }
.fact-row { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.fact-row dt { font-size: 13px; font-weight: 600; color: var(--ink-faint); flex: none; }
.fact-row dd { margin: 0; font-size: 14px; font-weight: 600; color: var(--ink); text-align: right; }
.insight-block { margin-top: 16px; }
.insight-block h4 { font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); margin-bottom: 9px; }
.insight-note { font-size: 14px; color: var(--ink-soft); background: #F5F9FB; border-radius: var(--r-sm); padding: 12px 14px; margin: 0; }
.plain-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.plain-list li { display: flex; justify-content: space-between; gap: 14px; font-size: 14px; color: var(--ink-soft); background: #F5F9FB; border-radius: 8px; padding: 9px 12px; }
.plain-list li span:last-child { color: var(--ink-faint); font-size: 12.5px; white-space: nowrap; align-self: center; }
.plain-list li strong { color: var(--ink); font-weight: 700; }
.insight-actions { margin-top: 18px; }

.thread { display: grid; gap: 12px; margin-bottom: 18px; }
.bubble { max-width: 92%; border-radius: 14px; padding: 12px 15px; font-size: 14.5px; }
.bubble p { margin: 0 0 6px; color: var(--ink); }
.bubble span { font-size: 11.5px; color: var(--ink-faint); font-weight: 600; }
.bubble-in { background: #F2F7FA; border: 1px solid var(--line-soft); border-bottom-left-radius: 4px; justify-self: start; }
.bubble-out { background: var(--teal-tint); border: 1px solid #CBE3E1; border-bottom-right-radius: 4px; justify-self: end; }
.reply-box { border-top: 1px dashed var(--line); padding-top: 16px; }
.reply-box .input-block { margin-bottom: 12px; }

/* Lab report cards */
.report-grid { display: grid; gap: 16px; }
.report-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-sm); padding: 20px; }
.report-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.report-top h3 { font-size: 16.5px; margin: 0; }
.report-meta { font-size: 13.5px; color: var(--ink-faint); margin: 0 0 12px; }
.report-card details { border-top: 1px dashed var(--line); padding-top: 11px; }
.report-card summary {
  cursor: pointer; font-family: var(--font-head); font-weight: 700; font-size: 13.5px;
  color: var(--teal-deep); list-style: none; display: flex; align-items: center; gap: 7px;
}
.report-card summary::-webkit-details-marker { display: none; }
.report-card summary::before { content: "+"; display: inline-grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; background: var(--teal-tint); color: var(--teal-deep); font-size: 13px; }
.report-card details[open] summary::before { content: "\2013"; }
.report-card details p { font-size: 14px; color: var(--ink-soft); margin: 10px 0 0; }
.report-fineprint { font-size: 12.5px; color: var(--ink-faint); margin: 16px 0 0; }

.dash-foot { border-top: 1px solid var(--line); background: #EFF5F9; padding: 20px 0 26px; }
.dash-foot p { margin: 0; font-size: 12.5px; color: var(--ink-faint); text-align: center; }
.dash-foot a { color: var(--teal-deep); font-weight: 600; }

/* ============================================================
   Breakpoints
   ============================================================ */
@media (min-width: 560px) {
  .input-pair { grid-template-columns: 1fr 1fr; }
  .voice-grid { grid-template-columns: repeat(2, 1fr); }
  .report-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-cols { grid-template-columns: repeat(2, 1fr); }
  .book-float { left: auto; width: auto; }
  .book-float .pill-solid { flex: none; }
  .dept-panel { grid-template-columns: 64px 1fr; }
  .dept-stage { padding: 30px; }
}

@media (min-width: 760px) {
  .topline-hours { display: inline-flex; }
  .path-row { grid-template-columns: repeat(3, 1fr); gap: 26px; }
  .path-step { flex-direction: column; gap: 12px; }
  .path-step:not(:last-child)::after {
    content: ""; position: absolute; top: 22px; left: 58px; right: -14px;
    border-top: 2px dashed #C5DCE6;
  }
  .medic-grid { grid-template-columns: repeat(2, 1fr); }
  .visit-grid { grid-template-columns: 1.15fr 1fr; }
  .partners { grid-template-columns: 260px 1fr; }
  .closing-panel { grid-template-columns: 1fr auto; align-items: center; padding: 44px 42px; }
  .tile-row { grid-template-columns: repeat(4, 1fr); }
  .hello-row { grid-template-columns: 1fr auto; align-items: center; }
  .voice-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 960px) {
  .main-nav { display: flex; }
  .masthead-cta { display: inline-flex; }
  .menu-trigger { display: none; }
  .welcome-split { grid-template-columns: 1.08fr .92fr; align-items: center; gap: 48px; padding: 66px 0 76px; }
  .quick-card { justify-self: end; }
  .medic-grid { grid-template-columns: repeat(3, 1fr); }
  .reserve-grid { grid-template-columns: 1.55fr 1fr; }
  .reserve-card { padding: 32px; }
  .panel-grid { grid-template-columns: 1.5fr 1fr; }
  .insight { position: sticky; top: 88px; }
  .report-grid { grid-template-columns: repeat(3, 1fr); }
  .foot-cols { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
  .foot-base { flex-direction: row; justify-content: space-between; align-items: center; gap: 20px; }
  .band { padding: 72px 0; }
}

@media (max-width: 959px) {
  body.has-float { padding-bottom: 78px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .rise { opacity: 1; transform: none; }
  .ecg-run { stroke-dashoffset: 0; }
  .pulse-dot { animation: none; }
}