/* Shared visual storytelling and interaction layer for both upsell pages. */
:root { --shadow-brutal: 8px 8px 0 var(--ink); }

.scroll-progress {
  position: fixed;
  z-index: 160;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  transform: scaleX(0);
  transform-origin: right center;
  background: linear-gradient(90deg, var(--orange), var(--pink), var(--yellow));
  pointer-events: none;
}

.section { position: relative; overflow: hidden; }
.section::before {
  content: "";
  position: absolute;
  top: 0;
  right: max(16px, calc((100vw - 1200px) / 2));
  width: 0;
  height: 4px;
  background: var(--orange);
  transition: width 900ms cubic-bezier(.16,1,.3,1);
}
.section.is-active::before { width: min(130px, 34vw); }
.section:nth-of-type(3n+2)::before { background: var(--pink); }
.section:nth-of-type(3n+3)::before { background: var(--yellow); }

.hero-story {
  position: relative;
  min-height: 300px;
  margin-top: 42px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: var(--paper-2);
  box-shadow: var(--shadow-brutal);
  overflow: hidden;
  isolation: isolate;
}
.hero-story::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px dashed var(--ink-3);
  border-radius: 50%;
  opacity: .45;
}
.hero-story__orbit {
  position: absolute;
  top: 50%;
  right: 50%;
  width: 230px;
  aspect-ratio: 1;
  border: 2px solid var(--line);
  border-radius: 50%;
  translate: 50% -50%;
  animation: upsell-spin 18s linear infinite;
}
.hero-story__orbit::before,
.hero-story__orbit::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: var(--orange);
}
.hero-story__orbit::before { top: 18px; right: 24px; width: 18px; height: 18px; }
.hero-story__orbit::after { bottom: -8px; left: 48%; width: 14px; height: 14px; background: var(--pink); }
.hero-story__card {
  position: absolute;
  top: 54%;
  right: 50%;
  width: 170px;
  min-height: 116px;
  display: grid;
  place-items: center;
  padding: 18px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: var(--paper);
  font-family: "Alexandria", sans-serif;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  translate: 50% -50%;
  rotate: -2deg;
  box-shadow: 7px 7px 0 var(--yellow);
  animation: upsell-float 4s ease-in-out infinite;
}
.hero-story__stamp {
  position: absolute;
  z-index: 2;
  padding: 9px 13px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--pink);
  font-family: "Alexandria", sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  rotate: 3deg;
}
.hero-story__stamp--one { top: 24px; right: 18px; }
.hero-story__stamp--two { bottom: 26px; left: 18px; background: var(--orange); rotate: -4deg; }
.hero-story__face {
  position: absolute;
  right: 22px;
  bottom: 28px;
  width: 58px;
  height: 58px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
}
.hero-story__face::before { content: "••"; position: absolute; top: 5px; right: 14px; font-size: 18px; letter-spacing: 5px; }
.hero-story__face::after { content: "⌣"; position: absolute; right: 19px; bottom: 3px; font-size: 24px; font-weight: 900; }

.story-scene {
  position: relative;
  min-height: 230px;
  margin-block: 34px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease;
}
.story-scene:hover { transform: translateY(-4px) rotate(.25deg); box-shadow: 8px 8px 0 var(--pink); }
.story-scene__desk { position: absolute; right: 10%; bottom: 35px; left: 10%; height: 12px; background: var(--ink); }
.story-scene__folder {
  position: absolute;
  right: 18%;
  bottom: 48px;
  width: 128px;
  height: 86px;
  border: 2px solid var(--ink);
  border-radius: 3px;
  background: var(--yellow);
  rotate: -3deg;
  animation: upsell-nap 4.8s ease-in-out infinite;
}
.story-scene__folder::before { content: ""; position: absolute; top: -16px; right: 10px; width: 54px; height: 16px; border: 2px solid var(--ink); border-bottom: 0; background: var(--yellow); }
.story-scene__folder::after { content: "Z z"; position: absolute; top: -62px; left: 14px; font-family: "Alexandria", sans-serif; font-size: 22px; font-weight: 900; rotate: -8deg; }
.story-scene__alarm {
  position: absolute;
  left: 17%;
  bottom: 48px;
  width: 74px;
  height: 74px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--orange);
  animation: upsell-wiggle 1.2s ease-in-out infinite;
}
.story-scene__alarm::before { content: ""; position: absolute; top: 11px; right: 34px; width: 3px; height: 25px; background: var(--ink); transform-origin: bottom; rotate: 18deg; }
.story-scene__alarm::after { content: ""; position: absolute; right: 34px; bottom: 33px; width: 22px; height: 3px; background: var(--ink); transform-origin: right; rotate: -28deg; }
.story-scene__caption { position: absolute; top: 20px; right: 20px; left: 20px; color: var(--ink-2); font-family: "Alexandria", sans-serif; font-size: 14px; font-weight: 700; }

