/* =========================================================
   Liberty Medical Solutions - site styles
   Tokens (from the design system), base, layout, header/nav,
   sections, buttons, cards, home, products, patients/forms,
   blog, footer. One file, plain CSS, mobile breakpoints at
   1024px and 640px.
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  /* brand green scale */
  --green-50: #eef7f3; --green-100: #d7ece2; --green-200: #b0d9c6; --green-300: #85c4a9; --green-400: #5eae8d;
  --green-500: #44997c; --green-600: #367d64; --green-700: #2c6551; --green-800: #234f41; --green-900: #1c3f34;
  /* neutrals */
  --gray-50: #f7f7f7; --gray-100: #ececec; --gray-200: #d9d9d9; --gray-300: #c2c2c2; --gray-400: #a3a3a3;
  --gray-500: #808080; --gray-600: #5c5c5c; --gray-700: #454545; --gray-800: #333333; --gray-900: #222222;
  --white: #ffffff;
  /* semantic */
  --error-500: #c0472e; --error-100: #f7e2dd;
  --warning-500: #d99a2b; --warning-100: #faecd3;
  --info-500: #3b7a99; --info-100: #dcebf0;

  /* Buttons, eyebrows and bands use green-600 (4.9:1 on white); green-500
     is the logo green and falls short of AA for text. */
  --accent: var(--green-600);
  --accent-hover: var(--green-700);
  --accent-active: var(--green-800);
  --accent-soft: var(--green-50);
  --accent-on-dark: var(--green-300);

  --bg: var(--white);
  --surface: var(--white);
  --surface-muted: var(--gray-50);
  --surface-dark: var(--green-900);
  --text: var(--gray-900);
  --text-soft: var(--gray-700);
  --text-muted: var(--gray-600);
  --border: var(--gray-200);
  --border-strong: var(--gray-300);
  --link: var(--green-700);
  --link-hover: var(--green-800);

  --font-heading: "Lora", Georgia, "Times New Roman", serif;
  --font-body: "Nunito Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radius-sm: 6px; --radius-md: 10px; --radius-lg: 16px; --radius-xl: 24px; --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(34, 34, 34, 0.08);
  --shadow-md: 0 4px 16px rgba(34, 34, 34, 0.08), 0 1px 3px rgba(34, 34, 34, 0.06);
  --shadow-lg: 0 12px 32px rgba(34, 34, 34, 0.12), 0 2px 6px rgba(34, 34, 34, 0.06);
  --shadow-xl: 0 18px 48px rgba(34, 34, 34, 0.16);

  --container-max: 1350px;
  --container-pad-desktop: 32px;
  --container-pad-mobile: 20px;

  color-scheme: light;
}

/* EmDash ships scoped component styles that read these names. */
:root {
  --color-border: var(--border);
  --color-surface: var(--surface-muted);
  --color-bg-subtle: var(--surface-muted);
  --color-muted: var(--text-muted);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; transition: color 150ms ease; }
a:hover { color: var(--link-hover); text-decoration: underline; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0 0 16px; font-family: var(--font-heading); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; color: var(--text); }
h1 { font-size: clamp(2.25rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.3125rem; line-height: 1.3; }
h4 { font-size: 1.0625rem; font-family: var(--font-body); font-weight: 700; }
p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0 0 16px; padding-left: 24px; }
li { margin-bottom: 6px; }
strong { font-weight: 700; }
:focus-visible { outline: 3px solid var(--green-400); outline-offset: 3px; border-radius: 4px; }
.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; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 999; background: var(--accent); color: #fff; padding: 10px 14px; border-radius: var(--radius-sm); font-weight: 700; }
.skip-link:focus { top: 12px; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }

/* ---------- Container and sections ---------- */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--container-pad-desktop); }
@media (max-width: 1024px) { .container { padding: 0 24px; } }
@media (max-width: 640px)  { .container { padding: 0 var(--container-pad-mobile); } }
.container-narrow { max-width: 720px; margin: 0 auto; }
.container-prose { max-width: 820px; margin: 0 auto; }

