:root {
  --navbar-height: 61px;
  /* Space between nav trigger and mega panel (Appnox-style “floating” menu) */
  --nav-dropdown-gap: 26px;
  --nav-dropdown-radius: 16px;
  --nav-dropdown-shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
}

/* ========== Navigation ========== */
.navbar {
  background-color: var(--white);
  border-bottom: 1px solid var(--gray);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar--menu-open {
  z-index: 250;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--md) var(--gutter);
  position: relative;
}

.navbar .logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  line-height: 0;
  opacity: 1;
  width: auto;
}

.navbar .logo__mark {
  height: 50px;
  width: auto;
  max-width: none;
  display: block;
}

.nav-links {
  display: flex;
  gap: var(--md);
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-item {
  position: relative;
}

.nav-item > a {
  color: var(--charcoal);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
}

.nav-item > a:hover {
  color: var(--primary);
}

.nav-item--active > a,
.nav-links > a.nav-link--active,
.nav-item > a.nav-link--active {
  color: var(--primary);
}

.dropdown-toggle svg {
  transition: transform 0.3s ease;
  stroke-width: 2;
}

.nav-item:hover .dropdown-toggle svg {
  transform: rotate(180deg);
}

/* Invisible hover bridge so the gap under the nav doesn’t close the menu */
.dropdown::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: calc(-1 * var(--nav-dropdown-gap));
  height: var(--nav-dropdown-gap);
}

/* Dropdown Menu */
.dropdown {
  position: absolute;
  top: calc(100% + var(--nav-dropdown-gap));
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background-color: var(--white);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--nav-dropdown-radius);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 3vw, 2.25rem);
  padding: clamp(1.25rem, 2.5vw, 2rem);
  width: fit-content;
  max-width: min(920px, calc(100vw - 32px));
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease, transform 0.28s ease;
  pointer-events: none;
  box-shadow: var(--nav-dropdown-shadow);
  z-index: 1000;
  white-space: normal;
}

.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* Services: align to trigger (avoids clipping when centered) + stable 3-col width */
.dropdown.dropdown-mega--services {
  left: 0;
  right: auto;
  transform: translateX(0) translateY(-8px);
  width: min(720px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.nav-item:hover .dropdown.dropdown-mega--services {
  transform: translateX(0) translateY(0);
}

.dropdown-lg {
  position: absolute;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) translateY(-8px) !important;
  width: min(1120px, calc(100vw - 40px)) !important;
  max-width: min(1120px, calc(100vw - 40px)) !important;
  background-color: var(--white);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--nav-dropdown-radius);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
  padding: clamp(1.25rem, 2.5vw, 2rem);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease, transform 0.28s ease;
  box-shadow: var(--nav-dropdown-shadow);
  z-index: 1000;
  white-space: normal;
  top: calc(100% + var(--nav-dropdown-gap));
  align-items: start;
}

.dropdown-lg.dropdown-mega--who {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  width: min(1280px, calc(100vw - 40px)) !important;
  max-width: min(1280px, calc(100vw - 40px)) !important;
}

.nav-item:hover .dropdown-lg {
  transform: translateX(-50%) translateY(0) !important;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.dropdown-column {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
}

/* Appnox-style pastel column headers */
.dropdown-mega__head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--charcoal);
  margin: 0;
}

.dropdown-mega__head-icon {
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--charcoal);
  opacity: 0.85;
}

.dropdown-mega__head-label {
  white-space: normal;
}

.dropdown-mega__head--accent-1 {
  background: #e5f7ef;
}

.dropdown-mega__head--accent-2 {
  background: #fde9e0;
}

.dropdown-mega__head--accent-3 {
  background: #eee8fc;
}

.dropdown-mega__head--accent-4 {
  background: #fdf3d9;
}

.dropdown-mega__head--accent-5 {
  background: #e8f2ff;
}

.dropdown-mega__more-btn {
  align-self: flex-start;
  margin-top: 2px;
  padding: 6px 0;
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dropdown-mega__more-btn:hover {
  color: var(--primary-dark);
}

.dropdown-mega__list--extra {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.dropdown-column h5 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--charcoal);
  margin: 0;
  padding: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--gray);
  padding-bottom: var(--sm);
}

.pillar-main {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: var(--sm) 0;
  transition: color 0.2s ease;
}

.pillar-main:hover {
  color: var(--primary-dark);
}

.dropdown-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dropdown-column ul li {
  margin: 0;
  padding: 0;
}

