/* ============================================================
   PRICING PAGE — Dark Elevation Design
   Loaded as an external stylesheet to satisfy CSP style-src 'self'.

   INVARIANT: All cards start at opacity:1. Animations are purely
   additive enhancements, never used to reveal content.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

/* ─── Visually hidden (accessible headings) ─── */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ─── Top gradient stripe (fixed, above nav) ─── */
.pr-topstripe {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--l-stripe);
  z-index: 1001;
}

/* ─── Hero ─── */
.pr-hero {
  background: var(--l-navy);
  padding: 136px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.pr-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 55% at 50% -5%, rgba(22,101,52,0.2) 0%, transparent 65%);
  pointer-events: none;
}

.pr-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--l-green-light);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.pr-hero__eyebrow-rule {
  display: block;
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.4;
}

.pr-hero__h1 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 18px;
  line-height: 1.15;
  position: relative;
  z-index: 1;
}

.pr-hero__sub {
  max-width: 580px;
  margin: 0 auto 32px;
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.75;
  position: relative;
  z-index: 1;
}

.pr-hero__callout {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(22,101,52,0.18);
  border: 1px solid rgba(134,239,172,0.28);
  border-radius: 40px;
  padding: 10px 20px;
  font-size: 0.85rem;
  color: var(--l-green-light);
  backdrop-filter: blur(6px);
  position: relative;
  z-index: 1;
}

.pr-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 6px #4ade80;
  flex-shrink: 0;
  animation: pr-pulse 2s ease-in-out infinite;
}

@keyframes pr-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.75); }
}

/* ─── Cards wrapper ─── */
.pr-tiers {
  padding: 72px 24px 64px;
}

.pr-tiers__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1080px;
  margin: 0 auto;
  align-items: start;
}

/* ─── Base card — ALWAYS opacity:1 ─── */
.pr-card {
  opacity: 1;
  background: #13192a;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 18px;
  padding: 36px 30px;
  position: relative;
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  box-shadow: 0 4px 24px rgba(0,0,0,0.35);
}

.pr-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.45);
}

.pr-card__accent {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: rgba(255,255,255,0.05);
  border-radius: 18px 18px 0 0;
}

/* ─── Live card (Public Beta) ─── */
.pr-card--live {
  background: linear-gradient(155deg, #0d2240 0%, #111827 100%);
  border-color: rgba(22,101,52,0.3);
  box-shadow: 0 0 0 1px rgba(22,101,52,0.12), 0 6px 30px rgba(0,0,0,0.4);
}

.pr-card--live .pr-card__accent {
  background: var(--l-stripe);
}

.pr-card--live:hover {
  box-shadow: 0 0 0 1px rgba(22,101,52,0.2), 0 16px 48px rgba(0,0,0,0.5);
}

/* ─── Featured card (Solo) — white on dark ─── */
.pr-card--featured {
  background: #ffffff;
  border-color: rgba(202,138,4,0.35);
  color: #1e293b;
  transform: scale(1.03) translateY(-4px);
  box-shadow:
    0 0 0 1px rgba(202,138,4,0.2),
    0 24px 64px rgba(0,0,0,0.55),
    0 0 48px rgba(202,138,4,0.07);
  z-index: 2;
}

.pr-card--featured:hover {
  transform: scale(1.03) translateY(-9px);
  box-shadow:
    0 0 0 1px rgba(202,138,4,0.3),
    0 32px 72px rgba(0,0,0,0.6),
    0 0 56px rgba(202,138,4,0.1);
}

.pr-card--featured .pr-card__accent {
  height: 4px;
  background: linear-gradient(90deg, #b45309 0%, #eab308 50%, #b45309 100%);
}

.pr-card--featured .pr-card__name    { color: #0f172a; }
.pr-card--featured .pr-card__tagline { color: #475569; }
.pr-card--featured .pr-card__divider { border-color: rgba(0,0,0,0.08); }
.pr-card--featured .pr-feature-item  { color: #334155; }
.pr-card--featured .pr-feature-item::before { color: var(--l-green); }

/* ─── Badges ─── */
.pr-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.pr-badge--live {
  background: rgba(22,101,52,0.22);
  color: #4ade80;
  border: 1px solid rgba(74,222,128,0.28);
}

.pr-badge--live::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 5px #4ade80;
  animation: pr-pulse 2s ease-in-out infinite;
}

.pr-badge--soon {
  background: rgba(202,138,4,0.12);
  color: #b45309;
  border: 1px solid rgba(202,138,4,0.25);
}

.pr-card--featured .pr-badge--soon {
  background: rgba(202,138,4,0.1);
  color: #92400e;
  border-color: rgba(202,138,4,0.3);
}

/* ─── Card text ─── */
.pr-card__name {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #f1f5f9;
  margin: 0 0 6px;
  line-height: 1.2;
}

.pr-card__tagline {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.45);
  margin: 0 0 28px;
  line-height: 1.55;
}

/* ─── Price block ─── */
.pr-card__price {
  margin-bottom: 28px;
  min-height: 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* "Free" — enormous Source Serif 4 display */
.pr-price-free {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 4rem;
  font-weight: 700;
  color: #4ade80;
  line-height: 1;
  display: block;
  margin-bottom: 5px;
}

.pr-price-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.05em;
}

/* "Pricing to be announced" — gold amber badge */
.pr-price-tba {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(202,138,4,0.14) 0%, rgba(234,179,8,0.09) 100%);
  border: 1px solid rgba(202,138,4,0.38);
  border-radius: 8px;
  padding: 11px 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.775rem;
  font-weight: 600;
  color: #f59e0b;
  letter-spacing: 0.02em;
}

.pr-price-tba::before {
  content: '◈';
  font-size: 0.65rem;
  opacity: 0.7;
}

.pr-card--featured .pr-price-tba {
  background: linear-gradient(135deg, rgba(202,138,4,0.1) 0%, rgba(234,179,8,0.06) 100%);
  border-color: rgba(202,138,4,0.35);
  color: #92400e;
}

/* ─── Divider ─── */
.pr-card__divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.07);
  margin: 0 0 24px;
}

