/* Forge Regex Pro pricing / checkout */
.forge-pricing-page .page-main {
  padding-top: calc(var(--navbar-offset) + 1.25rem);
}

.fp {
  width: min(100%, 440px);
  margin: 0 auto;
  padding: 0 1.15rem 3.5rem;
}

.fp-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--ink-muted, #6b7a90);
  text-decoration: none;
  font-size: 0.88rem;
  margin-bottom: 1.35rem;
  transition: color 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.fp-back:hover { color: var(--ink, #0b1220); }

.fp-shell {
  animation: fp-enter 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes fp-enter {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.fp-brand {
  margin-bottom: 1.15rem;
}

.fp-eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent, #0ea5e9);
}

.fp-title {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(2.4rem, 8vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--ink, #0b1220);
}

.fp-lead {
  margin: 0.65rem 0 0;
  color: var(--ink-muted, #6b7a90);
  font-size: 0.98rem;
  line-height: 1.5;
  max-width: 34ch;
}

.fp-panel {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(11, 18, 32, 0.08);
  border-radius: 20px;
  padding: 1.35rem 1.3rem 1.4rem;
  box-shadow:
    0 1px 2px rgba(11, 18, 32, 0.04),
    0 18px 40px -18px rgba(11, 18, 32, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.fp-panel.is-owned {
  border-color: rgba(14, 165, 233, 0.28);
}

.fp-price-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.2rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid rgba(11, 18, 32, 0.06);
}

.fp-price {
  display: flex;
  align-items: baseline;
  gap: 0.12rem;
  color: var(--ink, #0b1220);
}

.fp-currency {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.fp-amount {
  font-size: clamp(2.6rem, 9vw, 3.15rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.95;
  font-variant-numeric: tabular-nums;
}

.fp-period {
  margin-left: 0.2rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-muted, #6b7a90);
}

.fp-pill {
  flex-shrink: 0;
  margin-bottom: 0.25rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-muted, #6b7a90);
  background: rgba(11, 18, 32, 0.05);
  max-width: 9.5rem;
  text-align: center;
  line-height: 1.25;
}

.fp-pill.is-on {
  color: #55596a;
  background: rgba(14, 165, 233, 0.12);
}

.fp-perks {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.fp-perks li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
}

.fp-check {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.15rem;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, #0c0d10, #0ea5e9);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.12);
  position: relative;
}
.fp-check::after {
  content: "";
  position: absolute;
  left: 0.34rem;
  top: 0.22rem;
  width: 0.28rem;
  height: 0.48rem;
  border: solid #fff;
  border-width: 0 1.8px 1.8px 0;
  transform: rotate(45deg);
}

.fp-perks strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 650;
  color: var(--ink, #0b1220);
  letter-spacing: -0.01em;
}
.fp-perks span {
  display: block;
  margin-top: 0.12rem;
  font-size: 0.8rem;
  color: var(--ink-muted, #6b7a90);
  line-height: 1.4;
}

.fp-cta {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.1rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #0c0d10 0%, #0ea5e9 55%, #3b3f4a 100%);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.015em;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.28);
  transition:
    transform 0.15s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.2s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.2s;
}

.fp-cta:hover:not(:disabled) {
  filter: brightness(1.04);
  box-shadow: 0 10px 28px rgba(14, 165, 233, 0.34);
}
.fp-cta:active:not(:disabled) { transform: scale(0.985); }

.fp-owned,
.fp-gate {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.fp-owned-msg,
.fp-gate-msg {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-soft, #3d4a5c);
}

@media (prefers-reduced-motion: reduce) {
  .fp-shell {
    animation: none !important;
    transition: none !important;
  }
}
