/* ════════════════════════════════════════
   AGENCY PARTNERS PAGE — Phase B Part 1 (revised)
   Reuses tokens + base classes from styles.css.
   Bundled-tier model. Interior-page hero (.page-hero, NOT .hero).
   ════════════════════════════════════════ */

/* ── Page-hero override only if needed (page-hero base lives in styles.css) ── */
.agency-partners .page-hero h1 {
  max-width: 760px;
}

/* ════════════════════════════════════════
   §1 TWO WAYS TO PARTNER — bespoke dynamic tier toggle
   Custom-designed; does NOT reuse .pricing-card from styles.css.
   Lives on a light bg with subtle accent treatment for distinct character.
   ════════════════════════════════════════ */

.ap-tiers-section {
  background: var(--white);
  position: relative;
  overflow: hidden;
}
.ap-tiers-section::before {
  content: '';
  position: absolute;
  top: -10%; right: -10%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.05) 0%, transparent 65%);
  pointer-events: none;
}
.ap-tiers-section::after {
  content: '';
  position: absolute;
  bottom: -10%; left: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0, 136, 255, 0.04) 0%, transparent 65%);
  pointer-events: none;
}
.ap-tiers-section > .container { position: relative; z-index: 1; }

/* TIER TOGGLE TABS */
.ap-tier-toggle-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}
.ap-tier-toggle {
  display: inline-flex;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 100px;
  padding: 6px;
  gap: 4px;
  box-shadow: 0 4px 24px rgba(27, 58, 92, 0.08);
}
.ap-tier-tab {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: 100px;
  font-family: var(--font-body);
  color: var(--gray-600);
  transition: all var(--transition);
  text-align: left;
}
.ap-tier-tab:hover {
  color: var(--navy);
  background: var(--gray-50);
}
.ap-tier-tab.active {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: var(--white);
  box-shadow: 0 6px 20px rgba(0, 136, 255, 0.35);
}
.ap-tier-tab.active[data-ap-tier="collaborator"] {
  background: linear-gradient(135deg, #B7F4FF, var(--cyan), var(--blue));
  box-shadow: 0 6px 24px rgba(0, 212, 255, 0.45);
}
.ap-tier-tab-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ap-tier-tab-icon svg {
  width: 22px;
  height: 22px;
}
.ap-tier-tab-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ap-tier-tab-eyebrow {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.7;
}
.ap-tier-tab-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-family: var(--font-display);
}

/* TIER TAGLINE (light bg) */
.ap-tier-tagline-wrap {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 40px;
}
.ap-tier-tagline {
  font-size: 18px;
  line-height: 1.6;
  color: var(--gray-700);
  margin-bottom: 8px;
  font-weight: 500;
}
.ap-tier-distinct {
  font-size: 14px;
  color: var(--blue);
  font-style: italic;
  font-weight: 600;
}

/* BUNDLE CARDS GRID (white cards on light bg) */
.ap-bundle-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}
.ap-bundle-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  position: relative;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-sm);
}
.ap-bundle-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 136, 255, 0.4);
  box-shadow: var(--shadow-lg);
}

/* Featured (Growth) gets cyan-glow border + light blue gradient bg */
.ap-bundle-card-featured {
  background: linear-gradient(180deg, var(--white), var(--ice));
  border-color: var(--cyan);
  border-width: 2px;
  box-shadow: 0 12px 36px rgba(0, 212, 255, 0.16), 0 0 0 1px var(--cyan);
}
.ap-bundle-card-featured:hover {
  border-color: var(--cyan);
  box-shadow: 0 16px 44px rgba(0, 212, 255, 0.24), 0 0 0 1px var(--cyan);
}
.ap-bundle-card-pill {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: var(--white);
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 5px 14px;
  border-radius: 100px;
  box-shadow: 0 4px 14px rgba(0, 212, 255, 0.4);
  white-space: nowrap;
}

