/* ==========================================================================
   SHARED COMPONENTS - Header, Footer, Breadcrumbs, Promo Banner
   ========================================================================== */

/* Header (Glassmorphism) */
.site-header {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow:
    0 1px 0 0 rgba(0, 0, 0, 0.04),
    0 1px 6px -1px rgba(0, 0, 0, 0.03);
  position: fixed;
  width: 100%;
  top: var(--bar-height, 0px);
  z-index: 1000;
  height: 56px;
  display: flex;
  align-items: center;
  transition: all 0.2s ease;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.header-logo {
  display: flex;
  align-items: center;
}
.header-logo img {
  height: 22px;
}

/* Header Nav */
.header-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-dropdown {
  position: relative;
}

.nav-trigger {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  color: #475569;
  padding: 6px 11px;
  border-radius: 8px;
  transition: all 0.12s ease;
  letter-spacing: -0.005em;
}
.nav-trigger:hover {
  color: #0f172a;
  background: rgba(0, 0, 0, 0.03);
}
.nav-trigger i,
.nav-trigger svg {
  width: 10px;
  height: 10px;
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0.4;
}
.nav-dropdown.open .nav-trigger i,
.nav-dropdown.open .nav-trigger svg {
  transform: rotate(180deg);
  opacity: 0.7;
}
.nav-dropdown.open .nav-trigger {
  color: #0f172a;
  background: rgba(0, 0, 0, 0.04);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  color: #475569;
  padding: 6px 11px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.12s ease;
  letter-spacing: -0.005em;
}
.nav-link:hover {
  color: #0f172a;
  background: rgba(0, 0, 0, 0.03);
}

.mega-col-subtitle {
  display: block;
  font-size: 0.72rem;
  letter-spacing: -0.005em;
  color: #94a3b8;
  margin: 0 0 18px;
  font-weight: 400;
  line-height: 1.4;
}

.mega-col-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent-primary, #0d9488);
  text-decoration: none;
  letter-spacing: -0.005em;
}
.mega-col-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Mega Menu - precision panel */
.mega-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  width: 660px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  box-shadow:
    0 0 0 0.5px rgba(0, 0, 0, 0.04),
    0 2px 4px rgba(0, 0, 0, 0.05),
    0 8px 20px -4px rgba(0, 0, 0, 0.08),
    0 24px 48px -8px rgba(0, 0, 0, 0.12);
  padding: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.12s ease,
    visibility 0.12s,
    transform 0.12s cubic-bezier(0.2, 0.9, 0.3, 1);
  transform: translateX(-50%) translateY(6px);
  transform-origin: top center;
  z-index: 100;
  overflow: visible;
}

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

.mega-menu-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0;
  padding: 0;
}

.mega-col {
  padding: 0 20px;
}

.mega-col + .mega-col {
  border-left: 1px solid rgba(0, 0, 0, 0.06);
}

.mega-col h5 {
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: -0.012em;
  color: #0a0a0a;
  /* Default: comfortable space before links. */
  margin: 0 0 12px;
  padding-bottom: 0;
  border-bottom: none;
  line-height: 1.3;
}
/* Tight when followed by a subtitle — the subtitle handles the spacing
   below itself. Resources dropdown uses this; Solutions/Calculators don't. */
.mega-col h5:has(+ .mega-col-subtitle) {
  margin-bottom: 3px;
}

.mega-col a {
  display: block;
  font-size: 0.8rem;
  font-weight: 450;
  color: #334155;
  padding: 4px 8px;
  margin: 0 -8px;
  border-radius: 5px;
  transition:
    background 0.1s,
    color 0.1s;
  line-height: 1.4;
}
.mega-col a:hover {
  color: #0f172a;
  background: #f1f5f9;
}

.mega-link-all {
  display: inline-flex !important;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  color: var(--accent-primary) !important;
  margin-top: 8px;
  padding: 4px 8px !important;
  border-top: none;
}
.mega-link-all:hover {
  background: rgba(224, 93, 54, 0.05) !important;
  gap: 6px !important;
}
.mega-link-all i,
.mega-link-all svg {
  width: 11px;
  height: 11px;
  transition: transform 0.12s;
}
.mega-link-all:hover i,
.mega-link-all:hover svg {
  transform: translateX(2px);
}

