/* ============================================
   PAYMULLET — Modern payments infrastructure
   Brand-aligned forest green system
   Primary: #004428 (deep) · #037449 (medium)
   Display: Aeonik · Body: Poppins
   ============================================ */

:root,
[data-theme='light'] {
  /* Surfaces */
  --color-bg: #ffffff;
  --color-surface: #ffffff;
  --color-surface-2: #f7f8fa;
  --color-surface-3: #eff1f5;
  --color-surface-ink: #0a0b14;
  --color-divider: #eaecef;
  --color-border: #e1e4e8;
  --color-border-strong: #c9ced4;

  /* Text */
  --color-text: #0a0b14;
  --color-text-2: #3a3e48;
  --color-text-muted: #656a73;
  --color-text-faint: #9096a0;
  --color-text-inverse: #ffffff;

  /* Forest green — brand */
  --color-primary: #037449;
  --color-primary-hover: #025c39;
  --color-primary-active: #004428;
  --color-primary-soft: #e8f3ee;
  --color-primary-border: #b8d9c7;
  --color-primary-deep: #004428;

  /* Accents for code syntax */
  --color-cyan: #00b8d9;
  --color-violet: #7c5cff;
  --color-emerald: #10b981;
  --color-rose: #f43f5e;
  --color-amber: #f59e0b;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgb(10 11 20 / 0.05);
  --shadow-sm: 0 1px 3px rgb(10 11 20 / 0.06), 0 1px 2px rgb(10 11 20 / 0.04);
  --shadow-md: 0 4px 16px rgb(10 11 20 / 0.06), 0 2px 4px rgb(10 11 20 / 0.04);
  --shadow-lg: 0 16px 48px rgb(10 11 20 / 0.08), 0 4px 12px rgb(10 11 20 / 0.05);
  --shadow-blue: 0 10px 30px -8px rgb(3 116 73 / 0.32);
  --shadow-green: 0 10px 30px -8px rgb(3 116 73 / 0.32);

  /* Type */
  --text-xs: clamp(0.75rem, 0.72rem + 0.15vw, 0.8125rem);
  --text-sm: clamp(0.875rem, 0.85rem + 0.15vw, 0.9375rem);
  --text-base: clamp(0.9375rem, 0.9rem + 0.2vw, 1.0625rem);
  --text-md: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1.05rem + 0.4vw, 1.375rem);
  --text-xl: clamp(1.375rem, 1.15rem + 1vw, 1.875rem);
  --text-2xl: clamp(1.875rem, 1.3rem + 2vw, 3rem);
  --text-3xl: clamp(2.5rem, 1.6rem + 3.5vw, 4.5rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-7: 1.75rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-14: 3.5rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  --transition: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  --content-wide: 1320px;
  --content-default: 1120px;
  --content-narrow: 720px;

  --font-display: 'Aeonik', 'General Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

[data-theme='dark'] {
  --color-bg: #0a0b14;
  --color-surface: #0f1120;
  --color-surface-2: #13162a;
  --color-surface-3: #1a1d35;
  --color-surface-ink: #f7f8fa;
  --color-divider: #1e2239;
  --color-border: #252a48;
  --color-border-strong: #323858;

  --color-text: #f7f8fa;
  --color-text-2: #c5c9d6;
  --color-text-muted: #8b91a4;
  --color-text-faint: #5a6079;
  --color-text-inverse: #0a0b14;

  --color-primary: #2fb37a;
  --color-primary-hover: #4ec491;
  --color-primary-active: #1a8e5d;
  --color-primary-soft: #0e2a1d;
  --color-primary-border: #1f4a36;
  --color-primary-deep: #004428;

  --shadow-xs: 0 1px 2px rgb(0 0 0 / 0.3);
  --shadow-sm: 0 1px 3px rgb(0 0 0 / 0.35);
  --shadow-md: 0 4px 16px rgb(0 0 0 / 0.4);
  --shadow-lg: 0 16px 48px rgb(0 0 0 / 0.5);
  --shadow-blue: 0 10px 30px -8px rgb(47 179 122 / 0.45);
  --shadow-green: 0 10px 30px -8px rgb(47 179 122 / 0.45);
}

/* ============================================
   BASE
   ============================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  font-feature-settings: 'ss01', 'cv11';
}

body {
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.55;
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
}

img,
picture,
video,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
  text-wrap: balance;
  color: var(--color-text);
}

h1, h2 { font-weight: 800; letter-spacing: -0.03em; }

p {
  text-wrap: pretty;
  color: var(--color-text-2);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}

:not(pre) > code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--color-surface-2);
  padding: 0.1em 0.35em;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-divider);
}

pre code {
  font-family: var(--font-mono);
  background: transparent;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: inherit;
}

::selection {
  background: var(--color-primary);
  color: white;
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

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

/* Skip-to-content link: hidden until keyboard-focused (a11y) */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-4, 16px);
  z-index: 10000;
  padding: 10px 16px;
  background: var(--color-primary-deep, #037449);
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  transition: top 0.15s ease;
}
.skip-link:focus,
.skip-link:focus-visible {
  top: 12px;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

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

.container {
  width: 100%;
  max-width: var(--content-wide);
  margin: 0 auto;
  padding-inline: clamp(var(--space-4), 3vw, var(--space-8));
}

/* ============================================
   NAV
   ============================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in oklab, var(--color-bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), background var(--transition);
}

.nav.is-scrolled {
  border-bottom-color: var(--color-divider);
}

.nav__inner {
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: var(--space-3) clamp(var(--space-4), 3vw, var(--space-8));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

.logo {
  display: inline-flex;
  align-items: center;
  color: var(--color-primary);
  flex-shrink: 0;
}

.logo__svg {
  width: 148px;
  height: auto;
  display: block;
}

@media (max-width: 560px) {
  .logo__svg { width: 128px; }
}

.nav__links {
  display: flex;
  gap: var(--space-6);
  font-size: var(--text-sm);
  font-weight: 500;
}

.nav__links a {
  color: var(--color-text-muted);
}

.nav__links a:hover {
  color: var(--color-text);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.nav__login {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
}
.nav__login:hover {
  color: var(--color-text);
}

.theme-toggle {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  transition: all var(--transition);
}

.theme-toggle:hover {
  color: var(--color-text);
  border-color: var(--color-border-strong);
}

@media (max-width: 900px) {
  .nav__links {
    display: none;
  }
}
@media (max-width: 520px) {
  .nav__login {
    display: none;
  }
}

/* ============================================
   MOBILE NAV: HAMBURGER + DRAWER
   ============================================ */

.nav__hamburger {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid var(--color-border);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.nav__hamburger:hover { border-color: var(--color-border-strong); }
.nav__hamburger-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.15s ease;
  transform-origin: center;
}
.nav__hamburger[aria-expanded="true"] .nav__hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__hamburger[aria-expanded="true"] .nav__hamburger-bar:nth-child(2) {
  opacity: 0;
}
.nav__hamburger[aria-expanded="true"] .nav__hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
@media (max-width: 900px) {
  .nav__hamburger { display: inline-flex; }
}

.nav__drawer {
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  visibility: hidden;
}
.nav__drawer.is-open {
  pointer-events: auto;
  visibility: visible;
}
.nav__drawer-scrim {
  position: absolute;
  inset: 0;
  background: rgba(8, 24, 18, 0.48);
  opacity: 0;
  transition: opacity 0.22s ease;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.nav__drawer.is-open .nav__drawer-scrim { opacity: 1; }
.nav__drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(86vw, 360px);
  background: var(--color-surface);
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.18);
  padding: 88px 20px 28px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);
  -webkit-overflow-scrolling: touch;
}
.nav__drawer.is-open .nav__drawer-panel { transform: translateX(0); }

.nav__drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nav__drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 4px;
  font-size: 17px;
  font-weight: 600;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
  text-decoration: none;
}
.nav__drawer-link:last-child { border-bottom: none; }
.nav__drawer-link:hover { color: var(--color-primary-deep); }
.nav__drawer-link--muted {
  color: var(--color-text-muted);
  font-weight: 500;
  font-size: 15px;
  margin-top: 16px;
}
.nav__drawer-summary {
  list-style: none;
  cursor: pointer;
}
.nav__drawer-summary::-webkit-details-marker { display: none; }
.nav__drawer-caret {
  transition: transform 0.2s ease;
  color: var(--color-text-muted);
  flex-shrink: 0;
}
.nav__drawer-group[open] > summary .nav__drawer-caret {
  transform: rotate(180deg);
}
.nav__drawer-group[open] > summary {
  color: var(--color-primary-deep);
}
.nav__drawer-subhead {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding: 14px 4px 6px;
}
.nav__drawer-sublink {
  display: block;
  padding: 10px 4px 10px 16px;
  font-size: 15px;
  color: var(--color-text);
  font-weight: 500;
  text-decoration: none;
  border-left: 2px solid transparent;
}
.nav__drawer-sublink:hover {
  color: var(--color-primary-deep);
  border-left-color: var(--color-primary);
}
.has-drawer-open { overflow: hidden; }

/* Hide iso-chat widget on mobile — desktop only */
@media (max-width: 900px) {
  .iso-chat { display: none !important; }
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 9px 16px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: -0.005em;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
  cursor: pointer;
}

.btn--sm {
  padding: 7px 13px;
  font-size: 13px;
}

.btn--lg {
  padding: 14px 22px;
  font-size: var(--text-base);
}

.btn--primary {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
  box-shadow: var(--shadow-xs), inset 0 1px 0 rgb(255 255 255 / 0.18);
}

.btn--primary:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  box-shadow: var(--shadow-blue);
  transform: translateY(-1px);
}

.btn--primary:active {
  background: var(--color-primary-active);
  transform: translateY(0);
}

.btn--ghost {
  background: var(--color-surface);
  color: var(--color-text);
  border-color: var(--color-border);
  box-shadow: var(--shadow-xs);
}

.btn--ghost:hover {
  border-color: var(--color-border-strong);
  background: var(--color-surface-2);
}

.btn--ghost-on-dark {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: none;
}

.btn--ghost-on-dark:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
}

/* ============================================
   BADGE / EYEBROW
   ============================================ */

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 5px 11px 5px 8px;
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text-2);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-xs);
}

.badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-emerald);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--color-emerald) 25%, transparent);
  animation: badge-pulse 2.4s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 3px color-mix(in oklab, var(--color-emerald) 25%, transparent);
  }
  50% {
    box-shadow: 0 0 0 6px color-mix(in oklab, var(--color-emerald) 0%, transparent);
  }
}

.badge__mono {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--color-text-muted);
}

.badge__sep {
  color: var(--color-text-faint);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.eyebrow--mono {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
}

.dotmono {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
  padding-right: var(--space-2);
  border-right: 1px solid var(--color-border);
  margin-right: var(--space-3);
}

.section-head {
  max-width: 700px;
  margin: 0 auto var(--space-16);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

.section-head--left {
  margin-inline: 0;
  text-align: left;
  align-items: flex-start;
  max-width: 640px;
}

.section-head h2 {
  font-size: var(--text-2xl);
}

.section-head p {
  color: var(--color-text-muted);
  font-size: var(--text-md);
  max-width: 56ch;
}

/* ============================================
   HERO
   ============================================ */

.hero {
  position: relative;
  padding-top: clamp(var(--space-8), 4vw, var(--space-14));
  padding-bottom: clamp(var(--space-16), 8vw, var(--space-24));
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero__grid {
  position: absolute;
  inset: -1px;
  background-image: linear-gradient(to right, var(--color-divider) 1px, transparent 1px),
    linear-gradient(to bottom, var(--color-divider) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 85%);
  opacity: 0.6;
}

.hero__orb {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(
    ellipse at center,
    color-mix(in oklab, var(--color-primary) 30%, transparent) 0%,
    transparent 60%
  );
  filter: blur(40px);
  opacity: 0.4;
}

[data-theme='dark'] .hero__orb {
  opacity: 0.55;
}

.hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-6);
}

.hero__title {
  font-size: var(--text-3xl);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.03;
  max-width: 18ch;
  margin-top: var(--space-2);
}

.grad {
  background: linear-gradient(
    100deg,
    var(--color-primary-deep, #004428) 0%,
    var(--color-primary) 55%,
    #2fb37a 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__sub {
  max-width: 56ch;
  font-size: var(--text-md);
  color: var(--color-text-muted);
  line-height: 1.55;
}

.hero__cta {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  justify-content: center;
}

.hero__wink {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-text-faint);
  letter-spacing: 0.01em;
  margin-top: calc(-1 * var(--space-2));
}

.hero__wink-label {
  color: var(--color-primary);
  font-weight: 600;
  margin-right: 6px;
}

/* Code card */
.codecard {
  width: 100%;
  max-width: 760px;
  margin-top: var(--space-10);
  background: var(--color-surface-ink);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-align: left;
  box-shadow: var(--shadow-lg);
  position: relative;
}

[data-theme='light'] .codecard {
  --code-bg: #0a0b14;
  --code-text: #e5e7ef;
  --code-muted: #8b91a4;
  background: #0a0b14;
  border-color: #1a1d35;
}

[data-theme='dark'] .codecard {
  --code-bg: #0a0b14;
  --code-text: #e5e7ef;
  --code-muted: #8b91a4;
  background: #0a0b14;
  border-color: #252a48;
}

.codecard__head {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid #1a1d35;
  background: #0f1120;
}

.codecard__dots {
  display: flex;
  gap: 6px;
}

.codecard__dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2a2f4a;
}

.codecard__dots span:first-child {
  background: #f43f5e;
}
.codecard__dots span:nth-child(2) {
  background: #f59e0b;
}
.codecard__dots span:nth-child(3) {
  background: #10b981;
}

.codecard__file {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #8b91a4;
  padding: 3px 10px;
  background: #13162a;
  border-radius: var(--radius-sm);
  border: 1px solid #1e2239;
}

.codecard__file svg {
  opacity: 0.7;
}

.codecard__tag {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #10b981;
  padding: 3px 9px;
  border: 1px solid #124a35;
  background: #0c2018;
  border-radius: var(--radius-sm);
}

.codecard__body {
  padding: var(--space-5) var(--space-6);
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.65;
  color: #e5e7ef;
  overflow-x: auto;
  white-space: pre;
}

.codecard__body .ck { color: #c084fc; } /* keywords */
.codecard__body .cv { color: #e5e7ef; } /* variables */
.codecard__body .cf { color: #60a5fa; } /* function */
.codecard__body .cs { color: #6ee7b7; } /* strings */
.codecard__body .cn { color: #fbbf24; } /* numbers */
.codecard__body .cc { color: #6b7280; font-style: italic; } /* comments */

/* Hero stats */
.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
  width: 100%;
  max-width: 880px;
  margin-top: var(--space-10);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-divider);
}

@media (max-width: 720px) {
  .hero__stats {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }
}

.stat {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.stat__num {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-xl);
  letter-spacing: -0.035em;
  color: var(--color-text);
  line-height: 1;
  font-feature-settings: 'tnum';
}

.stat__unit {
  color: inherit;
  font-weight: inherit;
}

.stat__label {
  font-size: 12px;
  color: var(--color-text-muted);
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* ============================================
   LOGOS
   ============================================ */

.logos {
  padding-block: var(--space-12);
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
  background: var(--color-surface-2);
}

.logos__label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-faint);
  text-align: center;
  margin-bottom: var(--space-6);
}

.logos__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(var(--space-6), 4vw, var(--space-12));
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-md);
  color: var(--color-text-faint);
  letter-spacing: -0.02em;
}

.logos__row span {
  transition: color var(--transition);
}
.logos__row span:hover {
  color: var(--color-text);
}

/* ============================================
   PRODUCTS
   ============================================ */

.products {
  padding-block: clamp(var(--space-20), 10vw, var(--space-32));
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
}

.product {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
  transition: border-color var(--transition), box-shadow var(--transition),
    transform var(--transition);
}

.product:hover {
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.product__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #f7f5ee 0%, #ecebe1 100%);
  border-bottom: 1px solid var(--color-border);
}

.product__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 600ms cubic-bezier(0.2, 0.6, 0.2, 1);
}

.product:hover .product__media img {
  transform: scale(1.04);
}

.product__body {
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
}

[data-theme='dark'] .product__media {
  background: linear-gradient(135deg, #1a2a22 0%, #0f1a14 100%);
  border-bottom-color: var(--color-border);
}

/* Featured card: side-by-side on desktop */
.product--hero {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: linear-gradient(
    180deg,
    var(--color-surface) 0%,
    var(--color-surface-2) 100%
  );
  border-color: var(--color-primary-border);
  box-shadow: var(--shadow-sm), 0 0 0 1px var(--color-primary-border);
}

.product__media--hero {
  aspect-ratio: auto;
  border-bottom: none;
  border-right: 1px solid var(--color-border);
  min-height: 100%;
}

[data-theme='dark'] .product--hero {
  background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-surface-2) 100%);
}

