/* =========================================================
   Creator Business Accelerator — page-specific additions.
   Loaded after styles.css (the shared Amplify/PPKM system).
   ========================================================= */

/* ---------- Customer funnel image ---------- */
.funnel-img {
  display: block;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
}

/* Funnel stage explanations */
.funnel-steps { display: flex; flex-direction: column; gap: 14px; }
.funnel-steps p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--t-fg2); }
.funnel-steps strong { color: var(--t-fg); }


/* ---------- Launch results card ---------- */
.launch-card {
  background: var(--t-bg2);
  border-radius: 21px;
  padding: 42px 32px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.launch-card__big {
  font-size: 68px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  background: linear-gradient(135deg, #c322ff 0%, #2469ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.launch-card__sub { font-size: 15px; color: var(--t-fg4); }
.launch-card__row {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--t-hairline2);
  display: flex;
  width: 100%;
  justify-content: space-evenly;
  gap: 12px;
}
.launch-card__cell { display: flex; flex-direction: column; gap: 3px; }
.launch-card__cell .n { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; color: var(--t-fg); }
.launch-card__cell .l { font-size: 13px; color: var(--t-fg4); }

@media (max-width: 720px) {
  .launch-card { padding: 32px 20px 28px; }
  .launch-card__big { font-size: 52px; }
  .launch-card__cell .n { font-size: 21px; }
  .launch-card__cell .l { font-size: 12px; }
}

/* ---------- CBA journey map ---------- */
.journey { display: flex; flex-direction: column; max-width: 860px; margin: 0 auto; width: 100%; }
.j-step { display: flex; }
.j-step:nth-child(4n+3) { justify-content: flex-end; }
.j-node {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  max-width: 440px;
  background: var(--t-card);
  border: 1px solid var(--t-border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  position: relative;
  z-index: 1;
  background-color: var(--t-bg2);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s var(--ease-std), transform 0.55s var(--ease-std);
}
.j-step.is-live .j-node { opacity: 1; transform: none; }
.j-num {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  line-height: 1.2;
  transform: scale(0.4);
  transition: transform 0.6s cubic-bezier(0.34, 1.45, 0.5, 1) 0.1s;
}
.j-step.is-live .j-num { transform: scale(1); }
.j-body h3 { font-size: 18px; font-weight: 600; margin: 2px 0 6px; }
.j-body p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--t-fg3); }
.j-link { height: 88px; position: relative; }
.j-link svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  opacity: 0.85;
  clip-path: inset(-6px -6px 100% -6px);
  transition: clip-path 0.7s var(--ease-std);
}
.j-link.is-live svg { clip-path: inset(-6px -6px -6px -6px); }

