/* ==============================================================================
   KRYSKAFLOW — Modular Pricing Stylesheet (pricing.html & in/pricing.html)
   Tri-Tier Viewport Isolation | Zero Purple AI Slop | Apple Liquid Glass
   ============================================================================== */

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

.pricing-section-band {
  padding: 56px 0;
  position: relative;
  scroll-margin-top: 84px;
}

.pricing-section-band--subtle {
  background: var(--bg-subtle);
  border-top: var(--border-hairline);
  border-bottom: var(--border-hairline);
}

/* Idea 1: 1px CSS Masked Specular Spotlight Ring (pointer: fine only) */
.pricing-spotlight {
  position: relative;
  --spot-x: 50%;
  --spot-y: 50%;
}

@media (pointer: fine) and (hover: hover) {
  .pricing-spotlight::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: radial-gradient(
      280px circle at var(--spot-x) var(--spot-y),
      rgba(255, 30, 39, 0.42),
      rgba(15, 23, 42, 0.16) 45%,
      transparent 75%
    );
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    opacity: 0;
    pointer-events: none;
    z-index: 3;
    transition: opacity 0.24s ease;
  }

  .pricing-spotlight:hover::before,
  .pricing-spotlight:focus-within::before {
    opacity: 1;
  }

  .pricing-spotlight--dark::before {
    background: radial-gradient(
      300px circle at var(--spot-x) var(--spot-y),
      rgba(245, 158, 11, 0.55),
      rgba(255, 255, 255, 0.20) 48%,
      transparent 76%
    );
  }
}

/* Idea 2: Controlled Section Entrance */
html.pricing-anim-ready .pricing-fade-up {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

html.pricing-anim-ready .pricing-fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- 1. Fold-1 Dual-State Hero (#pricing-hero) --- */
.pricing-hero-stage {
  padding: 120px 0 48px;
  background: radial-gradient(1100px 440px at 82% -10%, rgba(255, 30, 39, 0.055), transparent 60%),
              linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
  border-bottom: var(--border-hairline);
}

/* State A: Active Founding 2000 Cohort (app.js enforces display: flex) */
.pricing-founding-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: space-between;
  gap: 32px;
}

.founding-hero-copy {
  flex: 1.15 1 460px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 18px;
}

.pricing-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: #FFFFFF;
  border: var(--border-hairline);
  box-shadow: var(--shadow-sm);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: 0.01em;
}

.pricing-meta-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
  flex-shrink: 0;
}

.pricing-hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(2.05rem, 3.55vw, 3.35rem);
  font-weight: 800;
  line-height: 1.07;
  letter-spacing: -0.032em;
  color: var(--text-heading);
  margin: 0;
  max-width: 17ch;
}

.hero-vector-underline {
  position: relative;
  display: inline-block;
  color: var(--accent-red);
}

.hero-vector-underline svg {
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 100%;
  height: 10px;
  overflow: visible;
  pointer-events: none;
}

.hero-vector-underline svg path {
  stroke-dasharray: 240;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.pricing-hero-lead {
  font-size: clamp(1rem, 1.15vw, 1.125rem);
  line-height: 1.58;
  color: var(--text-body);
  max-width: 540px;
  margin: 0;
}

.founding-hero-points {
  list-style: none;
  padding: 0;
  margin: 2px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}

.founding-hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-heading);
}

.founding-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.btn-founding-hero-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  background: var(--bg-dark-obsidian);
  color: var(--text-inverse);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  border: 1px solid rgba(15, 23, 42, 0.95);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: transform 0.16s ease, background-color 0.18s ease, box-shadow 0.2s ease;
}

.btn-founding-hero-primary:hover {
  background: var(--accent-red);
  border-color: var(--accent-red);
  transform: translateY(-1px);
}

.btn-founding-hero-primary:active {
  transform: scale(0.98);
}

.btn-secondary-glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: var(--border-subtle);
  color: var(--text-heading);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.14s ease;
}

.btn-secondary-glass:hover {
  background: #FFFFFF;
  border-color: #94A3B8;
  transform: translateY(-1px);
}

.founding-secret-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--accent-amber-soft);
  border: 1px solid var(--accent-amber-border);
  color: #92400E;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Obsidian Vault Card (Right Column of Active Founding Banner) */
.founding-vault-card {
  position: relative;
  overflow: hidden;
  flex: 0.85 1 360px;
  max-width: 470px;
  background:
    radial-gradient(110% 90% at 90% 8%, rgba(251, 191, 36, 0.14) 0%, rgba(9, 12, 20, 0) 58%),
    linear-gradient(160deg, #0F172A 0%, #090C14 100%);
  color: var(--text-inverse);
  border-radius: 22px;
  padding: 26px;
  border: 1px solid rgba(251, 191, 36, 0.28);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.founding-vault-card > *:not(.kf-celestial-stars) {
  position: relative;
  z-index: 2;
}

.vault-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.vault-identity {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.vault-identity img {
  width: 34px;
  height: 34px;
  display: block;
  flex-shrink: 0;
}

.vault-eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #FBBF24;
}

.vault-title {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: #FFFFFF;
}

.vault-slots-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: rgba(251, 191, 36, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.32);
  color: #FDE68A;
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
}

.vault-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.vault-price-main {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.65rem);
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.03em;
  line-height: 1;
}

.vault-price-meta {
  text-align: right;
  font-size: 0.78rem;
  color: #94A3B8;
  line-height: 1.4;
}

.vault-perk-pill {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(251, 191, 36, 0.10);
  border: 1px solid rgba(251, 191, 36, 0.25);
  color: #FDE68A;
  font-size: 0.81rem;
  font-weight: 600;
  line-height: 1.4;
}

.vault-check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 12px;
}

.vault-check-list li {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  color: #E2E8F0;
  font-weight: 500;
}

.vault-check-list li svg {
  color: #10B981;
  flex-shrink: 0;
}

/* State B: Evergreen Hero (Shown automatically when Founding 2000 sells out) */
.pricing-evergreen-hero {
  display: none;
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
  padding: 12px 0;
}