[data-theme='dark'] .product__media--hero {
  border-right-color: var(--color-border);
}

.product--hero .product__body {
  padding: clamp(var(--space-8), 4vw, var(--space-12));
  justify-content: center;
  gap: var(--space-4);
}

@media (max-width: 900px) {
  .product--hero {
    grid-template-columns: 1fr;
  }
  .product__media--hero {
    aspect-ratio: 16 / 9;
    border-right: none;
    border-bottom: 1px solid var(--color-border);
    min-height: 0;
  }
  [data-theme='dark'] .product__media--hero {
    border-bottom-color: var(--color-border);
  }
}

@media (max-width: 760px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
  .product--hero {
    grid-column: span 1;
  }
}

.product__label {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text);
}

.product h3 {
  font-size: var(--text-lg);
  letter-spacing: -0.025em;
  max-width: 22ch;
  margin-top: var(--space-1);
}

.product--hero h3 {
  font-size: clamp(var(--text-xl), 2.6vw, var(--text-2xl));
  max-width: 18ch;
  letter-spacing: -0.03em;
}

.product p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.6;
  max-width: 58ch;
}

.product__bullets {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2) var(--space-6);
  margin-top: var(--space-2);
  font-size: var(--text-sm);
}

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

.product__bullets li {
  position: relative;
  padding-left: 1.4em;
  color: var(--color-text-2);
}

.product__bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 14px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
}

.linkarrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  align-self: flex-start;
}

.linkarrow svg {
  transition: transform var(--transition);
}

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

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

/* ============================================
   PRICING
   ============================================ */

.pricing {
  padding-block: clamp(var(--space-20), 10vw, var(--space-32));
  background: var(--color-surface-2);
  border-block: 1px solid var(--color-divider);
}

.price-card {
  max-width: 820px;
  margin: 0 auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(var(--space-6), 4vw, var(--space-10));
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.price-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--color-divider);
}

.price-card__meta {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-family: var(--font-mono);
}

.price-card__formula {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.formula {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4);
  background: var(--color-surface-2);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
}

.formula__label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}

.formula__body {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  flex-wrap: wrap;
  justify-content: flex-end;
}

.formula__plus {
  padding: 3px 8px;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.formula__op {
  color: var(--color-text-faint);
}

.formula__val {
  color: var(--color-text);
  font-weight: 600;
  font-feature-settings: 'tnum';
}

.formula__hint {
  color: var(--color-text-muted);
  font-size: 12px;
}

.price-card__includes {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2) var(--space-6);
  font-size: var(--text-sm);
}

@media (max-width: 720px) {
  .price-card__includes {
    grid-template-columns: 1fr;
  }
}

.price-card__includes li {
  position: relative;
  padding-left: 1.6em;
  color: var(--color-text-2);
}

.price-card__includes li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
  transform: rotate(-45deg);
}

.price-card__cta {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

/* ============================================
   DEVELOPERS
   ============================================ */

.developers {
  padding-block: clamp(var(--space-20), 10vw, var(--space-32));
}

.dev-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

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

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

.dev-card {
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: all var(--transition);
}

.dev-card:hover {
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-sm);
}

.dev-card__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--color-primary-soft);
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dev-card__icon svg {
  width: 20px;
  height: 20px;
}

.dev-card h3 {
  font-size: var(--text-md);
  letter-spacing: -0.015em;
}

.dev-card p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.55;
}

/* ============================================
   CUSTOMERS
   ============================================ */

.customers {
  padding-block: clamp(var(--space-20), 10vw, var(--space-32));
  background: var(--color-surface-2);
  border-block: 1px solid var(--color-divider);
}

.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  margin-bottom: var(--space-16);
}

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

.quote {
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  transition: all var(--transition);
}

.quote:hover {
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-sm);
}

.quote blockquote {
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--color-text);
  position: relative;
}

.quote blockquote::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  margin-bottom: var(--space-3);
}

.quote figcaption {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-divider);
  margin-top: auto;
}

.quote__avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--color-primary-soft);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

.quote__name {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-text);
}

.quote__role {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.badges {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-divider);
}

@media (max-width: 720px) {
  .badges {
    grid-template-columns: repeat(2, 1fr);
  }
}

.badge-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.badge-item strong {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-md);
  letter-spacing: -0.02em;
  color: var(--color-text);
  font-feature-settings: 'tnum';
}

.badge-item span {
  font-size: 12px;
  color: var(--color-text-muted);
  font-weight: 500;
}

/* ============================================
   FAQ
   ============================================ */

.faq {
  padding-block: clamp(var(--space-20), 10vw, var(--space-32));
}

.faq__inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-16);
  align-items: start;
}

@media (max-width: 900px) {
  .faq__inner {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }
}

.faq__list {
  border-top: 1px solid var(--color-divider);
}

.faq__list details {
  border-bottom: 1px solid var(--color-divider);
}

.faq__list summary {
  list-style: none;
  padding: var(--space-5) 0;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-md);
  letter-spacing: -0.015em;
  color: var(--color-text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  transition: color var(--transition);
}

.faq__list summary:hover {
  color: var(--color-primary);
}

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

.faq__list summary::after {
  content: '';
  width: 12px;
  height: 12px;
  background-image: linear-gradient(var(--color-text-muted), var(--color-text-muted)),
    linear-gradient(var(--color-text-muted), var(--color-text-muted));
  background-size: 12px 1.5px, 1.5px 12px;
  background-position: center;
  background-repeat: no-repeat;
  flex-shrink: 0;
  transition: transform var(--transition);
}

.faq__list details[open] summary::after {
  background-size: 12px 1.5px, 0 0;
}

.faq__list details p {
  padding-bottom: var(--space-5);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.65;
  max-width: 68ch;
}

/* ============================================
   FINAL CTA
   ============================================ */

.final-cta {
  padding-block: var(--space-16) var(--space-24);
}

.final-cta__card {
  position: relative;
  background:
    radial-gradient(ellipse 80% 60% at 85% 15%, rgba(47, 179, 122, 0.28), transparent 60%),
    radial-gradient(ellipse 60% 80% at 10% 100%, rgba(47, 179, 122, 0.18), transparent 60%),
    linear-gradient(155deg, #053a26 0%, #07281a 55%, #04180f 100%);
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-10), 6vw, var(--space-20));
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(47, 179, 122, 0.18);
}

@media (max-width: 900px) {
  .final-cta__card {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

.final-cta__grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 30% 40%, black, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 40%, black, transparent 70%);
  pointer-events: none;
}

.final-cta__content {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  align-items: flex-start;
}

.final-cta__card h2 {
  font-size: var(--text-2xl);
  color: #ffffff;
  max-width: 18ch;
}

.final-cta__card p {
  color: rgba(255, 255, 255, 0.68);
  font-size: var(--text-md);
  max-width: 48ch;
}

.final-cta__actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-top: var(--space-2);
}

.final-cta__code {
  position: relative;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.75;
  color: #e5e7ef;
  padding: var(--space-5);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  overflow-x: auto;
  white-space: pre;
}

.final-cta__code .cv { color: #e5e7ef; }
.final-cta__code .cs { color: #6ee7b7; }
.final-cta__code .cn { color: #fbbf24; }
.final-cta__code .cc { color: #60a5fa; }

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: var(--color-surface-2);
  border-top: 1px solid var(--color-divider);
  padding-block: var(--space-10) var(--space-4);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 2.5fr;
  gap: var(--space-10);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-divider);
}

@media (max-width: 900px) {
  .footer__inner {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__tag {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  max-width: 28ch;
}

.footer__sub {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-text-faint);
  font-style: normal;
}

.footer__copy {
  margin-top: var(--space-2);
  font-size: 12px;
  color: var(--color-text-faint);
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

@media (max-width: 600px) {
  .footer__cols {
    grid-template-columns: repeat(2, 1fr);
  }
}

.footer__cols h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.footer__cols a {
  display: block;
  padding: var(--space-1) 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

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

.footer__bottom {
  padding-top: var(--space-4);
  font-size: 12px;
  color: var(--color-text-faint);
}

.footer__bottom .footer__legal {
  margin: 0;
  padding: 0;
  border-top: 0;
  font-size: 11px;
  line-height: 1.55;
  color: var(--color-text-faint);
  max-width: 100%;
}

.footer__mono {
  font-family: var(--font-mono);
}

/* ============================================
   REVEAL
   ============================================ */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   PRICE PREVIEW (homepage)
   ============================================ */

.price-preview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-10);
}

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

@media (max-width: 480px) {
  .price-preview {
    grid-template-columns: 1fr;
  }
}

.price-preview__card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-8) var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: border-color 200ms ease, transform 200ms ease;
}

.price-preview__card:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

.price-preview__stat {
  font-family: var(--font-body);
  font-size: 3rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--color-text);
  background: linear-gradient(135deg, var(--color-primary-deep, #004428) 0%, var(--color-primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.price-preview__label {
  font-size: var(--text-sm);
  line-height: 1.45;
  color: var(--color-text-muted);
}

.price-preview__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
  margin-top: var(--space-8);
}

/* Respect HTML [hidden] attribute globally */
[hidden] { display: none !important; }

/* ============================================
   APPROVAL CARD — animated hero visual
   ============================================ */

.approvalcard {
  position: relative;
  width: min(720px, 100%);
  margin-top: var(--space-10);
  padding: var(--space-5) var(--space-6) var(--space-5);
  background: linear-gradient(160deg, #00301c 0%, #004428 60%, #013a23 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  box-shadow:
    0 30px 60px -20px rgba(10, 11, 20, 0.45),
    0 0 0 1px rgba(94, 130, 255, 0.08) inset,
    0 0 80px -20px rgba(94, 130, 255, 0.25) inset;
  color: #ffffff;
  overflow: hidden;
}

.approvalcard::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 40% 50% at 80% 0%, rgba(124, 92, 255, 0.18), transparent 70%),
    radial-gradient(ellipse 40% 50% at 15% 100%, rgba(0, 184, 217, 0.12), transparent 70%);
  pointer-events: none;
}

.approvalcard__head,
.approvalcard__foot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.approvalcard__channel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.72);
}

.approvalcard__pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #19d37d;
  box-shadow: 0 0 0 0 rgba(25, 211, 125, 0.8);
  animation: pulseLive 1.8s ease-out infinite;
}

@keyframes pulseLive {
  0% { box-shadow: 0 0 0 0 rgba(25, 211, 125, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(25, 211, 125, 0); }
  100% { box-shadow: 0 0 0 0 rgba(25, 211, 125, 0); }
}

.approvalcard__time {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.55);
}

.approvalcard__stage {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-8) 0;
}

@media (max-width: 640px) {
  .approvalcard__stage {
    grid-template-columns: 1fr;
    gap: var(--space-5);
    padding: var(--space-5) 0;
  }
}

/* Animated credit card */
.credcard {
  position: relative;
  width: 220px;
  height: 132px;
  padding: var(--space-4);
  border-radius: 14px;
  background:
    linear-gradient(135deg, #5e82ff 0%, #7c5cff 55%, #00b8d9 120%);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow:
    0 14px 28px -10px rgba(94, 130, 255, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  overflow: hidden;
  animation: cardFloat 5s ease-in-out infinite;
}

.credcard::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(255, 255, 255, 0.25) 45%,
    transparent 60%
  );
  transform: translateX(-120%);
  animation: cardShine 4s ease-in-out infinite;
  animation-delay: 1.5s;
}

@keyframes cardFloat {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-6px) rotate(0.5deg); }
}

@keyframes cardShine {
  0% { transform: translateX(-120%); }
  40%, 100% { transform: translateX(120%); }
}

.credcard__chip {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 28px;
  height: 22px;
  background: linear-gradient(135deg, #e8d28c 0%, #b89534 60%, #d4b86a 100%);
  border-radius: 4px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 1px;
  padding: 2px;
}

.credcard__chip span {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 1px;
}

.credcard__wave {
  position: absolute;
  top: 14px;
  right: 14px;
  color: rgba(255, 255, 255, 0.9);
  transform: rotate(90deg);
}

.credcard__num {
  margin-top: auto;
  display: flex;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.credcard__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.9);
}

.credcard__brand {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  font-style: italic;
}

/* Beam (dots) between card and result */
.approvalcard__beam {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 var(--space-2);
}

.approvalcard__beam span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(94, 130, 255, 0.8);
  opacity: 0.25;
  animation: beamTravel 1.6s ease-in-out infinite;
}

.approvalcard__beam span:nth-child(1) { animation-delay: 0s; }
.approvalcard__beam span:nth-child(2) { animation-delay: 0.15s; }
.approvalcard__beam span:nth-child(3) { animation-delay: 0.3s; }
.approvalcard__beam span:nth-child(4) { animation-delay: 0.45s; }
.approvalcard__beam span:nth-child(5) { animation-delay: 0.6s; }
.approvalcard__beam span:nth-child(6) { animation-delay: 0.75s; }

@keyframes beamTravel {
  0%, 100% { opacity: 0.2; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.15); box-shadow: 0 0 10px rgba(94, 130, 255, 0.9); }
}

@media (max-width: 640px) {
  .approvalcard__beam {
    flex-direction: row;
    padding: 0;
  }
}

/* Result pill */
.approvalcard__result {
  position: relative;
  min-width: 220px;
  padding: var(--space-4) var(--space-5);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(25, 211, 125, 0.35);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 6px;
  animation: resultPop 4s ease-in-out infinite;
}

@keyframes resultPop {
  0%, 10% { transform: scale(0.98); border-color: rgba(255, 255, 255, 0.1); }
  15%, 95% { transform: scale(1); border-color: rgba(25, 211, 125, 0.45); box-shadow: 0 0 30px -8px rgba(25, 211, 125, 0.35); }
  100% { transform: scale(0.98); border-color: rgba(255, 255, 255, 0.1); box-shadow: none; }
}

.approvalcard__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: #19d37d;
  font-weight: 600;
}

.approvalcard__status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #19d37d;
  box-shadow: 0 0 8px rgba(25, 211, 125, 0.8);
}

.approvalcard__amount {
  font-family: var(--font-body);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: #fff;
}

.approvalcard__currency {
  color: rgba(255, 255, 255, 0.55);
  margin-right: 2px;
  font-weight: 500;
}

.approvalcard__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.04em;
}

.approvalcard__dot { color: rgba(255, 255, 255, 0.3); }

.approvalcard__foot {
  padding-top: var(--space-4);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.approvalcard__ticker {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-mono);
}

.approvalcard__ticker-label {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
}

.approvalcard__ticker-val {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.approvalcard__rails {
  display: flex;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.4);
}

/* ============================================
   HOW IT WORKS — 4 numbered steps with dotted spine
   ============================================ */

.howitworks {
  padding: var(--space-20) 0;
  background: var(--color-bg);
}

.steps {
  position: relative;
  margin-top: var(--space-12);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

/* Horizontal dotted spine */
.steps::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 6%;
  right: 6%;
  height: 1px;
  background-image: linear-gradient(to right, var(--color-border) 60%, transparent 0);
  background-size: 10px 1px;
  background-repeat: repeat-x;
  z-index: 0;
}

