/* Pricing page only. Shared tokens and classes live in /styles.css.
   Order: title → Personal/Business tabs → three calm cards → collapsed comparison → FAQ → CTA band. */

/* Title */

/* Tabs: just "Personal" and "Business" */
.plan-tabs { scroll-margin-top: 16px; }
.plan-tabs .tab-labels { display: flex; width: max-content; margin: 0 0 var(--s-4); border: 1px solid var(--line); gap: 2px; }
.plan-tabs .tab-labels label { padding: 10px 26px; font-weight: 500; font-size: var(--fs-body); }
.pr-panel-note { color: var(--muted); font-size: var(--fs-sm); margin: 0 0 var(--s-7); }

/* Monthly / Yearly (owner 2026-10-14): monthly first; Yearly carries a lemon "2 months free" pill. Yearly shows the
   monthly equivalent with the monthly price struck through and "Billed $X yearly". CSS only: the yearly bits carry
   [hidden] (text readers and no-CSS get the monthly price) and show when #bill-year is checked (!important beats styles.css [hidden]). */
.pr-switches { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 0 0 var(--s-4); }
.plan-tabs .pr-switches .tab-labels { margin: 0; }
.pr-interval { display: inline-flex; gap: 4px; padding: 4px; border: 1.5px solid var(--line-strong); border-radius: 999px; background: var(--surface); }
.pr-interval label { cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; font-weight: 700; font-size: var(--fs-sm); color: var(--ink); }
.pr-save { display: inline-block; padding: 3px 9px; border-radius: 999px; background: var(--field); color: var(--ink); font: 700 12px/1.2 var(--body); white-space: nowrap; }
#bill-month:checked ~ .pr-switches label[for="bill-month"], #bill-year:checked ~ .pr-switches label[for="bill-year"] { background: var(--ink); color: var(--surface); }
#bill-month:focus-visible ~ .pr-switches label[for="bill-month"], #bill-year:focus-visible ~ .pr-switches label[for="bill-year"] { outline: 3px solid var(--primary); outline-offset: 3px; }
#tab-personal:checked ~ .pr-switches .tab-labels label[for="tab-personal"], #tab-business:checked ~ .pr-switches .tab-labels label[for="tab-business"] { background: var(--primary); color: var(--on-primary); }
#tab-personal:focus-visible ~ .pr-switches .tab-labels label[for="tab-personal"], #tab-business:focus-visible ~ .pr-switches .tab-labels label[for="tab-business"] { outline: 3px solid var(--primary); outline-offset: 3px; }
#bill-year:checked ~ .tab-panel .pr-m { display: none; }
#bill-year:checked ~ .tab-panel .pr-y[hidden] { display: inline !important; }
#bill-year:checked ~ .tab-panel .pr-billed[hidden] { display: block !important; }
.pr-cards .price s { font-size: 0.5em; font-weight: 500; color: var(--muted); margin-right: 6px; vertical-align: 0.35em; }
.pr-cards .pr-billed { margin: 4px 0 0; font-size: var(--fs-sm); color: var(--muted); }

/* Cards: name, price, who it's for, button, a few ticks. Rows line up across cards (subgrid). */
.pr-cards { display: grid; gap: var(--s-5); }
.pr-cards .plan-card { display: grid; row-gap: 0; align-content: start; padding: var(--s-6) 28px; }
/* Side by side: seven shared rows (name, price, optional yearly line, for, button, optional .plan-note, list) so every card's list starts level. */
@media (min-width: 900px) {
  .pr-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pr-cards .plan-card { grid-row: span 7; grid-template-rows: subgrid; }
  /* Rows by role, so a card without a note or a yearly line still lines up (row 3: "Billed $X yearly"). */
  .pr-cards .plan-card > h3 { grid-row: 1; }
  .pr-cards .plan-card > .price { grid-row: 2; }
  .pr-cards .plan-card > .pr-billed { grid-row: 3; }
  .pr-cards .plan-card > .plan-for { grid-row: 4; }
  .pr-cards .plan-card > .btn { grid-row: 5; }
  .pr-cards .plan-card > .plan-note { grid-row: 6; }
  .pr-cards .plan-card > ul { grid-row: 7; }
}
.pr-cards .plan-card.is-featured { border: 2px solid var(--line-strong); box-shadow: none; padding: calc(var(--s-6) - 1px) 27px; }
.pr-cards .plan-card h3 { font: 600 var(--fs-h3)/1.3 var(--body); color: var(--ink); margin: 0; padding-right: 120px; }
.pr-cards .plan-badge { position: absolute; top: var(--s-6); right: 28px; left: auto; width: max-content;border: 0; padding: 5px 10px; font: 500 var(--fs-xs)/1 var(--body); color: var(--ink); background: var(--field); }
.pr-cards .is-featured .plan-badge { top: calc(var(--s-6) - 1px); right: 27px; }
.pr-cards .price { margin: var(--s-4) 0 0; font-size: 40px; }
.pr-cards .price-text { font-size: 40px; }
.pr-cards .plan-for { margin: var(--s-2) 0 0 !important; color: var(--muted) !important; font-weight: 400; font-size: var(--fs-sm); }
.pr-cards .plan-card .btn { margin: var(--s-5) 0 0; align-self: start; width: 100%; }
.pr-cards .plan-card ul { margin: var(--s-5) 0 0; padding: var(--s-5) 0 0; border-top: 1px solid var(--line); display: grid; gap: var(--s-3); align-content: start; }
.pr-cards .plan-card li { border: 0; padding: 0 0 0 26px; color: var(--ink); line-height: 1.45; }
.pr-cards .plan-card li::before { top: 0.5em; }

