/* Marketing site — Bootstrap 5 + Credence tokens */

/*
 * Fixed marketing nav height — single source of truth (credence-tokens :root uses 35px for app shell).
 * #topbar, main offset, hero min-heights, and html scroll-padding all derive from this.
 */
:root {
  --marketing-topbar-height: 70px;
}

/*
 * In-page anchors (#hash): reserve space for fixed #topbar plus comfortable gap.
 * Browsers vary; safe-area covers notched devices. Increase the rem term if headings still sit under the bar.
 */
html {
  scroll-padding-top: calc(
    var(--marketing-topbar-height) + 1.75rem + env(safe-area-inset-top, 0px)
  );
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

.marketing-body {
  --topbar-height: var(--marketing-topbar-height);

  /* Align Bootstrap “primary” with shell accent (BS 5.2 default blue is undefined here) */
  --bs-primary: var(--shell-accent);
  --bs-primary-rgb: 103, 104, 133;

  font-family: var(--landing-font-body);
  color: var(--shell-dark);
  accent-color: var(--shell-accent);
  caret-color: var(--shell-accent);
  -webkit-tap-highlight-color: rgba(103, 104, 133, 0.22);
  background-color: var(--shell-muted);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(162, 152, 212, 0.18), transparent),
    radial-gradient(ellipse 80% 50% at 100% 50%, rgba(103, 104, 133, 0.08), transparent);
}

/* Text selection highlight */
.marketing-body ::selection {
  background-color: var(--shell-accent);
  color: #fff;
}

/* Firefox selection support */
.marketing-body ::-moz-selection {
  background-color: var(--shell-accent);
  color: #fff;
}

/* Scope to <main> so header/footer links keep their own colors (footer is outside main) */
.marketing-body main a:not(.btn):not(.navbar-brand):not(.topbar-nav-link):not(.topbar-signin):not(.topbar-contact-sales) {
  color: var(--shell-accent);
}

.marketing-body main a:not(.btn):not(.navbar-brand):not(.topbar-nav-link):not(.topbar-signin):not(.topbar-contact-sales):visited {
  color: color-mix(in srgb, var(--shell-accent) 82%, #000);
}

.marketing-body main a:not(.btn):not(.navbar-brand):not(.topbar-nav-link):not(.topbar-signin):not(.topbar-contact-sales):hover {
  color: color-mix(in srgb, var(--shell-accent) 88%, #000);
}

.marketing-body :focus-visible {
  outline: 2px solid color-mix(in srgb, var(--shell-accent) 78%, #fff);
  outline-offset: 2px;
}

.marketing-body .form-control:focus,
.marketing-body .form-select:focus,
.marketing-body .form-check-input:focus {
  border-color: color-mix(in srgb, var(--shell-accent) 68%, #fff);
  box-shadow: 0 0 0 0.25rem rgba(103, 104, 133, 0.18);
}

.marketing-body .form-check-input:checked {
  background-color: var(--shell-accent);
  border-color: var(--shell-accent);
}

/*
 * BS 5.2 hardcodes #0d6efd on .btn-primary; override so it follows --shell-accent.
 * (Utilities like .text-primary / .bg-primary still use --bs-primary above.)
 */
.marketing-body .btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--shell-accent);
  --bs-btn-border-color: var(--shell-accent);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: color-mix(in srgb, var(--shell-accent) 88%, #000);
  --bs-btn-hover-border-color: color-mix(in srgb, var(--shell-accent) 88%, #000);
  --bs-btn-focus-shadow-rgb: 103, 104, 133;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: color-mix(in srgb, var(--shell-accent) 82%, #000);
  --bs-btn-active-border-color: color-mix(in srgb, var(--shell-accent) 82%, #000);
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: var(--shell-accent);
  --bs-btn-disabled-border-color: var(--shell-accent);
}

.marketing-body .btn-outline-primary {
  --bs-btn-color: var(--shell-accent);
  --bs-btn-border-color: var(--shell-accent);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--shell-accent);
  --bs-btn-hover-border-color: var(--shell-accent);
  --bs-btn-focus-shadow-rgb: 103, 104, 133;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: color-mix(in srgb, var(--shell-accent) 88%, #000);
  --bs-btn-active-border-color: color-mix(in srgb, var(--shell-accent) 88%, #000);
  --bs-btn-disabled-color: var(--shell-accent);
  --bs-btn-disabled-bg: transparent;
  --bs-btn-disabled-border-color: var(--shell-accent);
}

.marketing-body h1,
.marketing-body h2,
.marketing-body h3,
.marketing-body .display-font {
  font-family: var(--landing-font-display);
}

/* App topbar parity — full width on landing (no sidebar inset) */
#topbar {
  --topbar-height: var(--marketing-topbar-height);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99;
  padding: 0;
  overflow: visible;
  background-color: var(--shell-navigation-bg);
  color: var(--shell-muted);
  border-bottom: 1px solid var(--shell-accent);
  font-size: 15px;
  min-height: var(--topbar-height);
  align-items: center;
}

#topbar.navbar {
  --bs-navbar-padding-y: 0;
  --bs-navbar-padding-x: 0;
}

/* Brand | centered nav | actions (desktop); mobile rows below */
#topbar .topbar-shell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: var(--topbar-height);
}

@media (min-width: 992px) {
  #topbar .topbar-shell {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    height: var(--topbar-height);
    gap: 1.5rem;
  }

  /* Keep dropdown anchors synced to topbar height so menus start below the bar */
  #topbar .topbar-primary-nav .nav-mega-dropdown {
    display: flex;
    align-items: center;
    min-height: var(--topbar-height);
  }
}

@media (max-width: 991.98px) {
  #topbar {
    min-height: var(--topbar-height);
  }

  #topbar .topbar-shell {
    min-height: var(--topbar-height);
    gap: 0;
    align-items: stretch;
  }

  /*
   * Mobile header: pin hamburger to the right without covering the brand.
   * Reserve horizontal space so logo + "Credence" truncate with ellipsis instead of overlapping the button.
   */
  #topbar .topbar-mobile-header-row {
    position: relative;
    flex: 0 0 auto;
    width: 100%;
    min-height: var(--topbar-height);
    display: flex !important;
    align-items: center;
    /* ~44px toggler + container rhythm — keeps copy out from under the icon */
    padding-right: 3.25rem;
    box-sizing: border-box;
  }

  #topbar .topbar-mobile-header-row .navbar-brand {
    min-width: 0;
    flex: 1 1 auto;
    max-width: 100%;
    margin-right: 0 !important;
    padding-right: 0;
  }

  #topbar .topbar-mobile-header-row .topbar-brand-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #topbar .topbar-mobile-header-row .topbar-toggler {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
  }
}

