/* ==========================================================================
   MOFMED Medical Solutions Ltd — style.css
   Palette:  ink #0A1524 | clinical blue #0B4F9E | vitals teal #00B39A
   Type:     Sora (display) + Inter (body/UI)
   ========================================================================== */

/* -------------------------------------------------- 1. Tokens */
:root {
  --ink: #0a1524;
  --ink-soft: #41505f;
  --ink-mute: #6b7a89;
  --line: #e2e8f0;
  --line-soft: #eef2f7;
  --surface: #f4f7fa;
  --white: #ffffff;

  --blue: #006C73;
  --blue-dark: #1f8b21;
  --blue-tint: #d3fcf2;
  --teal: #00b39a;
  --teal-tint: #e4f7f4;

  --radius-s: 10px;
  --radius: 16px;
  --radius-l: 24px;

  --shadow-s: 0 1px 2px rgba(5, 64, 32, 0.06), 0 2px 8px rgba(5, 96, 81, 0.05);
  --shadow-m: 0 8px 24px rgba(5, 64, 32, .08);
  --shadow-l: 0 24px 60px rgba(5, 64, 32, .14);

  --maxw: 1180px;
  --gutter: 24px;
  --header-h: 76px;

  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* -------------------------------------------------- 2. Reset / base */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -.022em;
  margin: 0 0 .5em;
  font-weight: 600;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1rem; }

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 999;
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 8px;
}
.skip-link:focus { left: 12px; color: #fff; }

/* -------------------------------------------------- 3. Layout utilities */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-tight { padding: clamp(40px, 5vw, 64px) 0; }
.bg-surface { background: var(--surface); }
.bg-ink { background: var(--ink); }
.center { text-align: center; }
.narrow { max-width: 720px; margin-inline: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-body);
  font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--teal); }