.pricing-evergreen-hero .pricing-hero-h1 {
  max-width: none;
  margin: 16px auto 14px;
}

.pricing-evergreen-hero .pricing-hero-lead {
  margin: 0 auto 24px;
  max-width: 600px;
}

.evergreen-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

#pricing-hero:has(#pricing-founding-banner[data-sold-out="true"]) #pricing-founding-banner,
#pricing-hero.is-founding-sold-out #pricing-founding-banner {
  display: none !important;
}

#pricing-hero:has(#pricing-founding-banner[data-sold-out="true"]) #pricing-evergreen-hero,
#pricing-hero.is-founding-sold-out #pricing-evergreen-hero {
  display: block;
}

/* --- 2. Split Matrix Header & Liquid Glass Billing Switcher --- */
.plans-split-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}

.plans-header-copy {
  max-width: 560px;
}

.pricing-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-red);
  margin-bottom: 8px;
}

.pricing-h2 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 2.8vw, 2.45rem);
  font-weight: 800;
  letter-spacing: -0.028em;
  line-height: 1.12;
  color: var(--text-heading);
  margin: 0 0 8px;
}

.pricing-subcopy {
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--text-body);
  margin: 0;
}

.billing-switcher-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.billing-cycle-pill-group {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 5px;
  border-radius: var(--radius-pill);
  background: rgba(241, 245, 249, 0.74);
  backdrop-filter: blur(18px) saturate(185%);
  -webkit-backdrop-filter: blur(18px) saturate(185%);
  border: 1px solid rgba(255, 255, 255, 0.90);
  box-shadow:
    0 10px 26px -8px rgba(15, 23, 42, 0.12),
    0 2px 6px rgba(15, 23, 42, 0.05),
    inset 0 1px 1px rgba(15, 23, 42, 0.06),
    inset 0 -1px 0 rgba(255, 255, 255, 0.92);
  gap: 3px;
  max-width: 100%;
}

/* .cycle-glider shared template lives in base.css */
.cycle-pill {
  position: relative;
  z-index: 2;
  border: none;
  background: transparent;
  padding: 8px 14px;
  min-height: 36px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.22s ease, transform 0.14s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cycle-pill.active {
  color: var(--text-heading);
  font-weight: 600;
  text-shadow: 0 0 0.35px currentColor;
}

.cycle-pill:active {
  transform: scale(0.97);
}

.cycle-discount-tag {
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  font-size: 0.68rem;
  font-weight: 800;
  background: var(--accent-emerald-soft);
  color: var(--accent-emerald-dark);
  border: 1px solid var(--accent-emerald-border);
  line-height: 1.2;
}

.cycle-helper-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-emerald-dark);
}

/* --- 3. Three-Card Core Plan Grid (.pricing-grid-4, Starter kept hidden in DOM) --- */
.pricing-grid-4 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
  padding-top: 14px;
}

.pricing-card[data-plan="starter"] {
  display: none !important;
}

.pricing-card {
  background: var(--bg-base);
  border: var(--border-hairline);
  border-radius: 20px;
  padding: 24px 20px 22px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.pricing-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.pricing-card.pricing-card-featured {
  border: 1.5px solid var(--bg-dark-obsidian);
  box-shadow: var(--shadow-md);
  background: linear-gradient(180deg, #FFFFFF 0%, #FAFBFD 100%);
}

.pricing-card.pricing-card-pro {
  border-color: rgba(67, 56, 202, 0.26);
}

.plan-top-meta {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.plan-tier-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.3;
  color: var(--text-muted);
}

.pricing-card.pricing-card-featured .plan-pop-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--bg-dark-obsidian);
  color: #FFFFFF;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.22);
}

.plan-pop-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-dark-obsidian);
  color: #FFFFFF;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.plan-pro-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--accent-indigo-soft);
  color: var(--accent-indigo);
  border: 1px solid var(--accent-indigo-border);
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.plan-pro-chip img {
  width: 14px;
  height: 14px;
  display: block;
}

.plan-name {
  font-family: var(--font-display);
  font-size: 1.38rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-heading);
  margin: 0 0 6px;
}

.plan-tagline {
  font-size: 0.87rem;
  line-height: 1.45;
  color: var(--text-body);
  margin: 0 0 18px;
  min-height: 38px;
}

.plan-price-block {
  padding: 16px 0;
  border-top: var(--border-hairline);
  border-bottom: var(--border-hairline);
  margin-bottom: 16px;
}

.plan-orig-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  min-height: 22px;
}

.plan-price-orig {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-subtle);
  text-decoration: line-through;
}

.plan-discount-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--accent-red-soft);
  color: var(--accent-red-hover);
  border: 1px solid var(--accent-red-border);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.plan-price-current-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.plan-price-num {
  font-family: var(--font-display);
  font-size: 2.35rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.04;
  color: var(--text-heading);
}

.plan-price-unit {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}

.plan-billed-sub {
  margin-top: 6px;
  font-size: 0.79rem;
  line-height: 1.4;
  color: var(--text-muted);
  min-height: 22px;
}

.plan-billed-sub.is-annual-cta {
  color: var(--accent-indigo);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
}

.plan-cta-btn {
  width: 100%;
  min-height: 44px;
  padding: 11px 16px;
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 18px;
  transition: transform 0.14s ease, background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.plan-cta-btn--secondary {
  background: var(--bg-subtle);
  border: var(--border-subtle);
  color: var(--text-heading);
}

.plan-cta-btn--secondary:hover {
  background: var(--bg-dark-obsidian);
  border-color: var(--bg-dark-obsidian);
  color: #FFFFFF;
}

.plan-cta-btn--primary {
  background: var(--accent-red);
  border: 1px solid var(--accent-red);
  color: #FFFFFF;
  box-shadow: 0 6px 16px rgba(255, 30, 39, 0.22);
}

.plan-cta-btn--primary:hover {
  background: var(--accent-red-hover);
  border-color: var(--accent-red-hover);
  transform: translateY(-1px);
}

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

/* Plan Features List */
.plan-features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.855rem;
  line-height: 1.42;
  color: var(--text-heading);
}

.feature-item.is-disabled {
  color: var(--text-subtle);
}

