/* The pricing page (owner, 21 October 2026: "only selected packages", no filter on top). Every public package in one
   row of short cards (4 across on computers, 2 × 2 on tablets, a row to swipe on phones), the Monthly / Yearly switch
   small and centred above them with the region as a quiet link, then the link to the comparison page. Colours from the
   theme tokens only (tests/Unit/Theme/HardCodedColoursTest.php). Markup: resources/views/public/pricing.blade.php;
   behaviour: public/js/pricing.js. */

.pr-head { padding-bottom: clamp(20px, 3.5vw, 36px); }
.pr-band { padding-top: 0; }
.pr .region-ask { margin-bottom: 20px; }

/* The switch and the region link */
.pr-controls { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 0 auto 22px; text-align: center; }
.pr-period { display: inline-flex; padding: 4px; border-radius: var(--r-pill); background: var(--card); border: 1px solid var(--line); box-shadow: var(--sh-1); }
.pr-period button { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: var(--r-pill); font: 600 14px/1.2 var(--sans); color: var(--ink-2); transition: background .2s, color .2s; }
.pr-period button[aria-checked="true"] { background: var(--ink); color: var(--sm-text-inverse); }
.pr-period button:focus-visible { outline: 2.5px solid var(--brand); outline-offset: 2px; }
.no-js .pr-period { display: none; }
.pr-save { font-style: normal; padding: 2px 7px; border-radius: var(--r-pill); background: var(--mint); color: var(--brand-ink); font-size: 12px; font-weight: 700; white-space: nowrap; }
.pr-period button[aria-checked="true"] .pr-save { background: var(--brand-bright); color: color-mix(in srgb, var(--sm-data-series-9) 20.3%, black); }

