/* ==========================================================================
   ACT 5: THE BRUTAL COMPETITIVE TEARDOWN, AGENCY ROI CALCULATOR & FINALE
   Scoped strictly to #act-5-mount and .act5-*
   ========================================================================== */

#act-5-mount {
  position: relative;
  width: 100%;
  padding: 120px 0 140px;
  color: var(--text-primary, #f5f5f7);
  font-family: var(--font-sans, 'Inter', -apple-system, BlinkMacSystemFont, sans-serif);
  overflow: hidden;
  z-index: 2;
}

#act-5-mount::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(1200px, 92vw);
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(41, 151, 255, 0.35) 25%,
    rgba(48, 209, 88, 0.5) 50%,
    rgba(41, 151, 255, 0.35) 75%,
    transparent 100%
  );
}

.act5-shell {
  width: min(1320px, 92vw);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 96px;
}

/* --------------------------------------------------------------------------
   Section Header & Eyebrow Badges
   -------------------------------------------------------------------------- */
.act5-header {
  max-width: 920px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.act5-eyebrow-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.act5-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(41, 151, 255, 0.1);
  border: 1px solid rgba(41, 151, 255, 0.3);
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64b5ff;
}

.act5-eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-emerald, #30d158);
  box-shadow: 0 0 10px var(--accent-emerald, #30d158);
}

