/* Pricing — premium emotional regulation platform (scoped .page-pricing) */

.page-pricing {
  background: #f2f5fa;
  color: var(--ink);
}

.page-pricing main > section {
  position: relative;
}

/* Reset marketing “night stack” typography: .h2 / .lead / .caption are white-tinted globally */
.page-pricing .h2 {
  color: var(--ink);
  font-size: clamp(1.35rem, 3.2vw, 2rem);
  line-height: 1.2;
}
.page-pricing .lead {
  color: rgba(12, 16, 40, 0.68);
  max-width: 42ch;
}
.page-pricing .caption {
  color: rgba(12, 16, 40, 0.45);
  margin-top: 0;
}

.page-pricing .btn--ghost {
  background: rgba(12, 16, 40, 0.04);
  color: var(--ink);
  border: 1px solid rgba(12, 16, 40, 0.14);
}

.pr-hero {
  padding: clamp(88px, 14vw, 116px) 20px 52px;
  overflow: hidden;
  border-bottom: 1px solid rgba(12, 16, 40, 0.06);
}
.pr-hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(155deg, #e6ebf8 0%, #f0f3fb 48%, #f6f8fc 100%);
  pointer-events: none;
}
.pr-hero__glow {
  position: absolute;
  width: min(520px, 95vw);
  height: min(340px, 55vh);
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(99, 102, 241, 0.12) 0%, transparent 68%);
  pointer-events: none;
}
.pr-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.pr-hero__eyebrow {
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(12, 16, 40, 0.45);
}
.pr-hero__h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0 0 14px;
  color: var(--ink);
}
.pr-hero__sub {
  margin: 0 auto 24px;
  max-width: 42ch;
  font-size: clamp(1rem, 2vw, 1.14rem);
  font-weight: 600;
  color: rgba(12, 16, 40, 0.68);
  line-height: 1.55;
}
.pr-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.pr-section {
  padding: 48px 20px 52px;
}
.pr-section--alt {
  background: #fff;
}
.pr-section--muted {
  background: #f8fafc;
}
.pr-section__inner {
  max-width: 960px;
  margin: 0 auto;
}
.pr-section__head {
  max-width: 52ch;
  margin: 0 auto 32px;
  text-align: center;
}
.pr-section__head .h2 {
  margin-top: 6px;
}
.pr-section__head .lead {
  margin-left: auto;
  margin-right: auto;
}

/* Pricing cards */
.pr-plans {
  display: grid;
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}
@media (min-width: 720px) {
  .pr-plans {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    align-items: stretch;
  }
}

.pr-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 24px 26px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(12, 16, 40, 0.08);
  box-shadow: 0 16px 48px rgba(12, 16, 40, 0.06);
  transition: transform 0.25s var(--ease-out-soft), box-shadow 0.25s ease;
}
.pr-plan:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 56px rgba(12, 16, 40, 0.1);
}
.pr-plan--featured {
  border-color: rgba(74, 86, 196, 0.28);
  background: linear-gradient(165deg, #fff 0%, #f6f8ff 100%);
  box-shadow: 0 20px 56px rgba(74, 86, 196, 0.12);
}
.pr-plan__badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, #4a56c4 0%, #6e8bff 100%);
}
.pr-plan__label {
  margin: 0 0 8px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(12, 16, 40, 0.5);
}
.pr-plan__price {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ink);
}
.pr-plan__price small {
  font-size: 0.45em;
  font-weight: 700;
  color: rgba(12, 16, 40, 0.55);
}
.pr-plan__period {
  margin: 0 0 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(12, 16, 40, 0.55);
  line-height: 1.45;
  max-width: 38ch;
}
.pr-plan__period--emphasis {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  max-width: none;
}
.pr-plan__includes-intro {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(12, 16, 40, 0.45);
}
.pr-plan__includes {
  margin: 0 0 14px;
  padding-left: 1.15rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: rgba(12, 16, 40, 0.68);
  line-height: 1.45;
}
.pr-plan__includes li {
  margin-bottom: 6px;
}
.pr-plan__includes li:last-child {
  margin-bottom: 0;
}
.pr-plan__save {
  display: inline-block;
  margin: 0 0 18px;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  color: #2d3a8c;
  background: rgba(110, 139, 255, 0.18);
}
.pr-plan__cta {
  margin-top: auto;
  padding-top: 8px;
}
.pr-plan__cta .btn {
  width: 100%;
  justify-content: center;
  text-align: center;
}

.pr-funding-note {
  margin: 28px auto 0;
  max-width: 52ch;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(12, 16, 40, 0.62);
  line-height: 1.5;
}
.pr-funding-note a {
  color: var(--dawn-deep);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Included list */
.pr-included {
  display: grid;
  gap: 12px;
}
@media (min-width: 640px) {
  .pr-included {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 20px;
  }
}
.pr-included li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 14px 16px;
  list-style: none;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(12, 16, 40, 0.06);
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(12, 16, 40, 0.78);
  line-height: 1.4;
}
.pr-included li::before {
  content: "";
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6e8bff, #a78bfa);
}

/* ESA panel */
.pr-esa {
  padding: 32px 28px;
  border-radius: 20px;
  background: linear-gradient(145deg, #eef1fb 0%, #f8f9fe 55%, #fff 100%);
  border: 1px solid rgba(74, 86, 196, 0.14);
  text-align: center;
}
.pr-esa__h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.pr-esa__lead {
  margin: 0 auto 20px;
  max-width: 48ch;
  font-size: 1rem;
  font-weight: 600;
  color: rgba(12, 16, 40, 0.68);
  line-height: 1.55;
}
.pr-esa__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 22px;
}
.pr-esa__badge {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(12, 16, 40, 0.1);
  box-shadow: 0 4px 14px rgba(12, 16, 40, 0.04);
}
.pr-esa__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* Compare / position */
.pr-compare {
  display: grid;
  gap: 16px;
}
@media (min-width: 720px) {
  .pr-compare {
    grid-template-columns: repeat(3, 1fr);
  }
}
.pr-compare-card {
  padding: 22px 20px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(12, 16, 40, 0.06);
}
.pr-compare-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink);
}
.pr-compare-card p {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(12, 16, 40, 0.62);
  line-height: 1.45;
}

/* FAQ */
.pr-faq {
  max-width: 640px;
  margin: 0 auto;
}
.pr-faq details {
  margin-bottom: 10px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(12, 16, 40, 0.08);
  overflow: hidden;
}
.pr-faq summary {
  padding: 16px 18px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  color: var(--ink);
}
.pr-faq summary::-webkit-details-marker {
  display: none;
}
.pr-faq__a {
  padding: 0 18px 16px;
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(12, 16, 40, 0.68);
  line-height: 1.55;
}

/* CTA */
.pr-cta {
  position: relative;
  padding: 56px 20px 64px;
  overflow: hidden;
  text-align: center;
  background: linear-gradient(165deg, #1a1f4d 0%, #2e3a8c 55%, #4a56c4 100%);
  color: #fff;
}
.pr-cta__glow {
  position: absolute;
  inset: -20% -30%;
  background: radial-gradient(ellipse 50% 60% at 50% 40%, rgba(255, 213, 128, 0.15), transparent 70%);
  pointer-events: none;
}
.pr-cta__inner {
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin: 0 auto;
}
.pr-cta h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.pr-cta p {
  margin: 0 0 22px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
}
.pr-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.pr-cta .btn--ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}