/* Stable hit targets; overflow visible so dropdown menus are not clipped by flex ancestors */
#topbar .container.topbar-shell,
#topbar .topbar-brand-shell,
#topbar .topbar-center,
#topbar .topbar-primary-nav,
#topbar .topbar-primary-nav .nav-item.dropdown {
  overflow: visible;
}

#topbar .topbar-center {
  min-width: 0;
}

#topbar .topbar-primary-nav {
  justify-content: center;
  /* Equal space between items; each link is only as wide as its label */
  column-gap: 1.5rem;
  flex-wrap: nowrap;
}

/* Anchor for dropdown panels (Bootstrap uses position:static on .navbar-nav .dropdown-menu until .navbar-expand-*) */
#topbar .nav-mega-dropdown {
  position: relative;
}

#topbar .topbar-nav-link {
  color: var(--shell-muted) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
  padding: 0.2rem 0.45rem;
  line-height: 1.25;
  font-size: 15px;
  font-weight: 500;
  border: 1px solid transparent;
  border-radius: var(--shell-border-radius);
  outline: none;
  box-shadow: none;
  transition: color 0.15s ease, background-color 0.15s ease;
}

/* Mouse hover only — keep subtle (avoid “pill” chrome that reads like selection) */
#topbar .topbar-nav-link:hover {
  color: var(--shell-navigation-selected-text) !important;
  background-color: rgba(255, 255, 255, 0.04);
}

/* Keyboard focus: thin ring, no filled background */
#topbar .topbar-nav-link:focus {
  outline: none;
  box-shadow: none;
}

#topbar .topbar-nav-link:focus-visible {
  color: var(--shell-navigation-selected-text) !important;
  background-color: transparent;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
}

#topbar .topbar-nav-link::after {
  display: none !important;
}

/* Open dropdown — Bootstrap adds .show; keep label quiet (menu shows state) */
#topbar .topbar-nav-link.show {
  background-color: transparent;
  box-shadow: none;
}

#topbar .navbar-brand {
  color: var(--shell-muted) !important;
}

#topbar .nav-link:not(.topbar-nav-link) {
  color: var(--shell-muted) !important;
  font-weight: 500;
}

#topbar .navbar-brand:hover {
  color: var(--shell-navigation-selected-text) !important;
}

#topbar .navbar-brand:hover .topbar-brand-text,
#topbar .navbar-brand:focus-visible .topbar-brand-text {
  color: var(--shell-navigation-selected-text) !important;
}

#topbar .topbar-brand-text {
  line-height: 1.25;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--shell-muted);
}

@media (max-width: 991.98px) {
  #topbar .topbar-brand-text {
    font-size: 17px;
  }
}

#topbar .topbar-toggler {
  padding: 0.15rem 0.4rem;
}

#topbar .topbar-collapse-mobile {
  margin-top: 0;
}

@media (max-width: 991.98px) {
  #topbar .topbar-collapse-mobile {
    flex-basis: 100%;
    order: 5;
  }
}

/* Topbar CTAs — text link + pill (matches product marketing pattern) */
#topbar .topbar-signin,
#topbar .topbar-contact-sales {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 16px;
  line-height: 1.25;
  white-space: nowrap;
  text-decoration: none;
}

#topbar .topbar-cta-chevron {
  flex-shrink: 0;
  margin-top: 1px;
  transition: transform 0.2s ease;
}

#topbar .topbar-signin {
  color: var(--shell-muted) !important;
  font-weight: 500;
  padding: 0.2rem 0.15rem;
  border-radius: var(--shell-border-radius);
  transition: color 0.2s ease;
}

#topbar .topbar-signin:hover {
  color: var(--shell-navigation-selected-text) !important;
}

#topbar .topbar-signin:hover .topbar-cta-chevron {
  transform: translateX(3px);
}

#topbar .topbar-signin:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(103, 104, 133, 0.55);
  border-radius: var(--shell-border-radius);
}

#topbar .topbar-contact-sales {
  color: var(--shell-dark) !important;
  font-weight: 600;
  padding: 0.28rem 0.85rem;
  border-radius: 999px;
  background: var(--shell-accent-light);
  border: 1px solid var(--shell-accent);
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

#topbar .topbar-contact-sales:hover {
  background: var(--shell-light);
  border-color: var(--shell-navigation-selected-text);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

#topbar .topbar-contact-sales:hover .topbar-cta-chevron {
  transform: translateX(2px);
}

#topbar .topbar-contact-sales:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px var(--shell-navigation-bg),
    0 0 0 4px rgba(103, 104, 133, 0.55);
}

#topbar .topbar-mobile-actions {
  border-color: rgba(255, 255, 255, 0.2) !important;
}

/* Mobile drawer: accordion in-panel expansion + footer CTAs separated from primary nav */
@media (max-width: 991.98px) {
  #topbar .topbar-mobile-menu-inner {
    display: flex;
    flex-direction: column;
    min-height: min(100vh - var(--topbar-height), calc(100dvh - var(--topbar-height)));
    padding-bottom: 1.25rem;
    padding-top: 0.15rem;
  }

  #topbar .topbar-mobile-accordion {
    flex: 0 0 auto;
    --bs-accordion-bg: transparent;
    --bs-accordion-border-color: transparent;
    --bs-accordion-active-bg: transparent;
    --bs-accordion-btn-focus-box-shadow: 0 0 0 2px rgba(103, 104, 133, 0.45);
  }

  #topbar .topbar-mobile-accordion-item {
    background: transparent;
    border: none;
  }

  #topbar .topbar-mobile-accordion-header {
    margin-bottom: 0;
  }

  #topbar .topbar-mobile-accordion-btn {
    background-color: transparent !important;
    color: var(--shell-muted) !important;
    font-weight: 500;
    font-size: 15px;
    padding: 0.85rem 0.15rem 0.85rem 0;
    box-shadow: none !important;
    border-radius: var(--shell-border-radius);
  }

  #topbar .topbar-mobile-accordion-btn:hover {
    color: var(--shell-navigation-selected-text) !important;
  }

  #topbar .topbar-mobile-accordion-btn:not(.collapsed) {
    color: var(--shell-navigation-selected-text) !important;
    box-shadow: none !important;
  }

  #topbar .topbar-mobile-accordion-btn::after {
    flex-shrink: 0;
    width: 0.85rem;
    height: 0.85rem;
    margin-left: auto;
    background-size: 0.85rem;
    filter: brightness(0) invert(1);
    opacity: 0.75;
  }

  #topbar .topbar-mobile-accordion-btn:not(.collapsed)::after {
    opacity: 1;
  }

  #topbar .topbar-mobile-accordion-btn--link::after {
    content: none !important;
    display: none !important;
  }

  #topbar .topbar-mobile-accordion-body {
    padding: 0 0 0.5rem 0;
    background: transparent;
    border: none;
  }

  #topbar .topbar-mobile-sublink {
    display: block;
    padding: 0.65rem 0.65rem 0.65rem 0;
    margin-bottom: 0.2rem;
    border-radius: 0;
    text-decoration: none;
    border: none;
    box-shadow: none;
  }

  #topbar .topbar-mobile-sublink:last-child {
    margin-bottom: 0;
  }

  #topbar .topbar-mobile-actions-footer {
    margin-top: auto;
    padding-top: 2.25rem;
    gap: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    width: 100%;
  }
}