.feat-icon-well {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.feat-icon-yes {
  background: var(--accent-emerald-soft);
  border: 1px solid var(--accent-emerald-border);
  color: var(--accent-emerald-dark);
}

.feat-icon-no {
  background: var(--bg-muted);
  border: 1px solid #E2E8F0;
  color: #94A3B8;
}

.feature-copy {
  flex: 1;
  min-width: 0;
}

.badge-soon {
  display: inline-block;
  margin-left: 5px;
  padding: 1px 6px;
  border-radius: var(--radius-pill);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--bg-muted);
  color: var(--text-muted);
  border: 1px solid #CBD5E1;
  vertical-align: middle;
}

.badge-soon--dark {
  background: rgba(255, 255, 255, 0.12);
  color: #E2E8F0;
  border-color: rgba(255, 255, 255, 0.22);
}

.pricing-spotlight--dark .info-tip-btn {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
  color: #F8FAFC;
}

.pricing-spotlight--dark .info-tip-btn:hover,
.pricing-spotlight--dark .info-tip-btn:focus-visible {
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.45);
}

.badge-beta {
  display: inline-block;
  margin-left: 5px;
  padding: 1px 6px;
  border-radius: var(--radius-pill);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--accent-cyan-soft);
  color: var(--accent-cyan);
  border: 1px solid var(--accent-cyan-border);
  vertical-align: middle;
}

.badge-addon {
  display: inline-block;
  margin-left: 5px;
  padding: 1px 6px;
  border-radius: var(--radius-pill);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--accent-indigo-soft);
  color: var(--accent-indigo);
  border: 1px solid var(--accent-indigo-border);
  vertical-align: middle;
}

/* Collapsible Extra Features (Synced by app.js togglePlanFeatures) */
.plan-features-more {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  margin-top: 0;
  transition: grid-template-rows 0.28s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.22s ease,
              margin-top 0.22s ease;
}

.plan-features-more.is-expanded {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 10px;
}

.plan-features-more-inner {
  overflow: hidden;
  min-height: 0;
}

.btn-features-toggle {
  margin-top: auto;
  padding: 14px 0 2px;
  border: none;
  border-top: var(--border-hairline);
  background: transparent;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-heading);
  cursor: pointer;
  min-height: 40px;
}

.btn-features-toggle svg {
  transition: transform 0.22s ease;
}

.btn-features-toggle.is-active svg {
  transform: rotate(180deg);
}

/* --- 4. Position-Aware Interactive Tooltips --- */
.info-tip-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  margin-left: 4px;
}

.info-tip-btn {
  position: relative;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 1px solid #CBD5E1;
  background: var(--bg-subtle);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.info-tip-popover,
.info-tip-content {
  display: none;
  position: absolute;
  bottom: calc(100% + 9px);
  left: 50%;
  transform: translateX(calc(-50% + var(--tip-shift, 0px)));
  width: max-content;
  max-width: min(260px, calc(100vw - 32px));
  padding: 9px 12px;
  border-radius: 10px;
  background: #0F172A;
  color: #F8FAFC;
  font-size: 0.76rem;
  font-weight: 500;
  line-height: 1.45;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.14);
  z-index: 60;
}

@media (hover: hover) and (pointer: fine) {
  .info-tip-wrap:hover .info-tip-popover,
  .info-tip-wrap:focus-within .info-tip-popover,
  .info-tip-wrap:hover .info-tip-content,
  .info-tip-wrap:focus-within .info-tip-content {
    display: block;
  }
}

.info-tip-wrap.is-open .info-tip-popover,
.info-tip-wrap.is-open .info-tip-content {
  display: block;
}

/* Channel Icon Badges inside Plan Features */
.channel-icons-stack {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  vertical-align: middle;
  margin-left: 5px;
}

.channel-app-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  flex-shrink: 0;
  object-fit: contain;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.14);
  vertical-align: middle;
}

.channel-badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.14);
}

.channel-badge-icon.ig {
  background: radial-gradient(circle at 26% 98%, #FFD56B 0%, #FD5949 28%, #D6249F 62%, #5B4FE9 100%);
}

.channel-badge-icon.fb {
  background: #FFFFFF;
}

.channel-badge-icon.tg {
  background: linear-gradient(180deg, #37AEE2 0%, #1E96C8 100%);
}

.combo-stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 12px;
}

.combo-stat-chip {
  display: flex;
  flex-direction: column;
}

.combo-stat-chip strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--text-heading);
}

.combo-stat-chip span {
  font-size: 0.76rem;
  color: var(--text-muted);
}

@media (hover: none), (pointer: coarse) {
  .info-tip-btn::after {
    content: "";
    position: absolute;
    inset: -13px;
  }
}

/* --- 5. Agency Fleet Spotlight & Combo Studio Banners (#agency-combo) --- */
.agency-spotlight-banner {
  background: linear-gradient(145deg, #0F172A 0%, #090C14 100%);
  color: #FFFFFF;
  border-radius: 24px;
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: var(--shadow-lg);
  margin-bottom: 24px;
}

.agency-banner-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.agency-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #E2E8F0;
  margin-bottom: 10px;
}

.agency-banner-head h3 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0 0 6px;
  color: #FFFFFF;
}

.agency-banner-head p {
  margin: 0;
  color: #94A3B8;
  font-size: 0.94rem;
  max-width: 540px;
}

.agency-cycle-pill-group {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 5px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px) saturate(185%);
  -webkit-backdrop-filter: blur(18px) saturate(185%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 1px rgba(0, 0, 0, 0.28),
    0 8px 22px -6px rgba(0, 0, 0, 0.45);
  gap: 3px;
}

/* .agency-cycle-glider base template lives in base.css */
.agency-cycle-pill {
  position: relative;
  z-index: 2;
  border: none;
  background: transparent;
  padding: 7px 13px;
  min-height: 34px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  color: #CBD5E1;
  cursor: pointer;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.22s ease, transform 0.14s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.agency-cycle-pill:active {
  transform: scale(0.96);
}

.agency-cycle-pill.active {
  color: #0F172A;
  font-weight: 600;
  text-shadow: 0 0 0.35px currentColor;
}

.agency-banner-body {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.5fr) auto;
  align-items: center;
  gap: 28px;
  padding-top: 24px;
}