.section { padding: 88px 0; }
@media (max-width: 1024px) { .section { padding: 64px 0; } }
@media (max-width: 640px)  { .section { padding: 48px 0; } }
.section-gray { background: var(--surface-muted); }
.section-soft { background: var(--green-50); }
.section-dark { background: var(--surface-dark); color: #fff; }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-dark p { color: rgba(255, 255, 255, 0.9); }
.section-dark a:not(.btn) { color: #fff; }
.section-accent { background: var(--accent); color: #fff; }
.section-accent h1, .section-accent h2, .section-accent h3 { color: #fff; }
.section-accent p { color: rgba(255, 255, 255, 0.94); }
.section-accent a:not(.btn) { color: #fff; }

.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--accent); margin-bottom: 16px;
}
.section-dark .section-label, .section-accent .section-label { color: var(--accent-on-dark); }
.section-label::before { content: ""; display: block; flex: 0 0 40px; width: 40px; height: 28px; transform: translateY(-4px); background: currentColor; opacity: .8; -webkit-mask: url('/images/brand/crown-rays.svg') center / contain no-repeat; mask: url('/images/brand/crown-rays.svg') center / contain no-repeat; }
.section-accent .section-label { color: #fff; }
.section-header { max-width: 760px; margin-bottom: 48px; }
.section-header.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-header p { color: var(--text-soft); }
.section-dark .section-header p { color: rgba(255, 255, 255, 0.85); }
.lead { font-size: 1.1875rem; line-height: 1.6; color: var(--text-soft); }
@media (max-width: 640px) { .section-header { margin-bottom: 32px; } .lead { font-size: 1.0625rem; } }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); }
.reveal.in-view { animation: ds-reveal-up 700ms cubic-bezier(0.4, 0, 0.2, 1) var(--reveal-delay, 0ms) forwards; }
@keyframes ds-reveal-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px;
  border-radius: var(--radius-pill); border: 2px solid var(--accent);
  background: var(--accent); color: #fff;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none;
  white-space: nowrap;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; text-decoration: none; }
.btn:active { background: var(--accent-active); border-color: var(--accent-active); }
.btn svg { flex: 0 0 auto; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-outline { background: transparent; color: var(--green-700); border-color: var(--green-600); }
.btn-outline:hover { background: var(--green-50); color: var(--green-800); border-color: var(--green-600); }
.btn-on-dark { background: #fff; border-color: #fff; color: var(--green-800); }
.btn-on-dark:hover { background: var(--green-50); border-color: var(--green-50); color: var(--green-900); }
.btn-outline-light { background: transparent; border-color: rgba(255, 255, 255, 0.7); color: #fff; }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; color: #fff; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--green-700); padding-left: 12px; padding-right: 12px; }
.btn-ghost:hover { background: var(--green-50); border-color: transparent; color: var(--green-800); }
.btn-lg { min-height: 56px; padding: 14px 32px; font-size: 1.0625rem; }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 0.9375rem; }
.btn-block { display: flex; width: 100%; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--link); }
.text-link svg { transition: transform 150ms ease; }
.text-link:hover svg { transform: translateX(3px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }
@media (max-width: 640px) { .actions .btn { width: 100%; } .btn { white-space: normal; text-align: center; } }

/* ---------- Header / nav ---------- */
.site-header { position: sticky; top: 0; z-index: 200; }
.nav { background: var(--surface); border-bottom: 1px solid var(--border); }
.nav-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; height: 104px; }
.nav-logo { display: inline-flex; align-items: center; }
.nav-logo img { width: 200px; height: auto; }
.nav-links { display: flex; align-items: stretch; height: 100%; justify-self: end; }
.nav-item { position: relative; height: 100%; }
.nav-item > a {
  display: flex; align-items: center; gap: 6px; height: 100%; padding: 0 14px;
  font-weight: 700; font-size: 0.9375rem; color: var(--text); white-space: nowrap;
}
.nav-item > a:hover, .nav-item > a[aria-current="page"] { color: var(--green-700); text-decoration: none; }
.nav-item > a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--accent); }
.nav-chevron { transition: transform 200ms ease; }
.nav-item:hover > a .nav-chevron, .nav-item:focus-within > a .nav-chevron { transform: rotate(180deg); }

.dropdown {
  display: none; position: absolute; top: 100%; left: 0; min-width: 260px; padding: 8px;
  background: var(--surface); border-radius: 0 0 var(--radius-lg) var(--radius-lg); box-shadow: var(--shadow-xl); z-index: 300;
}
.nav-item:hover .dropdown, .nav-item:focus-within .dropdown { display: block; }
.dropdown a { display: block; padding: 11px 14px; border-radius: var(--radius-sm); color: var(--text-soft); font-weight: 600; font-size: 0.9375rem; }
.dropdown a:hover, .dropdown a[aria-current="page"] { background: var(--green-50); color: var(--green-800); text-decoration: none; }
.dropdown-group { position: relative; }
.dropdown-group-link { display: flex !important; align-items: center; justify-content: space-between; gap: 20px; }
.dropdown-group-link svg { flex: 0 0 auto; }
.dropdown-group-toggle { display: none; }
.flyout {
  display: none; position: absolute; top: -8px; left: calc(100% - 8px); min-width: 290px;
  padding: 8px; background: var(--surface); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl); z-index: 310;
}
.dropdown-group:hover .flyout, .dropdown-group:focus-within .flyout { display: block; }

.nav-actions { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 10px; }
.nav-phone { min-height: 44px; padding: 8px 16px; }
.nav-phone-short { display: none; }
.nav-cta { min-height: 44px; padding: 8px 18px; }
@media (max-width: 1240px) {
  .nav-phone-full { display: none; }
  .nav-phone-short { display: inline; }
}
@media (max-width: 1100px) { .nav-item > a { padding: 0 10px; font-size: 0.9rem; } }

.nav-burger { display: none; }
.nav-backdrop { display: none; }
.nav-panel-header, .nav-panel-footer { display: none; }