.live-visual {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-block: 34px;
}
.live-card {
  position: relative;
  min-height: 190px;
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--paper-2);
  transition: transform 180ms ease, border-color 180ms ease;
}
.live-card:hover { transform: translateY(-5px); border-color: var(--ink); }
.live-card--recorded { filter: grayscale(.7); }
.live-card--recorded::after { content: "…"; position: absolute; left: 18px; bottom: 5px; color: var(--ink-3); font-size: 50px; }
.live-card--live { background: var(--yellow-tint); box-shadow: 6px 6px 0 var(--orange); }
.live-card__screen { height: 76px; display: grid; place-items: center; margin-bottom: 18px; border: 2px solid var(--ink); background: var(--paper); font-family: "Alexandria", sans-serif; font-size: 32px; font-weight: 900; }
.live-card--live .live-card__screen { animation: upsell-pulse 2.2s ease-in-out infinite; }
.live-card strong { display: block; font-family: "Alexandria", sans-serif; font-size: 15px; line-height: 1.5; }

.session-row, .week-row, .deliverable-row, .details__row, .call-row, .faq-item, .payment-block, .protection-stage, .fit-block, .limit-block, .square-list li {
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.hero-story { transition: transform 220ms ease, box-shadow 220ms ease; }
.hero-story:hover { transform: translateY(-5px) rotate(-.35deg); box-shadow: 11px 11px 0 var(--orange); }
.primary-cta { position: relative; overflow: hidden; background-image: linear-gradient(var(--yellow), var(--yellow)); background-repeat: no-repeat; background-position: left center; background-size: 0 100%; transition: transform 160ms ease, color 160ms ease, background-size 240ms cubic-bezier(.16,1,.3,1); }
.primary-cta:hover, .primary-cta:focus-visible { color: var(--ink); background-size: 100% 100%; }
.session-row:hover, .week-row:hover { transform: translateX(-6px); }
.session-row.is-pressed, .week-row.is-pressed, .deliverable-row.is-pressed, .fit-block.is-pressed, .payment-block.is-pressed { transform: translateY(2px) scale(.99); }
.session-row:hover .session-number, .week-row:hover .week-number { color: var(--orange); }
.session-row:hover .session-result, .week-row:hover .week-result { background: var(--yellow); }
.deliverable-row:hover, .details__row:hover, .call-row:hover { padding-inline: 14px; background: var(--yellow-tint); }
.limit-block:hover { transform: translateX(-5px); }
.fit-block:hover { transform: translateY(-5px) rotate(.2deg); box-shadow: 7px 7px 0 var(--orange); border-color: var(--ink); }
.payment-block:hover { transform: translateY(-4px); box-shadow: 6px 6px 0 var(--pink); border-color: var(--ink); }
.protection-stage:hover { transform: translateX(-5px); }
.square-list li:hover { transform: translateX(-6px); }
.faq-item:hover { background: color-mix(in srgb, var(--yellow) 12%, transparent); }

.outcome-dashboard {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-block: 34px;
}
.outcome-dashboard__tile {
  min-height: 112px;
  display: grid;
  place-items: center;
  padding: 14px;
  border: 2px solid var(--ink);
  background: var(--paper);
  font-family: "Alexandria", sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  transition: transform 180ms ease;
}
.outcome-dashboard__tile:nth-child(1) { background: var(--yellow); rotate: -1deg; }
.outcome-dashboard__tile:nth-child(2) { background: var(--pink); rotate: 1deg; }
.outcome-dashboard__tile:nth-child(3) { background: var(--orange-tint); rotate: .6deg; }
.outcome-dashboard__tile:nth-child(4) { background: var(--paper); rotate: -1deg; }
.outcome-dashboard__tile:hover { transform: scale(1.04) rotate(-1deg); }

.price-stage { position: relative; max-width: 920px; padding: 28px 0 12px; }
.price-stage::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 10px;
  right: -14px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--pink);
  animation: upsell-breathe 3.6s ease-in-out infinite;
}
.price-stage > * { position: relative; z-index: 1; }

.guarantee-icon {
  position: relative;
  width: 92px;
  height: 106px;
  margin-bottom: 26px;
  border: 3px solid var(--paper);
  border-radius: 46px 46px 14px 14px;
  background: var(--orange);
  animation: upsell-float 3.5s ease-in-out infinite;
}
.guarantee-icon::before { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink); font-family: "Alexandria", sans-serif; font-size: 42px; font-weight: 900; }
.guarantee-icon::after { content: ""; position: absolute; right: 50%; bottom: -20px; width: 24px; height: 24px; background: var(--orange); translate: 50% 0; rotate: 45deg; }

.managed-machine {
  position: relative;
  min-height: 260px;
  margin-block: 34px;
  border: 2px solid var(--ink);
  background: var(--yellow-tint);
  box-shadow: 8px 8px 0 var(--pink);
  overflow: hidden;
}
.managed-machine__belt { position: absolute; right: 8%; bottom: 52px; left: 8%; height: 34px; border: 2px solid var(--ink); background: repeating-linear-gradient(90deg, var(--paper) 0 20px, var(--line) 20px 40px); animation: upsell-belt 1.4s linear infinite; }
.managed-machine__input, .managed-machine__output {
  position: absolute;
  bottom: 88px;
  width: 100px;
  min-height: 76px;
  display: grid;
  place-items: center;
  padding: 12px;
  border: 2px solid var(--ink);
  background: var(--paper);
  font-family: "Alexandria", sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}