.agency-price-col .plan-orig-row {
  margin-bottom: 6px;
}

.agency-price-col .plan-price-orig {
  color: #94A3B8;
}

.agency-price-col .plan-discount-badge {
  background: rgba(255, 30, 39, 0.22);
  color: #FCA5A5;
  border-color: rgba(255, 30, 39, 0.42);
}

.agency-price-num {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3vw, 2.7rem);
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.03em;
  line-height: 1;
}

.agency-calc-pill {
  display: inline-block;
  margin-top: 10px;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.30);
  color: #6EE7B7;
  font-size: 0.79rem;
}

.agency-features-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.agency-features-grid li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: #E2E8F0;
}

.agency-features-grid li svg {
  color: #10B981;
  flex-shrink: 0;
}

.btn-agency-cta {
  min-height: 48px;
  padding: 13px 24px;
  border-radius: var(--radius-pill);
  background: #FFFFFF;
  color: #0F172A;
  border: none;
  font-family: var(--font-display);
  font-size: 0.94rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
  transition: transform 0.15s ease, background-color 0.18s ease, color 0.18s ease;
}

.btn-agency-cta:hover {
  background: var(--accent-red);
  color: #FFFFFF;
  transform: translateY(-1px);
}

/* Combo Discovery Banner */
.combo-studio-banner {
  background: var(--bg-base);
  border: var(--border-hairline);
  border-radius: 22px;
  padding: 26px 30px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.combo-studio-copy {
  flex: 1 1 420px;
}

.combo-studio-copy h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-heading);
  margin: 6px 0;
}

.combo-studio-copy p {
  margin: 0;
  color: var(--text-body);
  font-size: 0.92rem;
  line-height: 1.5;
}

.combo-studio-metrics {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.combo-rate-box {
  padding: 12px 18px;
  border-radius: 14px;
  background: var(--bg-subtle);
  border: var(--border-hairline);
}

.combo-rate-val {
  display: block;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-heading);
}

.combo-rate-vs {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-emerald-dark);
}

/* --- 6. Prepaid Boosters, Passes, Zero-Freeze & 3-Col Viral Matrix --- */
.dash-topup-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 32px;
}

.dash-topup-card {
  background: var(--bg-base);
  border: var(--border-hairline);
  border-radius: 20px;
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}

.topup-pill {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--accent-emerald-soft);
  color: var(--accent-emerald-dark);
  border: 1px solid var(--accent-emerald-border);
}

.topup-pill--spike {
  background: var(--accent-amber-soft);
  color: #92400E;
  border-color: var(--accent-amber-border);
}

.topup-pill--week {
  background: var(--accent-indigo-soft);
  color: var(--accent-indigo);
  border-color: var(--accent-indigo-border);
}

.dash-topup-card h3 {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--text-heading);
  margin: 0;
}

.topup-price-line {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.topup-price-main {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: -0.03em;
}

.topup-price-orig {
  font-size: 0.92rem;
  color: var(--text-subtle);
  text-decoration: line-through;
  font-weight: 600;
}

.topup-unit-note {
  font-size: 0.8rem;
  color: var(--text-body);
  line-height: 1.45;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--bg-subtle);
  border: var(--border-hairline);
}

.dash-topup-card ul {
  list-style: none;
  padding: 0;
  margin: 2px 0 6px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dash-topup-card ul li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-body);
}

.dash-topup-card ul li svg {
  color: var(--accent-emerald-dark);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Zero-Freeze Shield Editorial Banner */
.zero-freeze-banner {
  background: linear-gradient(135deg, #0F172A 0%, #161E31 100%);
  color: #FFFFFF;
  border-radius: 22px;
  padding: 28px 32px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}

.zero-freeze-copy {
  flex: 1.3 1 400px;
}

.zero-freeze-copy h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: #FFFFFF;
  margin: 8px 0 8px;
}

.zero-freeze-copy p {
  margin: 0;
  color: #CBD5E1;
  font-size: 0.93rem;
  line-height: 1.55;
  max-width: 620px;
}

.zero-freeze-metrics {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.zero-freeze-metric {
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  min-width: 132px;
}

.zero-freeze-metric .metric-val {
  display: block;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  color: #10B981;
}

.zero-freeze-metric .metric-lbl {
  display: block;
  font-size: 0.76rem;
  color: #94A3B8;
  margin-top: 2px;
}

/* 3-Column Comparative Overage Matrix */
.matrix-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.matrix-card {
  background: var(--bg-base);
  border: var(--border-hairline);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.matrix-card--winner {
  border: 1.5px solid var(--accent-emerald-dark);
  background: linear-gradient(180deg, #FFFFFF 0%, #F0FDF4 100%);
}

.matrix-tag {
  display: inline-block;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.matrix-tag--danger {
  background: var(--accent-red-soft);
  color: var(--accent-red-hover);
}

.matrix-tag--neutral {
  background: var(--bg-dark-obsidian);
  color: #FFFFFF;
}

.matrix-tag--win {
  background: var(--accent-emerald-soft);
  color: var(--accent-emerald-dark);
}

.matrix-card h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-heading);
  margin: 0 0 8px;
}

.matrix-price {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 8px;
}

.matrix-unit {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.matrix-card p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--text-body);
}

/* --- 7. Native Modal <dialog> (#modal-founding-pass) --- */
#modal-founding-pass:not([open]) {
  display: none;
}

#modal-founding-pass:modal {
  overscroll-behavior: contain;
  margin: auto;
  padding: 0;
  border: none;
  background: transparent;
  max-width: min(500px, calc(100vw - 24px));
  width: 100%;
  max-height: 92dvh;
  overflow: visible;
}

#modal-founding-pass::backdrop {
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overscroll-behavior: contain;
  overflow: hidden;
}