.mega-col-cta {
  background: #f8fafc;
  border-radius: 0 14px 14px 0;
  padding: 24px 24px;
  margin: 0;
  border-left: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.mega-col-cta h5 {
  border-bottom: none;
  padding-bottom: 0;
}
.mega-cta-count {
  display: block;
  font-size: 0.75rem;
  color: #64748b;
  margin-bottom: 16px;
  line-height: 1.5;
}
.mega-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-primary);
  padding: 8px 14px;
  border-radius: 8px;
  background: rgba(224, 93, 54, 0.07);
  border: 1px solid rgba(224, 93, 54, 0.1);
  transition: all 0.15s;
  white-space: nowrap;
}
.mega-cta:hover {
  background: rgba(224, 93, 54, 0.13);
  border-color: rgba(224, 93, 54, 0.22);
  gap: 8px;
}
.mega-cta svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  transition: transform 0.15s;
}
.mega-cta:hover svg {
  transform: translateX(2px);
}

/* Wide mega menu (Calculators) - 3 stacked content cols + CTA */
.mega-menu-wide {
  position: fixed;
  top: 60px;
  left: 50%;
  width: min(1080px, calc(100vw - 40px));
  transform: translateX(-50%) translateY(8px);
  overflow: hidden;
}

.nav-dropdown.open .mega-menu-wide {
  transform: translateX(-50%) translateY(0);
}

.mega-menu-wide .mega-menu-inner {
  grid-template-columns: repeat(3, 1fr) 180px;
  align-items: start;
  padding: 0;
}

.mega-menu-wide .mega-col {
  padding: 24px 20px;
}

.mega-menu-wide .mega-col-cta {
  align-self: stretch;
  padding: 24px 20px;
}

/* Compact mega menu (Articles, Templates) - same fixed positioning as wide */
.mega-menu-compact {
  position: fixed;
  top: 60px;
  left: 50%;
  width: min(740px, calc(100vw - 40px));
  transform: translateX(-50%) translateY(8px);
  overflow: hidden;
}

.nav-dropdown.open .mega-menu-compact {
  transform: translateX(-50%) translateY(0);
}

.mega-menu-compact .mega-menu-inner {
  grid-template-columns: 1fr 1fr 190px;
  padding: 0;
}

.mega-menu-compact .mega-col {
  padding: 24px 22px;
}

.mega-menu-compact .mega-col-cta {
  padding: 24px 22px;
}

/* Glossary dropdown */
.mega-menu-glossary {
  width: 380px;
  padding: 0;
  overflow: hidden;
}

.glossary-dropdown-inner {
  display: flex;
  flex-direction: column;
}

.glossary-search-wrap {
  padding: 14px 14px 0;
}

.glossary-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #f8fafc;
  border: 1px solid transparent;
  border-radius: 8px;
  transition:
    border-color 0.15s,
    box-shadow 0.15s,
    background 0.15s;
}
.glossary-search-box:focus-within {
  border-color: rgba(224, 93, 54, 0.3);
  box-shadow: 0 0 0 3px rgba(224, 93, 54, 0.06);
  background: #fff;
}

.glossary-search-icon {
  flex-shrink: 0;
  color: #94a3b8;
  width: 15px;
  height: 15px;
}

.glossary-search-box input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  color: var(--text-main);
  outline: none;
}
.glossary-search-box input::placeholder {
  color: #94a3b8;
  font-size: 0.82rem;
}

.glossary-kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 600;
  color: #94a3b8;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 4px;
  padding: 0 4px;
}

/* Glossary search results */
.glossary-results {
  max-height: 260px;
  overflow-y: auto;
  margin-top: 6px;
  padding: 0 6px;
}

.glossary-results-empty,
.glossary-no-results {
  padding: 20px 4px;
  font-size: 0.8rem;
  color: #94a3b8;
  text-align: center;
}

.glossary-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  border-radius: 7px;
  text-decoration: none;
  transition: background 0.08s;
}
.glossary-result-item:hover {
  background: #f1f5f9;
}

.glossary-result-name {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-main);
}

.glossary-result-cat {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
  background: #f1f5f9;
  padding: 2px 7px;
  border-radius: 4px;
}
.glossary-result-item:hover .glossary-result-cat {
  background: #fff;
}

/* Popular terms */
.glossary-popular {
  padding: 12px 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.glossary-popular h5 {
  font-family: var(--font-display);
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  margin-bottom: 8px;
}

.glossary-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.glossary-tags a {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  color: #475569;
  padding: 3px 10px;
  background: #f8fafc;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 6px;
  transition: all 0.1s;
  text-decoration: none;
}
.glossary-tags a:hover {
  color: var(--accent-primary);
  border-color: rgba(224, 93, 54, 0.2);
  background: rgba(224, 93, 54, 0.04);
}

/* Browse all link */
.glossary-browse-all {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 11px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-primary);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  text-decoration: none;
  transition:
    background 0.1s,
    gap 0.1s;
}
.glossary-browse-all:hover {
  background: rgba(224, 93, 54, 0.03);
  gap: 7px;
}
.glossary-browse-all svg {
  transition: transform 0.12s;
}
.glossary-browse-all:hover svg {
  transform: translateX(2px);
}