.dropdown-mega__list li a {
  color: var(--charcoal);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  transition: color 0.2s ease;
  padding: 2px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.dropdown-mega__link-label {
  flex: 1;
  min-width: 0;
}

.dropdown-mega__list li a .external-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  display: block;
  margin-left: 4px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.dropdown-mega__list li a:hover .external-icon {
  transform: translate(1px, -1px);
}



.dropdown-mega__list li a:hover {
  color: var(--primary);
}

.dropdown-section--practice {
  min-width: 0;
}

/* Compact dropdown for single-column menus */
.dropdown--compact {
  padding: clamp(1rem, 2vw, 1.35rem);
  gap: 0;
  grid-template-columns: 1fr;
  min-width: min(280px, calc(100vw - 32px));
}

.dropdown--compact .dropdown-column ul {
  gap: 10px;
}

/* Dropdown sections for large dropdowns */
.dropdown-section {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding-bottom: 0;
  border-bottom: none;
}

.dropdown-section:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.dropdown-mega .dropdown-section h5 {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--charcoal);
  margin: 0;
  padding: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  align-self: start;
}

.dropdown-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dropdown-section ul li {
  margin: 0;
  padding: 0;
}

.dropdown-section ul li a {
  color: var(--charcoal);
  text-decoration: none;
  font-size: 13px;
  font-weight: 400;
  transition: color 0.2s ease;
  padding: 4px 0;
  display: block;
}

.dropdown-section ul li a:hover {
  color: var(--primary);
  padding-left: 4px;
}

.dropdown-mega .dropdown-section ul li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 0;
  font-weight: 500;
}

.dropdown-mega .dropdown-section ul li a:hover {
  padding-left: 0;
}

/* Regular nav links (exclude .btn e.g. Book a call  keep App.css button colors) */
.nav-links > a:not(.btn) {
  color: var(--charcoal);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links > a:not(.btn):hover {
  color: var(--primary);
}

.portal-link {
  color: var(--primary);
  font-weight: 600;
}

.portal-link:hover {
  opacity: 0.8;
}

.btn-primary {
  padding: 10px 24px !important;
  font-size: 14px !important;
}

@media (max-width: 1200px) {
  .dropdown {
    max-width: min(920px, calc(100vw - 32px));
  }

  .dropdown-lg {
    width: min(1120px, calc(100vw - 32px)) !important;
    max-width: min(1120px, calc(100vw - 32px)) !important;
  }
}

@media (max-width: 1024px) {
  .nav-links {
    gap: var(--sm);
  }

  .nav-links > a:not(.btn) {
    font-size: 13px;
  }

  .dropdown {
    max-width: calc(100vw - 32px);
    gap: var(--md);
  }

  .dropdown-lg {
    width: calc(100vw - 32px) !important;
    max-width: calc(100vw - 32px) !important;
  }

  .dropdown-lg.dropdown-mega--who {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dropdown-section--practice {
    grid-column: 1 / -1;
  }
}

/* ========== Mobile menu toggle ========== */
.navbar .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  margin: 0;
  flex-shrink: 0;
  color: var(--charcoal);
  background: var(--white);
  border: 1px solid var(--gray);
  border-radius: 4px;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    color 0.2s ease,
    background 0.2s ease;
}

.nav-menu-toggle svg {
  width: 22px;
  height: 22px;
}

.nav-menu-toggle:hover {
  border-color: var(--charcoal);
}

.nav-menu-toggle:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.nav-overlay {
  display: none;
  position: fixed;
  top: var(--navbar-height, 57px);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 150;
  border: none;
  padding: 0;
  margin: 0;
  background: rgba(26, 28, 29, 0.45);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.nav-overlay--visible {
  opacity: 1;
}

/* Mobile drawer */
.mobile-nav {
  position: fixed;
  top: var(--navbar-height, 57px);
  right: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  width: min(100%, 380px);
  height: calc(100dvh - var(--navbar-height, 57px));
  max-height: calc(100dvh - var(--navbar-height, 57px));
  background: var(--white);
  border-left: 1px solid var(--gray);
  box-shadow: -8px 0 32px rgba(26, 28, 29, 0.12);
  transform: translateX(100%);
  visibility: hidden;
  transition:
    transform 0.3s ease,
    visibility 0.3s ease;
}

.mobile-nav--open {
  transform: translateX(0);
  visibility: visible;
}

.mobile-nav__scroll {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--sm, 16px) var(--gutter, 24px) var(--md, 32px);
  -webkit-overflow-scrolling: touch;
}

.mobile-nav__top-link {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 14px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--charcoal);
  text-decoration: none;
  border-bottom: 1px solid var(--gray);
  transition: color 0.2s ease;
}

.mobile-nav__top-link:hover {
  color: var(--primary);
}

.mobile-nav__group {
  border-bottom: 1px solid var(--gray);
}

.mobile-nav__group-head {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.mobile-nav__group-link {
  flex: 1;
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 12px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--charcoal);
  text-decoration: none;
  transition: color 0.2s ease;
}

.mobile-nav__group-link:hover {
  color: var(--primary);
}

.mobile-nav__group-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  flex-shrink: 0;
  padding: 0;
  color: var(--charcoal);
  background: transparent;
  border: none;
  border-left: 1px solid var(--gray);
  cursor: pointer;
}

.mobile-nav__group-toggle svg {
  width: 20px;
  height: 20px;
  transition: transform 0.25s ease;
}

