/* ==========================================================================
   Maxiva Website Stylesheet
   Brand Palette:
     Navy: #113B5D · Blue: #316FA3 · Midnight: #071731
     Mist: #EEF3F8 · Charcoal: #1E252E
   Typography: Montserrat (Headings, Interactive) · Inter (Body, UI)
   Design System Shape Rule:
     - Buttons, chips, pills, tags: full-pill (999px)
     - Cards, modals, feature containers, device frames: 16px
     - Form controls, small tiles, badges, stat boxes: 10px
   ========================================================================== */

:root {
  /* Brand Core */
  --navy: #113B5D;
  --navy-deep: #0B253C;
  --navy-hover: #0D3251;
  --blue: #316FA3;
  --blue-dark: #205988;
  --blue-light: #4A8BC2;
  --blue-soft: #9CC3E6;
  --blue-tint: #EBF3FA;
  --blue-tint-subtle: #F4F8FC;
  --midnight: #071731;
  --midnight-deep: #040E1E;

  /* Neutrals & Surfaces */
  --mist: #EEF3F8;
  --mist-2: #F6F9FC;
  --charcoal: #1E252E;
  --white: #FFFFFF;
  --muted: #4B596A;          /* WCAG AA compliant on white (5.4:1) */
  --muted-light: #6F7F92;
  --line: #DCE5EE;
  --line-subtle: #E8EFF5;
  --line-strong: #B7C7D8;
  --field-border: #788BA0;

  /* Functional Accents */
  --error: #B42318;
  --error-bg: #FDF2F1;
  --error-border: #F3C1BC;
  --success: #1E6B45;
  --success-bg: #EAF5EE;
  --success-border: #B7DCC6;
  --warning: #8A4B00;
  --warning-bg: #FFF4E0;

  /* Typography */
  --font-head: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;

  /* Line-length caps for free-standing headings and their intro copy.
     In ch so the cap scales with each heading's font size. Headings inside
     grid columns (hero, split, founder, proof) are bound by the column instead. */
  --measure-heading: 28ch;
  --measure-text: 65ch;

  /* Shape Scale (Locked 999px / 16px / 10px) */
  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  /* Multi-Layer Ambient Shadow Elevation */
  --shadow-xs: 0 1px 2px rgba(17, 59, 93, 0.04);
  --shadow-sm: 0 2px 6px -1px rgba(17, 59, 93, 0.06), 0 1px 3px rgba(17, 59, 93, 0.04);
  --shadow: 0 4px 16px -2px rgba(17, 59, 93, 0.07), 0 1px 3px rgba(17, 59, 93, 0.04);
  --shadow-md: 0 8px 24px -4px rgba(17, 59, 93, 0.09), 0 2px 8px -2px rgba(17, 59, 93, 0.04);
  --shadow-lg: 0 18px 42px -8px rgba(17, 59, 93, 0.13), 0 4px 12px -2px rgba(17, 59, 93, 0.04);
  --shadow-xl: 0 28px 64px -14px rgba(7, 23, 49, 0.28), 0 6px 18px -4px rgba(7, 23, 49, 0.06);
  --shadow-glow: 0 0 28px rgba(49, 111, 163, 0.25);

  /* Layout & Animation Tokens */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.45, 0.64, 1);
  --wrap: 1200px;
  --gutter: 24px;
  --header-h: 72px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 18px);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--white);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

svg {
  max-width: 100%;
}

.ico,
svg.ico {
  width: 20px;
  height: 20px;
  flex: none;
  display: inline-block;
  vertical-align: middle;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 700;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.2rem, 1.35rem + 2.8vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.028em;
}

h2 {
  font-size: clamp(1.7rem, 1.25rem + 1.8vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.024em;
}

h3 {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.28;
}

h4 {
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

ul, ol {
  margin: 0 0 1em;
  padding-left: 1.25em;
}

li + li {
  margin-top: 0.35em;
}

strong {
  font-weight: 600;
  color: var(--navy);
}

a {
  color: var(--blue);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--navy);
}

/* Text selection: solid brand blue on light surfaces, soft blue on dark ones (both pass WCAG AA) */
::selection {
  background: var(--blue);
  color: #FFFFFF;
}

.on-dark ::selection,
.price-card.featured ::selection {
  background: var(--blue-soft);
  color: var(--midnight);
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.on-dark :focus-visible,
.site-footer :focus-visible {
  outline-color: #FFFFFF;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 1000;
  background: var(--navy);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-lg);
  transition: top 0.25s var(--ease);
}

.skip-link:focus {
  top: 14px;
  color: #fff;
}

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

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.wrap-narrow {
  max-width: calc(780px + var(--gutter) * 2);
}

/* ---------- Buttons & Interactive Elements ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.2;
  white-space: nowrap;
  padding: 0.9em 1.6em;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
  position: relative;
  isolation: isolate;
  transition: background-color 0.25s var(--ease),
              color 0.25s var(--ease),
              border-color 0.25s var(--ease),
              box-shadow 0.25s var(--ease),
              transform 0.2s var(--ease);
}

.btn svg {
  width: 1.1em;
  height: 1.1em;
  flex: none;
  transition: transform 0.25s var(--ease);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn:active {
  transform: translateY(1px) scale(0.985);
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: #FFFFFF;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22),
              0 2px 4px rgba(17, 59, 93, 0.12),
              0 8px 22px -6px rgba(49, 111, 163, 0.45);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--navy) 100%);
  color: #FFFFFF;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16),
              0 4px 8px rgba(17, 59, 93, 0.16),
              0 14px 28px -6px rgba(17, 59, 93, 0.5);
  transform: translateY(-2px);
}

.btn-secondary {
  background: #FFFFFF;
  color: var(--navy);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
  background: var(--mist-2);
  color: var(--navy);
  border-color: var(--navy);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.btn-light {
  background: #FFFFFF;
  color: var(--navy);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4),
              0 6px 20px -4px rgba(7, 23, 49, 0.35);
}

.btn-light:hover {
  background: var(--mist);
  color: var(--navy);
  box-shadow: 0 10px 28px -4px rgba(7, 23, 49, 0.42);
  transform: translateY(-1px);
}

.btn-ghost-light {
  background: rgba(255, 255, 255, 0.05);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
  border-color: #FFFFFF;
  transform: translateY(-1px);
}

.btn-sm {
  font-size: 0.88rem;
  padding: 0.65em 1.25em;
}

.btn-block {
  width: 100%;
}

@media (max-width: 480px) {
  .btn {
    white-space: normal;
  }
}

.text-link {
  font-family: var(--font-head);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  color: var(--blue);
  transition: color 0.2s var(--ease);
}

.text-link svg {
  width: 1em;
  height: 1em;
  transition: transform 0.25s var(--ease);
}

.text-link:hover {
  color: var(--navy);
}

.text-link:hover svg {
  transform: translateX(4px);
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
}

.cta-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.microcopy {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

.microcopy .plain-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--navy);
}

.microcopy .plain-line::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.on-dark .microcopy {
  color: #C9D6E4;
}

.on-dark .microcopy .plain-line {
  color: #FFFFFF;
}

/* ---------- Header & Frosted Navigation ---------- */
.header-sentinel {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 8px;
  pointer-events: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  isolation: isolate;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(17, 59, 93, 0.08);
  box-shadow: inset 0 -1px 0 rgba(17, 59, 93, 0.03), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: background-color 0.25s var(--ease),
              border-color 0.25s var(--ease),
              box-shadow 0.25s var(--ease);
}

/* The frosted blur lives on a pseudo-element: backdrop-filter on the header itself would make it the
   containing block for the fixed mobile nav, and the closed off-canvas drawer would widen the page. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  pointer-events: none;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: rgba(17, 59, 93, 0.12);
  box-shadow: 0 8px 24px -4px rgba(17, 59, 93, 0.08), 0 1px 3px rgba(17, 59, 93, 0.04);
}

body.nav-open .site-header {
  background: #FFFFFF;
  border-bottom-color: var(--line);
  box-shadow: none;
}

@media (prefers-reduced-transparency: reduce) {
  .site-header {
    background: #FFFFFF;
  }
  .site-header::before {
    content: none;
  }
}

/* Header SVGs: enforce strict icon sizing */
.site-header svg {
  display: inline-block;
  vertical-align: middle;
  flex: none;
}

.site-header .login-ico {
  width: 15px !important;
  height: 15px !important;
  flex: none;
}

.site-header .cta-ico {
  width: 13px !important;
  height: 13px !important;
  flex: none;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: var(--header-h);
  max-width: 1400px;
}

/* Brand */
.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  line-height: 0;
  padding: 6px 0;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}

.brand:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.brand img {
  height: 34px;
  width: auto;
  display: block;
}

/* ---------- Desktop Navigation (>= 1140px) ---------- */
@media (min-width: 1140px) {
  .header-inner {
    gap: 10px;
  }

  .brand img {
    height: 31px;
    width: auto;
    display: block;
  }

  .site-nav {
    margin-left: auto;
  }

  .nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 2px;
  }

  .nav-item {
    position: relative;
    list-style: none;
  }

  .nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 6px 8px;
    border-radius: var(--radius-pill);
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.81rem;
    letter-spacing: -0.01em;
    color: var(--navy);
    text-decoration: none;
    white-space: nowrap;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s var(--ease),
                color 0.2s var(--ease),
                box-shadow 0.2s var(--ease),
                transform 0.15s var(--ease);
  }

  .nav-link:hover {
    background: rgba(49, 111, 163, 0.08);
    color: var(--blue-dark);
    transform: translateY(-1px);
  }

  .nav-link:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
  }

  .nav-link[aria-current="page"],
  .nav-link.is-active,
  .nav-item.is-active > .nav-link {
    color: var(--blue-dark);
    background: var(--blue-tint);
    box-shadow: inset 0 0 0 1px rgba(49, 111, 163, 0.16);
    font-weight: 700;
  }

  .header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: none;
    margin-left: 6px;
  }

  .login-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 11px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(17, 59, 93, 0.14);
    background: #FFFFFF;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.79rem;
    color: var(--navy);
    text-decoration: none;
    box-shadow: var(--shadow-xs);
    white-space: nowrap;
    transition: background-color 0.2s var(--ease),
                border-color 0.2s var(--ease),
                color 0.2s var(--ease),
                box-shadow 0.2s var(--ease),
                transform 0.2s var(--ease);
  }

  .login-link .login-ico {
    width: 13px;
    height: 13px;
    color: var(--blue);
    transition: transform 0.2s var(--ease);
  }

  .login-link:hover {
    border-color: var(--navy);
    background: var(--mist-2);
    color: var(--navy);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
  }

  .login-link:hover .login-ico {
    transform: translateX(2px);
  }

  .btn-assess-header {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    font-size: 0.80rem;
    font-weight: 600;
    white-space: nowrap;
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
    color: #FFFFFF;
    border-radius: var(--radius-pill);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25),
                0 2px 6px rgba(17, 59, 93, 0.12),
                0 8px 20px -4px rgba(49, 111, 163, 0.4);
    transition: all 0.25s var(--ease);
  }

  .btn-assess-header .cta-ico {
    width: 12px;
    height: 12px;
    transition: transform 0.25s var(--ease);
  }

  .btn-assess-header:hover {
    background: linear-gradient(135deg, var(--blue-dark) 0%, var(--navy) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2),
                0 4px 10px rgba(17, 59, 93, 0.18),
                0 12px 26px -4px rgba(17, 59, 93, 0.45);
    transform: translateY(-1px);
  }

  .btn-assess-header:hover .cta-ico {
    transform: translateX(3px);
  }

  .btn-assess-header:active {
    transform: translateY(1px) scale(0.985);
  }

  .nav-toggle {
    display: none !important;
  }

  .nav-mobile-extra {
    display: none !important;
  }

  .nav-backdrop {
    display: none !important;
  }
}

/* Short desktop (1140px - 1279px): the Client Login pill shows its icon only so the header fits */
@media (min-width: 1140px) and (max-width: 1279px) {
  .login-link {
    padding: 6px 9px;
  }

  .login-link .login-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }
}

/* Large Desktop (>= 1440px). The full-size header needs ~1330px of content width, which the
   1400px header container only provides from here up. */
@media (min-width: 1440px) {
  .header-inner {
    gap: 20px;
  }

  .brand img {
    height: 38px;
  }

  .nav-list {
    gap: 2px;
  }

  .nav-link {
    padding: 8px 11px;
    font-size: 0.88rem;
  }

  .header-actions {
    gap: 12px;
    margin-left: 14px;
  }

  .login-link {
    padding: 8px 15px;
    font-size: 0.85rem;
    gap: 7px;
  }

  .btn-assess-header {
    padding: 8px 18px;
    font-size: 0.87rem;
    gap: 7px;
  }
}

/* ---------- Mobile & Tablet Navigation (< 1140px) ---------- */
@media (max-width: 1139px) {
  .header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    flex: none;
  }

  .header-actions .login-link {
    display: none;
  }

  .btn-assess-header {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
    color: #FFFFFF;
    border-radius: var(--radius-pill);
    box-shadow: 0 2px 6px rgba(17, 59, 93, 0.12);
    transition: all 0.2s var(--ease);
  }

  .btn-assess-header .cta-ico {
    width: 12px;
    height: 12px;
  }

  .btn-assess-header:hover {
    background: linear-gradient(135deg, var(--blue-dark) 0%, var(--navy) 100%);
    transform: translateY(-1px);
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    background: #FFFFFF;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-pill);
    padding: 0 14px;
    color: var(--navy);
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    box-shadow: var(--shadow-xs);
    transition: background-color 0.25s var(--ease),
                border-color 0.25s var(--ease),
                color 0.25s var(--ease);
  }

  .nav-toggle:hover {
    border-color: var(--navy);
    background: var(--mist-2);
  }

  .nav-toggle[aria-expanded="true"] {
    background: var(--navy);
    border-color: var(--navy);
    color: #FFFFFF;
  }

  .nav-toggle-icon {
    position: relative;
    width: 18px;
    height: 12px;
    display: inline-block;
  }

  .nav-toggle-icon i {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.35s var(--ease),
                opacity 0.2s var(--ease),
                top 0.35s var(--ease);
  }

  .nav-toggle-icon i:nth-child(1) { top: 0; }
  .nav-toggle-icon i:nth-child(2) { top: 5px; }
  .nav-toggle-icon i:nth-child(3) { top: 10px; }

  .nav-toggle[aria-expanded="true"] .nav-toggle-icon i:nth-child(1) {
    top: 5px;
    transform: rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-icon i:nth-child(2) {
    opacity: 0;
    transform: scaleX(0.3);
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-icon i:nth-child(3) {
    top: 5px;
    transform: rotate(-45deg);
  }

  body.nav-open {
    overflow: hidden;
  }

  body.nav-open .site-header {
    background: #FFFFFF !important;
    border-bottom-color: var(--line) !important;
    box-shadow: 0 1px 3px rgba(17, 59, 93, 0.06) !important;
    isolation: auto !important;
  }

  body.nav-open .site-header::before {
    content: none;
  }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    z-index: 9999;
    margin: 0;
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.25s var(--ease),
                transform 0.25s var(--ease),
                visibility 0s linear 0.25s;
  }

  .site-nav.is-open {
    visibility: visible !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
    transition: opacity 0.25s var(--ease),
                transform 0.25s var(--ease),
                visibility 0s !important;
  }

  .nav-list {
    list-style: none;
    margin: 0;
    padding: 12px var(--gutter);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-list .nav-item {
    border-bottom: 1px solid var(--line-subtle);
    list-style: none;
  }

  .nav-list .nav-item:last-child {
    border-bottom: 0;
  }

  .nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 15px 8px;
    border-radius: 8px;
    font-family: var(--font-head);
    font-size: 1.02rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--navy);
    white-space: normal;
    text-decoration: none;
    transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
  }

  .nav-link:hover,
  .nav-link:focus-visible {
    background: var(--mist-2);
    color: var(--blue-dark);
  }

  .nav-link[aria-current="page"],
  .nav-link.is-active,
  .nav-item.is-active > .nav-link {
    background: var(--blue-tint);
    box-shadow: none;
    color: var(--blue-dark);
    font-weight: 700;
  }

  .nav-mobile-extra {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
    position: relative;
    padding: 18px var(--gutter) calc(18px + env(safe-area-inset-bottom));
    background: var(--mist-2);
    border-top: 1px solid var(--line);
    box-shadow: 0 -4px 16px rgba(17, 59, 93, 0.05);
  }

  .nav-mobile-extra .btn {
    width: 100%;
    white-space: normal;
    font-size: 0.92rem;
    padding: 0.9em 1em;
    justify-content: center;
  }

  .nav-mobile-extra .mobile-login-btn {
    background: #FFFFFF;
    color: var(--navy);
    border-color: var(--line-strong);
  }

  .nav-mobile-extra .cta-stack {
    order: -1;
    align-items: stretch;
    gap: 8px;
  }

  .nav-mobile-extra .microcopy {
    text-align: center;
    font-size: 0.78rem;
  }

  .nav-mobile-extra .microcopy .plain-line {
    display: none;
  }
}

