/* Pricing page. Built by scripts/build-pricing.mjs. Uses the tokens in style.css only, so dark mode swaps them.
   Moves taken: Linear's rule-split columns, Notion's period switch with the save note and one tinted Recommended
   column, Superhuman's one filled button. Literata sets the H1 only. */

.pricing .page-head { border-bottom: 0; padding-bottom: 8px; }
.pricing .page-head h1 { font-family: "Literata", "Literata Fallback", Georgia, serif; font-optical-sizing: auto; font-weight: 500; font-size: clamp(36px, 5.2vw, 62px); line-height: 1.04; letter-spacing: -0.025em; max-width: 15em; }
.pricing .page-lede { max-width: 40em; }
.pricing .page-meta { margin-top: 14px; }

/* ---------- the period bar ---------- */
.pr { margin-top: 28px; }
.pr [hidden] { display: none !important; }
.pr-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.pr-toggle { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--sunk); }
.pr-toggle button { font: inherit; font-size: 14px; font-weight: 500; min-height: 36px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; transition: background .15s, color .15s; }
.pr-toggle button:hover { color: var(--ink); }
.pr-toggle button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line-strong); }
.pr-toggle button:focus-visible, .pr-jump a:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.pr-jump { display: inline-flex; gap: 14px; margin: 0; font-size: 14px; font-weight: 500; }
.pr-jump a { color: var(--blue-deep); }
.pr-save { font-size: 13px; font-weight: 600; color: var(--blue-ink); background: var(--blue-soft); border-radius: 999px; padding: 5px 11px; }
.pr-cur { margin-left: auto; font-size: 14px; color: var(--muted); }
.pr-launch { margin: 16px 0 0; font-size: 15px; color: var(--muted); }
.pr-launch b { color: var(--ink); font-weight: 600; }