.pr-fine { margin: var(--s-6) 0 0; }

/* Secondary sections */

/* Full comparison, collapsed */
.pr-compare > summary { display: flex; width: max-content; margin: 0; gap: 10px; align-items: center; cursor: pointer; list-style: none; padding: 10px 20px; min-height: 44px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); font-weight: 500; font-size: var(--fs-sm); }
.pr-compare > summary::-webkit-details-marker { display: none; }
.pr-compare > summary::after { content: "+"; font: 500 18px/1 var(--mono); color: var(--muted); }
.pr-compare[open] > summary::after { content: "\2212"; }
.pr-compare > summary:hover { background: var(--bg); }
.pr-compare > summary:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.pr-compare .table-wrap { margin-top: var(--s-5); }

.pr-table table { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 860px; font-size: var(--fs-sm); }
.pr-table th, .pr-table td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.pr-table thead th { background: var(--bg); font-weight: 600; }
.pr-table tbody th, .pr-table .pr-price th { font-weight: 400; width: 24%; min-width: 180px; }
.pr-table tbody th, .pr-table thead th:first-child, .pr-table .pr-aud td:first-child { position: sticky; left: 0; z-index: 1; background: var(--surface); box-shadow: 1px 0 0 var(--line); }
.pr-table thead tr:nth-child(2) th:first-child { background: var(--bg); }
.pr-table .pr-aud th, .pr-table .pr-aud td { background: var(--surface); font: 500 12px/1.2 var(--mono); text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); border-bottom: 0; padding-bottom: 4px; }
.pr-table .pr-aud th + th { border-left: 2px solid var(--line); }
.pr-table .pr-price td { font: 600 17px/1.2 var(--body); background: var(--surface); }
.pr-table .pr-price th { background: var(--surface); }
.pr-table tr.group th { background: var(--bg); font: 500 13px/1.2 var(--mono); text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); padding-top: 16px; position: static; box-shadow: none; width: auto; }
.pr-table tr.group th span { position: sticky; left: 12px; }
.pr-table td:nth-child(5), .pr-table thead tr:nth-child(2) th:nth-child(5) { border-left: 2px solid var(--line); }
.pr-table tbody td:nth-child(3), .pr-table thead tr:not(.pr-aud) > :nth-child(3) { background: color-mix(in srgb, var(--hl) 35%, var(--surface)); }
.pr-table tbody tr:last-child th, .pr-table tbody tr:last-child td { border-bottom: 0; }
.pr-note { display: block; font-size: var(--fs-xs); color: var(--muted); font-weight: 400; }
.pr-tag { display: inline-block; margin-left: 8px; padding: 3px 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font: 500 12px/1.2 var(--body); letter-spacing: 0; text-transform: none; color: var(--muted); }

/* FAQ */
.pr-section .faq { max-width: 760px; }
.pr-section .faq summary { font-weight: 500; }


@media (max-width: 640px) {
  .plan-tabs .tab-labels label { padding: 9px 22px; }
  .pr-cards .plan-card, .pr-cards .plan-card.is-featured { padding-inline: 22px; }
  .pr-cards .plan-badge, .pr-cards .is-featured .plan-badge { right: 22px; }
  .pr-table table { min-width: 720px; font-size: 14px; }
  .pr-table th, .pr-table td { padding: 10px 9px; }
  .pr-table tbody th, .pr-table .pr-price th { min-width: 128px; width: 128px; }
}
.pr-head .pr-trial { margin-top: var(--s-2); font-weight: 600; }
.pr-cards .plan-note { margin: var(--s-2) 0 0 !important; color: var(--muted) !important; font-size: var(--fs-sm); text-align: center; }