/* Tablet Slide-out Drawer (700px - 1139px) */
@media (min-width: 700px) and (max-width: 1139px) {
  .site-nav {
    left: auto;
    right: 0;
    width: 400px;
    max-width: 85vw;
    border-left: 1px solid var(--line);
    box-shadow: -16px 0 40px rgba(17, 59, 93, 0.15);
    transform: translateX(100%);
    transition: opacity 0.25s var(--ease),
                transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0s linear 0.3s;
  }

  .site-nav.is-open {
    transform: translateX(0) !important;
    transition: opacity 0.25s var(--ease),
                transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0s !important;
  }

  .site-nav .nav-list,
  .site-nav .nav-mobile-extra {
    padding-left: 28px;
    padding-right: 28px;
  }

  .nav-backdrop {
    display: block;
    position: fixed;
    top: var(--header-h);
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 998;
    background: rgba(7, 23, 49, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    cursor: pointer;
    transition: opacity 0.25s var(--ease), visibility 0s linear 0.25s;
  }

  body.nav-open .nav-backdrop {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.25s var(--ease), visibility 0s;
  }
}

@media (max-width: 560px) {
  :root {
    --header-h: 64px;
    --gutter: 18px;
  }
  .brand img {
    height: 32px;
  }
  .header-actions .btn-assess-header {
    display: none;
  }
  .nav-toggle {
    height: 38px;
  }
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(64px, 8vw, 112px) 0;
}

.section-sm {
  padding: clamp(40px, 5vw, 64px) 0;
}

.bg-mist {
  background: var(--mist-2);
  border-top: 1px solid var(--line-subtle);
  border-bottom: 1px solid var(--line-subtle);
}

.bg-navy {
  background: var(--navy);
  color: #E6EDF5;
}

.bg-midnight {
  background: var(--midnight);
  color: #E6EDF5;
}

.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4, .on-dark strong {
  color: #FFFFFF;
}

.on-dark a:not(.btn) {
  color: #FFFFFF;
}

.on-dark p {
  color: #D5E0EC;
}

.section-head {
  margin-bottom: clamp(36px, 4vw, 56px);
}

.section-head.center {
  text-align: center;
}

.section-head p {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: var(--measure-text);
  margin-bottom: 0;
}

.section-head.center h2,
.section-head.center p {
  margin-left: auto;
  margin-right: auto;
}

.section-head h2 {
  max-width: var(--measure-heading);
  margin-bottom: 0.45em;
}

/* Marketing: "Why start with an audit?" intro reads at a larger size than other section intros */
.section-head.audit-intro p {
  font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.4rem);
  line-height: 1.65;
  color: var(--charcoal);
}

.on-dark .section-head p {
  color: #D5E0EC;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}

.eyebrow::before {
  content: "";
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  opacity: 0.8;
}

.center > .eyebrow::before,
.section-head.center .eyebrow::before {
  display: none;
}

.on-dark .eyebrow {
  color: var(--blue-soft);
}

.lead {
  font-size: 1.15rem;
  line-height: 1.62;
  color: var(--muted);
}

/* ---------- Atmospheric Background Patterns ---------- */
.pattern {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.pattern::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url("../img/pattern-nodes.svg");
  background-size: 520px auto;
  background-repeat: repeat;
  opacity: 0.22;
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 100% 0%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse 70% 90% at 100% 0%, #000 10%, transparent 70%);
}

.pattern-dark::before {
  background-image: url("../img/pattern-nodes-dark.svg");
  opacity: 0.35;
  -webkit-mask-image: none;
  mask-image: none;
}

/* ---------- Hero Section ---------- */
.hero {
  padding: clamp(52px, 6.5vw, 92px) 0 clamp(64px, 8vw, 108px);
  background:
    radial-gradient(ellipse 75% 60% at 85% 30%, rgba(49, 111, 163, 0.15), transparent 70%),
    radial-gradient(ellipse 55% 65% at 5% 95%, rgba(156, 195, 230, 0.20), transparent 70%),
    linear-gradient(180deg, #FFFFFF 0%, #F4F7FC 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero h1 {
  margin-bottom: 22px;
  font-size: clamp(2.3rem, 1.4rem + 2.8vw, 3.35rem);
}

.hero .lead {
  max-width: 58ch;
  margin-bottom: 32px;
}

.hero-visual {
  position: relative;
}

.hero-visual::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 92%;
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0) 70%);
  filter: blur(16px);
  pointer-events: none;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* Elevated Floating Trust Strip */
.trust-strip {
  background: transparent;
  padding: 0 0 32px 0;
  border: 0;
  box-shadow: none;
  margin-top: -32px;
  position: relative;
  z-index: 5;
}

.trust-list {
  list-style: none;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: #FFFFFF;
  border: 1px solid rgba(17, 59, 93, 0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 6px 12px;
}

.trust-list li {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 12px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy);
  text-align: left;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.trust-list li:hover {
  background: var(--blue-tint-subtle);
  transform: translateY(-1px);
}

.trust-list li + li {
  border-left: 1px solid rgba(17, 59, 93, 0.08);
}

.trust-list svg {
  width: 22px;
  height: 22px;
  color: var(--blue);
  flex: none;
  padding: 2px;
  border-radius: 8px;
  background: var(--blue-tint);
  box-shadow: inset 0 0 0 1px rgba(49, 111, 163, 0.15);
}

@media (max-width: 900px) {
  .trust-strip {
    margin-top: -16px;
    padding-bottom: 24px;
  }
  .trust-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 6px;
  }
  .trust-list li {
    justify-content: flex-start;
    padding: 14px 10px;
  }
  .trust-list li + li {
    border-left: 0;
  }
  .trust-list li:nth-child(n+3) {
    border-top: 1px solid rgba(17, 59, 93, 0.08);
  }
}

@media (max-width: 420px) {
  .trust-list li {
    font-size: 0.85rem;
    gap: 8px;
  }
}

/* Page Hero */
.page-hero {
  padding: clamp(44px, 5vw, 80px) 0 clamp(44px, 5vw, 72px);
  background:
    radial-gradient(ellipse 55% 80% at 90% 20%, rgba(49, 111, 163, 0.12), transparent 70%),
    linear-gradient(180deg, #FFFFFF 0%, #F5F8FC 100%);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  max-width: var(--measure-heading);
}

.page-hero .lead {
  max-width: var(--measure-text);
  margin-bottom: 26px;
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
}

/* Maxiva Giving: a little more room for the headline beside the diagram */
.page-hero-grid.page-hero-grid-wide-copy {
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
}

@media (max-width: 900px) {
  .page-hero-grid,
  .page-hero-grid.page-hero-grid-wide-copy {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.breadcrumb {
  font-size: 0.875rem;
  margin-bottom: 18px;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--blue);
  text-decoration: underline;
}

.breadcrumb span[aria-hidden] {
  margin: 0 8px;
  color: var(--line-strong);
}

/* Connected Systems Diagram */
/* Maxiva Giving hero: donation map (same visual language as the systems map) */
.donation-map {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
  filter: drop-shadow(0 14px 32px rgba(17, 59, 93, 0.08));
}

.dm-col {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  fill: var(--muted);
}

.dm-link {
  fill: none;
  stroke: #7B9EBF;
  stroke-width: 1.6;
  stroke-dasharray: 4 5;
}

.dm-pulse {
  fill: var(--blue);
}

.dm-node > rect {
  fill: #FFFFFF;
  stroke: rgba(17, 59, 93, 0.14);
  stroke-width: 1.5;
  filter: drop-shadow(0 4px 12px rgba(17, 59, 93, 0.08));
  transition: stroke 0.25s var(--ease), filter 0.25s var(--ease);
}

.dm-node:hover > rect {
  stroke: var(--blue);
  filter: drop-shadow(0 6px 18px rgba(49, 111, 163, 0.25));
}

.dm-node text {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  fill: var(--navy);
}

.dm-ico {
  color: var(--blue);
}

.dm-hub .outer {
  fill: #FFFFFF;
  stroke: var(--blue);
  stroke-width: 3;
  filter: drop-shadow(0 12px 28px rgba(17, 59, 93, 0.22));
}

.dm-hub .ring {
  fill: none;
  stroke: var(--blue-soft);
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
}

.dm-hub text {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  fill: var(--navy);
}

@media (prefers-reduced-motion: no-preference) {
  .dm-link {
    animation: link-flow 1.5s linear infinite;
  }

  .dm-hub .ring {
    transform-origin: center;
    transform-box: fill-box;
    animation: hub-pulse 3.2s var(--ease) infinite;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dm-pulses {
    display: none;
  }
}

.systems-map {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
  filter: drop-shadow(0 14px 32px rgba(17, 59, 93, 0.08));
}

.systems-map .link {
  stroke: #7B9EBF;
  stroke-width: 1.5;
  fill: none;
  stroke-dasharray: 4 5;
}

.systems-map .node > rect {
  fill: #FFFFFF;
  stroke: rgba(17, 59, 93, 0.14);
  stroke-width: 1.5;
  filter: drop-shadow(0 4px 12px rgba(17, 59, 93, 0.08));
  transition: stroke 0.25s var(--ease), filter 0.25s var(--ease);
}

.systems-map .node:hover > rect {
  stroke: var(--blue);
  filter: drop-shadow(0 6px 18px rgba(49, 111, 163, 0.25));
}

.systems-map .node text {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13px;
  fill: var(--navy);
}

.systems-map .node .ico {
  color: var(--blue);
}

.systems-map .orbit {
  fill: none;
  stroke: #D5DFEA;
  stroke-width: 1.25;
  stroke-dasharray: 3 4;
}

.systems-map .hub circle.outer {
  fill: #FFFFFF;
  stroke: var(--blue);
  stroke-width: 3;
  filter: drop-shadow(0 12px 28px rgba(17, 59, 93, 0.22));
}

.systems-map .hub circle.ring {
  fill: transparent;
  stroke: var(--blue-soft);
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
}

.systems-map .dot {
  fill: var(--blue);
}

@media (prefers-reduced-motion: no-preference) {
  .systems-map .link {
    animation: link-flow 1.5s linear infinite;
  }
  .systems-map .hub circle.ring {
    transform-origin: center;
    transform-box: fill-box;
    animation: hub-pulse 3.2s var(--ease) infinite;
  }
}

@keyframes link-flow {
  to {
    stroke-dashoffset: 18;
  }
}

@keyframes hub-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(1.07);
  }
}

/* ---------- Grids & Cards ---------- */
.grid {
  display: grid;
  gap: 24px;
}

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

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

@media (max-width: 680px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  position: relative;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 2.4vw, 32px);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease),
              box-shadow 0.3s var(--ease),
              border-color 0.3s var(--ease);
}

.card h3 {
  margin-bottom: 8px;
}

.card p:last-child,
.card ul:last-child {
  margin-bottom: 0;
}

.card .card-foot {
  margin-top: auto;
  padding-top: 18px;
}

.card-flat {
  box-shadow: none;
}

/* Accent edge: the layer covers the whole card (border included) and inherits its rounded corners,
   but only paints its top 4px, so the colored edge follows the card's curve instead of sitting on it */
.card-accent::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--navy), var(--blue)) top / 100% 4px no-repeat;
  pointer-events: none;
}

.card-link {
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.35s var(--ease),
              border-color 0.35s var(--ease),
              transform 0.35s var(--ease);
}

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

.card-link:hover h3 {
  color: var(--blue);
}

.card-link:hover .text-link svg {
  transform: translateX(4px);
}

.card .short {
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.45;
}

.card .muted, .muted {
  color: var(--muted);
}

.card .muted {
  font-size: 0.97rem;
}

.icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--blue-tint);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  flex: none;
  color: var(--blue);
  box-shadow: inset 0 0 0 1px rgba(49, 111, 163, 0.15);
  transition: transform 0.3s var(--ease),
              background-color 0.3s var(--ease),
              color 0.3s var(--ease);
}

.icon-badge svg {
  width: 24px;
  height: 24px;
}

.card:hover .icon-badge {
  transform: scale(1.06);
}

.on-dark .icon-badge {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.ico {
  width: 24px;
  height: 24px;
  flex: none;
}

/* Bento (Six Ways Maxiva Helps) */
.bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.bento-cell {
  padding: 28px;
  position: relative;
  background: #FFFFFF;
  border: 1px solid rgba(17, 59, 93, 0.1);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.3s var(--ease),
              box-shadow 0.3s var(--ease),
              border-color 0.3s var(--ease);
}

.bento-wide {
  grid-column: span 2;
  justify-content: flex-end;
  min-height: 300px;
}

.bento-wide .icon-badge {
  position: absolute;
  top: clamp(24px, 2.4vw, 32px);
  left: clamp(24px, 2.4vw, 32px);
  width: 56px;
  height: 56px;
}

.bento-wide h3 {
  font-size: 1.45rem;
}

.bento-wide .short {
  font-size: 1.05rem;
}

.bento-wide p {
  max-width: 52ch;
}

.bento-navy {
  background: radial-gradient(ellipse 90% 70% at 90% 10%, rgba(49, 111, 163, 0.35), transparent 70%),
              linear-gradient(150deg, #113B5D 0%, #071731 100%);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow-xl), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
}

.bento-navy.on-dark .muted {
  color: #C9D6E4;
}

.bento-navy .short {
  color: #FFFFFF;
}

.bento-navy .icon-badge {
  background: rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.bento-tint {
  background: linear-gradient(145deg, #FFFFFF 0%, var(--blue-tint) 100%);
  border-color: #CFDDEB;
}

.bento-tint .icon-badge {
  background: #FFFFFF;
}

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

@media (max-width: 680px) {
  .bento {
    grid-template-columns: 1fr;
  }
  .bento-wide {
    grid-column: auto;
    min-height: 0;
  }
  .bento-wide .icon-badge {
    position: static;
  }
}

/* Services Grid & Foot */
.service-grid .card h3 {
  font-size: 1.12rem;
}

/* Carousel (home services): a native scroll-snap track, paged by the prev/next buttons in main.js.
   Without JS the track still scrolls sideways and the controls stay hidden. */
.carousel {
  --carousel-gap: 22px;
  --carousel-per-view: 4;
}

.carousel-controls {
  display: none;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.js .carousel-controls {
  display: flex;
}

.carousel-btn {
  width: 44px;
  height: 44px;
  flex: none;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  border: 1px solid var(--line-strong);
  color: var(--navy);
  box-shadow: var(--shadow-xs);
  cursor: pointer;
  transition: background-color 0.2s var(--ease),
              border-color 0.2s var(--ease),
              color 0.2s var(--ease),
              box-shadow 0.2s var(--ease),
              transform 0.2s var(--ease);
}

.carousel-btn svg {
  width: 20px;
  height: 20px;
}

.carousel-btn:hover:not(:disabled) {
  background: var(--blue);
  border-color: var(--blue);
  color: #FFFFFF;
  box-shadow: 0 8px 18px -8px rgb(49 111 163 / 0.6);
}

.carousel-btn:active:not(:disabled) {
  transform: scale(0.95);
}

.carousel-btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.carousel-btn:disabled {
  opacity: 0.4;
  cursor: default;
  box-shadow: none;
}

.carousel-status {
  margin: 0 0 0 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.carousel-status [data-carousel-status] {
  color: var(--navy);
}

.carousel-track {
  list-style: none;
  margin: -8px -4px -28px;
  padding: 8px 4px 28px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--carousel-per-view) - 1) * var(--carousel-gap)) / var(--carousel-per-view));
  gap: var(--carousel-gap);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 4px;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-track:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: var(--radius);
}

.carousel-slide {
  margin: 0;
  scroll-snap-align: start;
  display: flex;
}

.carousel-slide > .card {
  flex: 1;
}

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

@media (max-width: 1100px) {
  .carousel {
    --carousel-per-view: 3;
  }
}

@media (max-width: 860px) {
  .carousel {
    --carousel-per-view: 2;
    --carousel-gap: 16px;
  }
}

@media (max-width: 560px) {
  /* One card plus a peek of the next, so it reads as swipeable */
  .carousel {
    --carousel-per-view: 1.15;
  }
}

.services-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.services-foot p {
  max-width: 70ch;
}

/* Card grid: a list of .card items (Why Maxiva, Build what you need) */
.card-grid {
  list-style: none;
  margin: 0;
  padding: 0;
}

.card-grid .card {
  margin: 0;
}

.card-grid .card h3 {
  font-size: 1.08rem;
}

/* Problem Grid (Sound Familiar?) */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

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

@media (max-width: 560px) {
  .problem-grid {
    grid-template-columns: 1fr;
  }
}

.problem {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow);
  transition: transform 0.3s var(--ease),
              box-shadow 0.3s var(--ease),
              border-color 0.3s var(--ease);
}

.problem:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-top-color: var(--navy);
  border-color: rgba(17, 59, 93, 0.22);
}