/* ---------- the plan columns ---------- */
.pr-period { margin-top: 28px; }
.pr-period + .pr-period { margin-top: 56px; }
.pr-period-h { margin: 0 0 16px; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.pr.is-js .pr-period-h { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.pr.is-js .pr-period + .pr-period { margin-top: 28px; }
.pr-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(7, auto); border-top: 1px solid var(--line-strong); }
.pl { display: grid; grid-row: span 7; grid-template-rows: subgrid; row-gap: 0; align-content: start; padding: 22px 22px 26px; box-shadow: inset 1px 0 0 var(--line); min-width: 0; }
.pl:first-child { box-shadow: none; padding-left: 0; }
.pl.is-rec { background: var(--blue-soft); box-shadow: none; border-radius: 0 0 16px 16px; padding-left: 22px; }
.pl.is-rec + .pl { box-shadow: none; }
.pl-h { display: flex; align-items: center; gap: 10px; min-height: 28px; }
.pl-h h3 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.pl-badge { font-size: 12px; font-weight: 600; color: var(--surface); background: var(--blue); border-radius: 999px; padding: 3px 10px; }
.pl-for { margin: 6px 0 0; font-size: 15px; line-height: 1.45; color: var(--muted); text-wrap: pretty; }
.pl-price { margin: 22px 0 0; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.pl-amt { font-size: 46px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; color: var(--ink); }
.pl-per { font-size: 15px; color: var(--muted); }
.pl-then { margin: 8px 0 0; font-size: 15px; color: var(--ink); font-variant-numeric: tabular-nums; }
.pl-then s { color: var(--faint); margin-right: 2px; }
.pl-btn { width: 100%; margin: 20px 0 24px; align-self: start; }
.pl.is-rec .pl-btn { box-shadow: none; }
.pl:not(.is-rec) .pl-btn { background: var(--surface); }
.pl-sec { padding-top: 16px; border-top: 1px solid var(--line); }
.pl-sec + .pl-sec { margin-top: 20px; }
.pl.is-rec .pl-sec { border-top-color: var(--line-strong); }
.pl-k { margin: 0 0 10px; font-size: 13px; font-weight: 600; color: var(--ink); }
.pl-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 14.5px; line-height: 1.4; }
.pl-list li { display: flex; gap: 9px; align-items: flex-start; }
.pl-list .gi { width: 15px; height: 15px; margin-top: 2px; color: var(--blue); }
.pl-soon { display: inline-block; margin-left: 6px; font-size: 12px; font-weight: 500; color: var(--muted); background: var(--sunk); border-radius: 999px; padding: 1px 8px; white-space: nowrap; }
.pl.is-rec .pl-soon { background: var(--surface); }
.pr-index { display: none; }
.ct-hint { display: none; }
.pr[data-period="annual"] .pr-index { display: none !important; }
.pr-note { margin: 18px 0 0; font-size: 14px; color: var(--muted); }

/* ---------- what Free gives: three steps in order ---------- */
.pr-free { margin-top: 72px; padding-top: 40px; border-top: 1px solid var(--line); }
.pr-free h2, .pr-cmp h2 { font-size: clamp(26px, 2.6vw, 32px); line-height: 1.15; letter-spacing: -0.03em; font-weight: 600; margin: 0 0 8px; scroll-margin-top: 96px; }
.pf-steps { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.pf-steps li { padding: 4px 24px 4px 0; }
.pf-steps li + li { padding-left: 24px; box-shadow: inset 1px 0 0 var(--line); }
.pf-n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-strong); font-size: 14px; font-weight: 600; color: var(--blue-ink); font-variant-numeric: tabular-nums; }
.pf-steps h3 { margin: 14px 0 6px; font-size: 18px; font-weight: 600; letter-spacing: -0.015em; }
.pf-steps p { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.pf-steps a { display: inline-block; margin-top: 10px; font-size: 15px; font-weight: 500; color: var(--blue-deep); }

/* ---------- comparison table ---------- */
.pr-cmp { margin-top: 72px; padding-top: 40px; border-top: 1px solid var(--line); }
.pr-sub { margin: 0; max-width: 46em; font-size: 15.5px; color: var(--muted); }
.ct-wrap { position: relative; margin-top: 20px; overflow-x: auto; }
.ct-wrap:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.ct { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; line-height: 1.45; font-variant-numeric: tabular-nums; }
.ct thead th { padding: 12px 10px; font-size: 16px; font-weight: 600; text-align: center; background: var(--bg); border-bottom: 1px solid var(--line-strong); }
.ct thead th.is-rec { color: var(--blue-ink); }
.ct thead td { border-bottom: 1px solid var(--line-strong); }
.ct th[scope="row"] { text-align: left; font-weight: 400; color: var(--ink); padding: 11px 12px 11px 0; width: 32%; position: sticky; left: 0; z-index: 1; background: var(--bg); }
.ct td { text-align: center; padding: 11px 10px; color: var(--ink); }
.ct tbody tr { border-bottom: 1px solid var(--line); }
.ct td.is-rec { background: var(--blue-soft); }
.ct .ct-g { border-bottom: 1px solid var(--line-strong); }
.ct .ct-g th { padding: 28px 0 10px; text-align: left; font-size: 14px; font-weight: 600; color: var(--muted); }
.ct-yes .gi { width: 17px; height: 17px; color: var(--blue); }
.ct-no .gi { width: 15px; height: 15px; color: var(--faint); }
.ct-tag { font-size: 12.5px; font-weight: 500; color: var(--muted); white-space: nowrap; }

.pr-cta { margin-top: 64px; }

/* ---------- smaller screens ---------- */
@media (max-width: 1040px) {
  .pr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; gap: 16px; border-top: 0; }
  .pl, .pl:first-child, .pl.is-rec + .pl { display: flex; flex-direction: column; grid-row: auto; padding: 22px; box-shadow: inset 0 0 0 1px var(--line); border-radius: 16px; }
  .pl.is-rec { box-shadow: none; border-radius: 16px; }
}
@media (max-width: 720px) {
  .pr-grid { grid-template-columns: minmax(0, 1fr); }
  .pr-index { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 14px 0 0; padding: 0; list-style: none; }
  .pr-index a { display: grid; gap: 2px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; font-size: 13px; color: var(--muted); text-decoration: none; background: var(--surface); }
  .pr-index a:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
  .pr-index b { font-size: 17px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
  .pr-index small { font-size: 11.5px; color: var(--muted); }
  .pr-index .is-rec a { background: var(--blue-soft); border-color: transparent; }
  .pr-index .is-rec span { color: var(--blue-ink); font-weight: 600; }
  .ct-hint { display: block; margin: 12px 0 -12px; font-size: 14px; color: var(--muted); }
  .pr.is-js .pr-index { display: grid; }
  .ct th[scope="row"] { width: 40%; min-width: 140px; }
  .pl { scroll-margin-top: 80px; }
  .pr-cur { margin-left: 0; width: 100%; }
  .pf-steps { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .pf-steps li, .pf-steps li + li { padding: 0; box-shadow: none; }
  .pf-steps li + li { padding-top: 20px; border-top: 1px solid var(--line); }
  .pl-amt { font-size: 42px; }
}
@media (prefers-reduced-motion: reduce) { .pr-toggle button { transition: none; } }