.mobile-nav__group--open .mobile-nav__group-toggle svg {
  transform: rotate(180deg);
}

.mobile-nav__group-panel {
  padding: 0 0 16px;
}

.mobile-nav__block {
  margin-bottom: 14px;
}

.mobile-nav__block:last-child {
  margin-bottom: 0;
}

.mobile-nav__block-title {
  margin: 0 0 8px;
  padding: 8px 12px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--charcoal);
  border-radius: 8px;
}

.mobile-nav__block-title--accent-1 {
  background: #e5f7ef;
}

.mobile-nav__block-title--accent-2 {
  background: #fde9e0;
}

.mobile-nav__block-title--accent-3 {
  background: #eee8fc;
}

.mobile-nav__block-title--accent-4 {
  background: #fdf3d9;
}

.mobile-nav__block-title--accent-5 {
  background: #e8f2ff;
}

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

.mobile-nav__list--flat {
  padding-top: 4px;
}

.mobile-nav__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 4px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--dark-gray);
  text-decoration: none;
  transition: color 0.2s ease;
}

.mobile-nav__item:hover {
  color: var(--primary);
}

.mobile-nav__item svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.6;
}

.mobile-nav__footer {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: var(--md, 32px) var(--gutter, 24px);
  padding-bottom: max(var(--md, 32px), env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--gray);
  background: var(--surface);
}

.mobile-nav__portal {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  text-align: center;
}

.mobile-nav__portal:hover {
  color: var(--primary-dark);
}

.mobile-nav__cta {
  width: 100%;
  justify-content: center;
  text-align: center;
}

@media (max-width: 1023px) {
  :root {
    --navbar-height: 57px;
  }

  .nav-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px var(--gutter, 24px);
  }

  .navbar .logo__mark {
    height: 40px;
  }

  .nav-menu-toggle {
    display: flex;
  }

  .nav-overlay {
    display: block;
    pointer-events: none;
  }

  .nav-overlay--visible {
    pointer-events: auto;
  }

  .nav-links--desktop {
    display: none !important;
  }

  .nav-item:hover .dropdown,
  .nav-item:hover .dropdown-lg {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

@media (min-width: 1024px) {
  .mobile-nav,
  .nav-overlay,
  .nav-menu-toggle {
    display: none !important;
  }

  .nav-links--desktop {
    display: flex;
  }
}
/* ========== Footer  light glass + soft neo, primary accent ========== */
.footer {
  padding: var(--sm) 8px 10px;
  background: transparent;
  color: var(--charcoal);
}

@media (min-width: 768px) {
  .footer {
    padding: var(--md) clamp(6px, 1.2vw, 14px) clamp(8px, 1.2vw, 18px);
  }
}

.footer__card {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  border-radius: clamp(26px, 3.5vw, 44px);
  overflow: hidden;
  isolation: isolate;
  /* Stronger “floating sheet” read: crisp edge + deep lift + soft brand halo */
  border: 1px solid rgba(255, 255, 255, 0.98);
  box-shadow:
    0 1px 2px rgba(26, 28, 29, 0.06),
    0 8px 24px rgba(26, 28, 29, 0.08),
    0 24px 56px -10px rgba(26, 28, 29, 0.22),
    0 36px 72px -20px rgba(105, 90, 242, 0.2),
    0 0 0 1px rgba(105, 90, 242, 0.14),
    -10px -10px 32px rgba(255, 255, 255, 0.75),
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -2px 8px rgba(105, 90, 242, 0.07);
  background:
    linear-gradient(
      155deg,
      rgba(255, 255, 255, 0.97) 0%,
      rgba(248, 246, 255, 0.99) 38%,
      rgba(237, 232, 252, 1) 72%,
      rgba(225, 218, 255, 0.98) 100%
    ),
    linear-gradient(
      200deg,
      rgba(105, 90, 242, 0.2) 0%,
      rgba(255, 255, 255, 0.68) 55%
    );
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.footer__glass {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(
      90% 70% at 12% 8%,
      rgba(255, 255, 255, 0.65) 0%,
      transparent 45%
    ),
    radial-gradient(
      75% 60% at 95% 12%,
      rgba(105, 90, 242, 0.12) 0%,
      transparent 48%
    ),
    radial-gradient(
      80% 55% at 50% 100%,
      rgba(105, 90, 242, 0.08) 0%,
      transparent 55%
    );
}

.footer__inner {
  position: relative;
  z-index: 1;
  padding: clamp(28px, 4vw, 48px) clamp(var(--gutter), 4vw, 48px)
    clamp(20px, 3vw, 36px);
}

/* Corner nails  dark “pin heads” so they read on the light panel */
.footer__nail {
  position: absolute;
  z-index: 3;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: linear-gradient(145deg, #3d3f42 0%, #1a1b1d 55%, #0a0a0b 100%);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.12),
    inset 0 -1px 2px rgba(0, 0, 0, 0.45),
    0 1px 3px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.footer__nail--tl {
  top: clamp(16px, 2.5vw, 24px);
  left: clamp(16px, 2.5vw, 24px);
}

.footer__nail--tr {
  top: clamp(16px, 2.5vw, 24px);
  right: clamp(16px, 2.5vw, 24px);
}

.footer__nail--bl {
  bottom: clamp(16px, 2.5vw, 24px);
  left: clamp(16px, 2.5vw, 24px);
}

.footer__nail--br {
  bottom: clamp(16px, 2.5vw, 24px);
  right: clamp(16px, 2.5vw, 24px);
}

/* ========== Five-column grid ========== */
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) repeat(4, minmax(0, 1fr));
  gap: clamp(28px, 3.5vw, 44px);
  align-items: start;
  text-align: left;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: var(--sm);
  min-width: 0;
}

.footer__col-heading {
  margin: 0;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--charcoal);
}

.footer__logo-link {
  display: inline-block;
  line-height: 0;
  align-self: flex-start;
}

.footer__logo {
  height: 44px;
  width: auto;
  display: block;
}

.footer__tagline {
  margin: 0;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  color: var(--dark-gray);
  max-width: 22rem;
}

.footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  margin-top: 4px;
}

