/* ===== MAINTENANCE PAGE ===== */

.maint-page {
  background: var(--off-white);
  min-height: 100vh;
}

/* Hero */
.maint-hero {
  background: var(--sapphire);
  color: var(--white);
  padding: 88px 0 80px;
  text-align: center;
}

.maint-headline {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.08;
  color: var(--white);
  margin-bottom: 20px;
}

.maint-sub {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.72);
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.65;
}

/* Hero social-proof badge — live active subscriber count.
   Centered, single line, sits between .maint-sub and .hero-actions.
   Tabular numerals keep the count from causing horizontal shift
   as it grows from 1 → 9 → 99. */
.maint-hero-badge {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.78);
  max-width: 480px;
  margin: 0 auto 24px;
  line-height: 1.65;
  font-variant-numeric: tabular-nums;
}

.maint-hero-badge::before {
  content: "✓";
  color: var(--chrome-solid);
  font-weight: 700;
  margin-right: 6px;
}

.maint-hero-badge-meta {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.5);
  margin-left: 6px;
  white-space: nowrap;
}

.maint-hero-badge-count {
  font-weight: 700;
}

/* Why */
.maint-why {
  padding: 96px 0;
  background: var(--white);
}

.maint-why-intro {
  font-size: 1.125rem;
  color: var(--gray-700);
  max-width: 600px;
  margin: 0 auto 56px;
  line-height: 1.65;
  text-align: center;
}

.maint-threats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.maint-threat {
  padding: 32px 28px;
  background: var(--off-white);
  border-radius: 12px;
  border-top: 3px solid var(--chrome-solid);
}

.maint-threat-icon {
  width: 52px;
  height: 52px;
  background: var(--white);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sapphire);
  margin-bottom: 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.maint-threat h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--sapphire);
  margin-bottom: 10px;
}

.maint-threat p {
  font-size: 0.9375rem;
  color: var(--gray-700);
  line-height: 1.65;
}

/* Visits */
.maint-visits {
  padding: 96px 0;
  background: var(--off-white);
}

.maint-visits-intro {
  font-size: 1.0625rem;
  color: var(--gray-700);
  max-width: 560px;
  margin: -24px auto 56px;
  line-height: 1.65;
  text-align: center;
}

.maint-visit-steps {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.maint-visit-step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 28px 0;
  border-bottom: 1px solid var(--gray-300);
}

.maint-visit-step:last-child {
  border-bottom: none;
}

.maint-step-number {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--sapphire);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
}

.maint-step-body {
  flex: 1;
}

.maint-step-body h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--sapphire);
  margin-bottom: 8px;
}

.maint-step-body p {
  font-size: 0.9375rem;
  color: var(--gray-700);
  line-height: 1.65;
}

/* Guarantee */
.maint-guarantee {
  padding: 80px 0;
  background: var(--sapphire);
}

.maint-guarantee-inner {
  display: flex;
  align-items: flex-start;
  gap: 36px;
  max-width: 680px;
  margin: 0 auto;
}

.maint-guarantee-icon {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  background: rgba(192,200,208,0.15);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--chrome-solid);
}

.maint-guarantee-text {
  flex: 1;
}

.maint-guarantee-text h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
}

.maint-guarantee-text p {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.65;
  margin-bottom: 12px;
}

.maint-guarantee-text p:last-child {
  margin-bottom: 0;
  color: rgba(255,255,255,0.55);
  font-size: 0.9375rem;
}

/* Compare table */
.maint-compare {
  padding: 96px 0;
  background: var(--white);
}

.compare-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

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

.compare-table th,
.compare-table td {
  padding: 20px 24px;
  text-align: center;
  vertical-align: middle;
}

.compare-table thead th {
  padding-bottom: 20px;
}

.compare-th-empty {
  width: 240px;
}

.compare-plan-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--sapphire);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

.compare-badge {
  display: inline-block;
  background: var(--chrome-solid);
  color: var(--sapphire);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 99px;
}

.compare-price {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--sapphire);
  line-height: 1;
}

.compare-price span {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray-500);
}

.compare-featured-col {
  background: rgba(192,200,208,0.05);
  border-radius: 12px 12px 0 0;
}

.compare-table thead th.compare-featured-col {
  border-top: 3px solid var(--chrome-solid);
  border-left: 2px solid var(--chrome-solid);
  border-right: 2px solid var(--chrome-solid);
}

.compare-table tbody tr:last-child td {
  border-bottom: 2px solid var(--chrome-solid);
  border-radius: 0 0 12px 12px;
}

.compare-table tbody tr:last-child td.compare-featured-cell {
  background: rgba(192,200,208,0.05);
  border-left: 2px solid var(--chrome-solid);
  border-right: 2px solid var(--chrome-solid);
}

.compare-row-alt {
  background: var(--gray-100);
}

.compare-table tbody tr:nth-child(even) td.compare-featured-cell {
  background: rgba(192,200,208,0.06);
}

.compare-feature-label {
  font-size: 0.9375rem;
  color: var(--gray-700);
  text-align: left !important;
  font-weight: 500;
}

.compare-check {
  text-align: center;
}

.compare-no {
  text-align: center;
  color: var(--gray-300);
  font-size: 1.125rem;
}

.compare-cta-btn {
  display: block;
  padding: 12px 20px;
  font-size: 0.875rem;
  text-align: center;
  border-radius: 6px;
}

.compare-cta-label {
  text-align: left !important;
}

/* CTA */
.maint-cta {
  padding: 96px 0;
  background: var(--off-white);
  text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
  .maint-threats-grid {
    grid-template-columns: 1fr;
  }

  .maint-guarantee-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .maint-visit-step {
    gap: 16px;
  }

  .maint-why, .maint-visits, .maint-compare, .maint-cta {
    padding: 64px 0;
  }

  .maint-hero { padding: 64px 0 56px; }
}

@media (max-width: 480px) {
  .maint-hero { padding: 48px 0 44px; }
  .compare-table th,
  .compare-table td {
    padding: 16px 12px;
    font-size: 0.875rem;
  }
  .compare-th-empty { width: 160px; }
}

/* Billing portal self-service link for current subscribers */
.maint-already-member {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.9375rem;
  color: var(--gray-700);
}

.maint-billing-link {
  color: var(--sapphire);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.maint-billing-link:hover {
  color: var(--chrome-solid);
}