/* --- 8. Tri-Tier Viewport Encapsulation (AGENTS.md Rule 17) --- */
@media (min-width: 1025px) {
  .pricing-hero-stage {
    padding: 124px 0 54px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  body:not(.force-desktop) .pricing-hero-stage {
    padding: 108px 0 40px;
  }
  body:not(.force-desktop) .pricing-grid-4 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }
  body:not(.force-desktop) .agency-banner-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  body:not(.force-desktop) .dash-topup-grid,
  body:not(.force-desktop) .matrix-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  body:not(.force-desktop) .desk-full {
    display: none !important;
  }
  body:not(.force-desktop) .pricing-hero-stage {
    padding: 96px 0 54px;
  }
  body:not(.force-desktop) .pricing-section-band {
    padding: 54px 0;
  }
  body:not(.force-desktop) .pricing-founding-banner {
    gap: 36px;
  }
  body:not(.force-desktop) .founding-hero-copy,
  body:not(.force-desktop) .founding-vault-card,
  body:not(.force-desktop) .pricing-card,
  body:not(.force-desktop) .agency-spotlight-banner,
  body:not(.force-desktop) .combo-studio-banner,
  body:not(.force-desktop) .dash-topup-card,
  body:not(.force-desktop) .zero-freeze-banner,
  body:not(.force-desktop) .matrix-card {
    min-width: 0;
    max-width: 100%;
  }
  body:not(.force-desktop) .founding-hero-copy {
    flex: 1 1 100%;
    gap: 18px;
  }
  /* Mobile Minimal Fold-1: Heading -> Short 1-Line Lead -> Both CTAs -> Founding Vault Card with generous air */
  body:not(.force-desktop) #pricing-founding-banner .pricing-meta-pill,
  body:not(.force-desktop) #pricing-founding-banner .pricing-hero-lead,
  body:not(.force-desktop) #pricing-founding-banner .founding-hero-points {
    display: none;
  }
  body:not(.force-desktop) #pricing-evergreen-hero .pricing-meta-pill {
    display: none;
  }
  body:not(.force-desktop) .pricing-hero-h1 {
    font-size: clamp(1.92rem, 7.6vw, 2.2rem);
    line-height: 1.1;
    max-width: none;
  }
  body:not(.force-desktop) .pricing-hero-lead-mobile {
    margin: 12px 0 0;
    font-size: 0.96rem;
    line-height: 1.5;
    color: var(--text-body);
    max-width: 34ch;
  }
  body:not(.force-desktop) .founding-hero-actions {
    width: 100%;
    gap: 12px;
    margin-top: 8px;
  }
  body:not(.force-desktop) .founding-vault-card {
    flex: 1 1 100%;
    max-width: 100%;
    padding: 24px 20px;
    gap: 18px;
  }
  body:not(.force-desktop) .vault-eyebrow {
    line-height: 1.3;
    margin-bottom: 2px;
  }
  body:not(.force-desktop) .vault-check-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
  }
  body:not(.force-desktop) .plans-split-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 28px;
  }
  body:not(.force-desktop) .billing-switcher-wrap {
    align-items: flex-start;
    width: 100%;
    gap: 12px;
  }
  body:not(.force-desktop) .billing-cycle-pill-group {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  body:not(.force-desktop) .cycle-pill {
    justify-content: center;
    flex-direction: column;
    gap: 2px;
    padding: 8px 4px;
    font-size: 0.75rem;
    min-height: 44px;
  }
  body:not(.force-desktop) .pricing-grid-4 {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: clamp(16px, 3vw, 32px);
    margin-inline: calc(clamp(16px, 3vw, 32px) * -1);
    padding: 20px clamp(16px, 3vw, 32px) 12px;
    gap: 14px;
    touch-action: pan-x pan-y;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    cursor: grab;
  }
  body:not(.force-desktop) .pricing-grid-4::-webkit-scrollbar {
    display: none;
  }
  body:not(.force-desktop) .pricing-grid-4.is-dragging,
  body:not(.force-desktop) .dash-topup-grid.is-dragging,
  body:not(.force-desktop) .matrix-grid.is-dragging {
    cursor: grabbing;
    user-select: none;
  }
  body:not(.force-desktop) .pricing-card {
    flex: 0 0 82vw;
    max-width: 340px;
    scroll-snap-align: center;
    padding: 26px 20px 24px;
  }
  body:not(.force-desktop) .pricing-card .feature-item.is-disabled {
    display: none;
  }
  /* Prevent horizontal offscreen cards from waiting in opacity:0 before swipe */
  body:not(.force-desktop) #plans-matrix .pricing-card,
  body:not(.force-desktop) #plans-matrix .pricing-card .plan-top-meta,
  body:not(.force-desktop) #plans-matrix .pricing-card .plan-price-block,
  body:not(.force-desktop) #plans-matrix .pricing-card .plan-cta-btn,
  body:not(.force-desktop) #plans-matrix .pricing-card > .plan-features-list > .feature-item,
  body:not(.force-desktop) .dash-topup-grid .dash-topup-card,
  body:not(.force-desktop) #overage-compare-matrix .matrix-card {
    opacity: 1 !important;
    transform: none !important;
  }
  body:not(.force-desktop) .mob-plan-jump-bar {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
    padding: 4px;
    margin-bottom: 6px;
    border-radius: var(--radius-pill);
    background: rgba(241, 245, 249, 0.84);
    backdrop-filter: blur(14px) saturate(180%);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: inset 0 1px 1px rgba(15, 23, 42, 0.05);
  }
  body:not(.force-desktop) .mob-plan-jump-glider {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc((100% - 8px) / 3);
    height: calc(100% - 8px);
    border-radius: var(--radius-pill);
    background: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.96);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.10), inset 0 1px 0 #FFFFFF;
    pointer-events: none;
    z-index: 1;
    transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
  }
  body:not(.force-desktop) .mob-plan-jump-btn {
    position: relative;
    z-index: 2;
    border: none;
    background: transparent;
    min-height: 36px;
    padding: 6px 8px;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.2s ease;
  }
  body:not(.force-desktop) .mob-plan-jump-btn.is-active {
    color: var(--text-heading);
  }
  body:not(.force-desktop) .mob-plan-jump-btn svg {
    color: var(--accent-red);
  }
  body:not(.force-desktop) .mob-quick-compare {
    margin-top: 18px;
    border-radius: 18px;
    background: #FFFFFF;
    border: var(--border-hairline);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
  }
  body:not(.force-desktop) .mob-qc-head-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 14px;
    background: var(--bg-subtle);
    border-bottom: var(--border-hairline);
  }
  body:not(.force-desktop) .mob-qc-title {
    font-family: var(--font-display);
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--text-heading);
  }
  body:not(.force-desktop) .mob-qc-hint {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
  }
  body:not(.force-desktop) .mob-qc-grid {
    display: flex;
    flex-direction: column;
  }
  body:not(.force-desktop) .mob-qc-row {
    display: grid;
    grid-template-columns: 1.05fr repeat(3, minmax(0, 1fr));
    align-items: center;
    border-bottom: 1px solid #F1F5F9;
  }
  body:not(.force-desktop) .mob-qc-row:last-child {
    border-bottom: none;
  }
  body:not(.force-desktop) .mob-qc-label {
    padding: 10px 8px 10px 14px;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text-muted);
  }
  body:not(.force-desktop) .mob-qc-tier {
    border: none;
    background: transparent;
    padding: 10px 4px;
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-heading);
    text-align: center;
    cursor: pointer;
  }
  body:not(.force-desktop) .mob-qc-tier.is-featured {
    color: var(--accent-red);
    background: rgba(255, 30, 39, 0.04);
  }
  body:not(.force-desktop) .mob-qc-val {
    padding: 10px 4px;
    font-size: 0.79rem;
    font-weight: 700;
    color: var(--text-heading);
    text-align: center;
    white-space: nowrap;
  }
  body:not(.force-desktop) .mob-qc-val small {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-muted);
  }
  body:not(.force-desktop) .mob-qc-val.is-featured {
    background: rgba(255, 30, 39, 0.04);
  }
  body:not(.force-desktop) .dash-topup-grid,
  body:not(.force-desktop) .matrix-grid {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: clamp(16px, 3vw, 32px);
    margin-inline: calc(clamp(16px, 3vw, 32px) * -1);
    padding: 4px clamp(16px, 3vw, 32px) 10px;
    gap: 14px;
    touch-action: pan-x pan-y;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    cursor: grab;
  }
  body:not(.force-desktop) .dash-topup-grid::-webkit-scrollbar,
  body:not(.force-desktop) .matrix-grid::-webkit-scrollbar {
    display: none;
  }
  body:not(.force-desktop) .dash-topup-card {
    flex: 0 0 82vw;
    max-width: 340px;
    scroll-snap-align: center;
  }
  body:not(.force-desktop) .matrix-card {
    flex: 0 0 80vw;
    max-width: 320px;
    scroll-snap-align: center;
  }
  body:not(.force-desktop) #faq:not(.is-faq-expanded) .faq-accordion-item:nth-of-type(n+5) {
    display: none;
  }
  body:not(.force-desktop) .mob-faq-toggle-btn {
    width: 100%;
    min-height: 46px;
    margin-top: 14px;
    padding: 0 18px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.88);
    border: var(--border-subtle);
    color: var(--text-heading);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.14s ease;
  }
  body:not(.force-desktop) .mob-faq-toggle-btn:active {
    transform: scale(0.985);
  }
  body:not(.force-desktop) .mob-faq-chevron {
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  }
  body:not(.force-desktop) #faq.is-faq-expanded .mob-faq-chevron {
    transform: rotate(180deg);
  }
  body:not(.force-desktop) .agency-banner-body,
  body:not(.force-desktop) .agency-features-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  body:not(.force-desktop) .agency-spotlight-banner,
  body:not(.force-desktop) .zero-freeze-banner,
  body:not(.force-desktop) .combo-studio-banner {
    padding: 24px 20px;
  }
  body:not(.force-desktop) .agency-cycle-pill-group {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  body:not(.force-desktop) .agency-cycle-pill {
    text-align: center;
    padding: 8px 4px;
    font-size: 0.72rem;
    min-height: 40px;
  }
  body:not(.force-desktop) .btn-agency-cta,
  body:not(.force-desktop) .btn-founding-hero-primary,
  body:not(.force-desktop) .btn-secondary-glass {
    width: 100%;
  }
  body:not(.force-desktop) .footer-studio {
    padding-bottom: 96px;
  }
}