body.marketing-body > main.marketing-main {
  padding-top: var(--topbar-height);
}

.error-page {
  min-height: min(calc(100vh - var(--topbar-height)), calc(100dvh - var(--topbar-height)));
  display: flex;
  align-items: center;
  text-align: left;
  /* Extra top padding below fixed topbar (main already offsets by --topbar-height) */
  padding: clamp(5rem, 14vh, 10rem) 0 4rem;
}

.error-page .container {
  max-width: 52rem;
}

.error-page__content {
  max-width: 44rem;
  margin: 0 auto;
}

.error-page h1 {
  margin-bottom: 1rem;
}

.error-page .lead {
  font-size: 1.2rem;
}

.error-page__actions {
  margin-top: 1.75rem;
}

.site-logo {
  object-fit: contain;
}

.site-logo--nav {
  height: 40px;
  width: auto;
}

.site-logo--footer {
  height: 2.25rem;
  width: auto;
  opacity: 0.92;
  transition: opacity var(--shell-transition-time);
}

.footer-logo-link:hover .site-logo--footer,
.footer-logo-link:focus-visible .site-logo--footer {
  opacity: 1;
}

/* Nav mega-dropdowns — override .navbar-nav .dropdown-menu { position: static } so menus sit under the trigger */
#topbar .nav-mega-dropdown .dropdown-menu {
  position: absolute;
  top: calc(100% + var(--topbar-dropdown-gap));
  left: 0;
  right: auto;
  transform: none;
  min-width: 20rem;
  max-width: 22rem;
  border-radius: var(--shell-border-radius);
  z-index: 1050;
  /* left: 0 keeps panel flush with navlink column */
  margin-top: 0;
  border: none !important;
  box-shadow: none !important;
  --bs-dropdown-link-hover-bg: rgba(103, 104, 133, 0.2);
  --bs-dropdown-link-hover-color: var(--shell-navigation-selected-text);
  --bs-dropdown-link-active-bg: var(--shell-accent);
  --bs-dropdown-link-active-color: #fff;
}

/* Bridge the gap for hover so the menu doesn’t close moving from link → panel */
#topbar .topbar-primary-nav .nav-mega-dropdown .dropdown-menu::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 0;
  width: 100%;
  height: var(--topbar-dropdown-gap);
}

#topbar .nav-dropdown-link {
  white-space: normal;
  padding: 0.75rem 1.25rem;
  border: none;
  box-shadow: none;
}

#topbar .nav-mega-dropdown .dropdown-menu .dropdown-item {
  border: none;
  box-shadow: none;
}

#topbar .nav-dropdown-link:active,
#topbar .nav-dropdown-link.active {
  background-color: var(--shell-accent);
  color: #fff;
}

#topbar .nav-dropdown-link:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3), 0 0 0 2px rgba(103, 104, 133, 0.55);
}

#topbar .nav-dropdown-title {
  display: block;
  font-weight: 600;
  color: var(--shell-navigation-text);
}

#topbar .nav-dropdown-desc {
  display: block;
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.35;
  margin-top: 0.25rem;
  color: rgba(255, 255, 255, 0.55);
}

#topbar .nav-dropdown-link:hover .nav-dropdown-title,
#topbar .nav-dropdown-link:focus .nav-dropdown-title {
  color: var(--shell-navigation-selected-text);
}

#topbar .nav-dropdown-link:hover .nav-dropdown-desc,
#topbar .nav-dropdown-link:focus .nav-dropdown-desc {
  color: rgba(255, 255, 255, 0.75);
}

.section-marketing {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

@media (min-width: 992px) {
  .section-marketing {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
  }

  /*
   * Extra space *inside* a section between intro copy (typically the last paragraph
   * before a diagram, card row, or flow) and the following visual — desktop-first so
   * mobile layouts do not grow too tall.
   */
  .section-marketing .marketing-after-intro {
    margin-top: clamp(1.5rem, 2.4vw, 2.5rem);
  }
}

/* Extra nudge for landing #capability-overview (some engines under-apply html scroll-padding alone) */
#capability-overview {
  scroll-margin-top: 1rem;
}

.section-marketing.alt {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
}

/*
 * Divider-only strips: do not add vertical padding, so the gap between sections
 * matches transitions with no divider (e.g. FAQ → final CTA): only each section's
 * padding-top / padding-bottom contributes, plus the hairline hr.
 */
.section-marketing.alt.px-5 {
  padding-top: 0;
  padding-bottom: 0;
}

.section-marketing.alt.px-5 > hr {
  margin: 0;
}

.hero-section {
  --hero-section-y: clamp(1.5rem, 3.5vw, 2.25rem);
  min-height: calc(100svh - var(--topbar-height));
  display: flex;
  align-items: center;
  padding-top: var(--hero-section-y);
  padding-bottom: var(--hero-section-y);
  box-sizing: border-box;
}

@media (max-width: 991.98px) {
  .hero-section {
    min-height: calc(100svh - var(--topbar-height));
    align-items: center;
    padding-top: var(--hero-section-y);
    padding-bottom: var(--hero-section-y);
  }
}

.hero-kicker {
  color: var(--shell-accent);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.pillar-card {
  background: var(--shell-light);
  border-radius: var(--shell-border-radius);
  border: 1px solid rgba(59, 62, 74, 0.1);
  border-top: 3px solid var(--shell-accent);
  padding: 2rem;
  height: 100%;
  box-shadow: 0 4px 24px rgba(59, 62, 74, 0.07);
  transition: box-shadow var(--shell-transition-time), transform var(--shell-transition-time);
}

.pillar-card:hover {
  box-shadow: 0 10px 36px rgba(59, 62, 74, 0.11);
  transform: translateY(-2px);
}

/* Product column headline */
.pillar-card h3.pillar-card-product-title {
  font-family: var(--landing-font-display);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 0.6rem;
}

/* Audience column headline */
.pillar-card h3.pillar-card-audience-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--shell-accent);
  margin-bottom: 0.65rem;
}

