/* ============================================================
   Numina Pricing Cards — Shared Component Styles
   Loaded by both index.html and pricing.html
   ============================================================ */

/* ── Grid ─────────────────────────────────────────────────── */
.pc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  max-width: 1020px;
  margin: 0 auto;
  padding: 48px 0 0;
  align-items: start;
}

/* ── Gradient wrapper (provides the 1.5 px gradient border) ── */
.pc-gw {
  border-radius: 26px;
  padding: 1.5px;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}
.pc-gw:hover { transform: translateY(-6px); }

.pc-gw-free {
  background: rgba(255, 255, 255, 0.08);
}
.pc-gw-monthly {
  background: linear-gradient(140deg,
    rgba(31,  81, 255, 0.75)  0%,
    rgba(107, 143, 255, 0.28) 55%,
    rgba(31,  81, 255, 0.08)  100%);
  box-shadow:
    0 0  0  1px rgba(31, 81, 255, 0.04),
    0 0  52px rgba(31, 81, 255, 0.15),
    0 20px 48px rgba(0, 0, 0, 0.52);
}
.pc-gw-yearly {
  background: linear-gradient(140deg, #1F51FF 0%, #9B5CF6 50%, #7C3AED 100%);
  box-shadow:
    0 0  0   1px rgba(31,  81, 255, 0.08),
    0 0  80px rgba(31,  81, 255, 0.24),
    0 0  130px rgba(124, 58, 237, 0.18),
    0 28px 60px rgba(0, 0, 0, 0.58);
}

/* ── Inner card ────────────────────────────────────────────── */
.pc-card {
  border-radius: 24px;
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Decorative internal radial orb */
.pc-card::before {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  pointer-events: none;
}

.pc-card-free {
  background: rgba(10, 11, 18, 0.97);
}
.pc-card-free::before { display: none; }

.pc-card-monthly {
  background: linear-gradient(155deg, rgba(14, 20, 44, 0.99) 0%, rgba(10, 12, 24, 1) 100%);
}
.pc-card-monthly::before {
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(31, 81, 255, 0.2) 0%, transparent 70%);
  top: -72px; right: -48px;
}

.pc-card-yearly {
  background: linear-gradient(155deg, rgba(16, 22, 52, 1) 0%, rgba(20, 10, 44, 1) 60%, rgba(12, 8, 30, 1) 100%);
}
.pc-card-yearly::before {
  width: 380px; height: 380px;
  background: radial-gradient(circle,
    rgba(31, 81, 255, 0.16)  0%,
    rgba(124, 58, 237, 0.11) 50%,
    transparent 70%);
  top: -100px; right: -80px;
}

/* ── Badge ─────────────────────────────────────────────────── */
.pc-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, rgba(31, 81, 255, 0.22) 0%, rgba(124, 58, 237, 0.18) 100%);
  border: 1px solid rgba(107, 143, 255, 0.3);
  color: #A5BCFF;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 13px;
  border-radius: 100px;
  margin-bottom: 20px;
  width: fit-content;
  position: relative;
  z-index: 1;
}
.pc-badge-pulse {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #6B8FFF;
  flex-shrink: 0;
  animation: pc-badge-pulse 2s ease-in-out infinite;
}
@keyframes pc-badge-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.72); }
}

/* ── Plan name ─────────────────────────────────────────────── */
.pc-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: #F0F2FF;
  line-height: 1.2;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}
.pc-name-detail {
  font-weight: 500;
  font-size: 1.05rem;
  color: rgba(107, 143, 255, 0.72);
}

/* ── Subtitle ───────────────────────────────────────────────── */
.pc-subtitle {
  font-size: 0.86rem;
  color: rgba(240, 242, 255, 0.48);
  line-height: 1.55;
  margin-bottom: 26px;
  min-height: 2.6rem;
  position: relative;
  z-index: 1;
}

/* ── Price block ────────────────────────────────────────────── */
.pc-price-block {
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}
.pc-price-row {
  display: flex;
  align-items: baseline;
  gap: 3px;
  margin-bottom: 4px;
}
.pc-price-amount {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #F0F2FF;
  transition: opacity 0.3s ease;
}
.pc-price-amount.pc-price-loading { opacity: 0.35; }