/* Forced Desktop Mode Override on Mobile */
body.force-desktop .pricing-grid-4 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
body.force-desktop .dash-topup-grid,
body.force-desktop .matrix-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
body.force-desktop .agency-banner-body {
  grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.5fr) auto;
}

/* --- 9. Reduced Motion & Reduced Transparency --- */
@media (prefers-reduced-motion: reduce) {
  html.pricing-anim-ready .pricing-fade-up {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .pricing-card,
  .btn-founding-hero-primary,
  .btn-secondary-glass,
  .plan-cta-btn,
  .plan-features-more,
  .cycle-glider,
  .agency-cycle-glider {
    transition: none !important;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .billing-cycle-pill-group,
  .agency-cycle-pill-group,
  .cycle-glider,
  .agency-cycle-glider,
  .btn-secondary-glass,
  #modal-founding-pass::backdrop {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .cycle-glider,
  .agency-cycle-glider,
  .btn-secondary-glass {
    background: #FFFFFF;
  }
  #modal-founding-pass::backdrop {
    background: rgba(15, 23, 42, 0.92);
  }
}

/* --- 10. Synthesized 5-Idea Motion Architecture (Opt-In Reduced Motion) --- */
.founding-vault-card {
  position: relative;
  isolation: isolate;
}

.founding-vault-card > * {
  position: relative;
  z-index: 1;
}

.founding-vault-card .vault-price-row {
  position: relative;
}

.founding-vault-card .vault-price-row::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, rgba(251, 191, 36, 0.45), rgba(255, 255, 255, 0.14) 55%, transparent);
  transform-origin: center center;
  transform: scaleX(1);
}

.agency-banner-head {
  position: relative;
}

.agency-banner-head::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.50) 35%, rgba(255, 255, 255, 0.25) 65%, transparent);
  transform-origin: center center;
  transform: scaleX(1);
}

