/* pricing.css: /pricing (web/pricing.html, pages/pricing.js). Loaded after whizply.css and
 * home.css, and like them TOKENS ONLY: every colour, radius, shadow and curve is a whizply.css
 * custom property (home.css's --slate and --canvas included), so the Violet and Warm palettes and
 * dark mode apply by themselves. Free sits on a white card; Pro on the navy band (whizply.css
 * `.wz-band--navy` remaps every token inside it), the way the home page's bands alternate. */

.pr-hero { padding-top: 88px; padding-bottom: 72px; }
.pr-lead {
  margin: 20px auto 0; max-width: 60ch; font-size: clamp(16px, 1.3vw, 18px); line-height: 1.55;
  font-weight: 600; color: var(--slate);
}

.pr-plans {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: stretch;
  max-width: 980px; margin: 0 auto;
}
.pr-plan {
  display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 30px 30px 32px;
  border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow-sm);
}
.pr-plan--pro { border-color: transparent; box-shadow: var(--shadow-lg); }

.pr-plan__top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.pr-plan__name {
  margin: 0 auto 0 0; font-size: var(--fs-xl); font-weight: 800; letter-spacing: var(--ls-h2);
  color: var(--ink-heading, var(--ink));
}
.pr-plan__badge {
  display: inline-flex; align-items: center; padding: 4px 11px; border-radius: var(--pill);
  background: var(--accent-soft); color: var(--accent-ink); font-size: var(--fs-xs); font-weight: 700;
}
.pr-plan__badge--mine { background: var(--ok); color: var(--ok-ink); }

.pr-plan__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 4px 0 0; }
.pr-plan__amount {
  font-size: clamp(36px, 3.4vw, 46px); font-weight: 800; line-height: 1.05; letter-spacing: var(--ls-display);
  font-variant-numeric: tabular-nums; color: var(--ink-heading, var(--ink));
}
.pr-plan__per { font-size: var(--fs-md); font-weight: 600; color: var(--sub); }
.pr-plan__pass { margin: -6px 0 0; font-size: var(--fs-md); font-weight: 600; color: var(--sub); }
.pr-plan__desc { margin: 0; font-size: 15.5px; line-height: 1.55; font-weight: 500; color: var(--slate); }

.pr-plan__cta { align-self: stretch; margin-top: 4px; }
/* Payments are not open: a crisp but plainly unavailable button, never a fake checkout. */
.pr-soon:disabled {
  opacity: 1; cursor: not-allowed; background: transparent; color: var(--sub);
  border: 1px dashed var(--line-control);
}
.pr-soon:disabled:hover, .pr-soon:disabled:active { background: transparent; transform: none; }
.pr-soon:disabled::after { display: none; }
.pr-plan__note { margin: -4px 0 0; font-size: var(--fs-sm); font-weight: 600; line-height: 1.5; color: var(--sub); }

.pr-list__lead { margin: 8px 0 -4px; font-size: var(--fs-sm); font-weight: 700; color: var(--ink); }
.pr-list {
  display: grid; gap: 10px; margin: 8px 0 0; padding: 18px 0 0; list-style: none;
  border-top: 1px solid var(--line);
}
.pr-list li {
  position: relative; padding-left: 30px; font-size: 15px; line-height: 1.5; font-weight: 500; color: var(--ink);
}
/* A tick drawn in the plan's accent (tokens, no image): a disc and a turned corner. */
.pr-list li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent-soft);
}
.pr-list li::after {
  content: ""; position: absolute; left: 7px; top: 6px; width: 5px; height: 9px;
  border-right: 2px solid var(--accent-deep); border-bottom: 2px solid var(--accent-deep); transform: rotate(45deg);
}

.pr-fine { max-width: 980px; margin: 18px auto 0; text-align: center; font-size: var(--fs-sm); font-weight: 600; color: var(--sub); }

.pr-faq { padding-top: 24px; }
.pr-faq .hm-head { margin-bottom: 32px; }

@media (max-width: 860px) {
  .pr-plans { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
}
@media (max-width: 640px) {
  .pr-hero { padding-top: 48px; padding-bottom: 56px; }
  .pr-plan { padding: 24px 22px 26px; }
}

/* prices paint once the region is known; reserve their line so the cards do not jump */
.pr-plan__price[hidden] { display: block; visibility: hidden; }
.pr-attrib { margin-top: var(--space-1); font-size: var(--fs-xs); }