.pr-region { position: relative; font-size: 14px; color: var(--ink-3); }
.pr-region summary { list-style: none; cursor: pointer; padding: 4px 8px; border-radius: var(--r-xs); }
.pr-region summary::-webkit-details-marker { display: none; }
.pr-region summary b { color: var(--ink-2); font-weight: 600; }
.pr-region summary:focus-visible { outline: 2.5px solid var(--brand); outline-offset: 2px; }
.pr-change { color: var(--brand-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.pr-region summary:hover .pr-change { text-decoration-thickness: 2px; }
.pr-region ul { position: absolute; z-index: 20; left: 50%; transform: translateX(-50%); top: calc(100% + 6px); min-width: 240px; max-height: min(60vh, 360px); overflow: auto; margin: 0; padding: 6px;
  list-style: none; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: var(--sh-3); }
.pr-region a { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: var(--r-xs); text-decoration: none; color: var(--ink); }
.pr-region a small { margin-left: auto; color: var(--ink-3); font-family: var(--mono); }
.pr-region a:hover, .pr-region a[aria-current] { background: var(--mint-2); }

/* The cards. Phones (below 640 px): a row to swipe, one card and the edge of the next in view. */
.pr-cards { list-style: none; margin: 0 calc(-1 * var(--gutter)); padding: 16px var(--gutter) 6px; display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter); scrollbar-width: none; }
.pr-cards::-webkit-scrollbar { display: none; }
.pr-card { flex: 0 0 min(84%, 340px); scroll-snap-align: start; position: relative; display: flex; flex-direction: column; min-width: 0;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 20px 18px; box-shadow: var(--sh-1); }
.pr-n1 .pr-card { flex-basis: 100%; }
.pr-card.is-rec { border: 2px solid var(--brand); padding: 21px 19px 17px; box-shadow: 0 18px 40px -24px color-mix(in srgb, var(--brand) 60%, transparent); }
.pr-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); margin: 0; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 12px; border-radius: var(--r-pill); background: var(--brand); color: var(--on-brand); font: 600 12px/1 var(--sans); letter-spacing: .04em; }
.pr-badge .ms { font-size: 15px; }
.pr-name { margin: 0; font: 700 clamp(21px, 1.6vw, 24px)/1.2 var(--display); letter-spacing: -0.02em; }
.pr-who { margin: 6px 0 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.45; }
.pr-price { margin-top: 14px; }
.pr-amount { margin: 0; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.pr-amount b { font: 750 clamp(32px, 2.6vw, 40px)/1 var(--display); letter-spacing: -0.03em; }
.pr-amount span { color: var(--ink-3); font-size: 14px; }
.pr-alt { margin: 6px 0 0; font-size: 13.5px; line-height: 1.4; color: var(--ink-3); }
.pr-alt .pr-save { margin-left: 4px; }
.js .pr:not(.show-year) .p-year, .js .pr.show-year .p-month, .no-js .pr .p-year { display: none; }
.pr-trialbox { margin-top: 12px; }
.pr-trial { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 4px 10px; border-radius: var(--r-pill); background: var(--mint); color: var(--brand-ink); font-size: 13px; font-weight: 600; }
.pr-trial .ms { font-size: 16px; }
.pr-cta { margin-top: 16px; }
.pr-points { margin: 18px 0 0; }
.pr-points .pr-plus { color: var(--ink); font-weight: 600; }
.pr-all { margin-top: 16px; padding: 12px 0 2px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font: 600 14px/1.3 var(--sans); color: var(--brand-ink); text-decoration: none; border-radius: var(--r-xs); }
.pr-all .ms { font-size: 20px; flex: none; transition: transform .2s; }
.pr-all:hover .ms { transform: translateX(3px); }
.pr-all:hover { text-decoration: underline; text-underline-offset: 3px; }
.pr-all:focus-visible { outline: 2.5px solid var(--brand); outline-offset: 2px; }

/* Seats on the cards (owner, 24 October 2026): the line with its information button */
.pr-seats { margin: 16px 0 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; column-gap: 8px; font-size: 14.5px; line-height: 1.4; color: var(--ink); }
.pr-seats > .ms { font-size: 19px; color: var(--brand-ink); margin-top: 1px; }
.pr-seats .pr-tip { margin-top: -4px; }
.pr-seats-text b { font-weight: 600; }
.pr-tip { position: relative; display: inline-flex; }
.pr-tip-btn { all: unset; cursor: pointer; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: var(--r-pill); color: var(--ink-3); }
.pr-tip-btn .ms { font-size: 19px; }
.pr-tip-btn:hover, .pr-tip.is-open .pr-tip-btn { color: var(--brand-ink); background: var(--mint); }
.pr-tip-btn:focus-visible { outline: 2.5px solid var(--brand); outline-offset: 1px; }
.pr-tip-box { display: none; position: absolute; z-index: 30; top: calc(100% + 8px); left: 50%; transform: translateX(calc(-50% + var(--tip-shift, 0px)));
  width: max-content; max-width: min(300px, calc(100vw - 32px)); padding: 12px 14px; border-radius: var(--r-sm); background: var(--ink); color: var(--sm-text-inverse);
  font: 400 13.5px/1.45 var(--sans); text-align: left; white-space: normal; box-shadow: var(--sh-3); }
.pr-tip-box > span { display: block; }
.pr-tip-box > span + span { margin-top: 6px; }
.pr-tip-main { font-weight: 600; }
.pr-tip-rule { opacity: .86; }
.pr-tip.is-open .pr-tip-box { display: block; }
.no-js .pr-tip:hover .pr-tip-box, .no-js .pr-tip:focus-within .pr-tip-box { display: block; }

/* "Compare all four plans" under the cards */
.pr-compare-link { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 26px auto 0; text-align: center; }
.pr-compare-link .btn { display: inline-flex; align-items: center; gap: 8px; }
.pr-compare-link .fine { margin: 0; }

/* A part a plan does not have stays in place, empty, so the rows of parts still line up. */
.pr-card .is-empty { margin: 0; padding: 0; border: 0; min-height: 0; }

/* The dots under the row (phones only, with JavaScript) */
.pr-dots { display: flex; justify-content: center; gap: 2px; margin: 6px 0 0; }
.pr-dots button { all: unset; cursor: pointer; width: 22px; height: 22px; display: grid; place-items: center; }
.pr-dots button::before { content: ""; width: 8px; height: 8px; border-radius: var(--r-pill); background: var(--line-2); transition: width .2s, background .2s; }
.pr-dots button.is-on::before { width: 20px; background: var(--brand); }
.no-js .pr-dots { display: none; }

.pr-notes { max-width: 760px; margin: 22px auto 0; }
.pr-notes .fine { margin: 4px 0; }

/* Tablets: two across */
@media (min-width: 640px) {
  .pr-cards { margin: 0; padding: 16px 0 0; overflow: visible; display: grid; gap: 20px 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pr-card { padding: 26px 22px 20px; }
  .pr-card.is-rec { padding: 25px 21px 19px; }
  .pr-n1 { grid-template-columns: minmax(0, 440px); justify-content: center; }
  .pr-n2 { max-width: 860px; margin: 0 auto; }
  .pr-dots { display: none; }
}
@media (min-width: 900px) { .pr-n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* Computers: four across (more than four: as many as fit) */
@media (min-width: 1100px) {
  .pr-n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pr-n5 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
}
/* Where the browser has subgrid, the parts of each card line up across the row: names, prices, buttons and lists. */
@supports (grid-template-rows: subgrid) {
  @media (min-width: 640px) {
    .pr-cards { row-gap: 0; }
    .pr-card { display: grid; grid-row: span 8; grid-template-rows: subgrid; row-gap: 0; margin-bottom: 20px; }
    .pr-card > .pr-all { align-self: end; }
  }
}
@media (prefers-reduced-motion: reduce) { .pr-period button, .pr-all .ms, .pr-dots button::before { transition: none; } }

/* The comparison page /pricing/compare (owner, 24 October 2026): every plan a column, every row from the same layout as
   the cards; the plans' header stays in view while scrolling; on phones one plan beside the rows, picked with a chip. */
.pc-head-band { padding-bottom: clamp(16px, 3vw, 28px); }
.pc-back { margin: 14px 0 0; }
.pc-back .link-arrow { display: inline-flex; align-items: center; gap: 6px; }
.pc-chips { display: none; }
.pc-wrap { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); overflow: clip; }
.pc-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14.5px; table-layout: fixed; }
.pc-table th, .pc-table td { padding: 12px 14px; border-top: 1px solid var(--line); text-align: center; vertical-align: middle; overflow-wrap: anywhere; }
.pc-table thead th { position: sticky; top: var(--pc-top, 70px); z-index: 5; background: var(--card); border-top: 0; border-bottom: 1px solid var(--line); vertical-align: top; padding: 18px 12px 16px; }
.pc-table thead .pc-corner { width: 26%; vertical-align: middle; text-align: left; }
.pc-period { flex-wrap: wrap; box-shadow: none; }
.pc-period button { padding: 7px 12px; flex-wrap: wrap; justify-content: center; }
.pc .pr-controls:not(:has(*)) { display: none; }
.pc-table tbody th[scope="row"] { text-align: left; font-weight: 500; color: var(--ink-2); }
.pc-plan { text-align: center; }
.pc-name { display: block; font: 700 18px/1.2 var(--display); letter-spacing: -0.01em; color: var(--ink); }
.pc-table thead .pc-plan { padding-top: 30px; }
.pc-badge { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); white-space: nowrap; display: inline-block; padding: 4px 9px; border-radius: var(--r-pill); background: var(--brand); color: var(--on-brand); font: 600 11.5px/1 var(--sans); letter-spacing: .04em; }
.pc-price { display: block; margin-top: 8px; color: var(--ink-3); font-size: 13.5px; }
.pc-price b { font: 750 22px/1.1 var(--display); color: var(--ink); letter-spacing: -0.02em; }
.pc-choose, .pc-ask { margin-top: 12px; width: 100%; justify-content: center; white-space: normal; text-align: center; }
/* The main button of each column: the theme's gradient (docs/DESIGN-RULES.md §13). */
.pc-choose { background: linear-gradient(135deg, var(--brand), var(--brand-hover)); color: var(--on-brand); border: 0;
  box-shadow: 0 1px 0 color-mix(in srgb, var(--on-brand) 18%, transparent) inset, 0 8px 20px -8px color-mix(in srgb, var(--brand) 70%, transparent); }
