/* ==========================================================================
   pricing.css — styles only the pricing page uses
   ========================================================================== */

.pricing {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-bottom: 64px;
}

/* The breadcrumbs keep their own top padding; the heading sits 48px below */
.pricing .breadcrumbs {
  margin-bottom: 16px;
}

/* ---------- Heading ---------- */
.pricing-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.page-title {
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.page-lede {
  max-width: 520px;
  font-size: 15px;
  color: var(--fg-2);
  text-wrap: pretty;
}

/* ---------- Monthly / Annual ---------- */
.billing {
  display: flex;
  justify-content: center;
}

.billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.period {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--fg-3);
  font-size: 13px;
  line-height: 18px;
  white-space: nowrap;
}

.period:hover {
  color: var(--fg);
}

.period[aria-pressed="true"] {
  background: var(--gridline);
  color: var(--fg);
}

/* the −20% beside Annual */
.saving {
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--gridline);
  color: var(--up);
  font-size: 11px;
  font-weight: 500;
}

.period[aria-pressed="true"] .saving {
  background: var(--bg);
}

/* ---------- The two plans ---------- */
.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
}

.plan {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.plan-pro {
  border-color: var(--accent);
}

.plan-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.plan-name {
  font-size: 15px;
  font-weight: 500;
}

.plan-blurb {
  margin-top: 6px;
  font-size: 13px;
  color: var(--fg-3);
}

.plan-price {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.price {
  font-size: 44px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
}

.price-unit,
.price-billing {
  font-size: 13px;
  color: var(--fg-3);
}

/* keeps the card the same height whichever period is chosen */
.price-billing {
  min-height: 18px;
}

.plan-action {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.plan-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--fg);
  font-size: 14px;
  font-weight: 500;
}

.plan-button:hover {
  background: var(--hover);
  text-decoration: none;
}

.plan-button-primary {
  border-color: transparent;
  background: var(--accent);
  color: var(--on-accent);
}

.plan-button-primary:hover {
  background: var(--accent);
  filter: brightness(1.08);
}

.trial-note {
  font-size: 12px;
  color: var(--fg-3);
  text-align: center;
}

/* ---------- What each plan includes ---------- */
.features {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  line-height: 1.4;
}

.features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.features svg {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  fill: none;
  stroke: var(--fg-2);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Pro's ticks are the accent colour; its "Everything in Free" line is quieter */
.plan-pro .features svg {
  stroke: var(--accent);
}

.plan-pro .features .included {
  color: var(--fg-2);
}

.plan-pro .features .included svg {
  stroke: var(--fg-3);
}

/* ---------- Small print ---------- */
.pricing-note {
  font-size: 12px;
  line-height: 1.6;
  color: var(--fg-3);
  text-align: center;
  text-wrap: pretty;
}

/* ---------- Phone ---------- */
@media (max-width: 640px) {
  .pricing {
    gap: 24px;
    padding-bottom: 48px;
  }

  .pricing .breadcrumbs {
    margin-bottom: 8px;
  }

  .page-title {
    font-size: 28px;
  }

  .plans {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .plan {
    padding: 24px;
  }
}
