/* ── Pricing page v2 — 2-col, generous spacing, polished cards ────────
   All selectors scoped to .pp- namespace. Body class: "pricing-page". */

/* ── Layout shell ──────────────────────────────────────────────────── */
.pricing-page main {
  padding: 0 0 clamp(80px, 12vh, 140px);
}
.pp-shell {
  width: min(100% - 48px, 1200px);
  margin-inline: auto;
}

/* ── Hero header ───────────────────────────────────────────────────── */
.pp-header {
  --hero-focus: 48% 24%;
  --hero-back-y: 0px;
  --hero-front-y: 0px;
  text-align: center;
  margin-bottom: clamp(48px, 7vh, 72px);
  position: relative;
  z-index: 2;
  overflow: hidden;
  isolation: isolate;
  padding-top: clamp(120px, 20vh, 240px);
  min-height: clamp(360px, 46vw, 500px);
}
.pp-header::before,
.pp-header::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.pp-header::before {
  z-index: 0;
  background:
    radial-gradient(ellipse 48% 36% at 50% 18%, rgba(120, 96, 255, 0.24) 0%, transparent 72%),
    radial-gradient(ellipse 26% 22% at 34% 54%, rgba(57, 255, 108, 0.12) 0%, transparent 72%),
    radial-gradient(ellipse 28% 24% at 74% 56%, rgba(255, 160, 72, 0.12) 0%, transparent 74%);
  filter: blur(26px);
  transform: translate3d(0, var(--hero-back-y), 0) scale(1.12);
  opacity: 0.86;
}
.pp-header::after {
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(7, 7, 15, 0) 0%, rgba(7, 7, 15, 0.05) 42%, rgba(7, 7, 15, 0.3) 74%, rgba(7, 7, 15, 0.82) 100%),
    radial-gradient(ellipse 72% 52% at 50% 42%, rgba(255, 255, 255, 0.05) 0%, transparent 72%);
}
.pp-header .pp-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  pointer-events: none;
  user-select: none;
  object-fit: cover;
  object-position: var(--hero-focus);
  z-index: 1;
  transform: translate3d(0, var(--hero-front-y), 0) scale(1.1);
  will-change: transform;
  backface-visibility: hidden;
  opacity: 0.45;
  filter: blur(0px) brightness(1.28) saturate(1.08);
  mix-blend-mode: screen;
  -webkit-mask-image:
    radial-gradient(ellipse 94% 96% at 50% 40%, rgba(0, 0, 0, 1) 18%, rgba(0, 0, 0, 0.92) 52%, rgba(0, 0, 0, 0.46) 78%, rgba(0, 0, 0, 0.18) 88%, transparent 100%);
          mask-image:
    radial-gradient(ellipse 94% 96% at 50% 40%, rgba(0, 0, 0, 1) 18%, rgba(0, 0, 0, 0.92) 52%, rgba(0, 0, 0, 0.46) 78%, rgba(0, 0, 0, 0.18) 88%, transparent 100%);
}
.pp-header > *:not(.pp-hero-bg) {
  position: relative;
  z-index: 3;
}
.pp-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  color: var(--text);
  line-height: 1.05;
  margin-bottom: 20px;
}
.pp-lead {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--text-2);
  line-height: 1.72;
  max-width: 520px;
  margin-inline: auto;
}

/* ── Plan grid — subgrid aligns sections across cards ────────────── */
.pp-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  grid-template-rows: auto auto 1fr auto; /* head · price · features · cta */
  gap: 20px;
  align-items: stretch;
  margin-bottom: 20px;
}

/* ── Base card ─────────────────────────────────────────────────────── */
.pp-card {
  position: relative;
  border-radius: 24px;
  padding: 36px 28px 32px;
  display: grid;
  grid-row: 1 / span 4;
  grid-template-rows: subgrid;
  row-gap: 0;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  overflow: hidden;
}

/* ── Free card ─────────────────────────────────────────────────────── */
.pp-card--free {
  background: rgba(255,255,255,0.024);
  border: 1.5px solid rgba(255,255,255,0.22);
}