.footer__social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--dark-gray);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer__social-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  opacity: 0.92;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer__social-link:hover .footer__social-icon {
  opacity: 1;
  transform: translateY(-1px);
}

.footer__social-link:hover {
  color: var(--primary);
}

.footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__list a {
  color: var(--dark-gray);
  text-decoration: none;
  font-size: 14px;
  font-family: var(--font-body);
  transition: color 0.2s ease;
}

.footer__list a:hover {
  color: var(--primary);
}

.footer__link-em {
  font-weight: 600;
  color: var(--charcoal);
}

.footer__link-em:hover {
  color: var(--primary);
}

.footer__email {
  font-weight: 500;
  word-break: break-word;
  color: var(--primary);
}

.footer__email:hover {
  color: var(--primary-dark);
}

/* Sub-footer  single row */
.footer-sub {
  margin-top: clamp(var(--md), 4vw, var(--lg));
  padding-top: var(--md);
  border-top: 1px solid rgba(26, 28, 29, 0.1);
}

.footer-sub__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 4px;
  margin: 0;
  font-size: 12px;
  font-family: var(--font-body);
  color: rgba(71, 69, 85, 0.85);
  text-align: center;
  line-height: 1.5;
}

.footer-sub__row a {
  color: rgba(71, 69, 85, 0.85);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-sub__row a:hover {
  color: var(--primary);
}

.footer-sub__sep {
  color: rgba(71, 69, 85, 0.45);
  user-select: none;
}

@media (max-width: 1199px) {
  .footer__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer__col--brand {
    grid-column: 1 / -1;
    max-width: 28rem;
  }
}

@media (max-width: 900px) {
  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer__col--brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--md);
  }

  .footer__col--brand {
    grid-column: auto;
    max-width: none;
  }

  .footer__inner {
    padding: var(--md) var(--gutter) var(--sm);
  }
}
.darkveil-canvas {
  width: 100%;
  height: 100%;
  display: block;
  background: #ffffff;
}
/**
 * Marquee speed: smaller = faster (e.g. 30s), larger = slower (e.g. 80s).
 * Override: .client-logo-marquee { --client-logo-marquee-duration: 40s; }
 */
