/* ==========================================================================
   Pricing page (/pricing)
   Page-only rules. Layout and components come from home.css and components.css.
   Colors come from variables.css, so light and dark themes need no extra tokens.
   ========================================================================== */

/* Hero is text only, so the plans sit close beneath it */
.pricing-hero {
  padding-bottom: clamp(24px, 3vw, 40px);
}

.pricing-hero .v2-lead {
  margin-bottom: 0;
}

/* Plans follow the hero directly: no extra top padding or divider */
.pricing-plans {
  padding-top: 0;
  border-top: 0;
}

/* Screen-reader-only text (plan status in the comparison table) */
.pricing-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Comparison table: expanded by default, centered, roomier than the homepage collapsed version */
.pricing-compare .pricing-table-scroll {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
}

.pricing-compare .pricing-table {
  font-size: 14px;
}

.pricing-compare .pricing-table th,
.pricing-compare .pricing-table td {
  padding: 16px 24px;
}

/* Feature names are row headers (th), so they take body-cell styling instead of header styling */
.pricing-compare .pricing-table tbody th {
  padding: 16px 24px;
  background: none;
  font-weight: 500;
  color: var(--text-primary);
  text-align: left;
  border-bottom: 1px solid var(--card-inner-border);
}

[data-theme="dark"] .pricing-compare .pricing-table tbody th {
  border-color: rgba(255, 255, 255, 0.06);
}

/* Category labels are row groups (th), styled like the homepage category rows */
.pricing-compare .pricing-table tbody .pricing-table-category th {
  padding: 10px 24px;
  background: rgba(0, 0, 0, 0.025);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  border-bottom: 1px solid var(--card-inner-border);
}

[data-theme="dark"] .pricing-compare .pricing-table tbody .pricing-table-category th {
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(255, 255, 255, 0.06);
}

/* Visible keyboard focus on this page */
a:focus-visible,
button:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent-orange);
  outline-offset: 3px;
}

/* Tablet and below: keep the table wide enough to read, scroll it inside its own box */
@media (max-width: 768px) {
  .pricing-compare .pricing-table {
    min-width: 560px;
  }

  .pricing-compare .pricing-table th,
  .pricing-compare .pricing-table td,
  .pricing-compare .pricing-table tbody th {
    padding: 13px 14px;
  }

  .pricing-compare .pricing-table tbody .pricing-table-category th {
    padding: 10px 14px;
  }
}