/* ── Monthly subscription card ──────────────────────────────────────── */
.pp-card--sub {
  background: rgba(255,255,255,0.024);
  border: 1.5px solid rgba(255,255,255,0.28);
  box-shadow: 0 48px 100px -20px rgba(0,0,0,0.40);
}
.pp-card--sub::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  pointer-events: none;
  background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(255,255,255,0.03) 0%, transparent 70%);
}

/* ── Pro card — featured, elevated ─────────────────────────────────── */
.pp-card--pro {
  background: linear-gradient(168deg, rgba(57,255,108,0.05) 0%, rgba(12,18,14,0.95) 35%, #0a0e0c 100%);
  border: 1.5px solid rgba(57,255,108,0.30);
  box-shadow:
    0 0 0 1px rgba(57,255,108,0.05) inset,
    0 0 120px -20px rgba(57,255,108,0.08),
    0 48px 100px -20px rgba(0,0,0,0.60);
}
.pp-card--pro::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  pointer-events: none;
  background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(57,255,108,0.06) 0%, transparent 70%);
}

/* ── Card header ───────────────────────────────────────────────────── */
.pp-card-head {
  margin-bottom: 24px;
}
.pp-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px 5px 10px;
  border-radius: 100px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.pp-badge--free {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.40);
}
.pp-badge--free::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.30);
  flex: none;
}
.pp-badge--sub {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.55);
}
.pp-badge--sub::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.50);
  box-shadow: 0 0 6px rgba(255,255,255,0.25);
  flex: none;
}
.pp-badge--pro {
  background: rgba(57,255,108,0.10);
  border: 1px solid rgba(57,255,108,0.24);
  color: var(--neon);
}
.pp-badge--pro::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 10px var(--neon);
  flex: none;
}
.pp-plan-desc {
  font-size: 0.88rem;
  line-height: 1.60;
  color: var(--text-2);
}

/* ── Badge save highlight ──────────────────────────────────────────── */
.pp-badge-save { color: #f5a623; font-size: 0.8em; }

/* ── Price block ───────────────────────────────────────────────────── */
.pp-price-block {
  padding: 20px 0;
  margin-bottom: 4px;
  border-top: 1px solid rgba(255,255,255,0.07);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.pp-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.pp-amount {
  font-size: clamp(2.2rem, 3.6vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--text);
}
.pp-amount--free {
  font-size: clamp(2rem, 4vw, 2.6rem);
  color: rgba(255,255,255,0.40);
}
.pp-price-tag {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--neon);
  opacity: 0.80;
  white-space: nowrap;
}
.pp-price-compare {
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--text-3);
  line-height: 1.4;
}
.pp-price-compare s {
  text-decoration: line-through;
  opacity: 0.55;
  margin-right: 4px;
}

/* ── Feature list ──────────────────────────────────────────────────── */
.pp-features {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
  align-content: start;
}
.pp-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  line-height: 1.50;
  color: rgba(240,240,248,0.58);
}
.pp-features li::before {
  content: "✓";
  flex: none;
  width: 18px; height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.58rem;
  font-weight: 900;
  margin-top: 2px;
}
.pp-card--free .pp-features li::before {
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.30);
  background: rgba(255,255,255,0.03);
}
.pp-card--sub .pp-features li {
  color: rgba(240,240,248,0.70);
}
.pp-card--sub .pp-features li::before {
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.50);
  background: rgba(255,255,255,0.04);
}
.pp-card--pro .pp-features li {
  color: rgba(240,240,248,0.78);
}
.pp-card--pro .pp-features li::before {
  border: 1px solid rgba(57,255,108,0.24);
  color: var(--neon);
  background: rgba(57,255,108,0.08);
}
.pp-features li strong {
  color: var(--text);
  font-weight: 700;
}
/* "includes all Basic features" — styled as separator */
.pp-feat-all {
  font-size: 0.80rem;
  color: var(--text-3) !important;
  font-weight: 600;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.pp-feat-all::before {
  content: "↳" !important;
  border: none !important;
  background: none !important;
  color: var(--text-3) !important;
  font-size: 0.80rem !important;
  width: 18px !important;
}

/* ── CTA buttons ───────────────────────────────────────────────────── */
.pp-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: all 160ms ease;
  margin-top: 20px;
  align-self: end;
  cursor: pointer;
}
.pp-cta--free {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.55);
}
.pp-cta--free:hover {
  background: rgba(255,255,255,0.09);
  color: rgba(255,255,255,0.80);
  border-color: rgba(255,255,255,0.20);
  transform: translateY(-1px);
}
.pp-cta--coming-soon {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.25);
  cursor: default;
  pointer-events: none;
  font-size: 0.88rem;
}
.pp-cta--pro {
  background: var(--neon);
  color: #040d03;
  border: none;
  box-shadow:
    0 6px 32px rgba(57,255,108,0.25),
    0 1px 0 rgba(255,255,255,0.15) inset;
  font-weight: 800;
}
.pp-cta--pro:hover {
  background: #5fff88;
  box-shadow:
    0 8px 40px rgba(57,255,108,0.35),
    0 1px 0 rgba(255,255,255,0.18) inset;
  transform: translateY(-2px);
}


