/* Phase 6 — Conversion Optimization */
:root {
  --cro-pink: #D60C76;
  --cro-navy: #1F497D;
  --cro-ink: #0b1220;
  --cro-muted: rgba(255, 255, 255, 0.68);
  --cro-line: rgba(255, 255, 255, 0.12);
  --cro-panel: rgba(12, 18, 32, 0.88);
  --cro-glow: rgba(214, 12, 118, 0.28);
}

[data-theme="light"] {
  --cro-muted: rgba(15, 23, 42, 0.72);
  --cro-line: rgba(15, 23, 42, 0.12);
  --cro-panel: rgba(255, 255, 255, 0.94);
  --cro-glow: rgba(31, 73, 125, 0.18);
}

/* —— Trust strip —— */
.cro-trust {
  padding: 1.25rem 0 0.25rem;
}

.cro-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.cro-trust-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.95rem 1rem;
  border: 1px solid var(--cro-line);
  background: linear-gradient(160deg, rgba(214, 12, 118, 0.08), transparent 55%), var(--cro-panel);
  border-radius: 14px;
}

.cro-trust-item strong {
  display: block;
  font-family: "Stack Sans Notch", sans-serif;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  color: #fff;
}

[data-theme="light"] .cro-trust-item strong {
  color: var(--cro-ink);
}

.cro-trust-item span {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--cro-muted);
}

.cro-trust-ico {
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(214, 12, 118, 0.16);
  color: var(--cro-pink);
  font-size: 0.95rem;
}

/* —— Pricing clarity —— */
.cro-pricing {
  padding: 3.5rem 0 1rem;
}

.cro-pricing .section-inner,
.cro-section-head {
  text-align: center;
  max-width: 46rem;
  margin: 0 auto 1.75rem;
}

.cro-section-head .section-tag {
  margin-bottom: 0.65rem;
}

.cro-section-head h2 {
  font-family: "Stack Sans Notch", sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 0.55rem;
}

.cro-section-head p {
  margin: 0;
  color: var(--cro-muted);
  line-height: 1.55;
}

.cro-price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.cro-price-card {
  position: relative;
  padding: 1.35rem 1.2rem 1.25rem;
  border: 1px solid var(--cro-line);
  border-radius: 16px;
  background: var(--cro-panel);
  text-align: left;
}

.cro-price-card.featured {
  border-color: rgba(214, 12, 118, 0.55);
  box-shadow: 0 0 0 1px rgba(214, 12, 118, 0.2), 0 18px 40px var(--cro-glow);
}

.cro-price-card .cro-badge {
  position: absolute;
  top: -0.65rem;
  right: 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: var(--cro-pink);
  color: #fff;
  font-family: "Stack Sans Notch", sans-serif;
}

.cro-price-card h3 {
  font-family: "Stack Sans Notch", sans-serif;
  font-size: 1.05rem;
  margin: 0 0 0.35rem;
}

.cro-price-card .cro-amount {
  font-family: "Stack Sans Notch", sans-serif;
  font-size: 1.85rem;
  margin: 0.35rem 0 0.55rem;
  color: #fff;
}

[data-theme="light"] .cro-price-card .cro-amount {
  color: var(--cro-ink);
}

.cro-price-card .cro-amount small {
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0.7;
}

.cro-price-card ul {
  list-style: none;
  margin: 0 0 1.1rem;
  padding: 0;
}

.cro-price-card li {
  position: relative;
  padding-left: 1.1rem;
  margin: 0.4rem 0;
  font-size: 0.88rem;
  color: var(--cro-muted);
  line-height: 1.4;
}

.cro-price-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--cro-pink);
}

.cro-price-card .btn {
  width: 100%;
  justify-content: center;
}

.cro-price-note {
  margin: 1rem auto 0;
  max-width: 40rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--cro-muted);
}

/* —— Bundles / upsells / cross-sells —— */
.cro-bundles {
  padding: 2.75rem 0 1rem;
}

.cro-bundle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.cro-bundle-card {
  padding: 1.3rem 1.15rem;
  border: 1px solid var(--cro-line);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(31, 73, 125, 0.22), transparent 50%),
    var(--cro-panel);
}

.cro-bundle-card h3 {
  font-family: "Stack Sans Notch", sans-serif;
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.cro-bundle-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.65rem 0 0.85rem;
}

.cro-chip {
  font-size: 0.72rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--cro-line);
  color: var(--cro-muted);
}

.cro-bundle-card p {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  color: var(--cro-muted);
  line-height: 1.5;
}

.cro-bundle-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cro-bundle-actions .btn {
  flex: 1 1 auto;
  justify-content: center;
  min-width: 7.5rem;
}

/* —— Refund / access policy —— */
.cro-refund {
  padding: 2.75rem 0 1rem;
}

.cro-refund-panel {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1.25rem;
  padding: 1.5rem;
  border: 1px solid var(--cro-line);
  border-radius: 18px;
  background: var(--cro-panel);
}

.cro-refund-panel h2 {
  font-family: "Stack Sans Notch", sans-serif;
  margin: 0 0 0.55rem;
  font-size: 1.45rem;
}

.cro-refund-panel p {
  margin: 0 0 0.75rem;
  color: var(--cro-muted);
  line-height: 1.55;
  font-size: 0.95rem;
}

.cro-refund-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cro-refund-list li {
  padding: 0.7rem 0.85rem;
  margin-bottom: 0.55rem;
  border-radius: 12px;
  border: 1px solid var(--cro-line);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.88rem;
  color: var(--cro-muted);
  line-height: 1.45;
}

.cro-refund-list strong {
  display: block;
  color: #fff;
  margin-bottom: 0.15rem;
  font-family: "Stack Sans Notch", sans-serif;
}

