/**
 * OTC Pro paywall — horizontal hero-style band (scoped under .otc-paywall).
 * Include with styles/main.css for product modals on the preview page.
 */
@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap");

.otc-paywall,
.otc-paywall * {
  box-sizing: border-box;
}

.otc-paywall {
  --otc-pw-border: rgba(148, 163, 255, 0.35);
  --otc-pw-primary: #5b4bff;
  --otc-pw-accent: #22d3ee;
  --otc-pw-success: #34d399;
  --otc-pw-warn-bg: rgba(251, 191, 36, 0.14);
  --otc-pw-warn-border: rgba(251, 191, 36, 0.45);
  --otc-pw-radius: 22px;
  --otc-pw-shadow: 0 24px 70px rgba(15, 23, 42, 0.45);

  font-family: "Outfit", system-ui, sans-serif;
  color: #e8edff;
  width: 100%;
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 48px) clamp(18px, 4vw, 32px);
  background:
    radial-gradient(900px 420px at 8% 40%, rgba(91, 75, 255, 0.42) 0%, transparent 55%),
    radial-gradient(640px 380px at 92% 30%, rgba(34, 211, 238, 0.32) 0%, transparent 52%),
    linear-gradient(120deg, #0b1024 0%, #151a3d 45%, #1a1f4a 100%);
}

.otc-paywall::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -12deg,
    transparent,
    transparent 18px,
    rgba(255, 255, 255, 0.02) 18px,
    rgba(255, 255, 255, 0.02) 19px
  );
  pointer-events: none;
}

.otc-paywall__shell {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.otc-paywall__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: clamp(20px, 4vw, 36px);
  align-items: stretch;
}

.otc-paywall__main {
  min-width: 0;
}

.otc-paywall__aside {
  min-width: 0;
}

.otc-paywall__exclusive {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a5f3fc;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.35);
  border-radius: 999px;
  padding: 7px 12px;
  margin-bottom: 12px;
}

.otc-paywall__exclusive-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--otc-pw-accent);
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.8);
}

.otc-paywall__title {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: clamp(1.45rem, 3.2vw, 2.05rem);
  font-weight: 800;
  line-height: 1.18;
  margin: 0 0 12px;
  color: #f8fafc;
  letter-spacing: -0.02em;
  max-width: 34ch;
}

.otc-paywall__lead {
  margin: 0 0 16px;
  font-size: clamp(14px, 1.6vw, 16px);
  line-height: 1.55;
  color: #c7d2fe;
  max-width: 52ch;
}

.otc-paywall__lead strong {
  color: #fff;
  font-weight: 700;
}

.otc-paywall__perks {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: grid;
  gap: 8px;
}

.otc-paywall__perks li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #e2e8f0;
  line-height: 1.4;
}

.otc-paywall__perks li::before {
  content: "✓";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
  color: #022c22;
  background: linear-gradient(135deg, #5eead4, var(--otc-pw-success));
}

/* Tool strip (same pattern as home / join) */
.otc-paywall__tools {
  margin-bottom: 20px;
}

.otc-paywall .otc-paywall__tools-title {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  color: #c5d2ff;
  letter-spacing: 0.02em;
}

.otc-paywall__tools-hint {
  font-weight: 600;
  color: #94a3b8;
  font-size: 12px;
}

.otc-paywall .hero-tool-strip {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 14px 18px;
  padding: 14px 16px;
  margin: 0;
  background: rgba(245, 249, 255, 0.08);
  border: 1px solid rgba(200, 214, 255, 0.28);
  border-radius: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

/* Full tool-pill rules (paywall does not load main.css — these mirror join/home hero strip) */
.otc-paywall .hero-tool-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  width: 76px;
  text-align: center;
}

.otc-paywall .hero-tool-pill {
  appearance: none;
  -webkit-appearance: none;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(200, 214, 255, 0.45);
  background: rgba(255, 255, 255, 0.95);
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
}

.otc-paywall .hero-tool-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
}

.otc-paywall .hero-tool-pill img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  border-radius: 50%;
  display: block;
  flex-shrink: 0;
}

.otc-paywall .hero-tool-emoji {
  font-size: 24px;
  line-height: 1;
}

.otc-paywall .hero-tool-label {
  color: #e3ebff;
  width: 100%;
  max-width: 76px;
  margin: 0;
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.25;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  word-break: break-word;
}

/* Hero CTAs — horizontal on desktop */
.otc-paywall__hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.otc-paywall__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 14px;
  padding: 14px 22px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.otc-paywall__btn:active {
  transform: scale(0.98);
}