@media (max-width: 720px) {
  .j-step:nth-child(4n+3) { justify-content: flex-start; }
  .j-node { max-width: none; width: 100%; }
  .j-link { height: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  .j-node, .j-num { opacity: 1; transform: none; transition: none; }
  .j-step .j-node { opacity: 1; }
  .j-link svg { clip-path: none; transition: none; }
}

/* ---------- Journey: start marker, destination, finish CTA ---------- */
.j-here {
  position: absolute;
  top: -14px;
  left: 20px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #fff;
  background: var(--brand-gradient-flat);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  white-space: nowrap;
}
.j-here .j-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  animation: amp-beaconpulse 1.6s ease-in-out infinite;
}
.j-here svg, .j-here i { width: 12px; height: 12px; color: #fff; }
.j-step--end .j-node {
  border: 2px solid transparent;
  background: linear-gradient(var(--t-bg2), var(--t-bg2)) padding-box, var(--brand-gradient-flat) border-box;
}
@media (prefers-reduced-motion: reduce) {
  .j-here .j-dot { animation: none; }
}

/* ---------- Bottleneck quiz ---------- */
.quiz { padding: 32px; display: flex; flex-direction: column; gap: 22px; }
.quiz__progress { display: flex; gap: 8px; justify-content: center; }
.quiz__progress span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--t-fg5);
  transition: background 0.3s var(--ease-std), transform 0.3s var(--ease-std);
}
.quiz__progress span.on { background: #7a4dff; transform: scale(1.25); }
.quiz__q { margin: 0; font-size: 20px; font-weight: 600; text-align: center; line-height: 1.4; min-height: 56px; display: flex; align-items: center; justify-content: center; }
.quiz__answers { display: flex; gap: 12px; justify-content: center; }
.quiz__btn {
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  color: var(--t-fg);
  background: var(--t-bg2);
  border: 1px solid var(--t-border2);
  border-radius: var(--radius-pill);
  padding: 12px 34px;
  cursor: pointer;
  transition: border-color 0.2s var(--ease-std), transform 0.2s var(--ease-std);
}
.quiz__btn:hover { border-color: #7a4dff; transform: translateY(-1px); }
.quiz__result { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.quiz__result[hidden] { display: none; }
.quiz__label { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--t-fg4); }
.quiz__diag {
  margin: 0;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #c322ff 0%, #2469ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.quiz__body { margin: 0; font-size: 15px; line-height: 1.55; color: var(--t-fg3); max-width: 460px; }
.quiz__cta { display: flex; align-items: center; gap: 18px; margin-top: 10px; flex-wrap: wrap; justify-content: center; }
.quiz__restart {
  font: inherit;
  font-size: 14px;
  color: var(--t-fg4);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.quiz__restart:hover { color: var(--t-fg2); }

/* ---------- Journey stage picker ---------- */
/* ---------- Interactive funnel ---------- */
.funnel-wrap { position: relative; max-width: 760px; margin: 0 auto; width: 100%; }
.funnel-wrap .funnel-img { max-width: none; }
.funnel-zone {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: transparent;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s var(--ease-std), box-shadow 0.2s var(--ease-std);
}
.funnel-zone.is-hot {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.55), 0 0 24px rgba(195, 34, 255, 0.35);
}
.funnel-steps p {
  border-left: 3px solid transparent;
  padding: 6px 12px;
  margin-left: -15px;
  border-radius: 0 8px 8px 0;
  transition: background 0.2s var(--ease-std), border-color 0.2s var(--ease-std);
}
.funnel-steps p.is-hot {
  background: rgba(122, 77, 255, 0.1);
  border-left-color: #7a4dff;
}
.funnel-steps p.is-hot strong { color: var(--t-fg); }

/* ---------- Before / After first sale ---------- */
.ba-card { max-width: 640px; width: 100%; padding: 28px 30px; display: flex; flex-direction: column; }
.ba-panel { display: flex; flex-direction: column; gap: 14px; animation: ba-in 0.35s var(--ease-std); }
.ba-panel[hidden] { display: none; }
@keyframes ba-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Expandable journey stops ---------- */
.j-node { cursor: pointer; }
.j-chev {
  display: inline-flex;
  vertical-align: middle;
  margin-left: 8px;
  width: 16px;
  height: 16px;
  color: var(--t-fg4);
  transition: transform 0.3s var(--ease-std);
}
.j-chev svg { width: 16px; height: 16px; }
.j-step.is-open .j-chev { transform: rotate(180deg); }
.j-more {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  transition: grid-template-rows 0.35s var(--ease-std), margin-top 0.35s var(--ease-std);
  margin-top: 0;
}
.j-more > * { min-height: 0; }
.j-step.is-open .j-more { grid-template-rows: 1fr; margin-top: 12px; }
.j-more__wrap { overflow: hidden; }
.j-more p { margin: 0 0 7px; font-size: 14px; line-height: 1.5; color: var(--t-fg3); }
.j-more .j-more__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--t-fg4);
  margin-bottom: 9px;
}

/* ---------- Never been a better time ---------- */
.then-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.then-grid .then-card { flex: 0 1 300px; }
.then-card { display: flex; flex-direction: column; gap: 10px; }
.then-card .then, .then-card .now {
  margin: 0;
  display: flex;
  align-items: flex-start;
  gap: 9px;
}
.then-card .then svg, .then-card .then i, .then-card .now svg, .then-card .now i {
  flex: none;
  width: 15px;
  height: 15px;
  margin-top: 2px;
}
.then-card .then svg, .then-card .then i { color: #ff7a7a; }
.then-card .now svg, .then-card .now i { color: #7a4dff; }
.then-card .then span {
  font-size: 14px;
  line-height: 1.45;
  color: var(--t-fg5);
  text-decoration: line-through;
  text-decoration-color: rgba(255, 122, 122, 0.6);
}
.then-card .now span { font-size: 15px; line-height: 1.5; font-weight: 600; color: var(--t-fg); }

@media (max-width: 720px) {
  .then-grid .then-card { flex-basis: 100%; }
}
