/* ==========================================================================
   Self+ marketing site, /pricing page only.
   Builds on tokens.css + css/home.css (reset, nav, buttons, footer, .section
   text blocks, .glow-layer). This file only adds the pricing grid, the
   founding/coming-soon card states, and the checkout panel/note.
   ========================================================================== */

.pricing-intro {
  padding-bottom: 0;
}

.pricing-tiers {
  padding-block: var(--section-space);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card-lg);
  background: var(--glass-fill);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-glass);
  text-align: left;
}

/* The Founding card is the page's hero offer: a copper-tinted border and a
   slight lift, never a solid fill (STYLEGUIDE Law 2). */
.pricing-card--featured {
  border-color: var(--cta-border);
  background: var(--cta-fill);
  box-shadow: var(--shadow-cta-copper);
  transform: translateY(-6px);
}

.pricing-card--soon {
  opacity: 0.82;
}

.pricing-badge {
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 16px;
  padding: 4px 12px;
  border: 1px solid var(--cta-border);
  border-radius: var(--radius-pill);
  color: var(--text-strong);
  font-size: var(--size-caption);
  font-weight: 600;
  letter-spacing: var(--tracking-kicker);
  text-transform: uppercase;
}

.pricing-badge--soon {
  border-color: var(--glass-border-hi);
  color: var(--text-muted);
}

.pricing-tier-name {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: var(--tracking-display);
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 8px;
}

.pricing-amount {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: var(--tracking-display);
}

.pricing-period {
  color: var(--text-muted);
  font-size: 15px;
}

.pricing-note {
  margin-bottom: 20px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
}

.pricing-includes {
  margin-bottom: 12px;
  color: var(--text-faint);
  font-size: var(--size-caption);
  font-weight: 600;
  letter-spacing: var(--tracking-kicker);
  text-transform: uppercase;
}

.pricing-bullets {
  flex: 1 0 auto;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.pricing-bullets li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  color: var(--text-strong);
  font-size: 15px;
  line-height: 1.4;
}

.pricing-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: hsl(var(--primary-glow) / 0.7);
}

.pricing-cta {
  width: 100%;
}

.pricing-cta-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pricing-cta--disabled {
  display: block;
  margin: 0;
  padding: 0 20px;
  height: 56px;
  line-height: 56px;
  border: 1px dashed var(--glass-border-hi);
  border-radius: var(--radius-pill);
  color: var(--text-faint);
  font-size: var(--size-cta);
  font-weight: 600;
  text-align: center;
}

.pricing-footnote {
  margin-top: 32px;
  color: var(--text-faint);
  font-size: var(--size-caption);
  text-align: center;
}

/* ------------------------------------------------------------ checkout */

.checkout-panel,
.checkout-note {
  padding-bottom: var(--section-space);
}

.checkout-card,
.checkout-note-card {
  position: relative;
  max-width: 420px;
  margin-inline: auto;
  padding: 28px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card-lg);
  background: var(--glass-fill);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-glass);
  text-align: center;
}

.checkout-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.checkout-plan-label {
  margin: 0 0 20px;
  color: var(--text-muted);
  font-size: 14px;
}

.checkout-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  padding: 4px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  background: hsl(0 0% 0% / 0.2);
}

.checkout-tab {
  flex: 1 1 0;
  padding: 8px 12px;
  border: none;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.checkout-tab.is-active {
  background: var(--glass-fill-hover);
  color: var(--text-strong);
}

#checkout-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}

.checkout-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  color: var(--text-muted);
}

.checkout-field input {
  height: 44px;
  padding-inline: 14px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-control);
  background: hsl(0 0% 0% / 0.2);
  color: var(--text-strong);
  font-family: inherit;
  font-size: 15px;
}

.checkout-field input:focus-visible {
  outline: 2px solid hsl(var(--primary-glow));
  outline-offset: 2px;
}

.checkout-submit {
  width: 100%;
  margin-top: 4px;
}

.checkout-status {
  min-height: 20px;
  margin: 16px 0 0;
  color: var(--text-muted);
  font-size: 14px;
}

.checkout-note-card p {
  margin: 0 0 20px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.5;
}

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

  .pricing-card--featured {
    transform: none;
  }
}

@media (max-width: 640px) {
  .pricing-card {
    padding: 24px 20px;
  }

  .checkout-card,
  .checkout-note-card {
    padding: 24px 20px;
  }
}

/* The disabled-checkout note is moved next to the card the visitor pressed,
   which puts it inside the card grid. Without this it takes a single 312px
   column and shoves the remaining cards onto the next row. Spanning the full
   row keeps the grid intact and reads as a reply to the card above it. */
.pricing-grid > .checkout-note {
  grid-column: 1 / -1;
  margin-inline: 0;
  max-width: none;
}