/* ─── Feature list ─── */
.pr-features {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pr-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.5;
}

.pr-feature-item::before {
  content: '✓';
  color: var(--l-green-light);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ─── CTAs ─── */
.pr-cta {
  display: block;
  width: 100%;
  padding: 13px 20px;
  border-radius: 9px;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.22s ease;
  letter-spacing: 0.01em;
}

.pr-cta--green {
  background: var(--l-green);
  color: #fff;
  border: 2px solid transparent;
}

.pr-cta--green:hover {
  background: #15803d;
  transform: translateY(-1px);
}

.pr-cta--dark {
  background: #0f172a;
  color: #fff;
  border: 2px solid rgba(15,23,42,0.1);
}

.pr-cta--dark:hover {
  background: var(--l-navy);
  transform: translateY(-1px);
}

.pr-cta--ghost {
  background: transparent;
  color: rgba(255,255,255,0.65);
  border: 1.5px solid rgba(255,255,255,0.12);
}

.pr-cta--ghost:hover {
  border-color: rgba(202,138,4,0.45);
  color: #f59e0b;
  transform: translateY(-1px);
}

/* ─── Billing note ─── */
.pr-billing-note {
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.01em;
  margin: 0 auto 2.5rem;
  padding: 0 1rem;
}

/* ─── Enterprise block ─── */
.pr-enterprise {
  background: var(--l-navy-deep);
  position: relative;
  padding: 64px 24px;
  overflow: hidden;
}

.pr-enterprise::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(202,138,4,0.5) 25%,
    rgba(202,138,4,0.5) 75%,
    transparent 100%
  );
}

.pr-enterprise::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 90% 50%, rgba(202,138,4,0.04) 0%, transparent 60%);
  pointer-events: none;
}

.pr-enterprise__inner {
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.pr-enterprise__label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--l-gold);
  margin-bottom: 12px;
}

.pr-enterprise__name {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.85rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 14px;
}

.pr-enterprise__desc {
  color: rgba(255,255,255,0.55);
  font-size: 0.95rem;
  line-height: 1.75;
  margin: 0;
  max-width: 560px;
}

.pr-enterprise__topics {
  color: rgba(255,255,255,0.55);
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 12px 0 0;
  max-width: 560px;
}

.pr-enterprise__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: transparent;
  color: #f59e0b;
  border: 1.5px solid rgba(202,138,4,0.4);
  border-radius: 9px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: 'Inter', system-ui, sans-serif;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.25s ease;
}

.pr-enterprise__cta:hover {
  background: rgba(202,138,4,0.1);
  border-color: rgba(202,138,4,0.7);
  transform: translateY(-2px);
}

/* ─── Data sovereignty note ─── */
.pr-data-note {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  max-width: 680px;
  margin: 0 auto;
  padding: 20px 24px;
  font-size: 0.825rem;
  color: rgba(255,255,255,0.38);
  line-height: 1.6;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.pr-data-note__icon {
  flex-shrink: 0;
  margin-top: 2px;
  opacity: 0.45;
}

/* ─── Back link ─── */
.pr-back {
  display: block;
  text-align: center;
  padding: 40px 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.28);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s ease;
}

.pr-back:hover {
  color: rgba(255,255,255,0.65);
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .pr-tiers__grid {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin: 0 auto;
  }

  .pr-card--featured {
    transform: none;
    order: -1;
  }

  .pr-card--featured:hover {
    transform: translateY(-5px);
  }

  .pr-enterprise__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
  }

  .pr-enterprise__desc {
    max-width: 100%;
  }

  .pr-enterprise__cta {
    justify-content: center;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .pr-hero {
    padding: 116px 20px 56px;
  }

  .pr-hero__h1 {
    font-size: 1.9rem;
  }

  .pr-price-free {
    font-size: 3.25rem;
  }

  .pr-tiers {
    padding: 48px 16px 48px;
  }
}

/* ─── Reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
  .pr-pulse,
  .pr-badge--live::before {
    animation: none;
  }

  .pr-card,
  .pr-cta,
  .pr-enterprise__cta {
    transition: none;
  }
}

/* Modal styles live in contact-modal.css (shared) */