.problem h3 {
  font-size: 1.14rem;
  margin-bottom: 8px;
}

.problem p {
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.55;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 16px;
}

.problem .relief,
.problem p > .relief {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: auto;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--blue-tint) 0%, #EDF5FB 100%);
  border: 1px solid rgba(49, 111, 163, 0.14);
  color: var(--navy);
  font-weight: 500;
  font-size: 0.92rem;
  line-height: 1.45;
  box-sizing: border-box;
  width: 100%;
  transition: background-color 0.2s var(--ease);
}

.problem:hover .relief {
  background: #E2EEF8;
}

.problem .relief svg {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 1px;
  color: var(--blue);
}

/* Checklist */
.checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 1em;
}

.checklist li {
  position: relative;
  padding-left: 32px;
}

.checklist li + li {
  margin-top: 0.65em;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.22em;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--blue-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23316FA3' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
  box-shadow: 0 1px 3px rgba(49, 111, 163, 0.15);
}

.on-dark .checklist li::before {
  background-color: rgba(255, 255, 255, 0.14);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

.checklist-2col {
  columns: 2;
  column-gap: 32px;
}

.checklist-2col li {
  break-inside: avoid;
}

@media (max-width: 680px) {
  .checklist-2col {
    columns: 1;
  }
}

/* Split Layout */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}

.split-top {
  align-items: start;
}

.split.reverse > :first-child {
  order: 2;
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .split.reverse > :first-child {
    order: 0;
  }
}

/* Steps */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 20px;
  counter-reset: step;
}

.steps-row {
  grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
}

@media (max-width: 900px) {
  .steps-row {
    grid-template-columns: 1fr;
  }
}

.steps > li {
  margin: 0;
  counter-increment: step;
  position: relative;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px 26px;
  box-shadow: var(--shadow);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.steps > li:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.steps > li::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--navy);
  color: #FFFFFF;
  font-family: var(--font-head);
  font-weight: 700;
  margin-bottom: 16px;
  box-shadow: 0 0 0 5px var(--blue-tint);
}

.steps h3 {
  font-size: 1.12rem;
  margin-bottom: 6px;
}

.steps p {
  margin: 0;
  color: var(--muted);
}

.steps .tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--blue-dark);
  background: var(--blue-tint);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  margin-left: 8px;
  vertical-align: middle;
  font-family: var(--font-body);
  letter-spacing: 0;
}

/* Steps Cards (How It Works) */
.steps-cards {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
  gap: 28px;
  position: relative;
}

@media (max-width: 900px) {
  .steps-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.step-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  border-radius: var(--radius);
  padding: 32px 28px 26px;
  box-shadow: var(--shadow);
  position: relative;
  transition: transform 0.3s var(--ease),
              box-shadow 0.3s var(--ease),
              border-color 0.3s var(--ease);
}

.step-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.step-tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--blue-dark);
  background: var(--blue-tint);
  border: 1px solid rgba(49, 111, 163, 0.16);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

.step-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--mist) 0%, var(--blue-tint) 100%);
  color: var(--blue);
  border: 1px solid rgba(49, 111, 163, 0.14);
  box-shadow: var(--shadow-xs);
  transition: transform 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.step-card:hover .step-icon-badge {
  transform: scale(1.08);
  color: var(--navy);
  border-color: var(--blue);
}

.step-icon-badge svg {
  width: 20px;
  height: 20px;
}

.step-card h3 {
  font-size: 1.22rem;
  margin-bottom: 12px;
  line-height: 1.35;
  color: var(--navy);
}

.step-card .step-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.58;
  flex: 1 1 auto;
}

.step-card .step-foot {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line-light);
}

.step-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
}

.step-meta svg {
  width: 16px;
  height: 16px;
  color: var(--blue);
  flex: none;
}

@media (min-width: 901px) {
  .step-card:not(:last-child)::after {
    content: "→";
    position: absolute;
    top: 36px;
    right: -21px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 1px solid rgba(17, 59, 93, 0.14);
    color: var(--blue);
    font-size: 14px;
    font-weight: 700;
    line-height: 26px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    z-index: 3;
    pointer-events: none;
    transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), background-color 0.25s var(--ease);
  }
  .step-card:hover::after {
    border-color: var(--blue);
    background: var(--blue-tint-subtle);
    transform: scale(1.12);
  }
}

/* Steps Line (Connected Flow) */
.steps-line {
  gap: 40px;
}

.steps-line > li {
  background: none;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.steps-line > li::before {
  width: 48px;
  height: 48px;
  font-size: 1.05rem;
  margin-bottom: 22px;
  background: var(--blue);
  box-shadow: 0 0 0 8px #FFFFFF, 0 0 0 9px var(--line);
}

.steps-line > li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 24px;
  left: 72px;
  right: -28px;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 6px, transparent 6px 12px);
}

.steps-line h3 {
  font-size: 1.2rem;
}

@media (max-width: 900px) {
  .steps-line {
    gap: 32px;
  }
  .steps-line > li {
    padding-left: 72px;
  }
  .steps-line > li::before {
    position: absolute;
    left: 0;
    top: 0;
    margin: 0;
  }
  .steps-line > li:not(:last-child)::after {
    top: 64px;
    bottom: -24px;
    left: 23px;
    right: auto;
    width: 2px;
    height: auto;
    background: repeating-linear-gradient(180deg, var(--line-strong) 0 6px, transparent 6px 12px);
  }
}

/* Timeline */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.timeline li {
  position: relative;
  padding: 0 0 26px 40px;
  margin: 0;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 6px;
  bottom: -6px;
  width: 2px;
  background: var(--line-strong);
}

.timeline li:last-child::before {
  display: none;
}

.timeline li::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 3px solid var(--blue);
  box-shadow: 0 0 0 4px var(--blue-tint);
}

.timeline .when {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--navy);
  display: block;
}

/* Pricing Cards */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

@media (max-width: 900px) {
  .pricing {
    grid-template-columns: 1fr;
  }
}

.price-card {
  position: relative;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 30px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease),
              box-shadow 0.35s var(--ease);
}

.price-card.featured {
  background: radial-gradient(ellipse 80% 60% at 100% 0%, rgba(49, 111, 163, 0.45), transparent 70%),
              linear-gradient(160deg, var(--navy), #0A2640);
  border: 1px solid var(--navy);
  color: #E6EDF5;
  box-shadow: var(--shadow-xl);
}

@media (min-width: 901px) {
  .pricing:not(.pricing-4) {
    padding-top: 12px;
  }
  .pricing:not(.pricing-4) .price-card.featured {
    transform: translateY(-10px);
  }
  .pricing:not(.pricing-4) .price-card.featured:hover {
    transform: translateY(-14px);
  }
}

.price-card.featured .pkg,
.price-card.featured .price,
.price-card.featured dd,
.price-card.featured strong {
  color: #FFFFFF;
}

.price-card.featured .hours,
.price-card.featured dt,
.price-card.featured .muted,
.price-card.featured .use,
.price-card.featured li {
  color: #D5E0EC;
}

.price-card.featured .rate {
  color: var(--blue-soft);
}

.price-card.featured .checklist li::before {
  background-color: rgba(255, 255, 255, 0.16);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

.price-card.featured dl,
.price-card.featured .use {
  border-color: rgba(255, 255, 255, 0.18);
}

.price-card .pkg {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--navy);
  margin: 0;
}

.price-card .hours {
  color: var(--muted);
  margin: 2px 0 20px;
}

.price-card .price {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 2.6rem;
  letter-spacing: -0.03em;
  color: var(--navy);
  line-height: 1;
  margin: 0;
}

.price-card .rate {
  color: var(--blue);
  font-weight: 600;
  margin: 10px 0 20px;
}

.price-card dl {
  margin: 0 0 20px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 14px;
  font-size: 0.95rem;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.price-card dt {
  color: var(--muted);
}

.price-card dd {
  margin: 0;
  font-weight: 500;
  color: var(--charcoal);
}

.price-card .use {
  font-size: 0.95rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: auto;
  margin-bottom: 0;
}

.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--blue-tint);
  color: var(--navy);
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  margin-bottom: 12px;
  align-self: flex-start;
  font-family: var(--font-head);
}

/* Callout Notes & Security Boxes */
.note {
  background: var(--mist);
  border: 1px solid #DCE6F0;
  border-left: 4px solid var(--blue);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 0 0 1em;
}

.note p:last-child {
  margin-bottom: 0;
}

.note-white {
  background: #FFFFFF;
}

.callout-security {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
  box-shadow: var(--shadow-lg);
}

.callout-security .icon-badge {
  margin: 0;
}

.callout-security p {
  margin: 0;
}

/* Tables */
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: #FFFFFF;
}

table.data th, table.data td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

table.data tbody tr:last-child th,
table.data tbody tr:last-child td {
  border-bottom: 0;
}

table.data th {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--navy);
  background: var(--mist-2);
}

table.data thead th {
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

table.data tbody tr th,
table.data tbody tr td {
  transition: background-color 0.25s var(--ease);
}

table.data tbody tr:hover td,
table.data tbody tr:hover th[scope="row"] {
  background: var(--blue-tint);
}

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Marketing Package Summary Table */

/* Responsive Package Summary Table (< 820px): Clean Mobile Pagination Slider */
@media (max-width: 820px) {

  /* 1. Package Name & Badge */

  /* 2. Price */

  /* 3. Hours and validity */

  /* 4. Best for */

  /* 5. Typical support */
}

/* Chips & Pills */
.chips {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chips li {
  margin: 0;
  background: #FFFFFF;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--navy);
  font-size: 0.88rem;
  box-shadow: var(--shadow-xs);
  transition: border-color 0.2s var(--ease),
              background-color 0.2s var(--ease);
}

.chips li:hover {
  border-color: var(--blue);
  background: var(--blue-tint-subtle);
}

/* Platforms marquee: each row scrolls on a loop (the list is rendered twice and the pair slides by half its
   width), pauses on hover or focus, and becomes a static wrapped list for reduced motion. */
.platforms-title {
  margin-bottom: 18px;
}

.marquee + .marquee {
  margin-top: 18px;
}

.marquee-label {
  margin: 0 0 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.marquee-viewport {
  overflow: hidden;
  /* The looping row is wider than any container; keep it from sizing grid or flex parents */
  contain: inline-size;
  padding-block: 4px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent);
}

.marquee-inner {
  display: flex;
  width: max-content;
}

.marquee-group {
  list-style: none;
  margin: 0;
  padding: 0 12px 0 0;
  display: flex;
  gap: 12px;
}

.marquee-group li {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px 9px 12px;
  white-space: nowrap;
  background: #FFFFFF;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-xs);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--navy);
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.marquee-group .ico {
  width: 20px;
  height: 20px;
  color: var(--blue);
}

.marquee-group li:hover {
  border-color: var(--blue);
  background: var(--blue-tint-subtle);
}

@media (prefers-reduced-motion: no-preference) {
  .marquee-inner {
    /* about 3s per item keeps both rows at a similar, readable speed */
    animation: marquee calc(var(--marquee-items, 14) * 3s) linear infinite;
  }

  .marquee-reverse .marquee-inner {
    animation-direction: reverse;
  }

  .marquee-viewport:hover .marquee-inner,
  .marquee-viewport:focus-within .marquee-inner {
    animation-play-state: paused;
  }
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-viewport {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .marquee-inner {
    width: auto;
  }

  .marquee-group {
    flex-wrap: wrap;
    padding: 0;
  }

  .marquee-group[aria-hidden="true"] {
    display: none;
  }
}

.on-dark .chips li {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}

/* Principle / Quote Display */
.principle {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.4rem);
  letter-spacing: -0.02em;
  color: var(--navy);
  line-height: 1.25;
  margin: 0 0 12px;
  text-wrap: balance;
}

.on-dark .principle {
  color: #FFFFFF;
}

.principle-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--blue-soft);
  letter-spacing: 0;
  margin-bottom: 18px;
}

.mv-label {
  font-size: 0.95rem;
  color: var(--blue);
  margin-bottom: 10px;
}

.mv-text {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
  line-height: 1.45;
  color: var(--navy);
  margin: 0;
  text-wrap: pretty;
}

/* FAQ Details & Summary */
.faq {
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 52px 22px 0;
  position: relative;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--navy);
  font-size: 1.05rem;
  transition: color 0.2s var(--ease);
}

.faq summary:hover {
  color: var(--blue);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::before {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 32px;
  height: 32px;
  margin-top: -16px;
  border-radius: 50%;
  background: var(--blue-tint);
  transition: background-color 0.2s var(--ease);
}

.faq summary::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -6px;
  border-right: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: rotate(45deg);
  transition: transform 0.3s var(--ease), margin 0.3s var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(-135deg);
  margin-top: -2px;
}

.faq .answer {
  padding: 0 0 22px;
  color: var(--charcoal);
  max-width: 700px;
}

.faq .answer p:last-child {
  margin-bottom: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .faq details[open] .answer {
    animation: faq-in 0.35s var(--ease);
  }
}

@keyframes faq-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}

/* ==========================================================================
   Placeholders & Device Mockup Frames (High-Fidelity UI Styling)
   ========================================================================== */
.ph {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.9), transparent 70%),
    radial-gradient(rgba(49, 111, 163, 0.12) 1.2px, transparent 1.2px),
    linear-gradient(145deg, #F8FAFD 0%, #EEF4FA 100%);
  background-size: 100% 100%, 20px 20px, 100% 100%;
  border: 1.5px solid #CFDDEB;
  border-radius: var(--radius);
  color: var(--navy);
  padding: 28px 24px;
  min-height: 190px;
  width: 100%;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.ph:hover {
  border-color: var(--blue-soft);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), var(--shadow-sm);
}

.ph svg {
  width: 34px;
  height: 34px;
  color: var(--blue);
  filter: drop-shadow(0 2px 4px rgba(49, 111, 163, 0.18));
}

.ph .ph-label {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-dark);
  background: #FFFFFF;
  border: 1px solid rgba(49, 111, 163, 0.18);
  border-radius: var(--radius-pill);
  padding: 3px 11px;
  box-shadow: 0 1px 3px rgba(17, 59, 93, 0.06);
}

.ph .ph-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--navy);
}

.ph .ph-hint {
  font-size: 0.85rem;
  color: var(--muted);
  max-width: 320px;
  line-height: 1.5;
}

.ph-portrait {
  aspect-ratio: 4 / 5;
  min-height: 0;
}

.ph-square {
  aspect-ratio: 1;
  min-height: 0;
}

.ph-wide {
  aspect-ratio: 16 / 9;
  min-height: 0;
}

.ph-team {
  aspect-ratio: 4 / 3;
  min-height: 0;
}