[data-theme="light"] .cro-refund-list strong {
  color: var(--cro-ink);
}

/* —— Testimonials (placeholders) —— */
.cro-social {
  padding: 2.75rem 0 1rem;
}

.cro-quote-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.cro-quote {
  padding: 1.25rem;
  border: 1px dashed rgba(214, 12, 118, 0.35);
  border-radius: 16px;
  background: var(--cro-panel);
}

.cro-quote .cro-ph {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cro-pink);
  margin-bottom: 0.65rem;
  font-family: "Stack Sans Notch", sans-serif;
}

.cro-quote p {
  margin: 0 0 0.85rem;
  color: var(--cro-muted);
  line-height: 1.55;
  font-size: 0.92rem;
}

.cro-quote footer {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
}

[data-theme="light"] .cro-quote footer {
  color: rgba(15, 23, 42, 0.5);
}

.cro-fine {
  margin: 0.9rem 0 0;
  text-align: center;
  font-size: 0.78rem;
  color: var(--cro-muted);
}

/* —— FAQ —— */
.cro-faq {
  padding: 2.75rem 0 2rem;
}

.cro-faq-list {
  max-width: 48rem;
  margin: 0 auto;
  display: grid;
  gap: 0.55rem;
}

.cro-faq-item {
  border: 1px solid var(--cro-line);
  border-radius: 14px;
  background: var(--cro-panel);
  overflow: hidden;
}

.cro-faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.15rem;
  font-family: "Stack Sans Notch", sans-serif;
  font-size: 0.98rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.cro-faq-item summary::-webkit-details-marker {
  display: none;
}

.cro-faq-item summary::after {
  content: "+";
  color: var(--cro-pink);
  font-size: 1.2rem;
  line-height: 1;
}

.cro-faq-item[open] summary::after {
  content: "–";
}

.cro-faq-item .cro-faq-a {
  padding: 0 1.15rem 1.05rem;
  color: var(--cro-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

/* —— Sticky CTA —— */
.cro-sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  transform: translateY(110%);
  transition: transform 0.28s ease, opacity 0.28s ease;
  opacity: 0;
  pointer-events: none;
  padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent, rgba(6, 8, 13, 0.55) 28%, rgba(6, 8, 13, 0.92));
}

.cro-sticky.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.cro-sticky-inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--cro-line);
  border-radius: 16px;
  background: rgba(10, 14, 24, 0.94);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}

.cro-sticky-copy strong {
  display: block;
  font-family: "Stack Sans Notch", sans-serif;
  font-size: 0.95rem;
}

.cro-sticky-copy span {
  font-size: 0.8rem;
  color: var(--cro-muted);
}

.cro-sticky-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

body.cro-sticky-pad {
  padding-bottom: 5.5rem;
}

/* —— Exit intent —— */
.cro-exit {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.cro-exit.is-open {
  display: flex;
}

.cro-exit-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 12, 0.72);
  backdrop-filter: blur(4px);
}

.cro-exit-modal {
  position: relative;
  width: min(28rem, 100%);
  padding: 1.6rem 1.4rem 1.35rem;
  border-radius: 18px;
  border: 1px solid rgba(214, 12, 118, 0.4);
  background:
    radial-gradient(circle at top right, rgba(214, 12, 118, 0.22), transparent 45%),
    #0c1220;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.cro-exit-modal h2 {
  font-family: "Stack Sans Notch", sans-serif;
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
}

.cro-exit-modal p {
  margin: 0 0 1.1rem;
  color: var(--cro-muted);
  line-height: 1.5;
  font-size: 0.92rem;
}

.cro-exit-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cro-exit-close {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  border: 0;
  background: transparent;
  color: var(--cro-muted);
  font-size: 1.35rem;
  cursor: pointer;
  line-height: 1;
}

/* —— Checkout-specific —— */
.pay-page .cro-trust {
  margin: 0.75rem 0 1.1rem;
}

.pay-page .cro-bundles {
  padding: 1.5rem 0 0.5rem;
}

.pay-upsell {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid var(--cro-line);
  background: rgba(214, 12, 118, 0.08);
}

.pay-upsell h3 {
  font-family: "Stack Sans Notch", sans-serif;
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
}

.pay-upsell p {
  margin: 0 0 0.75rem;
  font-size: 0.84rem;
  color: var(--cro-muted);
  line-height: 1.45;
}

.pay-upsell-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.pay-cta-improve .btn-primary,
.cro-btn-pulse {
  box-shadow: 0 0 0 0 rgba(214, 12, 118, 0.45);
  animation: croPulse 2.4s ease-out infinite;
}

@keyframes croPulse {
  0% { box-shadow: 0 0 0 0 rgba(214, 12, 118, 0.4); }
  70% { box-shadow: 0 0 0 12px rgba(214, 12, 118, 0); }
  100% { box-shadow: 0 0 0 0 rgba(214, 12, 118, 0); }
}

@media (max-width: 960px) {
  .cro-trust-grid,
  .cro-price-grid,
  .cro-bundle-grid,
  .cro-quote-grid,
  .cro-refund-panel {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .cro-trust-grid,
  .cro-price-grid,
  .cro-bundle-grid,
  .cro-quote-grid,
  .cro-refund-panel {
    grid-template-columns: 1fr;
  }

  .cro-sticky-inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .cro-sticky-actions {
    justify-content: center;
  }

  .cro-sticky-actions .btn {
    flex: 1;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cro-btn-pulse,
  .pay-cta-improve .btn-primary {
    animation: none;
  }

  .cro-sticky {
    transition: none;
  }
}
