:root {
  --bg: #f4efe7;
  --bg-soft: #ebe2d2;
  --paper: #fffdfa;
  --paper-strong: #ffffff;
  --text: #1f2328;
  --muted: #6d7076;
  --line: #e4dacb;
  --deep: #193b6a;
  --deep-soft: #274f84;
  --gold: #d9a226;
  --gold-deep: #b98312;
  --shadow: 0 20px 50px rgba(31, 35, 40, 0.08);
  --shadow-soft: 0 14px 30px rgba(31, 35, 40, 0.06);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --content: var(--rootcare-frame-desktop);
}

/* Safe shared frame system: align all desktop pages to the home frame without changing home internals */
:root {
  --rootcare-frame-desktop: 1480px;
  --rootcare-frame-gutter-desktop: 40px;
}

@media (min-width: 1080px) {
  .brand-home-page {
    --home-frame-max: var(--rootcare-frame-desktop);
    --home-frame-gutter: var(--rootcare-frame-gutter-desktop);
  }

  .hub-page--portal .site-shell,
  .brand-home-page .site-shell,
  .brand-frame,
  .brand-feature .brand-frame,
  .brand-home-page .site-footer > .site-shell,
  .brand-home-page .site-footer > .brand-frame,
  .site-footer > .site-shell,
  .site-footer__inner,
  .site-footer__copyright {
    width: min(calc(100% - var(--rootcare-frame-gutter-desktop)), var(--rootcare-frame-desktop)) !important;
    max-width: var(--rootcare-frame-desktop) !important;
    margin-inline: auto;
  }
}

/* Final premium art direction pass */
@media (min-width: 1080px) {
  .hub-page--portal {
    padding-top: 18px;
  }

  .portal-header {
    background:
      linear-gradient(180deg, rgba(255, 253, 249, 0.98), rgba(255, 250, 244, 0.96));
    border-color: rgba(17, 31, 53, 0.07);
    box-shadow:
      0 26px 56px rgba(22, 27, 33, 0.08),
      0 1px 0 rgba(255, 255, 255, 0.65) inset;
    backdrop-filter: blur(14px);
  }

  .portal-brand__logo {
    width: 86px;
    height: 86px;
  }

  .portal-brand__text {
    gap: 3px;
    margin-left: -6px;
  }

  .portal-brand__mark {
    font-size: 2.06rem;
  }

  .portal-brand__sub {
    white-space: nowrap;
    font-size: 0.83rem;
    color: #6f7072;
  }

  .portal-main-nav {
    background: rgba(255, 255, 255, 0.62);
    border-top-color: rgba(17, 31, 53, 0.06);
    border-bottom-color: rgba(17, 31, 53, 0.06);
  }

  .portal-main-nav a,
  .about-rootcare-page .portal-main-nav a {
    border-radius: 14px;
    color: #223349;
  }

  .portal-header__button {
    border-radius: 999px;
    box-shadow: 0 12px 24px rgba(22, 27, 33, 0.05);
  }

  .portal-header__button--secondary {
    background: rgba(25, 59, 106, 0.055);
    border-color: rgba(25, 59, 106, 0.11);
    color: #1d4576;
  }

  .portal-header__button--primary {
    box-shadow: 0 16px 28px rgba(25, 59, 106, 0.16);
  }

  .site-footer {
    padding-top: 10px;
  }

  .site-footer__inner {
    background:
      linear-gradient(180deg, rgba(255, 253, 249, 0.96), rgba(249, 243, 235, 0.94));
    border-color: rgba(25, 59, 106, 0.07);
    box-shadow:
      0 24px 48px rgba(22, 27, 33, 0.07),
      0 1px 0 rgba(255, 255, 255, 0.6) inset;
  }

  .site-footer__brand-link {
    font-size: 1.06rem;
    letter-spacing: -0.01em;
  }

  .site-footer__nav a {
    white-space: nowrap;
  }

  .site-footer__icon-link,
  .site-footer__email-link {
    box-shadow: 0 10px 18px rgba(22, 27, 33, 0.04);
  }
}

/* Wider desktop header/footer frame for premium pages */
@media (min-width: 1080px) {
  :root {
    --content: 1480px;
  }

  .site-shell {
    width: min(100% - 40px, var(--content));
  }

  .portal-header__nav-wrap {
    gap: 22px;
    padding: 0 36px;
  }

  .portal-main-nav {
    flex-wrap: nowrap;
  }

  .portal-main-nav a,
  .about-rootcare-page .portal-main-nav a {
    white-space: nowrap;
    padding: 18px 12px;
    font-size: 0.93rem;
  }

  .portal-header__cta {
    gap: 12px;
    padding: 12px 0;
  }

  .portal-header__button {
    min-height: 44px;
    padding: 0 18px;
    font-size: 0.9rem;
    white-space: nowrap;
  }

  .site-footer__inner,
  .site-footer > .site-shell {
    width: min(100% - 40px, var(--content));
    margin-inline: auto;
  }
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  color-scheme: light;
}
body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(217, 162, 38, 0.1), transparent 20%),
    radial-gradient(circle at top right, rgba(25, 59, 106, 0.06), transparent 24%),
    linear-gradient(180deg, #f7f2ea 0%, #f2ece3 100%);
  color: var(--text);
  font-family: "Segoe UI", "Noto Sans", Arial, sans-serif;
  line-height: 1.6;
}

a { color: inherit; }

.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;
}

.site-shell {
  width: min(100% - 40px, var(--content));
  margin: 0 auto;
}

.identity-header {
  padding: 16px 0 0;
}

.identity-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 24px;
  border-radius: 24px;
  background: rgba(255, 253, 250, 0.94);
  border: 1px solid rgba(25, 59, 106, 0.08);
  box-shadow: var(--shadow-soft);
}

.identity-header__brand {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
}

.identity-header__title {
  color: var(--deep);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.identity-header__sub {
  color: var(--muted);
  font-size: 0.9rem;
}

.identity-header__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(25, 59, 106, 0.08);
  color: var(--deep);
  text-decoration: none;
  font-weight: 700;
}

.hub-page {
  padding: 22px 0 90px;
}

.hub-page--portal {
  padding-top: 14px;
}

.portal-header {
  background: rgba(255, 252, 248, 0.96);
  border: 1px solid rgba(17, 31, 53, 0.08);
  border-radius: 34px;
  box-shadow: 0 24px 40px rgba(22, 27, 33, 0.08);
  overflow: hidden;
}

.portal-header__top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: center;
    padding: 28px 32px 22px;
  }

.portal-brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
}

.portal-brand__logo {
  width: 84px;
  height: 84px;
  object-fit: contain;
  flex: 0 0 auto;
}

.portal-brand__text {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  margin-left: -8px;
}

.portal-brand__mark {
  color: #16365f;
  font-size: 2rem;
  font-weight: 600;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.05em;
  line-height: 1;
}

.portal-brand__sub {
  color: #717273;
  font-size: 0.82rem;
  line-height: 1.25;
}

  .portal-main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  padding: 0 28px;
  border-top: 1px solid rgba(17, 31, 53, 0.08);
  border-bottom: 1px solid rgba(17, 31, 53, 0.08);
  background: rgba(255, 255, 255, 0.72);
}

.portal-main-nav a {
  text-decoration: none;
  padding: 17px 14px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #243243;
}

.portal-hero {
  padding: 18px 0 26px;
}

.portal-hero__layout {
  display: block;
  overflow: hidden;
  border-radius: 0 0 38px 38px;
  box-shadow: 0 34px 60px rgba(24, 28, 34, 0.1);
  background:
    radial-gradient(circle at 18% 28%, rgba(217, 162, 38, 0.16), transparent 24%),
    linear-gradient(115deg, #f7f0e4 0%, #f4eee5 48%, #ece7df 100%);
}

.portal-hero__copy {
  max-width: 920px;
  padding: 68px 52px 58px;
  min-width: 0;
}

.hub-kicker {
  margin: 0 0 18px;
  color: var(--gold-deep);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.portal-hero__copy h1 {
  margin: 0 0 18px;
  max-width: 10ch;
  font-size: clamp(3rem, 5vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  color: #13253f;
}

.hub-subtitle {
  margin: 0;
  max-width: 700px;
  color: #5f696c;
  font-size: clamp(1.04rem, 2vw, 1.14rem);
  line-height: 1.72;
}

.portal-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.portal-highlight-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.portal-highlight-list li {
  padding: 11px 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(17, 31, 53, 0.08);
  font-size: 0.9rem;
  color: #31404f;
}

.portal-hero__panel {
  display: flex;
  align-items: stretch;
  padding: 34px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.45), rgba(255,255,255,0.78)),
    linear-gradient(135deg, rgba(17, 31, 53, 0.08), rgba(17, 31, 53, 0.01));
}

.portal-stat-card {
  width: 100%;
  padding: 30px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(17, 31, 53, 0.1);
  box-shadow: 0 18px 34px rgba(22, 27, 33, 0.08);
}

.portal-stat-card__eyebrow {
  margin: 0 0 8px;
  color: var(--gold-deep);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.portal-stat-card h2 {
  margin: 0 0 18px;
  font-size: 1.85rem;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--deep);
}

.portal-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.portal-action-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 150px;
  padding: 20px 18px;
  text-decoration: none;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,244,238,0.92));
  border: 1px solid rgba(17, 31, 53, 0.08);
  box-shadow: 0 12px 24px rgba(22, 27, 33, 0.05);
}

.portal-action-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: 16px;
  background: rgba(17, 31, 53, 0.06);
  color: var(--deep);
}

.portal-action-card__icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.portal-action-card__icon--whatsapp {
  background: rgba(37, 211, 102, 0.14);
  color: #1f9d52;
}

.portal-action-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--deep);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.portal-action-card span {
  color: #677071;
  font-size: 0.92rem;
  line-height: 1.55;
}

.portal-overview {
  padding-top: 20px;
  padding-bottom: 28px;
}

.entry-section {
  padding: 28px 0 36px;
}


.entry-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 42px;
  background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(248,244,238,0.96));
  border: 1px solid rgba(17, 31, 53, 0.08);
  border-radius: 34px;
  box-shadow: 0 22px 40px rgba(22, 27, 33, 0.08);
}

