/* PayPal explainer modal — index.html (public landing) */

.otc-pro-pp {
  position: fixed;
  inset: 0;
  z-index: 12100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vmin, 40px);
  box-sizing: border-box;
}

.otc-pro-pp[hidden] {
  display: none !important;
}

.otc-pro-pp__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(8px);
}

.otc-pro-pp__dialog {
  position: relative;
  width: min(680px, calc(100vw - 2 * clamp(16px, 4vw, 48px)));
  max-height: min(90vh, 720px);
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 55%, #f1f5f9 100%);
  border-radius: clamp(20px, 2.5vw, 28px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.98) inset,
    0 32px 96px rgba(15, 23, 42, 0.32),
    0 0 0 1px rgba(148, 163, 184, 0.18);
  overflow: hidden;
  font-family: "Plus Jakarta Sans", "Outfit", system-ui, sans-serif;
}

.otc-pro-pp__close {
  position: absolute;
  top: clamp(14px, 2.5vw, 20px);
  right: clamp(14px, 2.5vw, 20px);
  z-index: 2;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.otc-pro-pp__close:hover {
  background: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.otc-pro-pp__close:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

.otc-pro-pp__head {
  flex-shrink: 0;
  padding: clamp(28px, 5vw, 44px) clamp(28px, 5vw, 48px) clamp(24px, 3.5vw, 32px);
  padding-right: clamp(56px, 12vw, 64px);
  background: linear-gradient(135deg, #001f5c 0%, #003087 28%, #0070ba 62%, #009cde 100%);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.otc-pro-pp__brand {
  margin-bottom: clamp(16px, 2.5vw, 22px);
}

.otc-pro-pp__paypal-logo {
  display: block;
  height: clamp(28px, 4vw, 34px);
  width: auto;
  max-width: 100%;
  filter: brightness(0) invert(1);
}

.otc-pro-pp__paypal-logo--inline {
  filter: none;
  height: clamp(26px, 3.5vw, 30px);
}

.otc-pro-pp__title {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 2vw + 0.85rem, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.22;
  max-width: 26ch;
}

.otc-pro-pp__subtitle {
  margin: 0;
  font-size: clamp(0.95rem, 0.5vw + 0.85rem, 1.05rem);
  opacity: 0.94;
  font-weight: 500;
  line-height: 1.5;
  max-width: 42ch;
}

.otc-pro-pp__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: clamp(26px, 4vw, 40px) clamp(24px, 5vw, 48px) clamp(28px, 4vw, 44px);
  -webkit-overflow-scrolling: touch;
}

.otc-pro-pp__panel {
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2.5vw, 24px);
}

.otc-pro-pp__text {
  margin: 0;
  font-size: clamp(0.98rem, 0.35vw + 0.9rem, 1.08rem);
  line-height: 1.68;
  color: #334155;
  max-width: 58ch;
}

.otc-pro-pp__text--muted {
  color: #64748b;
  font-size: clamp(0.92rem, 0.3vw + 0.85rem, 1rem);
  line-height: 1.62;
}

.otc-pro-pp__callout {
  margin: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: flex-start;
  padding: clamp(16px, 2.5vw, 20px) clamp(18px, 3vw, 24px);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(254, 249, 231, 0.95) 0%, rgba(253, 230, 138, 0.42) 100%);
  border: 1px solid rgba(245, 158, 11, 0.38);
  font-size: clamp(0.94rem, 0.25vw + 0.88rem, 1.02rem);
  line-height: 1.62;
  color: #78350f;
  overflow-wrap: anywhere;
}

.otc-pro-pp__callout > span:not(.otc-pro-pp__callout-ico) {
  min-width: 0;
}

.otc-pro-pp__callout strong {
  color: #451a03;
}

.otc-pro-pp__callout-link {
  color: #1d4ed8;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.otc-pro-pp__callout-link:hover {
  color: #1e40af;
}

.otc-pro-pp__callout--action {
  background: linear-gradient(145deg, rgba(239, 246, 255, 0.98) 0%, rgba(191, 219, 254, 0.55) 100%);
  border-color: rgba(37, 99, 235, 0.32);
  color: #1e3a8a;
}

.otc-pro-pp__callout--action strong {
  color: #172554;
}