/* Header CTA button */
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-login-btn {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: -0.01em;
  transition: color 0.15s ease;
}
.header-login-btn:hover {
  color: var(--accent-primary);
}

.header-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-primary);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 8px;
  transition: all 0.15s ease;
  letter-spacing: -0.01em;
  box-shadow:
    0 1px 2px rgba(224, 93, 54, 0.15),
    0 0 0 1px rgba(224, 93, 54, 0.1);
}
.header-cta-btn:hover {
  background: var(--accent-hover);
  box-shadow:
    0 2px 8px rgba(224, 93, 54, 0.25),
    0 0 0 1px rgba(224, 93, 54, 0.15);
  transform: translateY(-0.5px);
}
.header-cta-btn i,
.header-cta-btn svg {
  width: 13px;
  height: 13px;
  transition: transform 0.12s;
}
.header-cta-btn:hover i,
.header-cta-btn:hover svg {
  transform: translateX(1px);
}

.mobile-nav-cta,
.mobile-nav-login {
  display: none;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-main);
  padding: 8px;
}
.mobile-menu-toggle i,
.mobile-menu-toggle svg {
  width: 22px;
  height: 22px;
}

@media (max-width: 768px) {
  .site-header {
    height: 52px;
  }
  .header-logo img {
    height: 19px;
  }
  .mobile-menu-toggle {
    padding: 6px;
  }

  .header-nav {
    display: none;
    position: fixed;
    top: 52px;
    left: 0;
    right: 0;
    height: calc(100vh - 52px);
    height: calc(100dvh - 52px);
    background: var(--bg-base);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    z-index: 999;
  }
  .header-nav.mobile-open {
    display: flex;
  }
  .mobile-menu-toggle {
    display: block;
  }

  .nav-dropdown {
    border-bottom: 1px solid var(--border-light);
    width: 100%;
  }
  .nav-dropdown:last-child {
    border-bottom: none;
  }

  .nav-trigger {
    width: 100%;
    justify-content: space-between;
    padding: 12px 16px;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-main);
    border-radius: 0;
  }
  .nav-trigger:hover {
    background: var(--bg-subtle);
  }

  /* Mobile dropdown: simple display toggle. Animating to auto-height is
     unreliable on iOS Safari (grid-template-rows animation is unsupported),
     and max-height needs a hardcoded ceiling that always bites us when a
     menu grows. Display: none → block just works, and lets each menu size
     to its actual content - so nothing gets clipped behind the next nav
     trigger below. */
  .mega-menu {
    position: static;
    transform: none !important;
    width: 100%;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0;
    margin-top: 0;
    display: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    background: #fafbfc;
  }
  .nav-dropdown.open .mega-menu {
    display: block;
    padding: 8px 0 0;
  }

  .mega-menu-inner {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    padding: 0;
  }
  .mega-col {
    min-width: 0;
    padding: 0 16px;
    border-left: none;
    padding-left: 16px;
  }
  .mega-col + .mega-col {
    border-left: none;
    padding-left: 16px;
  }
  .mega-col h5 {
    margin-bottom: 6px;
    margin-top: 12px;
    color: #94a3b8;
    font-size: 0.6rem;
    padding: 0;
  }
  .mega-col:first-child h5 {
    margin-top: 4px;
  }
  .mega-col a {
    display: block;
    padding: 9px 0;
    font-size: 0.88rem;
    border-radius: 0;
    margin: 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
  }
  .mega-col a:last-child {
    border-bottom: none;
  }
  .mega-col a:hover {
    background: transparent;
    color: var(--accent-primary);
  }

  /* CTA column always spans full width on mobile */
  .mega-col-cta {
    margin: 8px 0 0;
    padding: 16px;
    border-radius: 0;
    border-left: none;
    background: #f1f5f9;
    border-color: #e2e8f0;
  }
  .mega-col-cta h5 {
    margin-top: 0;
  }
  .mega-col-cta a {
    border-bottom: none;
  }

  .header-actions {
    display: none;
  }

  /* Mobile CTA link in nav */
  .mobile-nav-cta,
  .mobile-nav-login {
    display: none;
  }
  .header-nav.mobile-open .mobile-nav-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--accent-primary);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 14px 16px;
    margin: 0;
    width: 100%;
    text-decoration: none;
    text-align: center;
    flex-shrink: 0;
  }
  .header-nav.mobile-open .mobile-nav-cta:hover {
    background: var(--accent-hover);
  }
  .header-nav.mobile-open .mobile-nav-login {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
    padding: 14px 16px;
    margin: 0;
    width: 100%;
    text-align: center;
    border-top: 1px solid var(--border-light);
    flex-shrink: 0;
  }
  .mobile-nav-cta i,
  .mobile-nav-cta svg {
    width: 14px;
    height: 14px;
  }
}