.entry-eyebrow {
  margin: 0 0 10px;
  color: #b27a32;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.entry-shell h2 {
  margin: 0;
  color: #10233f;
  font-size: clamp(2.3rem, 4vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.entry-sub {
  margin: 16px 0 0;
  max-width: 920px;
  color: #626a6b;
  font-size: 1rem;
  line-height: 1.7;
}

.entry-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.entry-section__cta {
  margin-top: 26px;
}

.entry-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 320px;
  padding: 30px 28px 28px;
  background: linear-gradient(180deg, rgba(250,247,241,0.96), rgba(245,238,228,0.9));
  border: 1px solid rgba(17, 31, 53, 0.08);
  border-radius: 28px;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(22, 27, 33, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.entry-card.featured {
  border-color: rgba(185, 121, 47, 0.48);
  background: linear-gradient(180deg, rgba(247,239,224,0.98), rgba(242,233,218,0.92));
  box-shadow: 0 16px 30px rgba(185, 121, 47, 0.1);
}

.entry-kicker {
  display: inline-block;
  margin-bottom: 24px;
  color: #8d6a39;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.entry-card h3 {
  margin: 0 0 16px;
  min-height: 1.2em;
  color: #10233f;
  font-size: 1.22rem;
  line-height: 1.2;
  letter-spacing: -0.025em;
  white-space: nowrap;
}

.entry-card p {
  margin: 0;
  color: #68706f;
  font-size: 0.98rem;
  line-height: 1.6;
}

.entry-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
  color: #68706f;
  font-size: 0.99rem;
  line-height: 1.65;
}

.entry-list li {
  position: relative;
  padding-left: 0.85rem;
}

.entry-list li::before {
  content: "-";
  position: absolute;
  left: 0;
  color: #8d6a39;
  font-weight: 700;
}

.entry-list li + li {
  margin-top: 10px;
}

.entry-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(161, 106, 38, 0.22);
  background: rgba(201, 138, 63, 0.12);
  color: #8f5814;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.entry-card:hover .entry-cta,
.entry-card:focus-visible .entry-cta {
  transform: translateX(4px);
  background: rgba(201, 138, 63, 0.18);
  border-color: rgba(161, 106, 38, 0.34);
  color: #77460c;
}

.hub-section-label {
  margin: 0 0 10px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8b7d6a;
}

.hub-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 14px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.hub-button:hover,
.hub-button:focus-visible,
.portal-main-nav a:hover,
.portal-main-nav a:focus-visible,
.portal-action-card:hover,
.entry-card:hover,
.entry-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 20px 34px rgba(30, 40, 35, 0.1);
  border-color: rgba(185, 121, 47, 0.5);
  background: linear-gradient(180deg, rgba(255,255,255,1), rgba(247,241,231,0.96));
}

.support-section {
  margin-top: 34px;
  padding: 44px 34px;
  border-radius: 36px;
  background:
    radial-gradient(circle at top center, rgba(198, 136, 59, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(255,251,245,0.96), rgba(247,242,235,0.98));
  border: 1px solid rgba(17, 31, 53, 0.08);
  box-shadow: 0 24px 44px rgba(22, 27, 33, 0.08);
}

.support-section__header {
  max-width: 820px;
  margin: 0 auto 32px;
  text-align: center;
}

.support-section__header h2 {
  margin: 0;
  font-size: clamp(2.3rem, 3.6vw, 3.5rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: #10233f;
}

.support-section__lead {
  margin: 18px auto 0;
  max-width: 660px;
  color: #626a6b;
  font-size: 1.05rem;
  line-height: 1.72;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.support-card {
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,252,247,0.98), rgba(247,241,232,0.94));
  border: 1px solid rgba(17, 31, 53, 0.08);
  box-shadow: 0 14px 26px rgba(36, 51, 45, 0.05);
}

.support-card--featured {
  border: 1px solid rgba(185, 121, 47, 0.42);
  box-shadow: 0 18px 32px rgba(185, 121, 47, 0.1);
}

.support-card__media {
  position: relative;
  height: 250px;
}

.support-card__badge {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 1;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(16, 35, 63, 0.82);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.support-card__visual {
  position: relative;
  height: 100%;
  display: flex;
  align-items: end;
  padding: 20px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.24rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.support-card__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 24, 28, 0.06), rgba(18, 24, 28, 0.56));
}

.support-card__visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.support-card__visual span {
  position: relative;
  z-index: 1;
}

.support-card__copy {
  padding: 20px 20px 22px;
  text-align: left;
}

.support-card__tag {
  display: inline-block;
  margin: 0 0 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(185, 121, 47, 0.1);
  color: #7b5a32;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.support-card__copy h3 {
  margin: 0 0 10px;
  font-size: 1.34rem;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #10233f;
}

.support-card__copy h3 span {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(16, 35, 63, 0.06);
  color: #9a6424;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  vertical-align: middle;
}

.support-card__copy p:last-child {
  margin: 0;
  color: #5f6768;
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.65;
}

.support-section__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}

.support-section__cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 14px 24px;
  border-radius: 999px;
  background: rgba(17, 31, 53, 0.06);
  color: var(--deep);
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(17, 31, 53, 0.12);
}