/* Inset callout — left-border strip, no nested box */
.pillar-card .pillar-card-inset {
  padding: 0.6rem 0 0.6rem 1rem;
  border-left: 2px solid var(--shell-accent);
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.pillar-card .pillar-card-inset .pillar-card-inset-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--shell-dark) 45%, transparent);
  margin-bottom: 0.3rem;
}

.pillar-card .pillar-card-inset p {
  font-size: 0.875rem;
  line-height: 1.55;
  margin-bottom: 0;
}

/* Benefits list */
.pillar-card .pillar-benefit-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pillar-card .pillar-benefit-list li {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.9rem;
  padding: 0.22rem 0;
  color: var(--shell-dark);
}

/* Audience column divider */
.pillar-card .pillar-card__audience-col {
  border-color: rgba(59, 62, 74, 0.1) !important;
}

.pillar-card .pillar-card-title-row {
  margin-bottom: 0.5rem;
}

.pillar-card-heading-icon {
  flex-shrink: 0;
  font-size: 1.25rem;
  line-height: 1.2;
  margin-top: 0.05rem;
  color: var(--shell-accent);
}

.pillar-card-capability-list li + li {
  margin-top: 0.25rem;
}

.pillar-card-cap-icon {
  flex-shrink: 0;
  font-size: 0.95rem;
  color: var(--shell-accent);
  opacity: 0.92;
}

/*
 * Capability card visuals — inline SVG + CSS only (no extra requests).
 * Square frame; spacing from copy above matches title→copy gap on the card.
 */
/* Same vertical rhythm as .pillar-card h3 → paragraph (0.5rem) */
.pillar-card > .capability-card-visual {
  margin-top: 0.5rem;
  margin-bottom: 0;
}

.capability-card-visual {
  box-sizing: border-box;
  width: 100%;
  aspect-ratio: 1 / 1;
  color: var(--shell-accent);
  border-radius: var(--shell-border-radius);
  background: linear-gradient(
    160deg,
    rgba(232, 245, 252, 0.55),
    rgba(255, 255, 255, 0.4)
  );
  border: 1px solid rgba(103, 104, 133, 0.12);
  /* Symmetric inset inside the square */
  padding: 0.75rem;
  display: grid;
  place-items: center;
  min-height: 0;
  overflow: hidden;
}

.capability-card-visual svg {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
}

/* Stacked entities — staggered opacity */
.capability-card-visual--entities .cv-entities-layer--a {
  animation: cv-entities-float 2.4s ease-in-out infinite;
}

.capability-card-visual--entities .cv-entities-layer--b {
  animation: cv-entities-float 2.4s ease-in-out infinite 0.25s;
}

.capability-card-visual--entities .cv-entities-layer--c {
  animation: cv-entities-float 2.4s ease-in-out infinite 0.5s;
}

@keyframes cv-entities-float {
  0%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  50% {
    opacity: 0.95;
    transform: translateY(-1px);
  }
}

/* Workflow — center emphasis */
.capability-card-visual--workflow .cv-wf-node:nth-of-type(2) {
  animation: cv-wf-pulse 2s ease-in-out infinite;
}

@keyframes cv-wf-pulse {
  0%,
  100% {
    opacity: 0.65;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

/* Bank — match line */
.capability-card-visual--bank .cv-bank-link {
  animation: cv-bank-blink 1.8s ease-in-out infinite;
}

.capability-card-visual--bank .cv-bank-dot {
  animation: cv-bank-dot 1.8s ease-in-out infinite;
}

@keyframes cv-bank-blink {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 1;
  }
}

@keyframes cv-bank-dot {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 1;
  }
}

/* Document — scan band */
.capability-card-visual--document .cv-doc-scan {
  animation: cv-doc-scan 2.5s ease-in-out infinite;
}

@keyframes cv-doc-scan {
  0%,
  100% {
    opacity: 0.08;
    transform: translateY(0);
  }
  50% {
    opacity: 0.22;
    transform: translateY(10px);
  }
}

/* Search — pulse ring */
.capability-card-visual--search .cv-search-pulse {
  transform-box: fill-box;
  transform-origin: center;
  animation: cv-search-pulse 2.2s ease-out infinite;
  opacity: 0.4;
}

@keyframes cv-search-pulse {
  0% {
    transform: scale(0.85);
    opacity: 0.5;
  }
  70% {
    transform: scale(1.25);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

/* Scheduled — minute hand */
.capability-card-visual--scheduled .cv-clock-hand {
  transform-origin: 60px 28px;
  animation: cv-clock-tick 4s linear infinite;
}

@keyframes cv-clock-tick {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .capability-card-visual,
  .capability-card-visual * {
    animation: none !important;
  }

  .capability-card-visual--scheduled .cv-clock-hand {
    transform: rotate(45deg);
  }
}

.benefit-check {
  display: inline-block;
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
  line-height: 1.1rem;
  text-align: center;
  font-size: 0.6rem;
  font-weight: 800;
  color: var(--shell-accent);
  background: color-mix(in srgb, var(--shell-accent) 12%, transparent);
  border-radius: 50%;
  margin-top: 0.12rem;
}

/* Solution cards — compact pill CTA (same language as #topbar .topbar-contact-sales) */
.pillar-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--shell-dark) !important;
  text-decoration: none;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  background: var(--shell-accent-light);
  border: 1px solid var(--shell-accent);
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.pillar-card-cta .topbar-cta-chevron {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  margin-top: 0;
  transition: transform 0.2s ease;
}

.pillar-card-cta:hover {
  background: var(--shell-light);
  border-color: var(--shell-accent);
  transform: translateY(-1px);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
}

.pillar-card-cta:hover .topbar-cta-chevron {
  transform: translateX(2px);
}

.pillar-card-cta:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(103, 104, 133, 0.45);
}

/* Full-card link entrypoints — text CTA + chevron (not pill) */
a.pillar-card--link {
  color: var(--shell-dark);
  cursor: pointer;
}

a.pillar-card--link:hover,
a.pillar-card--link:focus {
  color: var(--shell-dark);
}

a.pillar-card--link:focus-visible {
  outline: none;
  box-shadow:
    0 12px 40px rgba(59, 62, 74, 0.1),
    0 0 0 2px rgba(103, 104, 133, 0.45);
  transform: translateY(-2px);
}

.pillar-card-link-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--shell-dark);
}

