@import url("https://fonts.googleapis.com/css2?family=Black+Han+Sans&display=swap");

/* Base Layout */
.plans-page {
  padding: 0;
  overflow-x: hidden;
}

.text-center {
  text-align: center;
}
.full-width {
  width: 100%;
}

/* Typography Scale for this page */
h1 {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
}
h2 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}
p {
  color: var(--muted);
  line-height: 1.6;
}

/* Hero Section */
.plans-hero {
  padding: 0 80px;
  text-align: center;
  background: radial-gradient(
    circle at 50% 0%,
    rgba(37, 99, 235, 0.1) 0%,
    transparent 60%
  );
  height: calc(100vh - 62px);
}

.hero-inner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero-inner svg {
  color: #999;
  animation: arrow 1.8s ease-in-out infinite;
}

@keyframes arrow {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
  100% {
    transform: translateY(0);
  }
}

.hero-content {
  max-width: 800px;
  margin: 0 auto 60px;
  display: grid;
  gap: 24px;
  justify-items: center;
}

.hero-content h1 {
  font-family: "Black Han Sans", sans-serif;
  font-weight: 400;
  font-style: normal;
  background: linear-gradient(135deg, var(--text) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-bottom: 0.1em; /* Prevent clip cutoff */
  font-size: 70px;
}

/* Features Section */
.features-section {
  padding: 60px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.feature-item {
  padding: 32px;
  text-align: center;
  transition: transform 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 48px;
  margin-bottom: 20px;
  background: rgba(37, 99, 235, 0.1);
  width: 80px;
  height: 80px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
}

/* Pricing Section */
.pricing-section {
  padding: 80px 0;
}

.section-header {
  margin-bottom: 60px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
  align-items: center; /* Center items vertically if heights differ */
}

.pricing-card {
  padding: 40px;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.6);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(37, 99, 235, 0.15);
  border-color: rgba(37, 99, 235, 0.4);
}

.pricing-card.highlight {
  border: 2px solid var(--primary);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.95),
    rgba(240, 245, 255, 0.9)
  );
  transform: scale(1.05);
  z-index: 2;
  box-shadow: 0 25px 50px rgba(37, 99, 235, 0.2);
}

.pricing-card.highlight:hover {
  transform: scale(1.05) translateY(-8px);
}

.popular-badge {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.card-header {
  text-align: center;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  margin-bottom: 24px;
}

.plan-name {
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 12px;
}

.plan-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  color: var(--text);
  margin-bottom: 12px;
}

.plan-price .amount {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -1px;
}

.plan-price .currency {
  font-size: 20px;
  font-weight: 600;
  margin-left: 4px;
}

.plan-price .period {
  color: var(--muted);
  font-size: 16px;
  margin-left: 4px;
}

.benefit-list {
  list-style: none;
  display: grid;
  gap: 16px;
  margin-bottom: 32px;
}

.benefit-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
}

.check {
  color: var(--primary);
  font-weight: 800;
  font-size: 14px;
  background: rgba(37, 99, 235, 0.1);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

/* Comparison Table */
.comparison-section {
  padding: 80px 0;
  background: linear-gradient(to bottom, transparent, rgba(37, 99, 235, 0.03));
}

.table-wrapper {
  overflow-x: auto;
  padding: 30px;
  border-radius: 24px;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.comparison-table th,
.comparison-table td {
  padding: 16px 24px;
  text-align: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.comparison-table th {
  font-weight: 700;
  color: var(--text);
  font-size: 16px;
  padding-bottom: 24px;
}

.comparison-table th:first-child,
.comparison-table td:first-child {
  text-align: left;
  font-weight: 600;
  color: var(--text);
}

.comparison-table td {
  color: var(--muted);
  font-size: 15px;
}

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

.comparison-table .highlight {
  color: var(--primary);
  font-weight: 700;
  background: rgba(37, 99, 235, 0.04);
}

.comparison-table .highlight-text {
  color: var(--primary);
  font-weight: 700;
}

/* FAQ Section */
.faq-section {
  padding: 80px 0;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 24px;
}

.faq-item {
  padding: 32px;
}

.faq-item h3 {
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--text);
}

/* CTA Section */
.cta-section {
  padding: 60px 0 120px;
}

.cta-box {
  padding: 60px;
  text-align: center;
  display: grid;
  gap: 32px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.9),
    rgba(230, 240, 255, 0.9)
  );
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn.large {
  padding: 16px 32px;
  font-size: 16px;
  border-radius: 16px;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .pricing-card.highlight {
    transform: none;
  }

  .pricing-card.highlight:hover {
    transform: translateY(-8px);
  }

  .cta-box {
    padding: 40px 24px;
  }

  .hero-content h1 {
    font-size: 32px;
  }
}
