.pricing {
  background: var(--color-surface);
  padding: var(--space-3xl) var(--gutter);
}

.pricing__intro {
  max-width: var(--content-narrow);
  margin: 0 auto var(--space-2xl);
  text-align: center;
}

.pricing__eyebrow {
  font-size: var(--text-sm);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-lg);
}

.pricing__headline {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
}

/* Cards */
.pricing__cards {
  max-width: var(--content-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  align-items: start;
}

.pricing-card {
  /* Grid items default to min-width: auto, so a long feature line can push
     a column past its 1fr share and overflow the row. */
  min-width: 0;
  background: var(--color-bg);
  border-radius: var(--border-radius-md);
  padding: var(--space-xl);
  border: 1px solid rgba(26,10,20,0.08);
  position: relative;
  transition: transform var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out);
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.pricing-card--featured {
  background: var(--color-surface-dark);
  border-color: transparent;
  padding-top: calc(var(--space-xl) + 12px);
}
.pricing-card--featured:hover {
  box-shadow: 0 20px 64px rgba(201,79,160,0.3);
}

.pricing-card__badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent);
  color: white;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: var(--border-radius-pill);
  white-space: nowrap;
}

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

.pricing-card__name {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-sm);
}
.pricing-card--featured .pricing-card__name {
  color: white;
}

.pricing-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
}
.pricing-card--featured .pricing-card__desc {
  color: rgba(255,255,255,0.6);
}

.pricing-card__price {
  margin-bottom: var(--space-xl);
  display: flex;
  align-items: baseline;
  gap: var(--space-xs);
}

.pricing-card__amount {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--color-text-primary);
  /* The £ is a separate inline-block, so without this it can wrap away
     from the digits it belongs to. */
  white-space: nowrap;
}
.pricing-card--featured .pricing-card__amount {
  color: white;
}

/* Currency symbol — drawn from assets/gbp-sign.svg rather than type.
   Fake Receipt maps U+00A3, but its `sterling` glyph has zero contours
   (one of 170 mapped-but-undrawn glyphs in the file), so the character
   renders as blank space and never falls back to another font.

   The SVG is applied as a mask rather than an image, so the colour
   stays driven by --color-currency and can be changed in one place.
   Sized in em, so it holds its proportion as the fluid --text-5xl
   scales with the viewport: 0.48em tall (80% of the numeral, then 40%
   smaller again), and 0.48em × 94/142 wide to match the viewBox.

   The £ character stays in the markup behind the mask — text-indent
   moves it out of view — so "£50" still copies and reads correctly. */
.pricing-card__currency {
  display: inline-block;
  width: 0.32em;
  height: 0.48em;
  margin-right: 0.08em;
  vertical-align: baseline;
  background-color: var(--color-currency);
  -webkit-mask: url('../../assets/gbp-sign.svg') no-repeat center / contain;
          mask: url('../../assets/gbp-sign.svg') no-repeat center / contain;
  text-indent: -9999px;   /* px, not em — an em indent scales with the
                             numeral and can disturb the line box */
  overflow: hidden;
}

.pricing-card__period {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  font-weight: 300;
  /* Flex items refuse to shrink below their content by default. This lets
     the period wrap its own text instead of pushing the whole row wider
     and forcing the amount onto a line of its own. */
  min-width: 0;
}
.pricing-card--featured .pricing-card__period {
  color: rgba(255,255,255,0.5);
}

.pricing-card__features {
  margin-bottom: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.pricing-card__features li {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.5;
  padding-left: 20px;
  position: relative;
}
.pricing-card__features li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-size: 10px;
  top: 2px;
}
.pricing-card--featured .pricing-card__features li {
  color: rgba(255,255,255,0.65);
}
.pricing-card--featured .pricing-card__features li::before {
  color: var(--color-monika-light);
}

.pricing-card .btn {
  width: 100%;
  justify-content: center;
}

/* ── Free-trial offer ──────────────────────────────────────────
   Sits under the cards rather than inside one, since it applies to
   every plan. */
.pricing__offer {
  max-width: var(--content-narrow);
  margin: var(--space-xl) auto 0;
  text-align: center;
  font-size: var(--text-lg);
  font-weight: 300;
  line-height: 1.6;
  color: var(--color-text-secondary);
}
.pricing__offer strong {
  font-weight: 500;
  color: var(--color-text-primary);
}

.pricing__code {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.95em;
  letter-spacing: 0.06em;
  color: var(--color-accent-deep);
  background: var(--color-surface);
  border: 1px solid var(--color-monika-light);
  border-radius: var(--border-radius-sm);
  padding: 2px 10px;
  margin: 0 2px;
}

/* ── Responsive — breakpoints mirror --bp-lg / --bp-md in tokens.css ── */
@media (max-width: 1024px) {
  .pricing-card { padding: var(--space-lg); }
  .pricing-card--featured { padding-top: calc(var(--space-lg) + 12px); }
}

@media (max-width: 768px) {
  .pricing__cards { grid-template-columns: 1fr; max-width: 480px; }
}