.act5-eyebrow-tag {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 11px;
  color: var(--text-secondary, #a1a1aa);
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.act5-title {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: clamp(2.25rem, 4.4vw, 3.85rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: #ffffff;
  text-wrap: balance;
}

.act5-title-serif {
  font-family: var(--font-serif, 'Instrument Serif', Georgia, serif);
  font-style: italic;
  font-weight: 400;
  color: #7cc4ff;
  padding-right: 4px;
}

.act5-subtitle {
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.6;
  color: var(--text-secondary, #a1a1aa);
  max-width: 780px;
}

.act5-subtitle strong {
  color: #f5f5f7;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Part A.1: Interactive 3-Tab Visual Stress Test
   -------------------------------------------------------------------------- */
.act5-stress-block {
  background: rgba(14, 16, 24, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  padding: 32px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.act5-stress-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding-bottom: 20px;
}

.act5-stress-heading-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.act5-kicker {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-blue, #2997ff);
}

.act5-section-h3 {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.act5-stress-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.act5-replay-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid rgba(41, 151, 255, 0.35);
  background: rgba(41, 151, 255, 0.12);
  color: #e2f1ff;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.act5-replay-btn:hover {
  background: rgba(41, 151, 255, 0.22);
  transform: translateY(-1px);
}

.act5-scenario-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.act5-scenario-tab {
  text-align: left;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary, #a1a1aa);
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  overflow: hidden;
}

.act5-scenario-tab:hover {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.act5-scenario-tab.is-active {
  background: linear-gradient(135deg, rgba(41, 151, 255, 0.16), rgba(48, 209, 88, 0.08));
  border-color: rgba(41, 151, 255, 0.55);
  color: #fff;
  box-shadow: 0 10px 30px rgba(41, 151, 255, 0.15);
}

.act5-scenario-tab-num {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-blue, #2997ff);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.act5-scenario-tab.is-active .act5-scenario-tab-num {
  color: #7cc4ff;
}

.act5-scenario-tab-title {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.35;
  color: #f5f5f7;
}

.act5-scenario-tab-sub {
  font-size: 12px;
  color: var(--text-muted, #71717a);
  line-height: 1.4;
}

.act5-stress-prompt-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(5, 6, 10, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 12.5px;
}

.act5-prompt-label {
  color: var(--accent-emerald, #30d158);
  font-weight: 700;
  margin-right: 8px;
}

.act5-prompt-text {
  color: #f5f5f7;
}

.act5-prompt-req {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: #a1a1aa;
}

/* 3-Column Comparison Stage inside Stress Test */
.act5-stress-stage {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.act5-lane {
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  background: rgba(18, 20, 30, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  transition: transform 0.28s ease, border-color 0.28s ease;
}

.act5-lane.act5-lane-fail {
  border-color: rgba(255, 69, 58, 0.28);
  background: linear-gradient(180deg, rgba(255, 69, 58, 0.06) 0%, rgba(16, 18, 26, 0.85) 100%);
}

.act5-lane.act5-lane-warn {
  border-color: rgba(255, 159, 10, 0.3);
  background: linear-gradient(180deg, rgba(255, 159, 10, 0.07) 0%, rgba(16, 18, 26, 0.85) 100%);
}

.act5-lane.act5-lane-win {
  border-color: rgba(48, 209, 88, 0.5);
  background: linear-gradient(180deg, rgba(41, 151, 255, 0.12) 0%, rgba(48, 209, 88, 0.08) 100%);
  box-shadow: 0 0 36px rgba(48, 209, 88, 0.12);
}

.act5-lane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.act5-lane-agent {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.act5-lane-agent-name {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.act5-lane-agent-type {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 11px;
  color: var(--text-muted, #71717a);
}

.act5-lane-badge {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.act5-lane-badge-fail {
  background: rgba(255, 69, 58, 0.16);
  color: #ff6961;
  border: 1px solid rgba(255, 69, 58, 0.35);
}

.act5-lane-badge-warn {
  background: rgba(255, 159, 10, 0.16);
  color: #ffb340;
  border: 1px solid rgba(255, 159, 10, 0.38);
}

.act5-lane-badge-win {
  background: rgba(48, 209, 88, 0.18);
  color: #30d158;
  border: 1px solid rgba(48, 209, 88, 0.45);
}

.act5-lane-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.act5-chat-bubble {
  padding: 14px;
  border-radius: 12px;
  background: rgba(8, 9, 14, 0.8);
  border: 1px solid rgba(255, 69, 58, 0.25);
  font-size: 13px;
  line-height: 1.55;
  color: #e4e4e7;
  font-family: var(--font-sans, sans-serif);
}

.act5-chat-bubble code {
  font-family: var(--font-mono, monospace);
  color: #ff6961;
  font-size: 12px;
}

/* Node graph visual inside Zapier/Lindy lane */
.act5-node-chain {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.act5-node-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 9px;
  background: rgba(8, 9, 14, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono, monospace);
  font-size: 11.5px;
  color: #d4d4d8;
}

.act5-node-item.is-broken {
  background: rgba(255, 69, 58, 0.14);
  border-color: rgba(255, 69, 58, 0.55);
  color: #ffd3d0;
  animation: act5Shake 0.45s ease;
}

@keyframes act5Shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  50% { transform: translateX(4px); }
  75% { transform: translateX(-2px); }
}

/* @Intern step-by-step live trace */
.act5-intern-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.act5-intern-step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 9px;
  background: rgba(7, 14, 12, 0.78);
  border: 1px solid rgba(48, 209, 88, 0.3);
  font-family: var(--font-mono, monospace);
  font-size: 11.5px;
  color: #e4fff0;
  opacity: 0;
  transform: translateY(6px);
  animation: act5StepIn 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.act5-intern-step:nth-child(1) { animation-delay: 0.04s; }
.act5-intern-step:nth-child(2) { animation-delay: 0.14s; }
.act5-intern-step:nth-child(3) { animation-delay: 0.24s; }
.act5-intern-step:nth-child(4) { animation-delay: 0.34s; }

@keyframes act5StepIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.act5-step-time {
  color: var(--accent-emerald, #30d158);
  font-weight: 700;
  font-size: 10.5px;
  white-space: nowrap;
}

.act5-lane-foot {
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-family: var(--font-mono, monospace);
  font-size: 11.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.act5-lane-foot-fail { color: #ff6961; }
.act5-lane-foot-warn { color: #ffb340; }
.act5-lane-foot-win { color: #30d158; }

/* --------------------------------------------------------------------------
   Part A.2: Full 6-Column Competitive Matrix
   -------------------------------------------------------------------------- */
.act5-matrix-block {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.act5-matrix-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.act5-filter-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.act5-filter-pill {
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary, #a1a1aa);
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.act5-filter-pill:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
}

.act5-filter-pill.is-active {
  background: rgba(41, 151, 255, 0.18);
  border-color: var(--accent-blue, #2997ff);
  color: #fff;
  box-shadow: 0 0 18px rgba(41, 151, 255, 0.22);
}

.act5-matrix-hint {
  font-family: var(--font-mono, monospace);
  font-size: 11.5px;
  color: var(--text-muted, #71717a);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Competitor Verdict Callout Strip */
.act5-competitor-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.act5-comp-card {
  padding: 13px 14px;
  border-radius: 12px;
  background: rgba(18, 20, 29, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.07);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-align: left;
}

.act5-comp-card:hover,
.act5-comp-card.is-highlighted {
  border-color: rgba(255, 159, 10, 0.5);
  background: rgba(255, 159, 10, 0.08);
  transform: translateY(-2px);
}

.act5-comp-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.act5-comp-card-name {
  font-family: var(--font-display, sans-serif);
  font-size: 13.5px;
  font-weight: 700;
  color: #f5f5f7;
}

.act5-comp-card-tag {
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 69, 58, 0.14);
  color: #ff6961;
}

.act5-comp-card-flaw {
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--text-secondary, #a1a1aa);
}

/* Scrollable 6-Column Table Container */
.act5-table-scroll {
  width: 100%;
  overflow-x: auto;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(12, 14, 22, 0.86);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
}

.act5-matrix-table {
  width: 100%;
  min-width: 1080px;
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
}

.act5-matrix-table th,
.act5-matrix-table td {
  padding: 16px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  vertical-align: top;
  font-size: 13px;
  line-height: 1.45;
}

.act5-matrix-table thead th {
  position: sticky;
  top: 0;
  z-index: 4;
  background: rgba(14, 16, 26, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px 16px;
}

/* Sticky First Column */
.act5-matrix-table th:first-child,
.act5-matrix-table td.act5-col-feature {
  position: sticky;
  left: 0;
  z-index: 3;
  background: rgba(14, 16, 25, 0.96);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  width: 215px;
  min-width: 215px;
}

.act5-matrix-table thead th:first-child {
  z-index: 5;
}

/* Highlighted Nace @Intern Hero Column */
.act5-matrix-table th.act5-col-intern,
.act5-matrix-table td.act5-col-intern {
  background: rgba(41, 151, 255, 0.1);
  border-left: 1px solid rgba(41, 151, 255, 0.45);
  border-right: 1px solid rgba(41, 151, 255, 0.45);
  width: 230px;
  min-width: 230px;
}

.act5-matrix-table thead th.act5-col-intern {
  background: linear-gradient(180deg, rgba(41, 151, 255, 0.26) 0%, rgba(20, 35, 62, 0.95) 100%);
  border-top: 2px solid #2997ff;
}

.act5-matrix-table td.is-comp-spotlight,
.act5-matrix-table th.is-comp-spotlight {
  background: rgba(255, 159, 10, 0.09) !important;
}

.act5-th-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.act5-th-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  align-self: flex-start;
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(48, 209, 88, 0.2);
  color: #30d158;
  border: 1px solid rgba(48, 209, 88, 0.4);
}

.act5-th-name {
  font-family: var(--font-display, sans-serif);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.act5-th-sub {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  color: var(--text-muted, #71717a);
  font-weight: 400;
}

.act5-row-main {
  cursor: pointer;
  transition: background 0.18s ease;
}

.act5-row-main:hover td {
  background-color: rgba(255, 255, 255, 0.03);
}

.act5-row-main:hover td.act5-col-intern {
  background-color: rgba(41, 151, 255, 0.15);
}

.act5-feature-cell-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.act5-feature-title {
  font-weight: 600;
  color: #f5f5f7;
  font-size: 13.5px;
}

.act5-feature-cat {
  display: block;
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  color: var(--text-muted, #71717a);
  text-transform: uppercase;
  margin-top: 3px;
}

.act5-expand-icon {
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  color: var(--accent-blue, #2997ff);
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(41, 151, 255, 0.12);
  transition: transform 0.2s ease;
}

.act5-row-main.is-expanded .act5-expand-icon {
  transform: rotate(180deg);
  background: rgba(48, 209, 88, 0.2);
  color: #30d158;
}

/* Status Pills inside Matrix Cells */
.act5-cell-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  margin-bottom: 5px;
}

.act5-status-yes {
  background: rgba(48, 209, 88, 0.16);
  color: #30d158;
  border: 1px solid rgba(48, 209, 88, 0.35);
}

.act5-status-no {
  background: rgba(255, 69, 58, 0.13);
  color: #ff6961;
  border: 1px solid rgba(255, 69, 58, 0.28);
}

.act5-status-partial {
  background: rgba(255, 159, 10, 0.14);
  color: #ffb340;
  border: 1px solid rgba(255, 159, 10, 0.3);
}

.act5-status-neutral {
  background: rgba(255, 255, 255, 0.07);
  color: #d4d4d8;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.act5-cell-desc {
  display: block;
  color: var(--text-secondary, #a1a1aa);
  font-size: 12.5px;
  line-height: 1.45;
}

.act5-col-intern .act5-cell-desc {
  color: #eef6ff;
  font-weight: 500;
}

/* Expanded Row Drawer */
.act5-row-detail {
  display: none;
}

.act5-row-detail.is-open {
  display: table-row;
}

.act5-row-detail td {
  background: rgba(9, 12, 20, 0.95);
  padding: 18px 22px;
  border-bottom: 1px solid rgba(41, 151, 255, 0.3);
}

.act5-detail-box {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 1fr;
  gap: 18px;
  align-items: center;
}

.act5-detail-col {
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.act5-detail-col-label {
  font-family: var(--font-mono, monospace);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-blue, #2997ff);
  margin-bottom: 5px;
  display: block;
}

.act5-detail-col p {
  font-size: 12.5px;
  color: #e4e4e7;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Part B: Interactive Agency ROI & SaaS Consolidation Calculator
   -------------------------------------------------------------------------- */
.act5-roi-block {
  background: rgba(14, 16, 25, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 22px;
  padding: 36px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.act5-roi-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 20px;
}

.act5-preset-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.act5-preset-btn {
  padding: 7px 13px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary, #a1a1aa);
  font-family: var(--font-mono, monospace);
  font-size: 11.5px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.act5-preset-btn:hover,
.act5-preset-btn.is-active {
  background: rgba(41, 151, 255, 0.16);
  border-color: rgba(41, 151, 255, 0.45);
  color: #fff;
}

.act5-roi-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.15fr;
  gap: 28px;
  align-items: stretch;
}

.act5-sliders-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  padding: 24px;
  border-radius: 16px;
  background: rgba(8, 10, 16, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.act5-slider-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.act5-slider-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.act5-slider-label {
  font-size: 13.5px;
  font-weight: 600;
  color: #f5f5f7;
}

.act5-slider-val {
  font-family: var(--font-mono, monospace);
  font-size: 18px;
  font-weight: 700;
  color: var(--accent-blue, #2997ff);
  white-space: nowrap;
}

.act5-range-input {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  outline: none;
  cursor: pointer;
}

.act5-range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #2997ff;
  border: 3px solid #ffffff;
  box-shadow: 0 0 16px rgba(41, 151, 255, 0.8);
  cursor: grab;
  transition: transform 0.15s ease;
}

.act5-range-input::-webkit-slider-thumb:hover {
  transform: scale(1.12);
}

.act5-range-input::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #2997ff;
  border: 3px solid #ffffff;
  box-shadow: 0 0 16px rgba(41, 151, 255, 0.8);
  cursor: grab;
}

.act5-slider-scale {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono, monospace);
  font-size: 10.5px;
  color: var(--text-muted, #71717a);
}

/* ROI Readout Panel */
.act5-roi-readout {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  padding: 26px;
  border-radius: 16px;
  background: linear-gradient(155deg, rgba(41, 151, 255, 0.14) 0%, rgba(48, 209, 88, 0.08) 60%, rgba(10, 12, 20, 0.9) 100%);
  border: 1px solid rgba(41, 151, 255, 0.38);
}

.act5-roi-kpis {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 16px;
}

.act5-roi-kpi-card {
  padding: 18px;
  border-radius: 14px;
  background: rgba(7, 9, 15, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.act5-roi-kpi-label {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary, #a1a1aa);
}

.act5-roi-kpi-num {
  font-family: var(--font-display, sans-serif);
  font-size: clamp(1.8rem, 2.9vw, 2.65rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.act5-roi-kpi-num.act5-emerald {
  color: var(--accent-emerald, #30d158);
  text-shadow: 0 0 24px rgba(48, 209, 88, 0.35);
}

.act5-roi-kpi-sub {
  font-size: 12px;
  color: var(--text-muted, #71717a);
}

.act5-saas-replaced-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.act5-saas-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono, monospace);
  font-size: 11.5px;
  color: #d4d4d8;
}

.act5-saas-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.act5-saas-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 8px;
  background: rgba(8, 10, 16, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  color: #a1a1aa;
  transition: all 0.2s ease;
}

.act5-saas-badge.is-replaced {
  border-color: rgba(48, 209, 88, 0.45);
  background: rgba(48, 209, 88, 0.12);
  color: #e4fff0;
}

.act5-saas-strike {
  text-decoration: line-through;
  opacity: 0.75;
}

.act5-saas-tag {
  color: var(--accent-emerald, #30d158);
  font-weight: 700;
}

/* 4 Agency Deliverable Showcase Cards inside Part B */
.act5-deliverables-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.act5-deliv-card {
  padding: 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  transition: all 0.2s ease;
}

.act5-deliv-card:hover {
  border-color: rgba(41, 151, 255, 0.4);
  background: rgba(41, 151, 255, 0.06);
  transform: translateY(-2px);
}

.act5-deliv-title {
  font-family: var(--font-display, sans-serif);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.act5-deliv-desc {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-secondary, #a1a1aa);
}

.act5-deliv-meta {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  color: var(--accent-emerald, #30d158);
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* --------------------------------------------------------------------------
   Part C: The Grand Odyssey Finale & Live Scroll Receipt
   -------------------------------------------------------------------------- */
.act5-finale-block {
  position: relative;
  border-radius: 24px;
  padding: 44px;
  background: radial-gradient(circle at 80% 15%, rgba(41, 151, 255, 0.2), transparent 55%),
              radial-gradient(circle at 15% 85%, rgba(48, 209, 88, 0.15), transparent 55%),
              rgba(12, 14, 22, 0.9);
  border: 1px solid rgba(41, 151, 255, 0.35);
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.65);
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 36px;
  align-items: center;
}

.act5-finale-left {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.act5-finale-headline {
  font-family: var(--font-display, sans-serif);
  font-size: clamp(2rem, 3.5vw, 3.1rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #fff;
}

.act5-offer-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.act5-offer-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(48, 209, 88, 0.12);
  border: 1px solid rgba(48, 209, 88, 0.35);
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  font-weight: 600;
  color: #d9ffe5;
}

/* Primary CTAs Stack */
.act5-cta-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 6px;
}

.act5-cta-primary-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.act5-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 26px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0071e3, #2997ff);
  color: #ffffff;
  font-family: var(--font-sans, sans-serif);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 12px 35px rgba(41, 151, 255, 0.42);
  cursor: pointer;
  transition: all 0.22s ease;
}

.act5-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 44px rgba(41, 151, 255, 0.62);
}

.act5-btn-sandbox {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 22px;
  border-radius: 12px;
  background: rgba(48, 209, 88, 0.14);
  border: 1px solid rgba(48, 209, 88, 0.45);
  color: #e4fff0;
  font-family: var(--font-sans, sans-serif);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.22s ease;
}

.act5-btn-sandbox:hover {
  background: rgba(48, 209, 88, 0.24);
  transform: translateY(-2px);
}

.act5-btn-panic {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  background: rgba(255, 159, 10, 0.11);
  border: 1px solid rgba(255, 159, 10, 0.35);
  color: #ffd60a;
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.act5-btn-panic:hover {
  background: rgba(255, 159, 10, 0.22);
  transform: translateY(-1px);
}

/* Live Scroll Odyssey Receipt Card */
.act5-receipt-card {
  background: rgba(7, 9, 14, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 26px;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  position: relative;
}

.act5-receipt-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.16);
  padding-bottom: 14px;
}

.act5-receipt-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.act5-receipt-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  color: var(--accent-emerald, #30d158);
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(48, 209, 88, 0.12);
  border: 1px solid rgba(48, 209, 88, 0.3);
}

.act5-receipt-quote {
  padding: 14px;
  border-radius: 12px;
  background: rgba(41, 151, 255, 0.1);
  border: 1px solid rgba(41, 151, 255, 0.3);
  font-family: var(--font-sans, sans-serif);
  font-size: 13.5px;
  line-height: 1.55;
  color: #f5f5f7;
}

.act5-receipt-quote strong {
  color: #64b5ff;
  font-family: var(--font-mono, monospace);
}

.act5-receipt-lines {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 12px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.16);
  padding-bottom: 14px;
}

.act5-receipt-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-secondary, #a1a1aa);
}

.act5-receipt-line span:last-child {
  color: #fff;
  font-weight: 600;
}

.act5-receipt-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-emerald, #30d158);
}

/* --------------------------------------------------------------------------
   Interactive Zero-Login Slack Connect Sandbox Modal / Drawer
   -------------------------------------------------------------------------- */
.act5-sandbox-drawer {
  display: none;
  margin-top: 12px;
  padding: 28px;
  border-radius: 20px;
  background: rgba(9, 12, 20, 0.96);
  border: 1px solid rgba(48, 209, 88, 0.45);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.75);
  flex-direction: column;
  gap: 20px;
}

.act5-sandbox-drawer.is-open {
  display: flex;
  animation: act5StepIn 0.28s ease forwards;
}

.act5-sandbox-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 14px;
}

.act5-sandbox-close {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  cursor: pointer;
}

.act5-sandbox-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 22px;
  align-items: center;
}

.act5-sandbox-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.act5-field-label {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  color: var(--text-secondary, #a1a1aa);
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.act5-input,
.act5-select {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  font-family: var(--font-mono, monospace);
  font-size: 13px;
  outline: none;
}

.act5-input:focus,
.act5-select:focus {
  border-color: var(--accent-blue, #2997ff);
}

.act5-sandbox-preview {
  padding: 18px;
  border-radius: 14px;
  background: rgba(5, 7, 12, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* --------------------------------------------------------------------------
   Responsive Breakpoints & Reduced Motion
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .act5-scenario-tabs,
  .act5-stress-stage,
  .act5-roi-grid,
  .act5-finale-block,
  .act5-sandbox-grid,
  .act5-detail-box {
    grid-template-columns: 1fr;
  }

  .act5-competitor-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .act5-deliverables-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  #act-5-mount {
    padding: 80px 0 100px;
  }

  .act5-stress-block,
  .act5-roi-block,
  .act5-finale-block {
    padding: 20px;
  }

  .act5-competitor-strip,
  .act5-deliverables-grid,
  .act5-roi-kpis {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .act5-intern-step,
  .act5-node-item.is-broken,
  .act5-sandbox-drawer.is-open {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
