/* =========================================================================
   Pricing page. Loaded only by layouts/pricing/list.html, after the theme
   stylesheet, so every color and font here is one of the theme's variables.
   ========================================================================= */

/* Three cards share five rows (head, price, button, lead, list) through
   subgrid, so the prices, the buttons and the first feature line up across
   the cards however long a tagline or a note runs. */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: auto;
  column-gap: 20px;
  row-gap: 0;
  margin-bottom: clamp(40px, 6vw, 64px);
}
.pricing-card {
  display: grid;
  grid-row: span 5;
  grid-template-rows: subgrid;
  row-gap: 0;
  background: var(--color-bg-elev);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px 26px 30px;
  transition: opacity 0.3s ease, transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), border-color var(--transition-base), box-shadow var(--transition-base);
}
.pricing-card:hover { border-color: var(--color-accent); box-shadow: 0 18px 40px var(--color-shadow); }
.pricing-card--featured { border-color: var(--color-brand); box-shadow: 0 0 0 1px var(--color-brand); }
.pricing-card--featured:hover { border-color: var(--color-brand); box-shadow: 0 0 0 1px var(--color-brand), 0 18px 40px var(--color-shadow); }

.pricing-head { padding-bottom: 22px; }
.pricing-audience {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-light);
  margin: 0 0 12px;
}
.pricing-card--featured .pricing-audience { color: var(--color-brand); }
.pricing-name { font-size: 1.7rem; margin: 0 0 6px; }
.pricing-tagline { margin: 0; color: var(--color-text-light); font-size: 0.98rem; }

.pricing-price { padding-bottom: 22px; }
.pricing-amount { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.pricing-figure {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.5rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.pricing-unit { color: var(--color-text-light); font-size: 0.95rem; }
.pricing-note { margin: 8px 0 0; color: var(--color-text-light); font-size: 0.92rem; }
.pricing-badge {
  display: inline-block;
  margin: 12px 0 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--color-brand);
  background: color-mix(in srgb, var(--color-brand) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--color-brand) 30%, transparent);
}

.pricing-action { padding-bottom: 24px; }
.pricing-action .btn { width: 100%; }

.pricing-lead {
  margin: 0;
  padding: 20px 0 14px;
  border-top: 1px solid var(--color-border);
  font-weight: 600;
  font-size: 0.95rem;
}

.pricing-features { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pricing-features li {
  position: relative;
  padding-left: 26px;
  font-size: 0.94rem;
  color: var(--color-text-light);
}
/* a check mark drawn from two borders, so it takes the brand color in both themes */
.pricing-features li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 0.38em;
  width: 11px;
  height: 6px;
  border-left: 2px solid var(--color-brand);
  border-bottom: 2px solid var(--color-brand);
  transform: rotate(-45deg);
}
.pricing-features code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--color-bg-alt);
  padding: 2px 6px;
  border-radius: 5px;
}

/* The questions follow the cards directly, so the first heading needs no
   extra space above it. */
.pricing-questions > h2:first-child { margin-top: 0; }

/* One column once three cards no longer fit a readable line of text. The
   cards stop sharing rows there, because nothing sits beside them to line up
   with. */
@media (max-width: 940px) {
  .pricing-grid { display: block; max-width: 560px; }
  .pricing-card { display: block; }
  .pricing-card + .pricing-card { margin-top: 20px; }
}