/* Mobile: slide-out panel */
@media (max-width: 1024px) {
  .nav-inner { grid-template-columns: auto 1fr auto; height: 88px; gap: 12px; }
  .nav-logo img { width: clamp(120px, 38vw, 160px); }
  .nav-cta { display: none; }
  .nav-phone { padding: 8px 12px; }
  .nav-phone-full { display: none; }
  .nav-phone-short { display: inline; }

  .nav-burger {
    display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
    width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--accent); background: var(--accent); padding: 0;
  }
  .nav-burger span { display: block; width: 20px; height: 2px; background: var(--white); border-radius: 2px; transition: transform 220ms ease, opacity 220ms ease; }
  body.nav-open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-burger span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav-links {
    position: fixed; top: 0; right: 0; left: auto;
    width: min(86vw, 380px); height: 100vh; height: 100dvh;
    flex-direction: column; align-items: stretch;
    background: var(--surface); color: var(--text);
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.35);
    transform: translateX(100%); visibility: hidden;
    transition: transform 280ms cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 280ms;
    z-index: 250; overflow-y: auto; overscroll-behavior: contain;
  }
  body.nav-open .nav-links { transform: translateX(0); visibility: visible; transition: transform 280ms cubic-bezier(0.4, 0, 0.2, 1); }
  .nav-backdrop { position: fixed; inset: 0; background: rgba(28, 63, 52, 0.55); z-index: 240; }
  body.nav-open .nav-backdrop { display: block; }
  body.nav-open { overflow: hidden; }

  .nav-panel-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 14px 20px; border-bottom: 1px solid var(--border); }
  .nav-panel-logo-link img { width: 160px; }
  .nav-panel-close { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: var(--text); }
  .nav-panel-close:hover { background: var(--green-50); color: var(--green-700); }
  .nav-panel-footer { display: flex; flex-direction: column; gap: 10px; margin-top: auto; padding: 20px 24px 28px; border-top: 1px solid var(--border); }
  .nav-panel-footer .btn { width: 100%; }

  .nav-item { height: auto; position: static; border-bottom: 1px solid var(--border); }
  .nav-item > a { justify-content: space-between; padding: 18px 24px; height: auto; font-size: 1.0625rem; white-space: normal; }
  .nav-item > a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--accent); }
  .nav-item:hover > a .nav-chevron { transform: none; }
  .nav-item.open > a .nav-chevron { transform: rotate(180deg); }
  .dropdown { display: none; position: static; box-shadow: none; padding: 4px 0 12px; border-radius: 0; min-width: 0; background: var(--gray-50); }
  .nav-item:hover .dropdown, .nav-item:focus-within .dropdown { display: none; }
  .nav-item.open .dropdown { display: block; }
  .dropdown a { padding: 12px 24px 12px 40px; border-radius: 0; }
  .dropdown-group { display: grid; grid-template-columns: 1fr auto; align-items: center; }
  .dropdown-group-link svg { display: none; }
  .dropdown-group-toggle {
    display: grid; place-items: center; width: 44px; height: 44px; margin-right: 16px;
    border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--green-800);
  }
  .dropdown-group-toggle svg { transition: transform 200ms ease; }
  .dropdown-group.open .dropdown-group-toggle svg { transform: rotate(180deg); }
  .flyout { display: none; position: static; grid-column: 1 / -1; min-width: 0; padding: 4px 0 8px; border-radius: 0; box-shadow: none; background: var(--green-50); }
  .dropdown-group:hover .flyout, .dropdown-group:focus-within .flyout { display: none; }
  .dropdown-group.open .flyout { display: block; }
  .flyout a { padding-left: 56px; }
}

/* ---------- Home hero ---------- */
.hero { position: relative; isolation: isolate; background: #e5edee; padding: 128px 0; overflow: hidden; }
.hero-background { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(229,237,238,.6), transparent 60%); pointer-events: none; }
.hero-grid { display: block; }
.hero-text { width: 49%; max-width: 640px; }
.hero h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 20px; }
.hero .lead { max-width: 600px; margin-bottom: 32px; }
.hero-note { margin-top: 20px; font-size: 0.9375rem; color: var(--text-soft); }
.hero-note a { font-weight: 700; }
@media (max-width: 1024px) {
  .hero { padding: 80px 0; text-align: center; }
  .hero-text { width: 100%; max-width: 640px; margin-inline: auto; }
  .hero .lead { margin-inline: auto; }
  .hero .actions { justify-content: center; }
  .hero::after { background: rgba(229, 237, 238, .9); }
  .hero-background { object-position: right center; }
}
@media (max-width: 640px) {
  .hero { padding: 64px 0; }
  .hero h1 br { display: none; }
}

