/* =========================================================
   Meridian Health — homepage styles
   1. Tokens & reset
   2. Utilities & buttons
   3. Header / nav
   4. Hero
   5. Quick actions
   6. Sections, departments, stats
   7. Doctors
   8. Why us
   9. Packages, testimonials, news
  10. CTA, footer
  11. Motion & responsive
   ========================================================= */

/* ---------- 1. Tokens & reset ---------- */
:root {
  --brand: #0e7490;
  --brand-600: #0b6a82;
  --brand-700: #155e75;
  --brand-900: #0c3d4d;
  --brand-50: #ecfeff;
  --brand-100: #cffafe;
  --accent: #0891b2;
  --alert: #e11d48;
  --alert-dark: #be123c;
  --ink: #0f172a;
  --body: #3b4a5f;
  --muted: #64748b;
  --line: #e5ebf1;
  --surface: #f6f9fb;
  --white: #fff;
  /* Rating stars / rating text sit on white: #f59e0b is only 2.15:1 there.
     This keeps the same amber hue at 92% saturation but reaches 4.97:1 (AA). */
  --gold: #9d6307;

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 26px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .05);
  --shadow: 0 10px 30px -12px rgba(12, 61, 77, .22), 0 2px 8px rgba(15, 23, 42, .05);
  --shadow-lg: 0 30px 60px -22px rgba(12, 61, 77, .35);
  --ring: 0 0 0 3px rgba(14, 116, 144, .28);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --wrap: 1200px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }

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

h1, h2, h3, h4 { color: var(--ink); line-height: 1.18; margin: 0 0 .5em; letter-spacing: -.015em; font-weight: 700; }
h1 { font-size: clamp(2.3rem, 4.3vw, 3.45rem); font-weight: 800; letter-spacing: -.03em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); letter-spacing: -.025em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-700); }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }

em { font-family: var(--display); font-style: italic; font-weight: 600; letter-spacing: -.01em; }

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 2. Utilities & buttons ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 22px; }

.section { padding: clamp(64px, 8vw, 104px) 0; }
.section--tint { background: var(--surface); }

.section__head { max-width: 720px; margin-bottom: 46px; }
.section__head--row {
  max-width: none; display: flex; align-items: flex-end;
  justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.section__title { margin-bottom: .35em; }
.section__title em { color: var(--brand); }
.section__lead { font-size: 1.075rem; color: var(--muted); margin: 0; max-width: 62ch; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand-600); margin: 0 0 14px;
  background: var(--brand-50); border: 1px solid var(--brand-100);
  padding: 7px 14px; border-radius: 999px;
}
.eyebrow--plain { background: none; border: 0; padding: 0; }
.eyebrow--plain::before {
  content: ""; width: 26px; height: 2px; border-radius: 2px;
  background: var(--brand); display: inline-block;
}
.eyebrow__dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--brand);
  box-shadow: 0 0 0 4px rgba(14, 116, 144, .16);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 600; font-size: .95rem; line-height: 1;
  padding: 14px 22px; border-radius: 999px; border: 1.5px solid transparent;
  transition: transform .16s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn svg { flex: none; }