.ph-inline {
  display: inline-flex;
  flex-direction: row;
  min-height: 0;
  padding: 5px 12px;
  gap: 8px;
  border-width: 1px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  width: auto;
  max-width: 100%;
  overflow-wrap: anywhere;
  vertical-align: middle;
  background: var(--ph-bg, #F4F7FA);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-xs);
}

.ph-inline .ph-label {
  flex: none;
  overflow-wrap: normal;
  font-size: 0.68rem;
  padding: 1px 7px;
}

.on-dark .ph {
  background:
    radial-gradient(rgba(255, 255, 255, 0.1) 1.2px, transparent 1.2px),
    linear-gradient(145deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
  background-size: 20px 20px, 100% 100%;
  border-color: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}

.on-dark .ph .ph-label {
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.3);
}

.on-dark .ph .ph-title {
  color: #FFFFFF;
}

.on-dark .ph .ph-hint {
  color: #C9D6E4;
}

/* Device Mockups (Browser & Tablet Frames) */
.device-browser {
  border-radius: 14px;
  background: #FFFFFF;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.device-browser:hover {
  transform: translateY(-2px);
  box-shadow: 0 32px 70px -16px rgba(7, 23, 49, 0.32);
}

.device-browser .bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  background: var(--mist-2);
  border-bottom: 1px solid var(--line);
}

.device-browser .bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: block;
}

.device-browser .bar i:nth-child(1) { background: #FF5F56; }
.device-browser .bar i:nth-child(2) { background: #FFBD2E; }
.device-browser .bar i:nth-child(3) { background: #27C93F; }

.device-browser .bar .url {
  margin-left: 12px;
  flex: 1;
  height: 24px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  padding: 0 14px;
  overflow: hidden;
  white-space: nowrap;
  box-shadow: inset 0 1px 2px rgba(17, 59, 93, 0.04);
}

.device-browser .ph {
  border: 0;
  border-radius: 0;
}

.device-tablet {
  border-radius: 30px;
  background: linear-gradient(160deg, #1B3554, var(--midnight));
  padding: 16px;
  box-shadow: var(--shadow-xl), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  max-width: 380px;
  margin: 0 auto;
  border: 2px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.35s var(--ease);
}

.device-tablet:hover {
  transform: translateY(-2px);
}

.device-tablet .ph {
  border-radius: 18px;
  aspect-ratio: 3 / 4;
  min-height: 0;
  border-color: rgba(255, 255, 255, 0.25);
}


/* ---------- Founder & Team ---------- */
.founder {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

@media (max-width: 800px) {
  .founder {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .founder .ph-portrait {
    max-width: 300px;
  }
}

.founder .name {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--navy);
  font-size: 1.3rem;
  margin-bottom: 2px;
}

.founder .role {
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 18px;
}

/* Proof Band */
.proof-band {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

@media (max-width: 900px) {
  .proof-band {
    grid-template-columns: 1fr;
  }
}

.proof-statement {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem);
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
}

/* Proof band: a portrait tablet beside the statement shows the case study, then the testimonial.
   No pinning or extra scroll height: two invisible halves laid over the tablet are watched by main.js
   ([data-scrolly]); when the tablet's middle crosses the middle of the viewport the screen switches. */
.proof-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.proof-markers {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: 1fr 1fr;
  pointer-events: none;
}

/* Each marker is exactly half the tablet (overrides the Giving story's 75vh markers) */
.gs-markers.proof-markers > div {
  height: auto;
}

.device-tablet.proof-tablet {
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
}

.device-tablet.proof-tablet:hover {
  transform: none;
}

.proof-screen {
  container-type: inline-size;
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  overflow: hidden;
  background: var(--mist-2);
}

html:not(.js) .proof-screen {
  aspect-ratio: auto;
}

/* ---------- CTA Band ---------- */
.cta-band {
  text-align: center;
}

.cta-band.bg-midnight {
  background:
    radial-gradient(ellipse 65% 85% at 50% 120%, rgba(49, 111, 163, 0.48), transparent 70%),
    radial-gradient(ellipse 40% 60% at 100% 0%, rgba(49, 111, 163, 0.2), transparent 70%),
    var(--midnight);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.cta-band h2 {
  max-width: var(--measure-heading);
  margin: 0 auto 16px;
  font-size: clamp(1.8rem, 1.2rem + 2.2vw, 2.8rem);
}

.cta-band p.lead {
  max-width: 620px;
  margin: 0 auto 32px;
  color: #D5E0EC;
}

.cta-band .cta-group {
  justify-content: center;
}

.cta-band .cta-stack {
  align-items: center;
}

/* ---------- Home: Maxiva Giving scroll story ----------
   One column: title, then a tablet that stays pinned while invisible markers behind it scroll past
   (main.js shows the screen whose marker crosses the middle of the viewport), then the process.
   Without JS the screens simply stack inside the tablet. Sizes inside the screen use container
   units (1cqi = 1% of the screen width) so the content scales with the device. */
/* The title pins together with the frame */
.gs-head {
  flex: none;
  margin: 0;
}

.gs-head h2 {
  margin: 0;
  font-size: clamp(1.4rem, 1rem + 1.6vw, 2.2rem);
}

.gs-track {
  display: grid;
}

.gs-track > * {
  grid-area: 1 / 1;
}

.gs-stage {
  --gs-stage-h: calc(100vh - var(--header-h));
  position: sticky;
  top: var(--header-h);
  align-self: start;
  z-index: 1;
  height: var(--gs-stage-h);
  padding: clamp(18px, 4vh, 40px) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(12px, 2vh, 20px);
}

@supports (height: 100svh) {
  .gs-stage {
    --gs-stage-h: calc(100svh - var(--header-h));
  }
}

.gs-markers > div {
  height: 75vh;
}

.device-tablet.gs-tablet {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  width: 100%;
  /* Roughly a 16:10 screen for the height left after the title, padding and dots */
  max-width: calc((var(--gs-stage-h) - 230px) * 1.6 + 36px);
  padding: 18px;
  border-radius: 34px;
}

.device-tablet.gs-tablet:hover {
  transform: none;
}

.gs-screen {
  container-type: size;
  position: relative;
  flex: 1;
  min-height: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #FFFFFF;
}

.gs-scene {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 2cqi;
  padding: 5cqi 7cqi;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(0.985);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), visibility 0s linear 0.5s;
}

.gs-scene.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), visibility 0s;
}

.gs-scene > .ph {
  position: absolute;
  inset: 0;
  height: 100%;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
}

/* Screen 1: the intro text */
.gs-scene-text {
  align-items: flex-start;
  text-align: left;
  padding-inline: max(7cqi, calc((100% - 900px) / 2));
  gap: 2.4cqi;
  background: radial-gradient(circle at 85% 10%, var(--blue-tint) 0%, #FFFFFF 55%);
}

.gs-lead {
  margin: 0;
  font-size: clamp(12px, min(2.5cqi, 4.4cqb), 30px);
  line-height: 1.55;
  color: var(--navy);
}

.gs-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.3cqi;
}

.gs-list li {
  margin: 0;
  display: flex;
  align-items: flex-start;
  gap: 1.6cqi;
  font-size: clamp(11px, min(2.1cqi, 3.7cqb), 23px);
  line-height: 1.45;
  color: var(--charcoal);
}

.gs-list .ico {
  flex: none;
  width: clamp(15px, 2.6cqi, 26px);
  height: clamp(15px, 2.6cqi, 26px);
  margin-top: 0.2em;
  color: var(--blue);
}

.gs-note {
  margin: 0;
  padding: 1.4cqi 2.2cqi;
  font-size: clamp(11px, min(1.9cqi, 3.3cqb), 19px);
  line-height: 1.45;
  color: var(--navy);
  background: var(--blue-tint-subtle);
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: 1.6cqi;
}

/* Screen 4: the calls to action */
.gs-scene-cta {
  gap: 2cqi;
  background: radial-gradient(circle at 50% 25%, var(--blue-tint) 0%, #FFFFFF 70%);
}

.gs-scene-cta img {
  width: clamp(56px, 12cqi, 110px);
  height: auto;
}

.gs-cta-title {
  margin: 0 0 1.5cqi;
  font-family: var(--font-head);
  font-size: clamp(17px, 4cqi, 38px);
  font-weight: 700;
  color: var(--navy);
}

.gs-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2cqi;
}

/* Progress under the tablet */
.gs-progress {
  flex: none;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 8px;
}

.gs-progress li {
  margin: 0;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--line-strong);
  transition: width 0.35s var(--ease), background-color 0.35s var(--ease);
}

.gs-progress li.is-active {
  width: 26px;
  background: var(--blue);
}

/* The process, under the tablet */
.gs-process {
  margin-top: clamp(40px, 5vw, 64px);
}

.gs-process-title {
  margin: 0 0 20px;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
}

/* Without JS: no pinning, the screens stack inside the tablet */
html:not(.js) .gs-markers,
html:not(.js) .gs-progress {
  display: none;
}

html:not(.js) .gs-stage {
  position: static;
  height: auto;
}

html:not(.js) .gs-screen {
  height: auto;
}

html:not(.js) .gs-scene {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: none;
  min-height: 60cqi;
}

@media (prefers-reduced-motion: reduce) {
  .gs-scene {
    transform: none;
  }
}

/* Phones: a portrait tablet, with the text screen set larger relative to its width */
@media (max-width: 700px) {
  .gs-stage {
    padding: 14px 0 12px;
  }

  .gs-head h2 {
    font-size: clamp(1.2rem, 0.9rem + 2vw, 1.5rem);
  }

  .device-tablet.gs-tablet {
    max-width: none;
    padding: 10px;
    border-radius: 24px;
  }

  .gs-screen {
    border-radius: 14px;
  }

  .gs-scene {
    padding: 7cqi 6cqi;
  }

  .gs-scene-text {
    gap: min(5cqi, 3cqb);
  }

  .gs-lead {
    font-size: clamp(12px, min(5cqi, 3.2cqb), 19px);
  }

  .gs-list {
    gap: min(3.4cqi, 2cqb);
  }

  .gs-list li {
    gap: 2.8cqi;
    font-size: clamp(11px, min(4.4cqi, 2.8cqb), 17px);
  }

  .gs-list .ico {
    width: clamp(15px, 5cqi, 20px);
    height: clamp(15px, 5cqi, 20px);
  }

  .gs-note {
    padding: 3.2cqi 4cqi;
    font-size: clamp(11px, min(4cqi, 2.5cqb), 15px);
    border-radius: 3cqi;
  }

  .gs-scene-cta img {
    width: 20cqi;
  }

  .gs-cta-title {
    font-size: max(6cqi, 17px);
  }

  .gs-cta-buttons {
    flex-direction: column;
    align-items: stretch;
    width: 80cqi;
  }

  .gs-markers > div {
    height: 65vh;
  }
}

/* Very narrow phones (about 320px): the text can't fit at a readable size, so it scrolls inside the frame */
@media (max-width: 340px) {
  .gs-scene-text {
    justify-content: flex-start;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

/* Small, short phones: tighter spacing so the text screen still fits */
@media (max-width: 380px) and (max-height: 600px) {

  .gs-scene {
    padding: 5.5cqi 5cqi;
  }

  .gs-scene-text {
    gap: 2.8cqi;
  }

  .gs-lead {
    font-size: clamp(11px, min(4.3cqi, 3cqb), 14px);
    line-height: 1.5;
  }

  .gs-list {
    gap: 1.6cqi;
  }

  .gs-list li {
    font-size: clamp(10.5px, min(3.7cqi, 2.6cqb), 13px);
    line-height: 1.4;
  }

  .gs-note {
    padding: 2cqi 3cqi;
    font-size: clamp(10.5px, min(3.4cqi, 2.4cqb), 12px);
  }
}

/* Connected Donation Workflow: numbered step cards joined by connectors (Home, Maxiva Giving) */
.workflow {
  --wf-gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--wf-gap);
  counter-reset: wf;
}

.workflow li {
  position: relative;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 30px 14px 22px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  counter-increment: wf;
  transition: transform 0.3s var(--ease),
              border-color 0.3s var(--ease),
              box-shadow 0.3s var(--ease);
}

/* Step number */
.workflow li::before {
  content: counter(wf, decimal-leading-zero);
  position: absolute;
  top: 10px;
  left: 12px;
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted-light);
}

/* Connector to the next step, with a dot where it meets the next card */
.workflow li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  width: var(--wf-gap);
  height: 2px;
  margin-top: -1px;
  background: linear-gradient(90deg, var(--blue-soft), var(--blue));
  border-radius: 2px;
}

.wf-icon {
  width: 50px;
  height: 50px;
  flex: none;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-tint);
  color: var(--blue);
  box-shadow: inset 0 0 0 1px rgba(49, 111, 163, 0.14);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}

.wf-icon .ico {
  width: 22px;
  height: 22px;
}

.workflow li > span:last-child {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.35;
  color: var(--navy);
  text-wrap: balance;
}

@media (hover: hover) {
  .workflow li:hover {
    transform: translateY(-4px);
    border-color: rgb(49 111 163 / 0.4);
    box-shadow: 0 0 0 1px rgb(49 111 163 / 0.12),
                0 18px 36px -16px rgb(49 111 163 / 0.4);
  }

  .workflow li:hover .wf-icon {
    background: var(--blue);
    color: #FFFFFF;
    transform: scale(1.06);
  }
}

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

  /* No connector off the end of a row */
  .workflow li:nth-child(3n)::after {
    display: none;
  }
}

/* Phones: a vertical list, with the connectors running down between cards */
@media (max-width: 560px) {
  .workflow {
    --wf-gap: 14px;
    grid-template-columns: minmax(0, 1fr);
  }

  .workflow li {
    flex-direction: row;
    text-align: left;
    gap: 16px;
    padding: 16px 18px;
  }

  .workflow li::before {
    top: 6px;
    left: auto;
    right: 12px;
  }

  .workflow li:nth-child(3n)::after,
  .workflow li:not(:last-child)::after {
    display: block;
    top: 100%;
    left: 43px;
    width: 2px;
    height: var(--wf-gap);
    margin-top: 0;
    background: linear-gradient(180deg, var(--blue-soft), var(--blue));
  }
}

/* ---------- Forms & Inputs ---------- */
.form {
  display: grid;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (max-width: 620px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field label, .field legend {
  font-weight: 600;
  color: var(--navy);
  font-size: 0.95rem;
}

.field .opt {
  font-weight: 400;
  color: var(--muted);
}

.field .req {
  color: var(--error);
}

.field .hint {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.45;
}

.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 1rem;
  color: var(--charcoal);
  background: #FFFFFF;
  width: 100%;
  border: 1.5px solid var(--field-border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  min-height: 48px;
  box-shadow: var(--shadow-xs);
  transition: border-color 0.2s var(--ease),
              box-shadow 0.2s var(--ease),
              background-color 0.2s var(--ease);
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--navy);
}

.field input::placeholder,
.field textarea::placeholder {
  color: #6B7684;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23113B5D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 42px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(49, 111, 163, 0.18), 0 1px 3px rgba(17, 59, 93, 0.08);
  border-color: var(--blue);
  background: #FFFFFF;
}

.field [aria-invalid="true"] {
  border-color: var(--error);
  background: #FFFBFA;
}

.field [aria-invalid="true"]:focus {
  box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.16);
}

.field-error {
  color: var(--error);
  font-size: 0.88rem;
  font-weight: 500;
  margin: 0;
}

.field-error:empty {
  display: none;
}

.field-error::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin: 0 6px -2px 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B42318' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 8v4'/%3E%3Cpath d='M12 16h.01'/%3E%3C/svg%3E") center / contain no-repeat;
}

.check {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 0.95rem;
}

.check input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--blue);
}

.check label {
  font-weight: 400;
  color: var(--charcoal);
  line-height: 1.5;
}

.form-note {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0;
}