/* Collaborator gets a slightly warmer accent */
.ap-bundle-card-collaborator {
  border-color: rgba(0, 212, 255, 0.25);
}
.ap-bundle-card-collaborator.ap-bundle-card-featured {
  background: linear-gradient(180deg, var(--white), #E0F7FF);
}

/* CARD HEADER */
.ap-bundle-card-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.ap-bundle-card-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--gray-200);
}
.ap-bundle-price-num {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.ap-bundle-price-suffix {
  font-size: 15px;
  color: var(--gray-500);
  font-weight: 500;
}

/* CAPACITY ROW (accounts + spend) */
.ap-bundle-card-cap {
  display: flex;
  align-items: stretch;
  background: var(--gray-50);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 20px;
}
.ap-bundle-cap-row {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
}
.ap-bundle-cap-num {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
}
.ap-bundle-cap-label {
  font-size: 10.5px;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.ap-bundle-cap-divider {
  width: 1px;
  background: var(--gray-200);
  margin: 4px 12px;
}

/* FEATURE LIST */
.ap-bundle-card-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ap-bundle-card-features li {
  position: relative;
  padding-left: 22px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--gray-700);
}
.ap-bundle-card-features li::before {
  content: '';
  position: absolute;
  left: 0; top: 7px;
  width: 12px; height: 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.5l2.5 2.5 5.5-5.5' fill='none' stroke='%230088FF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}
/* Collaborator-exclusive features get a special treatment */
.ap-bundle-feature-exclusive {
  color: var(--navy) !important;
  font-weight: 600;
}
.ap-bundle-feature-exclusive::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M6 1l1.5 3 3.5.5-2.5 2.5.5 3.5L6 9l-3 1.5.5-3.5L1 4.5 4.5 4z' fill='%2300D4FF' stroke='%230088FF' stroke-width='0.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
}

/* BUNDLE NOTE + CTA */
.ap-bundle-note {
  text-align: center;
  font-size: 14px;
  color: var(--gray-600);
  max-width: 760px;
  margin: 0 auto 28px;
  line-height: 1.55;
}
.ap-bundle-note strong {
  color: var(--blue);
  font-weight: 600;
}

.ap-tiers-cta {
  text-align: center;
}
.ap-tiers-cta-btn {
  font-size: 16px;
  padding: 18px 44px;
}

/* ════════════════════════════════════════
   §2 WHAT'S OUTSIDE — card grid (cleaner than basic list)
   ════════════════════════════════════════ */
.ap-outside-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  max-width: 1100px;
  margin: 0 auto;
}
.ap-outside-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 22px 18px;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ap-outside-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 136, 255, 0.25);
  box-shadow: var(--shadow-md);
}
.ap-outside-card-icon {
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light-blue);
  color: var(--blue);
  border-radius: 8px;
  margin-bottom: 4px;
}
.ap-outside-card-icon svg {
  width: 18px;
  height: 18px;
}
.ap-outside-card-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.ap-outside-card-desc {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.5;
}
.ap-outside-fullmenu {
  text-align: center;
  margin-top: 44px;
}

/* Dark-variant outline button — for use on light section backgrounds.
   Default .btn-outline (in styles.css) has white text/border, designed for navy bg. */
.ap-btn-outline-dark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  background: transparent;
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
  border: 1.5px solid var(--gray-300);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.ap-btn-outline-dark:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--white);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

/* ════════════════════════════════════════
   §4 ENGINES (with Sequence Preview)
   ════════════════════════════════════════ */
.section--navy {
  background: linear-gradient(180deg, var(--navy), var(--deep-navy));
  color: var(--white);
}
.section--navy .section-label { color: var(--cyan); }
.section--navy .section-title { color: var(--white); }
.section--navy .section-subtitle { color: rgba(255,255,255,0.78); }

.ap-engine-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 48px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 40px;
  align-items: stretch;
}
.ap-engine-content { display: flex; flex-direction: column; }
.ap-engine-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 12px;
}
.ap-engine-name {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 12px;
}
.ap-engine-tagline {
  font-size: 17px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 24px;
  line-height: 1.5;
}
.ap-engine-buckets {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ap-engine-buckets li {
  position: relative;
  padding-left: 24px;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255,255,255,0.8);
}
.ap-engine-buckets li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 8px; height: 8px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  border-radius: 50%;
}
.ap-engine-buckets strong { color: var(--white); font-weight: 600; }

.ap-engine-pricing {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ap-engine-price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}
.ap-engine-price-label {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  font-weight: 600;
}
.ap-engine-price-val {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
}
.ap-engine-price-val span {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
}
.ap-engine-callout {
  background: linear-gradient(135deg, rgba(0,212,255,0.1), rgba(0,136,255,0.06));
  border: 1px solid rgba(0,212,255,0.25);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 13px;
  line-height: 1.5;
}
.ap-engine-callout strong { color: var(--cyan); display: block; margin-bottom: 4px; font-size: 14px; }
.ap-engine-callout span { color: rgba(255,255,255,0.78); }