.otc-pro-pp__callout-ico {
  flex-shrink: 0;
  font-size: 1.35rem;
  line-height: 1.25;
  margin-top: 2px;
}

.otc-pro-pp__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 50px;
  padding: 14px 22px;
  border-radius: 14px;
  font-family: inherit;
  font-weight: 800;
  font-size: clamp(0.92rem, 0.2vw + 0.88rem, 1rem);
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.15s ease;
}

.otc-pro-pp__panel > .otc-pro-pp__btn--primary {
  width: 100%;
  margin-top: 4px;
}

.otc-pro-pp__btn--primary {
  color: #fff;
  background: linear-gradient(180deg, #009cde 0%, #0070ba 45%, #003087 100%);
  box-shadow: 0 4px 20px rgba(0, 48, 135, 0.38);
}

.otc-pro-pp__btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(0, 48, 135, 0.45);
}

.otc-pro-pp__btn--ghost {
  background: #fff;
  color: #334155;
  border: 1px solid #cbd5e1;
  min-height: 48px;
}

.otc-pro-pp__btn--ghost:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.otc-pro-pp__btn--block {
  width: 100%;
  margin-top: 6px;
}

.otc-pro-pp__row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
  align-items: stretch;
}

.otc-pro-pp__row .otc-pro-pp__btn--ghost {
  flex: 0 1 auto;
  min-width: min(100%, 120px);
  padding-left: 20px;
  padding-right: 20px;
}

.otc-pro-pp__row .otc-pro-pp__btn--primary {
  flex: 1 1 220px;
  min-width: min(100%, 200px);
}

@media (max-width: 420px) {
  .otc-pro-pp__row {
    flex-direction: column;
  }

  .otc-pro-pp__row .otc-pro-pp__btn--ghost,
  .otc-pro-pp__row .otc-pro-pp__btn--primary {
    flex: 1 1 auto;
    width: 100%;
  }
}

.otc-pro-pp__payline {
  display: flex;
  justify-content: center;
  padding: clamp(8px, 1.5vw, 14px) 0 4px;
}

.otc-pro-pp__plans {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 4px;
}

@media (min-width: 480px) {
  .otc-pro-pp__plans {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
}

.otc-pro-pp__plan {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  min-height: 88px;
  padding: clamp(18px, 2.5vw, 22px) clamp(20px, 3vw, 24px);
  border-radius: 16px;
  text-decoration: none;
  color: #0f172a;
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  border: 1px solid rgba(0, 112, 186, 0.32);
  box-shadow: 0 2px 12px rgba(0, 48, 135, 0.08);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.2s ease;
}

.otc-pro-pp__plan:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 112, 186, 0.5);
  box-shadow: 0 10px 32px rgba(0, 48, 135, 0.16);
}

.otc-pro-pp__plan:focus-visible {
  outline: 3px solid #0070ba;
  outline-offset: 3px;
}

.otc-pro-pp__plan-label {
  font-weight: 800;
  font-size: clamp(1.08rem, 0.5vw + 1rem, 1.2rem);
  letter-spacing: -0.02em;
}

.otc-pro-pp__plan-price {
  margin-top: 2px;
  color: #003087;
  font-size: clamp(1.2rem, 0.75vw + 1.05rem, 1.42rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.otc-pro-pp__plan-note {
  color: #64748b;
  font-size: clamp(0.78rem, 0.18vw + 0.74rem, 0.86rem);
  font-weight: 700;
}

.otc-pro-pp__plan-hint {
  font-size: clamp(0.84rem, 0.2vw + 0.78rem, 0.92rem);
  color: #0369a1;
  font-weight: 700;
}

.otc-pro-pp__contact {
  margin: clamp(12px, 2vw, 18px) 0 0;
  padding-top: clamp(10px, 1.5vw, 16px);
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  font-size: clamp(0.9rem, 0.25vw + 0.84rem, 0.98rem);
  line-height: 1.65;
  color: #64748b;
  text-align: center;
  max-width: 48ch;
  margin-left: auto;
  margin-right: auto;
}

.otc-pro-pp__contact a {
  color: #2563eb;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.otc-pro-pp__contact a:hover {
  color: #1d4ed8;
}

@media (prefers-reduced-motion: reduce) {
  .otc-pro-pp__btn--primary:hover,
  .otc-pro-pp__plan:hover {
    transform: none;
  }
}