.form-status {
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.form-status:empty {
  display: none;
}

.form-status.is-success {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid var(--success-border);
}

.form-status.is-error {
  background: var(--error-bg);
  color: var(--error);
  border: 1px solid var(--error-border);
}

.form-status.is-info {
  background: var(--mist);
  color: var(--navy);
  border: 1px solid var(--line-strong);
}

.form-status a {
  color: inherit;
  font-weight: 600;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-card {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 40px);
  box-shadow: var(--shadow-lg);
}

/* Dialog / Modal */
dialog.modal {
  border: 0;
  padding: 0;
  border-radius: 20px;
  width: min(640px, calc(100vw - 24px));
  max-height: calc(100vh - 32px);
  box-shadow: 0 30px 80px rgba(7, 23, 49, 0.45);
  color: var(--charcoal);
}

dialog.modal::backdrop {
  background: rgba(7, 23, 49, 0.6);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

@media (prefers-reduced-motion: no-preference) {
  dialog.modal[open] {
    animation: modal-in 0.38s var(--ease);
  }
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.modal-inner {
  padding: clamp(24px, 4vw, 40px);
  overflow-y: auto;
  max-height: calc(100vh - 32px);
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.modal-head h2 {
  font-size: 1.55rem;
  margin: 0;
}

.modal-close {
  background: var(--mist);
  border: 0;
  padding: 8px;
  margin: -6px -6px 0 0;
  border-radius: 50%;
  color: var(--navy);
  cursor: pointer;
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.modal-close:hover {
  background: var(--blue-tint);
  transform: rotate(90deg);
}

.modal-close svg {
  width: 20px;
  height: 20px;
  display: block;
}

html.dialog-open, html.dialog-open body {
  overflow: hidden;
}

dialog.modal .modal-inner {
  padding-top: 0;
}

.modal-head {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #FFFFFF;
  margin: 0 calc(clamp(24px, 4vw, 40px) * -1) 8px;
  padding: clamp(24px, 4vw, 40px) clamp(24px, 4vw, 40px) 12px;
}

@media (max-width: 560px) {
  dialog.modal {
    width: 100vw;
    max-width: 100vw;
    margin: auto 0 0;
    border-radius: 20px 20px 0 0;
    max-height: 92dvh;
    overscroll-behavior: contain;
  }
  dialog.modal .modal-inner {
    max-height: 92dvh;
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
  }
  @media (prefers-reduced-motion: no-preference) {
    dialog.modal[open] { animation: sheet-in 0.4s var(--ease); }
  }
  .modal-head {
    padding-top: 28px;
  }
  .modal-head::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 50%;
    width: 40px;
    height: 4px;
    margin-left: -20px;
    border-radius: 4px;
    background: var(--line-strong);
  }
  .modal-close {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  dialog.modal .form-row {
    gap: 18px;
  }
  dialog.modal button[type="submit"] {
    width: 100%;
  }
}

@keyframes sheet-in {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: none; opacity: 1; }
}

/* ---------- Prose (Articles & Legal) ---------- */
.prose {
  font-size: 1.08rem;
  line-height: 1.75;
}

article.section .prose > p:first-child {
  font-size: 1.2rem;
  line-height: 1.65;
  color: var(--navy);
}

.prose h2 {
  font-size: 1.55rem;
  margin-top: 2.2em;
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.prose h3 {
  font-size: 1.2rem;
  margin-top: 1.6em;
}

.prose p, .prose li {
  color: var(--charcoal);
}

.prose ul, .prose ol {
  padding-left: 1.4em;
}

.prose ul li::marker {
  color: var(--blue);
}

.prose ol li::marker {
  color: var(--blue);
  font-family: var(--font-head);
  font-weight: 700;
}

.prose li + li {
  margin-top: 0.45em;
}

.prose .note {
  margin: 2em 0 1em;
}

.article-meta {
  color: var(--muted);
  font-size: 0.95rem;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}

.article-card .meta {
  font-size: 0.85rem;
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 10px;
}

.article-cta {
  margin-top: 48px;
  background: radial-gradient(ellipse 60% 80% at 100% 0%, rgba(49, 111, 163, 0.14), transparent 70%), var(--mist-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}

.article-cta h2 {
  margin-top: 0;
  font-size: 1.35rem;
}

.legal-updated {
  color: var(--muted);
}

/* ---------- Contact Page (Elevated SaaS/Agency Styling) ---------- */

.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

@media (max-width: 1040px) {
  .contact-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.contact-action-card {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 18px -2px rgba(10, 37, 64, 0.05);
  position: relative;
  transition: transform 0.3s var(--ease),
              box-shadow 0.3s var(--ease),
              border-color 0.3s var(--ease);
}

.contact-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 12px;
}

.contact-card-header .icon-badge {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--mist) 0%, var(--blue-tint) 100%);
  color: var(--blue);
  border: 1px solid rgba(49, 111, 163, 0.16);
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}

.contact-action-card:hover .contact-card-header .icon-badge {
  background: var(--blue);
  color: #FFFFFF;
  transform: scale(1.06);
}

.contact-card-pill {
  font-family: var(--font-head);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--blue-dark);
  background: var(--blue-tint);
  border: 1px solid rgba(49, 111, 163, 0.18);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  white-space: nowrap;
}

.contact-action-card h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 10px;
  line-height: 1.25;
}

.contact-action-card p.muted {
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--charcoal);
  margin-bottom: 0;
}

.contact-action-card .card-foot {
  margin-top: auto;
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-action-card .card-foot .btn {
  width: 100%;
  justify-content: center;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 12px 18px;
  text-align: center;
}

.contact-action-card .card-foot .microcopy {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.45;
}

/* Contact Form & Sidebar Section */
.contact-section {
  padding-top: clamp(32px, 4vw, 56px);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

@media (max-width: 980px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.contact-form-card {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 3.5vw, 44px);
  box-shadow: 0 6px 26px -4px rgba(10, 37, 64, 0.07);
}

.form-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 26px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-subtle);
  flex-wrap: wrap;
}

.form-card-head h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}

.form-availability-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #027A48;
  background: #ECFDF3;
  border: 1px solid #A6F4C5;
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  box-shadow: 0 1px 2px rgba(2, 122, 72, 0.06);
}

.status-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #12B76A;
  box-shadow: 0 0 0 0 rgba(18, 183, 106, 0.7);
  animation: pulse-green 2.2s infinite ease-in-out;
}

@keyframes pulse-green {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(18, 183, 106, 0.6); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(18, 183, 106, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(18, 183, 106, 0); }
}

.form-actions {
  margin-top: 10px;
}

.btn-submit {
  padding: 14px 30px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 16px rgba(49, 111, 163, 0.28);
  transition: transform 0.2s var(--ease),
              box-shadow 0.2s var(--ease),
              background 0.2s var(--ease);
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(49, 111, 163, 0.38);
}

.btn-submit:active {
  transform: scale(0.98);
}

@media (max-width: 600px) {
  .btn-submit {
    width: 100%;
    justify-content: center;
  }
}

/* Contact Sidebar & Direct Channels Card */
.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-info-card {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: 0 4px 20px -2px rgba(10, 37, 64, 0.05);
}

.contact-info-head {
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-subtle);
}

.contact-info-head h3 {
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 4px;
  letter-spacing: -0.015em;
}

.contact-info-head p {
  font-size: 0.9rem;
  color: var(--muted);
}

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

.contact-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin: 0;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.contact-list li:hover {
  background: var(--mist-2);
  border-color: var(--line-subtle);
}

.contact-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--blue-tint);
  color: var(--blue);
  border: 1px solid rgba(49, 111, 163, 0.14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}

.contact-list li:hover .contact-icon-box {
  background: var(--blue);
  color: #FFFFFF;
  transform: scale(1.05);
}

.contact-icon-box svg {
  width: 20px;
  height: 20px;
}

.contact-list .label {
  display: block;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--navy);
  margin-bottom: 2px;
}

.contact-channel-link {
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.contact-channel-link:hover {
  color: var(--navy);
  text-decoration: underline;
}

.contact-value-text {
  font-size: 0.94rem;
  color: var(--charcoal);
}

.portal-chip-wrap {
  margin-top: 3px;
}

.portal-badge-link {
  font-weight: 700;
  color: var(--blue-dark);
  text-decoration: none;
}

.portal-badge-link:hover {
  text-decoration: underline;
  color: var(--navy);
}

.contact-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 6px;
}

.contact-social-links a {
  display: inline-flex;
  align-items: center;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--blue-dark);
  text-decoration: none;
  background: var(--blue-tint);
  border: 1px solid rgba(49, 111, 163, 0.15);
  border-radius: var(--radius-pill);
  padding: 3px 11px;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.contact-social-links a:hover {
  background: var(--blue);
  color: #FFFFFF;
  border-color: var(--blue);
}

/* Business Note Callout */
.contact-business-note {
  background: linear-gradient(145deg, #F8FAFD 0%, #EEF4FA 100%);
  border: 1px solid #CFDEEC;
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow-xs);
}

.contact-business-note p {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--charcoal);
}

/* ---------- Footer ---------- */
.site-footer {
  background:
    radial-gradient(ellipse 60% 80% at 95% 10%, rgba(49, 111, 163, 0.24), transparent 70%),
    var(--midnight);
  color: #D5E0EC;
  padding: 76px 0 32px;
  font-size: 0.95rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer a:not(.btn) {
  color: #FFFFFF;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.site-footer a:not(.btn):hover {
  text-decoration: underline;
  color: var(--blue-soft);
}

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

.footer-brand img {
  width: 240px;
  height: auto;
  margin-bottom: 20px;
}

.footer-brand p {
  color: #D5E0EC;
  max-width: 380px;
  line-height: 1.6;
}

.site-footer h2 {
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: #FFFFFF;
  margin-bottom: 16px;
  font-weight: 600;
  text-transform: uppercase;
}

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

.footer-list li + li {
  margin-top: 12px;
}

.footer-list a:not(.btn) {
  color: #C3D1E0;
}

.footer-list a:not(.btn):hover {
  color: #FFFFFF;
}

.footer-cta {
  margin-top: 24px;
}

.footer-cta .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  /* Larger label; it may wrap to two balanced lines in the narrow footer column */
  white-space: normal;
  text-wrap: balance;
  text-align: left;
  max-width: 100%;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.08rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-pill);
  background: #FFFFFF;
  color: var(--navy);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 4px 16px -2px rgba(7, 23, 49, 0.4),
              inset 0 1px 0 rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: all 0.25s var(--ease);
}

.footer-cta .btn:hover {
  background: #F4F8FC;
  color: var(--blue-dark);
  border-color: #FFFFFF;
  box-shadow: 0 8px 24px -4px rgba(7, 23, 49, 0.5),
              0 0 0 3px rgba(49, 111, 163, 0.35);
  transform: translateY(-2px);
  text-decoration: none !important;
}

.footer-cta .btn svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  stroke-width: 2;
  transition: transform 0.25s var(--ease);
}

.footer-cta .btn:hover svg {
  transform: translateX(4px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  margin-top: 56px;
  padding-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  font-size: 0.88rem;
  color: #B2C4D8;
}

.footer-bottom ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-bottom li + li {
  margin-top: 0;
}

@media (max-width: 960px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .footer-contact {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .site-footer {
    padding: 52px 0 32px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 18px;
  }

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

  .footer-explore {
    grid-column: 1 / 2;
  }

  .footer-company {
    grid-column: 2 / 3;
  }

  .footer-contact {
    grid-column: 1 / -1;
  }

  .footer-brand img {
    width: 210px;
    max-width: 80%;
    margin-bottom: 14px;
  }

  .footer-brand p {
    font-size: 0.92rem;
    line-height: 1.55;
    max-width: 100%;
  }

  .footer-cta {
    margin-top: 20px;
    width: 100%;
  }

  .footer-cta .btn {
    display: inline-flex;
    width: auto;
    max-width: 100%;
    justify-content: center;
    font-size: 1rem;
    padding: 0.8rem 1.3rem;
    gap: 0.5em;
    box-sizing: border-box;
  }

  .footer-cta .btn svg {
    width: 15px;
    height: 15px;
  }

  .site-footer h2 {
    font-size: 0.86rem;
    margin-bottom: 12px;
    letter-spacing: 0.05em;
  }

  .footer-list li + li {
    margin-top: 9px;
  }

  .footer-list a:not(.btn) {
    display: inline-block;
    padding: 3px 0;
    font-size: 0.91rem;
    line-height: 1.4;
    word-break: break-word;
  }

  .social {
    gap: 8px;
    margin-top: 14px;
  }

  .social a {
    padding: 7px 13px;
    font-size: 0.84rem;
  }

  .footer-bottom {
    margin-top: 36px;
    padding-top: 22px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding-right: 64px; /* Clearance so floating .to-top button never covers legal links */
    font-size: 0.84rem;
  }

  .footer-bottom ul {
    gap: 12px 18px;
  }

  .footer-bottom a {
    display: inline-block;
    padding: 4px 0;
  }
}

.social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.social a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: 0.88rem;
  color: #FFFFFF;
  text-decoration: none;
  transition: background-color 0.2s var(--ease),
              border-color 0.2s var(--ease),
              transform 0.2s var(--ease);
}

.social a:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  text-decoration: none !important;
}

.social svg {
  width: 15px;
  height: 15px;
}

/* Utilities */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-lg { margin-top: 48px; }
.mt-md { margin-top: 24px; }
.mb-lg { margin-bottom: 48px; }
.center { text-align: center; }
.stack > * + * { margin-top: 16px; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 48px 0; }
.small { font-size: 0.9rem; }

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.pill-list li {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--blue-dark);
  background: var(--blue-tint);
  border: 1px solid rgba(49, 111, 163, 0.12);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

.anchor-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.anchor-nav a {
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-head);
  text-decoration: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  padding: 7px 16px;
  background: #FFFFFF;
  color: var(--navy);
  box-shadow: var(--shadow-xs);
  transition: border-color 0.2s var(--ease),
              color 0.2s var(--ease),
              background-color 0.2s var(--ease),
              transform 0.2s var(--ease);
}

.anchor-nav a:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--mist-2);
  transform: translateY(-1px);
}

/* Scroll Reveal */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
    transition-delay: calc(var(--i, 0) * 70ms);
  }
  .js .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
  .js .hero-copy > * {
    animation: hero-in 0.8s var(--ease) both;
  }
  .js .hero-copy > :nth-child(2) { animation-delay: 0.06s; }
  .js .hero-copy > :nth-child(3) { animation-delay: 0.12s; }
  .js .hero-copy > :nth-child(n+4) { animation-delay: 0.18s; }
  .js .hero-visual { animation: hero-in 1s 0.15s var(--ease) both; }
}

@keyframes hero-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Impact Assessment Tool ---------- */
.tool-wrap {
  max-width: 920px;
}

.tool-progress {
  list-style: none;
  margin: 0 0 28px;
  padding: 6px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 10px rgba(10, 37, 64, 0.05);
}

.tool-progress li {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  line-height: 1.2;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  background: transparent;
  transition: all 0.25s var(--ease);
  position: relative;
}

.tool-progress .num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.82rem;
  background: var(--mist);
  color: var(--navy);
  flex: none;
  transition: all 0.25s var(--ease);
}

.tool-progress .ico-check {
  width: 14px;
  height: 14px;
}

.tool-progress .is-current {
  background: var(--blue-tint);
  color: var(--navy);
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(2, 116, 190, 0.12);
}

.tool-progress .is-current .num {
  background: var(--blue);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(2, 116, 190, 0.4);
}

.tool-progress .is-done {
  color: var(--navy);
  font-weight: 600;
}

.tool-progress .is-done .num {
  background: #10B981;
  color: #FFFFFF;
}

.tool-progress .opt {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--mist-2);
  color: var(--muted);
  padding: 1px 6px;
  border-radius: var(--radius-pill);
  margin-left: 4px;
}

@media (max-width: 900px) {
  .tool-progress {
    border-radius: var(--radius);
    padding: 8px;
  }
  .tool-progress .opt {
    display: none;
  }
}

@media (max-width: 760px) {
  .tool-progress {
    grid-template-columns: repeat(6, 1fr);
    border-radius: var(--radius-pill);
    gap: 4px;
    padding: 4px;
  }
  .tool-progress .lbl {
    display: none;
  }
  .tool-progress li {
    justify-content: center;
    padding: 6px 2px;
  }
  .tool-progress .num {
    width: 30px;
    height: 30px;
  }
}

.tool-card {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px -5px rgba(10, 37, 64, 0.08), 0 2px 6px rgba(10, 37, 64, 0.03);
  padding: clamp(24px, 4vw, 44px);
  display: grid;
  gap: 24px;
  transition: box-shadow 0.3s var(--ease);
}

.tool-card > * {
  margin: 0;
}