.eyebrow-light { color: #8fc3ff; }

.lead { font-size: clamp(1.02rem, 1.6vw, 1.16rem); color: var(--ink-soft); }
.section-head { max-width: 640px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head.center { margin-inline: auto; }

.brand-logo {
  height: 48px;
  width: auto;
  display: block;
}


.brand-logo-footer {
  height: 40px;
  width: auto;
  display: block;
  border-radius: 25%;
}

/* -------------------------------------------------- 4. Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-size: .95rem; font-weight: 600;
  padding: 14px 26px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(11, 79, 158, .26); }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-light { background: #fff; color: var(--blue); }
.btn-light:hover { color: var(--blue-dark); }
.btn-outline-light { border-color: rgba(255, 255, 255, .38); color: #fff; }
.btn-outline-light:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .08); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* -------------------------------------------------- 5. Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.site-header.is-stuck { border-bottom-color: var(--line); box-shadow: 0 2px 16px rgba(10, 21, 36, .05); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; }

.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px; flex: none;
  background: linear-gradient(140deg, var(--blue) 0%, #0d6fd0 55%, var(--teal) 140%);
  display: grid; place-items: center;
}
.brand-mark svg { width: 22px; height: 22px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; color: var(--ink); letter-spacing: -.02em; }
.brand-sub { font-size: .61rem; letter-spacing: .17em; text-transform: uppercase; color: var(--ink-mute); font-weight: 500; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  position: relative; padding: 9px 14px; border-radius: 8px;
  font-size: .93rem; font-weight: 500; color: var(--ink-soft);
  transition: color .18s ease, background .18s ease;
}
.nav-link:hover { color: var(--ink); background: var(--line-soft); }
.nav-link.is-active { color: var(--blue); font-weight: 600; }
.nav-link.is-active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px;
  height: 2px; background: var(--teal); border-radius: 2px;
}
.header-cta { display: inline-flex; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line);
  border-radius: 11px; background: #fff; cursor: pointer; padding: 0;
  place-items: center; flex-direction: column; gap: 5px;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .22s ease, opacity .22s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* -------------------------------------------------- 6. Hero */
.hero {
  position: relative; padding-top: calc(var(--header-h) + clamp(48px, 7vw, 92px));
  padding-bottom: clamp(56px, 7vw, 96px);
  background:
    radial-gradient(900px 420px at 88% -6%, var(--blue-tint) 0%, rgba(233, 241, 251, 0) 70%),
    linear-gradient(180deg, #fbfdff 0%, var(--white) 100%);
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.06fr .94fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero h1 .accent { color: var(--blue); }
.hero-lead { font-size: clamp(1.03rem, 1.7vw, 1.18rem); max-width: 33em; margin-bottom: 28px; }

.hero-media { position: relative; }
.hero-frame {
  border-radius: var(--radius-l); overflow: hidden; background: var(--surface);
  box-shadow: var(--shadow-l); border: 1px solid var(--line);
}
.hero-badge {
  position: absolute; left: -18px; bottom: 30px; z-index: 3;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-m); padding: 14px 18px; display: flex; align-items: center; gap: 12px;
}
.hero-badge .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 5px var(--teal-tint); flex: none; }
.hero-badge strong { font-family: var(--font-display); font-size: .95rem; color: var(--ink); display: block; }
.hero-badge span { font-size: .78rem; color: var(--ink-mute); }

/* Signature: the vitals trace */
.pulse { width: 100%; height: 46px; margin: 6px 0 26px; overflow: visible; }
.pulse path { fill: none; stroke: var(--teal); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pulse .trace { stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: trace 2.6s cubic-bezier(.6, .05, .2, 1) .35s forwards; }
.pulse .base { stroke: var(--line); stroke-width: 1.5; }
@keyframes trace { to { stroke-dashoffset: 0; } }

.rule-pulse { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.rule-pulse::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.rule-pulse svg { width: 78px; height: 20px; flex: none; }
.rule-pulse svg path { fill: none; stroke: var(--teal); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* -------------------------------------------------- 7. Image placeholders */
.img-ph {
  position: relative; width: 100%; display: grid; place-items: center; gap: 6px;
  background:
    repeating-linear-gradient(45deg, rgba(11, 79, 158, .035) 0 12px, rgba(11, 79, 158, 0) 12px 24px),
    var(--surface);
  color: var(--ink-mute); text-align: center; padding: 20px;
  border: 1px dashed var(--line);
}
.img-ph strong { font-family: var(--font-display); font-size: .84rem; color: var(--blue); letter-spacing: .04em; }
.img-ph span { font-size: .72rem; letter-spacing: .06em; }
.ratio-16-10 { aspect-ratio: 16 / 10; }
.ratio-4-3 { aspect-ratio: 4 / 3; }
.ratio-1-1 { aspect-ratio: 1 / 1; }
.ratio-3-2 { aspect-ratio: 3 / 2; }
.hero-frame .img-ph { border: 0; }

/* -------------------------------------------------- 8. Coverage strip */
.coverage-bar {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: #fff; padding: 22px 0;
}
.coverage-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.coverage-label { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); }
.state-list { display: flex; flex-wrap: wrap; gap: 10px; }
.state {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px;
  font-size: .88rem; font-weight: 600; color: var(--ink); background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.state:hover { border-color: var(--blue); box-shadow: var(--shadow-s); transform: translateY(-2px); }
.state::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }

/* -------------------------------------------------- 9. Cards & grids */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); border-color: #cfe0f3; }
.card h3 { margin-bottom: 8px; }
.card p { margin-bottom: 0; font-size: .95rem; }

.card-icon {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: var(--blue-tint); color: var(--blue); margin-bottom: 18px;
}
.card-icon svg { width: 23px; height: 23px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card-icon.teal { background: var(--teal-tint); color: #068674; }

/* Product / service card with image slot */
.pcard {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); border-color: #cfe0f3; }
.pcard-media { border-bottom: 1px solid var(--line); }
.pcard-media .img-ph { border: 0; }
.pcard-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.pcard-body h3 { margin-bottom: 8px; }
.pcard-body p { font-size: .94rem; margin-bottom: 16px; }
.tag {
  align-self: flex-start; margin-top: auto;
  font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--blue); background: var(--blue-tint); border-radius: 999px; padding: 5px 12px;
}
.tag-teal { color: #068674; background: var(--teal-tint); }

/* Bullet list */
.ticks { display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 34px; font-size: .97rem; color: var(--ink-soft); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 21px; height: 21px; border-radius: 50%;
  background: var(--teal-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23068674' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.ticks li strong { color: var(--ink); font-weight: 600; }
.ticks-light li { color: rgba(255, 255, 255, .82); }
.ticks-light li strong { color: #fff; }
.ticks-light li::before { background-color: rgba(0, 179, 154, .18); }

/* Brand chips */
.brands { display: flex; flex-wrap: wrap; gap: 14px; }
.brand-chip {
  flex: 1 1 170px; min-height: 92px; display: grid; place-items: center; gap: 2px;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 18px;
  text-align: center; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.brand-chip:hover { border-color: var(--blue); box-shadow: var(--shadow-s); transform: translateY(-3px); }
.brand-chip b { font-family: var(--font-display); font-size: 1.06rem; color: var(--ink); letter-spacing: -.01em; }
.brand-chip small { font-size: .74rem; color: var(--ink-mute); letter-spacing: .04em; }

/* -------------------------------------------------- 10. Split feature block */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 68px); align-items: center; }
.split-media .img-ph { border-radius: var(--radius-l); }
.split.reverse .split-media { order: 2; }

/* Dark band (HealthWyse) */
.band { background: var(--ink); color: rgba(255, 255, 255, .8); position: relative; overflow: hidden; }
.band::before {
  content: ""; position: absolute; inset: auto -10% -60% 55%; height: 420px;
  background: radial-gradient(closest-side, rgba(0, 179, 154, .22), transparent 70%);
  pointer-events: none;
}
.band h2, .band h3 { color: #fff; }
.band .lead { color: rgba(255, 255, 255, .78); }
.band-inner { position: relative; z-index: 1; }
.mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 28px; }
.mini {
  border: 1px solid rgba(255, 255, 255, .14); border-radius: 12px; padding: 14px 16px;
  background: rgba(255, 255, 255, .04); font-size: .9rem; color: #fff; font-weight: 500;
  transition: background .2s ease, border-color .2s ease;
}
.mini:hover { background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .3); }

/* -------------------------------------------------- 11. Numbered / stat rows */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stat { border-left: 2px solid var(--teal); padding-left: 18px; }
.stat b { display: block; font-family: var(--font-display); font-size: 1.9rem; color: var(--ink); line-height: 1.1; }
.stat span { font-size: .88rem; color: var(--ink-mute); }

/* -------------------------------------------------- 12. Page hero (inner pages) */
.page-hero {
  padding-top: calc(var(--header-h) + clamp(40px, 6vw, 76px));
  padding-bottom: clamp(36px, 5vw, 64px);
  background:
    radial-gradient(700px 320px at 82% 0%, var(--blue-tint) 0%, rgba(233, 241, 251, 0) 72%),
    linear-gradient(180deg, #fbfdff 0%, var(--white) 100%);
  border-bottom: 1px solid var(--line-soft);
}
.crumbs { font-size: .82rem; color: var(--ink-mute); margin-bottom: 14px; }
.crumbs a { color: var(--ink-mute); }
.crumbs a:hover { color: var(--blue); }
.crumbs span { margin: 0 8px; opacity: .55; }

/* -------------------------------------------------- 13. Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 52px); align-items: start; }
.contact-card {
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  padding: 24px; display: flex; gap: 16px; align-items: flex-start;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.contact-card:hover { border-color: #cfe0f3; box-shadow: var(--shadow-s); transform: translateY(-3px); }
.contact-card .card-icon { margin-bottom: 0; flex: none; }
.contact-card h3 { font-size: 1.02rem; margin-bottom: 4px; }
.contact-card p { margin: 0; font-size: .93rem; }
.contact-stack { display: grid; gap: 16px; }

.form { border: 1px solid var(--line); border-radius: var(--radius-l); background: #fff; padding: clamp(24px, 3vw, 34px); box-shadow: var(--shadow-s); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; font-family: inherit; font-size: .95rem; color: var(--ink);
  padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--radius-s);
  background: #fff; transition: border-color .18s ease, box-shadow .18s ease;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-tint);
}
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #d64545; }
.error-msg { display: none; font-size: .8rem; color: #d64545; margin-top: 6px; }
.field.has-error .error-msg { display: block; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { font-size: .82rem; color: var(--ink-mute); margin: 14px 0 0; }
.form-status {
  display: none; margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-s);
  background: var(--teal-tint); border: 1px solid #b6e8e0; color: #06655a; font-size: .9rem;
}
.form-status.is-visible { display: block; }

.social-row { display: flex; flex-wrap: wrap; gap: 12px; }
.social {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff;
  font-size: .92rem; font-weight: 600; color: var(--ink);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.social:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); box-shadow: var(--shadow-s); }
.social svg { width: 18px; height: 18px; fill: currentColor; }

/* -------------------------------------------------- 14. Accordion (services FAQ) */
.acc { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  background: none; border: 0; cursor: pointer; padding: 22px 4px;
  font-family: var(--font-display); font-size: 1.03rem; font-weight: 600; color: var(--ink); text-align: left;
}
.acc-btn:hover { color: var(--blue); }
.acc-btn .chev { width: 22px; height: 22px; flex: none; transition: transform .25s ease; stroke: var(--blue); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.acc-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.acc-panel { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.acc-panel p { padding: 0 4px 22px; margin: 0; font-size: .95rem; }

/* -------------------------------------------------- 15. CTA + Footer */
.cta {
  background: linear-gradient(120deg, var(--blue-dark) 0%, var(--blue) 52%, #045514 100%);
  color: #fff; border-radius: var(--radius-l); padding: clamp(34px, 5vw, 60px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 26px;
}
.cta h2 { color: #fff; margin-bottom: 8px; }
.cta p { color: rgba(255, 255, 255, .84); margin: 0; max-width: 46ch; }

.site-footer { background: var(--ink); color: rgba(255, 255, 255, .66); padding: clamp(48px, 6vw, 76px) 0 0; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 36px; }
.site-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; font-weight: 600; }
.site-footer a { color: rgba(255, 255, 255, .66); }
.site-footer a:hover { color: #fff; }
.footer-links { display: grid; gap: 10px; }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-sub { color: rgba(255, 255, 255, .5); }
.footer-about { margin: 18px 0 0; max-width: 34ch; color: rgba(255, 255, 255, .6); }
.footer-bottom {
  margin-top: clamp(36px, 4vw, 52px); border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 22px 0; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: .85rem; color: rgba(255, 255, 255, .5);
}

/* -------------------------------------------------- 16. Legal / prose */
.prose { max-width: 780px; }
.prose h2 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); margin-top: 44px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.06rem; margin-top: 26px; }
.prose ul { list-style: disc; padding-left: 22px; margin: 0 0 1rem; }
.prose li { margin-bottom: 8px; }
.prose .note {
  border-left: 3px solid var(--teal); background: var(--surface);
  padding: 18px 22px; border-radius: 0 var(--radius-s) var(--radius-s) 0; font-size: .93rem;
}
.toc { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; background: #fff; }
.toc h4 { font-family: var(--font-display); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); margin: 0 0 12px; }
.toc ol { margin: 0; padding-left: 18px; display: grid; gap: 8px; font-size: .9rem; }
.legal-layout { display: grid; grid-template-columns: 260px 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.legal-side { position: sticky; top: calc(var(--header-h) + 20px); }

/* -------------------------------------------------- 17. Scroll reveal */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .08s; }
.js .reveal.d2 { transition-delay: .16s; }
.js .reveal.d3 { transition-delay: .24s; }

/* -------------------------------------------------- 18. Responsive */
@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .legal-layout { grid-template-columns: 1fr; }
  .legal-side { position: static; }
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .header-cta { display: none; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 14px var(--gutter) 22px; box-shadow: var(--shadow-m);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .22s ease, transform .22s ease;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-link { padding: 14px 12px; font-size: 1rem; border-radius: 10px; }
  .nav-link.is-active::after { left: 12px; right: auto; width: 20px; bottom: 8px; }
  .nav .btn { margin-top: 10px; }

  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .mini-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-badge { left: 12px; bottom: 12px; }
}

@media (max-width: 620px) {
  :root { --gutter: 18px; }
  .grid-2, .grid-3, .grid-4, .field-row { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .mini-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .cta { text-align: left; }
  .btn { width: 100%; }
  .btn-row { width: 100%; }
  .brand-chip { flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .pulse .trace { stroke-dashoffset: 0; }
}

@media print {
  .site-header, .nav-toggle, .cta, .site-footer { display: none; }
  body { color: #000; }
}