a.pillar-card--link:hover .pillar-card-link-cta {
  color: var(--shell-accent);
}

.pillar-card-link-cta .topbar-cta-chevron {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  transition: transform 0.2s ease;
}

a.pillar-card--link:hover .pillar-card-link-cta .topbar-cta-chevron {
  transform: translateX(3px);
}

.ingestion-badge {
  background: linear-gradient(135deg, rgba(162, 152, 212, 0.25), rgba(181, 238, 248, 0.35));
  border: 1px solid rgba(162, 152, 212, 0.35);
  color: var(--shell-dark);
  font-weight: 600;
  font-size: 0.75rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  display: inline-block;
}

/* Impact / onboarding — flow diagram (distinct from .pillar-card solution tiles) */
.impact-section .impact-flow {
  position: relative;
}

.impact-section .impact-flow-diagram {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

.impact-section .impact-flow-stage {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.impact-section .impact-flow-stage .impact-card--flow {
  flex: 1 1 auto;
}

.impact-section .impact-flow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--shell-success);
  padding: 0.65rem 0;
}

.impact-section .impact-flow-arrow-icon {
  display: block;
  width: 3.5rem;
  height: 3.5rem;
  filter: drop-shadow(0 2px 8px rgba(86, 186, 93, 0.4));
}

@media (min-width: 992px) {
  .impact-section .impact-flow-diagram {
    flex-direction: row;
    align-items: stretch;
    gap: 0.25rem;
  }

  .impact-section .impact-flow-arrow {
    align-self: center;
    padding: 0 0.1rem;
  }

  .impact-section .impact-flow-arrow-icon {
    width: 4.25rem;
    height: 4.25rem;
  }
}

/* Solution pages — five-step mini-card pipeline (narrower chevrons than onboarding flow) */
.solutions-marketing-page .impact-section .impact-flow-diagram.product-pipeline-flow {
  gap: 0.75rem;
}

@media (min-width: 992px) {
  .solutions-marketing-page .impact-section .impact-flow-diagram.product-pipeline-flow {
    gap: 0.35rem;
  }

  .solutions-marketing-page .impact-section .product-pipeline-flow .impact-flow-arrow-icon {
    width: 2.25rem;
    height: 2.25rem;
  }
}

.impact-section .impact-card {
  position: relative;
  z-index: 1;
}

/* Flow nodes: diagram-style vs. pillar cards (flat tiles above) */
.impact-section .impact-card--flow {
  background:
    linear-gradient(145deg, rgba(86, 186, 93, 0.07) 0%, var(--shell-light) 42%, var(--shell-light) 100%);
  border: 1px solid rgba(86, 186, 93, 0.35);
  border-left: 4px solid var(--shell-success);
  border-radius: 0.35rem 0.65rem 0.65rem 0.35rem;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 0 0 1px rgba(59, 62, 74, 0.06),
    0 12px 28px rgba(59, 62, 74, 0.1);
  padding: 1.1rem 1.15rem 1rem 1.1rem;
  min-height: 18rem;
}

.solutions-marketing-page .impact-section .impact-card--flow.product-audience-callout {
  min-height: 0;
  height: fit-content;
  padding: 0.85rem 1.1rem;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 0 0 1px rgba(59, 62, 74, 0.06),
    0 6px 18px rgba(59, 62, 74, 0.08);
}

.solutions-marketing-page .impact-section .impact-card--flow.product-audience-callout .product-mini-card-title {
  margin-bottom: 0.25rem;
}

.product-marketing-page .product-hero-impact-callout .impact-card--flow.product-audience-callout {
  min-height: 0;
  height: auto;
  padding: 0.75rem 1rem 0.6rem 1rem;
  margin-bottom: 0;
}

.product-marketing-page .product-hero-impact-callout .product-hero-impact-callout__row {
  margin-bottom: 0;
  --bs-gutter-x: 1rem;
  --bs-gutter-y: 1rem;
}

@media (min-width: 768px) {
  .product-marketing-page .product-hero-impact-callout .product-hero-impact-callout__row {
    --bs-gutter-y: 0;
  }
}

.impact-section .impact-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.impact-section .impact-card-header h3 {
  font-size: 1.12rem;
  line-height: 1.3;
  margin: 0;
  flex: 1;
  min-width: 0;
}

.impact-section .impact-step-badge {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--shell-dark);
  background: rgba(86, 186, 93, 0.07);
  border: 1px solid rgba(86, 186, 93, 0.35);
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  display: inline-block;
}

.impact-section .impact-checklists {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.impact-section .impact-checklist {
  border: 1px dashed rgba(86, 186, 93, 0.35);
  border-radius: 0.35rem;
  padding: 0.6rem 0.65rem;
  background: rgba(255, 255, 255, 0.45);
}

.impact-section .impact-checklist-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--shell-accent);
  margin: 0 0 0.35rem;
}

.impact-section .impact-checklist .impact-checkline {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  color: var(--shell-dark);
  margin: 0;
}

.impact-checkmark {
  color: var(--shell-success);
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
}

.impact-section .impact-checklist .impact-checkline + .impact-checkline {
  margin-top: 0.3rem;
}

.impact-section .impact-tagline {
  font-size: 0.82rem;
  color: var(--shell-dark);
}

@media (max-width: 991.98px) {
  .impact-section .impact-flow-arrow-icon {
    transform: rotate(90deg);
  }

  .impact-section .impact-card--flow {
    min-height: auto;
  }
}

.site-footer {
  background: var(--shell-dark);
  color: var(--shell-navigation-text);
  padding-top: 3rem;
  padding-bottom: 2rem;
  margin-top: 0;
}

.site-footer a {
  color: var(--shell-navigation-text);
  text-decoration: none;
  opacity: 0.88;
}

.site-footer a:hover {
  color: var(--shell-navigation-selected-text);
  opacity: 1;
}

.site-footer .footer-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem clamp(1.25rem, 4vw, 2rem);
  align-items: start;
}

@media (min-width: 992px) {
  .site-footer .footer-columns {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, max-content);
    gap: 1.5rem clamp(2rem, 5vw, 4rem);
  }

  .site-footer .footer-column--resources {
    justify-self: end;
  }
}

.site-footer .footer-column {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.site-footer .footer-heading {
  font-size: 0.75rem;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.65;
  margin-bottom: 0;
}

.site-footer .footer-link-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0;
}

.site-footer .footer-link-list a {
  display: inline-block;
  line-height: 1.35;
  vertical-align: top;
}

.site-footer .footer-rule {
  border-color: rgba(255, 255, 255, 0.12);
}