.ap-engine-cta-row {
  text-align: center;
  margin-top: 32px;
}
.ap-engine-cta {
  font-size: 16px;
  padding: 16px 36px;
}

/* ── Sequence Preview ── */
.ap-engine-visual { display: flex; align-items: stretch; }
.ap-seq-preview {
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-height: 720px;
  overflow: hidden;
}
.ap-seq-header { padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,0.08); margin-bottom: 14px; }
.ap-seq-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 6px;
}
.ap-seq-sub { font-size: 12px; color: rgba(255,255,255,0.6); }

.ap-seq-switchers { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.ap-seq-switcher { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ap-seq-switcher-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  min-width: 60px;
}
.ap-seq-switcher-btns { display: flex; gap: 4px; flex-wrap: wrap; padding: 4px; background: rgba(0,0,0,0.3); border-radius: 8px; border: 1px solid rgba(255,255,255,0.06); }
.ap-seq-pill {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
  font-family: var(--font-body);
  transition: all var(--transition);
}
.ap-seq-pill:hover { color: var(--white); }
.ap-seq-pill.active { background: var(--blue); color: var(--white); }
.ap-seq-pill[data-bucket="cold"].active { background: #60A5FA; color: var(--navy); }
.ap-seq-pill[data-bucket="mid"].active { background: #FACC15; color: var(--navy); }
.ap-seq-pill[data-bucket="adv"].active { background: #F472B6; color: var(--navy); }

.ap-seq-meta {
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 12px;
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 6px 12px;
}
.ap-seq-meta-key { color: rgba(255,255,255,0.5); font-weight: 500; }
.ap-seq-meta-val code {
  background: rgba(34,211,238,0.14);
  color: #67E8F9;
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 10.5px;
  font-family: ui-monospace, monospace;
}

.ap-seq-emails {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 4px;
}
.ap-seq-emails::-webkit-scrollbar { width: 6px; }
.ap-seq-emails::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 3px; }
.ap-seq-email {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  overflow: hidden;
}
.ap-seq-email-header {
  background: rgba(0,0,0,0.25);
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  gap: 10px;
}
.ap-seq-step-pill {
  background: var(--blue);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 100px;
}
.ap-seq-step-day { font-size: 11px; color: rgba(255,255,255,0.7); font-weight: 600; }
.ap-seq-subjects { padding: 8px 12px; border-bottom: 1px dashed rgba(255,255,255,0.08); }
.ap-seq-subjects-label {
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  font-weight: 700;
  margin-bottom: 4px;
}
.ap-seq-subject {
  font-size: 11.5px;
  font-family: ui-monospace, monospace;
  color: rgba(255,255,255,0.85);
  padding: 2px 0;
}
.ap-seq-ab { display: flex; gap: 4px; padding: 8px 12px 0; }
.ap-seq-ab-btn {
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.6);
  padding: 3px 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--font-body);
}
.ap-seq-ab-btn.active { background: var(--blue); color: var(--white); border-color: var(--blue); }
.ap-seq-body {
  padding: 10px 14px 12px;
  font-size: 12.5px;
  line-height: 1.55;
  color: rgba(255,255,255,0.85);
}
.ap-seq-body p { margin: 0 0 8px; }
.ap-seq-body p:last-child { margin-bottom: 0; }
.ap-seq-body p.ap-seq-ps {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.6);
  font-size: 11.5px;
}
.ap-seq-token {
  background: rgba(34,211,238,0.14);
  color: #67E8F9;
  padding: 0 4px;
  border-radius: 3px;
  font-family: ui-monospace, monospace;
  font-size: 11.5px;
}
.ap-seq-body strong { color: #93C5FD; font-weight: 600; }
.ap-seq-wc {
  display: inline-block;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.5);
  padding: 1px 7px;
  border-radius: 100px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin: 8px 14px 0;
}
.ap-seq-caption {
  font-size: 10.5px;
  color: rgba(255,255,255,0.45);
  text-align: center;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-style: italic;
}

/* ════════════════════════════════════════
   §5 PILLARS (How We're Different) — 6 pillars (3-col grid)
   ════════════════════════════════════════ */
.ap-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.ap-pillar {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.ap-pillar:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 136, 255, 0.2);
}
.ap-pillar-num {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--blue);
  background: var(--light-blue);
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}
.ap-pillar h4 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.ap-pillar p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--gray-600);
}

