/* Paywall modal — liquid-glass upgrade card.
   - Backdrop: deep + blurred + animated aurora blobs
   - Card: translucent surface with backdrop-blur, crisp inner highlight,
     soft outer shadow, tier-tinted edge glow
   - Sticky hero + sticky CTA, scrollable middle for the feature manifest
   ============================================================== */

.paywall {
  position: fixed; inset: 0;
  z-index: 9000;
  background: rgba(6, 4, 12, 0.55);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  display: grid;
  place-items: center;
  padding: 24px;
  animation: pwFade .22s ease-out;
  overflow: hidden;
}
@keyframes pwFade { from { opacity: 0; } to { opacity: 1; } }

/* Animated aurora blobs behind the card */
.paywall__aurora {
  position: absolute; inset: -10%;
  pointer-events: none;
  overflow: hidden;
  filter: blur(60px);
  opacity: 0.55;
}
.paywall__aurora-blob {
  position: absolute;
  width: 38vmin; height: 38vmin;
  border-radius: 50%;
  mix-blend-mode: screen;
  animation: pwDrift 22s ease-in-out infinite alternate;
}
.paywall__aurora-blob--a { top: 10%; left: 12%; background: radial-gradient(circle, oklch(0.65 0.22 290), transparent 65%); animation-delay: 0s; }
.paywall__aurora-blob--b { top: 55%; left: 60%; background: radial-gradient(circle, oklch(0.70 0.22 250), transparent 65%); animation-delay: -7s; }
.paywall__aurora-blob--c { top: 30%; left: 70%; background: radial-gradient(circle, oklch(0.66 0.22 330), transparent 65%); animation-delay: -14s; }
@keyframes pwDrift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(8vmin, -6vmin) scale(1.15); }
}

/* Card — liquid glass */
.paywall__card {
  position: relative;
  width: min(720px, 100%);
  max-height: min(88vh, 880px);
  display: flex; flex-direction: column;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(28, 24, 40, 0.82) 0%, rgba(18, 14, 28, 0.88) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(22px) saturate(1.4);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  box-shadow:
    0 30px 100px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset,
    0 1px 0 rgba(255, 255, 255, 0.08) inset;
  color: #ece9f2;
  overflow: hidden;
  animation: pwSlide .32s cubic-bezier(.2, .8, .2, 1);
}
.paywall__card::before {
  /* top edge gloss */
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 80px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent);
  pointer-events: none;
}
.paywall__card::after {
  /* tier accent edge glow */
  content: "";
  position: absolute; inset: 0;
  border-radius: 24px;
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(138, 109, 255, 0.16) inset, 0 0 80px rgba(138, 109, 255, 0.18) inset;
}
.paywall__card--starter::after { box-shadow: 0 0 0 1px rgba(120, 200, 255, 0.16) inset, 0 0 80px rgba(120, 200, 255, 0.16) inset; }
.paywall__card--pro::after     { box-shadow: 0 0 0 1px rgba(138, 109, 255, 0.20) inset, 0 0 80px rgba(138, 109, 255, 0.22) inset; }
.paywall__card--max::after     { box-shadow: 0 0 0 1px rgba(255, 170, 110, 0.20) inset, 0 0 80px rgba(255, 130, 90, 0.18) inset; }
.paywall__card--label::after   { box-shadow: 0 0 0 1px rgba(255, 215, 130, 0.22) inset, 0 0 80px rgba(255, 200, 120, 0.18) inset; }

@keyframes pwSlide {
  from { transform: translateY(14px) scale(.97); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

/* Close */
.paywall__close {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  z-index: 5;
  transition: background .15s, color .15s, border-color .15s;
}
.paywall__close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.12);
}
.paywall__close svg { width: 14px; height: 14px; }

/* Hero — sticky at top of card */
.paywall__hero {
  padding: 36px 36px 22px;
  position: relative;
}
.paywall__hero-row {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 18px;
}
.paywall__tier-pill {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  padding: 5px 11px;
  border-radius: 999px;
}
.paywall__price {
  display: inline-flex; align-items: baseline; gap: 4px;
  margin-left: auto;
  color: rgba(255, 255, 255, 0.85);
}
.paywall__price em {
  font-style: normal;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
}
.paywall__price span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.paywall__title {
  margin: 0 0 10px;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #fff;
  text-wrap: balance;
}
/* Tommy 2026-05-11 07:03Z: "i love the color text you did for the 001 page.
   maybe we do that on onboarding flow modals too" + "and all the upsell modals."
   The paywall titles now share the iridescent holo gradient from /001 / privacy
   / terms / sv-headline. Per-tier color overrides removed — one consistent
   brand treatment across every upsell. */