/* Breadcrumbs */
.breadcrumb-container {
  background-color: var(--bg-base);
  padding: 16px 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.breadcrumb {
  list-style: none;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
}
.breadcrumb-item:not(:last-child)::after {
  content: '/';
  margin-left: 12px;
  color: var(--text-light);
}

.breadcrumb-link {
  color: var(--text-muted);
  transition: color 0.2s ease;
}
.breadcrumb-link:hover {
  color: var(--accent-primary);
}
.breadcrumb-current {
  color: var(--text-main);
  font-weight: 500;
}

@media (max-width: 640px) {
  .breadcrumb-container {
    padding: 12px 0;
  }
  .breadcrumb {
    font-size: 0.78rem;
    gap: 4px 8px;
  }
  .breadcrumb-item:not(:last-child)::after {
    margin-left: 8px;
  }
  .breadcrumb-current {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* Footer */
.site-footer {
  background: var(--bg-base);
  border-top: 1px solid var(--border-light);
  padding-top: 80px;
}

.footer-main {
  padding-bottom: 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(6, 1fr);
  gap: 40px;
}

/* CTA band — sits above the link grid */
.footer-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 44px;
  margin-bottom: 44px;
  border-bottom: 1px solid var(--border-light);
}

/* Suppress the footer CTA band on pages that already end in their own CTA
   section, so we never stack two CTAs. The band then only appears on the few
   CTA-less pages (legal, sitemap, glossary terms) as a fallback. */
body:has(
    .final-cta,
    .bl-final,
    .ca-final,
    .bf-solution-cta,
    .bf-resource-cta,
    .term-cta-section,
    .cta-box
  )
  .footer-cta {
  display: none;
}
.footer-cta-copy h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.25;
  margin: 0 0 6px;
}
.footer-cta-copy p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0;
}
.footer-cta-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.footer-cta-primary,
.footer-cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 8px;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}
.footer-cta-primary {
  background: var(--accent-primary);
  color: #fff;
}
.footer-cta-primary:hover {
  background: var(--accent-primary-hover, var(--text-main));
}
.footer-cta-secondary {
  color: var(--text-main);
  border: 1px solid var(--border-light);
}
.footer-cta-secondary:hover {
  border-color: var(--text-light);
  background: var(--bg-subtle);
}

/* Product-fact trust chips under the brand blurb */
.footer-trust {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}
.footer-trust li {
  position: relative;
  font-size: 0.78rem;
  color: var(--text-light);
  padding-left: 18px;
}
.footer-trust li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: var(--accent-primary);
  opacity: 0.6;
}

.footer-brand img {
  height: 28px;
  margin-bottom: 24px;
}
.footer-brand p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 320px;
}

.footer-column h4 {
  color: var(--text-main);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-column ul li {
  margin-bottom: 14px;
}
.footer-column ul li a {
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}
.footer-column ul li a:hover {
  color: var(--accent-primary);
}

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding: 28px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-light);
}

.footer-copy {
  font-size: 0.85rem;
  letter-spacing: 0.01em;
}
.footer-copy a {
  color: var(--text-muted);
  border-bottom: 1px solid transparent;
  transition:
    border-color 0.2s ease,
    color 0.2s ease;
}
.footer-copy a:hover {
  color: var(--text-main);
  border-bottom-color: var(--text-light);
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer-social a {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: var(--text-light);
  background: transparent;
  transition:
    color 0.2s ease,
    background 0.2s ease;
}
.footer-social a:hover {
  color: var(--text-main);
  background: var(--bg-subtle);
}

.footer-lang-link {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
}

.footer-legal {
  display: flex;
  gap: 32px;
}
.footer-legal a:hover {
  color: var(--text-main);
}

/* Slightly tighter, more SaaS-like column headings */
.footer-column h4 {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.78rem !important;
  color: var(--text-light) !important;
}
.footer-column ul li a {
  font-size: 0.88rem !important;
}

/* Promo Banner */
.promo-banner {
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-light);
  padding: 16px 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.promo-banner a {
  color: var(--text-main);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--border-light);
  text-underline-offset: 4px;
}
.promo-banner a:hover {
  color: var(--accent-primary);
  text-decoration-color: var(--accent-primary);
}