@media (max-width: 900px) {
  .steps {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }
  .steps::before {
    left: 28px;
    right: auto;
    top: 0;
    bottom: 0;
    width: 1px;
    height: auto;
    background-image: linear-gradient(to bottom, var(--color-border) 60%, transparent 0);
    background-size: 1px 10px;
  }
}

.step {
  position: relative;
  padding-top: var(--space-12);
  z-index: 1;
}

@media (max-width: 900px) {
  .step {
    padding-top: 0;
    padding-left: var(--space-12);
  }
}

.step__num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--color-text-muted);
  position: absolute;
  top: var(--space-12);
  left: 0;
  transform: translateY(calc(-100% - var(--space-2)));
}

@media (max-width: 900px) {
  .step__num {
    top: 0;
    left: var(--space-12);
    transform: none;
  }
}

.step__dot {
  position: absolute;
  top: 22px;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 2px solid var(--color-primary);
  box-shadow: 0 0 0 4px var(--color-surface), 0 0 0 5px var(--color-primary-border);
}

@media (max-width: 900px) {
  .step__dot {
    top: 4px;
    left: 22px;
  }
}

.step h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-2);
  color: var(--color-text);
}

.step p {
  font-size: var(--text-sm);
  line-height: 1.55;
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}

.step__meta {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}

/* ============================================
   FINAL CTA — statement compare visualization
   ============================================ */

.final-cta__viz {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-6);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  min-width: 340px;
}

@media (max-width: 900px) {
  .final-cta__viz { min-width: 0; width: 100%; }
}

.cmp__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.cmp__bar {
  position: relative;
  height: 40px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 0 12px;
}

.cmp__fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 8px;
}

.cmp__fill--before {
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.22), rgba(239, 68, 68, 0.45));
  width: 0;
  animation: barGrow 2.2s ease-out 0.2s forwards;
}

.cmp__fill--after {
  background: linear-gradient(90deg, rgba(25, 211, 125, 0.3), rgba(25, 211, 125, 0.55));
  width: 0;
  animation: barGrowSmall 2.2s ease-out 0.5s forwards;
}

@keyframes barGrow {
  to { width: 95%; }
}
@keyframes barGrowSmall {
  to { width: 8%; }
}

.cmp__val {
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 13px;
  color: #fff;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.cmp__save {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: var(--space-3);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cmp__save-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
}

.cmp__save-val {
  font-family: var(--font-body);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #19d37d;
  font-variant-numeric: tabular-nums;
}

.cmp__save-unit {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
  margin-left: 4px;
}

/* Panel state transitions when toggling between compare and calc views */
.final-cta__viz { transition: min-height .35s ease; }
.final-cta__viz [data-calc-view] { transition: opacity .28s ease; }
.final-cta__viz [data-calc-view][hidden] { display: none; }
.final-cta__viz.is-calc [data-calc-view="compare"] { display: none; }

/* ============================================
   Inline mini calculator — lives inside final-cta__viz
   ============================================ */
.minicalc {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  color: #fff;
  animation: minicalcIn .32s ease-out;
}
@keyframes minicalcIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.minicalc__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: -4px;
}
.minicalc__eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.62);
}
.minicalc__close {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.75);
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
  padding: 0;
}
.minicalc__close:hover {
  background: rgba(255,255,255,0.14);
  color: #fff;
  border-color: rgba(255,255,255,0.22);
}
.minicalc__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.minicalc__label {
  font-size: 12px;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
}
.minicalc__input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md, 10px);
  padding: 0 12px;
  height: 44px;
  transition: border-color .2s ease, background .2s ease;
}
.minicalc__input-wrap:focus-within {
  border-color: rgba(47, 179, 122, 0.55);
  background: rgba(47, 179, 122, 0.08);
}
.minicalc__prefix,
.minicalc__suffix {
  font-family: var(--font-mono);
  font-size: 14px;
  color: rgba(255,255,255,0.55);
}
.minicalc__prefix { margin-right: 6px; }
.minicalc__suffix { margin-left: 6px; }
.minicalc__input-wrap input[type="number"] {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  padding: 0;
  -moz-appearance: textfield;
}
.minicalc__input-wrap input[type="number"]::-webkit-outer-spin-button,
.minicalc__input-wrap input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
/* Range styling */
.minicalc__field input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, var(--color-primary, #037449) 0%, var(--color-primary, #037449) var(--calc-progress, 25%), rgba(255,255,255,0.12) var(--calc-progress, 25%), rgba(255,255,255,0.12) 100%);
  border-radius: 999px;
  outline: none;
  cursor: pointer;
  margin-top: 2px;
}
.minicalc__field input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid var(--color-primary, #037449);
  box-shadow: 0 2px 6px rgba(0,0,0,0.35);
  cursor: pointer;
  transition: transform .15s ease;
}
.minicalc__field input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid var(--color-primary, #037449);
  box-shadow: 0 2px 6px rgba(0,0,0,0.35);
  cursor: pointer;
}
.minicalc__field input[type="range"]:hover::-webkit-slider-thumb { transform: scale(1.12); }
.minicalc__result {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: var(--space-4) var(--space-4) var(--space-3);
  background: rgba(0,0,0,0.22);
  border: 1px solid rgba(47, 179, 122, 0.18);
  border-radius: var(--radius-md, 10px);
}
.minicalc__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  font-size: 13px;
}
.minicalc__row-label { color: rgba(255,255,255,0.7); }
.minicalc__row-val {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: #fff;
  font-weight: 600;
}
.minicalc__row--save {
  padding-top: 8px;
  margin-top: 2px;
  border-top: 1px dashed rgba(255,255,255,0.12);
}
.minicalc__row-val--save {
  font-family: var(--font-body);
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  color: #19d37d;
}
.minicalc__annual {
  font-size: 12px;
  color: rgba(255,255,255,0.62);
  margin-top: 4px;
  font-style: italic;
}
.minicalc__cta { align-self: flex-start; }


/* Refresh pulse when a new transaction posts */
.approvalcard__result.is-refresh {
  animation: approvalRefresh 480ms ease-out;
}
@keyframes approvalRefresh {
  0%   { transform: scale(0.985); box-shadow: 0 0 0 0 rgba(25, 211, 125, 0.0); }
  35%  { transform: scale(1.012); box-shadow: 0 0 0 8px rgba(25, 211, 125, 0.18); }
  100% { transform: scale(1);     box-shadow: 0 0 0 0 rgba(25, 211, 125, 0); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .credcard,
  .credcard::after,
  .approvalcard__result,
  .approvalcard__result.is-refresh,
  .approvalcard__beam span,
  .approvalcard__pulse,
  .cmp__fill--before,
  .cmp__fill--after {
    animation: none !important;
  }
  .cmp__fill--before { width: 95%; }
  .cmp__fill--after { width: 8%; }
}

/* ============================================
   HERO — SPLIT LAYOUT (text left, visual right)
   ============================================ */
.hero__inner--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  grid-template-areas:
    "copy visual"
    "stats stats";
  align-items: center;
  text-align: left;
  gap: clamp(var(--space-12), 7vw, var(--space-20));
  row-gap: var(--space-12);
}

.hero__inner--split .hero__copy {
  grid-area: copy;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-5);
}

.hero__inner--split .hero__title {
  text-align: left;
  max-width: 18ch;
  font-size: clamp(var(--text-2xl), 4.4vw, var(--text-3xl));
  margin-top: 0;
}

.hero__inner--split .hero__sub {
  text-align: left;
  max-width: 52ch;
}

.hero__inner--split .hero__cta {
  justify-content: flex-start;
}

.hero__inner--split .hero__wink {
  margin-top: 0;
  text-align: left;
}

.hero__inner--split .hero__stats {
  grid-area: stats;
  margin-top: 0;
  max-width: none;
  margin-inline: 0;
}

/* Hero visual frame */
.hero__visual {
  grid-area: visual;
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__visual-frame {
  position: relative;
  width: 100%;
  max-width: 620px;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-xl, 24px);
  overflow: hidden;
  background: linear-gradient(135deg, #f5f3ee 0%, #ece8dd 100%);
  box-shadow:
    0 30px 80px -30px color-mix(in oklab, var(--color-primary-deep, #004428) 32%, transparent),
    0 12px 32px -12px rgba(15, 30, 24, 0.18),
    0 0 0 1px var(--color-border);
  isolation: isolate;
  transform: translateZ(0);
}

.hero__visual-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05) contrast(1.02);
  animation: hero-float 9s ease-in-out infinite;
}

@keyframes hero-float {
  0%, 100% { transform: translateY(0) scale(1.01); }
  50%      { transform: translateY(-10px) scale(1.025); }
}

.hero__visual-glow {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(60% 40% at 80% 15%, color-mix(in oklab, var(--color-primary) 38%, transparent) 0%, transparent 60%),
    radial-gradient(50% 35% at 15% 90%, color-mix(in oklab, var(--color-primary-deep, #004428) 40%, transparent) 0%, transparent 60%);
  mix-blend-mode: screen;
  pointer-events: none;
  opacity: 0.55;
}

.hero__visual-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(8, 18, 14, 0.78);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  color: #f4faf6;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 32px -12px rgba(0, 30, 18, 0.55);
  z-index: 2;
}

.hero__visual-chip--top {
  top: 18px;
  left: 18px;
}

.hero__visual-chip--bot {
  bottom: 18px;
  right: 18px;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  padding: 12px 16px;
  border-radius: 14px;
  text-transform: none;
  letter-spacing: 0.01em;
  font-family: var(--font-body);
  font-size: 12px;
}

.hero__visual-chip-amount {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: #fff;
  font-feature-settings: 'tnum';
}

.hero__visual-chip-meta {
  color: rgba(244, 250, 246, 0.7);
  font-weight: 500;
}

.hero__visual-chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2fb37a;
  box-shadow: 0 0 0 4px rgba(47, 179, 122, 0.18);
  animation: hero-chip-pulse 1.8s ease-in-out infinite;
}

@keyframes hero-chip-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(47, 179, 122, 0.18); }
  50%      { box-shadow: 0 0 0 8px rgba(47, 179, 122, 0.05); }
}

[data-theme='dark'] .hero__visual-frame {
  background: linear-gradient(135deg, #14201a 0%, #0a1410 100%);
  box-shadow:
    0 30px 80px -30px color-mix(in oklab, var(--color-primary) 40%, transparent),
    0 12px 32px -12px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.06);
}

/* Mobile: stack vertically */
@media (max-width: 960px) {
  .hero__inner--split {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "visual"
      "stats";
    text-align: center;
    row-gap: var(--space-8);
  }
  .hero__inner--split .hero__copy {
    align-items: center;
  }
  .hero__inner--split .hero__title,
  .hero__inner--split .hero__sub {
    text-align: center;
  }
  .hero__inner--split .hero__cta {
    justify-content: center;
  }
  .hero__inner--split .hero__wink {
    text-align: center;
  }
  .hero__visual-frame {
    max-width: 540px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__visual-frame img,
  .hero__visual-chip-dot { animation: none; }
}

/* ============================================
   QUOTE MODAL
   ============================================ */
.quotemodal[hidden] { display: none; }
.quotemodal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  animation: quote-fade 220ms ease-out;
}

@keyframes quote-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.quotemodal__backdrop {
  position: absolute;
  inset: 0;
  background: color-mix(in oklab, var(--color-primary-deep, #004428) 45%, rgba(8, 18, 14, 0.65));
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.quotemodal__panel {
  position: relative;
  width: 100%;
  max-width: 540px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl, 24px);
  box-shadow:
    0 50px 100px -20px rgba(0, 30, 18, 0.45),
    0 30px 60px -30px rgba(0, 30, 18, 0.35);
  padding: clamp(var(--space-6), 4vw, var(--space-8));
  max-height: calc(100vh - var(--space-8));
  overflow-y: auto;
  animation: quote-pop 280ms cubic-bezier(0.2, 0.8, 0.2, 1.05);
}

@keyframes quote-pop {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.quotemodal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-surface-2);
  color: var(--color-text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.quotemodal__close:hover {
  background: var(--color-primary-soft);
  color: var(--color-primary-deep, #004428);
  border-color: color-mix(in oklab, var(--color-primary) 30%, transparent);
}

.quotemodal__head {
  text-align: left;
  margin-bottom: var(--space-6);
  padding-right: var(--space-8);
}

.quotemodal__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

.quotemodal__eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--color-primary) 18%, transparent);
}

.quotemodal__title {
  font-family: var(--font-display, var(--font-body));
  font-size: clamp(1.5rem, 3.4vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--color-text);
  margin: 0 0 var(--space-2);
}

.quotemodal__sub {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin: 0;
}

/* Form */
.quoteform {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.quoteform__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

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

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

.quoteform__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: 0.005em;
}

.quoteform__field input {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-text);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md, 12px);
  padding: 12px 14px;
  width: 100%;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
  font-feature-settings: 'tnum' 1;
}

.quoteform__field input::placeholder {
  color: var(--color-text-faint);
}

.quoteform__field input:focus {
  outline: none;
  border-color: var(--color-primary);
  background: var(--color-surface);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--color-primary) 18%, transparent);
}

.quoteform__field input[aria-invalid='true'] {
  border-color: #d8463d;
  box-shadow: 0 0 0 4px rgba(216, 70, 61, 0.12);
}

.quoteform__submit {
  margin-top: var(--space-2);
  width: 100%;
  justify-content: center;
}

.quoteform__submit[disabled] {
  opacity: 0.7;
  cursor: progress;
}

.quoteform__fine {
  margin: 0;
  text-align: center;
  font-size: 11.5px;
  color: var(--color-text-faint);
  line-height: 1.5;
}

/* Success state */
.quotemodal__success[hidden] { display: none; }
.quotemodal__success {
  text-align: center;
  padding: var(--space-4) 0;
  animation: quote-pop 320ms cubic-bezier(0.2, 0.8, 0.2, 1.05);
}

.quotemodal__success-mark {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in oklab, var(--color-primary) 14%, transparent);
  color: var(--color-primary);
  margin-bottom: var(--space-4);
  box-shadow: 0 0 0 8px color-mix(in oklab, var(--color-primary) 6%, transparent);
}

.quotemodal__success h3 {
  font-family: var(--font-display, var(--font-body));
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-2);
  color: var(--color-text);
}

.quotemodal__success p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 15px;
}

/* Lock body scroll when modal open */
body.quote-open { overflow: hidden; }

/* ============================================
   HERO V3 — tightened spacing + trust elements
   ============================================ */

/* Balanced fold: matching top + bottom padding so the rhythm from nav
   → hero and stats → next section is consistent. */
.hero {
  padding-top: clamp(var(--space-10), 6vw, var(--space-16)) !important;
  padding-bottom: clamp(var(--space-10), 6vw, var(--space-16)) !important;
}

/* Pull the stats row further from the hero content and give it visual room
   before the dark section below — the whole area was cramped. */
.hero__inner--split {
  row-gap: clamp(var(--space-12), 8vw, var(--space-20)) !important;
}

.hero__inner--split .hero__stats {
  padding-top: clamp(var(--space-8), 4vw, var(--space-10)) !important;
}

/* Trust pill (replaces v2.5 badge) */
.trustpill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--color-primary) 10%, transparent);
  border: 1px solid color-mix(in oklab, var(--color-primary) 28%, transparent);
  color: var(--color-primary-deep, #004428);
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.005em;
  white-space: nowrap;
}

[data-theme='dark'] .trustpill {
  color: #6fd6a4;
  background: color-mix(in oklab, var(--color-primary) 18%, transparent);
  border-color: color-mix(in oklab, var(--color-primary) 40%, transparent);
}

.trustpill__check {
  color: var(--color-primary);
  flex-shrink: 0;
}

[data-theme='dark'] .trustpill__check {
  color: #2fb37a;
}

/* SEO subtitle under H1 */
.hero__seoline {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-primary-deep, #004428);
  letter-spacing: 0.005em;
  margin: 0;
  max-width: 56ch;
  line-height: 1.5;
}