.zero-freeze-metrics-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
}

.zero-freeze-sparkline {
  width: 100%;
  max-width: 280px;
  height: 40px;
  display: block;
}

.zf-spark-line {
  stroke-dasharray: 100;
  stroke-dashoffset: 0;
}

.zf-spark-dot {
  opacity: 1;
  transform-origin: 256px 5px;
  transform: scale(1);
}

.matrix-card--winner {
  position: relative;
  overflow: hidden;
}

.matrix-card--winner::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(90deg, #10B981, #059669);
  transform-origin: left center;
  transform: scaleX(1);
}

.btn-roll-clip {
  display: inline-grid;
  align-items: center;
  overflow: hidden;
  line-height: 1.25;
}

.btn-roll-clip > span {
  grid-area: 1 / 1;
  display: inline-block;
  will-change: transform;
}

.btn-roll-ghost {
  visibility: hidden;
  pointer-events: none;
  user-select: none;
}

@media (prefers-reduced-motion: no-preference) {
  /* Stage 1: Safe Pre-Roll Initial Concealment (Cleared in 2.8s max failsafe) */
  html.pricing-entering #pricing-founding-banner .pricing-meta-pill,
  html.pricing-entering #pricing-founding-banner .pricing-hero-h1,
  html.pricing-entering #pricing-founding-banner .pricing-hero-lead,
  html.pricing-entering #pricing-founding-banner .pricing-hero-lead-mobile,
  html.pricing-entering #pricing-founding-banner .founding-hero-points li,
  html.pricing-entering #pricing-founding-banner .founding-hero-actions,
  html.pricing-entering #pricing-founding-banner .founding-vault-card,
  html.pricing-entering #pricing-evergreen-hero .pricing-meta-pill,
  html.pricing-entering #pricing-evergreen-hero .pricing-hero-h1,
  html.pricing-entering #pricing-evergreen-hero .pricing-hero-lead,
  html.pricing-entering #pricing-evergreen-hero .evergreen-actions {
    opacity: 0;
  }

  .p-line {
    display: block;
    overflow: hidden;
    padding-bottom: 14px;
    margin-bottom: -14px;
  }

  .p-in {
    display: inline-block;
  }

  /* Stage 1: Warm Obsidian Vault Atmospheric Drift + Stepped Slot Reveal */
  .founding-vault-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
      radial-gradient(280px 180px at 85% 12%, rgba(251, 191, 36, 0.14), transparent 72%),
      radial-gradient(240px 170px at 15% 88%, rgba(255, 30, 39, 0.09), transparent 74%);
    background-size: 120% 120%;
    pointer-events: none;
    z-index: 0;
    animation: pricing-vault-bloom 7s ease-in-out infinite alternate;
  }

  @keyframes pricing-vault-bloom {
    0% {
      opacity: 0.72;
      background-position: 0% 0%, 100% 100%;
    }
    100% {
      opacity: 1;
      background-position: 100% 25%, 10% 70%;
    }
  }

  .founding-vault-card.is-step-slots #pricing-founding-slots {
    display: inline-block;
    animation: pricing-slots-step 0.55s steps(10, end) both;
  }

  @keyframes pricing-slots-step {
    from {
      opacity: 0.15;
      clip-path: inset(0 100% 0 0);
    }
    to {
      opacity: 1;
      clip-path: inset(0 0 0 0);
    }
  }

  /* Stage 1: Vault 3D Pointer Tilt Transition */
  @media (pointer: fine) and (hover: hover) {
    .founding-vault-card {
      transition: transform 0.36s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease;
    }
    .founding-vault-card.is-tilting {
      transition: transform 0.08s linear;
    }
  }

  /* Stage 2: Inner-Card Stagger (Idea 3) */
  html.pricing-anim-ready .pricing-card:not(.is-visible) .plan-top-meta,
  html.pricing-anim-ready .pricing-card:not(.is-visible) .plan-price-block,
  html.pricing-anim-ready .pricing-card:not(.is-visible) .plan-cta-btn,
  html.pricing-anim-ready .pricing-card:not(.is-visible) > .plan-features-list > .feature-item {
    opacity: 0;
    transform: translateY(10px);
  }

  html.pricing-anim-ready .pricing-card .plan-top-meta,
  html.pricing-anim-ready .pricing-card .plan-price-block,
  html.pricing-anim-ready .pricing-card .plan-cta-btn,
  html.pricing-anim-ready .pricing-card > .plan-features-list > .feature-item {
    transition: opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  }

  html.pricing-anim-ready .pricing-card.is-visible .plan-top-meta { transition-delay: 0ms; }
  html.pricing-anim-ready .pricing-card.is-visible .plan-price-block { transition-delay: 70ms; }
  html.pricing-anim-ready .pricing-card.is-visible .plan-cta-btn { transition-delay: 130ms; }
  html.pricing-anim-ready .pricing-card.is-visible > .plan-features-list > .feature-item:nth-child(1) { transition-delay: 180ms; }
  html.pricing-anim-ready .pricing-card.is-visible > .plan-features-list > .feature-item:nth-child(2) { transition-delay: 225ms; }
  html.pricing-anim-ready .pricing-card.is-visible > .plan-features-list > .feature-item:nth-child(3) { transition-delay: 270ms; }
  html.pricing-anim-ready .pricing-card.is-visible > .plan-features-list > .feature-item:nth-child(4) { transition-delay: 315ms; }
  html.pricing-anim-ready .pricing-card.is-visible > .plan-features-list > .feature-item:nth-child(5) { transition-delay: 360ms; }
  html.pricing-anim-ready .pricing-card.is-visible > .plan-features-list > .feature-item:nth-child(6) { transition-delay: 405ms; }
  html.pricing-anim-ready .pricing-card.is-visible > .plan-features-list > .feature-item:nth-child(7) { transition-delay: 450ms; }

  /* Stage 2: Desktop Fanned Card Settle (Idea 1 + Tiered Stagger) */
  @media (min-width: 1025px) {
    html.pricing-anim-ready #plans-matrix .pricing-card.pricing-fade-up {
      transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
                  transform 0.65s cubic-bezier(0.16, 1, 0.3, 1),
                  box-shadow 0.2s ease,
                  border-color 0.2s ease;
    }
    html.pricing-anim-ready #plans-matrix .pricing-card.pricing-fade-up:not(.is-visible)[data-plan="creator"] {
      transform: translateY(22px) rotate(-1.2deg) scale(0.985);
    }
    html.pricing-anim-ready #plans-matrix .pricing-card.pricing-fade-up:not(.is-visible)[data-plan="pro"] {
      transform: translateY(26px) scale(0.985);
      transition-delay: 85ms;
    }
    html.pricing-anim-ready #plans-matrix .pricing-card.pricing-fade-up:not(.is-visible)[data-plan="max"] {
      transform: translateY(22px) rotate(1.2deg) scale(0.975);
      transition-delay: 165ms;
    }
    html.pricing-anim-ready #plans-matrix .pricing-card.pricing-fade-up.is-visible {
      transform: translateY(0) rotate(0deg) scale(1);
    }
    @media (hover: hover) and (pointer: fine) {
      html.pricing-anim-ready #plans-matrix .pricing-card.pricing-fade-up.is-visible:hover {
        transform: translateY(-2px) rotate(0deg) scale(1);
      }
    }
  }

  /* Stage 2: CTA Vertical Rolling Text Swap (Idea 3 AnimatedText) */
  @media (pointer: fine) and (hover: hover) {
    .btn-roll-ghost {
      visibility: visible;
      transform: translateY(115%);
    }
    .btn-roll-clip > span {
      transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .btn-roll-cta:hover .btn-roll-primary,
    .btn-roll-cta:focus-visible .btn-roll-primary {
      transform: translateY(-115%);
    }
    .btn-roll-cta:hover .btn-roll-ghost,
    .btn-roll-cta:focus-visible .btn-roll-ghost {
      transform: translateY(0%);
    }
  }

  /* Stage 3: Scroll-Driven Headline Sweep (Progressive View Timeline) */
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes pricing-clip-sweep {
      0% {
        background-position: 100% 0;
      }
      100% {
        background-position: 0% 0;
      }
    }

    .pricing-h2,
    #pricing-combo-banner h3 {
      background-image: linear-gradient(90deg, var(--text-heading) 0%, var(--text-heading) 48%, #64748B 65%, #94A3B8 100%);
      background-size: 220% 100%;
      background-position: 0% 0;
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
      -webkit-text-fill-color: transparent;
      animation: pricing-clip-sweep linear both;
      animation-timeline: view();
      animation-range: entry 10% entry 80%;
    }
  }

  /* Stage 3: Agency Dark Divider Hairline & Sparkline & Boosters */
  html.pricing-anim-ready .agency-spotlight-banner:not(.is-visible) .agency-banner-head::after {
    transform: scaleX(0);
  }
  .agency-spotlight-banner .agency-banner-head::after {
    transition: transform 0.72s cubic-bezier(0.16, 1, 0.3, 1) 0.16s;
  }

  html.pricing-anim-ready .zero-freeze-banner:not(.is-spark-drawn) .zf-spark-line {
    stroke-dashoffset: 100;
  }
  .zero-freeze-banner .zf-spark-line {
    transition: stroke-dashoffset 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.12s;
  }
  html.pricing-anim-ready .zero-freeze-banner:not(.is-spark-drawn) .zf-spark-dot {
    opacity: 0;
    transform: scale(0.4);
  }
  .zero-freeze-banner .zf-spark-dot {
    transition: opacity 0.35s ease 0.95s, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.95s;
  }

  html.pricing-anim-ready .dash-topup-grid .dash-topup-card:nth-child(2),
  html.pricing-anim-ready #overage-compare-matrix .matrix-card:nth-child(2) {
    transition-delay: 80ms;
  }
  html.pricing-anim-ready .dash-topup-grid .dash-topup-card:nth-child(3),
  html.pricing-anim-ready #overage-compare-matrix .matrix-card:nth-child(3) {
    transition-delay: 160ms;
  }

  html.pricing-anim-ready .matrix-card--winner:not(.is-visible)::after {
    transform: scaleX(0);
  }
  .matrix-card--winner::after {
    transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.22s;
  }

  /* Stage 4: Comparison Table Staggered Rows & Fine-Pointer Highlight */
  html.pricing-comp-ready .comp-table tbody tr:not(.is-row-visible) {
    opacity: 0;
    transform: translateY(10px);
  }
  .comp-table tbody tr {
    transition: opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .comp-table tbody tr td {
    transition: background-color 0.2s ease;
  }
  @media (pointer: fine) and (hover: hover) {
    .comp-table tbody tr:hover td.comp-col-kryska {
      background: rgba(16, 185, 129, 0.085);
    }
  }

  /* Stage 4: FAQ Chevron Spring Bounce */
  .faq-accordion-item .faq-chevron {
    transition: transform 0.34s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  .faq-accordion-item[open] .faq-accordion-content p {
    animation: pricing-faq-in 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  @keyframes pricing-faq-in {
    from {
      opacity: 0.4;
      transform: translateY(4px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

@media (max-width: 768px) {
  body:not(.force-desktop) .zero-freeze-metrics-wrap {
    align-items: stretch;
    width: 100%;
  }
  body:not(.force-desktop) .zero-freeze-sparkline {
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.pricing-entering * {
    opacity: 1 !important;
  }
  .founding-vault-card::after,
  .founding-vault-card.is-step-slots #pricing-founding-slots,
  .pricing-h2,
  #pricing-combo-banner h3,
  .faq-accordion-item[open] .faq-accordion-content p {
    animation: none !important;
  }
  .pricing-h2,
  #pricing-combo-banner h3 {
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    background-image: none !important;
    color: var(--text-heading) !important;
    -webkit-text-fill-color: currentColor !important;
  }
  .zf-spark-line {
    stroke-dashoffset: 0 !important;
  }
  .zf-spark-dot,
  .comp-table tbody tr,
  .matrix-card--winner::after,
  .agency-banner-head::after {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
