@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Syne:wght@700;800&family=JetBrains+Mono:wght@400;500;600&display=swap");
@import url("root-variables.css");

/* ============================================================
   PRICING SECTION
   ============================================================ */
.pricing-section {
  position: relative;
  padding: 100px 0 80px;
  background-color: #080c14;
  background-image:
    radial-gradient(ellipse 60% 50% at 50% -10%, rgba(58, 124, 255, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 90% 80%,  rgba(163, 91, 255, 0.08) 0%, transparent 55%);
  text-align: center;
  overflow: hidden;
}

/* Grid overlay */
.pricing-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(58, 124, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(58, 124, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

/* ============================================================
   SECTION TITLE
   ============================================================ */
.pricing-title {
  position: relative;
  z-index: 1;
  font-family: "Syne", sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

/* Subtitle */
.pricing-section > p.pricing-subtitle,
.pricing-section .pricing-subtitle {
  position: relative;
  z-index: 1;
  font-size: 0.9rem;
  color: #475569;
  margin-bottom: 64px;
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.5px;
}

/* Fallback spacing if no subtitle */
.pricing-title {
  margin-bottom: 64px;
}

/* ============================================================
   PRICING CARD
   ============================================================ */
.pricing-card {
  position: relative;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 40px 32px 36px;
  height: 100%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset;
  backdrop-filter: blur(4px);
  overflow: visible;
  z-index: 1;
}

.pricing-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.04);
}

/* Card top accent line */
.pricing-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 1px;
  border-radius: 1px;
  opacity: 0;
  transition: opacity 0.3s ease, width 0.3s ease;
}

.pricing-card:hover::before {
  opacity: 1;
  width: 70%;
}

/* ============================================================
   DISCOUNT BADGE
   ============================================================ */
.discount-badge {
  position: absolute;
  top: -14px;
  right: 20px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  font-family: "JetBrains Mono", monospace;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.5px;
  padding: 5px 12px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
  z-index: 5;
}

/* ============================================================
   POPULAR BADGE
   ============================================================ */
.popular-badge {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #3a7cff, #6b52f5);
  color: #fff;
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.3px;
  padding: 6px 18px;
  border-radius: 20px;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(58, 124, 255, 0.45);
  z-index: 5;
}

/* ============================================================
   PLAN NAMES
   ============================================================ */
.pricing-card h3 {
  font-family: "Syne", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: -0.2px;
}

/* ============================================================
   PRICING
   ============================================================ */
.pricing-price {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin: 20px 0 28px;
}

.old-price {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
  color: #334155;
  text-decoration: line-through;
  letter-spacing: 0.2px;
}

.new-price {
  font-family: "Outfit", sans-serif;
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

/* ============================================================
   FEATURE LIST
   ============================================================ */
.pricing-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  text-align: left;
}

.pricing-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: "Outfit", sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  color: #64748b;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  line-height: 1.4;
}

.pricing-list li:last-child { border-bottom: none; }

.pricing-list li b {
  color: #94a3b8;
  font-weight: 600;
}

.pricing-list li::before {
  content: "✓";
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  font-weight: 600;
  flex-shrink: 0;
  margin-top: 1px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(62, 207, 142, 0.1);
  color: #3ecf8e;
}

/* Delivery */
.pricing-card > p {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  color: #334155;
  letter-spacing: 0.3px;
  margin-bottom: 16px;
}

.pricing-card > p strong {
  color: #475569;
}

/* ============================================================
   CTA BUTTONS
   ============================================================ */
a.btn-glow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.2px;
  color: #fff;
  padding: 0 24px;
  height: 48px;
  border-radius: 50px;
  border: none;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

a.btn-glow::after {
  content: "→";
  font-size: 0.9rem;
  transition: transform 0.2s ease;
}

a.btn-glow:hover::after  { transform: translateX(3px); }

/* ============================================================
   STARTER (GREEN)
   ============================================================ */
.pricing-card.starter {
  border-color: rgba(62, 207, 142, 0.15);
}