/* ════════════════════════════════════════
   §6 DISRUPTION VIZ (moved to bottom; bundled-spend toggles)
   ════════════════════════════════════════ */
.ap-disruption {
  max-width: 980px;
  margin: 0 auto;
}
.ap-disruption-toggles {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.ap-disruption-toggle-group {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ap-disruption-toggle-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-500);
}
.ap-disruption-toggle {
  display: inline-flex;
  background: var(--white);
  padding: 6px;
  border-radius: 100px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  flex-wrap: wrap;
}
.ap-budget-btn,
.ap-tier-btn {
  background: transparent;
  border: none;
  padding: 8px 18px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-600);
  border-radius: 100px;
  cursor: pointer;
  transition: all var(--transition);
}
.ap-budget-btn:hover,
.ap-tier-btn:hover { color: var(--navy); }
.ap-budget-btn.active,
.ap-tier-btn.active {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: var(--white);
  box-shadow: 0 4px 12px rgba(0, 136, 255, 0.25);
}

.ap-stacks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 32px;
}
.ap-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.ap-stack-label {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.ap-stack-bar {
  width: 100%;
  max-width: 280px;
  height: 380px;
  background: var(--gray-100);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column-reverse;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  position: relative;
}
.ap-segment {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  text-align: center;
  transition: height 0.6s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s;
  height: 0;
  overflow: hidden;
}
.ap-seg-amount {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}
.ap-seg-name {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 4px;
}
.ap-seg-agency { background: linear-gradient(180deg, var(--gray-500), var(--gray-600)); }
.ap-seg-industry-margin { background: linear-gradient(180deg, #F87171, #DC2626); }
.ap-seg-industry-platforms { background: linear-gradient(180deg, var(--blue), #0066CC); }
.ap-seg-collab-fee { background: linear-gradient(180deg, var(--navy), var(--deep-navy)); }
.ap-seg-collab-platforms {
  background: linear-gradient(180deg, var(--cyan), var(--blue));
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.4);
  position: relative;
}
.ap-seg-collab-platforms::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,212,255,0.3), transparent);
  animation: ap-pulse 3s ease-in-out infinite;
}
@keyframes ap-pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.9; }
}
.ap-stack-pct {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-600);
}
.ap-stack-collab .ap-stack-pct { color: var(--blue); }
.ap-disruption-caption {
  text-align: center;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 500;
  color: var(--navy);
  max-width: 720px;
  margin: 24px auto 0;
  line-height: 1.5;
}

/* ════════════════════════════════════════
   "And it's not just the math" — qualitative comparison
   ════════════════════════════════════════ */
.ap-compare {
  margin-top: 80px;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}
.ap-compare-header {
  text-align: center;
  margin-bottom: 36px;
}
.ap-compare-header .section-label {
  margin-bottom: 8px;
}
.ap-compare-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 30px);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.25;
  max-width: 720px;
  margin: 0 auto;
}
.ap-compare-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.ap-compare-col {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  border: 1px solid var(--gray-200);
}
.ap-compare-them {
  background: var(--gray-50);
  border-color: var(--gray-200);
}
.ap-compare-us {
  background: linear-gradient(180deg, var(--white), var(--ice));
  border: 2px solid var(--cyan);
  box-shadow: 0 12px 36px rgba(0, 212, 255, 0.12);
  position: relative;
}
.ap-compare-col-header {
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--gray-200);
}
.ap-compare-us .ap-compare-col-header {
  border-bottom-color: rgba(0, 212, 255, 0.25);
}
.ap-compare-col-eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 6px;
}
.ap-compare-us .ap-compare-col-eyebrow {
  color: var(--blue);
}
.ap-compare-col-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.ap-compare-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ap-compare-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--gray-700);
}
.ap-compare-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  margin-top: 1px;
}
.ap-compare-them .ap-compare-icon {
  background: rgba(220, 53, 69, 0.1);
  color: #DC2626;
}
.ap-compare-us .ap-compare-icon {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: var(--white);
}
.ap-compare-list li strong {
  color: var(--navy);
  font-weight: 700;
}

/* ════════════════════════════════════════
   APPLY MODAL + FORM
   ════════════════════════════════════════ */
