/* Pricing (pricing.html): a hook line and the three plan cards in the first
   screen, then who qualifies, how access works, why teams upgrade, data, FAQ.
   Built on site.css tokens; every rule is scoped to .page-pricing. */

.page-pricing {
  background: var(--cold-paper);
}

.page-pricing h1,
.page-pricing h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
}

/* Hook line only, so the cards land in the first screen. */
.pricing-hero {
  padding: calc(var(--header-h) + 0.25rem) var(--gutter) clamp(0.75rem, 1.3vw, 1.1rem);
  text-align: center;
}

.pricing-hero h1 {
  font-size: clamp(2.1rem, 3vw, 3rem);
  letter-spacing: -0.05em;
  line-height: 0.98;
}

/* Plan cards. Each card is a subgrid row set, so the title row, price,
   reason line, button and feature list line up across all three. */
.plans {
  display: grid;
  max-width: calc(78rem + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(3.5rem, 6vw, 5rem);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(5, auto);
  column-gap: 1rem;
  row-gap: 0;
}

.plan {
  display: grid;
  grid-row: span 5;
  grid-template-rows: subgrid;
  padding: 1.1rem 1.5rem 1.2rem;
  background: var(--white);
  border: 1px solid var(--line);
}

.plan-featured {
  color: var(--white);
  background: var(--deep-field);
  border-color: var(--deep-field);
}

.plan-head {
  display: flex;
  min-height: 2.4rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.page-pricing .plan-name {
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 600;
}

.plan-flag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
}

.plan-flag::before {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  content: "";
  background: var(--signal);
}

.price-block {
  margin-top: 0.7rem;
}

.price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.price-amount {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 3vw, 3.1rem);
  letter-spacing: -0.05em;
  line-height: 1;
}

.price-unit {
  color: var(--graphite);
  font-size: 0.82rem;
}

.price-sub {
  margin: 0.3rem 0 0;
  color: var(--graphite);
  font-size: 0.8rem;
}

.plan-featured .price-unit,
.plan-featured .price-sub {
  color: rgba(255, 255, 255, 0.66);
}

/* Team billing switch: Monthly is the default view. */
.billing-switch {
  display: inline-flex;
  padding: 0.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--cold-paper);
}

.billing-switch button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.8rem;
  border: 0;
  border-radius: 999px;
  color: var(--graphite);
  background: transparent;
  font: 600 0.74rem var(--sans);
  cursor: pointer;
}

.billing-switch button[aria-pressed="true"] {
  color: var(--white);
  background: var(--ink);
}

.save-badge {
  padding: 0.08rem 0.4rem;
  border-radius: 999px;
  color: var(--ink);
  background: var(--signal);
  font-size: 0.66rem;
}

.plan-reason {
  margin: 0.9rem 0 0;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.3vw, 1.25rem);
  letter-spacing: -0.02em;
  line-height: 1.18;
}

.plan-featured .plan-reason {
  border-top-color: rgba(255, 255, 255, 0.2);
}

.plan-action {
  align-self: start;
  margin-top: 0.9rem;
}

.page-pricing .plan-action .cta-button {
  width: 100%;
  min-height: 2.9rem;
  justify-content: space-between;
  padding: 0.55rem 1.1rem;
  font-size: 0.86rem;
  line-height: 1.3;
}

.page-pricing .plan-featured .cta-button {
  color: var(--ink);
  background: var(--white);
}

.page-pricing .plan-action .cta-note {
  margin-top: 0.5rem;
  font-size: 0.76rem;
}

.page-pricing .plan-featured .cta-note {
  color: rgba(255, 255, 255, 0.66);
}