.managed-machine__input { right: 11%; rotate: -3deg; }
.managed-machine__output { left: 11%; background: var(--orange); rotate: 3deg; }
.managed-machine__gear { position: absolute; top: 34px; right: 50%; width: 76px; height: 76px; border: 12px dotted var(--ink); border-radius: 50%; translate: 50% 0; animation: upsell-spin 6s linear infinite; }
.managed-machine__label { position: absolute; top: 26px; right: 20px; padding: 7px 11px; border: 1px solid var(--ink); border-radius: 999px; background: var(--pink); font-size: 13px; font-weight: 700; }

.time-clock {
  position: relative;
  width: 180px;
  height: 180px;
  margin-block: 32px;
  border: 8px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 9px 9px 0 var(--orange);
}
.time-clock::before { content: ""; position: absolute; top: 34px; right: 82px; width: 5px; height: 54px; background: var(--ink); transform-origin: bottom; animation: upsell-hand 8s linear infinite; }
.time-clock::after { content: ""; position: absolute; right: 82px; bottom: 84px; width: 46px; height: 5px; background: var(--ink); transform-origin: right; animation: upsell-hand 18s linear infinite reverse; }
.time-clock__face { position: absolute; inset: 0; display: grid; place-items: center; padding-top: 72px; font-family: "Alexandria", sans-serif; font-size: 13px; font-weight: 900; }

.founder-stamp {
  width: fit-content;
  margin-block: 28px;
  padding: 16px 22px;
  border: 3px double var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  font-family: "Alexandria", sans-serif;
  font-weight: 900;
  rotate: -4deg;
  transition: rotate 180ms ease, transform 180ms ease;
}
.founder-stamp:hover { rotate: 2deg; transform: scale(1.05); }

.motion-ready .motion-item { opacity: 0; transform: translateY(42px) rotate(.5deg); filter: blur(5px); }
.motion-ready .motion-item[data-motion="right"] { transform: translateX(42px) rotate(1deg); }
.motion-ready .motion-item[data-motion="left"] { transform: translateX(-42px) rotate(-1deg); }
.motion-ready .motion-item.is-visible {
  opacity: 1;
  transform: none;
  filter: none;
  transition: opacity 700ms ease, transform 850ms cubic-bezier(.16,1,.3,1), filter 650ms ease;
  transition-delay: var(--motion-delay, 0ms);
}

@keyframes upsell-spin { to { rotate: 1turn; } }
@keyframes upsell-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px) rotate(1deg); } }
@keyframes upsell-wiggle { 0%,100% { rotate: -2deg; } 50% { rotate: 3deg; } }
@keyframes upsell-nap { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(5px) rotate(1deg); } }
@keyframes upsell-pulse { 0%,100% { box-shadow: inset 0 0 0 0 var(--pink); } 50% { box-shadow: inset 0 0 0 8px var(--pink); } }
@keyframes upsell-breathe { 0%,100% { scale: .92; } 50% { scale: 1.06; } }
@keyframes upsell-belt { to { background-position-x: 40px; } }
@keyframes upsell-hand { to { rotate: 1turn; } }

@media (min-width: 760px) {
  .hero__content { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); gap: 56px; align-items: center; max-width: none; }
  .hero-copy-block { min-width: 0; }
  .hero-story { min-height: 420px; margin-top: 0; }
  .hero-story__orbit { width: 310px; }
  .hero-story__card { width: 220px; min-height: 150px; font-size: 20px; }
  .story-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .8fr); gap: 56px; align-items: center; }
  .story-scene { min-height: 320px; margin: 0; }
  .live-card { min-height: 230px; }
  .outcome-dashboard { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .outcome-dashboard__tile { min-height: 150px; font-size: 16px; }
  .managed-machine { min-height: 330px; }
  .managed-machine__input, .managed-machine__output { width: 150px; min-height: 100px; font-size: 16px; }
}

@media (hover: none) {
  .session-row:hover, .week-row:hover, .limit-block:hover, .square-list li:hover,
  .deliverable-row:hover, .details__row:hover, .call-row:hover, .fit-block:hover,
  .payment-block:hover, .protection-stage:hover, .story-scene:hover { transform: none; box-shadow: none; }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-progress { display: none; }
  .motion-ready .motion-item { opacity: 1; transform: none; filter: none; }
  .hero-story__orbit, .hero-story__card, .story-scene__folder, .story-scene__alarm,
  .live-card--live .live-card__screen, .price-stage::before, .guarantee-icon,
  .managed-machine__belt, .managed-machine__gear, .time-clock::before, .time-clock::after { animation: none !important; }
}
