/* css/pricing.css — the /pricing tier grid.  Prefix: `prc-`
 *
 * Loaded AFTER legal.css, which this page still uses for the header block and
 * the closing callout (pricing sits beside /terms and /refunds in the footer,
 * so the page head reads the same as its siblings). `legal-` and `prc-` cannot
 * collide — DESIGN.md §4.
 *
 * 🔴 THE GRID USES A CONTAINER QUERY, NOT A MEDIA QUERY, AND THAT IS
 * LOAD-BEARING. The desktop sidebar appears at 769px and takes --sidebar-w
 * (220px), so a 780px WINDOW gives these cards LESS room than a 600px one. A
 * viewport breakpoint therefore switches to three columns at exactly the width
 * where three columns stop fitting. Same lesson as the /history compare cards.
 *
 * Every colour is a base token. The page has two grounds (the site's light
 * palette is desert sand), so an inline colour reads correctly in one and
 * wrong in the other — DESIGN.md §2.
 */

/* ── the two-routes strip ──────────────────────────────────────── */
.page-pricing .prc-ways {
  display: flex; flex-wrap: wrap; gap: var(--sp-3);
  align-items: center; justify-content: center;
  margin: 0 0 var(--sp-6);
  padding: var(--sp-4) var(--sp-5);
  border: 1px solid var(--accent-border);
  border-radius: var(--r-lg);
  background: var(--glass-bg);
  color: var(--text-2); font-size: 14px; line-height: 1.55; text-align: center;
}
.page-pricing .prc-ways strong { color: var(--text-1); }
.page-pricing .prc-ways-or {
  font-family: var(--font-data); font-size: 12px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent);
  padding: 2px 10px; border: 1px solid var(--accent-border); border-radius: 999px;
  flex: 0 0 auto;
}

/* ── the grid ──────────────────────────────────────────────────── */
.page-pricing .prc-grid-wrap { container-type: inline-size; }
.page-pricing .prc-grid {
  display: grid; grid-template-columns: 1fr;
  gap: var(--sp-4); margin: 0 0 var(--sp-4); padding: 0; list-style: none;
  align-items: start;          /* a short card must not stretch to a tall one */
}
/* Two steps, not one. With only a viewport query this went 3 columns at 768px
   (no sidebar yet) straight to 1 at 820px (sidebar shown, ~580px of container)
   — the page LOST columns as the window got WIDER. Measured, not guessed. */