.pricing-card.starter::before {
  background: linear-gradient(90deg, transparent, #3ecf8e, transparent);
}

.pricing-card.starter:hover {
  border-color: rgba(62, 207, 142, 0.4);
  box-shadow: 0 20px 60px rgba(62, 207, 142, 0.1), 0 0 0 1px rgba(62, 207, 142, 0.15);
}

.pricing-card.starter h3 { color: #3ecf8e; }

.starter .new-price {
  background: linear-gradient(135deg, #3ecf8e, #2bb573);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

a.btn-glow.starter-btn {
  background: linear-gradient(135deg, #3ecf8e 0%, #2bb573 100%);
  color: #042714;
  box-shadow: 0 4px 16px rgba(62, 207, 142, 0.3);
}

a.btn-glow.starter-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(62, 207, 142, 0.45);
  color: #042714;
}

/* ============================================================
   PRO (BLUE)
   ============================================================ */
.pricing-card.pro {
  border-color: rgba(58, 124, 255, 0.3);
  background: rgba(58, 124, 255, 0.04);
}

.pricing-card.pro.popular-plan {
  box-shadow:
    0 0 0 1px rgba(58, 124, 255, 0.2),
    0 20px 60px rgba(58, 124, 255, 0.12);
}

.pricing-card.pro::before {
  background: linear-gradient(90deg, transparent, #3a7cff, transparent);
}

.pricing-card.pro:hover {
  border-color: rgba(58, 124, 255, 0.55);
  box-shadow: 0 20px 60px rgba(58, 124, 255, 0.18), 0 0 0 1px rgba(58, 124, 255, 0.25);
}

.pricing-card.pro h3 { color: #3a7cff; }

.pro .new-price {
  background: linear-gradient(135deg, #3a7cff, #6b9fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

a.btn-glow.pro-btn {
  background: linear-gradient(135deg, #3a7cff 0%, #5b52f5 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(58, 124, 255, 0.35);
}

a.btn-glow.pro-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(58, 124, 255, 0.5);
  color: #fff;
}

/* ============================================================
   BUSINESS (PURPLE)
   ============================================================ */
.pricing-card.business {
  border-color: rgba(163, 91, 255, 0.15);
}

.pricing-card.business::before {
  background: linear-gradient(90deg, transparent, #a35bff, transparent);
}

.pricing-card.business:hover {
  border-color: rgba(163, 91, 255, 0.4);
  box-shadow: 0 20px 60px rgba(163, 91, 255, 0.1), 0 0 0 1px rgba(163, 91, 255, 0.15);
}

.pricing-card.business h3 { color: #a35bff; }

.business .new-price {
  background: linear-gradient(135deg, #a35bff, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

a.btn-glow.business-btn {
  background: linear-gradient(135deg, #a35bff 0%, #7c3aed 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(163, 91, 255, 0.3);
}

a.btn-glow.business-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(163, 91, 255, 0.45);
  color: #fff;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 992px) {
  .pricing-section { padding: 72px 0 56px; }
  .pricing-card { padding: 36px 24px 28px; }
  .discount-badge { right: 12px; }
}

@media (max-width: 768px) {
  .pricing-title { margin-bottom: 48px; }
  .mb-5.mb-lg-0  { padding: 0 16px; }
  .pricing-list li { font-size: 0.83rem; }
  .new-price { font-size: 1.75rem; }
}
/* ============================================================
   LANDING PAGE (AMBER)
   ============================================================ */
.pricing-card.landing {
  border-color: rgba(255, 178, 55, 0.35);
  background: rgba(255, 178, 55, 0.04);
}

.pricing-card.landing::before {
  background: linear-gradient(90deg, transparent, #ffb237, transparent);
}

.pricing-card.landing:hover {
  border-color: rgba(255, 178, 55, 0.6);
  box-shadow: 0 20px 60px rgba(255, 178, 55, 0.15), 0 0 0 1px rgba(255, 178, 55, 0.25);
}

.pricing-card.landing h3 {
  color: #ffb237;
  text-shadow: 0 0 24px rgba(255, 178, 55, 0.4);
}

.landing .new-price {
  background: linear-gradient(135deg, #ffc84a, #ffb237);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: brightness(1.15);
}

.landing .old-price {
  color: #5a4a2a;
}

.landing .pricing-list li { color: #8a7a60; }
.landing .pricing-list li b { color: #c8a060; }
.landing .pricing-list li::before { color: #ffb237; background: rgba(255,178,55,0.15); }

a.btn-glow.landing-btn {
  background: linear-gradient(135deg, #ffb237 0%, #f59e0b 100%);
  color: #1a0f00;
  box-shadow: 0 4px 20px rgba(255, 178, 55, 0.5);
  font-weight: 800;
}

a.btn-glow.landing-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255, 178, 55, 0.65);
  color: #1a0f00;
}

/* ============================================================
   MOST AFFORDABLE BADGE
   ============================================================ */
.affordable-badge {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #ffc84a, #f59e0b);
  color: #1a0f00;
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.3px;
  padding: 6px 18px;
  border-radius: 20px;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(255, 178, 55, 0.6), 0 0 0 1px rgba(255,178,55,0.3);
  z-index: 5;
}

/* ============================================================
   PACKAGE NOTE (warning box inside card)
   ============================================================ */
.package-note {
  background: rgba(255, 178, 55, 0.06);
  border: 1px solid rgba(255, 178, 55, 0.22);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 16px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.65rem;
  color: #ffb237;
  letter-spacing: 0.3px;
  line-height: 1.6;
}

.package-note::before {
  content: "⚠ NOTE  ";
  font-weight: 600;
  letter-spacing: 1px;
}

.scroll-hint {
  display: none;
  text-align: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.62rem;
  color: #334155;
  letter-spacing: 0.5px;
  padding: 8px 0 0;
  margin: 0;
}

@media (max-width: 768px) {
  .scroll-hint { display: block; }
}

/* ============================================================
   COMPARISON TABLE
   ============================================================ */
.comparison-section {
  position: relative;
  z-index: 1;
  margin-top: 72px;
  overflow-x: auto;
  padding: 0 16px;
}

.comparison-section h2 {
  font-family: "Syne", sans-serif;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.3px;
  margin-bottom: 28px;
}

.comparison-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.comparison-table th,
.comparison-table td {
  padding: 13px 16px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.comparison-table thead th {
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.comparison-table thead th:first-child { text-align: left; }

.comparison-table td:first-child {
  text-align: left;
  color: #64748b;
  font-family: "Outfit", sans-serif;
}

.comparison-table td:not(:first-child) {
  color: #94a3b8;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
}

.comparison-table .check { color: #3ecf8e; font-size: 1rem; }
.comparison-table .cross { color: #334155; font-size: 1rem; }
.comparison-table .val   { color: #e2e8f0; font-weight: 600; }

.comparison-table th.col-landing { color: #ffb237; }
.comparison-table th.col-starter { color: #3ecf8e; }
.comparison-table th.col-pro     { color: #3a7cff; }
.comparison-table th.col-business{ color: #a35bff; }

.comparison-table tr:hover td { background: rgba(255,255,255,0.02); }

@media (max-width: 768px) {
  .comparison-section { margin-top: 48px; padding: 0 4px; }

  .comparison-table {
    min-width: unset;
    width: 100%;
    font-size: 0.72rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 10px 8px;
  }

  /* Freeze the feature column */
  .comparison-table td:first-child,
  .comparison-table th:first-child {
    position: sticky;
    left: 0;
    background: #080c14;
    z-index: 2;
    font-size: 0.7rem;
    min-width: 90px;
    max-width: 90px;
    padding-left: 4px;
    white-space: nowrap;
  }

  .comparison-table thead th:first-child {
    font-size: 0.6rem;
    letter-spacing: 0.5px;
  }

  .comparison-table th:not(:first-child) {
    font-size: 0.68rem;
    padding: 10px 6px;
    min-width: 64px;
  }

  .comparison-table td:not(:first-child) {
    font-size: 0.68rem;
    min-width: 64px;
  }

  .comparison-table .check,
  .comparison-table .cross { font-size: 0.85rem; }

  /* Wrap outer div already has overflow-x:auto via inline style */
  .comparison-section > div { border-radius: 12px; }
}