/* ==========================================================================
   RevRadar website — Pro modal (2026-10-05, preview/pro-modal-paywall)
   ==========================================================================
   The website's copy of the two-step Pro modal that the app shell shows (public/css/native-growth.css .rrn-gs-*).
   Same structure, copy and rules; this file uses the website's own --rr-* tokens, so body.light flips it with
   the rest of the page. Loaded by listing.html (the listing-open Pro popup, #milestoneModal). Red is reserved for
   the purchase button; Continue is the quiet ink button.
   ========================================================================== */
:root {
  --pm-gold-a: #FFD45E; --pm-gold-b: #F6A621; --pm-gold-ink: #1C1303;
}
body.light { --pm-gold-a: #FFCB45; --pm-gold-b: #F29A0B; }

.pm-overlay {
  display: none; position: fixed; inset: 0; z-index: 9999;
  align-items: center; justify-content: center;
  padding: 16px; background: rgba(0, 0, 0, .66);
}
.pm-overlay.open { display: flex; }
.pm-panel {
  position: relative; box-sizing: border-box;
  width: 100%; max-width: 440px; max-height: 100%;
  overflow-y: auto; overscroll-behavior: contain;
  padding: 66px 22px 22px;
  background: var(--rr-surface); color: var(--rr-ink);
  border: 1px solid var(--rr-line-strong); border-radius: 18px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .5);
  font-family: var(--font-body, system-ui, sans-serif);
  animation: pm-in .22s ease both;
}
@keyframes pm-in { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
.pm-step { display: flex; flex-direction: column; animation: pm-step-in .24s ease both; }
@keyframes pm-step-in { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }

.pm-x, .pm-back {
  position: absolute; top: 10px; width: 44px; height: 44px; padding: 0; box-sizing: border-box;
  border-radius: 50%; background: var(--rr-surface-2); color: var(--rr-ink);
  border: 1px solid var(--rr-line-strong); cursor: pointer;
}
.pm-x { right: 10px; font-size: 18px; font-weight: 700; line-height: 1; }
.pm-back { left: 10px; padding: 11px; }
.pm-dots { position: absolute; top: 28px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
.pm-dots i { width: 7px; height: 7px; border-radius: 4px; background: var(--rr-line-strong); }
.pm-dots i.is-on { width: 20px; background: var(--rr-accent); }

.pm-title { font-size: 27px; line-height: 1.15; font-weight: 800; letter-spacing: -.3px; color: var(--rr-ink); margin: 0 0 18px; font-family: var(--font-body, system-ui, sans-serif); }
.pm-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.pm-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; line-height: 1.4; color: var(--rr-ink); }
.pm-tick { flex: 0 0 auto; width: 24px; height: 24px; padding: 5px; box-sizing: border-box; margin-top: -1px; border-radius: 50%; background: var(--rr-accent-wash); color: var(--rr-accent); }

.pm-tl { list-style: none; margin: 0; padding: 0; }
.pm-tl-item { position: relative; display: flex; gap: 14px; padding-bottom: 20px; }
.pm-tl-item.is-last { padding-bottom: 0; }
.pm-tl-item:not(.is-last)::before { content: ''; position: absolute; left: 17px; top: 38px; bottom: 2px; width: 2px; background: var(--rr-line-strong); }
.pm-tl-dot { flex: 0 0 auto; width: 36px; height: 36px; padding: 8px; box-sizing: border-box; border-radius: 50%; background: var(--rr-surface-2); color: var(--rr-ink); border: 1px solid var(--rr-line-strong); }
.pm-tl-item:first-child .pm-tl-dot { background: linear-gradient(135deg, var(--pm-gold-a), var(--pm-gold-b)); color: var(--pm-gold-ink); border-color: transparent; }
.pm-tl-text { display: flex; flex-direction: column; gap: 3px; padding-top: 1px; min-width: 0; }
.pm-tl-when { font-weight: 700; font-size: 15px; color: var(--rr-ink); }
.pm-tl-body { font-size: 14px; line-height: 1.45; color: var(--rr-ink-2); }

.pm-btns { display: flex; flex-direction: column; gap: 11px; margin-top: 26px; }
.pm-next {
  display: block; width: 100%; box-sizing: border-box; text-align: center;
  background: var(--rr-ink); color: var(--rr-ground); border: 0; border-radius: 12px;
  min-height: 54px; padding: 0 14px; font-family: inherit; font-weight: 800; font-size: 16px; cursor: pointer;
}
.pm-cta {
  display: block; width: 100%; box-sizing: border-box; text-align: center;
  background: var(--rr-accent); color: var(--rr-accent-ink); border: 0; border-radius: 12px;
  min-height: 56px; padding: 0 14px; font-family: inherit; font-weight: 800; font-size: 17px; cursor: pointer;
  box-shadow: 0 6px 18px rgba(255, 43, 43, .35);
}
.pm-cta:active { background: var(--rr-accent-strong); }
.pm-cta:disabled { opacity: .6; }
.pm-note { margin: 0; text-align: center; font-size: 13.5px; line-height: 1.5; color: var(--rr-ink-2); }
.pm-legal { display: flex; justify-content: center; gap: 10px; margin: 14px 0 0; font-size: 12.5px; color: var(--rr-muted); }
.pm-legal a { color: var(--rr-muted); text-decoration: underline; text-underline-offset: 2px; }

@media (max-height: 700px) {
  .pm-panel { padding-top: 58px; padding-bottom: 14px; }
  .pm-x, .pm-back { top: 8px; }
  .pm-dots { top: 24px; }
  .pm-title { font-size: 23px; margin-bottom: 14px; }
  .pm-list { gap: 9px; } .pm-list li { font-size: 14px; line-height: 1.3; }
  .pm-tl-item { padding-bottom: 14px; gap: 12px; }
  .pm-tl-item:not(.is-last)::before { top: 34px; left: 15px; }
  .pm-tl-dot { width: 32px; height: 32px; padding: 7px; }
  .pm-tl-when { font-size: 14px; } .pm-tl-body { font-size: 13px; line-height: 1.35; }
  .pm-btns { margin-top: 14px; gap: 8px; }
  .pm-next { min-height: 50px; } .pm-cta { min-height: 52px; font-size: 16px; }
  .pm-note { font-size: 13px; line-height: 1.4; }
  .pm-legal { margin-top: 11px; }
}
@media (prefers-reduced-motion: reduce) { .pm-panel, .pm-step { animation: none; } }