.otc-paywall__btn--primary {
  background: linear-gradient(135deg, var(--otc-pw-primary), #2d7dff);
  color: #f8fafc;
  box-shadow: 0 14px 36px rgba(67, 56, 202, 0.48);
}

.otc-paywall__btn--primary:hover {
  box-shadow: 0 16px 42px rgba(67, 56, 202, 0.55);
}

.otc-paywall__btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(186, 198, 255, 0.38);
  color: #e2e8f0;
}

.otc-paywall__btn--ghost:hover {
  background: rgba(255, 255, 255, 0.11);
}

/* Aside pricing card */
.otc-paywall__aside-card {
  position: relative;
  height: 100%;
  background: linear-gradient(165deg, rgba(30, 36, 78, 0.92) 0%, rgba(18, 22, 52, 0.94) 100%);
  border: 1px solid var(--otc-pw-border);
  border-radius: var(--otc-pw-radius);
  padding: clamp(18px, 3vw, 22px);
  box-shadow: var(--otc-pw-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
}

.otc-paywall__aside-card::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  border-radius: var(--otc-pw-radius);
  padding: 1px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.4), rgba(91, 75, 255, 0.32), rgba(34, 211, 238, 0.18));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.otc-paywall__aside-card > * {
  position: relative;
  z-index: 1;
}

.otc-paywall__aside-kicker {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a5b4fc;
  margin-bottom: 10px;
}

.otc-paywall__toggle {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.otc-paywall__toggle-inner {
  display: inline-flex;
  border: 1px solid rgba(148, 163, 255, 0.35);
  background: rgba(15, 23, 42, 0.55);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
  width: 100%;
  max-width: 100%;
}

.otc-paywall__toggle-btn {
  flex: 1;
  border: 0;
  background: transparent;
  color: #c7d2fe;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  padding: 9px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.otc-paywall__toggle-btn.is-active {
  background: linear-gradient(135deg, var(--otc-pw-primary), #2d7dff);
  color: #f1f5ff;
  box-shadow: 0 6px 18px rgba(67, 56, 202, 0.4);
}

.otc-paywall__toggle-hint {
  font-weight: 700;
  font-size: 10px;
  opacity: 0.9;
}

.otc-paywall__compare {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(129, 140, 248, 0.28);
  border-radius: 14px;
  padding: 10px 12px;
  margin-bottom: 10px;
}

.otc-paywall__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
}

.otc-paywall__row + .otc-paywall__row {
  border-top: 1px solid rgba(148, 163, 255, 0.12);
}

.otc-paywall__row-label {
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
}

.otc-paywall__row-value {
  font-size: 15px;
  font-weight: 800;
  color: #f1f5f9;
}

.otc-paywall__row-value--strike {
  text-decoration: line-through;
  text-decoration-color: #f87171;
  text-decoration-thickness: 2px;
  color: #94a3b8;
  font-size: 13px;
}

.otc-paywall__row-value--accent {
  font-size: 18px;
  color: #fff;
}

.otc-paywall__row-unit {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  margin-left: 2px;
}

.otc-paywall__discount-pill {
  margin-top: 8px;
  text-align: center;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.18);
  border-radius: 999px;
  padding: 6px 8px;
}

.otc-paywall__mega-label {
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  color: #a5b4fc;
  margin-bottom: 4px;
}

.otc-paywall__mega {
  text-align: center;
  margin: 0 0 6px;
}

