/* /pricing — comparison-first membership page.
   Editorial data sheet on the same instrument-panel tokens as the board, so the thing you buy looks
   like the thing you get. No JavaScript: a price list is text and choosing a plan is a native
   control on /checkout, so there is no state here to hydrate.
   Green is absent on purpose — product-wide it means "a slot is open". Affirmatives are brand cyan,
   caveats are accent orange. */

/* Both families were already in /fonts but no @font-face existed anywhere, so every page was
   silently rendering in the system stack. Move these three blocks into dashboard.css to fix the
   whole site; they live here because this is the page that needed them. */
@font-face {
  font-family: "Inter Tight";
  src: url("/fonts/inter-tight-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
  font-weight: 500; font-display: swap;
}

/* Declared on the body element, which is where dashboard.css resolves them. */
.pricing {
  --sans: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --paid: color-mix(in oklch, var(--brand) 9%, transparent);
}

/* --- hero --- */
.p-brand img { display: block; height: 40px; width: auto; margin-bottom: 1.4rem; }
.eyebrow { font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .16em; color: var(--brand); margin-bottom: 14px; }
.pricing .hero h1 { max-width: 30ch; font-weight: 600; }
.pricing .hero h1 em { font-style: normal; color: var(--brand); }
.sub { max-width: 62ch; margin-bottom: 18px; }

/* --- comparison table ---
   A real table, so assistive tech announces "Member — yes" instead of reading a wall of divs.
   table-layout: fixed keeps three columns inside a 320px viewport, which is why there is no
   horizontal scroll region here needing its own tab stop. */
.cmp { width: 100%; table-layout: fixed; border-collapse: collapse; }
.cmp caption { text-align: left; max-width: 62ch; margin-bottom: 18px; color: var(--text-dim); font-size: clamp(15px, .4vw + 14px, 17px); line-height: 1.55; }
.c-what { width: 46%; }
.c-free { width: 26%; }
/* background on <col> lifts a whole column in one declaration, instead of nth-child on every cell.
   Cell backgrounds stay transparent so this layer shows through. */
.c-paid { width: 28%; background: var(--paid); }

.cmp thead th { vertical-align: bottom; text-align: left; padding: 0 12px 12px; border-bottom: 1px solid var(--edge-strong); }
.cmp thead .hl { border-bottom-color: var(--brand); }
.col-name { display: block; font: 600 15px/1.1 var(--sans); letter-spacing: -.01em; color: var(--text); }
.hl .col-name { color: var(--brand); }
.col-price { display: block; margin-top: 4px; font: 400 11px/1.2 var(--mono); color: var(--text-faint); }

.cmp tbody th, .cmp tbody td { padding: 11px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--edge); font-size: 13px; line-height: 1.45; }
.cmp tbody th[scope="row"] { font-weight: 400; color: var(--text-dim); transition: color 160ms var(--ease); }
.cmp tbody tr:hover th[scope="row"] { color: var(--text); }
.cmp tbody:last-of-type tr:last-child th, .cmp tbody:last-of-type tr:last-child td { border-bottom: 0; }

/* Row-group headings. Two classes outrank `.cmp tbody th`, so no !important needed. */
.cmp .grp th { padding: 30px 12px 8px; border-bottom: 1px solid var(--edge-strong); font: 500 10.5px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .13em; color: var(--text-faint); }
.cmp tbody:first-of-type .grp th { padding-top: 14px; }

.cmp .y { color: var(--text); }
.cmp .n { color: var(--text-faint); }
/* Same tick in both columns, drawn from two borders — no icon library, no SVG sprite. */
.cmp .y::before {
  content: ""; display: inline-block; width: .42em; height: .74em; margin-right: .5em;
  vertical-align: middle; border: solid var(--brand); border-width: 0 2px 2px 0;
  transform: translateY(-.15em) rotate(45deg);
}
.cmp .cost th[scope="row"] { color: var(--text); }
.cmp .cost td { font: 500 12.5px/1.5 var(--mono); color: var(--text); }