.plan ul {
  margin: 0.9rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.plan li {
  position: relative;
  padding: 0.3rem 0 0.3rem 1.2rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.84rem;
  line-height: 1.45;
}

.plan li::before {
  position: absolute;
  top: 0.77rem;
  left: 0;
  width: 0.4rem;
  height: 0.4rem;
  border: 1px solid var(--graphite);
  border-radius: 50%;
  content: "";
}

.plan-featured ul,
.plan-featured li {
  border-color: rgba(255, 255, 255, 0.14);
}

.plan-featured li::before {
  border-color: var(--signal);
  background: var(--signal);
}

/* Lower folds share the card grid's content width; backgrounds stay full-bleed. */
.pricing-fold {
  display: grid;
  padding: clamp(4.5rem, 9vw, 8rem) max(var(--gutter), calc((100% - 78rem) / 2));
  border-top: 1px solid var(--line);
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
  gap: clamp(2rem, 6vw, 7rem);
  align-items: start;
  scroll-margin-top: 1rem;
}

.pricing-fold h2 {
  max-width: 14ch;
  font-size: clamp(2.6rem, 4.6vw, 5.2rem);
  letter-spacing: -0.05em;
  line-height: 0.95;
}

.pricing-fold .section-index {
  margin-bottom: 2rem;
}

.fold-lede {
  max-width: 32rem;
  margin: 1.6rem 0 0;
  color: var(--graphite);
  font-size: 1.02rem;
}

.fold-white {
  background: var(--white);
}

.page-pricing .pricing-fold .cta {
  margin-top: 2.4rem;
}

/* Who qualifies: black, matching the access page (assets/access.css). */
.fold-ink {
  color: var(--white);
  background: var(--ink);
  border-top-color: var(--ink);
}

.fold-ink .section-index {
  color: rgba(255, 255, 255, 0.62);
}

.fold-ink .fold-lede {
  color: rgba(255, 255, 255, 0.68);
}

.page-pricing .fold-ink .cta-button {
  color: var(--ink);
  background: var(--white);
}

.page-pricing .fold-ink .cta-note {
  color: rgba(255, 255, 255, 0.5);
}

.fit-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  table-layout: fixed;
}

.fit-table th {
  padding: 1rem 1rem 1rem 0;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.78rem;
  font-weight: 600;
  text-align: left;
}

.fit-table td {
  padding: 1.2rem 1rem 1.2rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.98rem;
  vertical-align: top;
}

.fit-table td:first-child {
  font-weight: 600;
}

.fit-table td + td,
.fit-table th + th {
  padding-left: 1.2rem;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.fit-table td + td {
  color: rgba(255, 255, 255, 0.5);
}

/* Numbered steps */
.steps {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--ink);
  counter-reset: step;
  list-style: none;
}

.steps li {
  display: grid;
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 3rem minmax(0, 1fr);
  counter-increment: step;
}

.steps li::before {
  padding-top: 0.25rem;
  color: var(--graphite);
  content: counter(step, decimal-leading-zero);
  font-size: 0.78rem;
  font-weight: 600;
}

.steps strong {
  display: block;
  font-size: 1.02rem;
}

.steps span {
  color: var(--graphite);
  font-size: 0.9rem;
}

.track-label {
  margin: 2.2rem 0 0.9rem;
  color: var(--graphite);
  font-size: 0.78rem;
  font-weight: 600;
}

.track-label:first-child {
  margin-top: 0;
}

/* Data */
.trust-grid {
  display: grid;
  padding-top: 1.4rem;
  border-top: 1px solid var(--ink);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.trust-grid h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.trust-grid p {
  margin: 0.5rem 0 0;
  color: var(--graphite);
  font-size: 0.9rem;
}

/* Closing */
.pricing-closing {
  padding: clamp(5rem, 10vw, 9rem) max(var(--gutter), calc((100% - 78rem) / 2));
  color: var(--white);
  background: var(--deep-field);
}

.pricing-closing .section-index {
  color: rgba(255, 255, 255, 0.48);
}

.pricing-closing h2 {
  max-width: 16ch;
  font-size: clamp(2.8rem, 5.6vw, 6.4rem);
  letter-spacing: -0.055em;
  line-height: 0.92;
}

.page-pricing .pricing-closing .cta {
  margin-top: 2.6rem;
}

.page-pricing .pricing-closing .cta-button {
  color: var(--ink);
  background: var(--white);
}

.page-pricing .pricing-closing .cta-note {
  color: rgba(255, 255, 255, 0.66);
}

/* Phones: the eligibility check stays on screen. */
.mobile-bar {
  display: none;
}

@media (max-width: 1050px) {
  .plans {
    max-width: 40rem;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    row-gap: 1rem;
  }

  .plan {
    display: flex;
    flex-direction: column;
    grid-row: auto;
  }

  .pricing-fold,
  .trust-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .mobile-bar {
    position: fixed;
    z-index: 30;
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: var(--cold-paper);
  }

  .page-pricing .mobile-bar .cta-button {
    width: 100%;
    justify-content: space-between;
  }

  .page-pricing {
    padding-bottom: 4.6rem;
  }

  .fit-table th,
  .fit-table td {
    font-size: 0.88rem;
  }
}