.agent-doc-content h1 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.agent-doc-content pre {
  background: var(--shell-muted);
  padding: 1rem;
  border-radius: var(--shell-border-radius);
  overflow-x: auto;
}

.book-a-demo-card {
  max-width: 640px;
  margin: 0 auto;
}

/* Why Credence page — left column copy, right column 2×2 cards */
.why-credence-page .why-principles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 576px) {
  .why-credence-page .why-principles-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1rem;
  }
}

.why-principle-card {
  background: var(--shell-light);
  border: 1px solid rgba(59, 62, 74, 0.11);
  border-left: 4px solid var(--shell-accent);
  border-radius: var(--shell-border-radius);
  padding: 1.1rem 1.2rem;
  box-shadow: 0 6px 24px rgba(59, 62, 74, 0.06);
}

.why-principle-card-head {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.why-principle-icon-wrap {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--shell-border-radius);
  background: var(--shell-accent-light);
  color: var(--shell-accent);
}

.why-principle-card-icon {
  font-size: 1.2rem;
  line-height: 1;
}

.why-outcomes-list {
  padding-left: 1.1rem;
}

.why-outcomes-list li + li {
  margin-top: 0.7rem;
}

/* Careers */
.careers-role-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: var(--shell-border-radius);
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.careers-role-card-link:hover {
  color: inherit;
}

.careers-role-card-link:hover .careers-role-card {
  box-shadow: 0 10px 36px rgba(59, 62, 74, 0.12);
  transform: translateY(-2px);
}

.careers-role-card-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(103, 104, 133, 0.35);
  border-radius: var(--shell-border-radius);
}

.careers-role-card {
  background: var(--shell-light);
  border: 1px solid rgba(59, 62, 74, 0.1) !important;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.careers-role-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(59, 62, 74, 0.1);
}

.careers-role-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  color: var(--shell-dark);
  opacity: 0.85;
}

.careers-role-meta-icon {
  color: var(--shell-accent);
  font-size: 1rem;
  line-height: 1;
}

.careers-not-hiring {
  padding: 1.25rem 1rem;
  border: 1px dashed rgba(59, 62, 74, 0.22);
  border-radius: var(--shell-border-radius);
  font-size: 0.9375rem;
  width: 100%;
}

/* Job posting (e.g. Founding Product Lead) */
.job-detail-page .job-detail-meta {
  font-size: 0.9375rem;
  color: var(--shell-dark);
}

.job-detail-page .job-detail-meta li + li {
  margin-top: 0.35rem;
}

.job-detail-page .job-detail-meta-label {
  display: inline-block;
  min-width: 5.5rem;
  font-weight: 600;
  color: var(--shell-dark);
  margin-right: 0.35rem;
}

.job-detail-page .job-detail-list {
  padding-left: 1.25rem;
}

.job-detail-page .job-detail-list li + li {
  margin-top: 0.4rem;
}

/* --- Product + solutions long-form pages — layout + art placeholders --- */
.product-marketing-page .section-marketing,
.solutions-marketing-page .section-marketing {
  padding-top: 3.25rem;
  padding-bottom: 3.25rem;
}

.product-marketing-page #at-a-glance {
  scroll-margin-top: 5rem;
}

@media (min-width: 992px) {
  .product-marketing-page .product-hero-split,
  .solutions-marketing-page .product-hero-split {
    min-height: 0;
  }

  .product-marketing-page .product-hero-copy,
  .solutions-marketing-page .product-hero-copy {
    padding-right: 0.5rem;
  }
}

/* Product pages — video wrapper scales slightly on hover (matches .capability-shot hover language) */
.product-video-embed-hoverable {
  transform-origin: center center;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.product-video-embed-hoverable:hover {
  z-index: 1;
  transform: scale(1.03);
  box-shadow: 0 14px 36px rgba(59, 62, 74, 0.14) !important;
}

@media (prefers-reduced-motion: reduce) {
  .product-video-embed-hoverable {
    transition: none;
  }

  .product-video-embed-hoverable:hover {
    transform: none;
  }
}

.product-visual-placeholder {
  --pv-border: rgba(103, 104, 133, 0.38);
  --pv-bg: linear-gradient(155deg, rgba(222, 241, 252, 0.45), rgba(162, 152, 212, 0.12));
  border-radius: var(--shell-border-radius);
  border: 2px dashed var(--pv-border);
  background: var(--pv-bg);
  box-shadow: 0 12px 40px rgba(59, 62, 74, 0.07);
  display: flex;
  align-items: stretch;
  width: 100%;
  overflow: hidden;
}

.product-visual-placeholder-inner {
  padding: 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 100%;
}

.product-visual-placeholder-badge {
  align-self: flex-start;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(59, 62, 74, 0.65);
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(103, 104, 133, 0.2);
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}

.product-visual-placeholder-title {
  font-family: var(--shell-font-display, inherit);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.35;
  color: var(--shell-dark);
  margin: 0;
}

.product-visual-placeholder-hint {
  font-size: 0.875rem;
  line-height: 1.45;
  color: rgba(59, 62, 74, 0.72);
  margin: 0;
}

.product-visual-placeholder--wide {
  aspect-ratio: 16 / 9;
  max-height: 22rem;
}

.product-visual-placeholder--square {
  aspect-ratio: 1 / 1;
  max-height: 20rem;
}

.product-visual-placeholder--tall {
  aspect-ratio: 4 / 5;
  max-height: 22rem;
}

.product-visual-placeholder--banner {
  aspect-ratio: 21 / 9;
  max-height: none;
  min-height: 11rem;
}

/* Compact step connector (e.g. landing onboarding flow — replaces inline SVG arrows) */
.product-visual-placeholder--connector {
  aspect-ratio: auto;
  min-height: 3.75rem;
  max-width: 10rem;
  margin-left: auto;
  margin-right: auto;
}

.product-visual-placeholder--connector .product-visual-placeholder-inner {
  padding: 0.6rem 0.75rem;
  gap: 0.35rem;
}

.product-visual-placeholder--connector .product-visual-placeholder-title {
  font-size: 0.8125rem;
}

.product-visual-placeholder--connector .product-visual-placeholder-hint {
  font-size: 0.75rem;
  line-height: 1.35;
}

@media (min-width: 992px) {
  .impact-flow-arrow .product-visual-placeholder--connector {
    max-width: 6.5rem;
  }
}

/* Pillar / capability cards — match old .capability-card-visual footprint */
.pillar-card > .product-visual-placeholder {
  margin-top: 0.5rem;
}

.product-visual-placeholder--in-pillar.product-visual-placeholder--square {
  max-height: 12rem;
}

@media (max-width: 991.98px) {
  .product-visual-placeholder--wide,
  .product-visual-placeholder--square,
  .product-visual-placeholder--tall {
    max-height: none;
    margin-top: 0.5rem;
  }

  .product-visual-placeholder--in-pillar.product-visual-placeholder--square {
    max-height: 16rem;
  }

  .impact-flow-arrow .product-visual-placeholder--connector {
    max-width: none;
  }
}

.product-mini-card {
  background: var(--shell-light);
  border: 1px solid rgba(59, 62, 74, 0.1);
  border-radius: var(--shell-border-radius);
  padding: 1.25rem 1.35rem;
  height: 100%;
  box-shadow: 0 6px 24px rgba(59, 62, 74, 0.05);
  transition:
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.product-mini-card:hover {
  box-shadow: 0 10px 32px rgba(59, 62, 74, 0.09);
  border-color: rgba(103, 104, 133, 0.22);
}

.product-mini-card-step {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--shell-accent);
  margin-bottom: 0.35rem;
}

.product-mini-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--shell-border-radius);
  background: rgba(103, 104, 133, 0.1);
  color: var(--shell-accent);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.product-mini-card-title {
  font-size: 1rem;
  font-weight: 650;
  margin-bottom: 0.4rem;
  color: var(--shell-dark);
}

