/* SonoCare website: the same care spectrum as the app.
   Midnight panels with an aurora glow; lagoon teal actions; violet links; one colour per service; red for emergencies only.
   Type: Sora (semibold) for headings and numbers, Inter for reading: quieter weights and generous spacing for a calm, premium feel. */
@font-face { font-family: 'Sora'; font-weight: 500; font-display: swap; src: url('fonts/sora-500.woff2') format('woff2'); }
@font-face { font-family: 'Sora'; font-weight: 600; font-display: swap; src: url('fonts/sora-600.woff2') format('woff2'); }
@font-face { font-family: 'Sora'; font-weight: 700; font-display: swap; src: url('fonts/sora-700.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url('fonts/inter-400.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 500; font-display: swap; src: url('fonts/inter-500.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 600 700; font-display: swap; src: url('fonts/inter-600.woff2') format('woff2'); }
@font-face { font-family: 'Digits'; font-weight: 400 600; font-display: swap; unicode-range: U+0030-0039, U+20A6; size-adjust: 90%; src: url('fonts/sora-500.woff2') format('woff2'); }
@font-face { font-family: 'Digits'; font-weight: 700 900; font-display: swap; unicode-range: U+0030-0039, U+20A6; size-adjust: 90%; src: url('fonts/sora-700.woff2') format('woff2'); }

:root {
  --midnight: #0F1238; --ink: #14163F; --ink-2: #3D4166; --ink-3: #6B6F8E;
  --teal: #0B9A9C; --teal-deep: #077A80; --teal-wash: #E1F5F4;
  --violet: #6A43D9; --violet-wash: #EFEAFD;
  --red: #D92D3F; --red-wash: #FDECEE;
  --mist: #F4F5FB; --paper: #FFFFFF; --line: #DFE2EE; --line-soft: #ECEEF5;
  --c-doctor: #2B7DE9; --c-home: #0B9A9C; --c-nurse: #E0457B; --c-lab: #7A4FE6; --c-pharmacy: #13A06E;
  --c-elder: #E8900C; --c-hospital: #4B55D8; --c-rider: #F0652F; --c-call: #0FA58C; --c-gold: #C9921A;
  --aurora: radial-gradient(70% 90% at 100% 0%, rgba(18, 179, 174, .55) 0%, transparent 60%),
            radial-gradient(60% 80% at 0% 100%, rgba(224, 69, 123, .38) 0%, transparent 60%),
            radial-gradient(55% 70% at 55% 45%, rgba(122, 79, 230, .45) 0%, transparent 70%), #0F1238;
  --primary: linear-gradient(135deg, #12B3AE 0%, #0B9A9C 45%, #08788A 100%);
  --shadow: 0 1px 2px rgba(20, 22, 63, .05), 0 10px 30px -12px rgba(20, 22, 63, .16);
  --r: 18px; --r-l: 28px;
  --body: 'Digits', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --head: 'Digits', 'Sora', 'Inter', system-ui, sans-serif;
  --max: 1180px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --ink: #EEF0FA; --ink-2: #C0C4DE; --ink-3: #9094B4; --teal-wash: #0F3436; --violet: #A88BFF; --violet-wash: #2A2150; --red-wash: #3D1A22;
    --mist: #0A0C26; --paper: #15183F; --line: #2A2E5E; --line-soft: #20244E; --shadow: 0 1px 2px rgba(0,0,0,.35); color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--mist); color: var(--ink); font: 400 16px/1.7 var(--body); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; font-feature-settings: 'cv11', 'ss01'; }
h1, h2, h3, h4 { font-family: var(--head); color: var(--ink); margin: 0; letter-spacing: -.02em; line-height: 1.18; font-weight: 600; }
h1 { font-size: clamp(2.15rem, 4.4vw, 3.5rem); letter-spacing: -.03em; line-height: 1.1; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.25rem); letter-spacing: -.025em; }
h3 { font-size: 1.06rem; letter-spacing: -.01em; }
b, strong { font-weight: 600; }
.eyebrow { display: inline-block; font: 500 .78rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--teal-deep); }
.page-hero .eyebrow, .hero .eyebrow, .band .eyebrow { color: #8BE0DA; }
p { margin: 0; }
a { color: var(--violet); text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--paper); color: var(--ink); padding: 10px 16px; border-radius: 10px; z-index: 100; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }
.lead { font-size: clamp(1.02rem, 1.3vw, 1.13rem); line-height: 1.7; color: var(--ink-2); max-width: 60ch; font-weight: 400; }
.muted { color: var(--ink-3); }
.small { font-size: .92rem; }
.tiny { font-size: .82rem; }
.num { font-variant-numeric: tabular-nums; }
section { padding: clamp(64px, 9vw, 120px) 0; }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(32px, 4vw, 56px); max-width: 760px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; justify-items: center; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 24px; border-radius: 14px; border: 1.5px solid transparent;
  background: var(--primary); color: #fff; font: 500 .95rem var(--body); letter-spacing: .01em; text-decoration: none; cursor: pointer; white-space: nowrap;
  box-shadow: 0 10px 22px -12px #0B9A9C, inset 0 1px 0 rgba(255,255,255,.22); transition: filter .15s, transform .05s; }
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(1px); }
.btn.light { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.28); color: #fff; box-shadow: none; backdrop-filter: blur(8px); }
.btn.light:hover { background: rgba(255,255,255,.18); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); box-shadow: none; }
.btn.ghost:hover { border-color: var(--ink-3); }
.btn.red { background: linear-gradient(135deg, #F04A5A, var(--red)); box-shadow: 0 10px 22px -12px var(--red); }
.btn.small { min-height: 42px; padding: 0 18px; font-size: .94rem; border-radius: 12px; }
.btn svg { width: 20px; height: 20px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Glyph tiles: white icon on a gradient in the service colour (same as the app) */
.glyph { --g: 48px; width: var(--g); height: var(--g); flex: none; display: grid; place-items: center; color: #fff; border-radius: calc(var(--g) * .32);
  background: radial-gradient(120% 90% at 20% 10%, rgba(255,255,255,.36), transparent 55%),
              linear-gradient(150deg, color-mix(in srgb, var(--tone) 70%, #fff) 0%, var(--tone) 52%, color-mix(in srgb, var(--tone) 80%, #000) 100%);
  box-shadow: 0 10px 20px -12px var(--tone), inset 0 1px 0 rgba(255,255,255,.35); }
.glyph svg { width: calc(var(--g) * .46); height: calc(var(--g) * .46); }
.glyph.sm { --g: 36px; }
.t-doctor { --tone: var(--c-doctor); } .t-home { --tone: var(--c-home); } .t-nurse { --tone: var(--c-nurse); } .t-lab { --tone: var(--c-lab); }
.t-pharmacy { --tone: var(--c-pharmacy); } .t-elder { --tone: var(--c-elder); } .t-hospital { --tone: var(--c-hospital); } .t-rider { --tone: var(--c-rider); }
.t-call { --tone: var(--c-call); } .t-red { --tone: var(--red); } .t-gold { --tone: var(--c-gold); } .t-violet { --tone: var(--c-lab); }

/* Header */
.site-head { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line-soft); }
.site-head .wrap { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.logo img { height: 38px; width: auto; }
.logo .on-dark { display: none; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .9rem; padding: 10px 12px; border-radius: 10px; }
.nav a:hover, .nav a[aria-current='page'] { color: var(--ink); background: var(--line-soft); }
.head-actions { display: flex; gap: 10px; align-items: center; }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; width: 46px; height: 46px; border-radius: 12px; color: var(--ink); cursor: pointer; }
.menu-btn svg { width: 26px; height: 26px; }
/* Over the home hero: transparent until scrolled */
body.hero-page .site-head:not(.scrolled) { background: transparent; border-color: transparent; backdrop-filter: none; }
body.hero-page .site-head:not(.scrolled) .nav a { color: #D9DCF3; }
body.hero-page .site-head:not(.scrolled) .nav a:hover { color: #fff; background: rgba(255,255,255,.1); }
body.hero-page .site-head:not(.scrolled) .logo .on-light { display: none; }
body.hero-page .site-head:not(.scrolled) .logo .on-dark { display: block; }
body.hero-page .site-head:not(.scrolled) .menu-btn { color: #fff; }
body.hero-page .site-head:not(.scrolled) .btn.ghost { color: #fff; border-color: rgba(255,255,255,.3); }
body.hero-page .site-head { position: fixed; left: 0; right: 0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .logo .on-light { display: none; } :root:not([data-theme='light']) .logo .on-dark { display: block; } }
@media (max-width: 1020px) {
  .nav, .head-actions .hide-m { display: none; }
  .menu-btn { display: grid; place-items: center; }
  .head-actions { margin-left: 0; }
}
.drawer { position: fixed; inset: 0; z-index: 80; background: rgba(8, 10, 30, .55); display: none; }
.drawer.open { display: block; }
.drawer-panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(88vw, 380px); background: var(--paper); padding: 20px; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; }
.drawer-panel a:not(.btn) { color: var(--ink); text-decoration: none; font: 500 1.02rem var(--head); padding: 14px 8px; border-bottom: 1px solid var(--line-soft); }
.drawer-panel .btn { margin-top: 12px; }
.drawer-close { align-self: flex-end; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; color: var(--ink); }

/* Home hero */
.hero { background: var(--aurora); color: #fff; padding: calc(72px + clamp(48px, 7vw, 96px)) 0 0; position: relative; overflow: hidden; }
.hero h1 { color: #fff; max-width: 11ch; }
.hero .lead { color: #D3D6F0; margin-top: 22px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: end; }
.hero-copy { padding-bottom: clamp(56px, 8vw, 120px); }
.hero .actions { margin-top: 32px; }
.promises { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; color: #C9CCEA; font-size: .88rem; }
.promises span { display: inline-flex; align-items: center; gap: 8px; }
.promises svg { width: 18px; height: 18px; color: #8BE0DA; }
.hero-phones { position: relative; height: clamp(440px, 52vw, 640px); }
.phone { position: absolute; width: clamp(220px, 24vw, 300px); aspect-ratio: 390 / 844; border-radius: 42px; padding: 10px; background: linear-gradient(160deg, #2A2E5E, #0B0D2A);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.7), inset 0 0 0 1.5px rgba(255,255,255,.12); }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 33px; }
.phone.a { right: 30%; bottom: -70px; transform: rotate(-4deg); z-index: 2; }
.phone.b { right: 0; bottom: -150px; transform: rotate(5deg); }
.float-chip { position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 16px; background: rgba(255,255,255,.94); color: var(--midnight);
  box-shadow: 0 20px 40px -18px rgba(0,0,0,.5); font-size: .9rem; max-width: 250px; }
.float-chip b { display: block; font-family: var(--head); font-size: .98rem; }
.float-chip small { color: #5B5F80; }
.chip-1 { left: -10px; top: 46%; }
.chip-2 { right: -6px; top: 6%; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 0; }
  .hero-phones { height: 430px; margin-top: 30px; }
  .phone { width: 210px; } .phone.a { right: auto; left: 8%; bottom: -60px; } .phone.b { right: 6%; bottom: -120px; }
  .chip-1 { left: 0; top: 2%; } .chip-2 { display: none; }
}
/* Signature: the care spectrum as one pulse line across the hero */
.pulse-line { position: absolute; left: 0; right: 0; bottom: 0; height: 140px; pointer-events: none; z-index: 1; }
.pulse-line path { fill: none; stroke: url(#spectrum); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: .9; }
@media (prefers-reduced-motion: no-preference) {
  .pulse-line path { stroke-dasharray: 3200; stroke-dashoffset: 3200; animation: draw 2.6s cubic-bezier(.6,.1,.2,1) .3s forwards; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
}

/* Page hero (inner pages) */
.page-hero { background: var(--aurora); color: #fff; padding: clamp(56px, 8vw, 104px) 0 clamp(48px, 6vw, 80px); position: relative; overflow: hidden; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3.1rem); max-width: 20ch; }
.page-hero .lead { color: #D3D6F0; margin-top: 18px; }
.page-hero .actions { margin-top: 28px; }
.crumbs { font-size: .9rem; color: #B9BDE0; margin-bottom: 16px; }
.crumbs a { color: #B9BDE0; }

/* Services list (home + services page) */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.service { display: grid; gap: 12px; align-content: start; padding: 28px 22px 30px; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; position: relative; }
.service:not(:nth-child(4n)) { border-right: 1px solid var(--line); }
.service h3 { font-size: 1.12rem; }
.service p { color: var(--ink-2); font-size: .97rem; }
.service .go { color: var(--violet); font-weight: 500; font-size: .88rem; margin-top: auto; }
.service:hover { background: var(--paper); }
.service.emergency { background: var(--red-wash); }
@media (max-width: 1000px) { .services { grid-template-columns: repeat(2, 1fr); } .service:not(:nth-child(4n)) { border-right: 0; } .service:nth-child(odd) { border-right: 1px solid var(--line); } }
@media (max-width: 560px) { .services { grid-template-columns: 1fr; } .service:nth-child(odd) { border-right: 0; } .service { grid-template-columns: auto 1fr; } .service .glyph { grid-row: span 3; } }

/* Steps (a real sequence) */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; }
.step { position: relative; padding-top: 64px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: 0; left: 0; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  font: 600 1rem var(--head); color: #fff; background: var(--primary); box-shadow: 0 10px 20px -10px #0B9A9C; }
.step:not(:last-child)::after { content: ''; position: absolute; top: 22px; left: 56px; right: -16px; height: 2px; background: linear-gradient(90deg, var(--teal), var(--c-lab)); opacity: .35; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--ink-2); }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } .step:not(:last-child)::after { display: none; } }

/* Split feature rows */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split.flip > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split.flip > :first-child { order: 0; } }
.feature-list { display: grid; gap: 22px; margin-top: 28px; }
.feature { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; }
.feature h3 { font-size: 1.06rem; margin-bottom: 4px; }
.feature p { color: var(--ink-2); font-size: .98rem; }
.phone-solo { width: min(320px, 78%); margin: 0 auto; position: relative; }
.phone-solo .phone { position: relative; width: 100%; }

/* Dark band */
.band { background: var(--aurora); color: #fff; border-radius: var(--r-l); padding: clamp(36px, 6vw, 72px); position: relative; overflow: hidden; }
.band h2 { color: #fff; }
.band .lead { color: #D3D6F0; }
.band .muted { color: #B9BDE0; }

/* Plans */
.range-tabs { display: inline-flex; gap: 4px; padding: 5px; background: var(--line-soft); border-radius: 16px; flex-wrap: wrap; }
.range-tabs button, .billing button { border: 0; background: transparent; font: 500 .9rem var(--body); color: var(--ink-2); padding: 10px 18px; border-radius: 12px; cursor: pointer; }
.range-tabs button[aria-pressed='true'], .billing button[aria-pressed='true'] { background: var(--paper); color: var(--teal-deep); box-shadow: var(--shadow); }
.billing { display: inline-flex; gap: 4px; padding: 5px; background: var(--line-soft); border-radius: 16px; }
.plan-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; max-width: 560px; } }
.plan { background: var(--paper); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.plan.cowrie { --tier: #8C7A5B; --tier-wash: linear-gradient(135deg, #FBF6EC, #F1E6D0); }
.plan.coral { --tier: #E0533D; --tier-wash: linear-gradient(135deg, #FFF1EC, #FFD9CC); }
.plan.gold { --tier: #B8860B; --tier-wash: linear-gradient(135deg, #FFF8E1, #F7E3A6); }
.plan-band { padding: 22px; background: var(--tier-wash); color: #14163F; }
.plan-band h3 { color: #14163F; font-size: 1.3rem; margin-top: 4px; }
.tier { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--tier); }
.tier::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--tier); box-shadow: 0 0 0 3px color-mix(in srgb, var(--tier) 25%, transparent); }
.price { font: 600 1.8rem var(--head); color: #14163F; margin-top: 14px; letter-spacing: -.02em; }
.price small { font: 400 .9rem var(--body); color: #5B5F80; }
.plan ul { margin: 0; padding: 20px 22px 0 40px; display: grid; gap: 8px; color: var(--ink-2); font-size: .96rem; }
.plan ul li::marker { color: var(--tier); }
.plan .plan-foot { padding: 20px 22px 22px; margin-top: auto; display: grid; gap: 10px; }
.plan details summary { cursor: pointer; font-weight: 500; font-size: .9rem; color: var(--ink-2); }
.plan details ul { padding: 10px 0 0 20px; font-size: .88rem; color: var(--ink-3); }
.note { display: flex; gap: 12px; padding: 16px 18px; border-radius: 16px; background: var(--violet-wash); color: var(--ink); align-items: flex-start; font-size: .96rem; }
.note svg { flex: none; width: 20px; height: 20px; color: var(--violet); margin-top: 3px; }
.note.warn { background: #FFF2DC; } .note.warn svg { color: #B86A00; }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .note.warn { background: #3A2C14; } }

/* Cards and grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 900px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card { background: var(--paper); border-radius: var(--r); box-shadow: var(--shadow); padding: 26px; display: grid; gap: 12px; align-content: start; }
.card h3 { font-size: 1.12rem; }
.card p { color: var(--ink-2); font-size: .97rem; }
.card a.go { font-weight: 500; text-decoration: none; }
.big-stat b { font: 600 clamp(2.1rem, 3.4vw, 2.9rem) var(--head); letter-spacing: -.03em; display: block; }

/* Promise list (trust) */
.promise-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 36px; }
@media (max-width: 700px) { .promise-list { grid-template-columns: 1fr; } }

/* Clinic */
.clinic-card { display: grid; grid-template-columns: 1.1fr .9fr; background: var(--paper); border-radius: var(--r-l); box-shadow: var(--shadow); overflow: hidden; }
.clinic-card .info { padding: clamp(28px, 4vw, 48px); display: grid; gap: 18px; align-content: start; }
.clinic-card .map { min-height: 340px; background: var(--line-soft); }
.clinic-card iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }
@media (max-width: 900px) { .clinic-card { grid-template-columns: 1fr; } }
.contact-lines { display: grid; gap: 12px; }
.contact-line { display: flex; gap: 12px; align-items: flex-start; }
.contact-line svg { width: 22px; height: 22px; color: var(--teal); flex: none; margin-top: 2px; }
.contact-line a { color: var(--ink); font-weight: 600; text-decoration: none; }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--paper); border-radius: 16px; padding: 4px 22px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; font: 500 1rem var(--head); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--teal); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { padding: 0 0 20px; color: var(--ink-2); }
.faq-cats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.chip { border: 1.5px solid var(--line); background: var(--paper); border-radius: 999px; padding: 8px 16px; font: 500 .88rem var(--body); color: var(--ink-2); cursor: pointer; }
.chip[aria-pressed='true'] { border-color: var(--teal); background: var(--teal-wash); color: var(--teal-deep); }

/* Lab tests */
.search { width: 100%; min-height: 54px; padding: 0 18px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); font: inherit; }
.search:focus { outline: none; border-color: var(--teal); }
.test-group { background: var(--paper); border-radius: 16px; box-shadow: var(--shadow); padding: 0 22px; }
.test-group summary { cursor: pointer; list-style: none; display: flex; gap: 12px; align-items: center; padding: 18px 0; font: 500 1rem var(--head); }
.test-group summary::-webkit-details-marker { display: none; }
.test-group summary .count { margin-left: auto; color: var(--ink-3); font: 400 .9rem var(--body); }
.test { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 14px 0; border-top: 1px solid var(--line-soft); }
.test b { font-weight: 600; }
.test .meta { grid-column: 1 / -1; display: flex; gap: 14px; flex-wrap: wrap; font-size: .86rem; color: var(--ink-3); }
.test .from { font-family: var(--head); font-weight: 600; white-space: nowrap; }
.tag { display: inline-flex; align-items: center; gap: 6px; }
.tag.home { color: var(--teal-deep); } .tag.lab { color: var(--c-hospital); } .tag.fast { color: #B86A00; }
.test-groups { display: grid; gap: 12px; }

/* Forms */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field span { font-weight: 500; font-size: .9rem; }
.field input, .field select, .field textarea { width: 100%; min-height: 52px; padding: 12px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); font: inherit; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); }
.hp { position: absolute; left: -9999px; }
.form-msg { padding: 14px 16px; border-radius: 14px; font-weight: 500; }
.form-msg.ok { background: #E2F5EC; color: #0E6B45; } .form-msg.err { background: var(--red-wash); color: var(--red); }

/* Legal */
.legal { background: var(--paper); border-radius: var(--r-l); box-shadow: var(--shadow); padding: clamp(28px, 5vw, 64px); max-width: 880px; }
.legal h2 { font-size: 1.5rem; margin: 32px 0 12px; }
.legal p, .legal li { color: var(--ink-2); margin-bottom: 12px; }

/* Footer */
.site-foot { background: var(--midnight); color: #C9CCEA; padding: 72px 0 36px; margin-top: 0; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.site-foot h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-foot a { color: #C9CCEA; text-decoration: none; display: block; padding: 4px 0; }
.site-foot a:hover { color: #fff; }
.foot-brand img { height: 40px; margin-bottom: 16px; }
.foot-brand p { max-width: 34ch; font-size: .95rem; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.08); display: grid; place-items: center; padding: 0; }
.socials svg { width: 18px; height: 18px; }
.foot-base { border-top: 1px solid rgba(255,255,255,.1); margin-top: 48px; padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .88rem; color: #9DA1C8; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
.emergency-strip { background: linear-gradient(135deg, #F04A5A, #B01B2C); color: #fff; }
.emergency-strip .wrap { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 16px; flex-wrap: wrap; }
.emergency-strip a { color: #fff; font-weight: 600; }
.loading { color: var(--ink-3); padding: 24px 0; }
.tests-layout { grid-template-columns: 1.4fr .6fr; align-items: start; }
.tests-layout > * { min-width: 0; }
.tests-aside { display: grid; gap: 18px; position: sticky; top: 96px; }
@media (max-width: 900px) { .tests-layout { grid-template-columns: 1fr; } .tests-aside { position: static; } }
.test > * { min-width: 0; overflow-wrap: anywhere; }
.legal h2.legal-part { font-size: clamp(1.8rem, 3vw, 2.3rem); margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.legal table { width: 100%; border-collapse: collapse; margin: 8px 0 20px; font-size: .95rem; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: top; color: var(--ink-2); }
.legal th { color: var(--ink); background: var(--mist); }
.legal > :first-child { margin-top: 0; }
@media (max-width: 600px) { .legal table { display: block; overflow-x: auto; } }
.page-hero .eyebrow + h1 { margin-top: 14px; }
.section-head .eyebrow + h2, .band .eyebrow + h2 { margin-top: -4px; }
