/* /pricing (11 Nov 2026): plans, the feature table and the billing FAQ.
   Rides the /about + /reviews sub-page look (new-page-r76.css: .page-hero, .sec.np, .page-cta);
   everything specific to this page lives here, on BRAND tokens only. */

.pr-hero { padding-bottom: 8px; }
.pr-hero h1 { max-width: 16ch; }

/* ---------- Monthly / Annual switch ---------- */
.pr-switch { display: inline-flex; margin: 24px 0 0; padding: 4px; gap: 4px; border: 1px solid var(--so-stone-300); border-radius: 999px; background: var(--so-paper-000); }
.pr-switch button { min-height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; font: 600 14px var(--so-font); color: var(--so-navy-900); cursor: pointer; transition: background-color 140ms var(--so-ease), color 140ms var(--so-ease); }
.pr-switch button:hover { background: var(--so-paper-100); }
.pr-switch button[aria-pressed="true"] { background: var(--so-navy-900); color: #fff; }
.pr-switch button:focus-visible { outline: 2px solid var(--so-navy-900); outline-offset: 2px; }
.pr-switch small { font-size: 12px; font-weight: 700; color: var(--so-gold-800); margin-left: 6px; }
.pr-switch button[aria-pressed="true"] small { color: var(--so-gold-400); }

/* ---------- Plan cards ---------- */
.pr-plans { display: grid; gap: 16px; margin-top: 20px; }
@media (min-width: 760px) { .pr-plans { grid-template-columns: 1fr 1fr; gap: 24px; max-width: 880px; } }
.plan { position: relative; display: flex; flex-direction: column; padding: 24px 20px 20px; border: 1px solid var(--so-stone-200); border-radius: 14px; background: var(--so-paper-000); }
@media (min-width: 760px) { .plan { padding: 28px 28px 24px; } }
.plan.team { border: 2px solid var(--so-navy-900); }
.plan-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.plan h2 { margin: 0; font-size: 22px; line-height: 1.2; letter-spacing: -0.02em; color: var(--so-navy-900); }
.plan .for { margin: 6px 0 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.off { flex: none; padding: 4px 10px; border-radius: 999px; background: var(--so-gold-050); border: 1px solid var(--so-gold-500); font-size: 13px; font-weight: 700; color: var(--so-gold-800); white-space: nowrap; font-variant-numeric: tabular-nums; }

.price { margin: 20px 0 0; min-height: 76px; }
.price .row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.price s { font-size: 20px; font-weight: 600; color: var(--so-ink-500); text-decoration-thickness: 2px; font-variant-numeric: tabular-nums; }
.price b { font-size: 44px; line-height: 1; font-weight: 800; letter-spacing: -0.03em; color: var(--so-navy-900); font-variant-numeric: tabular-nums; }
.price .per { font-size: 15px; font-weight: 600; color: var(--ink-2); }
.price .sub { margin: 8px 0 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.price .sub strong { color: var(--so-success-600, #15803d); font-weight: 700; }

/* the period lives on .pr (data-period); both sets are in the markup so no-JS shows Monthly */
.pr[data-period="month"] [data-p="year"], .pr[data-period="year"] [data-p="month"] { display: none; }
@media (prefers-reduced-motion: no-preference) { .pr .swap { animation: prFade 160ms var(--so-ease) both; } }
@keyframes prFade { from { opacity: 0; } to { opacity: 1; } }

.plan .btn { margin-top: 20px; min-height: 48px; width: 100%; justify-content: center; font-size: 15px; }
.plan ul { list-style: none; margin: 20px 0 0; padding: 16px 0 0; border-top: 1px solid var(--so-stone-200); display: grid; gap: 10px; }
.plan li { position: relative; padding-left: 26px; font-size: 15px; line-height: 1.45; color: var(--so-ink-900); }
.plan li::before { content: ""; position: absolute; left: 2px; top: 4px; width: 14px; height: 8px; border-left: 2.5px solid var(--so-navy-900); border-bottom: 2.5px solid var(--so-navy-900); transform: rotate(-45deg); }

.pr-trial { margin: 20px 0 0; max-width: 880px; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.pr-trial b { color: var(--so-navy-900); }

/* ---------- Feature table ---------- */
.cmp-head { margin-bottom: 20px; }
.cmp-head p { margin: 10px 0 0; font-size: 16px; color: var(--ink-2); max-width: 52ch; }
.cmp { width: 100%; max-width: 960px; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-variant-numeric: tabular-nums; }
.cmp col.c-plan { width: 22%; }
@media (min-width: 760px) { .cmp col.c-plan { width: 160px; } }
.cmp thead th { position: sticky; top: 0; z-index: 2; background: var(--so-paper-050, #fcfbf9); padding: 12px 8px; border-bottom: 2px solid var(--so-navy-900);
  font: 700 15px/1.25 var(--so-font); letter-spacing: 0; text-transform: none; color: var(--so-navy-900); text-align: center; vertical-align: bottom; }
.cmp thead th:first-child { text-align: left; padding-left: 0; }
.cmp thead th span { display: block; margin-top: 2px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.cmp tbody th[colspan] { padding: 28px 0 8px; text-align: left; font: 700 17px/1.3 var(--so-font); letter-spacing: -0.01em; text-transform: none; color: var(--so-navy-900); border-bottom: 1px solid var(--so-stone-300); }
.cmp td, .cmp tbody th[scope="row"] { padding: 12px 8px; border-bottom: 1px solid var(--so-stone-200); vertical-align: top; }
.cmp tbody th[scope="row"] { padding-left: 0; text-align: left; font: 600 15px/1.35 var(--so-font); letter-spacing: 0; text-transform: none; color: var(--so-ink-900); }
.cmp tbody th[scope="row"] small { display: block; margin-top: 3px; font-size: 14px; font-weight: 500; line-height: 1.45; color: var(--ink-2); }
.cmp td { text-align: center; }
.yes, .no { display: inline-block; width: 22px; height: 22px; margin-top: 2px; position: relative; }
.yes::before { content: ""; position: absolute; left: 4px; top: 4px; width: 13px; height: 7px; border-left: 2.5px solid var(--so-success-600, #15803d); border-bottom: 2.5px solid var(--so-success-600, #15803d); transform: rotate(-45deg); }
.no::before { content: ""; position: absolute; left: 5px; top: 10px; width: 12px; height: 2px; background: var(--so-ink-500); }
.cmp td .note { display: block; margin-top: 2px; font-size: 13px; color: var(--ink-2); }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin-top: 16px; border-top: 1px solid var(--so-stone-300); }
.faq details { border-bottom: 1px solid var(--so-stone-200); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; align-items: center; min-height: 56px; padding: 14px 0; cursor: pointer; list-style: none; font-size: 16px; font-weight: 600; line-height: 1.4; color: var(--so-navy-900); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; border: 1px solid var(--so-stone-300); border-radius: 50%; display: grid; place-items: center; font-size: 18px; font-weight: 500; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq summary:focus-visible { outline: 2px solid var(--so-navy-900); outline-offset: 2px; border-radius: 4px; }
.faq details p { margin: 0 0 18px; font-size: 15.5px; line-height: 1.65; color: var(--ink-2); max-width: 62ch; }

.pr .sec.np { padding-top: 48px; padding-bottom: 48px; }
@media (max-width: 720px) { .pr .sec.np { padding-top: 36px; padding-bottom: 36px; } .price b { font-size: 40px; } }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* review fixes: shared table styles set th to nowrap; plans align row by row on desktop */
.cmp th, .cmp td { white-space: normal; overflow-wrap: anywhere; }
.cmp tbody th[scope="row"] small { overflow-wrap: normal; }
@media (min-width: 760px) {
  .pr-plans { max-width: 960px; grid-template-rows: auto auto auto auto 1fr; }
  .plan { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; }
  .pr-trial, .cmp { max-width: 960px; }
}
.plan ul { align-content: start; }

/* critic round 1 */
.pr-hero.page-hero { padding-top: 32px; }
.pr-hero .lede { margin-top: 10px; }
.plan .t-note { margin: 8px 0 0; font-size: 13px; text-align: center; color: var(--ink-2); }
.cmp tbody tr:last-child td, .cmp tbody tr:last-child th { border-bottom: 1px solid var(--so-stone-200); }
.cmp tbody tr:hover { background: transparent; }
@media (min-width: 760px) { .pr-plans, .pr-trial, .cmp { max-width: none; } .plan { grid-row: span 6; } .pr-plans { grid-template-rows: auto auto auto auto auto 1fr; } }
@media (max-width: 720px) {
  .pr-hero.page-hero { padding-top: 20px; }
  .pr-hero h1 { font-size: 2.1rem; }
  .pr-switch { margin-top: 16px; }
  .cmp col.c-plan { width: 19%; }
  .cmp tbody th[scope="row"] small { font-size: 13px; }
}