@container (min-width: 460px) {
  .page-pricing .prc-grid { grid-template-columns: repeat(2, 1fr); }
}
@container (min-width: 680px) {
  .page-pricing .prc-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── a tier card ───────────────────────────────────────────────── */
.page-pricing .prc-tier {
  position: relative; display: flex; flex-direction: column;
  padding: var(--sp-5); border: 1px solid var(--border-2);
  border-radius: var(--r-xl); background: var(--bg-2);
}
.page-pricing .prc-tier.is-feat {
  border-color: var(--accent-border);
  box-shadow: var(--shadow-accent);
  background: var(--bg-3);
}
.page-pricing .prc-badge {
  position: absolute; top: -11px; left: var(--sp-5);
  font-family: var(--font-data); font-size: 11px; letter-spacing: .06em;
  text-transform: uppercase; padding: 3px 10px; border-radius: 999px;
  background: var(--accent); color: var(--bg-root); font-weight: 600;
}
.page-pricing .prc-name {
  margin: 0; font-size: 19px; line-height: 1.2; color: var(--text-1);
  border: 0; padding: 0;                 /* legal.css puts a rule under h2 */
}
.page-pricing .prc-for { margin: 4px 0 0; font-size: 13px; color: var(--text-2); }

.page-pricing .prc-price {
  font-family: var(--font-data); font-size: 34px; line-height: 1.05;
  color: var(--text-1); margin: var(--sp-4) 0 0;
  font-variant-numeric: tabular-nums;
}
.page-pricing .prc-price small {
  font-family: var(--font-ui); font-size: 14px; color: var(--text-2);
}
.page-pricing .prc-alt { margin: 6px 0 0; font-size: 13px; color: var(--text-2); }
.page-pricing .prc-save {
  display: inline-block; margin-left: 6px; padding: 1px 8px;
  font-size: 11.5px; border-radius: var(--r-sm);
  border: 1px solid var(--accent-border); color: var(--accent);
}

/* The one-line reason to pick this tier. On Pro it carries the whole pitch,
   so it is the only place on the card with the accent ground. */
.page-pricing .prc-hook {
  margin: var(--sp-4) 0 0; padding: 9px 11px;
  border-radius: var(--r-md); border: 1px solid var(--border-2);
  background: var(--bg-1); color: var(--text-1);
  font-size: 13.5px; line-height: 1.45;
}
.page-pricing .prc-tier.is-feat .prc-hook {
  border-color: var(--accent-border); color: var(--text-1);
}
.page-pricing .prc-hook strong { color: var(--accent); }

/* ── call to action ────────────────────────────────────────────── */
.page-pricing .prc-cta {
  display: block; margin: var(--sp-4) 0 0; padding: 11px var(--sp-4);
  border-radius: var(--r-md); text-align: center; text-decoration: none;
  font-size: 14.5px; font-weight: 600;
  background: var(--accent); color: var(--bg-root);
  border: 1px solid var(--accent);
  transition: filter .15s ease;
}
.page-pricing .prc-cta:hover { filter: brightness(1.08); }
.page-pricing .prc-cta.is-ghost {
  background: transparent; color: var(--text-1); border-color: var(--border-3);
}
.page-pricing .prc-cta.is-ghost:hover { border-color: var(--accent-border); color: var(--accent); }
.page-pricing .prc-cta.is-none {
  background: transparent; border-color: transparent; color: var(--text-2);
  cursor: default; font-weight: 500;
}
.page-pricing .prc-cta.is-none:hover { filter: none; }

/* ── feature list ──────────────────────────────────────────────── */
.page-pricing .prc-feat { margin: var(--sp-4) 0 0; padding: 0; list-style: none; }
.page-pricing .prc-feat li {
  position: relative; margin: 0 0 7px; padding-left: 22px;
  font-size: 13.5px; line-height: 1.5; color: var(--text-2);
}
.page-pricing .prc-feat li::before {
  content: ""; position: absolute; left: 3px; top: 6px;
  width: 9px; height: 5px; border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}
.page-pricing .prc-feat li strong { color: var(--text-1); font-weight: 600; }
/* A line that states a LIMIT rather than a benefit gets no tick — a tick on
   "seats cannot be swapped" reads as though the limit were a feature. */
.page-pricing .prc-feat li.is-note { padding-left: 0; color: var(--text-2); font-size: 12.5px; }
.page-pricing .prc-feat li.is-note::before { content: none; }

/* ── the Leader band (full width under the grid) ───────────────── */
.page-pricing .prc-wide {
  display: grid; grid-template-columns: 1fr; gap: var(--sp-4);
  padding: var(--sp-5); margin: 0 0 var(--sp-6);
  border: 1px solid var(--border-2); border-radius: var(--r-xl);
  background: var(--bg-2);
}
@container (min-width: 680px) {
  .page-pricing .prc-wide { grid-template-columns: 1fr 1.25fr; align-items: center; }
}
.page-pricing .prc-wide .prc-cta { max-width: 260px; }

/* ── phones ────────────────────────────────────────────────────── */
/* 🔴 384px is the owner's own handset (Android Chrome, dPR 2.8125) and a
   natural sweep goes 360 → 390 straight past it. Test that width. */
@media (max-width: 480px) {
  .page-pricing .prc-tier,
  .page-pricing .prc-wide { padding: var(--sp-4); }
  .page-pricing .prc-price { font-size: 30px; }
  .page-pricing .prc-ways { padding: var(--sp-4); font-size: 13.5px; }
}

/* The "you don't have to subscribe" line under the Pro CTA.
   ⚠ Pro card ONLY — a coffee grants `pro`, never `proPlus`, so the same
   sentence on the Pro+ card would promise history it cannot buy. It is styled
   as a quiet alternative rather than a second CTA: it must not compete with
   Get Pro, only reassure the reader who was about to bounce off "recurring". */
.page-pricing .prc-escape {
  margin: 10px 0 0; font-size: 12.5px; line-height: 1.5;
  color: var(--text-2); text-align: center;
}
.page-pricing .prc-escape a { color: var(--accent); text-decoration: none; font-weight: 600; }
.page-pricing .prc-escape a:hover { text-decoration: underline; }