.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px -8px rgba(14, 116, 144, .7); }
.btn--primary:hover { background: var(--brand-700); color: #fff; box-shadow: 0 12px 26px -10px rgba(14, 116, 144, .8); transform: translateY(-1px); }

.btn--outline { border-color: #cfdbe4; color: var(--ink); background: #fff; }
.btn--outline:hover { border-color: var(--brand); color: var(--brand-700); background: var(--brand-50); }

.btn--ghost { color: var(--brand-700); padding-inline: 4px; }
.btn--ghost:hover { gap: 13px; }

.btn--light { background: #fff; color: var(--brand-900); }
.btn--light:hover { background: #f1f5f9; color: var(--brand-900); transform: translateY(-1px); }

.btn--outline-light { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn--outline-light:hover { background: rgba(255, 255, 255, .12); color: #fff; border-color: #fff; }

.btn--lg { padding: 17px 30px; font-size: 1rem; }
.btn--sm { padding: 10px 16px; font-size: .85rem; }
.btn--full { width: 100%; }

/* ---------- 3. Header / nav ---------- */
.topstrip {
  background: var(--brand-900); color: #cbe9f2; font-size: .83rem;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.topstrip__inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 40px; flex-wrap: wrap; }
.topstrip__left { display: flex; align-items: center; gap: 8px; margin: 0; }
.topstrip a { color: #fff; font-weight: 600; }
.topstrip a:hover { color: var(--brand-100); text-decoration: underline; }
.topstrip__links { display: flex; gap: 22px; }
.topstrip__links a { font-weight: 500; color: #a9d6e4; }
.pulse {
  width: 8px; height: 8px; border-radius: 50%; background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, .7); animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .7); }
  70% { box-shadow: 0 0 0 7px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .22s ease, background .22s ease;
}
.site-header.is-stuck { box-shadow: 0 8px 24px -18px rgba(12, 61, 77, .5); background: rgba(255, 255, 255, .97); }
.header__inner { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); flex: none; }
.brand:hover { color: var(--ink); }
.brand__mark {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px;
  background: linear-gradient(140deg, var(--brand) 0%, var(--brand-700) 100%);
  color: #fff; box-shadow: 0 8px 18px -10px rgba(14, 116, 144, .9);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-weight: 800; font-size: 1.16rem; letter-spacing: -.02em; }
.brand__name span { color: var(--brand); }
.brand__tag { font-size: .66rem; letter-spacing: .17em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.brand--light, .brand--light:hover { color: #fff; }
.brand--light .brand__name span { color: #67e8f9; }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  background: none; border: 0; color: var(--ink); font-weight: 600; font-size: .95rem;
  padding: 10px 14px; border-radius: 999px; transition: background .16s ease, color .16s ease;
}
.nav__link:hover { background: var(--brand-50); color: var(--brand-700); }
.chev { transition: transform .2s ease; }
.nav__item.is-open .chev { transform: rotate(180deg); }

.has-menu { position: relative; }
.megamenu {
  position: absolute; top: calc(100% + 10px); left: 50%; translate: -50% 0;
  min-width: 480px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 24px; display: grid; grid-template-columns: 1fr 1fr 170px; gap: 22px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.megamenu--narrow { grid-template-columns: 1fr; min-width: 250px; }
.nav__item.is-open > .megamenu { opacity: 1; visibility: visible; transform: translateY(0); }
.megamenu__title { font-size: .74rem; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin: 0 0 12px; }
.megamenu__col li + li { margin-top: 8px; }
.megamenu__col a { color: var(--ink); font-weight: 500; font-size: .93rem; }
.megamenu__col a:hover { color: var(--brand); }
.megamenu__cta {
  background: var(--brand-50); border: 1px solid var(--brand-100);
  border-radius: var(--radius-sm); padding: 16px; align-self: start;
}
.megamenu__cta p { font-size: .87rem; color: var(--body); margin-bottom: 10px; }
.megamenu__cta .btn--ghost { padding-inline: 0; font-size: .86rem; }

.header__cta { display: flex; align-items: center; gap: 16px; flex: none; }
.header__phone { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; font-size: .92rem; }
.header__phone:hover { color: var(--brand); }

.burger {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line);
  background: #fff; border-radius: 12px; padding: 12px 11px; flex-direction: column; justify-content: space-between;
}
.burger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .22s ease, opacity .22s ease; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- 4. Hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #f7fcfd 0%, #fff 62%); }
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__grid { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; mask-image: radial-gradient(120% 90% at 78% 12%, #000 20%, transparent 72%); -webkit-mask-image: radial-gradient(120% 90% at 78% 12%, #000 20%, transparent 72%); }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; }
.blob--1 { width: 520px; height: 520px; background: #a5f3fc; top: -160px; right: -80px; }
.blob--2 { width: 420px; height: 420px; background: #bae6fd; bottom: -180px; left: -120px; opacity: .55; }

.hero__inner {
  position: relative; display: grid; grid-template-columns: 1.06fr .94fr;
  gap: clamp(32px, 5vw, 64px); align-items: center;
  padding-top: clamp(48px, 6vw, 78px); padding-bottom: clamp(60px, 7vw, 96px);
}
.hero__title { margin-bottom: .45em; max-width: 19ch; }
.hero__title em { color: var(--brand); }
.hero__lead { font-size: 1.12rem; color: var(--body); max-width: 52ch; margin-bottom: 30px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.hero__trust { display: flex; gap: 30px; flex-wrap: wrap; }
.hero__trust li { font-size: .87rem; color: var(--muted); display: flex; flex-direction: column; }
.hero__trust strong { font-size: 1.45rem; color: var(--ink); font-weight: 800; letter-spacing: -.02em; }

.hero__panel { position: relative; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.card--appt { padding: clamp(24px, 3vw, 34px); position: relative; z-index: 2; }
.card__title { font-size: 1.3rem; margin-bottom: 6px; }
.card__sub { font-size: .9rem; color: var(--muted); margin-bottom: 22px; }

.appt-form { display: grid; gap: 15px; }
.field { display: grid; gap: 7px; }
.field__label { font-size: .82rem; font-weight: 600; color: var(--ink); }
.opt { color: var(--muted); font-weight: 500; }
.field input, .field select {
  width: 100%; font: inherit; font-size: .95rem; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid #dbe4ec; border-radius: var(--radius-sm);
  background: #fff; transition: border-color .16s ease, box-shadow .16s ease;
}
.field input::placeholder { color: #9aa9bb; }
.field input:focus, .field select:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
.field.is-invalid input, .field.is-invalid select { border-color: var(--alert); box-shadow: 0 0 0 3px rgba(225, 29, 72, .15); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%2364748b' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 11px; padding-right: 36px; }
.form-note { font-size: .85rem; margin: 0; min-height: 1.2em; }
.form-note.is-ok { color: #047857; font-weight: 600; }
.form-note.is-error { color: var(--alert-dark); font-weight: 600; }
.form-note--light { color: #a9d6e4; }
/* The footer sits on a dark background, where the light-background status
   colours above are unreadable (#047857 scores 3.09:1 there). */
.form-note--light.is-ok { color: #6ee7b7; }
.form-note--light.is-error { color: #fca5a5; }

.float-card {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 11px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 11px 15px; box-shadow: var(--shadow);
}
.float-card strong { display: block; font-size: .86rem; color: var(--ink); }
.float-card small { font-size: .74rem; color: var(--muted); }
.float-card__icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--brand-50); color: var(--brand); flex: none; }
.float-card--verify { top: -18px; right: -14px; animation: floaty 6s ease-in-out infinite; }
.float-card--wait { bottom: -20px; left: -20px; animation: floaty 7s ease-in-out infinite .8s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- 5. Quick actions ---------- */
.quick { position: relative; z-index: 4; margin-top: -6px; padding-bottom: clamp(24px, 4vw, 48px); }
.quick__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.quick__card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow-sm); color: var(--body);
  transition: transform .2s ease, box-shadow .22s ease, border-color .2s ease;
  display: flex; flex-direction: column;
}
.quick__card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #cfe0e8; color: var(--body); }
.quick__icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; margin-bottom: 16px; }
.quick__icon--teal { background: var(--brand-50); color: var(--brand); }
.quick__icon--blue { background: #eff6ff; color: #2563eb; }
.quick__icon--red { background: #fff1f2; color: var(--alert); }
.quick__icon--green { background: #ecfdf5; color: #059669; }
.quick__card h3 { font-size: 1.06rem; margin-bottom: 6px; }
.quick__card p { font-size: .9rem; color: var(--muted); margin-bottom: 14px; }
.quick__more { margin-top: auto; font-size: .88rem; font-weight: 700; color: var(--brand); }
.quick__card--alert { border-color: #fecdd3; background: linear-gradient(180deg, #fff 60%, #fff7f8 100%); }
.quick__card--alert .quick__more { color: var(--alert-dark); }

/* ---------- 6. Departments & stats ---------- */
.spec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.spec {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; color: var(--body); text-align: left;
  transition: transform .2s ease, box-shadow .22s ease, border-color .2s ease, background .2s ease;
}
.spec:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand-100); background: #fcfeff; color: var(--body); }
.spec__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: var(--brand-50); color: var(--brand); margin-bottom: 15px; transition: background .2s ease, color .2s ease; }
.spec:hover .spec__icon { background: var(--brand); color: #fff; }
.spec h3 { font-size: 1.03rem; margin-bottom: 3px; }
.spec p { font-size: .86rem; color: var(--muted); margin: 0; }
.spec-more { margin: 40px 0 0; text-align: center; }

.stats { background: linear-gradient(120deg, var(--brand-900) 0%, var(--brand-700) 55%, var(--brand) 100%); color: #fff; padding: clamp(46px, 6vw, 68px) 0; position: relative; overflow: hidden; }
.stats::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 88% 20%, rgba(255, 255, 255, .14), transparent 42%); }
.stats__grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat strong { display: block; font-size: clamp(2.1rem, 3.6vw, 2.9rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.stat span { font-size: .92rem; color: #b9e2ee; }
.stat + .stat { border-left: 1px solid rgba(255, 255, 255, .16); }

/* ---------- 7. Doctors ---------- */
.doc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.doc {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .22s ease;
  display: flex; flex-direction: column;
}
.doc:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.doc__photo {
  position: relative; height: 190px; display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: 2.5rem; color: #fff;
  letter-spacing: .02em;
}
.doc__photo::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 70% 22%, rgba(255, 255, 255, .3), transparent 46%),
                    radial-gradient(circle at 18% 88%, rgba(255, 255, 255, .18), transparent 50%);
}
.doc__photo--a { background: linear-gradient(150deg, #0e7490, #155e75); }
.doc__photo--b { background: linear-gradient(150deg, #2563eb, #1e3a8a); }
.doc__photo--c { background: linear-gradient(150deg, #0d9488, #115e59); }
.doc__photo--d { background: linear-gradient(150deg, #6366f1, #4338ca); }
.doc__badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: rgba(255, 255, 255, .92); color: var(--brand-900);
  font-family: var(--font); font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  padding: 5px 11px; border-radius: 999px;
}
.doc__body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.doc__body h3 { font-size: 1.08rem; margin-bottom: 2px; }
.doc__role { font-size: .88rem; color: var(--brand-700); font-weight: 600; margin: 0 0 4px; }
.doc__meta { font-size: .82rem; color: var(--muted); margin: 0 0 16px; }
.doc__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 15px; border-top: 1px solid var(--line); }
.rating { font-size: .9rem; font-weight: 700; color: var(--ink); }
.rating small { color: var(--muted); font-weight: 500; }
.doc__foot .rating { color: var(--gold); }
.doc__foot .rating small { color: var(--muted); }

/* ---------- 8. Why us ---------- */
.why { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(34px, 5vw, 72px); align-items: center; }
.why__visual { position: relative; }
.why__img { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.why__badge {
  position: absolute; bottom: 26px; right: -18px; background: #fff;
  border-radius: var(--radius); padding: 16px 20px; box-shadow: var(--shadow);
  border: 1px solid var(--line); text-align: center;
}
.why__badge strong { display: block; font-size: 1.7rem; font-weight: 800; color: var(--brand); letter-spacing: -.03em; line-height: 1.1; }
.why__badge span { font-size: .78rem; color: var(--muted); }
.why__chip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 16px; font-size: .84rem; font-weight: 600; color: var(--ink);
  box-shadow: var(--shadow-sm); color: #047857;
}
.why__chip--1 { top: 30px; left: -22px; }
.why__chip--2 { top: 92px; left: -34px; }
.why__copy .section__lead { margin-bottom: 30px; }

.feature-list { display: grid; gap: 22px; }
.feature-list li { display: flex; gap: 16px; }
.feature__icon {
  display: grid; place-items: center; width: 44px; height: 44px; flex: none;
  border-radius: 13px; background: var(--brand-50); color: var(--brand);
  border: 1px solid var(--brand-100);
}
.feature-list h3 { font-size: 1.02rem; margin-bottom: 3px; }
.feature-list p { font-size: .92rem; color: var(--muted); margin: 0; }

/* ---------- 9. Packages, testimonials, news ---------- */
.plan-grid {
  display: grid;
  /* minmax(0, 1fr) lets the tracks actually shrink. Plain 1fr floors each track
     at its content's min-content width, which pushed the grid wider than its
     container between ~721px and ~837px. */
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px; align-items: start;
}
.plan {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 28px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .22s ease;
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.plan--featured { border-color: var(--brand); box-shadow: var(--shadow); }
.plan__flag {
  position: absolute; top: -13px; left: 50%; translate: -50% 0;
  background: var(--brand); color: #fff; font-size: .72rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px; white-space: nowrap;
}
.plan__name { font-size: 1.16rem; margin-bottom: 4px; }
.plan__desc { font-size: .9rem; color: var(--muted); margin-bottom: 18px; }
.plan__price { font-size: 3rem; font-weight: 800; color: var(--ink); letter-spacing: -.035em; line-height: 1; margin: 0 0 22px; }
.plan__price span { font-size: 1.3rem; vertical-align: super; color: var(--muted); font-weight: 600; margin-right: 2px; }
.plan__list { display: grid; gap: 11px; margin-bottom: 26px; }
.plan__list li { position: relative; padding-left: 28px; font-size: .92rem; }
.plan__list li::before {
  content: ""; position: absolute; left: 0; top: .42em; width: 16px; height: 16px; border-radius: 50%;
  background: var(--brand-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5 10.3 3.3 3.3L15 6.8' fill='none' stroke='%230e7490' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/11px no-repeat;
}

.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.quote {
  margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 14px; font-size: .95rem; }
.quote blockquote { margin: 0 0 22px; font-size: 1.01rem; color: var(--ink); line-height: 1.6; }
.quote figcaption { margin-top: auto; display: flex; align-items: center; gap: 13px; }
.quote figcaption strong { display: block; font-size: .92rem; color: var(--ink); }
.quote figcaption small { font-size: .78rem; color: var(--muted); }
.avatar {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  font-size: .84rem; font-weight: 700; color: #fff; flex: none;
}
.avatar--a { background: linear-gradient(140deg, #0e7490, #155e75); }
.avatar--b { background: linear-gradient(140deg, #2563eb, #1e40af); }
.avatar--c { background: linear-gradient(140deg, #0d9488, #115e59); }

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .22s ease;
}
.post:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post__img { height: 160px; position: relative; display: flex; align-items: flex-end; padding: 16px; }
.post__img::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 76% 26%, rgba(255, 255, 255, .3), transparent 48%); }
.post__img span {
  position: relative; z-index: 1; background: rgba(255, 255, 255, .93); color: var(--brand-900);
  font-size: .72rem; font-weight: 700; letter-spacing: .05em; padding: 5px 12px; border-radius: 999px;
}
.post__img--1 { background: linear-gradient(140deg, #0e7490, #0c4a6e); }
.post__img--2 { background: linear-gradient(140deg, #14b8a6, #0f766e); }
.post__img--3 { background: linear-gradient(140deg, #6366f1, #3730a3); }
.post__body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.post__date { font-size: .8rem; color: var(--muted); margin-bottom: 8px; }
.post h3 { font-size: 1.05rem; margin-bottom: 8px; }
.post h3 a { color: var(--ink); }
.post h3 a:hover { color: var(--brand); }
.post__body > p:last-child { font-size: .9rem; color: var(--muted); margin: 0; }

/* ---------- 10. CTA & footer ---------- */
.cta { background: linear-gradient(120deg, var(--brand-900), var(--brand-700) 60%, var(--brand)); color: #fff; }
.cta__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
  flex-wrap: wrap; padding-block: clamp(48px, 6vw, 72px);
}
.cta h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 6px; }
.cta p { color: #c4e6ef; margin: 0; max-width: 46ch; }
.cta__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.footer { background: #0b1f26; color: #a7c4cd; font-size: .92rem; padding-top: clamp(52px, 6vw, 76px); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.4fr; gap: 34px; padding-bottom: 48px; }
.footer__title, .footer h4 { color: #fff; font-size: .82rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; margin: 0 0 18px; }
.footer__col li + li { margin-top: 10px; }
.footer a { color: #a7c4cd; }
.footer a:hover { color: #fff; }
.footer__brand p { max-width: 34ch; }
.footer__addr { line-height: 1.8; }
.footer__brand .brand { margin-bottom: 16px; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px;
  background: rgba(255, 255, 255, .07); color: #cfe6ec;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.socials a:hover { background: var(--brand); color: #fff; transform: translateY(-2px); }

.subscribe { display: flex; gap: 9px; }
.subscribe input {
  flex: 1; min-width: 0; font: inherit; font-size: .9rem; color: #fff;
  background: rgba(255, 255, 255, .07); border: 1.5px solid rgba(255, 255, 255, .16);
  border-radius: 999px; padding: 12px 18px;
}
.subscribe input::placeholder { color: #86a6b1; }
.subscribe input:focus { outline: none; border-color: var(--brand-100); box-shadow: 0 0 0 3px rgba(103, 232, 249, .25); }

.footer__bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  flex-wrap: wrap; padding-block: 22px; border-top: 1px solid rgba(255, 255, 255, .1);
}
.footer__bottom p { margin: 0; font-size: .86rem; }
.footer__bottom ul { display: flex; gap: 20px; font-size: .86rem; }
.footer__disclaimer { margin: 0; text-align: center; font-size: .78rem; color: #6d8b96; padding: 0 22px 26px; }

.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: var(--brand); color: #fff; display: grid; place-items: center;
  box-shadow: var(--shadow); transition: background .18s ease, transform .18s ease;
}
.to-top:hover { background: var(--brand-700); transform: translateY(-3px); }
/* The [hidden] attribute must win over the display:grid above, otherwise the
   button is painted even at the top of the page. */
.to-top[hidden] { display: none; }

/* ---------- 11. Motion & responsive ---------- */

/* Reveal on scroll.
   Content is visible by default. The pre-animation state is opt-in: it applies
   only under .reveal-enabled, which script.js sets on <html> once it has
   confirmed it can reveal the elements again. A missing, blocked, broken or
   disabled script therefore leaves the page readable instead of blank.

   The transition itself sits behind a second class (.reveal-ready) that
   script.js adds only after the hidden state has been committed. Applying both
   at once would animate the initial hide and visibly fade the page out on
   load. */
.reveal { opacity: 1; transform: none; }

.reveal-enabled .reveal {
  opacity: 0;
  transform: translateY(22px);
}
.reveal-ready .reveal {
  transition: opacity .6s ease, transform .6s cubic-bezier(.22, .61, .36, 1);
}
.reveal-enabled .reveal.is-visible { opacity: 1; transform: none; }

/* The header row (brand + nav + phone + CTA) needs ~1262px of content, but
   .wrap caps at 1200px, so the row only fits on screen from ~1385px up. Below
   that the phone is the item that goes — it duplicates the number that stays
   visible in the top strip at every width. */
@media (max-width: 1400px) {
  .header__phone { display: none; }
}

@media (max-width: 1240px) {
  .nav__link { padding: 10px 11px; font-size: .92rem; }
}

@media (max-width: 1080px) {
  .nav, .header__cta { display: none; }
  .burger { display: flex; margin-left: auto; }
  .site-header { position: sticky; }

  /* Mobile nav panel */
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; display: block;
    background: #fff; border-bottom: 1px solid var(--line);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    padding: 14px 22px 28px; box-shadow: var(--shadow);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .nav.is-open { display: block; opacity: 1; visibility: visible; transform: none; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav__link { width: 100%; justify-content: space-between; padding: 14px 12px; font-size: 1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .megamenu {
    position: static; translate: none; transform: none; box-shadow: none; border: 0;
    min-width: 0; grid-template-columns: 1fr; gap: 16px; padding: 8px 12px 18px;
    background: var(--surface); border-radius: var(--radius-sm);
    display: none; opacity: 1; visibility: visible;
  }
  .nav__item.is-open > .megamenu { display: grid; }
  .nav__item.is-open .megamenu { animation: none; }

  .hero__inner { grid-template-columns: 1fr; }
  .hero__title { max-width: 20ch; }
  .quick__grid, .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .doc-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .why { grid-template-columns: 1fr; }
  .why__visual { max-width: 520px; }
  .footer__grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer__news { grid-column: 1 / -1; }
}

/* Tablet band: three package columns still fit, but each card has to be able to
   shrink. Tighten the card padding and let the CTA label wrap — a nowrap
   "Choose Comprehensive" is wider than a third of the grid at these widths. */
@media (max-width: 900px) {
  .plan { padding: 24px 18px; }
  .plan .btn { white-space: normal; padding: 14px 12px; line-height: 1.25; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .topstrip__links { display: none; }
  .hero__panel { margin-top: 8px; }
  .float-card--verify { top: -14px; right: 0; }
  .float-card--wait { bottom: -16px; left: 0; }
  .quick__grid, .spec-grid, .doc-grid, .news-grid, .plan-grid, .quotes { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 30px 18px; }
  .stat + .stat { border-left: 0; }
  .stat:nth-child(even) { border-left: 1px solid rgba(255, 255, 255, .16); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .cta__actions .btn { flex: 1 1 auto; }
  .why__chip--1 { left: 0; }
  .why__chip--2 { left: -8px; top: 84px; }
  .why__badge { right: 0; bottom: 16px; }
  .hero__trust { gap: 20px; }
}

@media (max-width: 460px) {
  .wrap { padding-inline: 18px; }
  .hero__actions .btn { width: 100%; }
  .footer__grid { grid-template-columns: 1fr; }
  .subscribe { flex-direction: column; }
  .subscribe .btn { width: 100%; }
  .footer__bottom ul { gap: 14px; }
}

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

@media print {
  .topstrip, .site-header, .to-top, .cta, .subscribe, .float-card { display: none !important; }
  body { color: #000; }
  /* Printed pages are not scrolled, so never hide anything on paper. */
  .reveal, .reveal-enabled .reveal { opacity: 1 !important; transform: none !important; }
}