.ap-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.ap-modal[hidden] { display: none; }
.ap-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 30, 50, 0.7);
  backdrop-filter: blur(4px);
  animation: ap-fade-in 0.2s ease;
}
@keyframes ap-fade-in { from { opacity: 0; } to { opacity: 1; } }
.ap-modal-content {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 36px;
  box-shadow: var(--shadow-xl);
  animation: ap-slide-up 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes ap-slide-up {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.ap-modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 32px; height: 32px;
  background: var(--gray-100);
  border: none;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  color: var(--gray-600);
  cursor: pointer;
  transition: all var(--transition);
}
.ap-modal-close:hover { background: var(--gray-200); color: var(--navy); }
.ap-modal-content h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.ap-modal-sub { font-size: 14px; color: var(--gray-600); margin-bottom: 24px; }

.ap-form { display: flex; flex-direction: column; gap: 16px; }
.ap-form[hidden] { display: none; }
.ap-form label {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ap-form input[type="text"],
.ap-form input[type="email"],
.ap-form input[type="number"],
.ap-form textarea {
  padding: 10px 12px;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--navy);
  font-weight: 400;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.ap-form input:focus,
.ap-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 136, 255, 0.12);
}
.ap-form textarea { resize: vertical; min-height: 80px; }
.ap-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.ap-form-fieldset {
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  gap: 12px 16px;
  flex-wrap: wrap;
}
.ap-form-fieldset legend {
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-600);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0 6px;
}
.ap-radio, .ap-checkbox {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 6px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: var(--gray-700) !important;
  cursor: pointer;
}
.ap-radio input, .ap-checkbox input { accent-color: var(--blue); }
.ap-form-textarea-label { gap: 6px !important; }
.ap-form-submit { margin-top: 8px; align-self: flex-start; }
.ap-form-privacy {
  font-size: 12px;
  color: var(--gray-500);
  line-height: 1.5;
  margin-top: 4px;
}
.ap-form-success {
  text-align: center;
  padding: 32px 12px;
}
.ap-form-success-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: var(--white);
  font-size: 28px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.ap-form-success h4 {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--navy);
  margin-bottom: 8px;
}
.ap-form-success p { color: var(--gray-600); font-size: 14px; }

/* ════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════ */
@media (max-width: 900px) {
  .ap-stacks { gap: 24px; }
  .ap-stack-bar { height: 320px; }
  .ap-outside-grid { grid-template-columns: 1fr; gap: 20px; }
  .ap-engine-showcase { grid-template-columns: 1fr; padding: 28px; gap: 32px; }
  .ap-engine-name { font-size: 30px; }
  .ap-pillars { grid-template-columns: 1fr; }
  .ap-form-row { grid-template-columns: 1fr; }
  .ap-modal-content { padding: 28px 20px; }
  .ap-seq-preview { max-height: none; }
  .ap-disruption-toggles { gap: 16px; flex-direction: column; align-items: center; }
  .ap-bundle-cards { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; }
  .ap-tier-toggle { flex-direction: column; padding: 8px; }
  .ap-tier-tab { width: 100%; }
  .ap-outside-cards { grid-template-columns: repeat(2, 1fr); }
  .ap-compare-table { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 600px) {
  .ap-disruption-toggle { padding: 4px; }
  .ap-budget-btn, .ap-tier-btn { padding: 7px 14px; font-size: 12px; }
  .ap-engine-showcase { padding: 24px 20px; }
  .ap-bundle-card { padding: 28px 22px; }
  .ap-bundle-price-num { font-size: 36px; }
  .ap-tier-tab { padding: 10px 16px; }
  .ap-tier-tab-name { font-size: 15px; }
  .ap-outside-cards { grid-template-columns: 1fr; }
  .ap-compare-col { padding: 24px 20px; }
}

/* ════════════════════════════════════════
   ROUND 4 (2026-04-29): bg-rhythm overrides
   - §4 How We're Different now on DARK NAVY (was white) → flip pillar cards to glass treatment
   - §5 Engines now on LIGHT BLUE (was dark navy) → flip all engine + sequence preview to light treatment
   ════════════════════════════════════════ */

/* ── Pillars on dark navy bg ── */
.section--navy .ap-pillar {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.section--navy .ap-pillar:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(0, 212, 255, 0.35);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
}
.section--navy .ap-pillar-num {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: var(--white);
  font-weight: 800;
}
.section--navy .ap-pillar h4 { color: var(--white); }
.section--navy .ap-pillar p { color: rgba(255, 255, 255, 0.78); }

/* ── Engines section on light blue bg (#engines.section--light) ── */
#engines.section--light .ap-engine-showcase {
  background: var(--white);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-md);
}
#engines.section--light .ap-engine-eyebrow {
  color: var(--blue);
}
#engines.section--light .ap-engine-name {
  color: var(--navy);
}
#engines.section--light .ap-engine-tagline {
  color: var(--navy);
  font-weight: 600;
  font-size: 18px;
}
#engines.section--light .ap-engine-sub {
  color: var(--gray-600);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
}
#engines.section--light .ap-engine-buckets li {
  color: var(--gray-700);
}
#engines.section--light .ap-engine-buckets strong {
  color: var(--navy);
}
#engines.section--light .ap-engine-pricing {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
}
#engines.section--light .ap-engine-price-label {
  color: var(--gray-600);
}
#engines.section--light .ap-engine-price-val {
  color: var(--navy);
}
#engines.section--light .ap-engine-price-val span {
  color: var(--gray-500);
}
#engines.section--light .ap-engine-callout {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.08), rgba(0, 136, 255, 0.05));
  border: 1px solid rgba(0, 212, 255, 0.3);
}
#engines.section--light .ap-engine-callout strong {
  color: var(--blue);
}
#engines.section--light .ap-engine-callout span {
  color: var(--gray-700);
}