.support-section__cta-link--book {
  background: linear-gradient(180deg, #e39d43, #bf6f1f);
  color: #fff;
  box-shadow: 0 14px 28px rgba(191, 111, 31, 0.28);
}

.support-section__cta-divider {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(17, 31, 53, 0.08);
  color: #8f7a5d;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.support-section__cta-link--primary {
  background: linear-gradient(180deg, #2a79b8, #114d83);
  color: #fff;
  box-shadow: 0 14px 28px rgba(17, 77, 131, 0.28);
}

.hub-button--primary {
  background: linear-gradient(180deg, #d89e52, #b7782d);
  color: #fff;
  box-shadow: 0 14px 28px rgba(185, 121, 47, 0.24);
}

.hub-button--secondary {
  background: rgba(17, 31, 53, 0.06);
  color: var(--deep);
}

.landing-only {
  display: none;
}

.page-hero {
  padding: 54px 20px 28px;
  background: linear-gradient(180deg, #f6f4ef 0%, #f4f0e8 100%);
}

.page-hero .site-shell { max-width: 960px; }
.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  color: #44566a;
  font-family: "Segoe UI", "Noto Sans", Arial, sans-serif;
}

.page-hero p {
  margin: 0;
  max-width: 760px;
  color: #6b7577;
  font-family: "Segoe UI", "Noto Sans", Arial, sans-serif;
}

.content-wrap {
  width: min(100%, 960px);
  margin: 0 auto;
  padding: 28px 20px 70px;
  font-family: "Segoe UI", "Noto Sans", Arial, sans-serif;
}

.card {
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(36,49,51,0.08);
  border-radius: 24px;
  padding: 24px 20px;
  box-shadow: 0 10px 24px rgba(36,49,51,0.06);
  margin-bottom: 18px;
}

.card h2, .card h3 { margin-top: 0; }
.pattern-grid { display: grid; gap: 14px; }
.pattern-card {
  display: block;
  text-decoration: none;
  color: #243133;
  padding: 16px 16px;
  border-radius: 16px;
  border: 1px solid rgba(36,49,51,0.08);
  background: #fff;
}

.pattern-card strong { display: block; margin-bottom: 6px; font-size: 1rem; }
.pattern-card span { color: #6b7577; font-size: 0.95rem; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.button-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}
.button-row .primary { background: #d4a15d; color: #1f2528; }
.button-row .secondary { background: #243133; color: #fff; }
.mini-list { margin: 0; padding-left: 18px; }
.footer-note { margin-top: 26px; color: #6b7577; font-size: 0.9rem; }

.site-footer {
  padding: 0 0 34px;
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 28px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(25, 59, 106, 0.08);
  box-shadow: var(--shadow-soft);
}

.site-footer__brand strong {
  display: block;
  margin-bottom: 4px;
  color: var(--deep);
  font-size: 1.05rem;
}

.site-footer__brand-link {
  display: inline-block;
  margin-bottom: 4px;
  color: var(--deep);
  font-size: 1.05rem;
  font-weight: 600;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.site-footer__brand p {
    margin: 0;
    color: var(--muted);
    font-size: 0.94rem;
  }

.site-footer__address {
  margin-top: 2px;
  max-width: none;
  color: rgba(95, 104, 112, 0.62);
  font-size: 0.72rem;
  line-height: 1.2;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0.72;
}

.site-footer__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 12px;
  }

.site-footer__nav a {
    color: #5f6870;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
  }

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.site-footer__icon-link,
.site-footer__email-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(25, 59, 106, 0.1);
  color: #183a67;
  text-decoration: none;
  font-weight: 700;
  box-shadow: var(--shadow-soft);
}

.site-footer__icon-link {
  width: 44px;
  padding: 0;
}

.site-footer__icon-link svg,
.site-footer__email-link svg {
  display: block;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.site-footer__email-link {
  gap: 10px;
}

.site-footer__copyright {
  margin: 12px 4px 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.pain-condition-page {
  padding: 40px 0 80px;
  background: #f6f1e8;
}

.pain-shell {
  width: min(100% - 40px, var(--content));
  margin: 0 auto;
  padding: 0;
}

.pain-hero,
.pain-symptom-box,
.pain-explain-box,
.pain-compare-box,
.pain-treatment-box,
.pain-cta-box {
  background: #fffdf9;
  border: 1px solid #e8ddd0;
  border-radius: 28px;
  padding: 32px;
  box-shadow: 0 14px 34px rgba(34, 44, 39, 0.05);
  margin-bottom: 18px;
}

.pain-eyebrow {
  margin: 0 0 10px;
  color: #b27932;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pain-hero h1,
.pain-symptom-box h2,
.pain-explain-box h2,
.pain-compare-box h2,
.pain-treatment-box h2,
.pain-cta-box h2 {
  margin: 0;
  color: #10233f;
  letter-spacing: -0.03em;
}

.pain-hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.5rem);
  line-height: 1.02;
}

.pain-lead,
.pain-explain-box p,
.pain-treatment-box p,
.pain-cta-box p {
  margin: 14px 0 0;
  color: #6b706f;
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 780px;
}

.pain-check-simple {
  padding: 28px 0 36px;
}

.pain-check-inner {
  width: 100%;
  margin: 0 0 18px;
  padding: 30px;
  background: #fffdf9;
  border-radius: 28px;
  border: 1px solid #e6dbce;
  box-shadow: 0 14px 34px rgba(34, 44, 39, 0.05);
}

.pain-check-inner h2 {
  margin: 0;
  color: #10233f;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
}

.pain-sub {
  margin: 12px 0 18px;
  color: #6b706f;
  font-size: 1rem;
  line-height: 1.6;
}

.pain-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pain-list li {
  position: relative;
  padding-left: 34px;
  margin-bottom: 14px;
  color: #394540;
  font-size: 1rem;
  line-height: 1.5;
}

.pain-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: #c6883b;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pain-result {
  margin-top: 20px;
  padding: 18px;
  background: #fbf4e9;
  border: 1px solid #e7d6bd;
  border-radius: 18px;
  color: #5c564f;
  font-size: 1rem;
  line-height: 1.6;
}

.pain-result strong {
  color: #a96e2d;
}

.clinical-shell .pattern-grid,
.clinical-shell .pain-compare-box,
.clinical-shell .pain-treatment-box,
.clinical-shell .pain-cta-box {
  margin-top: 18px;
}

.clinical-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  margin-bottom: 18px;
  background: linear-gradient(180deg, #fffdf9 0%, #f8f3ec 100%);
  border: 1px solid #dde3ea;
  border-radius: 28px;
  padding: 30px 32px;
  box-shadow: 0 14px 34px rgba(21, 35, 54, 0.05);
}

.clinical-hero__copy,
.clinical-hero__summary,
.clinical-overview__card,
.clinical-section-intro,
.clinical-panel {
  background: #fffdf9;
  border: 1px solid #dde3ea;
  border-radius: 28px;
  padding: 30px 32px;
  box-shadow: 0 14px 34px rgba(21, 35, 54, 0.05);
}

.clinical-hero__copy {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

.clinical-hero__copy h1 {
  margin: 0;
  color: #10233f;
  font-size: clamp(2.2rem, 4vw, 3.9rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.clinical-hero__summary {
  background: transparent;
  color: #10233f;
  border: 0;
  border-left: 1px solid rgba(221, 227, 234, 0.9);
  border-radius: 0;
  box-shadow: none;
  padding: 0 0 0 24px;
}

.clinical-hero__copy h2 {
  margin: 16px 0 0;
  color: #10233f;
  font-size: clamp(1.5rem, 2.4vw, 2.05rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.clinical-hero__summary--checklist .pain-list {
  margin: 0;
}

.clinical-hero__summary--checklist .pain-list li {
  padding-left: 34px;
  margin-bottom: 14px;
  font-size: 1rem;
  line-height: 1.5;
}

.clinical-hero__summary--checklist .pain-list li:last-child {
  margin-bottom: 0;
}

.clinical-hero__summary--checklist .pain-result {
  margin-top: 18px;
  font-size: 1rem;
  line-height: 1.6;
}

.clinical-overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.clinical-check-card {
  margin-bottom: 18px;
  padding: 24px 26px;
}

.clinical-check-card__intro h2 {
  margin: 0;
  color: #10233f;
  font-size: clamp(1.45rem, 2.3vw, 2rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.clinical-check-card__intro p {
  margin: 10px 0 0;
  color: #61707c;
  font-size: 0.97rem;
  line-height: 1.58;
  max-width: 70ch;
}

.clinical-check-card .pain-list {
  margin-top: 18px;
}

.clinical-check-card .pain-result {
  margin-top: 16px;
}

.clinical-overview__eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: #8a6531;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.clinical-overview__card h2,
.clinical-section-intro h2 {
  margin: 0;
  color: #10233f;
  font-size: clamp(1.55rem, 2.5vw, 2.2rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.clinical-overview__card p,
.clinical-section-intro p {
  margin: 10px 0 0;
  color: #61707c;
  font-size: 0.98rem;
  line-height: 1.6;
  max-width: 70ch;
}

.clinical-overview__card--accent {
  background: linear-gradient(180deg, #f5f8fc 0%, #eef3f9 100%);
  border-color: #d6e0ec;
}

.clinical-section-intro {
  margin-bottom: 18px;
}

.pain-explainer {
  margin-top: 18px;
  margin-bottom: 18px;
}

.pain-explainer h2,
.pain-identity-box h2,
.pain-cause-card h3 {
  margin: 0;
  color: #10233f;
  letter-spacing: -0.03em;
}

.pain-explainer h2,
.pain-identity-box h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.45rem);
  line-height: 1.06;
}

.pain-explainer p,
.pain-identity-box > p {
  margin: 14px 0 0;
  color: #61707c;
  font-size: 1rem;
  line-height: 1.68;
  max-width: none;
}

.pain-cause-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.pain-cause-card h3 {
  font-size: 1.35rem;
  line-height: 1.14;
}

.pain-cause-card p {
  margin: 12px 0 0;
  color: #61707c;
  font-size: 0.98rem;
  line-height: 1.62;
}

.pain-cause-card ul,
.pain-identity-card ul {
  margin: 14px 0 0;
  padding-left: 18px;
  color: #5f6d78;
  font-size: 0.96rem;
  line-height: 1.65;
}

.pain-cause-card li + li,
.pain-identity-card li + li {
  margin-top: 8px;
}

.pain-identity-box {
  margin-bottom: 18px;
}

.pain-identity-grid {
  margin-top: 22px;
}

.pain-identity-card {
  background: linear-gradient(180deg, #f8f3ec 0%, #f5efe6 100%);
}

.pain-identity-card strong {
  font-size: 1.12rem;
}

.pain-identity-card em {
  color: #8a6531;
  font-style: normal;
  font-weight: 700;
}

.pain-identity-card p {
  margin: 6px 0 0;
}

.pain-pattern-group {
  margin-bottom: 18px;
}

.pain-pattern-group__intro {
  margin-bottom: 18px;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.pain-pattern-group__grid {
  margin-bottom: 18px;
}

.pain-pattern-group__compare {
  margin-bottom: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.pain-pattern-group__compare h2 {
  margin: 0;
  color: #10233f;
  font-size: clamp(1.55rem, 2.5vw, 2.2rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.pain-pattern-group__compare .compare-grid {
  margin-top: 18px;
}

.clinical-shell .pain-check-inner {
  border-color: #dde3ea;
  box-shadow: 0 14px 34px rgba(21, 35, 54, 0.05);
}

.clinical-shell .pain-list li::before {
  background: #d09a4b;
}

.clinical-shell .pattern-card {
  border: 1px solid #dbe3ea;
  box-shadow: 0 14px 34px rgba(21, 35, 54, 0.05);
}

.clinical-shell .pattern-card.primary {
  border: 2px solid #c98a3f;
  background: linear-gradient(180deg, #fffaf2 0%, #fbf3e7 100%);
}

.clinical-shell .compare-card {
  background: #f6f8fb;
  border-color: #dbe3ea;
}

.clinical-panel--cta {
  background: linear-gradient(180deg, #fffdf9 0%, #f8f3ec 100%);
}

.clinical-panel--ad {
  background:
    radial-gradient(circle at top right, rgba(208, 154, 75, 0.18), transparent 28%),
    linear-gradient(135deg, #17334d 0%, #10233f 58%, #0e1d33 100%);
  border: 1px solid rgba(17, 35, 63, 0.72);
  box-shadow: 0 24px 54px rgba(16, 35, 63, 0.18);
  color: #fff;
  overflow: hidden;
}

.clinical-ad__eyebrow {
  margin: 0 0 14px;
  color: rgba(255, 228, 195, 0.82);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.clinical-panel--ad h2 {
  margin: 0;
  max-width: 12ch;
  color: #fff;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
}

.clinical-panel--ad p {
  margin: 18px 0 0;
  max-width: 44rem;
  color: rgba(255,255,255,0.82);
  font-size: 1.08rem;
  line-height: 1.65;
}

.clinical-ad__actions {
  margin-top: 28px;
  gap: 14px;
}

.clinical-panel--ad .btn {
  min-height: 54px;
  padding: 0 24px;
  font-size: 0.98rem;
  font-weight: 800;
}

.clinical-panel--ad .btn-primary {
  background: #d39a48;
  color: #fff;
}

.clinical-panel--ad .btn-primary:hover {
  background: #bd8436;
}

.clinical-panel--ad .btn-secondary {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
}

.clinical-panel--ad .btn-secondary:hover {
  background: rgba(255,255,255,0.16);
  color: #fff;
}

.pain-symptom-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.pain-symptom-card,
.compare-card {
  background: #f5efe6;
  border: 1px solid #ddd2c3;
  border-radius: 20px;
  padding: 18px;
}

.pain-symptom-card strong,
.compare-card strong {
  display: block;
  margin-bottom: 8px;
  color: #10233f;
  font-size: 1rem;
}

.pain-symptom-card span,
.compare-card p {
  color: #6d726f;
  font-size: 0.98rem;
  line-height: 1.5;
  margin: 0;
}

.pattern-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.pattern-card {
  display: block;
  text-decoration: none;
  background: #fffdf9;
  border: 1px solid #e2d8cb;
  border-radius: 28px;
  padding: 28px;
  color: inherit;
  box-shadow: 0 14px 34px rgba(34, 44, 39, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.pattern-card:hover,
.pattern-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(34, 44, 39, 0.08);
  border-color: #c98a3f;
}

.pattern-card.primary {
  border: 2px solid #c98a3f;
  background: #fbf5ec;
}

.pattern-label {
  display: inline-block;
  margin-bottom: 12px;
  color: #8a6531;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pattern-card h3 {
  margin: 0 0 10px;
  color: #10233f;
  font-size: 1.5rem;
  line-height: 1.1;
}

.pattern-summary {
  margin: 0 0 14px;
  color: #5f6763;
  font-size: 1rem;
  line-height: 1.5;
}

.pattern-card ul {
  margin: 0;
  padding-left: 18px;
  color: #6d726f;
  line-height: 1.6;
}

.pattern-card li + li {
  margin-top: 6px;
}

.pattern-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(182, 120, 37, 0.25);
  background: rgba(201, 138, 63, 0.12);
  color: #8f5814;
  font-weight: 700;
  line-height: 1;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.pattern-card:hover .pattern-cta,
.pattern-card:focus-visible .pattern-cta {
  transform: translateX(4px);
  background: rgba(201, 138, 63, 0.18);
  border-color: rgba(182, 120, 37, 0.4);
  color: #77460c;
}

.compare-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.compare-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.treatment-tags {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.treatment-tags span {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 999px;
  background: #f4ede3;
  border: 1px solid #ddd3c6;
  color: #394540;
  font-size: 0.95rem;
  font-weight: 600;
}

.pain-protocol-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.pain-protocol-card {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px;
  background: #f7f1e8;
  border: 1px solid #ddd2c3;
  border-radius: 20px;
}

.pain-protocol-card img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  object-position: center center;
  border-radius: 16px;
  display: block;
}

.pain-protocol-card--red-light img {
  object-position: center center;
}

.pain-protocol-card__body strong {
  display: block;
  margin: 0 0 6px;
  color: #10233f;
  font-size: 0.98rem;
  line-height: 1.2;
}

.pain-protocol-card__body p {
  margin: 0;
  color: #67727a;
  font-size: 0.9rem;
  line-height: 1.45;
}

.pain-cta-row {
  margin-top: 20px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}

.btn-primary {
  background: #c6883b;
  color: #fff;
}

.btn-secondary {
  background: #eef1ef;
  color: #10233f;
  border: 1px solid #d7ddda;
}

@media (max-width: 1040px) {
  .portal-header__top {
    grid-template-columns: 1fr;
  }

  .entry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .support-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .clinical-hero,
  .clinical-overview {
    grid-template-columns: 1fr;
  }

  .pattern-grid,
  .pain-symptom-grid,
  .compare-grid,
  .pain-cause-grid {
    grid-template-columns: 1fr;
  }

  .pain-hero,
  .pain-symptom-box,
  .pain-explain-box,
  .pain-compare-box,
  .pain-treatment-box,
  .pain-cta-box,
  .clinical-hero,
  .pattern-card,
  .pain-check-inner,
  .clinical-hero__copy,
  .clinical-hero__summary,
  .clinical-overview__card,
  .clinical-section-intro,
  .clinical-panel {
    padding: 22px;
  }

  .clinical-hero__copy {
    padding: 0;
  }

  .clinical-hero__summary {
    padding: 22px 0 0;
    border-left: 0;
    border-top: 1px solid rgba(221, 227, 234, 0.9);
  }

  .pain-protocol-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 640px) {
  .site-shell {
    width: min(100% - 20px, var(--content));
  }

  .pain-shell {
    width: min(100% - 20px, var(--content));
  }

  .identity-header {
    padding-top: 12px;
  }

  .hub-page {
    padding-top: 14px;
  }

  .portal-header {
    border-radius: 22px;
  }

  .portal-header__top {
    padding: 20px 16px 16px;
  }

  .identity-header__inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
  }

  .identity-header__title {
    font-size: 1.08rem;
  }

  .identity-header__sub {
    font-size: 0.82rem;
  }

  .identity-header__link {
    width: 100%;
  }

  .portal-brand {
    gap: 0;
  }

  .portal-brand__logo {
    width: 64px;
    height: 64px;
  }

  .portal-brand__mark {
    font-size: 1.6rem;
  }

  .portal-brand__text {
    margin-left: -6px;
  }

  .portal-main-nav {
    padding: 0 10px;
  }

  .portal-main-nav a {
    padding: 13px 10px;
    font-size: 0.92rem;
  }

  .portal-overview {
    padding-top: 14px;
  }

  .portal-highlight-list {
    flex-direction: column;
  }

  .portal-action-grid,
  .entry-grid {
    grid-template-columns: 1fr;
  }

  .entry-shell {
    padding: 22px;
    border-radius: 22px;
  }

  .entry-shell h2 {
    font-size: 1.85rem;
  }

  .entry-sub {
    font-size: 0.94rem;
  }

  .entry-card {
    min-height: 220px;
    padding: 22px;
    border-radius: 20px;
  }

  .entry-card h3 {
    font-size: 1.18rem;
    min-height: 0;
    white-space: normal;
  }

  .entry-list {
    list-style: none;
    margin-left: 0;
    padding-left: 0.9rem;
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .entry-list li {
    position: relative;
    padding-left: 0.7rem;
  }

  .entry-list li::before {
    content: "-";
    position: absolute;
    left: 0;
    color: #8d6a39;
    font-weight: 700;
  }

  .entry-card p,
  .entry-cta {
    font-size: 0.92rem;
  }

  .support-section {
    padding: 24px 18px;
    border-radius: 24px;
  }

  .support-grid {
    grid-template-columns: 1fr;
  }

  .support-card__media {
    height: 170px;
  }

  .support-section__header h2 {
    font-size: 1.9rem;
  }

  .support-section__lead {
    font-size: 0.96rem;
  }

  .support-section__cta {
    flex-direction: column;
  }

  .support-section__cta-divider {
    min-width: 56px;
  }

  .support-section__cta-link {
    width: 100%;
  }

  .portal-hero__cta {
    flex-direction: column;
  }

  .hub-button {
    width: 100%;
  }

  .page-hero,
  .content-wrap {
    padding-left: 14px;
    padding-right: 14px;
  }

  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 18px;
  }

  .site-footer__links {
    width: 100%;
  }

  .site-footer__email-link {
    width: 100%;
    justify-content: flex-start;
  }

  .pain-condition-page {
    padding: 20px 0 56px;
  }

  .pain-hero,
  .pain-symptom-box,
  .pain-explain-box,
  .pain-compare-box,
  .pain-treatment-box,
  .pain-cta-box,
  .clinical-hero,
  .pattern-card,
  .pain-check-inner,
  .clinical-hero__copy,
  .clinical-hero__summary,
  .clinical-overview__card,
  .clinical-section-intro,
  .clinical-panel {
    border-radius: 22px;
  }

  .clinical-hero {
    padding: 22px;
  }

  .clinical-hero__copy {
    padding: 0;
  }

  .clinical-hero__summary {
    padding: 18px 0 0;
    border-left: 0;
    border-top: 1px solid rgba(221, 227, 234, 0.9);
  }

  .clinical-hero__copy h1 {
    font-size: 2rem;
  }

  .clinical-hero__copy h2 {
    font-size: 1.45rem;
  }

  .clinical-panel--ad h2 {
    font-size: clamp(2rem, 7vw, 3rem);
    max-width: none;
  }

  .clinical-panel--ad p {
    font-size: 0.98rem;
  }

  .clinical-ad__actions {
    margin-top: 22px;
  }

  .clinical-panel--ad .btn {
    width: 100%;
  }

  .clinical-overview__card h2,
  .clinical-section-intro h2 {
    font-size: 1.55rem;
  }

  .clinical-check-card {
    padding: 22px;
  }

  .clinical-check-card__intro h2 {
    font-size: 1.45rem;
  }

  .pain-explainer h2,
  .pain-identity-box h2,
  .pain-cause-card h3 {
    font-size: 1.45rem;
  }

  .pain-hero h1,
  .pain-check-inner h2,
  .pain-explain-box h2,
  .pain-compare-box h2,
  .pain-treatment-box h2,
  .pain-cta-box h2 {
    font-size: 1.8rem;
    line-height: 1.08;
  }

  .pain-lead,
  .pain-explainer p,
  .pain-cause-card p,
  .pain-explain-box p,
  .pain-treatment-box p,
  .pain-cta-box p,
  .pain-sub,
  .pain-list li,
  .compare-card p,
  .pain-cause-card li,
  .pain-identity-card li {
    font-size: 0.94rem;
  }

  .pattern-card h3 {
    font-size: 1.28rem;
  }

  .pattern-summary,
  .pattern-card ul,
  .treatment-tags span,
  .pattern-cta {
    font-size: 0.92rem;
  }

  .pain-protocol-grid {
    grid-template-columns: 1fr;
  }

  .pain-protocol-card {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .pain-protocol-card img {
    width: 76px;
    height: 76px;
  }

  .pain-protocol-card__body strong,
  .pain-protocol-card__body p {
    font-size: 0.92rem;
  }

  .pain-cta-row {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}

.brand-home-page {
  background: #f7f3ed;
  --brand-panel-height: clamp(520px, 64svh, 680px);
  --brand-scroll-depth: 0px;
  --brand-quiz-scroll-depth: 0px;
}

@media (min-width: 1080px) {
  .brand-home {
    display: grid;
    gap: 18px;
    padding: 8px 0 0;
  }

  .brand-feature {
    min-height: auto;
    padding: 0;
  }

  .brand-feature .brand-frame {
    width: min(calc(100% - 56px), 1200px);
    max-width: 1200px;
    margin-inline: auto;
  }

  .brand-panel {
    position: relative;
    top: auto;
    height: clamp(430px, 56svh, 560px);
    min-height: 430px;
    border-radius: 28px;
    box-shadow:
      0 24px 44px rgba(22, 27, 33, 0.09),
      0 1px 0 rgba(255, 255, 255, 0.42) inset;
  }

  .brand-panel--tall-copy {
    height: clamp(430px, 56svh, 560px);
  }

  .brand-panel__content {
    min-height: clamp(430px, 56svh, 560px);
    padding: 72px 42px 62px;
  }

  .brand-panel--tall-copy .brand-panel__content {
    min-height: clamp(430px, 56svh, 560px);
    padding: 72px 42px 62px;
  }

  .brand-panel__copy {
    max-width: 860px;
  }

  .brand-panel__copy h1,
  .brand-panel__copy h2 {
    max-width: 12ch;
  }

  .brand-panel__copy p:last-child {
    max-width: 700px;
  }

  .brand-panel__cta {
    margin-top: 30px;
  }
}

.brand-home-page .site-shell {
  width: min(100% - 40px, var(--content));
  max-width: var(--content);
}

.brand-home {
  padding: 0;
}

.brand-frame {
  width: min(100% - 64px, var(--rootcare-frame-desktop));
  margin: 0 auto;
}

.brand-header {
  padding: 26px 0 24px;
  background: #ffffff;
  border-bottom: 1px solid rgba(16, 35, 63, 0.06);
  position: relative;
  z-index: 4;
}

.brand-header__inner {
  display: flex;
  justify-content: center;
  align-items: center;
}

.brand-header__brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-header__title {
  color: #3f4549;
  font-size: clamp(2rem, 3vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.brand-header__sub {
  color: #b18d67;
  font-size: 0.92rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
}

.brand-feature {
  position: relative;
  min-height: calc(var(--brand-panel-height) + var(--brand-scroll-depth));
  padding: 0;
  overflow: hidden;
}

.brand-feature .brand-frame {
  width: 100%;
  max-width: none;
}

.brand-panel {
  position: sticky;
  top: 0;
  height: var(--brand-panel-height);
  min-height: 520px;
  overflow: hidden;
  border-radius: 0;
  background: #dfe9f3;
  margin: 0;
}

.brand-panel--tall-copy {
  height: clamp(580px, 70svh, 760px);
}

.brand-feature--quiz {
  min-height: calc(var(--brand-panel-height) + var(--brand-quiz-scroll-depth));
}

.brand-panel--blue {
  background:
    linear-gradient(180deg, rgba(153, 207, 249, 0.88), rgba(69, 118, 150, 0.92)),
    linear-gradient(135deg, #a5d1f1, #52718c);
}

.brand-panel__image {
  position: absolute;
  inset: -18% 0;
  width: 100%;
  height: 136%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transform: translate3d(0, -6%, 0) scale(1.2);
  transition: transform 0.06s linear;
  will-change: transform;
}

.brand-panel--hero-shot .brand-panel__image {
  inset: -28% 0 -8%;
  height: 146%;
  object-position: center 42%;
  transform: translate3d(0, -2%, 0) scale(1.18);
}

.brand-panel--needle-free-shot .brand-panel__image {
  object-position: center 48%;
}

.brand-panel--recovery-shot .brand-panel__image {
  object-position: center 42%;
}

.brand-panel__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 250, 243, 0.08), rgba(19, 30, 40, 0.52)),
    radial-gradient(circle at center, rgba(18, 25, 34, 0.04), rgba(18, 25, 34, 0.24));
}

.brand-panel__overlay--warm {
  background:
    linear-gradient(180deg, rgba(237, 145, 95, 0.16), rgba(96, 33, 20, 0.44)),
    linear-gradient(90deg, rgba(18, 25, 34, 0.12), rgba(18, 25, 34, 0.02));
}

.brand-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.15) 1px, transparent 1px),
    radial-gradient(circle at 22% 22%, transparent 0 70px, rgba(255,255,255,0.13) 71px 72px, transparent 73px),
    radial-gradient(circle at 68% 68%, transparent 0 120px, rgba(255,255,255,0.12) 121px 122px, transparent 123px);
  background-size: 100% 100%, 100% 100%, 540px 540px, 780px 780px;
  pointer-events: none;
  opacity: 0.85;
}

.brand-panel__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: var(--brand-panel-height);
  width: 100%;
  margin: 0;
  padding: 72px 32px 64px;
  text-align: center;
}

.brand-panel--tall-copy .brand-panel__content {
  min-height: clamp(580px, 70svh, 760px);
  padding: 86px 32px 82px;
}

.brand-panel__copy {
  max-width: 900px;
  color: #fff;
  padding-left: 0;
  margin: 0 auto;
}

.brand-panel__eyebrow {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.brand-panel__copy h1,
.brand-panel__copy h2 {
  margin: 0;
  max-width: 12ch;
  color: #fff;
  font-size: clamp(3.6rem, 5.2vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  margin-inline: auto;
}

.brand-panel__copy h2 {
  font-size: clamp(3.2rem, 4.8vw, 5.2rem);
}

.brand-panel__copy p:last-child {
  margin: 28px 0 0;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.8;
  margin-inline: auto;
}

.brand-panel__cta {
  margin-top: 34px;
}

.brand-pill-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 84px;
  min-width: 220px;
  padding: 0 40px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.98);
  color: #111;
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: 700;
  box-shadow: 0 18px 34px rgba(18, 25, 34, 0.16);
}

.about-rootcare-page {
    background:
      radial-gradient(circle at top left, rgba(217, 162, 38, 0.08), transparent 18%),
      linear-gradient(180deg, #f7f2ea 0%, #f3ede4 100%);
  }

.about-rootcare-page .site-shell {
    width: min(100% - 40px, var(--rootcare-frame-desktop));
    max-width: var(--rootcare-frame-desktop);
  }

.about-rootcare-main {
    padding-bottom: 56px;
  }

.about-rootcare-page__section {
    padding: 26px 0 0;
  }

.about-rootcare-hero-shell {
    width: min(100% - 40px, var(--rootcare-frame-desktop));
    max-width: var(--rootcare-frame-desktop);
    margin: 0 auto;
  }

.about-rootcare-hero {
    position: relative;
    overflow: hidden;
    border-radius: 34px;
  min-height: 78vh;
  background: #ddd;
  box-shadow: 0 22px 46px rgba(31, 35, 40, 0.1);
}

.about-rootcare-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.about-rootcare-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 22, 0.66) 0%, rgba(17, 24, 22, 0.44) 38%, rgba(17, 24, 22, 0.08) 100%);
}

.about-rootcare-hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: end;
  min-height: 78vh;
  padding: 52px;
  color: #fff;
}

.about-rootcare-hero__copy {
  max-width: 740px;
}

.about-rootcare-eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: #f0cf9a;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.about-rootcare-hero h1 {
  margin: 0;
  font-size: clamp(2.6rem, 5vw, 5rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.about-rootcare-hero__role {
  margin: 14px 0 0;
  max-width: 680px;
  font-size: clamp(1.15rem, 2vw, 1.8rem);
  line-height: 1.3;
  font-weight: 650;
}

.about-rootcare-hero__intro {
  margin-top: 22px;
  max-width: 640px;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
}

.about-rootcare-hero__actions {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.about-rootcare-hero__actions .hub-button--secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px);
}

.about-rootcare-hero__actions .hub-button--secondary:hover,
.about-rootcare-hero__actions .hub-button--secondary:focus-visible {
  background: rgba(255, 255, 255, 0.18);
}

.about-rootcare-stack {
  margin-top: 22px;
  display: grid;
  gap: 18px;
}

.about-rootcare-card {
  padding: 32px;
  background: rgba(255, 253, 249, 0.95);
  border: 1px solid rgba(25, 59, 106, 0.08);
  border-radius: 30px;
  box-shadow: 0 18px 40px rgba(31, 35, 40, 0.06);
}

.about-rootcare-card h2 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 2.5vw, 2.3rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #10233f;
}

.about-rootcare-card p {
  margin: 0;
  color: var(--muted);
  font-size: 1.03rem;
}

.about-rootcare-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
}

.about-rootcare-soft-card {
  background: #f7f1e8;
  border: 1px solid rgba(25, 59, 106, 0.08);
  border-radius: 22px;
  padding: 22px;
}

.about-rootcare-soft-card h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  line-height: 1.2;
  color: #10233f;
}

.about-rootcare-soft-card p {
  color: var(--muted);
  font-size: 0.98rem;
}

.about-rootcare-bullets {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.about-rootcare-bullets li {
  position: relative;
  padding-left: 24px;
  color: var(--muted);
}

.about-rootcare-bullets li::before {
  content: "\2022";
  position: absolute;
  left: 6px;
  top: 0;
  color: var(--gold-deep);
  font-size: 1.2rem;
  line-height: 1.1;
  font-weight: 800;
}

.about-rootcare-text-gap {
  margin-top: 14px !important;
}

.about-rootcare-pills {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.about-rootcare-pill {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 999px;
  background: #f4eee3;
  border: 1px solid #ddd3c4;
  color: #33423d;
  font-size: 0.95rem;
  font-weight: 600;
}

.about-rootcare-card--cta {
  background: linear-gradient(90deg, #27463f, #17334d);
  border: 0;
}

.about-rootcare-card--cta h2 {
  color: #fff;
}

.about-rootcare-card--cta p {
  color: rgba(255, 255, 255, 0.84);
  max-width: 760px;
}

.about-rootcare-cta-actions {
  margin-top: 22px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.about-rootcare-card--cta .hub-button--secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.about-rootcare-card--cta .hub-button--secondary:hover {
  background: rgba(255, 255, 255, 0.16);
}

.contact-rootcare-page {
  background:
    radial-gradient(circle at top right, rgba(198, 136, 59, 0.08), transparent 24%),
    linear-gradient(180deg, #f7f2ea 0%, #f3ede4 100%);
}

.contact-rootcare-main {
  padding-bottom: 56px;
}

.contact-rootcare-page__section {
  padding: 24px 0 0;
}

.contact-rootcare-stack {
  display: grid;
  gap: 18px;
}

.contact-rootcare-card {
  background: rgba(255, 253, 249, 0.95);
  border: 1px solid rgba(25, 59, 106, 0.08);
  border-radius: 30px;
  box-shadow: 0 18px 40px rgba(31, 35, 40, 0.06);
  padding: 32px;
}

.contact-rootcare-card--hero {
  background:
    radial-gradient(circle at top right, rgba(198, 136, 59, 0.08), transparent 28%),
    linear-gradient(135deg, rgba(35, 58, 52, 0.02), rgba(35, 58, 52, 0)),
    rgba(255, 253, 249, 0.98);
}

.contact-rootcare-eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--gold-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-rootcare-eyebrow--light {
  color: #f0d1a1;
}

.contact-rootcare-card h1,
.contact-rootcare-card h2,
.contact-rootcare-card h3 {
  margin: 0;
  color: #10233f;
  letter-spacing: -0.03em;
}

.contact-rootcare-card h1 {
  font-size: clamp(2.2rem, 4.5vw, 4.4rem);
  line-height: 0.96;
  max-width: 760px;
}

.contact-rootcare-card h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  line-height: 1.08;
}

.contact-rootcare-card h3 {
  font-size: 1.15rem;
  line-height: 1.2;
}

.contact-rootcare-hero-copy {
  max-width: 760px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.08rem;
}

.contact-rootcare-hero-actions,
.contact-rootcare-cta-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-rootcare-section-head {
  margin-bottom: 18px;
}

.contact-rootcare-section-sub {
  margin: 10px 0 0;
  max-width: 760px;
  color: var(--muted);
}

.contact-rootcare-action-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.contact-rootcare-action-card {
  display: block;
  min-height: 210px;
  padding: 22px;
  background: #f8f3ea;
  border: 1px solid #e6dccf;
  border-radius: 22px;
  transition: 0.18s ease;
  text-decoration: none;
}

.contact-rootcare-action-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-deep);
  box-shadow: 0 14px 28px rgba(31, 44, 42, 0.08);
  background: #fbf7f0;
}

.contact-rootcare-action-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  background: #f1eadf;
  color: var(--gold-deep);
  font-size: 20px;
  font-weight: 700;
}

.contact-rootcare-action-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.5;
}

.contact-rootcare-action-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--gold-deep);
  font-weight: 700;
  font-size: 0.96rem;
}

.contact-rootcare-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.contact-rootcare-two-col--contact {
  align-items: stretch;
}

.contact-rootcare-soft-card {
  background: #f8f3ea;
  border: 1px solid #e6dccf;
  border-radius: 22px;
  padding: 24px;
}

.contact-rootcare-card--qr {
  background:
    radial-gradient(circle at top right, rgba(198, 136, 59, 0.08), transparent 28%),
    linear-gradient(180deg, #fffdf9 0%, #f8f3ea 100%);
}

.contact-rootcare-qr-wrap {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  padding: 18px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid #e3d8cb;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

.contact-rootcare-qr-image {
  width: min(100%, 320px);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid #ddd2c3;
  background: #fff;
}

.contact-rootcare-qr-note {
  margin: 16px 0 0;
  color: #66706c;
  font-size: 0.98rem;
}

.contact-rootcare-info-list,
.contact-rootcare-expect-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.contact-rootcare-info-list li strong,
.contact-rootcare-expect-list li strong {
  display: block;
  margin-bottom: 4px;
  color: #10233f;
  font-size: 1rem;
}

.contact-rootcare-info-list li span,
.contact-rootcare-expect-list li span {
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.5;
}

.contact-rootcare-expect-list li {
  position: relative;
  padding-left: 22px;
}

.contact-rootcare-expect-list li::before {
  content: "\2022";
  position: absolute;
  left: 6px;
  top: 0;
  color: var(--gold-deep);
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.1;
}

.contact-rootcare-map-card {
  margin-top: 16px;
  min-height: 260px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid #ccbba5;
  background: #faf6ef;
}

.contact-rootcare-map-embed {
  display: block;
  width: 100%;
  min-height: 360px;
  border: 0;
}

.contact-rootcare-map-copy strong {
  display: block;
  margin-bottom: 8px;
  color: #10233f;
}

.contact-rootcare-map-copy span {
  display: block;
}

.contact-rootcare-map-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
}

.contact-rootcare-map-link {
  color: var(--gold-deep);
  font-weight: 700;
  text-decoration: none;
}

.contact-rootcare-form {
  display: grid;
  gap: 18px;
}

.contact-rootcare-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.contact-rootcare-field {
  display: grid;
  gap: 8px;
}

.contact-rootcare-field span {
  color: #10233f;
  font-size: 0.95rem;
  font-weight: 700;
}

.contact-rootcare-field input,
.contact-rootcare-field select,
.contact-rootcare-field textarea {
  width: 100%;
  border: 1px solid rgba(25, 59, 106, 0.14);
  border-radius: 18px;
  background: #fff;
  color: #243243;
  font: inherit;
  padding: 14px 16px;
  resize: vertical;
}

.contact-rootcare-field input:focus,
.contact-rootcare-field select:focus,
.contact-rootcare-field textarea:focus {
  outline: 2px solid rgba(198, 136, 59, 0.18);
  border-color: rgba(198, 136, 59, 0.6);
}

.contact-rootcare-field--full {
  grid-column: 1 / -1;
}

.contact-rootcare-form-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.contact-rootcare-form-note {
  margin: 0;
  color: var(--muted);
}

.contact-rootcare-form-status {
  margin: 0;
  min-height: 24px;
  font-weight: 700;
}

.contact-rootcare-form-status.is-pending {
  color: #7f683f;
}

.contact-rootcare-form-status.is-success {
  color: #285c42;
}

.contact-rootcare-form-status.is-error {
  color: #a03e35;
}

.contact-rootcare-card--cta {
  background: linear-gradient(90deg, #27463f, #17334d);
  border: none;
}

.contact-rootcare-card--cta h2 {
  color: #fff;
}

.contact-rootcare-card--cta p {
  margin: 12px 0 0;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.82);
}

.contact-rootcare-card--cta .hub-button--secondary {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
}

.contact-rootcare-card--cta .hub-button--secondary:hover {
  background: rgba(255,255,255,0.16);
}

.brand-footer {
  padding: 46px 0 34px;
  background: #ffffff;
  border-top: 1px solid rgba(16, 35, 63, 0.08);
}

.brand-footer__inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 34px;
  align-items: start;
}

.brand-footer__brand {
  display: inline-block;
  margin-bottom: 12px;
  color: #3f4549;
  font-size: 1.55rem;
  font-weight: 700;
  text-decoration: none;
}

.brand-footer__col h3 {
  margin: 0 0 18px;
  color: #3f4549;
  font-size: 1rem;
  font-weight: 700;
}

.brand-footer__col p,
.brand-footer__col a {
  display: block;
  margin: 0 0 12px;
  color: #5f666d;
  font-size: 1rem;
  line-height: 1.7;
  text-decoration: none;
}

.brand-footer__copyright {
  margin: 22px 0 0;
  color: #7a7f85;
  font-size: 0.88rem;
}

@media (max-width: 1040px) {
  .contact-rootcare-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-rootcare-two-col {
    grid-template-columns: 1fr;
  }

  .contact-rootcare-form-grid {
    grid-template-columns: 1fr;
  }

  .about-rootcare-grid {
    grid-template-columns: 1fr;
  }

  .about-rootcare-hero,
  .about-rootcare-hero__content {
    min-height: 68vh;
  }

  .brand-feature,
  .brand-feature--quiz {
    min-height: auto;
  }

  .brand-footer__inner {
    grid-template-columns: 1fr;
  }

  .brand-panel {
    position: relative;
    height: auto;
    min-height: 520px;
  }

  .brand-panel--tall-copy {
    height: auto;
  }

  .brand-frame {
    width: min(100% - 40px, var(--rootcare-frame-desktop));
  }

  .brand-feature .brand-frame {
    width: 100%;
  }

  .brand-panel__content {
    min-height: 520px;
    padding: 64px 36px 56px;
    width: 100%;
  }

  .brand-panel--tall-copy .brand-panel__content {
    min-height: 560px;
    padding: 74px 36px 66px;
  }

  .brand-panel__copy h1,
  .brand-panel__copy h2 {
    max-width: none;
  }

  .brand-panel__copy {
    padding-left: 0;
  }

  .brand-panel__cta {
    margin-top: 28px;
  }
}

@media (max-width: 1200px) {
  .brand-panel__content {
    padding: 80px 48px 68px;
  }

  .brand-panel__copy h1,
  .brand-panel__copy h2 {
    max-width: 12ch;
  }
}

@media (max-width: 640px) {
  .brand-home-page {
    --brand-panel-height: 460px;
  }

  .about-rootcare-main {
    padding-bottom: 40px;
  }

  .contact-rootcare-main {
    padding-bottom: 40px;
  }

  .contact-rootcare-page__section {
    padding-top: 16px;
  }

  .contact-rootcare-card {
    padding: 22px;
  }

  .contact-rootcare-action-grid {
    grid-template-columns: 1fr;
  }

  .contact-rootcare-hero-actions,
  .contact-rootcare-cta-actions {
    flex-direction: column;
  }

  .contact-rootcare-hero-actions .hub-button,
  .contact-rootcare-cta-actions .hub-button {
    width: 100%;
  }

  .contact-rootcare-map-card {
    min-height: 220px;
  }

  .contact-rootcare-map-embed {
    min-height: 280px;
  }

  .contact-rootcare-map-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-rootcare-form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .about-rootcare-page__section {
      padding-top: 16px;
    }

  .about-rootcare-hero-shell {
      width: min(100% - 24px, var(--rootcare-frame-desktop));
    }

  .about-rootcare-page .portal-main-nav {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 0;
      padding: 0 8px;
    }

  .about-rootcare-page .portal-main-nav a {
      min-width: 0;
      padding: 12px 8px;
      font-size: 0.8rem;
      line-height: 1.2;
      text-align: center;
    }

  .about-rootcare-hero {
      min-height: auto;
      display: grid;
      grid-template-rows: minmax(360px, 56vh) auto;
    }

  .about-rootcare-hero__overlay {
      background: linear-gradient(180deg, rgba(17, 24, 22, 0.08) 0%, rgba(17, 24, 22, 0.12) 100%);
    }

  .about-rootcare-hero__image {
      position: relative;
      display: block;
      width: 100%;
      height: 100%;
      object-position: center 26%;
    }

  .about-rootcare-hero__content {
        min-height: auto;
        padding: 20px 18px 22px;
        align-items: flex-start;
        color: #10233f;
        background: linear-gradient(180deg, rgba(255, 253, 249, 0.98) 0%, rgba(248, 243, 234, 0.98) 100%);
    }

  .about-rootcare-hero__copy {
      max-width: none;
    }

  .about-rootcare-hero h1 {
      font-size: clamp(2.1rem, 10vw, 3rem);
      color: #10233f;
    }

  .about-rootcare-hero__role {
      max-width: none;
      font-size: 1rem;
      line-height: 1.3;
      color: #243243;
    }

  .about-rootcare-hero__intro {
      max-width: none;
      font-size: 0.92rem;
      line-height: 1.45;
      color: #5d676e;
    }

    .about-rootcare-card {
      padding: 22px;
    }

  .about-rootcare-hero__actions,
  .about-rootcare-cta-actions {
    flex-direction: column;
  }

  .about-rootcare-hero__actions .hub-button,
    .about-rootcare-cta-actions .hub-button {
      width: 100%;
    }

  .about-rootcare-eyebrow {
      color: #b07a34;
    }

  .about-rootcare-hero__actions .hub-button--secondary {
      background: #eef1ef;
      color: #10233f;
      border: 1px solid #d7ddda;
      backdrop-filter: none;
    }

  .about-rootcare-hero__actions .hub-button--secondary:hover,
  .about-rootcare-hero__actions .hub-button--secondary:focus-visible {
      background: #e6ebe8;
    }

  .brand-home-page .site-shell,
  .about-rootcare-page .site-shell {
      width: min(100% - 24px, var(--content));
      max-width: var(--content);
    }

  .brand-frame {
    width: min(100% - 24px, var(--rootcare-frame-desktop));
  }

  .brand-header {
    padding: 20px 0 18px;
  }

  .brand-header__sub {
    font-size: 0.74rem;
    letter-spacing: 0.24em;
    text-align: center;
  }

  .brand-panel,
  .brand-panel__content {
    min-height: 460px;
  }

  .brand-panel__content {
    padding: 48px 24px 40px;
    width: 100%;
  }

  .brand-panel--tall-copy .brand-panel__content {
    min-height: 520px;
    padding: 56px 24px 48px;
  }

  .brand-panel__copy {
    padding-left: 0;
  }

  .brand-panel__copy h1,
  .brand-panel__copy h2 {
    font-size: 2.5rem;
  }

  .brand-panel__copy p:last-child {
    font-size: 1rem;
  }

  .brand-pill-button {
    min-height: 72px;
    width: 100%;
    padding: 0 28px;
  }

  .portal-header {
    border-radius: 26px;
  }

  .portal-header__top {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    padding: 18px 14px 14px;
  }

  .portal-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid rgba(17, 31, 53, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 20px rgba(22, 27, 33, 0.08);
    cursor: pointer;
  }

  .portal-menu-toggle span:not(.sr-only) {
    display: block;
    width: 18px;
    height: 2px;
    margin: 2px 0;
    border-radius: 999px;
    background: #193b6a;
  }

  .portal-brand {
    min-width: 0;
    gap: 8px;
  }

  .portal-brand__logo {
    width: 52px;
    height: 52px;
  }

  .portal-brand__text {
    margin-left: 0;
    min-width: 0;
  }

  .portal-brand__mark {
    font-size: 1.4rem;
  }

  .portal-brand__sub {
    display: none;
  }

  .portal-header__nav-wrap {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 14px;
    border-top: 1px solid rgba(17, 31, 53, 0.08);
    border-bottom: 0;
    background: rgba(255, 255, 255, 0.9);
  }

  .portal-header.is-open .portal-header__nav-wrap {
    display: flex;
  }

  .portal-main-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .portal-main-nav a,
  .about-rootcare-page .portal-main-nav a {
    min-width: 0;
    padding: 10px 8px;
    border: 1px solid rgba(17, 31, 53, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.94);
    text-align: center;
    font-size: 0.78rem;
    line-height: 1.2;
  }

  .portal-header__cta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 0;
  }

  .portal-header__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 1;
  }

  .portal-header__button--secondary {
    background: rgba(25, 59, 106, 0.08);
    color: #193b6a;
    border: 1px solid rgba(25, 59, 106, 0.1);
  }

  .portal-header__button--primary {
    background: #193b6a;
    color: #fff;
    border: 1px solid rgba(25, 59, 106, 0.16);
  }
}

.portal-menu-toggle {
  display: none;
}

.portal-header__nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 28px;
  border-top: 1px solid rgba(17, 31, 53, 0.08);
  border-bottom: 1px solid rgba(17, 31, 53, 0.08);
  background: rgba(255, 255, 255, 0.72);
}

.portal-header__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  padding: 12px 0;
}

.portal-header__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1;
}

.portal-header__button--secondary {
  background: rgba(25, 59, 106, 0.045);
  color: #25486f;
  border: 1px solid rgba(25, 59, 106, 0.08);
}

.portal-header__button--primary {
  background: #193b6a;
  color: #fff;
  border: 1px solid rgba(25, 59, 106, 0.16);
}

.portal-main-nav {
  flex: 1 1 auto;
  gap: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

@media (max-width: 900px) {
  .portal-header__nav-wrap {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-bottom: 14px;
  }

  .portal-main-nav {
    justify-content: center;
  }

  .portal-header__cta {
    justify-content: center;
    padding-top: 2px;
  }
}

@media (max-width: 640px) {
  .portal-header {
    border-radius: 24px;
    overflow: hidden;
  }

  .portal-header__top {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 16px 16px 14px;
  }

  .portal-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(17, 31, 53, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 8px 18px rgba(22, 27, 33, 0.08);
  }

  .portal-menu-toggle span:not(.sr-only) {
    display: block;
    width: 18px;
    height: 2px;
    margin: 0;
    border-radius: 999px;
    background: #193b6a;
  }

  .portal-brand {
    min-width: 0;
    gap: 10px;
  }

  .portal-brand__logo {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    object-fit: cover;
    background: transparent;
  }

  .portal-brand__text {
    margin-left: 0;
    min-width: 0;
  }

  .portal-brand__mark {
    font-size: 1.25rem;
    line-height: 1.05;
  }

  .portal-brand__sub {
    display: none;
  }

  .portal-header__nav-wrap {
    display: none;
    padding: 4px 16px 16px;
    border-top: 1px solid rgba(17, 31, 53, 0.06);
    border-bottom: 0;
    background: rgba(255, 255, 255, 0.96);
  }

  .portal-header.is-open .portal-header__nav-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .portal-main-nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
  }

  .portal-main-nav a,
  .about-rootcare-page .portal-main-nav a {
    padding: 14px 4px;
    border: 0;
    border-bottom: 1px solid rgba(17, 31, 53, 0.08);
    border-radius: 0;
    background: transparent;
    text-align: left;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.25;
    color: #243243;
  }

  .portal-header__cta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 8px 0 0;
  }

  .portal-header__button {
    width: 100%;
    min-height: 44px;
    padding: 0 14px;
    font-size: 0.92rem;
  }

  .brand-panel,
  .brand-panel__content {
    min-height: 420px;
  }

  .brand-panel__content {
    justify-content: flex-end;
    align-items: flex-start;
    padding: 40px 20px 28px;
  }

  .brand-panel--tall-copy .brand-panel__content {
    min-height: 460px;
    padding: 46px 20px 32px;
  }

  .brand-panel__copy {
    max-width: 270px;
    padding-left: 0;
    text-align: left;
  }

  .brand-panel__copy h1,
  .brand-panel__copy h2 {
    max-width: 8ch;
    font-size: clamp(2rem, 10vw, 2.85rem);
    line-height: 0.96;
  }

  .brand-panel__copy p:last-child {
    margin-top: 14px;
    max-width: 18rem;
    font-size: 0.96rem;
    line-height: 1.45;
  }

  .brand-panel__cta {
    width: 100%;
    margin-top: 18px;
    justify-content: flex-start;
  }

  .brand-pill-button {
    min-height: 58px;
    width: auto;
    padding: 0 28px;
  }
}

/* Premium system refinements */
.site-shell {
  width: min(100% - 40px, var(--content));
}

.portal-header {
  border-radius: 36px;
  border-color: rgba(17, 31, 53, 0.07);
  box-shadow: 0 26px 46px rgba(22, 27, 33, 0.08);
  backdrop-filter: blur(10px);
}

.portal-header__top {
  gap: 14px;
  padding: 30px 34px 24px;
}

.portal-brand__logo {
  width: 86px;
  height: 86px;
}

.portal-brand__text {
  gap: 3px;
}

.portal-brand__mark {
  letter-spacing: -0.055em;
}

.portal-brand__sub {
  line-height: 1.3;
}

.portal-header__nav-wrap {
  gap: 20px;
  padding: 0 32px;
}

.portal-main-nav a {
  padding: 18px 15px;
  font-size: 0.94rem;
  line-height: 1.15;
}

.portal-header__cta {
  gap: 12px;
  padding: 13px 0;
}

.portal-header__button {
  min-height: 44px;
  padding: 0 20px;
  box-shadow: 0 10px 18px rgba(22, 27, 33, 0.06);
}

.portal-header__button--secondary,
.hub-button--secondary {
  background: rgba(25, 59, 106, 0.045);
  border-color: rgba(25, 59, 106, 0.09);
  color: #27476d;
  box-shadow: 0 8px 16px rgba(22, 27, 33, 0.04);
}

.portal-header__button--primary,
.hub-button--primary {
  box-shadow: 0 14px 24px rgba(25, 59, 106, 0.18);
}

.hub-button {
  min-height: 52px;
  padding: 15px 26px;
  font-size: 0.96rem;
  letter-spacing: -0.01em;
}

.site-footer {
  padding: 8px 0 38px;
}

.site-footer__inner {
  gap: 24px;
  padding: 28px 32px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(25, 59, 106, 0.07);
  box-shadow: 0 18px 34px rgba(22, 27, 33, 0.06);
}

.site-footer__brand-link {
  margin-bottom: 6px;
}

.site-footer__nav {
  gap: 16px;
}

.site-footer__links {
  gap: 12px;
}

.site-footer__icon-link,
.site-footer__email-link {
  min-height: 46px;
  border-color: rgba(25, 59, 106, 0.09);
}

.brand-panel__content {
  padding: 82px 38px 72px;
}

.brand-panel--tall-copy .brand-panel__content {
  padding: 94px 38px 86px;
}

.brand-panel__copy {
  max-width: 940px;
}

.brand-panel__copy p:last-child {
  max-width: 780px;
}

.brand-panel__cta {
  margin-top: 38px;
}

.brand-pill-button {
  min-height: 88px;
  min-width: 228px;
  padding: 0 42px;
  box-shadow: 0 22px 40px rgba(18, 25, 34, 0.16);
}

@media (min-width: 1080px) {
  .brand-home {
    display: grid;
    gap: 18px;
    padding: 8px 0 0;
  }

  .brand-feature {
    min-height: auto;
    padding: 0;
  }

  .brand-feature .brand-frame {
    width: min(calc(100% - 56px), 1200px);
    max-width: 1200px;
    margin-inline: auto;
  }

  .brand-panel {
    position: relative;
    top: auto;
    height: clamp(430px, 56svh, 560px);
    min-height: 430px;
    border-radius: 28px;
    box-shadow:
      0 24px 44px rgba(22, 27, 33, 0.09),
      0 1px 0 rgba(255, 255, 255, 0.42) inset;
  }

  .brand-panel--tall-copy {
    height: clamp(430px, 56svh, 560px);
  }

  .brand-panel__content,
  .brand-panel--tall-copy .brand-panel__content {
    min-height: clamp(430px, 56svh, 560px);
    padding: 72px 42px 62px;
  }

  .brand-panel__copy {
    max-width: 860px;
  }

  .brand-panel__copy h1,
  .brand-panel__copy h2 {
    max-width: 12ch;
  }

  .brand-panel__copy p:last-child {
    max-width: 700px;
  }

  .brand-panel__cta {
    margin-top: 30px;
  }
}

@media (max-width: 900px) {
  .portal-header__top {
    padding: 24px 24px 20px;
  }

  .portal-header__nav-wrap {
    padding: 0 24px 14px;
  }

  .portal-main-nav a {
    padding: 14px 10px;
    font-size: 0.86rem;
  }

  .site-footer__inner {
    padding: 24px 24px 26px;
  }
}

@media (max-width: 640px) {
  .site-shell {
    width: min(100% - 24px, var(--content));
  }

  .portal-header {
    border-radius: 26px;
  }

  .portal-header__top {
    padding: 16px 16px 14px;
  }

  .portal-menu-toggle {
    width: 46px;
    height: 46px;
  }

  .portal-header__nav-wrap {
    padding: 6px 16px 18px;
  }

  .portal-main-nav a,
  .about-rootcare-page .portal-main-nav a {
    padding: 15px 2px;
    font-size: 0.96rem;
  }

  .portal-header__button,
  .hub-button {
    min-height: 46px;
  }

  .site-footer {
    padding-bottom: 24px;
  }

  .site-footer__inner {
    padding: 22px 18px 24px;
    border-radius: 24px;
  }

  .brand-panel__content {
    padding: 46px 22px 30px;
  }

  .brand-panel--tall-copy .brand-panel__content {
    padding: 50px 22px 34px;
  }

  .brand-panel__copy {
    max-width: 292px;
  }

  .brand-pill-button {
    min-height: 60px;
    padding: 0 30px;
  }
}

/* Clinical page premium refinements */
.clinical-shell .pattern-grid,
.clinical-shell .pain-compare-box,
.clinical-shell .pain-treatment-box,
.clinical-shell .pain-cta-box {
  margin-top: 24px;
}

.clinical-hero {
  gap: 22px;
  margin-bottom: 22px;
  padding: 34px 36px;
  box-shadow: 0 18px 38px rgba(21, 35, 54, 0.06);
}

.clinical-hero__copy,
.clinical-hero__summary,
.clinical-overview__card,
.clinical-section-intro,
.clinical-panel {
  padding: 34px 36px;
  box-shadow: 0 18px 38px rgba(21, 35, 54, 0.06);
}

.clinical-hero__summary {
  padding-left: 28px;
}

.clinical-hero__copy h1 {
  letter-spacing: -0.05em;
}

.clinical-hero__summary--checklist .pain-list li {
  margin-bottom: 16px;
  line-height: 1.56;
}

.pain-protocol-card {
  padding: 16px;
  border-radius: 22px;
  box-shadow: 0 14px 28px rgba(21, 35, 54, 0.05);
}

.pain-protocol-card img {
  border-radius: 18px;
}

@media (max-width: 640px) {
  .clinical-shell .pattern-grid,
  .clinical-shell .pain-compare-box,
  .clinical-shell .pain-treatment-box,
  .clinical-shell .pain-cta-box {
    margin-top: 20px;
  }

  .clinical-hero {
    padding: 24px 20px;
    gap: 20px;
    margin-bottom: 20px;
  }

  .clinical-hero__copy,
  .clinical-hero__summary,
  .clinical-overview__card,
  .clinical-section-intro,
  .clinical-panel,
  .pain-treatment-box,
  .pain-compare-box,
  .pain-cta-box {
    padding: 24px 20px;
  }

  .clinical-hero__summary {
    padding: 20px 0 0;
  }

  .clinical-hero__copy h1 {
    font-size: clamp(2.15rem, 10vw, 2.6rem);
  }

  .clinical-hero__copy h2,
  .clinical-overview__card h2,
  .clinical-section-intro h2,
  .pain-explainer h2,
  .pain-identity-box h2,
  .pain-cause-card h3 {
    line-height: 1.1;
  }

  .pain-protocol-card {
    padding: 14px;
    border-radius: 20px;
  }
}

/* Final premium frame alignment pass */
@media (min-width: 1080px) {
  :root {
    --content: 1480px;
  }

  .hub-page--portal .site-shell,
  .site-footer,
  .site-footer > .site-shell,
  .site-footer__inner {
    width: min(100% - 40px, var(--content)) !important;
    max-width: var(--content) !important;
    margin-inline: auto;
  }

  .portal-header {
    border-radius: 38px;
  }

  .portal-header__top {
    padding: 30px 36px 24px;
  }

  .portal-header__nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 0 36px;
  }

  .portal-main-nav {
    flex: 1 1 auto;
    min-width: 0;
    flex-wrap: nowrap;
    justify-content: flex-start;
  }

  .portal-main-nav a,
  .about-rootcare-page .portal-main-nav a {
    white-space: nowrap;
    padding: 18px 11px;
    font-size: 0.92rem;
    line-height: 1.1;
    letter-spacing: -0.01em;
  }

  .portal-header__cta {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 12px;
    padding: 12px 0;
  }

  .portal-header__button {
    min-height: 46px;
    padding: 0 18px;
    font-size: 0.89rem;
    line-height: 1;
    white-space: nowrap;
  }

  .site-footer {
    padding-bottom: 42px;
  }

  .site-footer__inner {
    padding: 30px 36px;
    border-radius: 32px;
  }

  .site-footer__copyright {
    width: min(100% - 40px, var(--content));
    margin: 12px auto 0;
  }
}

/* Design director pass: unify portal header/footer/content frame on desktop */
@media (min-width: 1080px) {
  :root {
    --content: 1480px;
  }

  .hub-page--portal .site-shell,
  .site-footer,
  .site-footer > .site-shell,
  .site-footer__inner,
  .site-footer__copyright {
    width: min(100% - 40px, var(--content)) !important;
    max-width: var(--content) !important;
    margin-inline: auto;
  }

  .portal-header {
    border-radius: 40px;
  }

  .portal-header__top {
    padding: 30px 40px 24px;
  }

  .portal-header__nav-wrap {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    padding: 0 40px;
  }

  .portal-main-nav {
    display: flex;
    flex-wrap: nowrap !important;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
    overflow: hidden;
    padding: 0;
    border-top: 1px solid rgba(17, 31, 53, 0.08);
    border-bottom: 1px solid rgba(17, 31, 53, 0.08);
  }

  .portal-main-nav a,
  .about-rootcare-page .portal-main-nav a {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 18px 10px;
    font-size: 0.9rem;
    line-height: 1.1;
    letter-spacing: -0.01em;
  }

  .portal-header__cta {
    display: inline-flex !important;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 12px;
    padding: 10px 0;
  }

  .portal-header__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    font-size: 0.88rem;
    line-height: 1;
    white-space: nowrap;
  }

  .site-footer {
    padding-bottom: 44px;
  }

  .site-footer__inner {
    padding: 30px 40px;
    border-radius: 34px;
  }

  .site-footer__brand {
    gap: 16px;
  }

  .site-footer__nav {
    gap: 18px;
  }

  .site-footer__links {
    gap: 14px;
  }

  .site-footer__icon-link,
  .site-footer__email-link {
    min-height: 46px;
    padding-inline: 18px;
    white-space: nowrap;
  }

  .site-footer__copyright {
    padding-inline: 4px;
  }
}

/* Home card alignment lock: keep all homepage feature cards on the same width system */
@media (min-width: 641px) {
  .brand-home-page .brand-feature > .brand-frame {
    width: min(calc(100% - 40px), var(--content)) !important;
    max-width: var(--content) !important;
    margin-inline: auto !important;
  }

  .brand-home-page .brand-feature > .brand-frame > .brand-panel {
    width: 100% !important;
    margin-inline: 0 !important;
  }
}

@media (max-width: 640px) {
  .brand-home-page .brand-feature > .brand-frame {
    width: min(calc(100% - 24px), var(--content)) !important;
    max-width: var(--content) !important;
    margin-inline: auto !important;
  }

  .brand-home-page .brand-feature > .brand-frame > .brand-panel {
    width: 100% !important;
    margin-inline: 0 !important;
  }
}

/* Home template reset: one consistent card system */
.brand-home-page .brand-home {
  display: grid !important;
  gap: 14px !important;
  padding: 8px 0 0 !important;
}

.brand-home-page .brand-feature {
  min-height: auto !important;
  padding: 0 !important;
  overflow: visible !important;
}

.brand-home-page .brand-feature > .brand-frame > .brand-panel,
.brand-home-page .brand-feature > .brand-frame > .brand-panel.brand-panel--tall-copy {
  position: relative !important;
  top: auto !important;
  height: auto !important;
  min-height: 500px !important;
  border-radius: 24px !important;
  overflow: hidden !important;
}

.brand-home-page .brand-panel__content,
.brand-home-page .brand-panel--tall-copy .brand-panel__content {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 22px !important;
  min-height: 500px !important;
  padding: 46px 34px 42px !important;
  width: 100% !important;
  text-align: center !important;
}

.brand-home-page .brand-panel__copy {
  width: 100% !important;
  max-width: 760px !important;
  margin: 0 auto !important;
}

.brand-home-page .brand-panel__eyebrow {
  margin: 0 0 14px !important;
  font-size: 0.74rem !important;
  letter-spacing: 0.18em !important;
}

.brand-home-page .brand-panel__copy h1,
.brand-home-page .brand-panel__copy h2 {
  margin: 0 auto !important;
  max-width: 12.5ch !important;
  font-size: clamp(2.7rem, 4vw, 4rem) !important;
  line-height: 0.96 !important;
  letter-spacing: -0.045em !important;
}

.brand-home-page .brand-panel__copy p:last-child {
  margin: 18px auto 0 !important;
  max-width: 48ch !important;
  font-size: clamp(0.96rem, 1.1vw, 1.05rem) !important;
  line-height: 1.6 !important;
}

.brand-home-page .brand-panel__cta {
  display: grid !important;
  justify-items: center !important;
  gap: 10px !important;
  margin-top: 0 !important;
  width: 100% !important;
}

.brand-home-page .brand-pill-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 54px !important;
  min-width: 0 !important;
  padding: 0 24px !important;
  font-size: 0.88rem !important;
  line-height: 1.1 !important;
  box-shadow: 0 14px 24px rgba(18, 25, 34, 0.14) !important;
}

.brand-home-page .brand-panel__note {
  display: block !important;
  margin: 0 !important;
  max-width: 34ch !important;
  color: rgba(255, 255, 255, 0.82) !important;
  font-size: 0.8rem !important;
  line-height: 1.45 !important;
}

@media (min-width: 1080px) {
  .brand-home-page .brand-home {
    gap: 12px !important;
  }

  .brand-home-page .brand-feature > .brand-frame > .brand-panel,
  .brand-home-page .brand-feature > .brand-frame > .brand-panel.brand-panel--tall-copy {
    min-height: 520px !important;
  }

  .brand-home-page .brand-panel__content,
  .brand-home-page .brand-panel--tall-copy .brand-panel__content {
    min-height: 520px !important;
    padding: 48px 38px 44px !important;
  }
}

@media (max-width: 640px) {
  .brand-home-page .brand-home {
    gap: 10px !important;
  }

  .brand-home-page .brand-feature > .brand-frame > .brand-panel,
  .brand-home-page .brand-feature > .brand-frame > .brand-panel.brand-panel--tall-copy {
    min-height: 420px !important;
  }

  .brand-home-page .brand-panel__content,
  .brand-home-page .brand-panel--tall-copy .brand-panel__content {
    min-height: 420px !important;
    gap: 18px !important;
    padding: 34px 22px 30px !important;
  }

  .brand-home-page .brand-panel__copy h1,
  .brand-home-page .brand-panel__copy h2 {
    max-width: 11.2ch !important;
    font-size: clamp(2.15rem, 8.5vw, 2.9rem) !important;
  }

  .brand-home-page .brand-panel__copy p:last-child {
    margin-top: 14px !important;
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
  }

  .brand-home-page .brand-pill-button {
    min-height: 48px !important;
    padding: 0 18px !important;
    font-size: 0.82rem !important;
  }

  .brand-home-page .brand-panel__note {
    max-width: 30ch !important;
    font-size: 0.75rem !important;
  }
}