/* Responsive Footer */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .site-footer {
    padding-top: 56px;
  }
  .footer-main {
    padding-bottom: 40px;
  }
  .footer-column h4 {
    margin-bottom: 16px;
    font-size: 0.9rem;
  }
  .footer-column ul li {
    margin-bottom: 10px;
  }
  .footer-column ul li a {
    font-size: 0.88rem;
  }
  .footer-legal {
    gap: 20px;
  }
  .footer-cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding-bottom: 36px;
    margin-bottom: 36px;
  }
  .footer-cta-copy h3 {
    font-size: 1.2rem;
  }
  .footer-cta-actions {
    width: 100%;
    flex-direction: column;
  }
  .footer-cta-primary,
  .footer-cta-secondary {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  .footer-legal {
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* Hub/index page styles are now in layouts/hub.css */

/* Resources page styles are now in layouts/hub.css */

/* ==========================================================================
   GLOSSARY HUB
   ========================================================================== */

/* Sticky letter bar */
.glossary-letter-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  justify-content: center;
  max-width: var(--container-max);
  margin: 0 auto 48px;
  padding: 16px 24px;
  background: var(--bg-base);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 72px;
  z-index: 10;
}
.glossary-letter-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 4px;
  background: transparent;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.15s ease;
  border: none;
}
.glossary-letter-link:hover {
  background: var(--bg-dark);
  color: white;
}

/* Letter group as card */
.glossary-letter-group {
  max-width: var(--container-max);
  margin: 0 auto 24px;
  padding: 0 24px;
}
.glossary-letter-group-inner {
  background: var(--bg-base);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 28px 32px;
}
.glossary-letter-group h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--bg-dark);
  display: inline-block;
}
.glossary-term-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0 40px;
}
.glossary-term-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}
.glossary-term-list li:last-child {
  border-bottom: none;
}
.glossary-term-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.15s ease;
}
.glossary-term-list a::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--border-light);
  flex-shrink: 0;
  transition: background 0.15s ease;
}
.glossary-term-list a:hover {
  color: var(--accent-primary);
}
.glossary-term-list a:hover::before {
  background: var(--accent-primary);
}

@media (max-width: 640px) {
  .glossary-term-list {
    grid-template-columns: 1fr;
  }
  .glossary-letter-nav {
    gap: 1px;
    padding: 12px 16px;
  }
  .glossary-letter-link {
    width: 30px;
    height: 30px;
    font-size: 0.7rem;
  }
  .glossary-letter-group-inner {
    padding: 20px;
  }
}

/* ==========================================================================
   ANNOUNCEMENT BAR + AUTO-CAPTURE WAITLIST MODAL
   ========================================================================== */

/* ── Announcement Bar ── */
.announcement-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 40px;
  background: #fff;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 16px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  z-index: 1001;
  transition: background 0.15s;
  overflow: hidden;
}
.announcement-bar:hover {
  background: var(--bg-subtle);
}
.announcement-ticker-wrap {
  overflow: hidden;
  flex: 1;
  min-width: 0;
}
.announcement-text {
  display: inline-block;
  white-space: nowrap;
}
.announcement-cta {
  flex-shrink: 0;
  color: var(--accent-primary);
  font-weight: 700;
  white-space: nowrap;
}

/* Desktop: text is short enough to show in full - no animation needed */
@media (min-width: 641px) {
  .announcement-ticker-wrap {
    overflow: visible;
    flex: unset;
  }
  .announcement-text {
    display: inline;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* Mobile: ticker scrolls the full copy inside the 40px bar */
@media (max-width: 640px) {
  .announcement-bar {
    justify-content: flex-start;
    gap: 0;
    padding: 0 12px 0 0;
  }
  .announcement-ticker-wrap {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 80%, transparent 100%);
    -webkit-mask-image: linear-gradient(
      to right,
      transparent 0%,
      black 8%,
      black 80%,
      transparent 100%
    );
  }
  .announcement-text {
    animation: ticker-scroll 18s linear infinite;
    padding-left: 16px;
  }
  .announcement-text:hover,
  .announcement-bar:hover .announcement-text {
    animation-play-state: paused;
  }
  .announcement-cta {
    flex-shrink: 0;
    padding-left: 10px;
    border-left: 1px solid var(--border-light);
    margin-left: 4px;
  }
}

@keyframes ticker-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* ── Founding Spot Modal Backdrop ── */
.waitlist-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.waitlist-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.waitlist-window {
  background: #fff;
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  border-radius: 18px;
  border: 1px solid var(--border-light);
  box-shadow: 0 20px 60px -15px rgba(15, 23, 42, 0.25);
  overflow-y: auto;
  position: relative;
  transform: translateY(16px) scale(0.98);
  opacity: 0;
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.4s ease;
}
.waitlist-backdrop.active .waitlist-window {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.waitlist-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition:
    background 0.15s,
    color 0.15s;
}
.waitlist-close:hover {
  background: var(--border-light);
  color: var(--text-main);
}

.waitlist-copy-panel {
  padding: 32px 40px 32px;
  display: flex;
  flex-direction: column;
}

.waitlist-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent-primary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.waitlist-eyebrow::before {
  content: '';
  width: 14px;
  height: 1px;
  background: var(--accent-primary);
  flex-shrink: 0;
}

.waitlist-proof {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.waitlist-proof li {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.4;
  letter-spacing: -0.005em;
}
.waitlist-proof-mark {
  flex-shrink: 0;
  display: inline-flex;
  color: var(--accent-primary);
  filter: drop-shadow(0 1px 2px rgba(224, 93, 54, 0.25));
}

.waitlist-labs-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent-primary);
  background: rgba(224, 93, 54, 0.07);
  border: 1px solid rgba(224, 93, 54, 0.15);
  padding: 4px 10px;
  border-radius: 99px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
  width: fit-content;
}
.waitlist-labs-badge::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--accent-primary);
  border-radius: 50%;
  animation: wl-pulse 2s infinite alternate;
  flex-shrink: 0;
}
@keyframes wl-pulse {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0.35;
  }
}

