/* ========================================
   COMPARE TABLE - oneclickclips.com/pricing (2026-10-13)
   The three-plan table emitted by build_site.py pricing_table(). Static
   markup: nothing here depends on JS or on data arriving after load, so the
   table cannot shift the page as it settles. Tokens are the site's own
   (design-tokens.css); naming follows components.css.
   Under 640px each plan becomes a stacked card built as label plus value,
   so a phone never needs a sideways scroll to read a plan. All text colours
   are token pairs that clear WCAG AA on their backgrounds.
   ======================================== */
.cmp {
  width: 100%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}
.cmp th,
.cmp td {
  text-align: left;
  vertical-align: top;
  padding: var(--space-4);
  border-bottom: 1px solid var(--color-border);
}
.cmp thead th {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  background: var(--color-background);
  padding-top: var(--space-3);
  padding-bottom: var(--space-3);
  white-space: nowrap;
}
.cmp tbody tr:last-child th,
.cmp tbody tr:last-child td {
  border-bottom: 0;
}
.cmp .plan {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-text);
}
.cmp .for {
  display: block;
  margin-top: var(--space-1);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 400;
  line-height: var(--leading-snug);
  color: var(--color-text-muted);
}
.cmp .num,
.cmp .price {
  font-size: var(--text-base);
  color: var(--color-text);
  white-space: nowrap;
}
.cmp .price {
  font-weight: 700;
}
.cmp .climb {
  display: block;
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--color-text-muted);
  white-space: normal;
}
.cmp .launch-flag {
  display: inline-block;
  margin-left: var(--space-2);
  padding: 2px var(--space-3);
  border-radius: var(--radius-full);
  background: #FDF3EC;
  color: #7E4218;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  white-space: nowrap;
  vertical-align: middle;
}
.cmp .act {
  text-align: right;
}

@media (max-width: 640px) {
  .cmp {
    background: transparent;
    border: 0;
    border-radius: 0;
    overflow: visible;
  }
  .cmp thead {
    display: none;
  }
  .cmp tbody,
  .cmp tr,
  .cmp th,
  .cmp td {
    display: block;
    width: auto;
  }
  .cmp tbody tr {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    margin-bottom: var(--space-4);
  }
  .cmp tbody tr:last-child {
    margin-bottom: 0;
  }
  .cmp th,
  .cmp td {
    border-bottom: 0;
    padding: var(--space-2) 0;
  }
  .cmp .plan {
    font-size: var(--text-2xl);
    padding-top: 0;
  }
  .cmp .for {
    margin-bottom: var(--space-2);
  }
  .cmp .num::before,
  .cmp .price::before {
    content: attr(data-label);
    margin-right: var(--space-2);
    font-size: var(--text-sm);
    font-weight: 400;
    color: var(--color-text-muted);
  }
  .cmp .climb {
    text-align: right;
  }
  .cmp .act {
    padding-top: var(--space-3);
    text-align: left;
  }
  .cmp .act .btn {
    width: 100%;
  }
}