[data-theme='dark'] .hero__seoline {
  color: #6fd6a4;
}

/* Microtrust line below CTAs */
.hero__microtrust {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--color-text-muted);
  margin: 0;
  letter-spacing: 0.005em;
}

.hero__microtrust-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--color-primary) 14%, transparent);
  flex-shrink: 0;
  animation: hero-microdot-pulse 2.4s ease-in-out infinite;
}

@keyframes hero-microdot-pulse {
  0%, 100% { box-shadow: 0 0 0 4px color-mix(in oklab, var(--color-primary) 14%, transparent); }
  50%      { box-shadow: 0 0 0 6px color-mix(in oklab, var(--color-primary) 4%, transparent); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__microtrust-dot { animation: none; }
}

/* Stat: leading dollar sign sits inline but inherits the number's color/weight */
.stat__unit--lead {
  margin-right: 1px;
  color: inherit;
  font-weight: inherit;
}

/* Tighten copy column spacing */
.hero__inner--split .hero__copy {
  gap: var(--space-4);
}

.hero__inner--split .hero__title {
  margin-bottom: 0;
}

.hero__inner--split .hero__seoline + .hero__sub {
  margin-top: calc(-1 * var(--space-1));
}

/* Mobile spacing tweaks */
@media (max-width: 960px) {
  .hero {
    padding-top: 2rem !important;
  }
  .hero__inner--split .hero__copy {
    gap: var(--space-3);
  }
  .hero__seoline {
    font-size: 13.5px;
  }
}

/* =====================================================
   HERO V4 — Maverick-style gradient plate + dashboard card
   ===================================================== */

.herov4 {
  position: relative;
  width: 100%;
  aspect-ratio: 600 / 460;
  max-width: 620px;
  margin-inline: auto;
  display: block;
}

.herov4__plate {
  position: absolute;
  inset: 0;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 30px 60px -25px rgba(0, 60, 35, 0.35),
    0 12px 24px -12px rgba(0, 60, 35, 0.18);
}

.herov4__plate-grid {
  width: 100%;
  height: 100%;
  display: block;
}

/* Dashboard card */
.pmcard {
  position: absolute;
  top: 8%;
  right: 6%;
  width: 64%;
  min-width: 280px;
  max-width: 380px;
  background: #0e1814;
  color: #e8efe9;
  border-radius: 14px;
  padding: 18px 18px 16px;
  box-shadow: 0 24px 50px -16px rgba(0, 30, 18, 0.55),
    0 4px 12px -4px rgba(0, 0, 0, 0.4),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  font-family: var(--font-body);
}

.pmcard__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.pmcard__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.pmcard__brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: rgba(47, 179, 122, 0.15);
  border-radius: 6px;
}

.pmcard__brand-name {
  color: #fff;
}

.pmcard__live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #93b6a3;
}

.pmcard__live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2fb37a;
  box-shadow: 0 0 0 3px rgba(47, 179, 122, 0.18);
  animation: pmcardPulse 2s ease-in-out infinite;
}

@keyframes pmcardPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(47, 179, 122, 0.18); }
  50% { box-shadow: 0 0 0 6px rgba(47, 179, 122, 0.05); }
}

.pmcard__hero {
  padding: 14px 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 12px;
}

.pmcard__hero-label {
  font-size: 11px;
  color: #8aa295;
  letter-spacing: 0.01em;
  margin-bottom: 6px;
}

.pmcard__hero-amount {
  font-family: var(--font-display, var(--font-body));
  font-size: clamp(28px, 4.4vw, 38px);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1;
}

.pmcard__hero-symbol {
  font-size: 0.65em;
  color: #b3cfbf;
  margin-right: 1px;
  vertical-align: 0.18em;
}

.pmcard__hero-cents {
  font-size: 0.55em;
  color: #b3cfbf;
  font-weight: 500;
  vertical-align: 0.55em;
  margin-left: 1px;
}

.pmcard__hero-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 11.5px;
  color: #8aa295;
}

.pmcard__pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -0.005em;
}

.pmcard__pill--up {
  background: rgba(47, 179, 122, 0.18);
  color: #6fe0a7;
}

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

.pmcard__tx {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
}

.pmcard__tx-icon {
  width: 36px;
  height: 24px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-family: var(--font-body);
  color: #fff;
  background: #1b2a23;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.pmcard__tx-icon--visa { background: #1a1f71; }
.pmcard__tx-icon--mc {
  background: linear-gradient(90deg, #eb001b 50%, #f79e1b 50%);
  color: #fff;
}
.pmcard__tx-icon--amex { background: #006fcf; }

.pmcard__tx-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.pmcard__tx-name {
  font-size: 12.5px;
  color: #d6e3da;
  font-weight: 500;
  line-height: 1.3;
}

.pmcard__tx-time {
  font-size: 10.5px;
  color: #6a7e72;
  margin-top: 1px;
}

.pmcard__tx-amount {
  font-size: 12.5px;
  font-weight: 600;
  color: #6fe0a7;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.pmcard__foot {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pmcard__foot-label {
  font-size: 11px;
  color: #8aa295;
}

.pmcard__foot-amount {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

/* Floating savings chip */
.herov4__chip {
  position: absolute;
  bottom: 8%;
  left: -3%;
  background: #fff;
  color: #0c1f17;
  padding: 10px 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow: 0 14px 30px -10px rgba(0, 30, 18, 0.45),
    0 4px 8px -2px rgba(0, 0, 0, 0.2),
    inset 0 0 0 1px rgba(0, 0, 0, 0.04);
  z-index: 2;
}

.herov4__chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #037449;
  box-shadow: 0 0 0 3px rgba(3, 116, 73, 0.16);
}

@media (max-width: 880px) {
  .herov4 { max-width: 520px; aspect-ratio: 5 / 4; margin-top: var(--space-8); }
  .pmcard { right: 6%; width: 76%; }
  .herov4__chip { left: 4%; bottom: 6%; font-size: 12px; padding: 8px 12px; }
}

@media (max-width: 480px) {
  .pmcard { width: 88%; min-width: 0; padding: 14px 14px 12px; }
  .pmcard__hero-amount { font-size: 26px; }
}

/* =====================================================
   PILLARS — Mercury-style type-only cards
   ===================================================== */

.pillarsm {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

@media (max-width: 960px) {
  .pillarsm { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .pillarsm { grid-template-columns: 1fr; gap: var(--space-3); }
}

.pillarsm__card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: clamp(1.1rem, 1.6vw, 1.4rem);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  transition: border-color var(--transition), box-shadow var(--transition),
    transform var(--transition);
}

.pillarsm__card:hover {
  border-color: var(--color-border-strong);
  box-shadow: 0 10px 22px -14px rgba(3, 116, 73, 0.18);
  transform: translateY(-2px);
}

.pillarsm__card--feat {
  grid-column: span 2;
  grid-row: span 2;
  background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-surface-2) 100%);
  border-color: var(--color-primary-border);
  box-shadow: 0 0 0 1px var(--color-primary-border);
  padding: clamp(1.4rem, 2.2vw, 2rem);
  gap: var(--space-3);
}

/* Accent card — solid primary green, white text, used to break the all-white bento grid */
.pillarsm__card--accent {
  background: linear-gradient(165deg, var(--color-primary-deep, #025a39) 0%, var(--color-primary, #037449) 70%, #2fb37a 120%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 14px 36px -22px rgba(3, 116, 73, 0.55);
  overflow: hidden;
}
.pillarsm__card--accent::before {
  /* subtle grid texture for interest */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at 80% 20%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 80% 20%, black 20%, transparent 70%);
  pointer-events: none;
}
.pillarsm__card--accent > * { position: relative; z-index: 1; }
.pillarsm__card--accent:hover {
  border-color: transparent;
  box-shadow: 0 18px 42px -22px rgba(3, 116, 73, 0.6);
  transform: translateY(-2px);
}
.pillarsm__card--accent .pillarsm__num { color: rgba(255, 255, 255, 0.78); }
.pillarsm__card--accent .pillarsm__title { color: #fff; }
.pillarsm__card--accent .pillarsm__body { color: rgba(255, 255, 255, 0.82); }
.pillarsm__card--accent .pillarsm__icon {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}
.pillarsm__card--accent .pillarsm__link {
  color: #fff;
}
.pillarsm__card--accent .pillarsm__link:hover { color: #e6fff3; }

@media (max-width: 960px) {
  .pillarsm__card--feat { grid-column: span 2; grid-row: auto; }
}

@media (max-width: 600px) {
  .pillarsm__card--feat { grid-column: span 1; }
}

.pillarsm__head {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.pillarsm__card--feat .pillarsm__num {
  margin: 0;
}

.pillarsm__icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(47, 179, 122, 0.14), rgba(3, 116, 73, 0.06));
  color: var(--color-primary);
  border: 1px solid rgba(3, 116, 73, 0.14);
  flex-shrink: 0;
}

.pillarsm__icon svg {
  width: 18px;
  height: 18px;
}

.pillarsm__card--feat .pillarsm__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.pillarsm__card--feat .pillarsm__icon svg { width: 22px; height: 22px; }

.pillarsm__num {
  font-family: var(--font-mono, var(--font-body));
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  text-transform: uppercase;
  margin-top: 2px;
}

.pillarsm__title {
  font-family: var(--font-display, var(--font-body));
  font-size: clamp(0.98rem, 1.1vw, 1.1rem);
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--color-text);
  max-width: 20ch;
  margin: 0;
}

.pillarsm__card--feat .pillarsm__title {
  font-size: clamp(1.25rem, 1.9vw, 1.65rem);
  letter-spacing: -0.025em;
  line-height: 1.18;
  max-width: 24ch;
}

.pillarsm__body {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  line-height: 1.55;
  max-width: 36ch;
  margin: 0;
}

.pillarsm__card--feat .pillarsm__body {
  font-size: var(--text-sm);
  max-width: 58ch;
  line-height: 1.6;
}

.pillarsm__bullets {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-1) var(--space-5);
  margin: var(--space-1) 0 0;
  padding: 0;
  font-size: 0.84rem;
}

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

.pillarsm__bullets li {
  position: relative;
  padding-left: 1.4em;
  color: var(--color-text-2);
  line-height: 1.5;
}

.pillarsm__bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 14px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
}

.pillarsm__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: var(--space-2);
  align-self: flex-start;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  letter-spacing: -0.005em;
  transition: gap var(--transition), color var(--transition);
}

.pillarsm__link:hover { gap: 10px; color: var(--color-primary-deep, #004428); }
.pillarsm__card:hover .pillarsm__link { gap: 10px; }

/* ============================================================
   Interactive ecosystem module (the stack)
   ============================================================ */
/* =========================================================================
   ECOSYSTEM — animated radial hub
   PayMullet at center, 8 satellites on a circular orbit, flowing connector
   packets, ambient rings. Pure CSS + SVG — no extra JS libs.
   ========================================================================= */
.ecosystem {
  padding: clamp(var(--space-16), 8vw, var(--space-24)) 0;
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(47,179,122,0.06), transparent 70%),
    var(--color-bg);
  position: relative;
  overflow: hidden;
}
.ecosystem::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--color-divider) 1px, transparent 1px),
    linear-gradient(to bottom, var(--color-divider) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, #000 30%, transparent 78%);
  opacity: .35;
  pointer-events: none;
}
.ecosystem .container { position: relative; }
.section-head--center { text-align: center; max-width: 720px; margin: 0 auto var(--space-12); }
.section-head--center p { margin-left: auto; margin-right: auto; }

/* Split layout: text left, animated hub right */
.ecosystem--split .ecosystem__grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(var(--space-6), 5vw, var(--space-12));
  align-items: center;
}
@media (max-width: 960px) {
  .ecosystem--split .ecosystem__grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}
.ecosystem__col--text { max-width: 42ch; }
.ecosystem--split .section-head--left { margin-bottom: var(--space-5); }
.ecosystem--split .section-head--left h2 { margin-bottom: var(--space-3); }

.ecosystem__points {
  list-style: none;
  padding: 0;
  margin: var(--space-5) 0 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.ecosystem__points.is-hidden { display: none; }
.ecosystem__points li {
  position: relative;
  display: flex;
  gap: 12px;
  padding-left: 0;
  color: var(--color-text);
  font-size: var(--text-sm);
  line-height: 1.5;
}
.ecosystem__dot {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  margin-top: 7px;
  border-radius: 3px;
  background: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(47, 179, 122, 0.15);
}
/* In split mode: center the tabs above the hub in the viz column */
.ecosystem--split .eco__tabs {
  left: auto;
  transform: none;
  margin: 0 auto var(--space-8);
  display: inline-flex;
}
.ecosystem--split .eco {
  max-width: 640px;
  text-align: center; /* centers the inline-flex tabs within the column */
}
.ecosystem--split .eco__stage { text-align: left; } /* stage content aligns normally */

/* CTAs in the left text column */
.ecosystem__cta {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-top: var(--space-8);
}
.ecosystem__cta-swap { transition: opacity .25s ease, transform .25s ease; }
.ecosystem__cta-swap.is-hidden { display: none; }
@media (max-width: 960px) {
  .ecosystem__cta { justify-content: center; margin-top: var(--space-5); }
}

/* Hide the grid background for split variant — cleaner with the text */
.ecosystem--split::before { opacity: 0.22; }

.eco {
  position: relative;
  margin: 0 auto;
  max-width: 1100px;
}

/* Tabs (unchanged from before) */
.eco__tabs {
  display: inline-flex;
  margin: 0 auto var(--space-8);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 5px;
  position: relative;
  z-index: 3;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 1px 0 rgba(0,0,0,0.02);
}
.eco__tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--color-text-2);
  font: 600 13.5px/1 var(--font-body);
  cursor: pointer;
  transition: color .25s ease, background .25s ease;
  white-space: nowrap;
}
.eco__tab svg { width: 15px; height: 15px; opacity: .8; }
.eco__tab:hover { color: var(--color-text); }
.eco__tab.is-active {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 2px 8px -2px rgba(3,116,73,0.45);
}
.eco__tab.is-active svg { opacity: 1; }

/* Stage — a square responsive canvas holding orbits, lines, hub, satellites */
.eco__stage {
  position: relative;
  margin: 0 auto;
  width: min(640px, 100%);
  aspect-ratio: 1 / 1;
  /* stage padding so satellites don't clip */
}

/* Ambient orbit rings (concentric circles that rotate slowly) */
.eco__orbits {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.eco__ring {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  border: 1px dashed rgba(47,179,122,0.22);
  transform: translate(-50%, -50%);
  animation: ecoRingSpin 60s linear infinite;
}
.eco__ring--1 { width: 34%; height: 34%; animation-duration: 48s; }
.eco__ring--2 { width: 62%; height: 62%; animation-duration: 80s; animation-direction: reverse; border-color: rgba(47,179,122,0.16); }
.eco__ring--3 { width: 92%; height: 92%; animation-duration: 120s; border-color: rgba(47,179,122,0.10); }
@keyframes ecoRingSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }

/* Tiny spark dots orbiting on the rings */
.eco__ring-spark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: #2fb37a;
  box-shadow: 0 0 12px rgba(47,179,122,0.9), 0 0 24px rgba(47,179,122,0.35);
  transform-origin: 0 0;
  animation: ecoOrbit 12s linear infinite;
}
.eco__ring-spark--a { --r: 17%; animation-duration: 9s; }
.eco__ring-spark--b { --r: 31%; animation-duration: 16s; animation-direction: reverse; opacity: 0.7; }
.eco__ring-spark--c { --r: 46%; animation-duration: 24s; opacity: 0.5; }
@keyframes ecoOrbit {
  from { transform: rotate(0deg) translateX(var(--r, 20%)) rotate(0deg); }
  to   { transform: rotate(360deg) translateX(var(--r, 20%)) rotate(-360deg); }
}