.step-title {
  font-size: clamp(1.5rem, 1.3rem + 1vw, 1.85rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0 0 4px;
}

.step-title:focus {
  outline: none;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 18px 0 22px;
}

.quick-grid .field {
  background: #F8FAFC;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 16px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}

.quick-grid .field:hover {
  border-color: #CBD5E1;
  background: #FFFFFF;
}

.quick-grid .field:focus-within {
  background: #FFFFFF;
  border-color: var(--blue);
  box-shadow: 0 4px 16px rgba(2, 116, 190, 0.12);
}

.quick-grid .field label {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
  margin-bottom: 12px;
}

.quick-grid .field input {
  background: #FFFFFF;
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--navy);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.quick-grid .field input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(2, 116, 190, 0.18);
}

.quick-grid .field .hint {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 8px;
  margin-bottom: 0;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: 10px 12px;
  margin-top: 10px;
}

.tool-card fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}

.tool-card legend {
  padding: 0;
  margin-bottom: 6px;
  font-weight: 700;
  color: var(--navy);
  font-size: 1rem;
}

.tool-advanced {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0 18px;
  background: #FAFCFE;
  transition: border-color 0.2s var(--ease);
}

.tool-advanced summary {
  cursor: pointer;
  padding: 14px 0;
  font-weight: 600;
  color: var(--navy);
  user-select: none;
}

.tool-advanced[open] {
  padding-bottom: 18px;
  background: #FFFFFF;
}

.area {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: grid;
  gap: 14px;
}

.area h3 {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 4px;
}

.area > .btn {
  justify-self: start;
}

.task {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #FFFFFF;
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.task:hover {
  border-color: #CBD5E1;
}

.task.is-on {
  border-color: var(--blue);
  box-shadow: 0 4px 18px -2px rgba(2, 116, 190, 0.1);
}

.task .task-head {
  padding: 14px 18px;
  background: #FAFCFE;
  border: 0;
  border-radius: 0;
}

.task.is-on .task-head {
  background: var(--blue-tint);
  border-bottom: 1px solid var(--blue-tint-subtle);
}

.task-body {
  padding: 20px 22px;
  display: grid;
  gap: 16px;
  background: #FFFFFF;
  margin: 0;
}

.task-total {
  display: inline-flex;
  align-items: center;
  background: var(--blue-tint);
  border: 1px solid var(--blue-tint-subtle);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--blue);
  margin: 6px 0 0;
  align-self: flex-start;
}

.task-body > .btn {
  justify-self: start;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
  margin: 22px 0;
}

.stat {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  border-radius: var(--radius-sm);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(10, 37, 64, 0.04);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.stat:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px -4px rgba(10, 37, 64, 0.09);
}

.stat-value {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2.2rem;
  color: var(--navy);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.stat-label {
  font-weight: 700;
  color: var(--charcoal);
  font-size: 0.92rem;
  text-transform: capitalize;
}

.stat-sub {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
}

.callout-info {
  background: #FFFFFF;
  border: 1px solid #D6E6F5;
  border-left: 4px solid var(--blue);
  border-radius: var(--radius-sm);
  padding: 22px 26px;
  box-shadow: 0 4px 16px rgba(10, 37, 64, 0.05);
  margin: 22px 0;
}

.quick-est-empty {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--charcoal);
}

.quick-est-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue-tint);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.quick-est-icon svg {
  width: 22px;
  height: 22px;
}

.quick-est-title {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 3px;
}

.quick-est-sub {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}

.quick-est-active {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.quick-est-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.quick-est-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--blue-dark);
  background: var(--blue-tint);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  display: inline-block;
  box-shadow: 0 0 0 2px rgba(2, 116, 190, 0.25);
}

.quick-est-notice {
  font-size: 0.8rem;
  color: var(--muted);
}

.quick-est-figures {
  display: flex;
  align-items: baseline;
  gap: 36px;
  flex-wrap: wrap;
  padding: 6px 0;
}

.quick-figure-main, .quick-figure-sub {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.quick-figure-val {
  font-family: var(--font-head);
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  letter-spacing: -0.02em;
}

.quick-figure-lbl {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.quick-est-foot {
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.bar-chart {
  list-style: none;
  padding: 0;
  margin: 18px 0 26px;
  display: grid;
  gap: 14px;
}

.bar-chart li {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr) auto;
  gap: 16px;
  align-items: center;
  font-size: 0.92rem;
  padding: 6px 0;
}

.bar-track {
  background: var(--mist-2);
  border-radius: var(--radius-pill);
  height: 12px;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
}

.bar {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--blue) 0%, #38BDF8 100%);
  border-radius: var(--radius-pill);
  transition: width 0.6s var(--ease);
}

.bar-value {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--navy);
  font-size: 0.95rem;
  white-space: nowrap;
}

@media (max-width: 560px) {
  .bar-chart li {
    grid-template-columns: 1fr auto;
  }
  .bar-track {
    grid-column: 1 / -1;
    order: 3;
  }
}

.flag {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--warning);
  background: var(--warning-bg);
  border-radius: 4px;
  padding: 1px 6px;
  margin-top: 4px;
}

.tool-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.tool-nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
  flex-wrap: wrap;
}

.btn-link {
  background: none;
  border: 0;
  padding: 4px 2px;
  color: var(--blue);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.btn-link:hover {
  color: var(--navy);
}

.tool-save {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 14px;
}

.tool-save .btn-link {
  color: var(--muted);
  font-size: 0.85rem;
}

.tool-save .btn-link:hover {
  color: var(--navy);
}

.tool-done {
  display: grid;
  gap: 18px;
  text-align: center;
  padding: 20px 10px;
  justify-items: center;
}

.tool-done > * {
  margin: 0;
}

.tool-done .icon-badge {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #DCFCE7;
  color: #15803D;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tool-done .icon-badge svg {
  width: 32px;
  height: 32px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px 18px;
  align-items: end;
}

.quick-grid .field {
  justify-content: flex-end;
}

.cta-stack.cta-center {
  align-items: center;
  text-align: center;
}

.check-grid .check {
  align-items: center;
}

.check-grid .check input {
  margin-top: 0;
}

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

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

@media (max-width: 680px) {
  .grid-5 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 420px) {
  .grid-5 { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .hero-visual { display: none; }
}

.pricing-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

@media (max-width: 1100px) {
  .pricing-4:not([data-slider-track]) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
}

@media (max-width: 680px) {
  .pricing-4:not([data-slider-track]) { grid-template-columns: 1fr; gap: 32px; }
}

/* Package Details Items */
.price-card.pkg-detail-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: var(--radius-lg);
  padding: 34px 28px 28px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  box-shadow: 0 4px 20px -2px rgba(10, 37, 64, 0.06), 0 2px 6px -1px rgba(10, 37, 64, 0.03);
  position: relative;
  transition: transform 0.35s var(--ease),
              box-shadow 0.35s var(--ease),
              border-color 0.35s var(--ease);
}

.price-card.pkg-detail-card .popular-badge-wrap {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  white-space: nowrap;
}

.price-card.pkg-detail-card .popular-badge-wrap .badge-popular {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #0284C7 0%, #2563EB 100%);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.25);
  margin-bottom: 0;
}

.price-card.featured.pkg-detail-card {
  background: radial-gradient(ellipse 90% 70% at 100% 0%, rgba(49, 111, 163, 0.4), transparent 70%),
              linear-gradient(165deg, #0B243E 0%, #061626 100%);
  border: 2px solid #2980B9;
  box-shadow: 0 16px 36px -4px rgba(10, 37, 64, 0.28), 0 0 0 1px rgba(49, 111, 163, 0.3);
  color: #F8FAFC;
}

.price-card.featured.pkg-detail-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 24px 44px -4px rgba(10, 37, 64, 0.38), 0 0 0 1px rgba(56, 189, 248, 0.5);
}

.pkg-detail-card .card-head {
  display: flex;
  flex-direction: column;
}

.pkg-detail-card .pkg {
  font-family: var(--font-head);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 4px;
}

.price-card.featured.pkg-detail-card .pkg {
  color: #FFFFFF;
}

.pkg-detail-card .hours {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  margin: 0 0 16px;
}

.price-card.featured.pkg-detail-card .hours {
  color: #BAE6FD;
}

.pkg-detail-card .price-wrap {
  margin: 0 0 14px;
}

.pkg-detail-card .price {
  font-family: var(--font-head);
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--navy);
  line-height: 1.1;
  margin: 0;
}

.price-card.featured.pkg-detail-card .price {
  color: #FFFFFF;
}

.pkg-detail-card .card-intro {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--charcoal);
  margin: 0;
  min-height: 48px;
}

.price-card.featured.pkg-detail-card .card-intro {
  color: #E2E8F0;
}

.pkg-detail-card .card-divider {
  height: 1px;
  background: var(--line);
  margin: 18px 0 20px;
}

.price-card.featured.pkg-detail-card .card-divider {
  background: rgba(255, 255, 255, 0.16);
}

.pkg-detail-card .card-body {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

.pkg-detail-card .checklist {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
}

.pkg-detail-card .checklist li {
  margin-bottom: 12px;
  color: var(--charcoal);
}

.price-card.featured.pkg-detail-card .checklist li {
  color: #F8FAFC;
}

.price-card.featured.pkg-detail-card .checklist li::before {
  background-color: rgba(14, 165, 233, 0.22);
  border: 1px solid rgba(56, 189, 248, 0.4);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2338BDF8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

.pkg-detail-card .card-foot {
  margin-top: auto;
  padding-top: 24px;
}

.price-card.featured.pkg-detail-card .btn-primary {
  background: linear-gradient(135deg, #0284C7 0%, #2563EB 100%);
  border-color: #0284C7;
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

.price-card.featured.pkg-detail-card .btn-primary:hover {
  background: linear-gradient(135deg, #0369A1 0%, #1D4ED8 100%);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.55);
}

.two-ways {
  margin-bottom: 8px;
}

.card-span-2 {
  grid-column: span 2;
}

@media (max-width: 1000px) {
  .card-span-2 { grid-column: auto; }
}

@media (max-width: 700px) {
  .table-stack thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .table-stack,
  .table-stack tbody,
  .table-stack tr,
  .table-stack th,
  .table-stack td {
    display: block;
    width: 100%;
  }
  .table-stack tr {
    border-bottom: 1px solid var(--line);
    padding: 8px 0;
  }
  .table-stack th[scope="row"] {
    background: var(--mist);
    font-size: 1.05rem;
  }
  .table-stack td {
    border: 0;
    padding: 6px 14px;
  }
  .table-stack td::before {
    content: attr(data-label);
    display: block;
    font-weight: 600;
    color: var(--navy);
    font-size: 0.85rem;
  }
}

/* ==========================================================================
   Marketing Package Sliders (Mobile App Pagination Slider Navigation)
   ========================================================================== */

.pkg-slider-controls-top,
.pkg-slider-controls-bottom {
  display: none;
}

@media (max-width: 820px) {
  /* 1. Header Segmented Tabs */
  .pkg-slider-controls-top {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 22px;
    width: 100%;
  }

  .pkg-slider-tabs {
    display: inline-flex;
    background: #E8EEF5;
    padding: 5px;
    border-radius: var(--radius-pill);
    gap: 4px;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    border: 1px solid rgba(17, 59, 93, 0.1);
    box-shadow: inset 0 1px 3px rgba(10, 37, 64, 0.08);
  }
  .pkg-slider-tabs::-webkit-scrollbar {
    display: none;
  }

  .pkg-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    font-family: var(--font-head);
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--navy);
    background: transparent;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.22s var(--ease);
    -webkit-tap-highlight-color: transparent;
  }

  .pkg-tab:hover {
    color: var(--blue-dark);
  }

  .pkg-tab.is-active {
    background: #FFFFFF;
    color: var(--navy);
    box-shadow: 0 2px 8px rgba(10, 37, 64, 0.14);
    font-weight: 700;
  }

  .pkg-tab .tab-badge {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 2px 6px;
    border-radius: var(--radius-pill);
    background: #E0F2FE;
    color: #0369A1;
    transition: all 0.2s var(--ease);
  }

  .pkg-tab.is-active .tab-badge {
    background: #0369A1;
    color: #FFFFFF;
  }

  @media (max-width: 420px) {
    .pkg-slider-tabs {
      padding: 3px;
      gap: 2px;
    }
    .pkg-tab {
      padding: 6px 9px;
      font-size: 0.78rem;
      gap: 4px;
    }
    .pkg-tab .tab-badge {
      font-size: 0.6rem;
      padding: 1px 4px;
    }
  }

  /* 2. Package Summary Slider Track */

  /* 3. Package Details Slider Track */
  .pricing-4[data-slider-track="details"] {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    scroll-behavior: smooth !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 16px !important;
    padding: 16px 18px 24px !important;
    margin: 0 -18px !important;
    scrollbar-width: none !important;
    width: auto !important;
  }
  .pricing-4[data-slider-track="details"]::-webkit-scrollbar {
    display: none !important;
  }

  .pricing-4[data-slider-track="details"] .price-card {
    display: flex !important;
    flex-direction: column !important;
    flex: 0 0 calc(100vw - 64px) !important;
    width: calc(100vw - 64px) !important;
    max-width: 420px !important;
    min-width: 280px !important;
    scroll-snap-align: center !important;
    scroll-snap-stop: always !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    height: auto !important;
    flex-shrink: 0 !important;
  }

  /* 4. Bottom Pagination & Arrow Controls */
  .pkg-slider-controls-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 14px;
    width: 100%;
  }

  .pkg-nav-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 1px solid var(--line);
    box-shadow: 0 2px 8px rgba(10, 37, 64, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--navy);
    cursor: pointer;
    transition: all 0.2s var(--ease);
    padding: 0;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
  }

  .pkg-nav-btn:hover:not(:disabled) {
    background: var(--blue-tint);
    border-color: var(--blue);
    color: var(--blue-dark);
    transform: scale(1.06);
  }

  .pkg-nav-btn:active:not(:disabled) {
    transform: scale(0.96);
  }

  .pkg-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    box-shadow: none;
    border-color: var(--line-subtle);
  }

  .pkg-nav-btn svg {
    width: 18px;
    height: 18px;
  }

  .pkg-dots {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .pkg-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #CBD5E1;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.25s var(--ease);
    -webkit-tap-highlight-color: transparent;
  }

  .pkg-dot:hover:not(.is-active) {
    background: #94A3B8;
  }

  .pkg-dot.is-active {
    width: 24px;
    border-radius: var(--radius-pill);
    background: var(--blue);
    box-shadow: 0 2px 6px rgba(49, 111, 163, 0.4);
  }

  .pkg-counter {
    font-family: var(--font-head);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
    min-width: 34px;
    text-align: center;
  }

  .pkg-current-num {
    color: var(--navy);
    font-weight: 700;
  }
}