/* --- prices --- */
.tiers { list-style: none; margin: 0; padding: 0; align-items: start; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.tier {
  display: grid; gap: 5px; align-content: start; padding: 18px 18px 20px;
  border: 1px solid var(--edge); border-radius: var(--radius); background: var(--surface);
  transition: transform 200ms var(--ease), border-color 200ms var(--ease);
  animation: rise 420ms var(--ease) both;
}
/* No opacity in the base rule, so the reduced-motion `animation: none` in dashboard.css leaves
   these visible rather than blank. */
@keyframes rise { from { opacity: 0; transform: translateY(9px); } }
.tier:nth-child(2) { animation-delay: 70ms; }
.tier:nth-child(3) { animation-delay: 140ms; }
.tier:hover { transform: translateY(-2px); border-color: var(--edge-strong); }

.tier h3 { margin: 0 0 3px; font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--text-faint); }
.price { font: 600 clamp(27px, 2.6vw, 33px)/1 var(--mono); letter-spacing: -.03em; color: var(--text); }
.per { font: 400 12px/1 var(--mono); color: var(--brand); }
.tier .small { font-size: 12.5px; line-height: 1.5; color: var(--text-faint); }
.tier .who { margin-top: 7px; padding-top: 11px; border-top: 1px solid var(--edge); font-size: 13px; line-height: 1.5; color: var(--text-dim); }

.tier.best { background: var(--surface-raised); border-color: color-mix(in oklch, var(--brand) 42%, transparent); }
.flag { justify-self: start; margin-bottom: 5px; padding: 4px 8px; border-radius: 999px; font: 600 9.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .12em; background: var(--brand); color: var(--brand-ink); }
/* Overlap, so the suggested option sits forward of the row rather than merely tinted. */
@media (min-width: 700px) { .tier.best { margin-top: -14px; padding-bottom: 34px; } }

/* --- before you pay ---
   Accent orange and a heavier border than anything else on the page, because this is the one
   section a buyer must not skim past. */
#before { border-top-color: color-mix(in oklch, var(--accent) 30%, transparent); }
.pre {
  padding: 18px 20px; border-radius: var(--radius-sm);
  border: 1px solid color-mix(in oklch, var(--accent) 32%, transparent);
  border-left: 3px solid var(--accent);
  background: color-mix(in oklch, var(--accent) 7%, transparent);
}
.pre-hard { display: flex; gap: 11px; align-items: flex-start; margin-bottom: 15px; color: var(--text); font-size: 15px; font-weight: 500; line-height: 1.5; }
.ico { flex: none; width: 19px; height: 19px; margin-top: 1px; color: var(--accent); }
.pre ul { display: grid; gap: 9px; margin: 0; padding-left: 18px; }
.pre li { font-size: 13.5px; line-height: 1.55; }
.pre strong { color: var(--text); font-weight: 600; }

/* --- pay --- */
.pay { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 26px; }
.pay .button.primary { padding: 14px 24px; font-size: 15px; }
.pay .note { flex: 1 1 100%; margin-top: 4px; }
.pricing .note { font-size: 12.5px; line-height: 1.55; color: var(--text-faint); }
.pricing .note a { color: var(--brand); text-decoration: none; border-bottom: 1px solid color-mix(in oklch, var(--brand) 45%, transparent); transition: border-color 160ms var(--ease); }
.pricing .note a:hover { border-bottom-color: var(--brand); }

/* .button had no focus style at all in landing.css. Cyan on cyan is invisible, so the filled
   button rings in text colour instead. */
.pricing a:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
.pricing .button.primary:focus-visible { outline-color: var(--text); }

@media (max-width: 620px) {
  .cmp caption { font-size: 15px; margin-bottom: 15px; }
  .cmp thead th { padding: 0 8px 10px; }
  .cmp tbody th, .cmp tbody td { padding: 10px 8px; font-size: 12px; }
  .cmp .grp th { padding: 24px 8px 7px; }
  .cmp .cost td { font-size: 11.5px; }
  .c-what { width: 44%; }
  .c-free { width: 27%; }
  .c-paid { width: 29%; }
  .pay .button { flex: 1 1 100%; text-align: center; }
}