/* ── Notes (footnote card) ─────────────────────────────────────────── */
.pp-notes {
  list-style: none;
  padding: 20px 24px;
  margin: 0 0 40px;
  border-radius: var(--r-card, 24px);
  background: rgba(255,255,255,0.018);
  border: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  font-size: 0.84rem;
  line-height: 1.7;
  color: var(--text-3);
}
.pp-notes li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: color 160ms;
}
.pp-notes li:last-child { border-bottom: 0; padding-bottom: 0; }
.pp-notes li:first-child { padding-top: 0; }
.pp-notes li:hover { color: var(--text-2); }
.pp-notes a {
  color: var(--neon);
  text-decoration: none;
  font-weight: 600;
  opacity: 0.75;
  transition: opacity 140ms;
}
.pp-notes a:hover { opacity: 1; }


/* ── FAQ ────────────────────────────────────────────────────────────── */
.pp-faq {
  display: grid;
  gap: 8px;
  margin-bottom: 40px;
}
.pp-faq-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 16px;
}
.pp-faq details {
  background: rgba(255,255,255,0.020);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 160ms;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}
.pp-faq details:hover {
  border-color: rgba(255,255,255,0.12);
}
.pp-faq details[open] {
  border-color: rgba(255,255,255,0.10);
}
.pp-faq summary {
  padding: 16px 20px;
  font-size: 0.90rem;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  transition: color 140ms;
}
.pp-faq summary:hover { color: var(--text); }
.pp-faq summary::after {
  content: "+";
  color: var(--text-3);
  font-size: 1.15rem;
  font-weight: 300;
  transition: transform 200ms;
}
.pp-faq details[open] summary::after {
  content: "−";
  transform: rotate(180deg);
}
.pp-faq details[open] summary { color: var(--text); }
.pp-faq details p {
  padding: 0 20px 18px;
  font-size: 0.87rem;
  line-height: 1.72;
  color: var(--text-2);
  margin: 0;
}
.pp-faq details a {
  color: var(--neon);
  opacity: 0.78;
  transition: opacity 140ms;
}
.pp-faq details a:hover { opacity: 1; }

/* ── Responsive ────────────────────────────────────────────────────── */
@media (min-width: 641px) and (max-width: 1060px) {
  .pp-plans {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: none;
  }
  .pp-card {
    grid-row: auto;
    grid-template-rows: auto auto auto auto;
  }
}
@media (max-width: 640px) {
  .pp-shell { width: min(100% - 32px, 960px); }
  .pp-header {
    --hero-focus: 52% 20%;
    min-height: 320px;
  }
  .pp-header .pp-hero-bg { opacity: 0.45; }
  .pp-plans {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 16px;
  }
  .pp-card--pro { order: -1; } /* Pro first on mobile */
  .pp-card--sub { order: 0; }  /* Monthly second */
  .pp-card {
    grid-row: auto;
    grid-template-rows: auto auto auto auto;
    padding: 28px 24px 24px;
  }
  .pp-creator {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 20px 22px;
  }
  .pp-scene-link {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}