.client-logo-marquee {
  --client-logo-marquee-duration: 50s;
  width: 100%;
  background: var(--white, #ffffff);
  border-top: 1px solid var(--gray, #e2e2e2);
  border-bottom: 1px solid var(--gray, #e2e2e2);
  padding: clamp(36px, 5vw, 52px) 0;
  font-family: var(--font-body, 'Inter', sans-serif);
}

.client-logo-marquee__inner {
  max-width: var(--container-max, 1440px);
  margin: 0 auto;
  padding: 0 var(--gutter, 24px);
}

.client-logo-marquee__heading {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dark-gray, #474555);
  margin: 0 0 clamp(20px, 3vw, 28px) 0;
  text-align: center;
}

.client-logo-marquee__viewport {
  overflow: hidden;
  min-height: 88px;
  display: flex;
  align-items: center;
  mask-image: linear-gradient(
    to right,
    transparent,
    black 8%,
    black 92%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 8%,
    black 92%,
    transparent
  );
}

.client-logo-marquee__track {
  display: flex;
  align-items: center;
  gap: clamp(48px, 7vw, 100px);
  width: max-content;
  animation: client-logo-marquee-scroll var(--client-logo-marquee-duration, 50s) linear
    infinite;
}

.client-logo-marquee__track:hover {
  animation-play-state: paused;
}

.client-logo-marquee__item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  /* background: #000; */
  justify-content: center;
  height: 72px;
  min-height: 72px;
}

.client-logo-marquee__item img {
  max-height: 56px;
  max-width: 200px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.client-logo-marquee__item--wide img {
  max-height: 52px;
  max-width: 260px;
}

.client-logo-marquee__item--screen img {
  mix-blend-mode: screen;
}

@keyframes client-logo-marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .client-logo-marquee__viewport {
    mask-image: none;
    -webkit-mask-image: none;
    min-height: auto;
  }

  .client-logo-marquee__track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    row-gap: 24px;
    column-gap: clamp(32px, 5vw, 64px);
  }
}
.perfect-match {
  width: 100%;
  background: var(--white, #ffffff);
  font-family: var(--font-body, 'Inter', sans-serif);
  padding: clamp(48px, 8vw, var(--lg, 64px)) var(--gutter, 24px);
  border-bottom: 1px solid var(--gray, #e2e2e2);
}

.perfect-match__inner {
  max-width: var(--container-max, 1200px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(200px, 34%) 1fr;
  column-gap: clamp(32px, 5vw, 72px);
  row-gap: clamp(40px, 6vw, 56px);
  align-items: start;
}

.perfect-match__intro {
  text-align: left;
  grid-column: 1;
  grid-row: 1;
}

.perfect-match__eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dark-gray, #474555);
  margin: 0 0 var(--sm, 16px) 0;
}

.perfect-match__headline {
  font-family: var(--font-display, 'Newsreader', serif);
  font-size: clamp(28px, 3.8vw, 40px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--charcoal, #1a1c1d);
  margin: 0;
}

.perfect-match__list {
  list-style: none;
  margin: 0;
  padding: 0;
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 4vw, 36px);
  text-align: left;
}

.perfect-match__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(14px, 2.5vw, 22px);
  align-items: start;
}

.perfect-match__num {
  font-family: var(--font-display, 'Newsreader', serif);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 400;
  line-height: 1;
  color: var(--primary, #695af2);
  min-width: 2.25ch;
}

.perfect-match__body {
  text-align: left;
}

.perfect-match__title {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--charcoal, #1a1c1d);
  margin: 0 0 10px 0;
}

.perfect-match__quote {
  margin: 0;
  padding: 0;
  border: none;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--dark-gray, #474555);
}

.perfect-match__cta-block {
  grid-column: 1 / -1;
  grid-row: 2;
  padding-top: clamp(8px, 2vw, 16px);
  border-top: 1px solid var(--gray, #e2e2e2);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.perfect-match__closing {
  font-size: clamp(17px, 2.2vw, 20px);
  font-weight: 500;
  line-height: 1.45;
  color: var(--charcoal, #1a1c1d);
  margin: 0 0 var(--md, 32px) 0;
  text-align: center;
  max-width: 42rem;
}

.perfect-match__cta-buttons {
  margin-bottom: 0;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .perfect-match__inner {
    grid-template-columns: 1fr;
  }

  .perfect-match__intro {
    grid-column: 1;
    grid-row: 1;
  }

  .perfect-match__list {
    grid-column: 1;
    grid-row: 2;
  }

  .perfect-match__cta-block {
    grid-row: 3;
  }
}

@media (max-width: 480px) {
  .perfect-match__item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .perfect-match__num {
    margin-bottom: 2px;
  }

  .perfect-match__cta-buttons {
    flex-direction: column;
    width: 100%;
  }

  .perfect-match__cta-buttons .btn {
    width: 100%;
  }
}
.practice-infra {
  width: 100%;
  background: var(--surface, #f9f9fb);
  font-family: var(--font-body, 'Inter', sans-serif);
  padding: clamp(48px, 8vw, var(--lg, 64px)) var(--gutter, 24px);
  border-bottom: 1px solid var(--gray, #e2e2e2);
}

.practice-infra__inner {
  max-width: var(--container-max, 1200px);
  margin: 0 auto;
}

.practice-infra__intro {
  max-width: 48rem;
  margin-bottom: clamp(40px, 6vw, 56px);
}

.practice-infra__eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dark-gray, #474555);
  margin: 0 0 var(--sm, 16px) 0;
}

.practice-infra__headline {
  font-family: var(--font-display, 'Newsreader', serif);
  font-size: clamp(28px, 3.8vw, 40px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--charcoal, #1a1c1d);
  margin: 0 0 var(--md, 32px) 0;
}

.practice-infra__subcopy {
  margin: 0;
  font-size: clamp(16px, 1.8vw, 18px);
  font-weight: 400;
  line-height: 1.65;
  color: var(--dark-gray, #474555);
}

.practice-infra__pillars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 40px);
  align-items: start;
}

.practice-infra__pillar {
  background: var(--white, #ffffff);
  border: 1px solid var(--gray, #e2e2e2);
  padding: clamp(20px, 3vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 100%;
}

.practice-infra__pillar-title {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--charcoal, #1a1c1d);
  margin: 0;
}

.practice-infra__pillar-lead {
  font-family: var(--font-display, 'Newsreader', serif);
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 400;
  line-height: 1.3;
  color: var(--primary, #695af2);
  margin: 0;
}

.practice-infra__pillar-body {
  margin: 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--dark-gray, #474555);
  flex: 1;
}

.practice-infra__pillar-meta {
  margin: 8px 0 0 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--dark-gray, #474555);
}

.practice-infra__sep {
  font-weight: 400;
  color: var(--dark-gray, #474555);
  opacity: 0.45;
}

.practice-infra__tag-link,
.practice-infra__pillar-cta {
  color: var(--charcoal, #1a1c1d);
  text-decoration: none;
  transition: color 0.2s ease;
}

.practice-infra__tag-link:hover,
.practice-infra__pillar-cta:hover {
  color: var(--primary, #695af2);
}

.practice-infra__pillar-cta {
  font-weight: 600;
  color: var(--primary, #695af2);
}

.practice-infra__pillar-cta:hover {
  color: var(--primary-dark, #503dd8);
}

.practice-infra__closing {
  margin: clamp(40px, 6vw, 56px) auto 0;
  padding-top: clamp(28px, 4vw, 40px);
  border-top: 1px solid var(--gray, #e2e2e2);
  font-size: clamp(16px, 1.8vw, 18px);
  font-weight: 500;
  line-height: 1.55;
  color: var(--charcoal, #1a1c1d);
  text-align: center;
  max-width: 48rem;
}

@media (max-width: 900px) {
  .practice-infra__pillars {
    grid-template-columns: 1fr;
  }
}
.process-clarity {
  width: 100%;
  background: var(--white, #ffffff);
  font-family: var(--font-body, 'Inter', sans-serif);
  padding: clamp(48px, 8vw, var(--lg, 64px)) var(--gutter, 24px);
  border-bottom: 1px solid var(--gray, #e2e2e2);
}

.process-clarity__inner {
  max-width: var(--container-max, 1200px);
  margin: 0 auto;
}

.process-clarity__intro {
  max-width: 48rem;
  margin-bottom: clamp(36px, 5vw, 48px);
}

.process-clarity__eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dark-gray, #474555);
  margin: 0 0 var(--sm, 16px) 0;
}

.process-clarity__headline {
  font-family: var(--font-display, 'Newsreader', serif);
  font-size: clamp(28px, 3.8vw, 40px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--charcoal, #1a1c1d);
  margin: 0 0 var(--md, 32px) 0;
}

.process-clarity__subcopy {
  margin: 0;
  font-size: clamp(16px, 1.8vw, 18px);
  font-weight: 400;
  line-height: 1.65;
  color: var(--dark-gray, #474555);
}

.process-clarity__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 32px) clamp(28px, 4vw, 48px);
}

.process-clarity__step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(14px, 2.5vw, 22px);
  align-items: start;
  padding: clamp(20px, 3vw, 28px);
  background: var(--surface, #f9f9fb);
  border: 1px solid var(--gray, #e2e2e2);
}

.process-clarity__step-head {
  min-width: 0;
}

.process-clarity__kicker {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--charcoal, #1a1c1d);
}

.process-clarity__num {
  font-family: var(--font-display, 'Newsreader', serif);
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 400;
  line-height: 1;
  color: var(--primary, #695af2);
}

.process-clarity__kicker-dash {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-weight: 600;
  color: var(--dark-gray, #474555);
}

.process-clarity__timeline {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-weight: 600;
  color: var(--dark-gray, #474555);
}

.process-clarity__step-title {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--charcoal, #1a1c1d);
  margin: 0 0 10px 0;
}

.process-clarity__step-copy {
  margin: 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--dark-gray, #474555);
}

.process-clarity__cta-wrap {
  display: flex;
  justify-content: center;
  margin-top: clamp(36px, 5vw, 48px);
  padding-top: clamp(28px, 4vw, 40px);
  border-top: 1px solid var(--gray, #e2e2e2);
}

.process-clarity__cta-wrap .cta--block {
  max-width: min(100%, 26rem);
}

@media (max-width: 768px) {
  .process-clarity__steps {
    grid-template-columns: 1fr;
  }

  .process-clarity__step {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
.results-spotlight {
  width: 100%;
  background: var(--white, #ffffff);
  font-family: var(--font-body, 'Inter', sans-serif);
  padding: clamp(48px, 8vw, var(--lg, 64px)) var(--gutter, 24px);
  border-bottom: 1px solid var(--gray, #e2e2e2);
}

.results-spotlight__inner {
  max-width: var(--container-max, 1200px);
  margin: 0 auto;
}

.results-spotlight__intro {
  max-width: 48rem;
  margin-bottom: clamp(32px, 5vw, 48px);
}

.results-spotlight__eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dark-gray, #474555);
  margin: 0 0 var(--sm, 16px) 0;
}

.results-spotlight__headline {
  font-family: var(--font-display, 'Newsreader', serif);
  font-size: clamp(28px, 3.8vw, 40px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--charcoal, #1a1c1d);
  margin: 0;
}

.results-spotlight__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 40px);
  align-items: stretch;
}

.results-spotlight__panel {
  background: var(--charcoal, #1a1c1d);
  color: var(--white, #ffffff);
  padding: clamp(24px, 4vw, 36px);
  display: flex;
  flex-direction: column;
  gap: var(--sm, 16px);
  border-radius: 2px;
}

.results-spotlight__panel-label {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.results-spotlight__name {
  font-family: var(--font-display, 'Newsreader', serif);
  font-size: clamp(26px, 3.2vw, 34px);
  font-weight: 400;
  line-height: 1.15;
  color: var(--white, #ffffff);
  margin: 0;
}

.results-spotlight__practice {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
}

.results-spotlight__quote {
  margin: clamp(4px, 1vw, 8px) 0 0 0;
  padding: 0;
  border: none;
  font-size: clamp(15px, 1.6vw, 17px);
  font-weight: 400;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.92);
}

.results-spotlight__panel-cta-row {
  margin-top: auto;
  padding-top: var(--sm, 16px);
}

.results-spotlight__proof {
  padding: clamp(8px, 2vw, 12px) 0;
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vw, 28px);
}

.results-spotlight__trust-line {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dark-gray, #474555);
}

.results-spotlight__stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 3vw, 28px) clamp(16px, 3vw, 32px);
}

.results-spotlight__stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.results-spotlight__stat-value {
  font-family: var(--font-display, 'Newsreader', serif);
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--primary, #695af2);
}

.results-spotlight__stat-label {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--dark-gray, #474555);
}

.results-spotlight__did {
  padding-top: clamp(12px, 2vw, 20px);
  border-top: 1px solid var(--gray, #e2e2e2);
}

.results-spotlight__did-title {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--charcoal, #1a1c1d);
  margin: 0 0 10px 0;
}

.results-spotlight__did-copy {
  margin: 0 0 var(--sm, 16px) 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--dark-gray, #474555);
}

@media (max-width: 768px) {
  .results-spotlight__layout {
    grid-template-columns: 1fr;
  }

  .results-spotlight__stats {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .results-spotlight__stats {
    grid-template-columns: 1fr;
  }
}
.specialty-audience {
  width: 100%;
  background: var(--surface, #f9f9fb);
  font-family: var(--font-body, 'Inter', sans-serif);
  padding: clamp(48px, 8vw, var(--lg, 64px)) var(--gutter, 24px);
  border-bottom: 1px solid var(--gray, #e2e2e2);
}

.specialty-audience__inner {
  max-width: var(--container-max, 1200px);
  margin: 0 auto;
}

.specialty-audience__intro {
  max-width: 48rem;
  margin-bottom: clamp(28px, 4vw, 40px);
}

.specialty-audience__eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dark-gray, #474555);
  margin: 0 0 var(--sm, 16px) 0;
}

.specialty-audience__headline {
  font-family: var(--font-display, 'Newsreader', serif);
  font-size: clamp(28px, 3.8vw, 40px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--charcoal, #1a1c1d);
  margin: 0 0 var(--md, 32px) 0;
}

.specialty-audience__subcopy {
  margin: 0;
  font-size: clamp(16px, 1.8vw, 18px);
  font-weight: 400;
  line-height: 1.65;
  color: var(--dark-gray, #474555);
}

.specialty-audience__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

.specialty-audience__pill {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--charcoal, #1a1c1d);
  text-decoration: none;
  background: var(--white, #ffffff);
  border: 1px solid var(--gray, #e2e2e2);
  border-radius: 999px;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.specialty-audience__pill:hover {
  border-color: var(--primary, #695af2);
  background: var(--light-gray, #f5f5f7);
  color: var(--primary, #695af2);
}

.specialty-audience__footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sm, 16px);
  margin-top: clamp(32px, 5vw, 44px);
  padding-top: clamp(28px, 4vw, 40px);
  border-top: 1px solid var(--gray, #e2e2e2);
}

.specialty-audience__arrow {
  margin: 0;
  font-size: 20px;
  line-height: 1;
  color: var(--dark-gray, #474555);
  opacity: 0.45;
}

@media (max-width: 768px) {
  .specialty-audience__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .specialty-audience__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .specialty-audience__pill {
    padding: 10px 12px;
    font-size: 13px;
  }
}
/*  Philosophy: who we partner with  */
.home-philosophy {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 10vw, 100px) var(--gutter, 24px);
  background: var(--charcoal, #1a1c1d);
  color: var(--white, #fff);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.home-philosophy__bg {
  position: absolute;
  inset: -40% -20% auto -20%;
  height: 85%;
  background: radial-gradient(
    ellipse 70% 55% at 50% 0%,
    rgba(105, 90, 242, 0.35) 0%,
    rgba(105, 90, 242, 0.08) 45%,
    transparent 70%
  );
  pointer-events: none;
}

.home-philosophy__inner {
  position: relative;
  z-index: 1;
  max-width: 52rem;
  margin: 0 auto;
}

.home-philosophy__headline {
  margin: 0 0 clamp(1.25rem, 3vw, 1.75rem);
  font-family: var(--font-display, 'Newsreader', serif);
  font-size: clamp(1.65rem, 4.2vw, 2.5rem);
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: var(--white, #fff);
}

.home-philosophy__body {
  margin: 0;
  padding-left: clamp(0px, 2vw, 1rem);
  border-left: 3px solid var(--primary, #695af2);
  font-size: clamp(1rem, 1.9vw, 1.125rem);
  font-weight: 400;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
  max-width: 48rem;
}

/*  Audit CTA  */
.home-audit-cta {
  padding: clamp(56px, 10vw, 96px) var(--gutter, 24px);
  background: linear-gradient(
    165deg,
    var(--surface, #f9f9fb) 0%,
    rgba(105, 90, 242, 0.06) 42%,
    var(--surface, #f9f9fb) 100%
  );
  border-bottom: 1px solid var(--gray, #e2e2e2);
}

.home-audit-cta__panel {
  max-width: 44rem;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3rem);
  background: var(--white, #fff);
  border-radius: 20px;
  border: 1px solid rgba(26, 28, 29, 0.06);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 24px 48px -12px rgba(105, 90, 242, 0.12),
    0 12px 24px -8px rgba(15, 23, 42, 0.08);
}

.home-audit-cta__headline {
  margin: 0 0 clamp(1rem, 2.5vw, 1.25rem);
  font-family: var(--font-display, 'Newsreader', serif);
  font-size: clamp(1.5rem, 3.8vw, 2.125rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--charcoal, #1a1c1d);
}

.home-audit-cta__lede {
  margin: 0 0 clamp(1.75rem, 4vw, 2.25rem);
  font-size: clamp(1rem, 1.85vw, 1.125rem);
  line-height: 1.65;
  color: var(--dark-gray, #474555);
}

.home-audit-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-bottom: clamp(1.25rem, 3vw, 1.5rem);
}

.home-audit-cta__cta-primary,
.home-audit-cta__cta-secondary {
  width: auto;
  max-width: none;
}

.home-audit-cta__cta-primary {
  flex: 1 1 min(16rem, 100%);
  justify-content: center;
}

.home-audit-cta__cta-secondary {
  flex: 1 1 min(12rem, 100%);
  justify-content: center;
}

.home-audit-cta__note {
  margin: 0;
  padding-top: clamp(1rem, 2.5vw, 1.25rem);
  border-top: 1px solid var(--gray, #e2e2e2);
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--dark-gray, #474555);
}

@media (max-width: 520px) {
  .home-audit-cta__actions {
    flex-direction: column;
  }

  .home-audit-cta__cta-primary,
  .home-audit-cta__cta-secondary {
    width: 100%;
    justify-content: center;
  }
}
.reference-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--gutter, 24px);
}

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

.reference-modal__backdrop {
  position: absolute;
  inset: 0;
  border: none;
  padding: 0;
  background: rgba(26, 28, 29, 0.5);
  cursor: pointer;
}

.reference-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  max-height: min(90vh, 720px);
  overflow-y: auto;
  padding: 28px 24px;
  background: var(--white);
  border: 1px solid var(--gray);
  border-radius: 14px;
  box-shadow: 0 24px 64px rgba(26, 28, 29, 0.2);
}

.reference-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  color: var(--charcoal);
  background: var(--surface);
  border: 1px solid var(--gray);
  border-radius: 4px;
  cursor: pointer;
}

.reference-modal__close:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.reference-modal__close svg {
  width: 18px;
  height: 18px;
}

.reference-modal__kicker {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dark-gray);
}

.reference-modal__title {
  margin: 0 0 8px;
  padding-right: 32px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--charcoal);
}

.reference-modal__case {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--charcoal);
}

.reference-modal__case strong {
  font-weight: 600;
}

.reference-modal__case-meta {
  color: var(--dark-gray);
  font-weight: 400;
}

.reference-modal__sub {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--dark-gray);
}

.reference-modal__form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.reference-modal__input,
.reference-modal__textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--charcoal);
  background: var(--surface);
  border: 1px solid var(--gray);
  border-radius: 4px;
  resize: vertical;
}

.reference-modal__textarea {
  min-height: 72px;
}

.reference-modal__input:focus,
.reference-modal__textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(105, 90, 242, 0.12);
}

.reference-modal__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  background: var(--charcoal);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.reference-modal__submit:hover:not(:disabled) {
  background: var(--primary);
}

.reference-modal__submit svg {
  width: 18px;
  height: 18px;
}

.reference-modal__submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.reference-modal__error {
  margin: 0;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.5;
  color: #8b2942;
  background: #fdf2f4;
  border: 1px solid #f0d4da;
  border-radius: 4px;
}

.reference-modal__fine {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
  color: var(--dark-gray);
}

.reference-modal__success .reference-modal__submit {
  width: 100%;
}

@media (max-width: 480px) {
  .reference-modal__panel {
    padding: 24px 20px;
  }
}