.cta-band.pattern-dark::before,
.bg-navy.pattern-dark::before {
  opacity: 0.3;
  -webkit-mask-image: radial-gradient(ellipse 45% 60% at 50% 50%, transparent 30%, #000 100%);
  mask-image: radial-gradient(ellipse 45% 60% at 50% 50%, transparent 30%, #000 100%);
}

.bento-navy.pattern-dark::before {
  opacity: 0.35;
  -webkit-mask-image: linear-gradient(200deg, #000, transparent 70%);
  mask-image: linear-gradient(200deg, #000, transparent 70%);
}

.card .btn,
.contact-cards .btn {
  white-space: normal;
}

/* Feature Matrix */
.steps-line[style*="--cols:3"] > li:nth-child(3n)::after,
.steps-line[style*="--cols:4"] > li:nth-child(4n)::after {
  display: none;
}

.steps-line[style*="--cols:4"] > li:not(:last-child)::after {
  right: -24px;
}

.steps-line {
  row-gap: 48px;
}

@media (max-width: 900px) {
  .steps-line > li:nth-child(n)::after { display: block; }
  .steps-line > li:last-child::after { display: none; }
}

.feature-matrix {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  --fm-cols: 4;
}

.feature-matrix-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.feature-matrix > li {
  margin: 0;
  position: relative;
  padding: clamp(24px, 2.4vw, 32px);
  box-shadow: 1px 0 0 var(--line), 0 1px 0 var(--line);
  transition: background-color 0.35s var(--ease);
}

.feature-matrix > li:hover {
  background: var(--mist-2);
}

.feature-matrix > li::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 3px;
  width: 0;
  background: var(--blue);
  transition: width 0.45s var(--ease);
}

.feature-matrix > li:hover::after {
  width: 100%;
}

.feature-matrix .icon-badge {
  margin-bottom: 18px;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
}

.feature-matrix > li:hover .icon-badge {
  background: var(--blue);
  color: #FFFFFF;
}

.feature-matrix h3 {
  font-size: 1.08rem;
  margin-bottom: 6px;
}

.feature-matrix p {
  margin: 0;
  font-size: 0.95rem;
}

.feature-matrix-compact > li {
  padding: 22px 20px;
}

.feature-matrix-compact .icon-badge {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  margin-bottom: 14px;
}

.feature-matrix-compact .icon-badge svg {
  width: 20px;
  height: 20px;
}

.feature-matrix-compact h3 {
  font-size: 0.98rem;
}

.feature-matrix-compact p {
  font-size: 0.9rem;
}

@media (max-width: 1100px) {
  .feature-matrix, .feature-matrix-5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .feature-matrix, .feature-matrix-5 {
    grid-template-columns: 1fr;
  }
}

/* Solutions Panel */
.solution {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  scroll-margin-top: calc(var(--header-h) + 24px);
  transition: box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.solution:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--line-strong);
}

.solution-lead {
  position: relative;
  padding: clamp(26px, 3vw, 40px);
  background: linear-gradient(160deg, var(--mist-2) 0%, var(--blue-tint) 100%);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.solution-lead .icon-badge {
  background: #FFFFFF;
}

.solution-lead h2 {
  font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.7rem);
  margin-bottom: 14px;
}

.solution-problem {
  color: var(--muted);
  margin-bottom: 20px;
}

.solution-problem strong {
  color: var(--navy);
}

.solution-relief {
  margin: auto 0 0;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 16px 18px;
  background: #FFFFFF;
  border-radius: var(--radius-sm);
  border: 1px solid #CFDDEB;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.45;
  font-size: 1rem;
}

.solution-relief svg {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--blue);
  margin-top: 1px;
}

.solution-body {
  padding: clamp(26px, 3vw, 40px);
  display: flex;
  flex-direction: column;
}

.solution-label {
  margin-bottom: 14px;
}

.solution-related {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.solution-related .pill-list {
  margin-top: 8px;
}

@media (max-width: 860px) {
  .solution {
    grid-template-columns: 1fr;
  }
  .solution-lead {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .solution-relief {
    margin-top: 4px;
  }
}

/* Reading Progress Bar */
.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 101;
  pointer-events: none;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--blue), var(--navy));
  display: none;
}

@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .read-progress {
      display: block;
      animation: read-progress linear both;
      animation-timeline: scroll(root);
    }
  }
}

@keyframes read-progress {
  to { transform: scaleX(1); }
}

/* Back to Top */
.to-top {
  position: fixed;
  right: clamp(16px, 2.5vw, 32px);
  bottom: clamp(16px, 2.5vw, 32px);
  z-index: 90;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  color: var(--navy);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s var(--ease),
              transform 0.3s var(--ease),
              visibility 0.3s,
              background-color 0.2s var(--ease),
              color 0.2s var(--ease);
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover {
  background: var(--navy);
  color: #FFFFFF;
  border-color: var(--navy);
  transform: translateY(-2px);
}

.to-top svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 600px) {
  .to-top {
    width: 42px;
    height: 42px;
    right: 14px;
    bottom: 14px;
  }
  .to-top svg {
    width: 17px;
    height: 17px;
  }
}

@media print {
  .to-top, .read-progress { display: none !important; }
}

/* Fixed-Scope Matrix 3-Col */
.feature-matrix-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-matrix > li.fm-feature {
  grid-column: span 2;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 24px;
  background: linear-gradient(145deg, var(--navy), #0B2A45);
  color: #E6EDF5;
}

.feature-matrix > li.fm-feature:hover {
  background: linear-gradient(145deg, var(--navy), #0B2A45);
}

.feature-matrix > li.fm-feature::after {
  display: none;
}

.fm-feature .icon-badge {
  margin: 0;
}

.feature-matrix > li.fm-feature:hover .icon-badge {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
}

.fm-feature h3 {
  color: #FFFFFF;
}

.fm-feature p {
  color: #D5E0EC;
}

@media (max-width: 1100px) {
  .feature-matrix-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .feature-matrix > li.fm-feature {
    grid-column: auto;
    grid-template-columns: 1fr;
    align-items: start;
  }
  .fm-feature .icon-badge {
    margin-bottom: 10px;
  }
}

@media (max-width: 560px) {
  .feature-matrix-3 {
    grid-template-columns: 1fr;
  }
  .feature-matrix > li.fm-feature {
    display: block;
  }
  .fm-feature .fm-cta {
    margin-top: 16px;
  }
}

/* Full-Width CTA Strip */
/* Dark call-to-action card that sits in a card grid (Services: Build what you need) */
.cta-card {
  background: linear-gradient(145deg, var(--navy), #0B2A45);
  border-color: var(--navy);
  box-shadow: var(--shadow-lg);
  color: #FFFFFF;
}

.cta-card h3 {
  color: #FFFFFF;
}

.cta-card p {
  color: #D5E0EC;
}

.cta-card .card-foot .btn {
  align-self: flex-start;
}

@media (hover: hover) {
  .cta-card:hover {
    transform: translateY(-4px);
    border-color: var(--blue);
    box-shadow: 0 0 0 1px rgb(156 195 230 / 0.3),
                0 22px 44px -16px rgb(7 23 49 / 0.6);
  }

  .cta-card:hover .icon-badge {
    background: var(--blue-soft);
    color: var(--midnight);
  }
}

/* Insights Featured Grid */
.insights-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 24px;
}

.insights-grid > :first-child {
  grid-row: span 2;
  justify-content: flex-end;
  min-height: 360px;
  background: radial-gradient(ellipse 70% 60% at 100% 0%, rgba(49, 111, 163, 0.16), transparent 70%),
              linear-gradient(160deg, #FFFFFF, var(--blue-tint));
  isolation: isolate;
  overflow: hidden;
}

.insights-grid > :first-child::before {
  content: "";
  position: absolute;
  inset: 0 0 45% 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.7;
  background: url("../img/pattern-nodes.svg") right -40px top -80px / 460px auto no-repeat;
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
}

.insights-grid > :first-child h2 {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem) !important;
}

.insights-grid > :first-child .meta {
  margin-top: auto;
}

.insights-grid > :first-child .card-foot {
  margin-top: 0;
}

@media (max-width: 800px) {
  .insights-grid {
    grid-template-columns: 1fr;
  }
  .insights-grid > :first-child {
    grid-row: auto;
    min-height: 0;
  }
}

/* Tabular Numerals in Data Displays */
.price, .rate, .stat-value, table.data td, .price-card dd, .task-total, .bar-value,
.field input[type="number"], .field input[inputmode="decimal"], .field input[inputmode="numeric"],
.tool-card input, .price-card .hours, .stat-sub, .microcopy, .timeline .when {
  font-variant-numeric: tabular-nums;
}

/* Skeleton Loading */
.tool-skeleton {
  gap: 14px;
}

.sk {
  display: block;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--mist) 0%, #E4ECF4 50%, var(--mist) 100%);
  background-size: 200% 100%;
}

.sk-title { width: 38%; height: 28px; }
.sk-line { width: 90%; height: 14px; }
.sk-short { width: 62%; }
.sk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin: 8px 0; }
.sk-field { height: 70px; }
.sk-btn { width: 200px; height: 46px; border-radius: var(--radius-pill); justify-self: end; }

@media (prefers-reduced-motion: no-preference) {
  .sk {
    animation: sk-shimmer 1.4s ease-in-out infinite;
  }
}

@keyframes sk-shimmer {
  to { background-position: -200% 0; }
}

/* Busy Buttons */
.btn[aria-busy="true"] {
  position: relative;
  color: transparent !important;
  pointer-events: none;
  cursor: progress;
}

.btn[aria-busy="true"] svg {
  opacity: 0;
}

.btn[aria-busy="true"]::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 40%;
  max-width: 120px;
  height: 3px;
  margin: -1.5px 0 0;
  transform: translateX(-50%);
  border-radius: 3px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.25), #FFFFFF, rgba(255, 255, 255, 0.25));
  background-size: 200% 100%;
}

@media (prefers-reduced-motion: no-preference) {
  .btn[aria-busy="true"]::after {
    animation: sk-shimmer 1s linear infinite;
  }
}

.btn-light[aria-busy="true"]::after,
.btn-secondary[aria-busy="true"]::after {
  background: linear-gradient(90deg, rgba(49, 111, 163, 0.25), var(--blue), rgba(49, 111, 163, 0.25));
  background-size: 200% 100%;
}

.btn:disabled:not([aria-busy="true"]) {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Touch Comfort */
@media (hover: none) {
  .feature-matrix > li:hover .icon-badge {
    transform: none;
  }
  .feature-matrix > li:hover::after {
    width: 0;
  }
  .pricing:not(.pricing-4) .price-card.featured:hover {
    transform: translateY(-10px);
  }
}

@media (pointer: coarse) {
  .anchor-nav a, .social a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .footer-list a, .footer-bottom a, .breadcrumb a {
    display: inline-block;
    padding: 6px 0;
  }
  .footer-list li + li {
    margin-top: 4px;
  }
  .text-link {
    min-height: 44px;
  }
  .nav-toggle {
    height: 44px;
  }
  .check input {
    width: 24px;
    height: 24px;
  }
  .check {
    grid-template-columns: 26px 1fr;
  }
}

/* Service Row & Callouts */
.service-row {
  margin-bottom: clamp(56px, 7vw, 96px);
}

.service-title {
  font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.65rem);
}

.service-pair {
  gap: 24px;
}

.service-card {
  padding: clamp(26px, 3vw, 40px);
}

.service-card .checklist {
  margin-bottom: 24px;
}

.service-card-visual {
  margin-top: auto;
}

.service-card-visual .device-browser {
  box-shadow: var(--shadow-lg);
}

.callout-card {
  background: var(--mist-2);
  border-color: #DCE6F0;
}

.callout-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
}

.callout-card h3 .ico {
  color: var(--blue);
}

.callout-card p:last-child {
  margin-bottom: 0;
}

/* Autofill styling */
.field input:-webkit-autofill,
.field input:-webkit-autofill:hover,
.field input:-webkit-autofill:focus,
.field select:-webkit-autofill,
.field textarea:-webkit-autofill {
  -webkit-text-fill-color: var(--charcoal);
  caret-color: var(--charcoal);
  -webkit-box-shadow: 0 0 0 1000px #F2F7FC inset;
  box-shadow: 0 0 0 1000px #F2F7FC inset;
  transition: background-color 9999s ease-out 0s;
}

.field input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #F2F7FC inset, 0 0 0 4px rgba(49, 111, 163, 0.22);
  box-shadow: 0 0 0 1000px #F2F7FC inset, 0 0 0 4px rgba(49, 111, 163, 0.22);
}

.field input:disabled,
.field select:disabled,
.field textarea:disabled {
  background: var(--mist);
  border-color: var(--line-strong);
  color: var(--muted);
  cursor: not-allowed;
}

.field input[readonly],
.field textarea[readonly] {
  background: var(--mist-2);
}

.field input[type="number"] {
  -moz-appearance: textfield;
}

.field input[type="number"]::-webkit-inner-spin-button,
.field input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* ==================== Maxiva Giving Product Page ==================== */

/* Security Callout Card */
.callout-security {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 34px);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-start;
  gap: 20px;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.callout-security:hover {
  border-color: #CBD5E1;
  box-shadow: var(--shadow-md);
}

.callout-security .icon-badge {
  background: var(--blue-tint);
  color: var(--blue);
  border: 1px solid var(--blue-tint-subtle);
  width: 48px;
  height: 48px;
  border-radius: 12px;
  flex-shrink: 0;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.callout-security .icon-badge .ico {
  width: 24px;
  height: 24px;
}

.callout-security h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 8px;
}

.callout-security p {
  color: var(--charcoal);
  font-size: 0.94rem;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 500px) {
  .callout-security {
    flex-direction: column;
    gap: 14px;
  }
}

/* Feature Cards in Grid-4 */
.bg-mist .grid-4 .card {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 2.5vw, 28px);
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.bg-mist .grid-4 .card .icon-badge {
  margin-bottom: 16px;
}

.bg-mist .grid-4 .card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 8px;
}

.bg-mist .grid-4 .card p {
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0;
}

/* Why It Matters Split Alignment */
.split:has(#pain-title) {
  align-items: center;
  gap: clamp(36px, 6vw, 72px);
}

.split:has(#pain-title) h2 {
  margin-bottom: 16px;
}

.split:has(#pain-title) p.lead {
  margin-bottom: 16px;
}

/* Workflow Section 2-Column Cards */
.grid-2 .card.card-flat {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 36px);
  box-shadow: var(--shadow-xs);
}

.grid-2 .card.card-flat h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 16px;
}

.grid-2 .card.card-flat .checklist {
  margin-bottom: 16px;
}

.grid-2 .card.card-flat .checklist li {
  padding-left: 28px;
  margin-bottom: 10px;
  font-size: 0.93rem;
  line-height: 1.5;
}

/* Tablet Device Styling Refinement */
.device-tablet {
  max-width: 360px;
  margin: 0 auto;
  box-shadow: 0 20px 48px -10px rgba(10, 37, 64, 0.22);
}

/* ==================== How We Work: Steps Section ==================== */

.steps-journey-grid {
  list-style: none !important;
  list-style-type: none !important;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

@media (max-width: 1040px) {
  .steps-journey-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 24px;
  }
}

@media (max-width: 600px) {
  .steps-journey-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 24px;
  }
}

.steps-journey-grid > li,
.journey-card {
  list-style: none !important;
  list-style-type: none !important;
  margin: 0 !important;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  border-radius: var(--radius);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 10px rgba(10, 37, 64, 0.04);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
  position: relative;
  height: 100%;
}

.journey-card::before {
  display: none !important;
  content: none !important;
}

.journey-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  gap: 8px;
}

.journey-step-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.journey-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--blue-tint);
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}

.journey-icon-wrap svg {
  width: 18px;
  height: 18px;
}

.journey-card:hover .journey-icon-wrap {
  background: var(--blue);
  color: #FFFFFF;
  transform: scale(1.05);
}

.journey-card-num {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.journey-card-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 3px 9px;
  white-space: nowrap;
}

.journey-card h3 {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 8px;
  line-height: 1.3;
}

.journey-card p {
  font-size: 0.9rem;
  line-height: 1.52;
  margin-bottom: 0;
  color: var(--charcoal);
}

.journey-subnote {
  margin-top: 14px;
  background: #F8FAFC;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 0.82rem;
  line-height: 1.48;
  color: var(--muted);
}

.journey-subnote strong {
  color: var(--navy);
  font-weight: 600;
}

.journey-split,
.mt-xl {
  margin-top: 24px !important;
}

.journey-split {
  gap: 24px !important;
}

.journey-split .stack {
  gap: 24px !important;
}

/* Card Header with Icon Row */
.card-head-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.card-head-row .icon-badge {
  margin: 0;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.card-head-row h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 2px;
}

/* First Month Card & Timeline Polish */
.first-month-card {
  padding: clamp(24px, 3vw, 36px);
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.timeline-month {
  margin-top: 24px !important;
}

.timeline-month li {
  padding-bottom: 22px;
}

.timeline-month .when {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--blue-dark);
  background: var(--blue-tint);
  border: 1px solid var(--blue-tint-subtle);
  border-radius: var(--radius-pill);
  padding: 2px 10px;
  margin-bottom: 6px;
}

.timeline-month p {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--charcoal);
}

/* Free vs Paid Grid */
.free-paid-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 600px) {
  .free-paid-grid {
    grid-template-columns: 1fr;
  }
}

.tier-box {
  border-radius: var(--radius-sm);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.tier-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px -2px rgba(10, 37, 64, 0.06);
}

.tier-box-free {
  background: #F4FBF7;
  border: 1px solid #D1F2DD;
}

.tier-box-paid {
  background: #F4F8FD;
  border: 1px solid #D7E6F7;
}

.tier-box p {
  font-size: 0.88rem;
  line-height: 1.52;
  color: var(--charcoal);
}

.tier-pill {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
}

.tier-pill-free {
  background: #DCFCE7;
  color: #15803D;
  border: 1px solid #BBF7D0;
}

.tier-pill-paid {
  background: #E0F2FE;
  color: #0369A1;
  border: 1px solid #BAE6FD;
}

