/* pricing.css — pricing.html only */

/* ─── PAGE HERO ──────────────────────────────────────────── */

.pricing-hero {
  padding-top: calc(var(--section-pad) + 80px); /* clear fixed nav */
  padding-bottom: var(--section-pad);
  background: var(--color-bg);
  position: relative;
  overflow: hidden;
}

.pricing-hero__content {
  max-width: 700px;
}

.pricing-hero__heading {
  font-family: var(--font-display);
  font-size: var(--size-h1);
  font-weight: 600;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text-primary);
  margin-bottom: var(--space-sm);
}

.pricing-hero__subhead {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: var(--color-text-secondary);
  line-height: var(--leading-body);
  max-width: 540px;
}

/* ─── TAB SWITCHER SECTION ───────────────────────────────── */

.section-tabs {
  background: var(--color-bg);
  padding-top: 0; /* flows flush below hero */
}

.section-tabs__header {
  margin-bottom: var(--space-lg);
}

/* ─── TAB NAV ────────────────────────────────────────────── */

.pricing-tabs__nav-wrap {
  margin-bottom: var(--space-xl);
}

.pricing-tabs__nav {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
  border-bottom: 1px solid var(--color-border);
  width: 100%;
}

.pricing-tabs__tab {
  font-family: var(--font-body);
  font-size: var(--size-body);
  font-weight: 400;
  color: var(--color-text-secondary);
  padding: var(--space-sm) 0;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  min-height: 44px; /* touch target — rule 16 */
  transition: color var(--dur-feedback) var(--ease-feedback);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Tabs hug opposite edges of the track */
.pricing-tabs__tab:first-of-type {
  margin-right: auto;
}

.pricing-tabs__tab:last-of-type {
  margin-left: auto;
}

.pricing-tabs__tab.is-active {
  color: var(--color-text-primary);
  font-weight: 500;
}

.pricing-tabs__tab:hover {
  color: var(--color-text-primary);
}

.pricing-tabs__tab:focus-visible {
  outline: 2px solid var(--color-text-primary);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Sliding indicator — GSAP animates x (translateX) + scaleX.
   transform-origin: left ensures scaleX shrinks from left edge.
   width: 100% + scaleX avoids animating the layout property 'width'. */
.pricing-tabs__indicator {
  position: absolute;
  bottom: -1px;
  left: 0;
  height: 2px;
  width: 100%;
  background: var(--color-text-primary);
  transform-origin: left center;
  /* Initial scaleX set by GSAP on init */
  pointer-events: none;
}

/* ─── PHASE CARDS PANEL ──────────────────────────────────── */

/* Both panels live in HTML.
   JS toggles .is-active — no content rendered by JS. */
.pricing-tabs__panel {
  display: none;
}

.pricing-tabs__panel.is-active {
  display: block;
}

/* Grid: 4 cards across, collapses on smaller viewports */
.pricing-phases__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

/* Phase label eyebrow */
.phase-card__phase {
  font-family: var(--font-body);
  font-size: var(--size-eyebrow);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-xs);
  display: block;
}

/* Phase price — large display numeral */
.phase-card__price {
  font-family: var(--font-display);
  font-size: var(--size-h2);
  font-weight: 700;
  line-height: 1;
  letter-spacing: var(--tracking-tight);
  color: var(--color-text-primary);
  margin-bottom: var(--space-sm);
}

/* Track total — dominant, centered. This is the number buyers came for,
   so it gets hero-scale display weight, not a quiet right-aligned tally. */
.pricing-phases__total {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  margin-top: var(--space-lg);
  padding: var(--space-lg) var(--space-md);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  text-align: center;
}

.pricing-phases__total-label {
  font-family: var(--font-body);
  font-size: var(--size-small);
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.pricing-phases__total-value {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 9vw, 7rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: var(--tracking-tight);
  color: var(--color-text-primary);
}

@media (max-width: 1024px) {
  .pricing-phases__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .pricing-phases__grid {
    grid-template-columns: 1fr;
  }

  .pricing-tabs__tab {
    font-size: var(--size-small);
    padding-right: var(--space-md);
  }

  .pricing-tabs__tab:first-of-type {
    padding-right: var(--space-md);
  }
}

/* ─── ADD-ONS SECTION ────────────────────────────────────── */

.section-addons {
  background: var(--color-surface);
}

.section-addons__header {
  margin-bottom: var(--space-xl);
}

.section-addons__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

/* Add-on price — slightly smaller than phase card */
.addon-card__price {
  font-family: var(--font-display);
  font-size: var(--size-h3);
  font-weight: 700;
  line-height: 1;
  letter-spacing: var(--tracking-tight);
  color: var(--color-text-primary);
  margin-bottom: var(--space-sm);
}

/* Add-on note — per-month or one-time indicator */
.addon-card__note {
  font-family: var(--font-body);
  font-size: var(--size-eyebrow);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-text-muted);
  display: block;
  margin-top: var(--space-xs);
}

@media (max-width: 1024px) {
  .section-addons__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .section-addons__grid {
    grid-template-columns: 1fr;
  }
}

/* ─── COMPARISON TABLE ───────────────────────────────────── */

.section-compare {
  background: var(--color-bg);
}

.section-compare__header {
  margin-bottom: var(--space-xl);
}

/* Scrollable wrapper on narrow viewports */
.compare-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px; /* prevents collapse below readable threshold */
}