/* SVG connectors */
.eco__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
}
.eco__line-group line {
  stroke-dasharray: 2 6;
  animation: ecoDash 14s linear infinite;
  opacity: 0.55;
}
@keyframes ecoDash {
  to { stroke-dashoffset: -120; }
}
/* When audience toggles, briefly pulse the lines brighter */
.eco.is-pulsing .eco__line-group line {
  animation: ecoDrawIn 0.9s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes ecoDrawIn {
  0%   { opacity: 0; stroke-dasharray: 2 800; }
  60%  { opacity: 1; }
  100% { opacity: 0.55; stroke-dasharray: 2 6; }
}

/* Flowing packets — each travels from its satellite end toward the hub.
   Packets are <circle cx="sat-x" cy="sat-y"/>; we animate transform so they
   slide from 0,0 (rest at satellite) toward the hub offset. */
.eco__packet {
  fill: #2fb37a;
  filter: drop-shadow(0 0 6px rgba(47,179,122,0.9)) drop-shadow(0 0 12px rgba(47,179,122,0.5));
  animation-duration: 2.6s;
  animation-iteration-count: infinite;
  animation-timing-function: cubic-bezier(0.55, 0, 0.35, 1);
  animation-delay: calc(var(--i, 0) * -0.32s);
  transform-box: fill-box;
  transform-origin: center;
}
/* 8 per-line keyframes animating translate from satellite position TO hub (400,400).
   Delta = (400 - sat_x, 400 - sat_y). */
.eco__packet:nth-child(1) { animation-name: ecoPk0; } /* 400,80  -> d=(0,320)    */
.eco__packet:nth-child(2) { animation-name: ecoPk1; } /* 626,174 -> d=(-226,226) */
.eco__packet:nth-child(3) { animation-name: ecoPk2; } /* 720,400 -> d=(-320,0)   */
.eco__packet:nth-child(4) { animation-name: ecoPk3; } /* 626,626 -> d=(-226,-226)*/
.eco__packet:nth-child(5) { animation-name: ecoPk4; } /* 400,720 -> d=(0,-320)   */
.eco__packet:nth-child(6) { animation-name: ecoPk5; } /* 174,626 -> d=(226,-226) */
.eco__packet:nth-child(7) { animation-name: ecoPk6; } /* 80,400  -> d=(320,0)    */
.eco__packet:nth-child(8) { animation-name: ecoPk7; } /* 174,174 -> d=(226,226)  */

@keyframes ecoPk0 { 0%{transform:translate(0,0);opacity:0}10%{opacity:1}90%{opacity:0.9}100%{transform:translate(0,320px);opacity:0} }
@keyframes ecoPk1 { 0%{transform:translate(0,0);opacity:0}10%{opacity:1}90%{opacity:0.9}100%{transform:translate(-226px,226px);opacity:0} }
@keyframes ecoPk2 { 0%{transform:translate(0,0);opacity:0}10%{opacity:1}90%{opacity:0.9}100%{transform:translate(-320px,0);opacity:0} }
@keyframes ecoPk3 { 0%{transform:translate(0,0);opacity:0}10%{opacity:1}90%{opacity:0.9}100%{transform:translate(-226px,-226px);opacity:0} }
@keyframes ecoPk4 { 0%{transform:translate(0,0);opacity:0}10%{opacity:1}90%{opacity:0.9}100%{transform:translate(0,-320px);opacity:0} }
@keyframes ecoPk5 { 0%{transform:translate(0,0);opacity:0}10%{opacity:1}90%{opacity:0.9}100%{transform:translate(226px,-226px);opacity:0} }
@keyframes ecoPk6 { 0%{transform:translate(0,0);opacity:0}10%{opacity:1}90%{opacity:0.9}100%{transform:translate(320px,0);opacity:0} }
@keyframes ecoPk7 { 0%{transform:translate(0,0);opacity:0}10%{opacity:1}90%{opacity:0.9}100%{transform:translate(226px,226px);opacity:0} }

/* ===== Hub (center) ===== */
.eco__hub {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  pointer-events: none;
}
/* Three concentric pulse rings emanating from hub */
.eco__hub-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 140px;
  height: 140px;
  margin: -70px 0 0 -70px;
  border-radius: 50%;
  border: 1.5px solid rgba(47,179,122,0.55);
  opacity: 0;
  animation: ecoHubRing 3.6s ease-out infinite;
}
.eco__hub-ring--1 { animation-delay: 0s; }
.eco__hub-ring--2 { animation-delay: 1.2s; }
.eco__hub-ring--3 { animation-delay: 2.4s; }
@keyframes ecoHubRing {
  0%   { opacity: 0; transform: scale(0.6); }
  25%  { opacity: 0.7; }
  100% { opacity: 0; transform: scale(2.2); }
}

/* Core — pill-shaped card */
.eco__hub-core {
  position: relative;
  width: 168px;
  min-height: 168px;
  border-radius: 28px;
  padding: 2px; /* room for spinning border */
  background: radial-gradient(circle at 30% 20%, rgba(110,231,179,0.25), transparent 60%), linear-gradient(160deg, #003a22, #037449 55%, #025a39);
  box-shadow:
    0 22px 60px -18px rgba(3,116,73,0.75),
    0 0 0 1px rgba(110,231,179,0.35),
    inset 0 1px 0 rgba(255,255,255,0.12);
  color: #fff;
  pointer-events: auto;
  animation: ecoHubFloat 6s ease-in-out infinite;
}
@keyframes ecoHubFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}
/* Rotating conic border */
.eco__hub-spin {
  position: absolute;
  inset: -2px;
  border-radius: 30px;
  padding: 2px;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(110,231,179,0.9) 60deg, transparent 140deg, transparent 220deg, rgba(47,179,122,0.6) 280deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  animation: ecoHubSpin 7s linear infinite;
  pointer-events: none;
}
@keyframes ecoHubSpin { to { transform: rotate(360deg); } }

.eco__hub-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 22px 18px 20px;
  text-align: center;
  border-radius: 26px;
  background: rgba(0, 30, 18, 0.15);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.eco__hub-logo {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
}
.eco__hub-logo svg { width: 28px; height: 28px; }
.eco__hub-label {
  font: 800 17px/1 var(--font-display);
  letter-spacing: -0.01em;
  color: #fff;
}
.eco__hub-sub {
  font: 500 11.5px/1.4 var(--font-body);
  color: rgba(255,255,255,0.78);
  max-width: 130px;
}
.eco__hub-sub.is-hidden { display: none; }

/* ===== Satellites ===== */
.eco__sats {
  position: absolute;
  inset: 0;
  z-index: 2;
}
.eco__sats.is-hidden { display: none; }

.eco__sat {
  /* each satellite positioned on a circle using --i (0..7) * 45deg.
     --radius is px (not %) because transform translate() % resolves against
     the element's own size, not the stage. */
  --angle: calc((var(--i) * 45) * 1deg - 90deg);
  --angle-neg: calc(-1 * ((var(--i) * 45) * 1deg - 90deg));
  --radius: 250px;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 150px;
  padding: 14px 14px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  box-shadow: 0 6px 18px -10px rgba(0,0,0,0.12);
  transform: translate(-50%, -50%) rotate(var(--angle)) translate(var(--radius)) rotate(var(--angle-neg));
  transition: box-shadow .3s ease, border-color .3s ease, background .3s ease;
  opacity: 0;
  animation:
    ecoSatIn 0.55s cubic-bezier(0.4,0,0.2,1) forwards,
    ecoSatFloat 5.5s ease-in-out infinite;
  animation-delay:
    calc(var(--i) * 80ms),
    calc(var(--i) * 0.25s + 600ms);
}
@keyframes ecoSatIn {
  from { opacity: 0; transform: translate(-50%, -50%) rotate(var(--angle)) translate(calc(var(--radius) - 24px)) rotate(var(--angle-neg)) scale(0.9); }
  to   { opacity: 1; transform: translate(-50%, -50%) rotate(var(--angle)) translate(var(--radius)) rotate(var(--angle-neg)) scale(1); }
}
@keyframes ecoSatFloat {
  0%, 100% { transform: translate(-50%, -50%) rotate(var(--angle)) translate(var(--radius)) rotate(var(--angle-neg)) translateY(0); }
  50%      { transform: translate(-50%, -50%) rotate(var(--angle)) translate(var(--radius)) rotate(var(--angle-neg)) translateY(-4px); }
}
.eco__sat:hover {
  border-color: rgba(3,116,73,0.55);
  box-shadow: 0 14px 32px -12px rgba(3,116,73,0.28);
  background: var(--color-surface-2, var(--color-surface));
}

.eco__icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(47,179,122,0.12);
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.eco__icon svg { width: 20px; height: 20px; }
.eco__label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: -0.005em;
  line-height: 1.25;
}

/* CTA row */
.eco__cta {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: var(--space-10);
  flex-wrap: wrap;
}
.eco__cta [data-eco-cta] { transition: opacity .25s ease, transform .25s ease; }
.eco__cta [data-eco-cta].is-secondary { opacity: 0.55; }
.eco__cta [data-eco-cta].is-secondary:hover { opacity: 1; }

/* ===== Responsive ===== */
@media (max-width: 880px) {
  .eco__stage { width: min(520px, 100%); }
  .eco__sat { width: 128px; padding: 11px 11px 10px; --radius: 200px; }
  .eco__hub-core { width: 146px; min-height: 146px; }
  .eco__hub-logo { width: 42px; height: 42px; }
  .eco__hub-label { font-size: 15px; }
}
@media (max-width: 640px) {
  /* Collapse radial layout to grid-stack on small screens */
  .eco__stage {
    width: 100%;
    aspect-ratio: auto;
    padding: 24px 0 8px;
  }
  .eco__lines, .eco__orbits { display: none; }
  .eco__hub {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
  }
  .eco__hub-core { width: 220px; min-height: auto; padding: 4px; }
  .eco__hub-inner { padding: 18px 20px 18px; }
  .eco__sats {
    position: relative;
    inset: auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .eco__sat {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    padding: 12px 10px 10px;
    opacity: 1;
    transform: none !important;
    animation: ecoSatInMobile 0.5s cubic-bezier(0.4,0,0.2,1) both;
    animation-delay: calc(var(--i) * 60ms);
  }
  @keyframes ecoSatInMobile {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: none; }
  }
  .eco__icon { width: 34px; height: 34px; }
  .eco__icon svg { width: 18px; height: 18px; }
  .eco__label { font-size: 12px; }
  .eco__tab { padding: 9px 14px; font-size: 12.5px; }
  .eco__tab span { font-size: 12.5px; }
}

/* Reduced motion: freeze everything animated */
@media (prefers-reduced-motion: reduce) {
  .eco__ring,
  .eco__ring-spark,
  .eco__packet,
  .eco__hub-ring,
  .eco__hub-core,
  .eco__hub-spin,
  .eco__sat,
  .eco__line-group line {
    animation: none !important;
  }
  .eco__packet { opacity: 0.6; }
  .eco__sat {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(var(--angle)) translate(var(--radius)) rotate(var(--angle-neg));
  }
}


/* =========================================================================
   Reviews (testimonials) — dark editorial canvas
   Matches login.html aesthetic: radial green glow + subtle grid overlay,
   italic accent type, pull-quote mark, featured large quote + supporting
   cards, mono stat row on dark.
   ========================================================================= */

.reviews {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 6vw, 84px) 0;
  color: #f3f4f7;
  isolation: isolate;
  background:
    radial-gradient(1100px 720px at 88% 10%, rgba(47, 179, 122, 0.22), transparent 60%),
    radial-gradient(820px 600px at 6% 92%, rgba(3, 116, 73, 0.28), transparent 54%),
    linear-gradient(140deg, #0a0b14 0%, #12162a 55%, #004428 140%);
}
.reviews__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.reviews__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 50%, #000 40%, transparent 100%);
}
.reviews__container { position: relative; }