/* ==========================================================================
   About Page Custom Styling & Layout System
   ========================================================================== */

/* Story Section */
.about-story-section {
  padding-top: clamp(40px, 5vw, 64px);
  padding-bottom: clamp(40px, 5vw, 64px);
}

.story-badge-pill {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  font-family: var(--font-head);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--blue);
  background: var(--blue-tint);
  border: 1px solid var(--blue-tint-subtle);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
}

/* Story: a ripple infographic (one organization -> its team -> the many people it serves)
   beside the story told as handwritten chapters */
.story-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.story-head h2 {
  max-width: var(--measure-heading);
  margin: 0;
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  margin-top: clamp(28px, 4vw, 48px);
}

.story-visual {
  margin: 0;
}

@media (min-width: 901px) {
  .story-visual {
    position: sticky;
    top: calc(var(--header-h) + 24px);
  }
}

.story-visual figcaption {
  margin-top: 14px;
  padding-left: 14px;
  border-left: 3px solid var(--blue);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted);
}

.story-ripple {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.rp-outer {
  stroke: rgb(49 111 163 / 0.2);
  stroke-width: 1.5;
}

.rp-orbit {
  fill: none;
  stroke: rgb(49 111 163 / 0.16);
  stroke-width: 1.2;
  stroke-dasharray: 2 6;
  stroke-linecap: round;
}

.rp-mid {
  fill: var(--blue-tint);
  stroke: rgb(49 111 163 / 0.28);
  stroke-width: 1.5;
}

.rp-dot {
  fill: rgb(49 111 163 / 0.35);
}

.rp-dot.alt {
  fill: rgb(17 59 93 / 0.45);
}

.rp-spoke {
  stroke: rgb(49 111 163 / 0.45);
  stroke-width: 2;
  stroke-linecap: round;
}

.rp-reach {
  fill: none;
  stroke: var(--blue-soft);
  stroke-width: 1.6;
  stroke-dasharray: 4 5;
  stroke-linecap: round;
}

.rp-avatar {
  filter: drop-shadow(0 4px 6px rgb(17 59 93 / 0.18));
}

.rp-team .rp-av-bg {
  fill: #FFFFFF;
  stroke: var(--blue);
  stroke-width: 2;
}

.rp-team .rp-av-icon {
  fill: var(--navy);
}

.rp-out .rp-av-bg {
  fill: #FFFFFF;
  stroke: var(--blue-soft);
  stroke-width: 1.5;
}

.rp-out .rp-av-icon {
  fill: var(--blue);
}

.rp-out.alt .rp-av-bg {
  fill: var(--blue);
  stroke: #FFFFFF;
}

.rp-out.alt .rp-av-icon {
  fill: #FFFFFF;
}

.rp-core {
  fill: #FFFFFF;
  stroke: var(--navy);
  stroke-width: 5;
  filter: drop-shadow(0 12px 20px rgb(17 59 93 / 0.32));
}

.rp-core-text {
  font-family: var(--font-head);
  font-size: 12.5px;
  font-weight: 700;
  fill: var(--navy);
}

.rp-pill rect {
  fill: #FFFFFF;
  stroke: rgb(49 111 163 / 0.3);
  stroke-width: 1.2;
  filter: drop-shadow(0 3px 6px rgb(17 59 93 / 0.1));
}

.rp-pill text {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  fill: var(--navy);
}

.rp-hand {
  font-family: var(--font-hand);
  font-size: 28px;
  font-weight: 700;
  fill: var(--blue-dark);
}

.rp-arrow {
  fill: none;
  stroke: var(--blue-dark);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rp-wave {
  fill: none;
  stroke: var(--blue);
  stroke-width: 2;
  opacity: 0;
  transform-origin: 320px 300px;
}

@media (prefers-reduced-motion: no-preference) {
  .rp-wave {
    animation: rp-wave 6s cubic-bezier(0.2, 0.6, 0.3, 1) infinite;
  }

  .rp-wave:nth-child(2) {
    animation-delay: 2s;
  }

  .rp-wave:nth-child(3) {
    animation-delay: 4s;
  }

  .rp-reach {
    animation: rp-flow 1.6s linear infinite;
  }
}

@keyframes rp-flow {
  to { stroke-dashoffset: -18; }
}

@keyframes rp-wave {
  0% { transform: scale(1); opacity: 0.55; }
  100% { transform: scale(3.3); opacity: 0; }
}

/* Chapters joined by a dashed path */
.story-steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.story-steps li {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 18px;
  margin: 0;
  padding-bottom: 30px;
}

.story-steps li:last-child {
  padding-bottom: 0;
}

.story-steps li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 23px;
  top: 56px;
  bottom: 6px;
  border-left: 2px dashed var(--line-strong);
}

.story-step-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-tint);
  color: var(--blue);
  box-shadow: inset 0 0 0 1px rgb(49 111 163 / 0.15);
}

.story-step-icon .ico {
  width: 22px;
  height: 22px;
}

.story-hand {
  margin: 4px 0 6px;
  font-family: var(--font-hand);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.05;
  color: var(--blue-dark);
  transform: rotate(-1.5deg);
  transform-origin: left center;
}

.story-text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--charcoal);
}

.story-steps li:first-child .story-text {
  font-size: 1.08rem;
  color: var(--navy);
}

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

  /* When stacked, show the graphic before the chapters */
  .story-visual {
    order: -1;
    max-width: 560px;
    width: 100%;
    margin-inline: auto;
  }
}

/* Mission & Vision Section */
.mv-section {
  padding-top: clamp(48px, 6vw, 72px);
  padding-bottom: clamp(48px, 6vw, 72px);
}

.mv-grid {
  gap: 24px;
}

.mv-card {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 3.5vw, 40px);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.mv-card-mission {
  border-top: 3px solid var(--blue);
}

.mv-card-vision {
  border-top: 3px solid var(--navy);
}

.mv-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.mv-card-header .icon-badge {
  margin: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--blue-tint);
  color: var(--blue);
  border: 1px solid var(--blue-tint-subtle);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mv-card-header .icon-badge svg {
  width: 24px;
  height: 24px;
}

.mv-pill {
  font-family: var(--font-head);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--mist);
  color: var(--navy);
  border: 1px solid var(--line);
}

.mv-card .mv-label {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 12px;
}

.mv-card .mv-text {
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--charcoal);
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
}

/* Guiding Principle Section */
.principle-section {
  position: relative;
  overflow: hidden;
  padding-top: clamp(64px, 8vw, 96px);
  padding-bottom: clamp(64px, 8vw, 96px);
}

.principle-wrap {
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin: 0 auto;
}

.principle-watermark {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  font-family: Georgia, serif;
  font-size: 220px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.035);
  user-select: none;
  pointer-events: none;
  z-index: 1;
}

.principle-pill {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue-soft);
  background: rgba(49, 111, 163, 0.22);
  border: 1px solid rgba(156, 195, 230, 0.28);
  border-radius: var(--radius-pill);
  padding: 4px 14px;
  margin-bottom: 24px;
}

.principle-blockquote {
  margin: 0 auto;
  border: none;
  padding: 0;
}

.principle-blockquote .principle {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.6rem, 1.2rem + 2vw, 2.5rem);
  letter-spacing: -0.02em;
  color: #FFFFFF;
  line-height: 1.28;
  margin: 0 0 18px;
  text-wrap: balance;
}

.principle-subtext {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #D5E0EC;
  max-width: 620px;
  margin: 0 auto;
}

/* Founder Showcase Card */
.founder-section {
  padding-top: clamp(52px, 6vw, 80px);
  padding-bottom: clamp(52px, 6vw, 80px);
}

.founder-showcase-card {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: clamp(32px, 4.5vw, 56px);
  align-items: flex-start;
}

@media (max-width: 960px) {
  .founder-showcase-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
}

.founder-media-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.founder-photo-frame {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--mist);
  box-shadow: var(--shadow-xs);
}

.founder-photo-frame .ph {
  min-height: 380px;
  width: 100%;
}

.founder-meta-box {
  background: #F8FAFC;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.founder-meta-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--blue-tint);
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.founder-meta-icon svg {
  width: 20px;
  height: 20px;
}

.founder-meta-box strong {
  display: block;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
}

.founder-meta-box span {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
}

.founder-info-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.founder-eyebrow {
  display: inline-flex;
  font-family: var(--font-head);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue);
  margin-bottom: 6px;
}

.founder-header h2 {
  font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin: 0;
}

.founder-bio-prose {
  font-size: 0.97rem;
  line-height: 1.72;
  color: var(--charcoal);
}

.founder-bio-prose p {
  margin-bottom: 16px;
}

.founder-bio-prose p:last-child {
  margin-bottom: 0;
}

.founder-actions {
  margin-top: 8px;
}

.founder-linkedin-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

/* Team Section & Operating Model */
.team-section {
  padding-top: clamp(48px, 6vw, 76px);
  padding-bottom: clamp(48px, 6vw, 76px);
}

.team-model-bar {
  margin-bottom: 28px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  box-shadow: var(--shadow-xs);
}

@media (max-width: 820px) {
  .team-model-bar {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

.team-model-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.team-model-num {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--blue);
  background: var(--blue-tint);
  border: 1px solid var(--blue-tint-subtle);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.team-model-item strong {
  display: block;
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
}

.team-model-item strong + span {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
}

.team-grid {
  gap: 24px;
}

/* Team cards: the standard .card with an edge-to-edge photo and the icon badge sitting on its edge */
.team-card .team-card-photo {
  margin: calc(-1 * clamp(24px, 2.4vw, 32px)) calc(-1 * clamp(24px, 2.4vw, 32px)) 0;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.team-card .team-card-photo .ph {
  border: 0;
  border-radius: 0;
}

.team-card .icon-badge {
  position: relative;
  z-index: 1;
  margin: -24px 0 16px;
  background-color: var(--blue-tint);
  box-shadow: 0 0 0 4px #FFFFFF, inset 0 0 0 1px rgba(49, 111, 163, 0.15);
}

.team-card h3 {
  font-size: 1.12rem;
  margin-bottom: 6px;
}

.team-card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Certifications & Platform Ecosystem */
.cert-ecosystem-section {
  padding-top: clamp(48px, 6vw, 76px);
  padding-bottom: clamp(48px, 6vw, 76px);
}

.cert-ecosystem-split {
  gap: 28px;
  align-items: stretch;
}

.cert-col-card,
.ecosystem-col-card {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 3.5vw, 36px);
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.cert-col-header,
.ecosystem-col-header {
  margin-bottom: 14px;
}

.cert-badge-salesforce {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-head);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #0070D2;
  background: #EBF5FE;
  border: 1px solid #CEE5FD;
  border-radius: var(--radius-pill);
  padding: 3px 11px;
  margin-bottom: 8px;
}

.cert-badge-salesforce svg {
  width: 14px;
  height: 14px;
}

.ecosystem-badge-pill {
  display: inline-flex;
  font-family: var(--font-head);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--navy);
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 3px 11px;
  margin-bottom: 8px;
}

.cert-col-card h2,
.ecosystem-col-card h3 {
  font-size: clamp(1.35rem, 1.15rem + 0.8vw, 1.75rem);
  font-weight: 700;
  color: var(--navy);
  margin: 0;
  line-height: 1.3;
}

.cert-col-card .lead,
.ecosystem-lead {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--charcoal);
  margin-top: 10px;
  margin-bottom: 20px;
}

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

.cert-item {
  background: #F8FAFC;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.cert-item:hover {
  background: #F0F6FC;
  border-color: #CBD5E1;
}

.cert-icon-wrap {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: #EBF5FE;
  color: #0070D2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cert-icon-wrap svg {
  width: 16px;
  height: 16px;
}

.cert-item span strong {
  font-size: 0.9rem;
  color: var(--navy);
}

.trailhead-callout {
  margin-top: auto;
  background: #F4F8FC;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.trailhead-callout p {
  margin: 0;
  font-size: 0.85rem;
}

/* Values Grid */
.values-section {
  padding-top: clamp(48px, 6vw, 76px);
  padding-bottom: clamp(48px, 6vw, 76px);
}

.about-values-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 1024px) {
  .about-values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .about-values-grid {
    grid-template-columns: 1fr;
  }
}

.value-card-item {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  border-radius: var(--radius);
  padding: 26px 20px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(10, 37, 64, 0.04);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
  height: 100%;
}

.value-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.value-icon-badge {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--blue-tint);
  color: var(--blue);
  border: 1px solid var(--blue-tint-subtle);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}

.value-icon-badge svg {
  width: 22px;
  height: 22px;
}

.value-card-item:hover .value-icon-badge {
  background: var(--blue);
  color: #FFFFFF;
  transform: scale(1.05);
}

.value-card-num {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--muted-light);
  letter-spacing: 0.05em;
}

.value-card-item h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 10px;
}

.value-card-item p {
  font-size: 0.91rem;
  line-height: 1.55;
  color: var(--charcoal);
  margin: 0;
  flex-grow: 1;
}

/* Print Styles */
@media print {
  .site-header,
  .site-footer,
  .cta-band,
  dialog,
  .skip-link,
  .to-top,
  .read-progress {
    display: none !important;
  }
  body {
    color: #000;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  body * {
    visibility: hidden;
  }
  .tool-card, .tool-card * {
    visibility: visible;
  }
  .tool-card {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    box-shadow: none;
    border: 0;
  }
  .tool-card .btn,
  .tool-card .cta-group {
    display: none !important;
  }
}

/* ---------- Card Highlight ----------
   One shared hover treatment for every light content card: a brand-blue spotlight that follows the
   pointer (main.js sets --mx/--my), a blue border and glow, and the card's icon filling with blue.
   Dark cards (.bento-navy, .price-card.featured) keep their own hover. Form and tool cards are left out. */
@property --hl {
  syntax: "<number>";
  inherits: false;
  initial-value: 0;
}

:root {
  --hl-rgb: 49 111 163;
}

.bento-tint {
  --hl-base-img: linear-gradient(145deg, #FFFFFF 0%, var(--blue-tint) 100%);
}

:is(.step-card, .journey-card, .value-card-item) {
  --hl-top: var(--navy);
}

:is(.card:not(.bento-navy):not(.on-dark), .step-card, .price-card:not(.featured), .journey-card, .value-card-item, .cert-col-card, .ecosystem-col-card,
    .contact-info-card, .founder-showcase-card) {
  --mx: 50%;
  --my: 0%;
  background-image:
    radial-gradient(560px circle at var(--mx) var(--my), rgb(var(--hl-rgb) / calc(var(--hl, 0) * 0.12)), transparent 60%),
    var(--hl-base-img, none);
}

/* Cards still running their scroll-reveal entrance keep the reveal transition; main.js adds
   .is-settled once it finishes. */
:is(.card:not(.bento-navy):not(.on-dark), .step-card, .price-card:not(.featured), .journey-card, .value-card-item, .cert-col-card, .ecosystem-col-card,
    .contact-info-card, .founder-showcase-card):is(:not(.reveal), .is-settled) {
  transition: transform 0.3s var(--ease),
              box-shadow 0.3s var(--ease),
              border-color 0.3s var(--ease),
              --hl 0.35s var(--ease);
}

@media (hover: hover) {
  :is(.card:not(.bento-navy):not(.on-dark), .step-card, .price-card:not(.featured), .journey-card, .value-card-item, .cert-col-card, .ecosystem-col-card,
      .contact-info-card, .founder-showcase-card):hover {
    --hl: 1;
    transform: translateY(-4px);
    border-color: rgb(var(--hl-rgb) / 0.4);
    border-top-color: var(--hl-top, rgb(var(--hl-rgb) / 0.4));
    box-shadow: 0 0 0 1px rgb(var(--hl-rgb) / 0.12),
                0 22px 44px -16px rgb(var(--hl-rgb) / 0.4),
                0 6px 14px -6px rgb(17 59 93 / 0.1);
  }

  :is(.card:not(.bento-navy):not(.on-dark), .step-card, .price-card:not(.featured), .journey-card, .value-card-item, .cert-col-card, .ecosystem-col-card,
      .contact-info-card, .founder-showcase-card):hover
    :is(.icon-badge, .step-icon-badge, .value-icon-badge, .journey-icon-wrap) {
    background: var(--blue);
    border-color: var(--blue);
    color: #FFFFFF;
  }
}
