@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #f3f8ff;
  --surface: #ffffff;
  --surface-2: #f3f8ff;
  --text: #0b1f4d;
  --muted: #5a6a8a;
  --border: #e4eaf4;
  --primary: #0b1f4d;
  --accent: #0b1f4d;
  --accent-soft: #e8f0ff;
  --gold: #d4af37;
  --shadow: 0 4px 24px rgba(11, 31, 77, 0.07);
  --radius: 20px;
  --max-width: 1180px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f3f8ff;
  color: var(--text);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: min(92%, var(--max-width));
  margin: 0 auto;
}

/* NAVBAR */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #0b1f4d;
  backdrop-filter: none;
  border-bottom: none;
  box-shadow: 0 4px 24px rgba(11, 31, 77, 0.22);
}

.nav-container {
  width: min(92%, var(--max-width));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.logo {
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  overflow: visible;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 0.94rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  transition: 0.2s ease;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
  color: #d4af37;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* BUTTONS */
.btn,
.card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 12px;
  font-weight: 700;
  transition: 0.25s ease;
}

.btn-outline {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--primary);
}

.btn-outline:hover {
  background: #f9fafb;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
  transform: translateY(-1px);
}

.btn-gold {
  background: var(--gold);
  color: #fff;
}

.btn-gold:hover {
  transform: translateY(-1px);
}

.btn-light {
  background: var(--surface-2);
  color: var(--primary);
}

.btn-dark {
  background: var(--primary);
  color: #fff;
}

/* HERO */
.pricing-hero {
  position: relative;
  overflow: hidden;
  padding: 84px 0 36px;
  text-align: center;
}

.pricing-hero::before {
  content: "";
  position: absolute;
  top: -220px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(
    circle,
    rgba(37, 99, 235, 0.18) 0%,
    rgba(37, 99, 235, 0.08) 35%,
    rgba(37, 99, 235, 0) 72%
  );
  pointer-events: none;
}

.pricing-hero .container {
  position: relative;
  z-index: 1;
}

.eyebrow {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.pricing-hero h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.12;
  max-width: 820px;
  margin: 0 auto 18px;
}

.hero-text {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.05rem;
  color: var(--muted);
}

/* PRICING GRID */
.pricing-section {
  padding: 28px 0 48px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  align-items: stretch;
}

.pricing-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.pricing-card.featured {
  border: 2px solid var(--accent);
  transform: translateY(-8px);
}

.badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.plan-top {
  margin-bottom: 22px;
}

.plan-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}

.plan-top h2 {
  font-size: 2.4rem;
  line-height: 1;
  margin-bottom: 12px;
}

.plan-top h2 span {
  font-size: 1rem;
  color: var(--muted);
  font-weight: 500;
}

.plan-desc {
  color: var(--muted);
  min-height: 54px;
}

.feature-list {
  list-style: none;
  margin: 12px 0 26px;
  display: grid;
  gap: 12px;
  flex-grow: 1;
}

.feature-list li {
  position: relative;
  padding-left: 24px;
  color: #1f2937;
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 700;
}

.card-btn {
  width: 100%;
  margin-top: auto;
  border-radius: 14px;
}

/* LIFETIME */
.lifetime-section {
  padding: 12px 0 52px;
}

.lifetime-box {
  background: linear-gradient(135deg, #111827, #1f2937);
  color: #fff;
  border-radius: 24px;
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: var(--shadow);
}

.mini-label {
  color: #f6d77c;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.lifetime-box h3 {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.lifetime-box p {
  color: #d1d5db;
  max-width: 760px;
}

/* TABLE */
.compare-section {
  padding: 30px 0 54px;
}

.section-header {
  text-align: center;
  margin-bottom: 24px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border-radius: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.compare-table thead th {
  background: #f9fafb;
  font-size: 0.96rem;
  color: var(--primary);
  text-align: left;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}

.compare-table tbody td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  color: #374151;
}

.compare-table tbody tr:last-child td {
  border-bottom: none;
}

/* FAQ */
.faq-section {
  padding: 24px 0 56px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.faq-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.faq-card h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.faq-card p {
  color: var(--muted);
}

/* CTA */
.final-cta {
  padding: 10px 0 80px;
}

.cta-box {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 42px 24px;
  box-shadow: var(--shadow);
}

.cta-box h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  max-width: 900px;
  margin: 0 auto 12px;
}

.cta-box p {
  color: var(--muted);
  margin-bottom: 22px;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card.featured {
    transform: none;
  }

  .lifetime-box {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 820px) {
  .nav-container {
    flex-wrap: wrap;
    justify-content: center;
    padding: 14px 0;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
  }

  .faq-grid {
    grid-template-columns: 1fr;
  }

  .pricing-hero {
    padding-top: 60px;
  }
}

@media (max-width: 560px) {
  .nav-actions {
    width: 100%;
    justify-content: center;
  }

  .pricing-card {
    padding: 24px 20px;
  }

  .lifetime-box {
    padding: 24px 20px;
  }

  .cta-box {
    padding: 34px 18px;
  }
}

.pricing-notes {
    margin-top: 20px;
    width: 100%;
    text-align: center;
}

.pricing-note {
    display: block;
    max-width: 600px;
    margin: 0 auto;
    font-size: 14px;
    line-height: 1.5;
    color: #6b7280;
}

/* Gold badge for Best Value plan */
.badge-gold {
  background: var(--gold);
  font-size: 0.78rem;
}

/* Upgrade prompt section */
.upgrade-prompt-section {
  padding: 0 0 40px;
}

.upgrade-prompt-box {
  background: linear-gradient(135deg, #1e3a8a, #1d4ed8);
  color: #fff;
  border-radius: 24px;
  padding: 36px 32px;
  text-align: center;
  box-shadow: var(--shadow);
}

.upgrade-prompt-box h3 {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.upgrade-prompt-box p {
  color: #bfdbfe;
  max-width: 600px;
  margin: 0 auto 22px;
}

.upgrade-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Upgrade modal */
.upgrade-modal-inner {
  background: #fff;
  border-radius: 20px;
  padding: 42px 36px;
  max-width: 500px;
  width: 92%;
  text-align: center;
  position: relative;
  box-shadow: 0 24px 60px rgba(0,0,0,0.25);
}

.upgrade-modal-inner h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--primary);
}

.upgrade-modal-inner p {
  color: var(--muted);
  margin-bottom: 24px;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--muted);
  line-height: 1;
}

.modal-note {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 14px;
  margin-bottom: 0;
}