@property --sv-holo-tilt-pw { syntax: "<angle>"; inherits: false; initial-value: 110deg; }
.paywall__title em {
  font-style: normal;
  position: relative; display: inline-block;
  --sv-holo-tilt-pw: 110deg;
  background:
    linear-gradient(105deg,
      transparent 25%,
      rgba(255,255,255,0.55) 46%,
      rgba(255,255,255,0.95) 50%,
      rgba(255,255,255,0.55) 54%,
      transparent 75%),
    linear-gradient(var(--sv-holo-tilt-pw),
      oklch(0.82 0.13 250) 0%,
      oklch(0.88 0.10 200) 12%,
      oklch(0.92 0.10 110) 24%,
      oklch(0.85 0.18 70)  34%,
      oklch(0.80 0.20 25)  44%,
      oklch(0.78 0.22 340) 55%,
      oklch(0.80 0.18 295) 67%,
      oklch(0.86 0.13 220) 78%,
      oklch(0.90 0.12 175) 88%,
      oklch(0.82 0.13 250) 100%);
  background-size: 220% 100%, 260% 100%;
  background-position: -120% 0, 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: sv-holo-flow-pw 7.5s linear infinite;
  padding: 0 2px;
}
@keyframes sv-holo-flow-pw {
  0%   { background-position: -130% 0,   0% 50%; }
  100% { background-position:  130% 0, 200% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .paywall__title em { animation: none; background-position: 0 0, 50% 50%; }
}

.paywall__pitch {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
  text-wrap: pretty;
  max-width: 560px;
}
.paywall__pitch-soft { color: rgba(255, 255, 255, 0.55); }

.paywall__value-frame {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px 7px 10px;
  background: rgba(138, 109, 255, 0.12);
  border: 1px solid rgba(138, 109, 255, 0.22);
  border-radius: 999px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.005em;
}
.paywall__value-frame svg { width: 13px; height: 13px; color: #c9b6ff; }
.paywall__card--max .paywall__value-frame   { background: rgba(255, 154, 106, 0.12); border-color: rgba(255, 154, 106, 0.22); }
.paywall__card--max .paywall__value-frame svg { color: #ffc59a; }
.paywall__card--label .paywall__value-frame { background: rgba(245, 184, 90, 0.12); border-color: rgba(245, 184, 90, 0.22); }
.paywall__card--label .paywall__value-frame svg { color: #f5d59a; }
.paywall__card--starter .paywall__value-frame { background: rgba(109, 184, 255, 0.12); border-color: rgba(109, 184, 255, 0.22); }
.paywall__card--starter .paywall__value-frame svg { color: #b6d6ff; }

/* Body — scrollable manifest */
.paywall__body {
  padding: 6px 36px 28px;
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1 1 auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}
.paywall__body::-webkit-scrollbar { width: 8px; }
.paywall__body::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 4px; }
.paywall__body::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.18); }

.paywall__group { margin: 22px 0 0; }
.paywall__group:first-child { margin-top: 14px; }

.paywall__group-title {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.paywall__perks {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 14px;
}
.paywall__perks li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 14px;
  line-height: 1.45;
}
.paywall__check {
  flex: 0 0 auto;
  width: 20px; height: 20px;
  display: grid; place-items: center;
  background: rgba(138, 109, 255, 0.18);
  border: 1px solid rgba(138, 109, 255, 0.28);
  border-radius: 6px;
  color: #c9b6ff;
  margin-top: 1px;
}
.paywall__card--starter .paywall__check { background: rgba(109, 184, 255, 0.16); border-color: rgba(109, 184, 255, 0.26); color: #b6d6ff; }
.paywall__card--max     .paywall__check { background: rgba(255, 154, 106, 0.16); border-color: rgba(255, 154, 106, 0.26); color: #ffc59a; }
.paywall__card--label   .paywall__check { background: rgba(245, 184, 90, 0.18);  border-color: rgba(245, 184, 90, 0.30);  color: #f5d59a; }

.paywall__perk-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.paywall__perk-text strong {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.94);
}
.paywall__perk-text span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

.paywall__inherits {
  margin: 22px 0 0;
  padding: 12px 14px;
  display: flex; align-items: center; gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.7);
}
.paywall__inherits svg { width: 14px; height: 14px; color: rgba(255, 255, 255, 0.5); }

.paywall__proof {
  margin: 22px 0 4px;
  padding: 14px 16px 14px 36px;
  position: relative;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.75);
  font-style: italic;
}
.paywall__proof p { margin: 0; }
.paywall__proof-quote {
  position: absolute;
  top: -2px; left: 12px;
  font-family: 'Geist', -apple-system, system-ui, sans-serif;
  font-size: 44px;
  font-style: normal;
  line-height: 1;
  color: rgba(138, 109, 255, 0.4);
}
.paywall__card--max .paywall__proof-quote { color: rgba(255, 154, 106, 0.4); }
.paywall__card--label .paywall__proof-quote { color: rgba(245, 184, 90, 0.4); }
.paywall__card--starter .paywall__proof-quote { color: rgba(109, 184, 255, 0.4); }

/* CTA — sticky bottom */
.paywall__cta {
  display: flex; gap: 10px;
  padding: 18px 36px 22px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.18) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
}

.paywall__btn {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: #ece9f2;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .08s, filter .15s;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
}
.paywall__btn:active { transform: translateY(1px); }

.paywall__btn--ghost {
  flex: 0 0 auto;
  padding: 0 22px;
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.7);
}
.paywall__btn--ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.paywall__btn--primary {
  flex: 1 1 auto;
  background: linear-gradient(135deg, #8a6dff 0%, #6a48f5 100%);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(106, 72, 245, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.paywall__card--starter .paywall__btn--primary { background: linear-gradient(135deg, #6db8ff 0%, #3b88f3 100%); box-shadow: 0 8px 24px rgba(59, 136, 243, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.18); }
.paywall__card--max     .paywall__btn--primary {
  background: linear-gradient(135deg, #ff9a6a 0%, #f37238 100%);
  box-shadow: 0 8px 24px rgba(243, 114, 56, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  position: relative;
  overflow: hidden;
}
.paywall__card--max .paywall__btn--primary::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.55) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: maxSheenBtn 3.4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes maxSheenBtn {
  0%, 30% { transform: translateX(-120%); }
  55%, 100% { transform: translateX(120%); }
}
.paywall__card--max::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 200, 160, 0.10) 50%, transparent 62%);
  transform: translateX(-100%);
  animation: maxSheenCard 6s ease-in-out infinite;
  pointer-events: none;
  border-radius: inherit;
  z-index: 1;
}
@keyframes maxSheenCard {
  0%, 20% { transform: translateX(-100%); }
  50%, 100% { transform: translateX(100%); }
}; }
.paywall__card--label   .paywall__btn--primary { background: linear-gradient(135deg, #f5d59a 0%, #d8a04e 100%); box-shadow: 0 8px 24px rgba(216, 160, 78, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.18); color: #2a1f08; }

.paywall__btn--primary:hover { filter: brightness(1.08); }
.paywall__btn-price {
  font-size: 12.5px;
  font-weight: 500;
  opacity: 0.85;
  padding-left: 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
}
.paywall__card--label .paywall__btn-price { border-left-color: rgba(42, 31, 8, 0.3); }

/* Section pills look interactive */
button.sidebar__section-pill {
  cursor: pointer;
  border: 0;
  font: inherit;
  padding: 2px 8px;
  transition: filter .12s, transform .08s;
}
button.sidebar__section-pill:hover { filter: brightness(1.15); }
button.sidebar__section-pill:active { transform: translateY(1px); }

/* Responsive */
@media (max-width: 600px) {
  .paywall { padding: 0; }
  .paywall__card { width: 100%; max-height: 100vh; height: 100vh; border-radius: 0; border: 0; }
  .paywall__hero { padding: 28px 22px 18px; }
  .paywall__title { font-size: 26px; }
  .paywall__body { padding: 0 22px 22px; }
  .paywall__cta { padding: 14px 22px 18px; flex-direction: column-reverse; }
  .paywall__btn--ghost { width: 100%; }
  .paywall__btn--primary { width: 100%; }
  .paywall__price em { font-size: 24px; }
}

/* Light-theme support */
:root[data-theme="light"] .paywall { background: rgba(20, 16, 30, 0.45); }
:root[data-theme="light"] .paywall__card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 245, 252, 0.96) 100%);
  border-color: rgba(0, 0, 0, 0.06);
  color: #1a1722;
  box-shadow: 0 30px 100px rgba(40, 30, 60, 0.25);
}
:root[data-theme="light"] .paywall__title { color: #1a1722; }
:root[data-theme="light"] .paywall__pitch { color: rgba(26, 23, 34, 0.78); }
:root[data-theme="light"] .paywall__pitch-soft { color: rgba(26, 23, 34, 0.55); }
:root[data-theme="light"] .paywall__group-title { color: rgba(26, 23, 34, 0.5); }
:root[data-theme="light"] .paywall__perk-text strong { color: rgba(26, 23, 34, 0.94); }
:root[data-theme="light"] .paywall__perk-text span { color: rgba(26, 23, 34, 0.6); }
:root[data-theme="light"] .paywall__close { background: rgba(0, 0, 0, 0.04); border-color: rgba(0, 0, 0, 0.06); color: rgba(26, 23, 34, 0.55); }
:root[data-theme="light"] .paywall__close:hover { background: rgba(0, 0, 0, 0.08); color: #1a1722; }
:root[data-theme="light"] .paywall__cta { background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.04)); border-top-color: rgba(0, 0, 0, 0.06); }
:root[data-theme="light"] .paywall__btn--ghost { border-color: rgba(0, 0, 0, 0.12); color: rgba(26, 23, 34, 0.7); }
:root[data-theme="light"] .paywall__btn--ghost:hover { background: rgba(0, 0, 0, 0.04); color: #1a1722; }
:root[data-theme="light"] .paywall__inherits { background: rgba(0, 0, 0, 0.03); border-color: rgba(0, 0, 0, 0.1); color: rgba(26, 23, 34, 0.7); }
:root[data-theme="light"] .paywall__proof { background: rgba(0, 0, 0, 0.03); border-color: rgba(0, 0, 0, 0.06); color: rgba(26, 23, 34, 0.75); }
:root[data-theme="light"] .paywall__price em { color: #1a1722; }
:root[data-theme="light"] .paywall__price span { color: rgba(26, 23, 34, 0.5); }