.reviews__head { max-width: 780px; margin-bottom: clamp(28px, 3.2vw, 42px); }
.reviews__eyebrow {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2fb37a;
  margin-bottom: 18px;
}
.reviews__eyebrow::before {
  content: '';
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #2fb37a;
  box-shadow: 0 0 10px rgba(47, 179, 122, 0.7);
  margin-right: 8px;
  vertical-align: middle;
  transform: translateY(-1px);
}
.reviews__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: #fff;
  margin: 0;
}
.reviews__title em { font-style: italic; font-weight: 500; color: #2fb37a; }

/* Hero quote */
.reviews__hero {
  position: relative;
  margin: 0 0 clamp(24px, 3vw, 36px);
  padding: clamp(24px, 3vw, 36px) clamp(28px, 4vw, 48px) clamp(24px, 3vw, 36px);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.09);
  overflow: hidden;
}
.reviews__hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(47, 179, 122, 0.08), transparent 55%);
  pointer-events: none;
}
.reviews__mark {
  position: absolute;
  top: 24px;
  left: clamp(24px, 3vw, 44px);
  color: #2fb37a;
  z-index: 0;
}
.reviews__hero-quote {
  position: relative;
  margin: 22px 0 22px;
  padding-top: 8px;
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.35rem, 2.1vw, 1.75rem);
  line-height: 1.28;
  letter-spacing: -0.015em;
  color: #fff;
  max-width: 980px;
}
.reviews__hero-quote em {
  font-style: italic;
  font-weight: 500;
  color: #2fb37a;
}
.reviews__hero-meta {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.reviews__avatar {
  flex: 0 0 auto;
  width: 44px; height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #2fb37a, #037449);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  box-shadow: 0 0 0 3px rgba(47, 179, 122, 0.18);
}
.reviews__avatar--hero {
  width: 52px; height: 52px;
  font-size: 16px;
  box-shadow: 0 0 0 4px rgba(47, 179, 122, 0.18);
}

.reviews__byline {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.2;
  min-width: 0;
}
.reviews__name {
  font-weight: 600;
  font-size: 15px;
  color: #fff;
  letter-spacing: -0.005em;
}
.reviews__role {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: rgba(243, 244, 247, 0.62);
}
.reviews__chip {
  margin-left: auto;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(47, 179, 122, 0.12);
  border: 1px solid rgba(47, 179, 122, 0.3);
  color: #2fb37a;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Supporting quote cards */
.reviews__support {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2vw, 22px);
  margin-bottom: 0;
}
.reviews__card {
  position: relative;
  margin: 0;
  padding: 22px 22px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.09);
  transition: background 220ms ease, border-color 220ms ease, transform 220ms ease;
}
.reviews__card::before {
  content: '\201C';
  position: absolute;
  top: 14px;
  right: 22px;
  font-family: var(--font-display);
  font-size: 3.4rem;
  line-height: 1;
  color: rgba(47, 179, 122, 0.22);
  pointer-events: none;
}
.reviews__card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(47, 179, 122, 0.38);
  transform: translateY(-2px);
}
.reviews__card blockquote {
  margin: 0 0 18px;
  font-size: 15.5px;
  line-height: 1.58;
  color: rgba(243, 244, 247, 0.86);
}
.reviews__card blockquote em {
  font-style: italic;
  font-weight: 500;
  color: #2fb37a;
}
.reviews__card figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Stats row */
.reviews__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.reviews__stat {
  padding: 26px clamp(14px, 2vw, 22px);
  border-right: 1px solid rgba(255, 255, 255, 0.09);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.reviews__stat:last-child { border-right: 0; }
.reviews__stat-k {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  line-height: 1;
  letter-spacing: -0.025em;
  color: #fff;
}
.reviews__stat-l {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(243, 244, 247, 0.56);
}

/* Tablet */
@media (max-width: 900px) {
  .reviews__support { grid-template-columns: 1fr; }
  .reviews__stats { grid-template-columns: repeat(2, 1fr); }
  .reviews__stat {
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  }
  .reviews__stat:nth-child(odd) { border-right: 1px solid rgba(255, 255, 255, 0.09); }
  .reviews__stat:nth-child(even) { border-right: 0; }
  .reviews__stat:nth-last-child(-n+2) { border-bottom: 0; }
}

/* Mobile */
@media (max-width: 560px) {
  .reviews { padding: 64px 0 72px; }
  .reviews__hero {
    padding: 28px 24px;
    border-radius: 20px;
  }
  .reviews__mark { width: 56px; height: 44px; top: 18px; left: 20px; }
  .reviews__hero-quote {
    font-size: 1.25rem;
    line-height: 1.35;
    margin: 20px 0 22px;
  }
  .reviews__chip {
    margin-left: 0;
    flex-basis: 100%;
    text-align: center;
  }
  .reviews__hero-meta { gap: 14px; }
  .reviews__card { padding: 22px 22px 20px; }
  .reviews__stats { grid-template-columns: 1fr; }
  .reviews__stat { border-right: 0 !important; border-bottom: 1px solid rgba(255, 255, 255, 0.09); }
  .reviews__stat:last-child { border-bottom: 0; }
}

/* =====================================================
   HERO STAGE V5 — animated credit card + live dashboard
   ===================================================== */

.hstage {
  position: relative;
  width: 100%;
  aspect-ratio: 600 / 460;
  max-width: 640px;
  margin-inline: auto;
  display: block;
  isolation: isolate;
  perspective: 1400px;
  animation: hstageIntro 900ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes hstageIntro {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hstage__plate {
  position: absolute;
  inset: 0;
  border-radius: 22px;
  overflow: hidden;
  box-shadow:
    0 30px 60px -25px rgba(0, 60, 35, 0.38),
    0 12px 24px -12px rgba(0, 60, 35, 0.20);
}
.hstage__plate-svg { width: 100%; height: 100%; display: block; }

/* Sparkline at the bottom of the plate */
.hstage__spark {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 32%;
  pointer-events: none;
  opacity: 0.85;
}
.hstage__spark-line {
  stroke-dasharray: 2400;
  stroke-dashoffset: 2400;
  animation: hsSparkDraw 6s cubic-bezier(0.65, 0, 0.35, 1) infinite;
  filter: drop-shadow(0 0 6px rgba(111, 224, 167, 0.55));
}
.hstage__spark-fill {
  opacity: 0;
  animation: hsSparkFill 6s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
@keyframes hsSparkDraw {
  0%   { stroke-dashoffset: 2400; }
  55%  { stroke-dashoffset: 0; }
  85%  { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}
@keyframes hsSparkFill {
  0%, 35% { opacity: 0; }
  60%     { opacity: 1; }
  85%     { opacity: 1; }
  100%    { opacity: 0; }
}

/* =========================
   Floating credit card
   ========================= */
.hscard {
  position: absolute;
  left: 5%;
  bottom: 8%;
  width: 56%;
  max-width: 340px;
  aspect-ratio: 1.586 / 1;       /* ISO 7810 ID-1 */
  z-index: 2;
  transform-style: preserve-3d;
  transform: rotate(-6deg) rotateY(-10deg) rotateX(8deg);
  animation: hscardFloat 7s ease-in-out infinite;
  filter: drop-shadow(0 20px 30px rgba(0, 30, 18, 0.45));
}

@keyframes hscardFloat {
  0%, 100% { transform: rotate(-6deg) rotateY(-10deg) rotateX(8deg)  translateY(0); }
  50%      { transform: rotate(-5deg) rotateY(-12deg) rotateX(10deg) translateY(-8px); }
}

.hscard__face {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  padding: 14px 18px 16px;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 8px;
  color: #fff;
  font-family: var(--font-body);
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(255,255,255,0.22), transparent 58%),
    linear-gradient(135deg, #04573a 0%, #037449 45%, #0a8a55 100%);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.22),
    inset 0 -1px 0 rgba(0,0,0,0.25);
}

/* Shine sweep across the card surface every few seconds */
.hscard__shine {
  position: absolute;
  inset: -20% -30%;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 35%,
    rgba(255,255,255,0.28) 48%,
    rgba(255,255,255,0.05) 56%,
    transparent 72%
  );
  transform: translateX(-50%);
  animation: hscardShine 5.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes hscardShine {
  0%   { transform: translateX(-60%); }
  55%  { transform: translateX(60%); }
  100% { transform: translateX(60%); }
}

.hscard__brand {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  position: relative;
  z-index: 1;
}
.hscard__mark {
  display: inline-flex;
  width: 22px; height: 22px;
  border-radius: 6px;
  background: rgba(255,255,255,0.16);
  align-items: center;
  justify-content: center;
}
.hscard__brand-name { letter-spacing: -0.01em; }

.hscard__chip {
  width: 38px;
  height: 28px;
  border-radius: 5px;
  background: linear-gradient(145deg, #e6c869, #b8902f 55%, #7b5c10);
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  padding: 4px;
  gap: 2px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.18);
  position: relative;
  z-index: 1;
  margin-top: 4px;
}
.hscard__chip span {
  background: linear-gradient(145deg, rgba(0,0,0,0.15), transparent);
  border-radius: 2px;
}

.hscard__num {
  display: flex;
  gap: 12px;
  align-items: center;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: clamp(14px, 1.9vw, 17px);
  letter-spacing: 0.08em;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.35);
  position: relative;
  z-index: 1;
}
.hscard__num span { font-variant-numeric: tabular-nums; }

.hscard__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  position: relative;
  z-index: 1;
}
.hscard__col { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hscard__col-lbl {
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}
.hscard__col-val {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.hscard__net {
  display: inline-flex;
  align-items: center;
  margin-left: auto;
}
.hscard__net-dot {
  display: inline-block;
  width: 18px; height: 18px;
  border-radius: 50%;
}
.hscard__net-dot--1 { background: #eb001b; }
.hscard__net-dot--2 { background: #f79e1b; margin-left: -8px; mix-blend-mode: screen; }

/* =========================
   Dashboard card — reposition above the credit card
   ========================= */
.hstage .pmcard {
  top: 6%;
  right: 5%;
  left: auto;
  width: 58%;
  min-width: 260px;
  max-width: 340px;
  z-index: 3;
}

/* Transaction list animation: new items fade/slide in at the top */
.hstage .pmcard__tx {
  animation: hsTxIn 600ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes hsTxIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hstage .pmcard__tx.is-fading {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 280ms cubic-bezier(0.4, 0, 1, 1),
              transform 280ms cubic-bezier(0.4, 0, 1, 1);
}

/* Tx amount briefly flashes when it's a freshly added row */
.hstage .pmcard__tx.is-new .pmcard__tx-amount {
  animation: hsAmountFlash 900ms ease-out;
}
@keyframes hsAmountFlash {
  0%   { color: #fff; text-shadow: 0 0 10px rgba(111,224,167,0.8); }
  100% { color: #6fe0a7; text-shadow: none; }
}

/* Savings chip (count-up) */
.hstage__chip {
  position: absolute;
  bottom: -4%;
  left: 42%;
  background: #fff;
  color: #0c1f17;
  padding: 10px 16px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow:
    0 18px 36px -12px rgba(0, 30, 18, 0.5),
    0 4px 10px -2px rgba(0,0,0,0.22),
    inset 0 0 0 1px rgba(0,0,0,0.04);
  z-index: 4;
  white-space: nowrap;
}
.hstage__chip-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #037449;
  box-shadow: 0 0 0 4px rgba(3,116,73,0.16);
  animation: hsChipPulse 2s ease-in-out infinite;
}
@keyframes hsChipPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(3,116,73,0.16); }
  50%      { box-shadow: 0 0 0 7px rgba(3,116,73,0.04); }
}
.hstage__chip-text {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
}
.hstage__chip-num {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: #037449;
}

/* Pop-up notification (shown briefly when a tx arrives) */
.hstage__pop {
  position: absolute;
  top: 12%;
  right: 3%;
  background: #fff;
  color: #0c1f17;
  padding: 8px 12px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow:
    0 14px 28px -10px rgba(0,30,18,0.45),
    0 3px 8px -2px rgba(0,0,0,0.18);
  opacity: 0;
  transform: translateY(-8px) scale(0.96);
  pointer-events: none;
  transition:
    opacity 240ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 240ms cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 5;
}
.hstage__pop.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.hstage__pop-icon {
  display: inline-flex;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: color-mix(in oklab, #037449 14%, transparent);
  color: #037449;
  align-items: center;
  justify-content: center;
}

/* Responsive tweaks */
@media (max-width: 880px) {
  .hstage {
    max-width: 540px;
    aspect-ratio: 5 / 4;
    margin-top: var(--space-8);
  }
  .hstage .pmcard { right: 4%; width: 62%; top: 5%; }
  .hscard { width: 60%; left: 4%; bottom: 8%; }
  .hstage__chip { font-size: 12px; padding: 8px 13px; bottom: -4%; left: 28%; }
}

@media (max-width: 560px) {
  .hstage {
    aspect-ratio: auto;
    height: 480px;
    max-width: 100%;
    width: 100%;
    overflow: visible;
    margin-top: var(--space-4);
  }
  .hstage__plate { border-radius: 18px; }
  /* Dashboard card: center top, narrower so it doesn't fill the whole stage */
  .hstage .pmcard {
    position: absolute !important;
    top: 4% !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%);
    width: 84% !important;
    min-width: 0 !important;
    max-width: 320px !important;
    padding: 12px 13px 11px !important;
    border-radius: 14px;
  }
  .hstage .pmcard__hero { margin-bottom: 8px; }
  .hstage .pmcard__foot { margin-top: 10px; padding-top: 10px; }
  /* Credit card: tucked bottom-left, peeking out below the dashboard */
  .hscard {
    width: 58% !important;
    max-width: 230px;
    left: 6% !important;
    right: auto;
    bottom: 4% !important;
    margin-left: 0 !important;
    transform: rotate(-6deg) rotateY(-8deg) rotateX(4deg);
    z-index: 2;
  }
  .hscard__face { padding: 10px 12px 12px; gap: 6px; }
  .hscard__num { font-size: 11px; gap: 6px; letter-spacing: 0.05em; }
  .hscard__col-val { font-size: 10px; }
  .hscard__col-lbl { font-size: 8px; }
  .hscard__brand { font-size: 10px; gap: 5px; }
  .hscard__mark { width: 18px; height: 18px; }
  .hscard__mark svg { width: 10px; height: 10px; }
  .hscard__chip { width: 26px; height: 19px; margin-top: 2px; }
  /* Savings chip: bottom-right, out of the card's way */
  .hstage__chip {
    font-size: 11px;
    padding: 7px 12px;
    bottom: 6% !important;
    left: auto !important;
    right: 4%;
  }
  .hstage__pop { display: none; }
  .hstage__spark { height: 26%; opacity: 0.55; }
}

/* ============================================
   "How it works" — animated steps (draw line + staggered reveal + mini illustrations)
   ============================================ */

.steps--animated {
  /* push content down a touch so illustrations have room */
  margin-top: var(--space-14);
}

/* Hide the legacy dotted spine when the animated line is present */
.steps--animated::before { display: none; }

/* Connector line — draws via scaleX transform from left-to-right */
.steps__line {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  background-image: repeating-linear-gradient(to right, var(--color-primary-border) 0 8px, transparent 8px 12px);
}

.steps__line--h {
  top: 28px;
  left: 6%;
  right: 6%;
  height: 2px;
}

.steps__line--h span {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--color-primary) 0%, var(--color-accent) 100%);
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 1.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.steps__line--v { display: none; }
.steps__line--v span {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--color-primary) 0%, var(--color-accent) 100%);
  transform-origin: top center;
  transform: scaleY(0);
  transition: transform 1.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.steps--animated.is-revealed .steps__line--h span { transform: scaleX(1); }
.steps--animated.is-revealed .steps__line--v span { transform: scaleY(1); }

/* Stagger the step cards in */
.steps--animated .step {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.steps--animated.is-revealed .step { opacity: 1; transform: translateY(0); }
.steps--animated.is-revealed .step[data-step="1"] { transition-delay: 0.30s; }
.steps--animated.is-revealed .step[data-step="2"] { transition-delay: 0.55s; }
.steps--animated.is-revealed .step[data-step="3"] { transition-delay: 0.80s; }
.steps--animated.is-revealed .step[data-step="4"] { transition-delay: 1.05s; }

/* Scale the dot on reveal */
.steps--animated .step__dot {
  transform: scale(0);
  transform-origin: center;
  transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.steps--animated.is-revealed .step[data-step="1"] .step__dot { transition-delay: 0.25s; transform: scale(1); }
.steps--animated.is-revealed .step[data-step="2"] .step__dot { transition-delay: 0.50s; transform: scale(1); }
.steps--animated.is-revealed .step[data-step="3"] .step__dot { transition-delay: 0.75s; transform: scale(1); }
.steps--animated.is-revealed .step[data-step="4"] .step__dot { transition-delay: 1.00s; transform: scale(1); }

/* Illustration container */
.step__viz {
  width: 100%;
  max-width: 220px;
  margin-bottom: var(--space-4);
  margin-top: calc(var(--space-2) * -1);
  border-radius: 12px;
  padding: 0;
  position: relative;
  aspect-ratio: 10 / 7;
}

.step__svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

/* ---- Illustration 1: statement audit ---- */
.step__viz--statement .sv-page {
  transform-origin: 34px 70px;
  transform: translateY(14px) rotate(-4deg) scale(0.94);
  opacity: 0;
  transition: transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.6s ease-out;
  transition-delay: 0.45s;
}
.steps--animated.is-revealed .step[data-step="1"] .sv-page {
  transform: translateY(0) rotate(0) scale(1);
  opacity: 1;
}

.step__viz--statement .sv-hl {
  transition: width 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.steps--animated.is-revealed .step[data-step="1"] .sv-hl--1 { width: 112px; transition-delay: 1.15s; }
.steps--animated.is-revealed .step[data-step="1"] .sv-hl--2 { width: 86px;  transition-delay: 1.35s; }
.steps--animated.is-revealed .step[data-step="1"] .sv-hl--3 { width: 70px;  transition-delay: 1.55s; }

.step__viz--statement .sv-glass {
  opacity: 0;
  transform: translate(-8px, 6px);
  transform-origin: 150px 92px;
  transform-box: fill-box;
  transition: transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.6s ease-out;
  transition-delay: 1.0s;
}
.steps--animated.is-revealed .step[data-step="1"] .sv-glass {
  opacity: 1;
  transform: translate(0, 0);
}

/* ---- Illustration 2: expert match (orbit lines + nodes) ---- */
.step__viz--match .sv-link {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.steps--animated.is-revealed .step[data-step="2"] .sv-link:nth-child(1) { stroke-dashoffset: 0; transition-delay: 0.95s; }
.steps--animated.is-revealed .step[data-step="2"] .sv-link:nth-child(2) { stroke-dashoffset: 0; transition-delay: 1.15s; }
.steps--animated.is-revealed .step[data-step="2"] .sv-link:nth-child(3) { stroke-dashoffset: 0; transition-delay: 1.35s; }

.step__viz--match .sv-center {
  opacity: 0;
  transform: scale(0.7);
  transform-origin: 100px 70px;
  transform-box: fill-box;
  transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease-out;
  transition-delay: 0.70s;
}
.steps--animated.is-revealed .step[data-step="2"] .sv-center { opacity: 1; transform: scale(1); }

.step__viz--match .sv-node {
  opacity: 0;
  transform: scale(0);
  transform-box: fill-box;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease-out;
}
.step__viz--match .sv-node--1 { transform-origin: 48px 38px; }
.step__viz--match .sv-node--2 { transform-origin: 152px 38px; }
.step__viz--match .sv-node--3 { transform-origin: 100px 122px; }
.steps--animated.is-revealed .step[data-step="2"] .sv-node--1 { opacity: 1; transform: scale(1); transition-delay: 1.15s; }
.steps--animated.is-revealed .step[data-step="2"] .sv-node--2 { opacity: 1; transform: scale(1); transition-delay: 1.30s; }
.steps--animated.is-revealed .step[data-step="2"] .sv-node--3 { opacity: 1; transform: scale(1); transition-delay: 1.45s; }

/* Orbit: slow rotation after reveal */
@keyframes svOrbit {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.steps--animated.is-revealed .step[data-step="2"] .step__svg circle[cx="100"][cy="70"][r="52"] {
  transform-origin: 100px 70px;
  transform-box: fill-box;
  animation: svOrbit 28s linear infinite;
  animation-delay: 1.6s;
}

/* ---- Illustration 3: terminal deploy + checklist ---- */
.step__viz--deploy .sv-terminal {
  opacity: 0;
  transform: translateY(10px) scale(0.95);
  transform-origin: 69px 74px;
  transform-box: fill-box;
  transition: transform 0.75s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.6s ease-out;
  transition-delay: 0.95s;
}
.steps--animated.is-revealed .step[data-step="3"] .sv-terminal {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.step__viz--deploy .sv-check {
  opacity: 0;
  transform: translateX(-8px);
  transform-box: fill-box;
  transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.4s ease-out;
}
.steps--animated.is-revealed .step[data-step="3"] .sv-check--1 { opacity: 1; transform: translateX(0); transition-delay: 1.25s; }
.steps--animated.is-revealed .step[data-step="3"] .sv-check--2 { opacity: 1; transform: translateX(0); transition-delay: 1.45s; }
.steps--animated.is-revealed .step[data-step="3"] .sv-check--3 { opacity: 1; transform: translateX(0); transition-delay: 1.65s; }
.steps--animated.is-revealed .step[data-step="3"] .sv-check--4 { opacity: 1; transform: translateX(0); transition-delay: 1.85s; }

/* Terminal screen pulse */
@keyframes svScreenPulse {
  0%, 100% { fill: #2fb37a; }
  50% { fill: #6fd5a7; }
}
.steps--animated.is-revealed .step[data-step="3"] .sv-terminal rect[x="44"][y="56"] {
  animation: svScreenPulse 2s ease-in-out infinite;
  animation-delay: 1.6s;
}

/* ---- Illustration 4: growth chart ---- */
.step__viz--grow .sv-bar {
  transition: height 0.7s cubic-bezier(0.22, 0.61, 0.36, 1), y 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.steps--animated.is-revealed .step[data-step="4"] .sv-bar--1 { height: 16px; y: 96px; transition-delay: 1.15s; }
.steps--animated.is-revealed .step[data-step="4"] .sv-bar--2 { height: 26px; y: 86px; transition-delay: 1.30s; }
.steps--animated.is-revealed .step[data-step="4"] .sv-bar--3 { height: 40px; y: 72px; transition-delay: 1.45s; }
.steps--animated.is-revealed .step[data-step="4"] .sv-bar--4 { height: 56px; y: 56px; transition-delay: 1.60s; }
.steps--animated.is-revealed .step[data-step="4"] .sv-bar--5 { height: 74px; y: 38px; transition-delay: 1.75s; }

.step__viz--grow .sv-trend {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.2s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: 1.4s;
}
.steps--animated.is-revealed .step[data-step="4"] .sv-trend { stroke-dashoffset: 0; }

.step__viz--grow .sv-arrow {
  opacity: 0;
  transform: scale(0.4);
  transform-origin: 138px 38px;
  transform-box: fill-box;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease-out;
  transition-delay: 2.4s;
}
.steps--animated.is-revealed .step[data-step="4"] .sv-arrow { opacity: 1; transform: scale(1); }

@keyframes svArrowPulse {
  0%, 100% { opacity: 0.35; transform: scale(1); }
  50% { opacity: 0; transform: scale(1.5); }
}
.steps--animated.is-revealed .step[data-step="4"] .sv-arrow circle:last-child {
  transform-origin: 138px 38px;
  transform-box: fill-box;
  animation: svArrowPulse 2.2s ease-out infinite;
  animation-delay: 2.8s;
}

.step__viz--grow .sv-live {
  opacity: 0;
  transform: translateY(-6px);
  transform-box: fill-box;
  transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.4s ease-out;
  transition-delay: 2.6s;
}
.steps--animated.is-revealed .step[data-step="4"] .sv-live { opacity: 1; transform: translateY(0); }

@keyframes svLiveDot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
.steps--animated.is-revealed .step[data-step="4"] .sv-live circle {
  animation: svLiveDot 1.6s ease-in-out infinite;
  animation-delay: 3.0s;
}

/* ---- Mobile (<=900px): vertical line; keep illustrations inline but smaller ---- */
@media (max-width: 900px) {
  .steps__line--h { display: none; }
  .steps__line--v {
    display: block;
    top: 0;
    bottom: 0;
    left: 28px;
    width: 2px;
    height: auto;
    background-image: repeating-linear-gradient(to bottom, var(--color-primary-border) 0 8px, transparent 8px 12px);
  }
  .step__viz {
    max-width: 180px;
    margin-bottom: var(--space-3);
  }
}

/* ---- Reduced motion: render in final state, no animations ---- */
@media (prefers-reduced-motion: reduce) {
  .steps--animated .step,
  .steps--animated .step__dot,
  .step__viz--statement .sv-page,
  .step__viz--statement .sv-hl,
  .step__viz--statement .sv-glass,
  .step__viz--match .sv-link,
  .step__viz--match .sv-center,
  .step__viz--match .sv-node,
  .step__viz--deploy .sv-terminal,
  .step__viz--deploy .sv-check,
  .step__viz--grow .sv-bar,
  .step__viz--grow .sv-trend,
  .step__viz--grow .sv-arrow,
  .step__viz--grow .sv-live {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
    stroke-dashoffset: 0 !important;
  }
  .steps__line path { stroke-dashoffset: 0 !important; transition: none !important; }
  .step__viz--statement .sv-hl--1 { width: 112px; }
  .step__viz--statement .sv-hl--2 { width: 86px; }
  .step__viz--statement .sv-hl--3 { width: 70px; }
  .step__viz--grow .sv-bar--1 { height: 16px; y: 96px; }
  .step__viz--grow .sv-bar--2 { height: 26px; y: 86px; }
  .step__viz--grow .sv-bar--3 { height: 40px; y: 72px; }
  .step__viz--grow .sv-bar--4 { height: 56px; y: 56px; }
  .step__viz--grow .sv-bar--5 { height: 74px; y: 38px; }
}

/* ============================================
   Dark mode overrides for animated steps
   ============================================ */
[data-theme="dark"] .step__viz--statement .sv-page { fill: #0f2a20; stroke: #1f3a30; }
[data-theme="dark"] .step__viz--statement .sv-row { fill: #1a3028; }
[data-theme="dark"] .step__viz--match circle[stroke="#d9ece2"] { stroke: #1f3a30; }
[data-theme="dark"] .step__viz--grow line[stroke="#d9ece2"] { stroke: #1f3a30; }

/* Reduced motion: kill all continuous animations, keep layout */
@media (prefers-reduced-motion: reduce) {
  .hstage,
  .hstage__spark-line,
  .hstage__spark-fill,
  .hscard,
  .hscard__shine,
  .hstage__chip-dot,
  .hstage .pmcard__tx,
  .hstage .pmcard__tx.is-new .pmcard__tx-amount {
    animation: none !important;
  }
  .hstage__spark-line { stroke-dashoffset: 0; }
  .hstage__spark-fill { opacity: 1; }
}

/* =========================================================================
   Nav dropdown (base + simple variant) — shared across ALL pages.
   Used by the Products dropdown in the top nav. The Industries mega-menu
   lives in industries.css and overrides these defaults via source order on
   pages that load both stylesheets.
   ========================================================================= */
.nav__dropdown { position: relative; }
.nav__dropdown-trigger {
  background: transparent;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--color-text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.nav__dropdown-trigger::after {
  content: '';
  width: 8px; height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 200ms ease;
}
.nav__dropdown-trigger:hover,
.nav__dropdown[data-open='true'] .nav__dropdown-trigger {
  color: var(--color-text);
}
.nav__dropdown[data-open='true'] .nav__dropdown-trigger::after {
  transform: rotate(-135deg) translateY(2px);
}
.nav__dropdown-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg, 14px);
  box-shadow: 0 24px 60px -20px rgba(2, 15, 10, 0.25), 0 2px 0 rgba(0, 0, 0, 0.02);
  visibility: hidden;
  opacity: 0;
  transition: opacity 180ms ease, transform 180ms ease, visibility 0s linear 180ms;
  z-index: 60;
}
.nav__dropdown[data-open='true'] .nav__dropdown-panel {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  transition-delay: 0s;
}
@media (max-width: 900px) {
  .nav__dropdown-panel { display: none; }
}

/* Simple dropdown variant (Products nav): compact 2-col flat list. */
.nav__dropdown-panel.nav__dropdown-panel--simple {
  min-width: 460px;
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px 8px;
  border-radius: 14px;
}
.nav__dropdown-panel--simple > a {
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  padding: 10px 12px !important;
  border-radius: 10px !important;
  color: var(--color-text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  transition: background 150ms ease, color 150ms ease, transform 150ms ease;
}
.nav__dropdown-panel--simple > a:hover {
  background: var(--color-primary-soft) !important;
  color: var(--color-primary-deep, #004428) !important;
  transform: translateX(2px);
}
.nav__dropdown-panel--simple > a > span { display: block; }
.nav__dropdown-panel--simple > a small {
  display: block !important;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}
@media (max-width: 1100px) {
  .nav__dropdown-panel.nav__dropdown-panel--simple { min-width: 420px; }
}

/* ============================================================
   Pricing — 0% program side-by-side compare
   ============================================================ */
.pricing--0pct {
  /* Extra breathing room top AND bottom so this section reads as its own moment */
  padding-top: clamp(var(--space-24), 12vw, var(--space-32));
  padding-bottom: clamp(var(--space-24), 12vw, var(--space-32));
}
.pricing0 { max-width: 1100px; margin: 0 auto; }

.pricing0__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(var(--space-10), 6vw, var(--space-12));
}
.pricing0__head .eyebrow { display: inline-block; margin-bottom: var(--space-3); }
.pricing0__head h2 {
  font-size: clamp(1.9rem, 3.8vw, 2.9rem);
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 var(--space-4);
}
.pricing0__lede {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  line-height: 1.6;
  max-width: 60ch;
  margin: 0 auto;
}

.pricing0__compare {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(var(--space-4), 3vw, var(--space-6));
  margin-bottom: clamp(var(--space-10), 6vw, var(--space-12));
}
@media (max-width: 720px) {
  .pricing0__compare { grid-template-columns: 1fr; }
}

.pricing0__card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 2.4vw, 2.2rem);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.pricing0__card--old { opacity: 0.88; }
.pricing0__card--new {
  background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-primary-soft) 160%);
  border-color: var(--color-primary-border);
  box-shadow: 0 0 0 1px var(--color-primary-border), 0 14px 36px -22px rgba(3, 116, 73, 0.35);
}
.pricing0__card-head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.pricing0__card h3 {
  font-family: var(--font-display, var(--font-body));
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--color-text);
}
.pricing0__badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--color-primary);
  color: #fff;
}
.pricing0__badge--muted {
  background: var(--color-surface-3, var(--color-surface-2));
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}
.pricing0__rate {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  margin-top: var(--space-2);
}
.pricing0__rate-num {
  font-family: var(--font-display, var(--font-body));
  font-size: clamp(3rem, 5.5vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--color-text);
}
.pricing0__card--new .pricing0__rate-num { color: var(--color-primary); }
.pricing0__rate-small {
  font-size: 0.55em;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-left: 2px;
}
.pricing0__rate-plus {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-muted);
  letter-spacing: -0.01em;
}
.pricing0__rate-label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  letter-spacing: 0.005em;
  margin-top: -4px;
}

.pricing0__list {
  list-style: none;
  padding: 0;
  margin: var(--space-2) 0 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  font-size: var(--text-sm);
  line-height: 1.5;
}
.pricing0__list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--color-text);
}
.pricing0__list--muted li {
  color: var(--color-text-muted);
  padding-left: 1.2em;
  position: relative;
}
.pricing0__list--muted li::before {
  content: "—";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-text-muted);
}
.pricing0__tick {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--color-primary);
}

.pricing0__savings {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-8);
}
@media (max-width: 720px) {
  .pricing0__savings { grid-template-columns: 1fr; gap: var(--space-3); padding: var(--space-5); }
}
.pricing0__savings-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
  border-right: 1px solid var(--color-divider);
  padding-right: var(--space-4);
}
.pricing0__savings-stat:last-child { border-right: 0; padding-right: 0; }
@media (max-width: 720px) {
  .pricing0__savings-stat { border-right: 0; padding-right: 0; border-bottom: 1px solid var(--color-divider); padding-bottom: var(--space-3); }
  .pricing0__savings-stat:last-child { border-bottom: 0; padding-bottom: 0; }
}
.pricing0__savings-num {
  font-family: var(--font-display, var(--font-body));
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--color-primary);
}
.pricing0__savings-label {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.pricing0__cta {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

/* ============================================================
   HOW IT WORKS — Onboarding timeline (replaces old steps row)
   ============================================================ */
.howitworks--timeline {
  padding-top: clamp(var(--space-20), 10vw, var(--space-32));
  padding-bottom: clamp(var(--space-20), 10vw, var(--space-32));
  background:
    radial-gradient(ellipse 60% 35% at 50% 0%, rgba(47,179,122,0.06), transparent 70%),
    var(--color-bg);
  position: relative;
  overflow: hidden;
}
.howitworks--timeline .section-head { margin-bottom: clamp(var(--space-10), 6vw, var(--space-14)); }
.howitworks--timeline .section-head h2 { max-width: 22ch; margin-inline: auto; }
.timeline__lede {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  line-height: 1.6;
  max-width: 58ch;
  margin: var(--space-3) auto 0;
}

.timeline {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--space-2);
}

/* Top rail (track + animated fill + 4 markers) — grid mirrors the cards below so dots align */
.timeline__rail {
  position: relative;
  padding: 0 6%;
  margin: 0 0 var(--space-4);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
  height: 58px;
  align-items: start;
}
.timeline__rail-track,
.timeline__rail-fill {
  position: absolute;
  top: 10px;
  height: 2px;
  border-radius: 2px;
  pointer-events: none;
}
/* Track/fill span from dot 1 center to dot 4 center.
   Each column's center = padding-left (6%) + column_i_center. With 4 cols and 32px gap, first card center ~= 14.5% of container, last ~= 85.5%. We use percentages relative to .timeline (rail parent), so the edges roughly match. */
.timeline__rail-track {
  background: var(--color-border);
  opacity: 0.9;
  left: calc(6% + (100% - 12% - 3 * var(--space-5)) / 8);
  right: calc(6% + (100% - 12% - 3 * var(--space-5)) / 8);
}
.timeline__rail-fill {
  background: linear-gradient(90deg, var(--color-primary), #2fb37a);
  left: calc(6% + (100% - 12% - 3 * var(--space-5)) / 8);
  right: calc(6% + (100% - 12% - 3 * var(--space-5)) / 8);
  transform: scaleX(0);
  transform-origin: left center;
  box-shadow: 0 0 12px rgba(47, 179, 122, 0.35);
  transition: transform 1.4s cubic-bezier(.22,.75,.25,1);
}
.timeline.is-revealed .timeline__rail-fill {
  transform: scaleX(1);
}

/* Dots are now grid items, one per column — naturally centered with the cards */
.timeline__rail-marker {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .5s ease, transform .5s ease;
}
.timeline__rail-dot {
  position: relative;
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--color-bg);
  border: 2px solid var(--color-border);
  box-shadow: 0 0 0 4px var(--color-bg);
  transition: background .4s ease, border-color .4s ease, box-shadow .4s ease;
}
.timeline__rail-day {
  font-family: var(--font-mono, var(--font-body));
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  white-space: nowrap;
}
.timeline.is-revealed .timeline__rail-marker { opacity: 1; transform: translateY(0); }
.timeline.is-revealed .timeline__rail-marker:nth-child(3) { transition-delay: 0.15s; }
.timeline.is-revealed .timeline__rail-marker:nth-child(4) { transition-delay: 0.45s; }
.timeline.is-revealed .timeline__rail-marker:nth-child(5) { transition-delay: 0.80s; }
.timeline.is-revealed .timeline__rail-marker:nth-child(6) { transition-delay: 1.20s; }
.timeline.is-revealed .timeline__rail-marker:nth-child(3) .timeline__rail-dot,
.timeline.is-revealed .timeline__rail-marker:nth-child(4) .timeline__rail-dot,
.timeline.is-revealed .timeline__rail-marker:nth-child(5) .timeline__rail-dot,
.timeline.is-revealed .timeline__rail-marker:nth-child(6) .timeline__rail-dot {
  background: var(--color-primary);
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px var(--color-bg), 0 0 0 6px rgba(47,179,122,0.18);
}
.timeline.is-revealed .timeline__rail-marker:nth-child(3) .timeline__rail-day,
.timeline.is-revealed .timeline__rail-marker:nth-child(4) .timeline__rail-day,
.timeline.is-revealed .timeline__rail-marker:nth-child(5) .timeline__rail-day,
.timeline.is-revealed .timeline__rail-marker:nth-child(6) .timeline__rail-day {
  color: var(--color-text);
}

/* Step cards */
.timeline__steps {
  list-style: none;
  margin: 0;
  padding: 0 6%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}
.timeline__step {
  position: relative;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .55s ease, transform .55s ease;
}
.timeline.is-revealed .timeline__step { opacity: 1; transform: translateY(0); }
.timeline.is-revealed .timeline__step[data-step="1"] { transition-delay: 0.30s; }
.timeline.is-revealed .timeline__step[data-step="2"] { transition-delay: 0.55s; }
.timeline.is-revealed .timeline__step[data-step="3"] { transition-delay: 0.80s; }
.timeline.is-revealed .timeline__step[data-step="4"] { transition-delay: 1.05s; }

/* Short connector line from rail down to the card */
.timeline__connector {
  width: 1px;
  height: 22px;
  margin: 0 auto var(--space-3);
  background: linear-gradient(180deg, var(--color-primary) 0%, transparent 100%);
  opacity: 0;
  transition: opacity .4s ease;
}
.timeline.is-revealed .timeline__step[data-step="1"] .timeline__connector { opacity: 0.55; transition-delay: 0.35s; }
.timeline.is-revealed .timeline__step[data-step="2"] .timeline__connector { opacity: 0.55; transition-delay: 0.60s; }
.timeline.is-revealed .timeline__step[data-step="3"] .timeline__connector { opacity: 0.55; transition-delay: 0.85s; }
.timeline.is-revealed .timeline__step[data-step="4"] .timeline__connector { opacity: 0.55; transition-delay: 1.10s; }

.tcard {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
  height: 100%;
}
.tcard:hover {
  border-color: var(--color-primary-border);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -18px rgba(3, 116, 73, 0.3);
}
.tcard--accent {
  background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-primary-soft) 180%);
  border-color: var(--color-primary-border);
}
.tcard__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}
.tcard__num {
  font-family: var(--font-display, var(--font-body));
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-primary);
  line-height: 1;
}
.tcard__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--color-surface-2, rgba(0,0,0,0.04));
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}
.tcard__chip--live {
  background: var(--color-primary);
  color: #fff;
  border-color: transparent;
}
.tcard__pulse {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 0 0 rgba(255,255,255,0.7);
  animation: tcardPulse 1.8s ease-out infinite;
}
@keyframes tcardPulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,255,255,0.7); }
  70%  { box-shadow: 0 0 0 8px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}