/* ── Sequence preview on light blue bg ── */
#engines.section--light .ap-seq-preview {
  background: var(--white);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}
#engines.section--light .ap-seq-header {
  border-bottom-color: var(--gray-200);
}
#engines.section--light .ap-seq-eyebrow {
  color: var(--blue);
}
#engines.section--light .ap-seq-sub {
  color: var(--gray-600);
}
#engines.section--light .ap-seq-switcher-label {
  color: var(--gray-500);
}
#engines.section--light .ap-seq-switcher-btns {
  background: var(--gray-50);
  border-color: var(--gray-200);
}
#engines.section--light .ap-seq-pill {
  color: var(--gray-600);
}
#engines.section--light .ap-seq-pill:hover {
  color: var(--navy);
}
#engines.section--light .ap-seq-pill.active {
  background: var(--blue);
  color: var(--white);
}
#engines.section--light .ap-seq-pill[data-bucket="cold"].active {
  background: #3B82F6;
  color: var(--white);
}
#engines.section--light .ap-seq-pill[data-bucket="mid"].active {
  background: #F59E0B;
  color: var(--white);
}
#engines.section--light .ap-seq-pill[data-bucket="adv"].active {
  background: #EC4899;
  color: var(--white);
}
#engines.section--light .ap-seq-meta {
  background: var(--gray-50);
  color: var(--gray-700);
}
#engines.section--light .ap-seq-meta-key {
  color: var(--gray-500);
}
#engines.section--light .ap-seq-meta-val code {
  background: var(--light-blue);
  color: var(--blue);
}
#engines.section--light .ap-seq-emails::-webkit-scrollbar-thumb {
  background: var(--gray-300);
}
#engines.section--light .ap-seq-email {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
}
#engines.section--light .ap-seq-email-header {
  background: var(--white);
  border-bottom-color: var(--gray-200);
}
#engines.section--light .ap-seq-step-day {
  color: var(--gray-700);
}
#engines.section--light .ap-seq-subjects {
  border-bottom-color: var(--gray-200);
}
#engines.section--light .ap-seq-subjects-label {
  color: var(--gray-500);
}
#engines.section--light .ap-seq-subject {
  color: var(--navy);
}
#engines.section--light .ap-seq-ab-btn {
  background: var(--white);
  border-color: var(--gray-300);
  color: var(--gray-600);
}
#engines.section--light .ap-seq-ab-btn.active {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
#engines.section--light .ap-seq-body {
  color: var(--gray-700);
}
#engines.section--light .ap-seq-body p.ap-seq-ps {
  border-top-color: var(--gray-200);
  color: var(--gray-500);
}
#engines.section--light .ap-seq-body strong {
  color: var(--blue);
}
#engines.section--light .ap-seq-token {
  background: var(--light-blue);
  color: var(--blue);
}
#engines.section--light .ap-seq-wc {
  background: var(--gray-50);
  border-color: var(--gray-200);
  color: var(--gray-500);
}
#engines.section--light .ap-seq-caption {
  color: var(--gray-500);
  border-top-color: var(--gray-200);
}