/* Pricing page — hero + three product cards (scoped) */
.pricing-page .pricing-page__lead {
  max-width: 40rem;
}

.pricing-page .pricing-page__card-actions {
  display: flex;
  justify-content: center;
}

.pricing-page .pricing-page__hitlist li {
  position: relative;
  padding-left: 1rem;
}

.pricing-page .pricing-page__hitlist li::before {
  content: "·";
  position: absolute;
  left: 0;
  font-weight: 700;
  color: var(--shell-accent);
}

.pricing-page .pricing-page__hitlist li + li {
  margin-top: 0.35rem;
}

@media (min-width: 992px) {
  .pricing-page .pricing-page__row-cards {
    align-items: flex-start;
  }

  /* Data layer + Platform share one row so both cards stretch to the same height */
  .pricing-page .pricing-page__row-cards-pair {
    align-items: stretch;
  }

  .pricing-page .pricing-page__row-cards-pair .pricing-page__col--side {
    align-self: stretch;
  }

  .pricing-page .pricing-page__row-cards-pair .product-mini-card {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
  }

  .pricing-page .pricing-page__col--featured {
    align-self: stretch;
    display: flex;
  }

  .pricing-page .pricing-page__col--featured .product-mini-card--popular {
    flex: 1 1 auto;
    min-height: 26rem;
    margin-top: -1rem;
    margin-bottom: -1rem;
  }
}