.otc-paywall__mega-price {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: clamp(2rem, 5vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1;
}

.otc-paywall__mega-unit {
  font-size: 0.42em;
  font-weight: 800;
  color: #94a3b8;
  margin-left: 3px;
}

.otc-paywall__then {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 10px;
  line-height: 1.4;
}

.otc-paywall__fineprint {
  font-size: 11px;
  line-height: 1.45;
  color: #cbd5e1;
  background: var(--otc-pw-warn-bg);
  border: 1px solid var(--otc-pw-warn-border);
  border-radius: 10px;
  padding: 10px 11px;
  margin-bottom: 10px;
  flex: 1;
}

.otc-paywall__fineprint strong {
  color: #fef3c7;
}

.otc-paywall__reassure {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
}

.otc-paywall__reassure span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.otc-paywall__reassure span::before {
  content: "✓";
  color: var(--otc-pw-success);
  font-weight: 900;
}

.otc-paywall__micro {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  margin: 0;
}

.otc-paywall__brand {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(148, 163, 255, 0.2);
  font-size: 11px;
  color: #64748b;
  text-align: center;
}

.otc-paywall__brand strong {
  color: #a5b4fc;
  font-weight: 800;
}

@media (max-width: 900px) {
  .otc-paywall__layout {
    grid-template-columns: 1fr;
  }

  .otc-paywall__aside-card {
    max-width: 420px;
    margin: 0 auto;
  }

  .otc-paywall .hero-tool-strip {
    flex-wrap: nowrap;
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .otc-paywall__hero-actions {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .otc-paywall__hero-actions .otc-paywall__btn {
    flex: 1 0 min(240px, 85vw);
    white-space: nowrap;
  }
}

/* ========== OTC paywall product modal (include with bundle when copying) ========== */
.otc-pw-modal {
  position: fixed;
  inset: 0;
  background: rgba(8, 14, 42, 0.66);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 12px;
  overflow-y: auto;
  z-index: 10000;
  font-family: "Outfit", system-ui, sans-serif;
}

.otc-pw-modal.otc-pw-modal--open {
  display: flex;
}

.otc-pw-modal__card {
  width: min(980px, 100%);
  max-width: min(980px, 96vw);
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #d8e2ff;
  box-shadow: 0 26px 80px rgba(22, 33, 84, 0.32);
  padding: 18px 20px 16px;
  position: relative;
  margin: auto 0;
  max-height: calc(100dvh - 24px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.otc-pw-modal__split {
  display: grid;
  gap: 14px 18px;
  flex: 1;
  min-height: 0;
  align-items: stretch;
}

.otc-pw-modal__col--copy {
  min-width: 0;
}

.otc-pw-modal__col--media {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

@media (min-width: 900px) {
  .otc-pw-modal__split {
    grid-template-columns: 1fr min(42%, 400px);
  }

  .otc-pw-modal__col--copy {
    overflow-y: auto;
    padding-right: 6px;
    max-height: min(calc(100dvh - 100px), 620px);
  }

  .otc-pw-modal__col--media {
    position: sticky;
    top: 0;
    align-self: start;
    max-height: min(calc(100dvh - 100px), 620px);
  }
}

@media (max-width: 899px) {
  .otc-pw-modal__col--media {
    order: -1;
  }

  .otc-pw-modal__card {
    overflow-y: auto;
  }
}

.otc-pw-modal__card #otc-pw-modal-title {
  margin: 0 0 8px;
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  line-height: 1.25;
  color: #152a5c;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
}

.otc-pw-modal__video-wrap {
  width: 100%;
  max-width: 100%;
  margin: 0 0 10px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #d9e3ff;
  background: #0f172a;
  flex-shrink: 0;
}

.otc-pw-modal__gif-wrap {
  margin: 0 0 10px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #d9e3ff;
  background: linear-gradient(165deg, #f0f5ff 0%, #ffffff 55%);
  box-shadow: 0 8px 28px rgba(55, 74, 170, 0.12);
  padding: 6px;
  flex: 1;
  min-height: 120px;
  max-height: min(52vh, 400px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.otc-pw-modal__gif-img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: min(52vh, 392px);
  object-fit: contain;
  object-position: center;
  border-radius: 10px;
}

.otc-pw-modal__video-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
}

.otc-pw-modal__video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.otc-pw-modal__logo-wrap {
  margin: 0;
  border: 1px solid #d9e3ff;
  border-radius: 14px;
  background: linear-gradient(180deg, #f4f8ff, #ffffff);
  padding: 8px 10px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow: hidden;
  flex: 1;
  min-height: 100px;
  max-height: min(52vh, 400px);
  box-shadow: 0 6px 22px rgba(55, 74, 170, 0.08);
}

.otc-pw-modal__logo {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: min(200px, 30vh);
  object-fit: contain;
  object-position: top center;
  transition: opacity 0.22s ease;
}

.otc-pw-modal__close {
  position: absolute;
  right: 10px;
  top: 8px;
  border: 0;
  background: transparent;
  font-size: 24px;
  cursor: pointer;
  color: #33468c;
  line-height: 1;
  z-index: 2;
}

.otc-pw-modal__badge {
  display: inline-block;
  background: #e8fbff;
  color: #0b6d83;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 10px;
}

.otc-pw-modal__tagline {
  color: #47577b;
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.4;
}

.otc-pw-modal__long {
  color: #314063;
  margin: 0 0 8px;
  line-height: 1.45;
  white-space: pre-line;
  font-size: 12.5px;
}

.otc-pw-modal__list {
  color: #1e2d52;
  margin: 0 0 10px;
  padding-left: 1.15rem;
  font-size: 12.5px;
  line-height: 1.35;
}

.otc-pw-modal__list li {
  margin-bottom: 3px;
}

.otc-pw-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.otc-pw-modal__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
}

.otc-pw-modal__btn--primary {
  background: linear-gradient(135deg, #5b4bff, #2d7dff);
  color: #eef3ff;
  box-shadow: 0 12px 26px rgba(67, 56, 202, 0.34);
}

.otc-pw-modal__btn--secondary {
  background: #eef4ff;
  border-color: #ced9ff;
  color: #2f3fb0;
}
