/* ============================================
   Churn Solution — Stripe integration
   Page styles, on top of style.css
   ============================================ */
/* Screenshots */
:is(#root, #root-end) .shot {
  position: relative;
  background: var(--ink-100);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-lg);
  padding: 24px;
  aspect-ratio: 16 / 10;
}
:is(#root, #root-end) .shot::before {
  content: "";
  position: absolute;
  inset: 16px;
  background-color: white;
  border-radius: var(--r-xs);
}
:is(#root, #root-end) .shot img {
  max-width: 100%;
  max-height: 100%;
  margin-inline: auto;
  display: block;
  position: relative;
  z-index: 10;
}
:is(#root, #root-end) .shot img[src$=".svg"] {
  width: 100%;
  height: 100%;
}

/* ============================================
   STRIPE APP
   ============================================ */
:is(#root, #root-end) .stripe-app {
  background: var(--ink-50);
}
:is(#root, #root-end) .stripe-app .split {
  grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
}
:is(#root, #root-end) .app-showcase {
  border: 1px solid var(--ink-200);
  border-radius: var(--r-lg);
  background: var(--paper);
  box-shadow: var(--sh-lg);
  overflow: hidden;
}
:is(#root, #root-end) .app-showcase-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--ink-200);
  background: var(--ink-50);
}
:is(#root, #root-end) .app-showcase-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ink-300);
}
:is(#root, #root-end) .app-showcase-bar em {
  flex: 1;
  margin-right: 46px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-style: normal;
  color: var(--ink-400);
}
:is(#root, #root-end) .app-showcase-stage {
  position: relative;
  height: 460px;
  background: radial-gradient(
      circle at 50% 35%,
      var(--violet-100),
      transparent 70%
    ),
    var(--ink-100);
  perspective: 1200px;
  overflow: hidden;
}
:is(#root, #root-end) .app-showcase-screen {
  position: absolute;
  top: 20px;
  left: 50%;
  height: calc(100% - 40px);
  width: auto;
  max-width: none;
  border: 1px solid var(--ink-200);
  border-radius: var(--r-sm);
  background: var(--paper);
  box-shadow: var(--sh-lg);
  transform-origin: 50% 100%;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), filter 0.8s ease;
}
:is(#root, #root-end) .app-showcase-screen[data-pos="active"] {
  z-index: 3;
  transform: translateX(-50%);
}
:is(#root, #root-end) .app-showcase-screen[data-pos="next"] {
  z-index: 2;
  opacity: 0.6;
  filter: blur(1px);
  transform: translateX(-28%) translateZ(-140px) rotateY(-14deg);
}
:is(#root, #root-end) .app-showcase-screen[data-pos="prev"] {
  z-index: 1;
  opacity: 0;
  transform: translateX(-120%) translateZ(-80px) rotateY(18deg);
}
:is(#root, #root-end) .app-showcase-screen[data-pos="hidden"] {
  z-index: 0;
  opacity: 0;
  transform: translateX(-10%) translateZ(-260px);
}
:is(#root, #root-end) .app-showcase-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  border-top: 1px solid var(--ink-200);
}
:is(#root, #root-end) .app-showcase-dots button {
  width: 22px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--ink-200);
  overflow: hidden;
  cursor: pointer;
  transition: width 0.3s ease;
}
:is(#root, #root-end) .app-showcase-dots button.is-active {
  width: 44px;
}
:is(#root, #root-end) .app-showcase-dots span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--violet-800);
  transform: scaleX(0);
  transform-origin: left;
}
:is(#root, #root-end) .app-showcase-dots button.is-active span {
  animation: app-showcase-fill var(--dur) linear forwards;
}
:is(#root, #root-end) .app-showcase:hover .app-showcase-dots span {
  animation-play-state: paused;
}
@keyframes app-showcase-fill {
  to {
    transform: scaleX(1);
  }
}

/* ============================================
   OFFERS
   ============================================ */
:is(#root, #root-end) .offers {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}
:is(#root, #root-end) .offers-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
:is(#root, #root-end) .offers-copy p {
  font-size: 16.5px;
  color: var(--ink-600);
  text-wrap: pretty;
}
:is(#root, #root-end) .offer-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--ink-200);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--sh-sm);
  font-size: 15.5px;
}
:is(#root, #root-end) .offer-table th,
:is(#root, #root-end) .offer-table td {
  padding: 17px 24px;
  text-align: left;
  vertical-align: top;
  border: 0;
  border-bottom: 1px solid var(--ink-200);
  background: var(--paper);
}
:is(#root, #root-end) .offer-table tr:last-child > * {
  border-bottom: 0;
}
:is(#root, #root-end) .offer-table thead th {
  background: var(--violet-800);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
:is(#root, #root-end) .offer-table tbody th {
  width: 40%;
  font-weight: 600;
  color: var(--violet-800);
}
:is(#root, #root-end) .offer-table td {
  color: var(--ink-600);
}

/* ============================================
   GUARANTEE
   ============================================ */
:is(#root, #root-end) .guarantee {
  padding-top: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1080px) {
  :is(#root, #root-end) .stripe-app .split,
  :is(#root, #root-end) .offers {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
  :is(#root, #root-end) .stripe-app .app-showcase {
    width: 100%;
  }
}

@media (max-width: 600px) {
  :is(#root, #root-end) .app-showcase-stage {
    height: 440px;
  }
  :is(#root, #root-end) .offer-table th,
  :is(#root, #root-end) .offer-table td {
    padding: 14px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  :is(#root, #root-end) .app-showcase-screen,
  :is(#root, #root-end) .app-showcase-dots button {
    transition: none;
  }
  :is(#root, #root-end) .app-showcase-dots button.is-active span {
    animation: none;
    transform: scaleX(1);
  }
}