.waitlist-headline {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 10px;
}

.waitlist-lede {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0 0 22px;
}
.waitlist-lede strong {
  color: var(--text-main);
  font-weight: 700;
  background-image: linear-gradient(
    to bottom,
    transparent 62%,
    rgba(224, 93, 54, 0.18) 62%,
    rgba(224, 93, 54, 0.18) 94%,
    transparent 94%
  );
  padding: 0 2px;
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.waitlist-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.waitlist-field--primary {
  margin-bottom: 0;
}
.waitlist-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Progressive reveal - the rest of the form unfolds once a valid email is in.
   Height animates via grid-template-rows 0fr → 1fr (Chromium/Firefox/Safari TP)
   with an opacity crossfade. Prefers-reduced-motion users get the snap version. */
.waitlist-reveal {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  pointer-events: none;
  transition:
    grid-template-rows 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.35s ease;
}
.waitlist-reveal > * {
  min-height: 0;
  overflow: hidden;
}
.waitlist-reveal.open {
  grid-template-rows: 1fr;
  opacity: 1;
  pointer-events: auto;
}
.waitlist-reveal.open > * {
  overflow: visible;
}
@media (prefers-reduced-motion: reduce) {
  .waitlist-reveal {
    transition: none;
  }
}

.waitlist-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 14px;
  margin-top: 4px;
}

.waitlist-input {
  display: block;
  width: 100%;
  padding: 11px 14px;
  border-radius: 9px;
  border: 1.5px solid var(--border-light);
  background: var(--bg-subtle);
  color: var(--text-main);
  font-size: 0.9rem;
  font-family: var(--font-sans);
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    background 0.2s;
}
.waitlist-field--primary .waitlist-input {
  padding: 13px 16px;
  font-size: 0.96rem;
}
.waitlist-input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(224, 93, 54, 0.1);
  background: #fff;
}
.waitlist-input::placeholder {
  color: var(--text-light);
}

.waitlist-segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  background: var(--bg-subtle);
  padding: 4px;
  border: 1.5px solid var(--border-light);
  border-radius: 9px;
}
.waitlist-segment {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s,
    box-shadow 0.15s;
}
.waitlist-segment input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.waitlist-segment span {
  line-height: 1;
}
.waitlist-segment:hover {
  color: var(--text-main);
}
.waitlist-segment:has(input:checked) {
  background: #fff;
  color: var(--text-main);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.08),
    0 0 0 1px rgba(224, 93, 54, 0.35);
}
.waitlist-segment:has(input:focus-visible) {
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.08),
    0 0 0 2px rgba(224, 93, 54, 0.4);
}

.waitlist-btn {
  width: 100%;
  background: var(--accent-primary);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 14px 20px;
  border-radius: 9px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition:
    background 0.15s,
    transform 0.15s,
    box-shadow 0.15s;
  box-shadow: 0 3px 10px rgba(224, 93, 54, 0.2);
  margin-top: 6px;
}
.waitlist-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(224, 93, 54, 0.3);
}
.waitlist-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}
.waitlist-btn svg {
  flex-shrink: 0;
  transition: transform 0.15s;
}
.waitlist-btn:hover:not(:disabled) svg {
  transform: translateX(2px);
}