/* Screen-reader only caption */
.compare-table caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

/* Header row */
.compare-table thead th {
  text-align: left;
  padding: var(--space-md);
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}

/* Column 1 header — feature label */
.compare-table thead th:first-child {
  font-family: var(--font-body);
  font-size: var(--size-eyebrow);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  font-weight: 500;
  color: var(--color-text-muted);
  width: 50%;
}

/* Column 2 + 3 headers — track names */
.compare-table thead th:not(:first-child) {
  font-family: var(--font-display);
  font-size: var(--size-h3);
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
  color: var(--color-text-primary);
  width: 25%;
  text-align: center;
}

/* Body rows */
.compare-table tbody tr {
  border-bottom: 1px solid var(--color-border);
  transition: background var(--dur-feedback) var(--ease-feedback);
}

.compare-table tbody tr:last-child {
  border-bottom: none;
}

.compare-table tbody tr:hover {
  background: var(--color-surface);
}

/* All cells */
.compare-table tbody td {
  padding: var(--space-sm) var(--space-md);
  vertical-align: middle;
  line-height: var(--leading-body);
}

/* Feature name cell */
.compare-table tbody td:first-child {
  font-family: var(--font-body);
  font-size: var(--size-small);
  color: var(--color-text-primary);
  font-weight: 400;
}

/* Check / dash cells */
.compare-table tbody td:not(:first-child) {
  text-align: center;
}

/* Check icon wrapper */
.compare-table__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: var(--color-text-primary);
}

.compare-table__check svg {
  width: 15px;
  height: 15px;
}

/* Em-dash for "not included" */
.compare-table__dash {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  font-family: var(--font-body);
  font-size: var(--size-small);
  color: var(--color-text-muted);
  line-height: 1;
}

@media (max-width: 767px) {
  .compare-table thead th,
  .compare-table tbody td {
    padding: var(--space-xs) var(--space-sm);
  }

  .compare-table thead th:not(:first-child) {
    font-size: var(--size-small);
    font-family: var(--font-body);
    font-weight: 500;
  }
}

/* ─── EMAIL CTA (duplicated from home.css — page-scoped) ─── */
/* home.css is index.html only — pricing.html needs its own copy */

.section-cta {
  min-height: 100dvh; /* rule 8 — never height: 100vh */
  display: flex;
  align-items: center;
}

.section-cta__inner {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
}

.section-cta__headline {
  font-family: var(--font-display);
  font-size: var(--size-h1);
  font-weight: 600;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text-inverse);
  margin-bottom: var(--space-sm);
}

.section-cta__subhead {
  font-size: var(--size-body);
  color: var(--color-text-muted);
  line-height: var(--leading-body);
  margin-bottom: var(--space-lg);
}