.pc-card-monthly .pc-price-amount,
.pc-card-yearly  .pc-price-amount {
  background: linear-gradient(135deg, #B4C8FF 0%, #6B8FFF 40%, #9B7FFF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.pc-price-currency {
  font-size: 0.9rem;
  color: rgba(240, 242, 255, 0.35);
  align-self: flex-end;
  padding-bottom: 6px;
}
.pc-price-period {
  font-size: 0.84rem;
  color: rgba(240, 242, 255, 0.32);
  align-self: flex-end;
  padding-bottom: 6px;
}
.pc-billing-note {
  font-size: 0.76rem;
  color: rgba(240, 242, 255, 0.32);
  line-height: 1.4;
  min-height: 1.1rem;
}

/* ── Divider ────────────────────────────────────────────────── */
.pc-divider {
  height: 1px;
  margin-bottom: 22px;
  background: rgba(255, 255, 255, 0.06);
  position: relative;
  z-index: 1;
}
.pc-card-monthly .pc-divider { background: rgba(31, 81, 255, 0.22); }
.pc-card-yearly  .pc-divider {
  background: linear-gradient(90deg, rgba(31, 81, 255, 0.3), rgba(124, 58, 237, 0.2));
}

/* ── Benefits list ──────────────────────────────────────────── */
.pc-benefits {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
  flex: 1;
  position: relative;
  z-index: 1;
}
.pc-benefits li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: rgba(240, 242, 255, 0.62);
  line-height: 1.4;
}
.pc-card-free .pc-benefits li { color: rgba(240, 242, 255, 0.48); }
.pc-check-icon {
  width: 16px; height: 16px;
  flex-shrink: 0;
  color: rgba(107, 143, 255, 0.55);
}
.pc-card-monthly .pc-check-icon { color: #6B8FFF; }
.pc-card-yearly  .pc-check-icon { color: #9B7FFF; }

/* ── CTA buttons ────────────────────────────────────────────── */
.pc-cta {
  display: block;
  width: 100%;
  padding: 14px 20px;
  border-radius: 12px;
  font-family: 'Archivo', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: all 0.22s ease;
  letter-spacing: 0.01em;
  text-decoration: none;
  position: relative;
  z-index: 1;
}

/* Outline — Free */
.pc-cta-outline {
  background: transparent;
  color: rgba(240, 242, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.pc-cta-outline:hover {
  color: #F0F2FF;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.04);
}

/* Blue — Monthly */
.pc-cta-blue {
  background: linear-gradient(135deg, #1F51FF 0%, #3D6AFF 100%);
  color: #fff;
  box-shadow: 0 0 22px rgba(31, 81, 255, 0.32);
}
.pc-cta-blue:hover:not(:disabled) {
  box-shadow: 0 0 42px rgba(31, 81, 255, 0.58), 0 4px 16px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}
.pc-cta-blue:disabled { opacity: 0.52; cursor: not-allowed; transform: none; }

/* Gradient — Yearly */
.pc-cta-gradient {
  background: linear-gradient(135deg, #1F51FF 0%, #7C3AED 100%);
  color: #fff;
  box-shadow: 0 0 28px rgba(31, 81, 255, 0.38), 0 0 50px rgba(124, 58, 237, 0.22);
}
.pc-cta-gradient:hover:not(:disabled) {
  box-shadow:
    0 0 52px rgba(31, 81, 255, 0.60),
    0 0 80px rgba(124, 58, 237, 0.40),
    0 4px 16px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}
.pc-cta-gradient:disabled { opacity: 0.52; cursor: not-allowed; transform: none; }

/* ── Light theme overrides ──────────────────────────────────── */
html[data-theme="light"] .pc-card-free {
  background: #FFFFFF;
}
html[data-theme="light"] .pc-gw-free {
  background: rgba(0, 0, 0, 0.09);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}
html[data-theme="light"] .pc-card-monthly {
  background: linear-gradient(155deg, #EFF4FF 0%, #FFFFFF 100%);
}
html[data-theme="light"] .pc-card-monthly::before { opacity: 0.35; }
html[data-theme="light"] .pc-card-yearly {
  background: linear-gradient(155deg, #EBF0FF 0%, #F4F0FF 100%);
}
html[data-theme="light"] .pc-card-yearly::before { opacity: 0.3; }
html[data-theme="light"] .pc-name         { color: #08091A; }
html[data-theme="light"] .pc-name-detail  { color: rgba(31, 81, 255, 0.65); }
html[data-theme="light"] .pc-subtitle     { color: rgba(8, 9, 26, 0.50); }
html[data-theme="light"] .pc-price-amount { color: #08091A; }
html[data-theme="light"] .pc-card-monthly .pc-price-amount,
html[data-theme="light"] .pc-card-yearly  .pc-price-amount {
  background: linear-gradient(135deg, #1F51FF 0%, #7C3AED 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
html[data-theme="light"] .pc-price-currency,
html[data-theme="light"] .pc-price-period,
html[data-theme="light"] .pc-billing-note { color: rgba(8, 9, 26, 0.38); }
html[data-theme="light"] .pc-divider { background: rgba(0, 0, 0, 0.07); }
html[data-theme="light"] .pc-card-monthly .pc-divider { background: rgba(31, 81, 255, 0.10); }
html[data-theme="light"] .pc-card-yearly  .pc-divider {
  background: linear-gradient(90deg, rgba(31, 81, 255, 0.14), rgba(124, 58, 237, 0.10));
}
html[data-theme="light"] .pc-benefits li          { color: rgba(8, 9, 26, 0.62); }
html[data-theme="light"] .pc-card-free .pc-benefits li { color: rgba(8, 9, 26, 0.48); }
html[data-theme="light"] .pc-check-icon             { color: #1F51FF; }
html[data-theme="light"] .pc-card-yearly .pc-check-icon { color: #7C3AED; }
html[data-theme="light"] .pc-cta-outline {
  color: rgba(8, 9, 26, 0.55);
  border-color: rgba(0, 0, 0, 0.12);
}
html[data-theme="light"] .pc-cta-outline:hover {
  color: #08091A;
  border-color: rgba(0, 0, 0, 0.22);
  background: rgba(0, 0, 0, 0.03);
}
html[data-theme="light"] .pc-badge {
  background: linear-gradient(135deg, rgba(31, 81, 255, 0.10) 0%, rgba(124, 58, 237, 0.08) 100%);
  border-color: rgba(31, 81, 255, 0.22);
  color: #1F51FF;
}
html[data-theme="light"] .pc-badge-pulse { background: #1F51FF; }

/* ── Mobile ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .pc-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    gap: 16px;
  }
}
@media (max-width: 480px) {
  .pc-card { padding: 26px 22px; }
  .pc-price-amount { font-size: 2.6rem; }
}