/* ── Success State ── */
.waitlist-success {
  display: none;
  padding: 8px 0 4px;
}
.waitlist-success.visible {
  display: block;
}
.waitlist-success-icon {
  width: 44px;
  height: 44px;
  background: #dcfce7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 16px;
  color: #16a34a;
}
.waitlist-success h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  color: var(--text-main);
}
.waitlist-steps {
  list-style: none;
  counter-reset: waitlist-step;
  padding: 0;
  margin: 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.waitlist-steps li {
  counter-increment: waitlist-step;
  position: relative;
  padding: 12px 14px 12px 48px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.waitlist-steps li::before {
  content: counter(waitlist-step);
  position: absolute;
  top: 12px;
  left: 12px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-primary);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.waitlist-steps li strong {
  display: block;
  color: var(--text-main);
  font-weight: 700;
  margin-bottom: 2px;
}
.waitlist-success-footer {
  font-size: 0.78rem;
  color: var(--text-light);
  line-height: 1.55;
  margin: 0;
  text-align: center;
}

/* ── Responsive ── */
@media (max-width: 520px) {
  .waitlist-window {
    border-radius: 14px;
    max-width: 100%;
  }
  .waitlist-copy-panel {
    padding: 28px 22px 26px;
  }
  .waitlist-grid {
    grid-template-columns: 1fr;
  }
  .waitlist-headline {
    font-size: 1.4rem;
  }
  .waitlist-steps li {
    padding: 11px 12px 11px 44px;
    font-size: 0.85rem;
  }
}

/* --- Founding-Spot Testimonial Banner ---------------------------------
   Used on calculator pages (injected by build.js) and permit pages (via
   the <!-- inject:calculator-banner --> placeholder). Loads site-wide so
   any page that opts in gets consistent styling. */

.bf-premium-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin: 0 0 32px;
  padding: 22px 28px;
  cursor: pointer;
  background-color: var(--bg-base);
  background-image: radial-gradient(
    ellipse at top left,
    rgba(224, 93, 54, 0.035) 0%,
    rgba(224, 93, 54, 0) 55%
  );
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-subtle);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.bf-premium-banner:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: #cbd5e1;
}

.bf-promo-content {
  flex: 1;
  min-width: 0;
}

.bf-promo-quote {
  position: relative;
  margin: 0;
  padding-left: 22px;
}

