/* ========================================
   Page-specific Styles
======================================== */

/* ========================================
   LP Hero Variants
======================================== */
.hero--aga {
  background: linear-gradient(135deg, #f0f9f5 0%, #e8f5f0 50%, #f8fafb 100%);
}

.hero--ed {
  background: linear-gradient(135deg, #f0f4f8 0%, #e8eef5 50%, #f8fafb 100%);
}

.hero--pill {
  background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 50%, #fef7fb 100%);
}

.hero--pill .hero__badge {
  background: #FCE7F3;
  color: #BE185D;
}

.hero--ed .hero__badge {
  background: #DBEAFE;
  color: #1E40AF;
}

/* ========================================
   Comparison Table
======================================== */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.comparison-table th,
.comparison-table td {
  padding: var(--space-lg);
  text-align: center;
  border-bottom: 1px solid var(--color-border);
  font-size: var(--font-size-sm);
}

.comparison-table th {
  background: var(--color-bg);
  font-weight: 600;
}

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

.comparison-table .highlight-col {
  background: var(--color-primary-light);
}

.comparison-table thead .highlight-col {
  background: var(--color-primary);
  color: var(--color-white);
}

/* ========================================
   Plan Cards
======================================== */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
}

.plan-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--color-border);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.plan-card--popular {
  border-color: var(--color-primary);
}

.plan-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: var(--color-white);
  padding: 4px 20px;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 600;
}

.plan-card__name {
  font-size: var(--font-size-lg);
  font-weight: 700;
  margin-bottom: var(--space-md);
  color: var(--color-text);
}

.plan-card__price {
  font-size: var(--font-size-4xl);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.plan-card__price small {
  font-size: var(--font-size-base);
  font-weight: 400;
  color: var(--color-text-light);
}

.plan-card__description {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  margin-bottom: var(--space-xl);
}

.plan-card__features {
  text-align: left;
  margin-bottom: var(--space-xl);
}

.plan-card__feature {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  font-size: var(--font-size-sm);
  color: var(--color-text);
}

.plan-card__feature::before {
  content: '✓';
  color: var(--color-primary);
  font-weight: 700;
  flex-shrink: 0;
}

/* ========================================
   Drug Info Cards
======================================== */
.drug-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
}

.drug-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.drug-card__name {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.drug-card__generic {
  font-size: var(--font-size-xs);
  color: var(--color-text-lighter);
  margin-bottom: var(--space-lg);
}

.drug-card__price {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-lg);
}

.drug-card__price small {
  font-size: var(--font-size-sm);
  font-weight: 400;
  color: var(--color-text-light);
}

.drug-card__specs {
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-lg);
}

.drug-card__spec {
  display: flex;
  justify-content: space-between;
  padding: var(--space-xs) 0;
  font-size: var(--font-size-sm);
}

.drug-card__spec-label {
  color: var(--color-text-light);
}

.drug-card__spec-value {
  font-weight: 600;
}

/* ========================================
   Stats Bar
======================================== */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: var(--space-3xl);
  padding: var(--space-2xl) 0;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-item__number {
  font-size: var(--font-size-4xl);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.stat-item__label {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
}

/* ========================================
   Safety / Trust Section
======================================== */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
}

.trust-item__icon {
  width: 48px;
  height: 48px;
  background: var(--color-primary-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 24px;
}

.trust-item__title {
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.trust-item__text {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ========================================
   Pill-specific: Color Themes
======================================== */
.hero--pill .btn--primary {
  background: #BE185D;
}

.hero--pill .btn--primary:hover {
  background: #9D174D;
}

.page-pill .section__subtitle {
  color: #BE185D;
}

.page-pill .plan-card--popular {
  border-color: #BE185D;
}

.page-pill .plan-card__badge {
  background: #BE185D;
}

.page-pill .plan-card__price {
  color: #BE185D;
}

.page-pill .plan-card__feature::before {
  color: #BE185D;
}

.page-pill .step__number {
  background: #BE185D;
}

/* ========================================
   ED-specific: Color Themes
======================================== */
.hero--ed .btn--primary {
  background: #1E40AF;
}

.hero--ed .btn--primary:hover {
  background: #1E3A8A;
}

.page-ed .section__subtitle {
  color: #1E40AF;
}

.page-ed .drug-card__name {
  color: #1E40AF;
}

.page-ed .step__number {
  background: #1E40AF;
}

/* ========================================
   Scroll Animations
======================================== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   TOP Page Specific
======================================== */
.service-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-card__icon {
  width: 64px;
  height: 64px;
  background: var(--color-primary-light);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin-bottom: var(--space-lg);
}

.service-card__title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.service-card__price {
  font-size: var(--font-size-sm);
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.service-card__text {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
  flex-grow: 1;
}

/* ========================================
   Responsive overrides for LP pages
======================================== */
@media (max-width: 768px) {
  .plan-grid {
    grid-template-columns: 1fr;
  }

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

  .stats-bar {
    gap: var(--space-xl);
  }

  .stat-item__number {
    font-size: var(--font-size-3xl);
  }

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

  .comparison-table {
    font-size: var(--font-size-xs);
  }

  .comparison-table th,
  .comparison-table td {
    padding: var(--space-sm);
  }
}