.pc-choose:hover { color: var(--on-brand); filter: brightness(1.06); transform: translateY(-1px); }
.pc-choose:focus-visible { outline: 2.5px solid var(--brand); outline-offset: 2px; }
.pc-table .pc-sec th { text-align: left; padding: 16px 14px 8px; font: 600 12px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); background: var(--bg); }
.pc-table .is-sel { background: color-mix(in srgb, var(--mint) 55%, var(--card)); }
.pc-table thead .is-sel { box-shadow: inset 0 3px 0 var(--brand); }
.pc-table .yes { color: var(--brand-ink); }
.pc-table .yes .ms { font-size: 21px; }
.pc-table .no { color: var(--ink-3); }
.pc-table td.pc-desc { text-align: left; vertical-align: top; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.pc-seats { display: inline-flex; align-items: center; justify-content: center; gap: 4px; flex-wrap: wrap; }
.pc-fine { margin: 16px auto 0; max-width: 760px; }
#about-seats .lede { margin-top: 8px; }
@media (max-width: 899.98px) {
  .pc-table { font-size: 13.5px; }
  .pc-table th, .pc-table td { padding: 10px 8px; }
  .pc-table thead .pc-corner { width: 22%; }
  .pc-name { font-size: 16px; }
  .pc-price b { font-size: 18px; }
}
/* Phones: chips pick the one plan shown beside the rows (with JavaScript); without it the table scrolls in its box. */
@media (max-width: 639.98px) {
  .js .pc-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 14px; }
  .pc-chips button { all: unset; cursor: pointer; padding: 8px 14px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--card); font: 600 14px/1.2 var(--sans); color: var(--ink-2); }
  .pc-chips button[aria-pressed="true"] { background: var(--ink); color: var(--sm-text-inverse); border-color: var(--ink); }
  .pc-chips button:focus-visible { outline: 2.5px solid var(--brand); outline-offset: 2px; }
  .no-js .pc-wrap, .pc-all .pc-wrap { overflow-x: auto; }
  .no-js .pc-table, .pc-all .pc-table { min-width: 560px; }
  .pc-all .pc-table thead th { position: static; }
  .js .pc-table { table-layout: auto; }
  .pc-period { display: grid; width: 100%; border-radius: var(--r-sm); }
  .pc-period button { border-radius: var(--r-sm); text-align: center; font-size: 13px; padding: 7px 8px; }
  .pc-period .pr-save { font-size: 11px; }
  .js .pc-table thead .pc-corner, .js .pc-table tbody th[scope="row"] { width: 42%; }
  .js .pc-table [data-col] { width: 58%; }
  .js .pc-table[data-show="0"] [data-col]:not([data-col="0"]), .js .pc-table[data-show="1"] [data-col]:not([data-col="1"]),
  .js .pc-table[data-show="2"] [data-col]:not([data-col="2"]), .js .pc-table[data-show="3"] [data-col]:not([data-col="3"]),
  .js .pc-table[data-show="4"] [data-col]:not([data-col="4"]) { display: none; }
  .js .pc-table .is-sel { background: var(--card); }
  .js .pc-table thead .is-sel { box-shadow: none; }
}
