/* Pricing uses the shared site palette and two side-by-side plan cards.
   Cards keep name, price, action and features on the same reading axes.
   Shared header + 68px lead matches the FAQ and Contact us heading position. */
@layer base, components, utilities;
@layer components {
.pricing-page {
  --pr-ink: var(--header-ink);
  --pr-muted: var(--header-muted);
  --pr-line: var(--header-line);
  --pr-line-strong: var(--header-button-line);
  --pr-paper: var(--header-panel);
  --pr-hover: var(--header-hover);
  --pr-accent: var(--header-accent);
  --pr-space-1: var(--site-space-4); --pr-space-2: var(--site-space-8); --pr-space-3: var(--site-space-12); --pr-space-4: var(--site-space-16);
  --pr-space-5: var(--site-space-20); --pr-space-6: var(--site-space-24); --pr-space-8: var(--site-space-32); --pr-space-12: var(--site-space-48); --pr-space-16: var(--site-space-64);
  padding-bottom: var(--pr-space-16);
  color: var(--pr-ink);
}
.pricing-intro {
  margin-bottom: var(--pr-space-8);
}
.pricing-intro h1 {
  margin: 0 0 var(--pr-space-5); overflow-wrap: anywhere;
}
.pricing-intro p { max-width: 60ch; margin: 0; color: var(--pr-muted); font-size: var(--type-body-size); line-height: var(--type-line-body); text-wrap: pretty; }

.pricing-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--pr-space-4) var(--pr-space-6); max-width: 880px; }
/* Two flat cards; Enterprise differs only by a slightly stronger outline and the primary action colour. */
.pricing-plan {
  display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; min-width: 0;
  padding: var(--pr-space-8) var(--pr-space-8) var(--pr-space-16); border: 1px solid var(--pr-line); border-radius: var(--site-radius-card); background: var(--pr-paper);
}
/* Name, price, action and the lead with features share rows across both cards, so prices and actions line up. */
.pricing-plan-enterprise { border-color: var(--pr-line-strong); }
.pricing-plan-summary { display: contents; }
/* Plan names read as tags: body-size text on a soft fill, using the product badge colours. */
.pricing-plan-summary h2 {
  justify-self: start; align-self: start; margin: 0; padding: var(--site-space-6) var(--site-space-12);
  border-radius: var(--site-radius-small); background: var(--site-color-control-active); color: var(--pr-ink);
  font-size: var(--type-body-size); font-weight: var(--type-weight-semibold); line-height: var(--type-line-body); letter-spacing: 0; white-space: nowrap;
}
.pricing-plan-enterprise .pricing-plan-summary h2 { background: var(--site-color-accent-soft); color: var(--site-color-accent-text-hover); }
.pricing-lead { margin: 0 0 var(--pr-space-5); color: var(--site-color-secondary); font-size: var(--type-body-size); line-height: var(--type-line-body); }
.pricing-price { line-height: var(--type-line-body); display: flex; flex-direction: column; justify-content: flex-start; gap: var(--pr-space-2); margin: var(--pr-space-6) 0 0; color: var(--pr-ink); }
.pricing-amount {
  font-size: var(--type-heading-2-size); font-weight: var(--type-heading-2-weight); line-height: var(--type-heading-2-line);
  letter-spacing: var(--type-heading-2-track); font-variant-numeric: tabular-nums;
}
.pricing-note { color: var(--site-color-menu-caption); font-size: var(--type-body-sm-size); line-height: var(--type-line-body); }
.pricing-plan-detail { min-width: 0; margin-top: var(--pr-space-8); padding-top: var(--pr-space-8); border-top: 1px solid var(--pr-line); }
.pricing-features { display: grid; gap: var(--pr-space-5); margin: 0; padding: 0; list-style: none; }
.pricing-features li { position: relative; margin: 0; padding: 0 0 0 var(--pr-space-6); color: var(--pr-ink); font-size: var(--type-body-size); font-weight: var(--type-weight-medium); line-height: var(--type-line-body); }
/* Check marks sit in a small soft circle that follows each plan's tag colour; decorative only. */
.pricing-features li { --pr-check-fill: var(--site-color-control-active); --pr-check-ink: var(--pr-ink); padding-left: var(--pr-space-8); }
.pricing-plan-enterprise .pricing-features li { --pr-check-fill: var(--site-color-accent-soft); --pr-check-ink: var(--site-color-accent-text-hover); }
.pricing-features li::before {
  content: ""; position: absolute; left: 0; top: calc(0.5lh - 10px);
  width: 20px; height: 20px; border-radius: var(--site-radius-circle); background: var(--pr-check-fill);
}
.pricing-features li::after {
  content: ""; position: absolute; left: 0; top: calc(0.5lh - 10px); width: 20px; height: 20px; background: var(--pr-check-ink);
  /* The check is drawn in the circle's own 20x20 box, centred on its bounds. */
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3'%3E%3Cpath d='M5 12l5 5 9-9'/%3E%3C/svg%3E") center / 12px 12px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3'%3E%3Cpath d='M5 12l5 5 9-9'/%3E%3C/svg%3E") center / 12px 12px no-repeat;
}
/* Each plan has one action that fills the card width. */
.pricing-actions { display: flex; flex-direction: column; align-items: stretch; gap: var(--pr-space-2); margin-top: var(--pr-space-8); }
.pricing-action {
  padding: 0 var(--pr-space-6); border: 1px solid transparent;
  color: var(--pr-ink); font: inherit; font-size: var(--type-body-size); font-weight: var(--type-weight-semibold); line-height: var(--type-line-body);
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 100ms ease-out, border-color 100ms ease-out;
}
.pricing-action-primary { background-color: var(--pr-accent); background-image: var(--cta-fill); background-origin: border-box; background-repeat: no-repeat; background-size: 0 100%; color: var(--header-ink); transition: border-color var(--cta-border-time) ease-out, background-size var(--cta-fill-time) ease-out var(--cta-fill-delay), color var(--cta-fill-time) ease-out var(--cta-fill-delay); }
.pricing-action-secondary { background: var(--pr-paper); border-color: var(--pr-line-strong); }
@media (hover: hover) {
  .pricing-action-primary:is(:hover, :focus-visible) { background-size: 100% 100%; border-color: var(--site-color-stego); color: var(--site-color-paper); }
  .pricing-action-secondary:hover { border-color: var(--pr-ink); }
}
.pricing-action:active { background: var(--pr-hover); }
.pricing-action-primary:active { background-size: 100% 100%; }
.pricing-action:disabled { opacity: 0.55; cursor: not-allowed; }
.pricing-action:focus-visible {
  outline: var(--site-focus-ring); outline-offset: var(--site-space-2);
}
@media (max-width: 639px) {
  .pricing-page { padding-bottom: var(--pr-space-12); }
  .pricing-plans { grid-template-columns: minmax(0, 1fr); gap: var(--pr-space-4); }
  .pricing-plan { padding: var(--pr-space-6) var(--pr-space-6) var(--pr-space-12); }
}
@media (prefers-reduced-motion: reduce) {
  .pricing-action { transition: none; }
}
}