/* ---------- Home benefits ---------- */
.home-benefits { padding: 32px 0; color: #fff; background: radial-gradient(ellipse at 50% 100%, #245654 0%, #123b3b 55%, #102f30 100%); }
.home-benefits-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; list-style: none; margin: 0; padding: 0; }
.home-benefits-grid li { display: flex; align-items: center; gap: 16px; }
.home-benefits-grid svg { flex: 0 0 44px; color: #94d4cc; stroke-width: 1.5; }
.home-benefits-grid h2 { font-family: var(--font-body); font-size: .9375rem; line-height: 1.4; font-weight: 800; color: #fff; margin: 0 0 4px; }
.home-benefits-grid p { font-size: .8125rem; line-height: 1.5; margin: 0; color: #e4efed; }
@media (max-width: 1024px) {
  .home-benefits-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; }
  .home-benefits-grid li { flex-direction: column; text-align: center; gap: 12px; margin: 0; }
}
@media (max-width: 640px) {
  .home-benefits-grid { gap: 24px 16px; }
}

/* ---------- Home product categories ---------- */
.home-categories { background: #e5edee; border-top: 3px solid #fff; border-bottom: 3px solid #fff; }
.home-category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.home-category { isolation: isolate; display: grid; grid-template-rows: auto 1fr auto; justify-items: center; gap: 24px; padding: 32px 24px; background: #e5edee; color: var(--text); text-align: center; border-right: 3px solid #fff; }
.home-category:first-child { border-left: 3px solid #fff; }
.home-category:hover { text-decoration: none; color: var(--text); background: #edf2f3; }
.home-category-copy { width: 100%; max-width: 320px; min-height: 80px; }
.home-category h2 { font-family: var(--font-body); font-size: 1.125rem; font-weight: 800; text-transform: uppercase; line-height: 1.3; margin-bottom: 8px; }
.home-category p { font-size: .9375rem; line-height: 1.5; margin: 0; }
.home-category img { align-self: center; width: 100%; max-width: 360px; height: auto; aspect-ratio: 4 / 3; object-fit: contain; mix-blend-mode: multiply; }
.home-category img.home-category-image-cervical { transform: scale(1.2); }
.home-category-link { padding: 8px 16px; font-size: .75rem; min-height: 40px; text-transform: uppercase; letter-spacing: .03em; }
.home-category:hover .home-category-link { background: var(--accent-hover); }
@media (min-width: 641px) and (max-width: 1024px) {
  .home-category { padding: 24px 16px; gap: 20px; }
  .home-category-copy { min-height: 104px; }
  .home-category-link { padding: 8px 12px; font-size: .6875rem; }
}
@media (max-width: 640px) {
  .home-category-grid { grid-template-columns: 1fr; }
  .home-category, .home-category:first-child { border: 0; border-bottom: 3px solid #fff; padding: 32px 16px; }
  .home-category:last-child { border-bottom: 0; }
  .home-category-copy { min-height: 0; }
}

/* ---------- Split (text + image) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); }
.split-reverse .split-image { order: -1; }
.home-care-image img { aspect-ratio: 1; }
.split-text .section-label { margin-bottom: 12px; }
.split-text h2 { margin-bottom: 20px; }
.split-text p { color: var(--text-soft); }
.split-text .actions { margin-top: 28px; }
@media (max-width: 1024px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split-image { order: -1; }
  .split-image img { position: static; }
}

/* ---------- Cards and grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 1024px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; gap: 16px; } }

.card {
  background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  padding: 32px; display: flex; flex-direction: column; gap: 12px;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card h3 { margin: 0; }
.card p { margin: 0; color: var(--text-soft); font-size: 0.9875rem; }
.card-icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 14px; background: var(--green-100); color: var(--green-700); margin-bottom: 4px; }
.card-icon svg { width: 26px; height: 26px; }
.card .text-link { margin-top: auto; padding-top: 8px; }
a.card { color: inherit; }
a.card:hover { text-decoration: none; }
.section-dark .card { background: rgba(255, 255, 255, 0.06); box-shadow: none; border: 1px solid rgba(255, 255, 255, 0.12); }
.section-dark .card p { color: rgba(255, 255, 255, 0.85); }
.section-dark .card-icon { background: rgba(255, 255, 255, 0.12); color: var(--accent-on-dark); }
@media (max-width: 640px) { .card { padding: 24px; } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; list-style: none; padding: 0; margin: 0; }
.step { position: relative; text-align: center; padding: 0 16px; }
.process-timeline { position: relative; --progress: 0; }
.timeline-track { position: absolute; height: 4px; width: 4px; border-radius: 4px; overflow: hidden; background: rgba(133,196,169,.25); }
.timeline-fill { position: absolute; inset: 0; background: var(--accent-on-dark); clip-path: inset(0 calc(100% - var(--progress) * 100%) 0 0); }
.step-num { box-shadow: 0 0 0 8px var(--surface-dark); transition: background-color 220ms, color 220ms; }
.step.is-active .step-num { background: var(--accent-on-dark); color: var(--surface-dark); }
.step-num { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border: 2px solid var(--accent-on-dark); border-radius: 50%; background: var(--surface-dark); font-family: var(--font-heading); font-size: 1.75rem; font-weight: 600; line-height: 1; color: var(--accent-on-dark); margin-bottom: 24px; }
.step h3 { margin-bottom: 12px; }
.step p { margin: 0 auto; max-width: 340px; color: rgba(255, 255, 255, 0.85); }
@media (max-width: 1024px) {
  .process-timeline { max-width: 560px; margin-inline: auto; }
  .timeline-fill { clip-path: inset(0 0 calc(100% - var(--progress) * 100%) 0); }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .step { text-align: left; padding: 0 0 0 72px; min-height: 48px; }
  .step-num { position: absolute; top: 0; left: 0; width: 48px; height: 48px; font-size: 1.5rem; margin: 0; }
  .step p { max-width: none; }
}

/* Product cards */
.product-card { padding: 0; gap: 0; overflow: hidden; }
.product-card-media { background: var(--white); padding: 20px; border-bottom: 1px solid var(--border); }
.product-card-media img { width: 100%; max-width: 360px; margin: 0 auto; aspect-ratio: 4 / 3; object-fit: contain; }
.product-card-body { background: var(--gray-50); padding: 24px 28px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-card-body .section-label { margin-bottom: 0; font-size: 12px; }
.product-card-body h3 { font-size: 1.1875rem; }
.product-card-body p { font-size: 0.9375rem; }

/* Category cards (home) */
.category-card .product-card-media { background: var(--green-50); }

/* Testimonials */
.testimonial { padding: 32px; border-radius: var(--radius-lg); background: var(--green-50); display: flex; flex-direction: column; gap: 16px; }
.testimonial-quote-icon { color: var(--green-300); }
.testimonial-quote-icon svg { width: 32px; height: 32px; }
.testimonial blockquote { margin: 0; font-size: 1.0625rem; line-height: 1.6; color: var(--text); }
.testimonial blockquote p { margin: 0; color: var(--text); }
.testimonial-name { font-weight: 800; color: var(--green-800); font-size: 0.9375rem; }
.testimonial-stars { display: flex; gap: 2px; color: var(--warning-500); }
.testimonial-stars svg { width: 18px; height: 18px; fill: currentColor; }
.testimonial-featured { background: var(--surface); box-shadow: var(--shadow-md); }

/* Patient band */
.band-inner { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.band-links { display: flex; flex-direction: column; gap: 12px; }
.band-links a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 20px; border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.14); color: #fff; font-weight: 700;
  transition: background-color 150ms ease, transform 150ms ease;
}
.band-links a:hover { background: rgba(255, 255, 255, 0.24); text-decoration: none; transform: translateX(4px); }
.patient-band-light { background: var(--surface); }
.patient-band-light .band-links a { background: var(--green-50); color: var(--green-800); border: 1px solid var(--green-200); }
.patient-band-light .band-links a:hover { background: var(--green-100); }
@media (max-width: 1024px) { .band-inner { grid-template-columns: 1fr; gap: 32px; } }

/* CTA band */
.cta-band { text-align: center; }
.cta-band-inner { max-width: 760px; margin: 0 auto; }
.cta-band .actions { justify-content: center; margin-top: 32px; }
.cta-band-light { position: relative; isolation: isolate; overflow: hidden; color: var(--text); background: radial-gradient(ellipse at 12% 10%, var(--green-200), transparent 52%), radial-gradient(ellipse at 90% 100%, var(--green-100), transparent 55%), linear-gradient(120deg, var(--green-50), #e1f0e8 55%, #f2f8e9); }
.cta-band-light::before, .cta-band-light::after { content: ""; position: absolute; z-index: -1; width: 480px; height: 480px; border: 1px solid rgba(54,125,100,.16); border-radius: 50%; pointer-events: none; box-shadow: 0 0 0 40px rgba(255,255,255,.16), 0 0 0 80px rgba(255,255,255,.12); }
.cta-band-light::before { left: -320px; top: -240px; }
.cta-band-light::after { right: -320px; bottom: -240px; }
.cta-band-light p { color: var(--text-soft); }

/* ---------- Inner page hero ---------- */
.page-hero-inner { max-width: 820px; }
.page-hero h1 { margin-bottom: 16px; }
.page-hero .lead { margin-bottom: 0; }
.page-hero .actions { margin-top: 32px; }
.hero-support { margin-top: 24px; color: rgba(255, 255, 255, .94); }
.hero-support a { color: inherit; text-decoration: underline; }
.product-manual { margin-top: 32px; }
.page-hero-background { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; min-height: 520px; padding: 40px 0 80px; background: var(--green-900); }
.page-hero-background::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(18, 56, 45, .96) 0%, rgba(18, 56, 45, .88) 39%, rgba(18, 56, 45, .35) 74%, rgba(18, 56, 45, .12) 100%); pointer-events: none; }
.page-hero-background-media, .page-hero-background-image { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.page-hero-background-media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-background-right :is(.page-hero-background-image, .page-hero-background-media) { left: auto; width: 62%; -webkit-mask-image: linear-gradient(90deg, transparent, #000 24%); mask-image: linear-gradient(90deg, transparent, #000 24%); }
.page-hero-background .container { width: 100%; }
.page-hero-background .page-hero-inner { max-width: 680px; margin: 0; }
.page-hero-background h1 { color: #fff; font-size: clamp(2.75rem, 5vw, 4.25rem); }
.page-hero-background .lead { max-width: 580px; color: rgba(255, 255, 255, .94); font-size: clamp(1.125rem, 1.7vw, 1.375rem); }
.page-hero-background .section-label { color: var(--green-200); }
.page-hero-background .text-muted { color: rgba(255, 255, 255, .82); margin-top: 16px; }
.page-hero-background .breadcrumb a, .page-hero-background .breadcrumb [aria-current="page"] { color: rgba(255, 255, 255, .88); }
.page-hero-background .breadcrumb a:hover { color: #fff; }
.page-hero-background .breadcrumb svg { color: var(--green-200); }
.breadcrumb { margin-bottom: 32px; font-size: 0.875rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 0; padding: 0; }
.breadcrumb li { display: inline-flex; align-items: center; gap: 6px; margin: 0; color: var(--text-muted); }
.breadcrumb a { color: var(--text-soft); font-weight: 600; }
.breadcrumb svg { color: var(--gray-400); }
.breadcrumb [aria-current="page"] { color: var(--text-muted); }
@media (max-width: 640px) { .page-hero { padding: 24px 0 48px; } .breadcrumb { margin-bottom: 24px; } }
@media (max-width: 1024px) {
  .page-hero-background { min-height: 480px; padding: 40px 0 64px; }
  .page-hero-background::after { background: rgba(18, 56, 45, .72); }
  .page-hero-background .page-hero-inner { margin-inline: auto; }
  .page-hero-background .lead { margin-inline: auto; }
  .page-hero-background-image { object-position: 72% center; }
  .page-hero-background-right :is(.page-hero-background-image, .page-hero-background-media) { width: 100%; -webkit-mask-image: none; mask-image: none; }
}
@media (max-width: 640px) {
  .page-hero-background { min-height: 0; padding: 32px 0 64px; }
  .page-hero-background h1 { font-size: clamp(2.5rem, 11vw, 3.25rem); }
}

/* ---------- Product pages ---------- */
.product-detail-section { scroll-margin-top: 104px; }
.product-detail { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 64px; align-items: start; }
.product-media { background: var(--gray-50); border-radius: var(--radius-xl); padding: 40px; box-shadow: var(--shadow-md); position: sticky; top: 116px; }
.product-media img { width: 100%; max-width: 480px; margin: 0 auto; aspect-ratio: 4 / 3; object-fit: contain; }
.product-media-gallery { position: static; padding: 0; background: none; border-radius: 0; box-shadow: none; }
.product-media-stack { display: grid; justify-items: center; gap: 40px; }
.product-media-stack .product-media-kit,
.product-media-stack .product-media-device {
  width: 100%; max-width: 420px; aspect-ratio: 1; height: auto; object-fit: contain;
  padding: 28px; background: var(--white); border: 1px solid var(--green-100);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
}
.product-info h2 { font-size: 1.5rem; margin-top: 32px; }
.product-info-branded h2 { color: var(--green-700); }
.product-info h2:first-child { margin-top: 0; }
.product-info p { color: var(--text-soft); }
.check-list { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 10px; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; margin: 0; }
.check-list svg { flex: 0 0 auto; width: 22px; height: 22px; color: var(--green-600); margin-top: 2px; }
.spec-list { display: grid; grid-template-columns: max-content 1fr; gap: 12px 24px; margin: 0; padding: 20px 24px; border-radius: var(--radius-lg); background: var(--gray-50); }
.spec-list dt { font-weight: 800; color: var(--green-800); font-size: 0.9375rem; }
.spec-list dd { margin: 0; color: var(--text-soft); font-size: 0.9375rem; }
.size-chart-wrap { border-radius: var(--radius-lg); overflow: hidden; }
.size-chart { width: 100%; border-collapse: collapse; background: var(--gray-50); font-size: 0.9375rem; }
.size-chart th, .size-chart td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); }
.size-chart thead th { background: var(--green-100); color: var(--green-800); font-weight: 800; }
.size-chart tbody th { color: var(--text); font-weight: 800; }
.size-chart tbody tr:last-child th, .size-chart tbody tr:last-child td { border-bottom: 0; }
.callout { display: flex; gap: 14px; padding: 18px 20px; border-radius: var(--radius-md); background: var(--info-100); border-left: 4px solid var(--info-500); color: #1f4f63; font-size: 0.9375rem; }
.callout svg { flex: 0 0 auto; margin-top: 2px; }
.callout-success { background: var(--green-100); border-left-color: var(--green-500); color: var(--green-900); }
.callout-warning { background: var(--warning-100); border-left-color: var(--warning-500); color: #7a5312; }
.callout p { margin: 0; color: inherit; }
.callout a { color: inherit; font-weight: 700; }
@media (max-width: 1024px) {
  .product-detail { grid-template-columns: 1fr; gap: 32px; }
  .product-media { position: static; padding: 24px; }
  .product-media-gallery { padding: 0; max-width: 600px; margin-inline: auto; }
  .product-media-stack .product-media-kit,
  .product-media-stack .product-media-device { max-width: 460px; }
  .spec-list { grid-template-columns: 1fr; gap: 4px 0; }
  .spec-list dd { margin-bottom: 10px; }
}

/* ---------- Forms ---------- */
.form-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.form-card { background: var(--surface); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); padding: 40px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field-full { grid-column: 1 / -1; }
.form-field label, .form-legend { font-size: 0.9375rem; font-weight: 700; color: var(--text); }
.form-field label .req, .form-legend .req { color: var(--error-500); margin-left: 2px; }
.form-field input, .form-field select, .form-field textarea {
  font-family: var(--font-body); font-size: 1rem; color: var(--text);
  padding: 12px 14px; border-radius: var(--radius-md); border: 1.5px solid var(--border-strong);
  background: var(--surface); width: 100%; min-height: 48px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.form-field textarea { min-height: 140px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--green-100); }
.form-field small, .form-hint { font-size: 0.8125rem; color: var(--text-muted); }
.form-fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.form-fieldset legend { padding: 0; margin-bottom: 4px; }
.check-group { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.check-group label { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.9375rem; cursor: pointer; }
.check-group input { width: 20px; height: 20px; accent-color: var(--accent); margin: 0; }
.form-submit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 28px; }
.form-submit-row p { margin: 0; font-size: 0.8125rem; color: var(--text-muted); max-width: 420px; }
.form-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.form-error { padding: 14px 18px; border-radius: var(--radius-md); background: var(--error-100); color: #7a2c1a; border-left: 4px solid var(--error-500); font-weight: 600; margin-bottom: 20px; }
.form-intro { margin-bottom: 24px; }
.form-intro h2 { font-size: 1.5rem; margin-bottom: 8px; }
.form-intro p { color: var(--text-soft); margin: 0; }
.form-sidebar { display: flex; flex-direction: column; gap: 24px; }
.form-sidebar .card { gap: 8px; }
.form-sidebar .card:hover { transform: none; box-shadow: var(--shadow-md); }
.contact-lines { display: grid; gap: 12px; }
.contact-line { display: flex; align-items: flex-start; gap: 12px; color: var(--text-soft); }
.contact-line svg { flex: 0 0 auto; color: var(--green-600); margin-top: 2px; }
.contact-line a { font-weight: 700; }
.phone-large { font-family: var(--font-heading); font-size: 1.75rem; font-weight: 600; color: var(--green-800); }
@media (max-width: 1024px) { .form-layout { grid-template-columns: 1fr; gap: 32px; } .form-card { padding: 32px; } }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } .form-card { padding: 24px 20px; border-radius: var(--radius-lg); } }

/* Tabs (payment page) */
.tab-list { display: flex; gap: 8px; border-bottom: 2px solid var(--border); margin-bottom: 32px; }
.tab { padding: 12px 20px; margin-bottom: -2px; border: 0; border-bottom: 3px solid transparent; background: none; font-weight: 700; font-size: 1.0625rem; color: var(--text-soft); display: inline-flex; align-items: center; gap: 8px; }
.tab:hover { color: var(--green-700); }
.tab[aria-selected="true"] { color: var(--green-700); border-bottom-color: var(--accent); }

/* Action cards (patients hub) */
.action-card { text-decoration: none; }
.action-card .text-link { color: var(--link); }
.doc-card { flex-direction: row; align-items: center; gap: 20px; }
.doc-card .card-icon { margin: 0; }
.doc-card h3 { font-size: 1.125rem; }
@media (max-width: 640px) { .doc-card { flex-direction: column; align-items: flex-start; } }

/* Comparison (provider page) */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.compare-col { padding: 32px; border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-md); }
.compare-col.is-liberty { background: var(--green-900); color: #fff; }
.compare-col.is-liberty h3, .compare-col.is-liberty li { color: #fff; }
.compare-col.is-liberty .check-list svg { color: var(--accent-on-dark); }
.compare-col h3 { margin-bottom: 16px; }
@media (max-width: 1024px) { .compare { grid-template-columns: 1fr; } }

/* Coverage list */
.pill-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pill-list li { margin: 0; padding: 10px 16px; border-radius: var(--radius-pill); background: var(--green-50); color: var(--green-800); font-weight: 700; font-size: 0.9375rem; }

/* Prose (legal, blog body) */
.prose { font-size: 1.0625rem; color: var(--text-soft); }
.prose h2 { font-size: 1.5rem; margin-top: 40px; color: var(--text); }
.prose h3 { font-size: 1.25rem; margin-top: 32px; color: var(--text); }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--text-soft); }
.prose a { text-decoration: underline; }
.prose img { border-radius: var(--radius-lg); margin: 24px 0; }
.prose figure { margin: 24px 0; }
.prose figcaption { font-size: 0.875rem; color: var(--text-muted); margin-top: 8px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; line-height: 1.5; margin: 32px 0; }
.prose th, .prose td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--gray-100); vertical-align: top; }
.prose thead th { background: var(--green-600); color: #fff; font-weight: 700; border-bottom: 0; white-space: nowrap; }
.prose tbody tr:nth-child(even) { background: var(--gray-50); }
.prose tbody tr:last-child > * { border-bottom: 0; }
.prose tbody td:first-child, .prose tbody th { font-weight: 700; color: var(--text); }
.prose .table-scroll, .prose .post-embed { overflow-x: auto; -webkit-overflow-scrolling: touch; }
/* Tables sit in a card; main.js wraps each one so wide tables scroll sideways on phones. */
.prose .table-scroll { margin: 32px 0; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); background: #fff; }
.prose .table-scroll table { margin: 0; min-width: 540px; }
.prose blockquote { margin: 24px 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--green-300); color: var(--text); font-style: italic; }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 32px 0; }
.prose-updated { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 32px; }

/* ---------- Blog ---------- */
.blog-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.blog-grid li { margin: 0; display: flex; }
@media (max-width: 1024px) { .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
@media (max-width: 640px) { .blog-grid { grid-template-columns: 1fr; } }
.blog-card { display: flex; flex-direction: column; width: 100%; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); overflow: hidden; color: var(--text); transition: transform 200ms ease, box-shadow 200ms ease; }
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); text-decoration: none; color: var(--text); }
.blog-card-image { background: var(--green-50); }
.blog-card-image img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.blog-card-body { padding: 24px 24px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.blog-card-title { font-size: 1.1875rem; margin: 0; }
.blog-card-excerpt { color: var(--text-soft); font-size: 0.9375rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card-more { font-weight: 800; color: var(--link); font-size: 0.9375rem; margin-top: auto; }
.blog-card-date { padding: 0 24px 20px; font-size: 0.8125rem; color: var(--text-muted); }
.blog-card--compact .blog-card-body { padding: 18px 20px; }
.blog-card--compact .blog-card-title { font-size: 1.0625rem; }
.blog-empty { text-align: center; color: var(--text-muted); padding: 48px 0; }

.pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 48px; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 14px; border-radius: var(--radius-pill); font-weight: 700; }
.pagination a { background: var(--surface); box-shadow: var(--shadow-sm); color: var(--text-soft); border: 1px solid var(--border); }
.pagination a:hover { background: var(--green-50); color: var(--green-800); text-decoration: none; border-color: var(--green-200); }
.pagination [aria-current="page"] { background: var(--accent); color: #fff; }

.post-hero { padding: 64px 0; }
.post-hero .post-deck, .post-hero .post-meta, .post-hero .back-link, .post-hero .post-share-label, .post-hero .post-share-status { color: rgba(255, 255, 255, .94); }
.post-hero-inner { max-width: 680px; }
.post-hero h1 { font-size: clamp(1.875rem, 3.6vw, 2.75rem); }
.post-deck { font-size: 1.125rem; color: var(--text-soft); }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 0.9rem; color: var(--text-muted); margin: 16px 0 24px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 0.9375rem; margin-bottom: 24px; }
.post-featured { max-width: 1000px; margin: 0 auto; }
.post-featured img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); }
.post-article { padding-top: 48px; }
.post-body { font-size: 1.0625rem; }
.post-body img { border-radius: var(--radius-lg); }
.post-body h2 { font-size: 1.625rem; margin-top: 40px; color: var(--green-700); }
.post-body strong, .post-body b { color: var(--gray-900); }
.post-body h3 { font-size: 1.3125rem; margin-top: 32px; }
.post-body ul, .post-body ol { margin-bottom: 20px; }
.post-body li p { margin: 0; }
.post-share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.post-share--bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); }
.post-share-label { font-weight: 800; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }
.post-share-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.post-share-button { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text-soft); padding: 0; transition: background-color 150ms, color 150ms, border-color 150ms; }
.post-share-button:hover { background: var(--green-50); color: var(--green-800); border-color: var(--green-200); text-decoration: none; }
.post-share-button svg { width: 18px; height: 18px; }
.post-share-button [data-share-icon-check] { display: none; }
.post-share-button.copied [data-share-icon-link] { display: none; }
.post-share-button.copied [data-share-icon-check] { display: block; }
.post-share-status { font-size: 0.8125rem; color: var(--green-700); font-weight: 700; min-width: 80px; }

/* ---------- 404 / thank you ---------- */
.status-page { text-align: center; padding: 96px 0; }
.status-page h1 { margin-bottom: 16px; }
.status-page .lead { max-width: 560px; margin: 0 auto 32px; }
.status-page .actions { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: radial-gradient(ellipse at 0 0, #234f46, transparent 65%), linear-gradient(120deg, #173b32, #102c27); color: #d2e2db; padding: 64px 0 24px; border-top: 4px solid var(--green-300); }
.site-footer a { color: #d2e2db; text-underline-offset: 4px; transition: color 150ms ease; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.35fr .8fr .8fr 1.15fr; gap: 40px; align-items: start; padding-bottom: 48px; }
.footer-plans-panel { padding: 24px; border: 1px solid rgba(176,217,198,.2); border-radius: 16px; background: rgba(255,255,255,.04); }
.footer-heading { display: flex; align-items: center; gap: 8px; font-family: var(--font-body); font-size: .8125rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--green-200); margin-bottom: 24px; }
.footer-heading svg { flex-shrink: 0; }
.footer-col:not(.footer-plans-panel) { padding-top: 24px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.footer-col li { margin: 0; font-size: .9375rem; }
.footer-plans { margin: 0; font-size: .875rem; line-height: 1.85; overflow-wrap: anywhere; }
.footer-address-row { display: flex; gap: 12px; align-items: flex-start; }
.footer-address-row > svg { flex: 0 0 20px; margin-top: 4px; color: var(--green-300); }
.footer-address { font-style: normal; display: flex; flex-direction: column; font-size: .875rem; line-height: 1.8; }
.footer-company-name { color: #fff; font-weight: 700; margin-bottom: 4px; }
.footer-contact-numbers { display: flex; flex-direction: column; gap: 12px; margin: 24px 0 20px; }
.footer-contact-numbers a, .footer-fax { display: flex; align-items: center; gap: 12px; }
.footer-contact-numbers a { color: #fff; font-size: 1.125rem; font-weight: 700; }
.footer-contact-numbers svg { flex: 0 0 20px; color: var(--green-300); }
.footer-fax { font-size: .875rem; }
.footer-bottom { display: grid; grid-template-columns: 1fr auto; align-items: start; gap: 20px 32px; border-top: 1px solid rgba(176,217,198,.18); padding-top: 24px; font-size: .8125rem; color: #b3c9be; }
.footer-bottom p { margin: 0; }
.footer-bottom-left { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 16px; }
.footer-legal a:not(:last-child) { border-right: 1px solid var(--green-300); padding-right: 16px; }
.footer-credit a, .footer-credit a:hover { text-decoration: none; }
@media (max-width: 1024px) {
  .site-footer { text-align: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; justify-items: center; }
  .footer-col { width: 100%; max-width: 480px; }
  .footer-col:not(.footer-plans-panel) { padding-top: 0; }
  .footer-heading, .footer-address-row, .footer-contact-numbers a, .footer-fax { justify-content: center; }
  .footer-address-row { flex-direction: column; align-items: center; }
  .footer-col ul, .footer-contact-numbers { align-items: center; }
  .footer-bottom { grid-template-columns: 1fr; gap: 16px; justify-items: center; }
  .footer-bottom-left { align-items: center; }
  .footer-legal { justify-content: center; }
}
@media (max-width: 640px) {
  .site-footer { padding-top: 48px; }
  .footer-grid { padding-bottom: 32px; }
  .footer-heading { margin-bottom: 20px; }
  .footer-legal { gap: 12px 20px; }
  .footer-legal a:not(:last-child) { border-right: 0; padding-right: 0; }
}

/* Center mobile introductions while keeping forms, lists and article copy readable. */
@media (max-width: 1024px) {
  .section-header, .split-text, .page-hero-text, .post-hero-inner,
  .band-inner > :first-child, .form-intro { text-align: center; }
  .section-header, .page-hero-inner, .post-hero-inner { margin-inline: auto; }
  .section-label { flex-direction: column; align-items: center; justify-content: center; text-align: center; }
  .section-label::before { flex-basis: auto; transform: none; }
  .split-text .actions, .page-hero .actions, .breadcrumb ol, .post-meta,
  .post-hero .post-share { justify-content: center; }
  .split-text ul, .split-text ol { text-align: left; }
  .product-info > h2 { text-align: center; }
}

/* ---------- Electrotherapy interaction accents ---------- */
.btn, a.card, .home-category, .band-links a { position: relative; }
.btn::after, a.card::after, .home-category::after, .band-links a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; }
@keyframes liberty-pulse {
  0% { opacity: 0; box-shadow: inset 0 0 0 2px rgba(133,196,169,0), inset 0 0 0 0 rgba(133,196,169,0), 0 0 0 0 rgba(94,174,141,0); }
  30% { opacity: 1; box-shadow: inset 0 0 0 2px rgba(176,217,198,.95), inset 0 0 24px 4px rgba(133,196,169,.5), 0 0 16px 4px rgba(94,174,141,.35); }
  65% { opacity: .7; box-shadow: inset 0 0 0 2px rgba(176,217,198,.6), inset 0 0 32px 6px rgba(133,196,169,.3), 0 0 24px 8px rgba(94,174,141,.15); }
  100% { opacity: 0; box-shadow: inset 0 0 0 2px rgba(133,196,169,0), inset 0 0 40px 8px rgba(133,196,169,0), 0 0 32px 12px rgba(94,174,141,0); }
}
@media (prefers-reduced-motion: no-preference) {
  .btn:focus-visible::after, a.card:focus-visible::after, .home-category:focus-visible::after, .band-links a:focus-visible::after { animation: liberty-pulse 1100ms ease-out; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .btn:hover::after, a.card:hover::after, .home-category:hover::after, .band-links a:hover::after { animation: liberty-pulse 1100ms ease-out; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .cta-band, .post-share, .nav-backdrop, .breadcrumb, .back-link { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; animation: none !important; }
  body { font-size: 12pt; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal, .reveal.in-view { opacity: 1; transform: none; animation: none; }
  .nav-links { transition: none; }
}