.bf-promo-quote::before {
  content: '\201C';
  position: absolute;
  top: -14px;
  left: -6px;
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 800;
  line-height: 1;
  color: var(--accent-primary);
  opacity: 0.22;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.bf-premium-banner:hover .bf-promo-quote::before {
  opacity: 0.35;
}

.bf-promo-quote-text {
  font-family: var(--font-display);
  margin: 0 0 5px;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.bf-promo-quote-attribution {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  line-height: 1.5;
}

.bf-promo-quote-dash {
  color: var(--accent-primary);
  font-weight: 600;
}

.bf-promo-quote-name {
  color: var(--text-main);
  font-weight: 700;
}

.bf-promo-offer {
  margin: 12px 0 0 22px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.bf-promo-offer strong {
  color: var(--text-main);
  font-weight: 600;
  background-image: linear-gradient(
    to bottom,
    transparent 62%,
    rgba(224, 93, 54, 0.18) 62%,
    rgba(224, 93, 54, 0.18) 94%,
    transparent 94%
  );
  padding: 0 2px;
}

.bf-divider {
  width: 1px;
  height: 72px;
  background: linear-gradient(
    to bottom,
    rgba(226, 232, 240, 0) 0%,
    rgba(226, 232, 240, 1) 20%,
    rgba(226, 232, 240, 1) 80%,
    rgba(226, 232, 240, 0) 100%
  );
  flex-shrink: 0;
}

.bf-promo-action {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.bf-promo-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: var(--accent-primary);
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  padding: 11px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 2px 5px rgba(224, 93, 54, 0.2);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  white-space: nowrap;
}

.bf-premium-banner:hover .bf-promo-button {
  background: var(--accent-hover);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 4px 12px rgba(224, 93, 54, 0.3);
  transform: translateY(-1px);
}

.bf-promo-button svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s ease;
}

.bf-premium-banner:hover .bf-promo-button svg {
  transform: translateX(2px);
}

@media (max-width: 860px) {
  .bf-premium-banner {
    padding: 18px 22px;
    gap: 18px;
  }
  .bf-divider {
    display: none;
  }
  .bf-promo-offer {
    display: none;
  }
}

@media (max-width: 560px) {
  .bf-premium-banner {
    padding: 14px 16px 14px 14px;
    gap: 12px;
  }
  .bf-promo-quote {
    padding-left: 18px;
  }
  .bf-promo-quote::before {
    font-size: 38px;
    top: -10px;
    left: -4px;
    opacity: 0.3;
  }
  .bf-promo-quote-text {
    font-size: 13.5px;
    margin-bottom: 2px;
    line-height: 1.35;
  }
  .bf-promo-quote-attribution {
    display: none;
  }
  .bf-promo-button {
    font-size: 12px;
    padding: 9px 14px;
  }
}

/* ─── Solution banner (BOFU routing block) ─────────────────────────────── */
.bf-solution-banner {
  position: relative;
  width: 100%;
  margin: 2.5rem 0;
  padding: 2rem 2rem 1.75rem;
  border: 1px solid #e8e8ea;
  border-radius: 14px;
  background: #ffffff;
  box-shadow:
    0 1px 0 0 rgba(0, 0, 0, 0.02),
    0 8px 24px -16px rgba(0, 0, 0, 0.08);
}

.bf-solution-banner-headline {
  margin: 0 0 0.75rem;
  font-size: 1.4rem;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #111315;
}

.bf-solution-banner-body {
  margin: 0 0 1.5rem;
  font-size: 0.98rem;
  line-height: 1.65;
  color: #4b5563;
}

.bf-solution-banner-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: #ffffff;
  background: var(--text-main, #0f172a);
  border-radius: 8px;
  text-decoration: none;
  transition:
    background 0.15s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.bf-solution-banner-cta:hover {
  background: var(--bg-dark, #05080f);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px -6px rgba(15, 23, 42, 0.4);
}

.bf-solution-banner-cta svg {
  transition: transform 0.15s ease;
}

.bf-solution-banner-cta:hover svg {
  transform: translateX(2px);
}

@media (max-width: 640px) {
  .bf-solution-banner {
    margin: 2rem 0;
    padding: 1.5rem 1.25rem 1.5rem;
    border-radius: 12px;
  }
  .bf-solution-banner-headline {
    font-size: 1.2rem;
  }
  .bf-solution-banner-body {
    font-size: 0.95rem;
  }
  .bf-solution-banner-cta {
    width: 100%;
    justify-content: center;
  }
}

/* ── Shared closing CTA band (injected before footer on content pages) ── */
.cta-band {
  padding: 80px 0 84px;
  background: var(--bg-dark, #0f172a);
  background-image: radial-gradient(
    ellipse 60% 40% at 50% 100%,
    rgba(224, 93, 54, 0.06) 0%,
    transparent 60%
  );
  border-top: 1px solid var(--border-dark, rgba(255, 255, 255, 0.08));
  text-align: center;
}
.cta-band-inner {
  max-width: 560px;
  margin: 0 auto;
}
.cta-band h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0 0 14px;
  line-height: 1.12;
}
.cta-band p {
  font-size: 1rem;
  color: #94a3b8;
  line-height: 1.55;
  margin: 0 0 14px;
}
.cta-band .cta-band-fine {
  font-size: 0.85rem;
  color: #64748b;
  margin: 0 0 26px;
}
.cta-band-btn {
  padding: 15px 34px;
  font-size: 1rem;
}
.cta-band-btn svg {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  margin-left: 6px;
}
@media (max-width: 640px) {
  .cta-band {
    padding: 60px 0;
  }
}

/* Announcement bar hidden 2026-06-03 (markup still emitted by generate-header.js) */
.announcement-bar {
  display: none;
}

/* ── Top trial CTA (calculator-banner) ──────────────────────────────────────
   Injected at the top of every calculator AND permit page. Lives here (global)
   rather than calculator.css because permit pages do not load that stylesheet. */
.bf-trial-cta {
  margin-top: 14px;
  margin-bottom: 28px;
  padding: 16px 18px 14px;
  background: var(--bg-base);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}
.bf-trial-cta-body {
  margin: 0 0 12px !important;
  font-size: 0.83rem !important;
  color: var(--text-main) !important;
  line-height: 1.55 !important;
  letter-spacing: -0.005em;
}
.bf-trial-cta-body strong {
  color: var(--text-main);
  font-weight: 700;
}
.bf-trial-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  background: var(--text-main);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  letter-spacing: -0.005em;
  transition:
    background 0.16s ease,
    transform 0.16s ease;
}
.bf-trial-cta-btn:hover {
  background: #000;
  transform: translateY(-1px);
}
.bf-trial-cta-btn svg {
  width: 14px;
  height: 14px;
}
.bf-trial-cta-fineprint {
  display: block;
  margin: 8px 0 0 !important;
  font-size: 0.7rem !important;
  color: var(--text-light) !important;
  line-height: 1.4 !important;
  letter-spacing: 0;
}
@media (max-width: 768px) {
  .bf-trial-cta {
    padding: 14px 16px 12px;
  }
  .bf-trial-cta-btn {
    width: 100%;
    justify-content: center;
  }
}