.pricing-page .product-mini-card--popular {
  overflow: visible;
  background: linear-gradient(
    155deg,
    rgba(86, 186, 93, 0.2) 0%,
    rgba(255, 255, 255, 0.95) 42%,
    color-mix(in srgb, var(--shell-accent) 14%, var(--shell-light) 86%) 100%
  );
  border: 2px solid color-mix(in srgb, var(--shell-success) 50%, rgba(103, 104, 133, 0.35));
  box-shadow:
    0 18px 52px rgba(86, 186, 93, 0.22),
    0 10px 28px rgba(103, 104, 133, 0.12);
  transition:
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.pricing-page .product-mini-card--popular:hover {
  border-color: color-mix(in srgb, var(--shell-success) 65%, var(--shell-accent));
  box-shadow:
    0 22px 56px rgba(86, 186, 93, 0.26),
    0 12px 32px rgba(103, 104, 133, 0.14);
  transform: translateY(-2px);
}

.pricing-page .pricing-page__hitlist--featured li::before {
  color: var(--shell-success);
}

.pricing-page .pricing-page__popular-badge {
  position: absolute;
  top: 1.15rem;
  right: 1.15rem;
  z-index: 1;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
  color: #fff;
  background: linear-gradient(135deg, color-mix(in srgb, var(--shell-success) 92%, #000), var(--shell-success));
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(86, 186, 93, 0.45);
}

.pricing-page .pricing-page__card-title--popular {
  padding-right: 5.75rem;
  color: color-mix(in srgb, var(--shell-dark) 88%, var(--shell-success));
}

.pricing-page .pricing-page__band-callout {
  padding: 1.15rem 1.25rem;
  border-radius: var(--shell-border-radius);
  border: 1px solid color-mix(in srgb, var(--shell-accent) 35%, rgba(59, 62, 74, 0.12));
  background: color-mix(in srgb, var(--shell-accent) 6%, rgba(255, 255, 255, 0.92));
}

.pricing-page .pricing-page__scenario-list li + li {
  margin-top: 0.5rem;
}

.pricing-page .pricing-page__scenario-marker {
  flex-shrink: 0;
  font-weight: 700;
  color: var(--shell-accent);
}

.pricing-page .pricing-page__scenario-marker--accent {
  color: var(--shell-success);
}

.pricing-page .pricing-page__growth-item {
  height: 100%;
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(59, 62, 74, 0.08);
  border-radius: var(--shell-border-radius);
}

.product-outcome-tile {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(59, 62, 74, 0.08);
  border-radius: var(--shell-border-radius);
  height: 100%;
}

.product-outcome-tile-icon {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(86, 186, 93, 0.12);
  color: var(--shell-success);
  font-size: 1.05rem;
}

.product-section-kicker {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--shell-accent);
  margin-bottom: 0.35rem;
}

/* Capability row screenshots (static/images/capability/capability-*.png) */
.capability-shot {
  margin: 0;
}

.capability-frame {
  border-radius: 0.65rem;
  border: 1px solid rgba(59, 62, 74, 0.06);
  background: #f8fafc;
  overflow: hidden;
  height: auto;
  box-shadow: 0 8px 24px rgba(59, 62, 74, 0.08);
  transform-origin: center center;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.capability-shot:hover .capability-frame {
  transform: scale(1.1);
  box-shadow: 0 14px 36px rgba(59, 62, 74, 0.12);
}

@media (prefers-reduced-motion: reduce) {
  .capability-frame {
    transition: none;
  }

  .capability-shot:hover .capability-frame {
    transform: none;
    box-shadow: 0 8px 24px rgba(59, 62, 74, 0.08);
  }
}

.capability-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center center;
  display: block;
}

/* ── Hero carousel — floating center card with peek sides ─────────────────── */

/*
 * Layout model:
 *   .hero-carousel-outer  — overflow:hidden with horizontal padding that
 *                           creates the reveal zones for adjacent slides.
 *   .hero-carousel-stage  — aspect-ratio container; all slides stack inside.
 *   .hero-carousel-slide  — position:absolute, inset:0; driven entirely by
 *                           data-state="active|prev|next|hidden" via CSS.
 */

.hero-carousel-root {
  --hero-carousel-radius: 0.9rem;
  /* Inner bottom radii for caption strip: align with .capability-frame inner curve (1px border) */
  --hero-carousel-label-radius: calc(var(--hero-carousel-radius) - 1px);
}

.hero-carousel-outer {
  position: relative;
  overflow: hidden;
  /* Horizontal: peek zone; vertical: room so active scale() is not clipped by overflow:hidden */
  padding: 12% 15% 12%;
  border-radius: calc(var(--hero-carousel-radius) + 8px);
}

.hero-carousel-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: visible;
}

/* ── All slides — stacked absolutely, transition every visual property ──── */

.hero-carousel-slide {
  position: absolute;
  inset: 0;
  border-radius: var(--hero-carousel-radius);
  overflow: visible;
  cursor: pointer;
  transform-origin: center center;
  will-change: transform, opacity, box-shadow;
  transition:
    transform  0.62s cubic-bezier(0.33, 1, 0.68, 1),
    opacity    0.62s cubic-bezier(0.33, 1, 0.68, 1),
    box-shadow 0.62s cubic-bezier(0.33, 1, 0.68, 1),
    filter     0.62s cubic-bezier(0.33, 1, 0.68, 1);
}

/* Active — front, full size, elevated shadow */
.hero-carousel-slide[data-state="active"] {
  transform: translateX(0) scale(1.3);
  opacity: 1;
  z-index: 3;
  cursor: default;
  box-shadow:
    0 4px 16px rgba(30, 41, 59, 0.10),
    0 20px 56px rgba(30, 41, 59, 0.13);
  filter: none;
}

/* Prev — left, scaled down, dimmed */
.hero-carousel-slide[data-state="prev"] {
  transform: translateX(-84%) scale(0.81);
  opacity: 0.48;
  z-index: 2;
  box-shadow: none;
  filter: brightness(0.88) saturate(0.8);
}

/* Next — right, scaled down, dimmed */
.hero-carousel-slide[data-state="next"] {
  transform: translateX(84%) scale(0.81);
  opacity: 0.48;
  z-index: 2;
  box-shadow: none;
  filter: brightness(0.88) saturate(0.8);
}

/* Hidden — invisible, no interaction */
.hero-carousel-slide[data-state="hidden"] {
  transform: translateX(0) scale(0.72);
  opacity: 0;
  z-index: 1;
  pointer-events: none;
  filter: none;
}

/* ── Hover on adjacent slides — gentle lift toward active state ─────────── */

.hero-carousel-slide[data-state="prev"]:hover {
  transform: translateX(-81%) scale(0.85);
  opacity: 0.68;
  filter: brightness(0.96) saturate(0.92);
}

.hero-carousel-slide[data-state="next"]:hover {
  transform: translateX(81%) scale(0.85);
  opacity: 0.68;
  filter: brightness(0.96) saturate(0.92);
}

/* ── Slide content ─────────────────────────────────────────────────────── */

.hero-carousel-slide .capability-frame {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: var(--hero-carousel-radius);
  overflow: hidden;
}

.hero-carousel-label {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.25rem 1.1rem 0.9rem;
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #f1f5f9;
  background: linear-gradient(
    to top,
    rgba(15, 23, 36, 0.82) 0%,
    rgba(15, 23, 36, 0.38) 58%,
    transparent 100%
  );
  pointer-events: none;
  border-radius: 0 0 var(--hero-carousel-label-radius) var(--hero-carousel-label-radius);
  overflow: hidden;
}

/* ── Navigation carets ─────────────────────────────────────────────────── */

.hero-carousel-caret {
  position: absolute;
  top: 50%;
  z-index: 10;
  transform: translateY(-50%);
  width: 2.4rem;
  height: 2.4rem;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(59, 62, 74, 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--shell-dark);
  box-shadow: 0 2px 12px rgba(30, 41, 59, 0.10);
  cursor: pointer;
  transition:
    background    0.18s ease,
    border-color  0.18s ease,
    box-shadow    0.18s ease,
    color         0.18s ease,
    transform     0.18s ease;
}

.hero-carousel-caret:hover {
  background: #ffffff;
  border-color: rgba(103, 104, 133, 0.26);
  box-shadow: 0 4px 20px rgba(30, 41, 59, 0.14);
  color: var(--shell-accent);
  transform: translateY(-50%) scale(1.08);
}

.hero-carousel-caret:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--shell-light), 0 0 0 4px var(--shell-accent);
}

.hero-carousel-caret .bi {
  font-size: 1.2rem;
  line-height: 1;
}

/* Positioned within the reveal padding zones */
.hero-carousel-caret--prev { left:  3.5%; }
.hero-carousel-caret--next { right: 3.5%; }

/* ── Dot indicators ─────────────────────────────────────────────────────── */

.hero-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.38rem;
  margin-top: 1rem;
  padding: 0;
}

.hero-carousel-dots button {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1px solid rgba(59, 62, 74, 0.22);
  padding: 0;
  background: rgba(103, 104, 133, 0.32);
  cursor: pointer;
  transition:
    background    0.22s ease,
    border-color  0.22s ease,
    width         0.3s  cubic-bezier(0.33, 1, 0.68, 1),
    border-radius 0.22s ease,
    box-shadow    0.22s ease;
}

.hero-carousel-dots button.is-active {
  width: 20px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--pillar-warm-accent) 88%, var(--shell-dark) 12%);
  border-color: rgba(59, 62, 74, 0.36);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    0 1px 4px rgba(59, 62, 74, 0.18);
}

.hero-carousel-dots button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--shell-light), 0 0 0 4px var(--shell-accent);
}

/* ── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 767.98px) {
  .hero-carousel-outer {
    padding: 10% 10% 10%;
  }

  .hero-carousel-dots {
    padding: 0;
  }

  .hero-carousel-caret--prev { left:  1.5%; }
  .hero-carousel-caret--next { right: 1.5%; }
}

@media (max-width: 575.98px) {
  .hero-carousel-outer {
    padding: 10% 8% 10%;
  }

  .hero-carousel-dots {
    padding: 0;
  }

  .hero-carousel-caret {
    width: 2.1rem;
    height: 2.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-carousel-slide {
    transition: opacity 0.15s ease;
  }

  .hero-carousel-slide[data-state="active"] {
    transform: translateX(0) scale(1);
  }
}