.tcard__icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md, 10px);
  background: var(--color-primary-soft, rgba(47,179,122,0.1));
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.tcard__icon svg { width: 20px; height: 20px; }
.tcard h3 {
  font-family: var(--font-display, var(--font-body));
  font-size: 1.05rem;
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin: 0;
  color: var(--color-text);
}
.tcard p {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--color-text-muted);
  margin: 0;
}

/* Responsive: 2-up at tablet, 1-up at mobile (rail becomes vertical) */
@media (max-width: 960px) {
  .timeline__rail {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 4%;
  }
  .timeline__rail-track,
  .timeline__rail-fill {
    left: calc(4% + (100% - 8% - var(--space-5)) / 4);
    right: auto;
  }
  .timeline__rail-track {
    right: calc(4% + (100% - 8% - var(--space-5)) / 4);
  }
  .timeline__rail-fill {
    right: calc(4% + (100% - 8% - var(--space-5)) / 4);
  }
  /* Hide markers 3+4 on 2-up to avoid the rail wrapping awkwardly — keep only first two visible */
  .timeline__rail-marker:nth-child(5),
  .timeline__rail-marker:nth-child(6) { display: none; }
  .timeline__steps {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-5);
    padding: 0 4%;
  }
}
@media (max-width: 640px) {
  .timeline { padding: 0 var(--space-4); position: relative; }
  /* Vertical rail on the left running full height of the step list */
  .timeline__rail {
    display: block;
    width: 16px;
    height: auto;
    padding: 0;
    margin: 0;
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: var(--space-4);
  }
  .timeline__rail-track,
  .timeline__rail-fill {
    top: 0;
    bottom: 0;
    left: 7px;
    right: auto;
    width: 2px;
    height: auto;
  }
  .timeline.is-revealed .timeline__rail-fill { height: 100%; width: 2px; }
  /* Hide day markers on phone — rail is visual only; day info is inside each card as the chip */
  .timeline__rail-marker { display: none; }
  .timeline__steps {
    grid-template-columns: 1fr;
    padding: 0 0 0 48px;
    gap: var(--space-5);
    position: relative;
  }
  .timeline__connector { display: none; }
}

