/* Reserve space for the fixed purchase bar, including mobile safe areas. */
html { scroll-padding-bottom: calc(90px + env(safe-area-inset-bottom, 0px)); }
body.builder-story { padding-bottom: calc(90px + env(safe-area-inset-bottom, 0px)); }
.sticky-enroll[hidden] { display: none; }
.sticky-enroll {
  --cta-color: #b9e66f;
  --cta-border: #9fce55;
  --cta-hover: #c9f28c;
  --cta-glow: #b9e66f80;
  --cta-glow-low: #b9e66f50;
  --cta-glow-high: #c9f28cb3;
  position: fixed;
  z-index: 15;
  inset: auto max(10px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(10px, env(safe-area-inset-left, 0px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 16px;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid #41473d;
  border-radius: 0;
  font-family: var(--mono);
  line-height: 1.4;
  animation: enroll-enter 380ms cubic-bezier(.2, .65, .3, 1) both;
}
@keyframes enroll-enter {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.sticky-enroll-title { font-size: 14px; font-weight: 700; }
.sticky-enroll-detail { margin-top: 1px; font-size: 11px; color: #c2c8bb; }
.sticky-enroll-button {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 45px;
  padding: 6px 18px;
  background: var(--cta-color);
  color: var(--ink);
  border: 1px solid var(--cta-border);
  border-radius: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-wrap: balance;
  box-shadow: 0 0 14px 2px var(--cta-glow);
  animation: enroll-pulse 2.6s cubic-bezier(.45, 0, .55, 1) infinite;
  transform-origin: center;
}
.sticky-enroll-button-label {
  white-space: nowrap;
  -webkit-text-stroke: .2px currentColor;
}
.sticky-enroll .sticky-enroll-rocket {
  --rocket-size: 20px;
  --rocket-bleed: 8px;
  width: var(--rocket-size);
  height: var(--rocket-size);
  flex: none;
  image-rendering: pixelated;
  transform: rotate(45deg);
  transform-origin: center;
}
@keyframes enroll-pulse {
  0%, 100% { box-shadow: 0 0 8px 1px var(--cta-glow-low); transform: scale(.98); }
  50% { box-shadow: 0 0 24px 5px var(--cta-glow-high); transform: scale(1.035); }
}
.sticky-enroll-button:hover { background: var(--cta-hover); }
.sticky-enroll-button:focus-visible { outline: 2px solid var(--cta-color); outline-offset: 3px; animation-play-state: paused; }
.sticky-enroll.is-page-hidden .sticky-enroll-button { animation-play-state: paused; }
@media (max-width: 600px) {
  .sticky-enroll { justify-content: space-between; gap: 14px; padding: 5px 10px; }
  .sticky-enroll-name { display: none; }
  .sticky-enroll-copy { flex: none; }
  .sticky-enroll-title { font-size: 12px; white-space: nowrap; }
  .sticky-enroll-detail { font-size: 10px; white-space: nowrap; }
  .sticky-enroll-button { flex: none; max-width: none; gap: 6px; min-height: 42px; padding: 5px 14px; font-size: 12px; }
  .sticky-enroll .sticky-enroll-rocket { display: none; }
}
@media (max-width: 359px) {
  .sticky-enroll { gap: 4px; padding-inline: 8px; }
  .sticky-enroll-button { padding-inline: 8px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .sticky-enroll, .sticky-enroll-button { animation: none; }
}
@media print {
  .sticky-enroll { display: none; }
  body.builder-story { padding-bottom: 0; }
}
