/* The Pricing page (/pricing/), on top of features.css: the plan cards, the
   monthly and yearly switch, the comparison table. Every class starts price-
   so none can clash with site.css. No script: the switch is two radio
   buttons, and the cards show the price that matches the one chosen. */

/* ---------- the switch ---------- */
.price-plans { padding: 36px 0 44px; text-align: center; }
.price-switch { margin: 0 auto 24px; border-color: var(--line); }
.price-switch legend { float: left; }
.price-save { font-size: .78rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--hl); color: #1b2440; }
.price-switch input:nth-of-type(2):checked + label .price-save { background: #fff; color: #4a2f8f; }

/* Monthly shown by default; Yearly when its button is chosen. Without :has, both show, each labelled. */
.price-page:has(#bill-month:checked) .price-year,
.price-page:has(#bill-year:checked) .price-month { display: none; }

/* ---------- the two cards ---------- */
.price-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; max-width: 900px; margin: 0 auto; text-align: left; }
.price-card { display: flex; flex-direction: column; background: var(--surface); border: 2px solid var(--line); border-radius: 18px; padding: 26px 26px 24px; }
.price-pro { border-color: var(--fg); box-shadow: 6px 6px 0 var(--hl); }
.price-card h3 { font-size: 1.6rem; margin: 0 0 8px; }
.price-amount { margin: 0; font-size: 1.1rem; color: var(--muted); }
.price-amount strong { font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 3.1rem); font-weight: 500; line-height: 1.1; color: var(--fg); margin-right: 4px; }
.price-sub { margin: 6px 0 18px; font-size: .92rem; color: var(--muted); min-height: 2.8em; }
.price-list { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; flex: 1; }
.price-list li { position: relative; margin: 0; padding-left: 28px; }
.price-list li::before { content: ""; position: absolute; left: 0; top: .3em; width: 16px; height: 16px; border-radius: 50%; background: var(--hl); box-shadow: inset 0 0 0 4px var(--surface); border: 2px solid var(--fg); box-sizing: border-box; }
.price-btn { justify-content: center; width: 100%; border-radius: 999px; font-family: var(--sans); font-size: 1.05rem; font-weight: 600; }
.price-terms { max-width: 720px; margin: 18px auto 0; }

/* ---------- what a credit is ---------- */
.price-example > :first-child { margin-top: 0; font-family: var(--serif); font-size: 1.2rem; line-height: 1.4; }
.price-steps { margin: 0 0 14px; padding-left: 22px; display: grid; gap: 8px; }

/* ---------- the two wide parts: the comparison and the privacy panel ----------
   Owner's designs, 24 Nov 2026. The heading's green rule and the plain table
   are in site.css (.ruled, .plain-table). */
.price-wide { padding: 44px 0; border-top: 1px solid var(--line); }
.price-wide .section-intro { margin-bottom: 22px; }
.price-table th[scope="row"] { font-weight: 400; }
.price-table td { width: 24%; }
.price-table thead th:not(:first-child) { width: 24%; }
.price-group th { font: 700 1.2rem/1.3 var(--sans); padding-top: 24px; }
/* "Privacy, the same on both": its three rows on a soft green panel. */
tr.price-private > * { background: var(--hl-soft); }
.plain-table tr.price-private > th:first-child { background: var(--hl-soft); }
tr.price-group.price-private > th { border-radius: 16px 16px 0 0; padding-top: 18px; }
tr.price-private:last-child > * { border-bottom: 0; }
tr.price-private:last-child > :first-child { border-bottom-left-radius: 16px; }
tr.price-private:last-child > :last-child { border-bottom-right-radius: 16px; }

.price-private-grid { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); background: var(--hl-soft); border-radius: 24px; }
.price-private-grid li { display: flex; align-items: flex-start; gap: 22px; margin: 0; padding: 30px 34px; }
.price-private-grid li:nth-child(odd) { border-right: 1px solid var(--line); }
.price-private-grid li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
.price-private-grid svg { flex: none; width: 52px; height: 52px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.price-private-grid h3 { font-size: 1.45rem; margin: 0 0 6px; }
.price-private-grid p { margin: 0; }

/* The row of small links above the closing banner. */
.price-more { margin: 0; padding: 22px 0 6px; border-top: 1px solid var(--line); text-align: center; }

@media (max-width: 760px) {
  .price-cards { grid-template-columns: 1fr; }
  .price-sub { min-height: 0; }
  .price-table td, .price-table thead th:not(:first-child) { width: auto; }
  .price-private-grid { grid-template-columns: 1fr; }
  .price-private-grid li { padding: 22px 20px; gap: 16px; }
  .price-private-grid li:nth-child(odd) { border-right: 0; }
  .price-private-grid li:not(:last-child) { border-bottom: 1px solid var(--line); }
  .price-private-grid svg { width: 40px; height: 40px; }
}

/* The * after "Up to 4 hours": a link to the note under the table (terms #pro-length). */
.note-mark { margin-left: 1px; font-weight: 700; text-decoration: none; color: inherit; }
.note-mark:hover { text-decoration: underline; }

/* ---------- the pricing block on the home page and the platform pages: the two cards, set to the left ---------- */
.price-home .price-cards { max-width: none; margin: 26px 0 0; }
.price-home .price-card { position: relative; }
.price-home .price-card h3 { font-size: var(--card-h); }
.price-home .price-amount strong { font-size: clamp(2.6rem, 5vw, 3.3rem); }
.price-home .price-sub { min-height: 0; }
.price-home .price-terms { max-width: none; margin: 18px 0 0; }
.price-badge { position: absolute; top: -15px; right: 22px; margin: 0; padding: 3px 14px; border-radius: 999px; background: var(--hl); color: #1b2440; border: 2px solid var(--fg); font-size: .82rem; font-weight: 700; }
.price-alt { margin: 12px 0 0; text-align: center; font-size: .92rem; }
.price-home .btn.secondary { border-color: var(--fg); }