/* ============================================================
   FAQ — rich variant (aside panel + categorized questions)
   ============================================================ */
.faq--rich {
  background:
    radial-gradient(ellipse 50% 30% at 85% 0%, rgba(47,179,122,0.06), transparent 70%),
    var(--color-bg);
  position: relative;
}
.faq--rich .faq__inner {
  grid-template-columns: minmax(260px, 1fr) minmax(0, 1.6fr);
  gap: clamp(var(--space-8), 6vw, var(--space-16));
  align-items: start;
}
@media (max-width: 900px) {
  .faq--rich .faq__inner { grid-template-columns: 1fr; gap: var(--space-8); }
}

.faq__aside {
  position: sticky;
  top: var(--space-20);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
@media (max-width: 900px) {
  .faq__aside { position: static; top: auto; }
}
.faq--rich .faq__aside .section-head { margin-bottom: 0; }
.faq--rich .faq__aside h2 {
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 var(--space-3);
}
.faq__lede {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: 32ch;
  margin: 0;
}

.faq__stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  padding: var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
.faq__stat {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  padding-bottom: var(--space-3);
  border-bottom: 1px dashed var(--color-divider);
}
.faq__stat:last-child { border-bottom: 0; padding-bottom: 0; }
.faq__stat-num {
  font-family: var(--font-display, var(--font-body));
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--color-primary);
  line-height: 1;
  flex-shrink: 0;
  min-width: 3.2ch;
}
.faq__stat-label {
  color: var(--color-text-muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.faq__cta {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  padding: var(--space-5);
  background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-primary-soft) 220%);
  border: 1px solid var(--color-primary-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 28px -22px rgba(3, 116, 73, 0.35);
}
.faq__cta-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.faq__cta-icon svg { width: 18px; height: 18px; }
.faq__cta-body strong {
  display: block;
  font-family: var(--font-display, var(--font-body));
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: var(--color-text);
  margin-bottom: 4px;
}
.faq__cta-body p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--color-text-muted);
  margin: 0 0 var(--space-3);
  max-width: 30ch;
}
.faq__cta-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  transition: gap .2s ease, color .2s ease;
}
.faq__cta-link:hover { gap: 10px; color: var(--color-primary-deep, var(--color-primary)); }

/* Right-side rich list */
.faq__list--rich { border-top: 0; }
.faq__list--rich details {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-3);
  padding: 0;
  position: relative;
  background: var(--color-surface);
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
  overflow: hidden;
}
.faq__list--rich details::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 3px;
  background: transparent;
  transition: background .25s ease;
}
.faq__list--rich details:hover {
  border-color: var(--color-primary-border);
}
.faq__list--rich details[open] {
  border-color: var(--color-primary-border);
  box-shadow: 0 10px 28px -22px rgba(3, 116, 73, 0.28);
}
.faq__list--rich details[open]::before { background: var(--color-primary); }

.faq__list--rich summary {
  list-style: none;
  padding: var(--space-4) var(--space-5);
  cursor: pointer;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--space-4);
  align-items: center;
  font-family: var(--font-body);
}
.faq__list--rich summary::-webkit-details-marker { display: none; }
.faq__list--rich summary::after { display: none; }

.faq__cat {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--color-surface-2, rgba(0,0,0,0.04));
  color: var(--color-text-muted);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--color-border);
  white-space: nowrap;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.faq__list--rich details[open] .faq__cat,
.faq__list--rich summary:hover .faq__cat {
  background: var(--color-primary-soft, rgba(47,179,122,0.12));
  color: var(--color-primary);
  border-color: var(--color-primary-border);
}
.faq__q {
  font-weight: 600;
  font-size: var(--text-md);
  letter-spacing: -0.015em;
  color: var(--color-text);
  line-height: 1.35;
}
.faq__chev {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-surface-2, rgba(0,0,0,0.04));
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .35s cubic-bezier(.22,.75,.25,1), background .25s ease, color .25s ease;
  flex-shrink: 0;
}
.faq__chev svg { width: 16px; height: 16px; }
.faq__list--rich details[open] .faq__chev {
  transform: rotate(180deg);
  background: var(--color-primary);
  color: #fff;
}
.faq__list--rich details summary:hover .faq__q { color: var(--color-primary); }

.faq__list--rich details p {
  padding: 0 var(--space-5) var(--space-5) calc(var(--space-5) + 70px);
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
  margin: 0;
  max-width: 72ch;
}
.faq__list--rich details p a {
  color: var(--color-primary);
  font-weight: 600;
}
@media (max-width: 640px) {
  .faq__list--rich summary {
    grid-template-columns: 1fr auto;
    gap: var(--space-2);
  }
  .faq__cat { grid-column: 1 / -1; justify-self: start; }
  .faq__list--rich details p { padding-left: var(--space-5); }
}
.iso-chat {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-2);
}
.iso-chat__bubble {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 14px;
  border-radius: var(--radius-full);
  border: 0;
  background: linear-gradient(135deg, var(--color-primary) 0%, #2fb37a 100%);
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: var(--text-sm);
  font-weight: 600;
  box-shadow: 0 10px 32px -8px rgba(3, 116, 73, 0.55);
  transition:
    transform var(--transition-interactive, 180ms cubic-bezier(0.16, 1, 0.3, 1)),
    box-shadow var(--transition-interactive, 180ms cubic-bezier(0.16, 1, 0.3, 1));
}
.iso-chat__bubble:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px -8px rgba(3, 116, 73, 0.6);
}
.iso-chat__bubble:active { transform: translateY(0); }
.iso-chat__bubble-ring {
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.iso-chat__bubble-ico { width: 14px; height: 14px; color: #fff; }
.iso-chat__bubble-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  animation: iso-chat-pulse 2.2s ease-out infinite;
}
@keyframes iso-chat-pulse {
  0%   { transform: scale(0.85); opacity: 0.8; }
  100% { transform: scale(1.35); opacity: 0; }
}
.iso-chat__bubble-label { white-space: nowrap; }
.iso-chat__bubble-msg {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  background: var(--color-bg);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 8px 14px;
  font-size: var(--text-xs);
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 4px 16px -4px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition:
    opacity 200ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 200ms cubic-bezier(0.16, 1, 0.3, 1);
}
.iso-chat__bubble:hover + .iso-chat__bubble-msg,
.iso-chat__bubble-msg.is-shown {
  opacity: 1;
  transform: translateY(0);
}

.iso-chat__window {
  position: absolute;
  bottom: calc(100% + 12px);
  right: 0;
  width: min(380px, calc(100vw - 48px));
  max-height: min(560px, calc(100vh - 120px));
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 60px -12px rgba(0, 0, 0, 0.25);
  display: none;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(12px) scale(0.98);
  opacity: 0;
  transition:
    opacity 220ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}
.iso-chat.is-open .iso-chat__window {
  display: flex;
  opacity: 1;
  transform: translateY(0) scale(1);
}
.iso-chat.is-open .iso-chat__bubble-msg { display: none; }

.iso-chat__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-divider);
  background: var(--color-surface);
}
.iso-chat__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary) 0%, #2fb37a 100%);
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}
.iso-chat__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.iso-chat__meta strong {
  color: var(--color-text);
  font-size: var(--text-sm);
  font-weight: 700;
}
.iso-chat__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
}
.iso-chat__status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2fb37a;
  box-shadow: 0 0 0 3px rgba(47, 179, 122, 0.25);
}
.iso-chat__close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: color var(--transition-interactive, 180ms);
  flex-shrink: 0;
}
.iso-chat__close:hover { color: var(--color-text); }

.iso-chat__log {
  flex: 1;
  min-height: 180px;
  max-height: 320px;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--color-bg);
}
.iso-chat__msg {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: var(--text-sm);
  line-height: 1.5;
  word-wrap: break-word;
  animation: iso-msg-in 240ms cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes iso-msg-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.iso-chat__msg--bot {
  align-self: flex-start;
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-divider);
  border-top-left-radius: 4px;
}
.iso-chat__msg--user {
  align-self: flex-end;
  background: var(--color-primary);
  color: #fff;
  border-top-right-radius: 4px;
}
.iso-chat__msg strong { font-weight: 700; }

.iso-chat__presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 12px;
  border-top: 1px solid var(--color-divider);
  background: var(--color-surface);
}
.iso-chat__presets button {
  padding: 6px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text-2);
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition-interactive, 180ms cubic-bezier(0.16, 1, 0.3, 1));
}
.iso-chat__presets button:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.iso-chat__form {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  border-top: 1px solid var(--color-divider);
  background: var(--color-bg);
}
.iso-chat__form input {
  flex: 1;
  padding: 10px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: var(--text-sm);
  font-family: inherit;
  transition:
    border-color var(--transition-interactive, 180ms),
    box-shadow var(--transition-interactive, 180ms);
}
.iso-chat__form input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(3, 116, 73, 0.12);
}
.iso-chat__send {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  background: linear-gradient(135deg, var(--color-primary) 0%, #2fb37a 100%);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform var(--transition-interactive, 180ms);
}
.iso-chat__send:hover { transform: scale(1.05); }
.iso-chat__send:active { transform: scale(0.95); }

.iso-chat__foot {
  padding: 8px 14px 10px;
  font-size: 10px;
  color: var(--color-text-faint);
  text-align: center;
  border-top: 1px solid var(--color-divider);
  background: var(--color-surface);
  font-family: var(--font-mono);
  letter-spacing: 0.01em;
}

/* Mobile: full-width bubble-window */
@media (max-width: 520px) {
  .iso-chat {
    bottom: 16px;
    right: 16px;
    left: 16px;
    align-items: stretch;
  }
  .iso-chat__bubble { align-self: flex-end; }
  .iso-chat__window {
    right: 0;
    left: 0;
    width: auto;
    max-height: 70vh;
  }
  .iso-chat__bubble-label { display: none; }
  .iso-chat__bubble { padding: 12px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .iso-chat__bubble-pulse { animation: none; }
  .iso-modal__panel,
  .iso-modal__backdrop,
  .iso-chat__msg { animation: none; }
}

/* Body scroll lock when modal is open */
body.iso-modal-open { overflow: hidden; }

/* ---- Agent card hero extras (used on partners.html) ---- */

/* ============================================
   FOOTER LEGAL (MSP/ISO disclosure)
   ============================================ */
.footer__legal {
  grid-column: 1 / -1;
  padding: var(--space-6) 0 0;
  margin-top: var(--space-4);
  border-top: 1px solid var(--color-divider);
  font-size: 11px;
  line-height: 1.55;
  color: var(--color-text-faint);
  max-width: 100%;
}
.footer__legal strong { font-weight: 600; color: var(--color-text-muted); }
