/*
 * /pricing. Loaded after tokens.css, components.css, landing.css (hero, `.price`
 * cards, `.faq`), auth.css and seo.css (`seo-*` blocks). Only what those files
 * do not have lives here, all `pr-*` or `pricing--three`. Colours come from
 * tokens only, so the dark theme needs no extra rules.
 */

.pr-hero { padding: 28px 0 20px; }
.pr-hero h1 { margin-top: 10px; }
.pr-plans { padding-top: 28px; }
.pr-plans .pricing--three { margin-top: 0; }
/* ---------- three plan cards ---------- */
.pricing--three { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1120px; align-items: stretch; }
.pricing--three .price__now { font-size: 48px; }
.pricing--three .price { padding: 30px 26px 26px; }
.pricing--three .price__top { flex-wrap: wrap; }
.pr-price-note { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--ink-secondary); }
.pr-price-note .icon { width: 15px; height: 15px; color: var(--accent); }

/* ---------- how credits work: four connected steps ---------- */
.pr-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; counter-reset: pr-step; }
.pr-flow li { position: relative; display: grid; align-content: start; gap: 10px; padding: 22px 20px 22px; background: var(--canvas); border: 1px solid var(--stroke); border-radius: var(--radius-lg); counter-increment: pr-step; }
.pr-flow li:not(:last-child)::after { content: ""; position: absolute; top: 43px; right: -21px; width: 20px; height: 2px; background: var(--stroke-strong); }
.pr-flow__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pr-flow__top::after { content: counter(pr-step); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--stroke-strong); background: var(--surface); font-size: 13px; font-weight: 700; color: var(--ink-secondary); }
.pr-flow h3 { font-size: 16.5px; line-height: 1.3; letter-spacing: -.015em; }
.pr-flow p { font-size: 14px; line-height: 1.6; color: var(--ink-secondary); }
.pr-flow strong { color: var(--ink); }
.pr-note { max-width: 880px; margin: 26px auto 0; }

/* ---------- definitions with an icon each ---------- */
.pr-terms dt { display: flex; align-items: center; gap: 12px; }
.pr-terms dt .icon-circle { width: 34px; height: 34px; flex: none; }
.pr-terms dt .icon-circle .icon { width: 18px; height: 18px; }
.pr-terms div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.pr-terms dd strong { color: var(--ink); font-weight: 650; }

/* ---------- comparison table ---------- */
.pr-table-wrap { max-width: 100%; }
.pr-table { min-width: 720px; }
.pr-table .pr-th { display: inline-flex; align-items: center; gap: 8px; }
.pr-table .pr-th .icon { width: 17px; height: 17px; color: var(--accent); }
.pr-table thead th:first-child { left: 0; z-index: 3; }
.pr-table tbody th { position: sticky; left: 0; z-index: 2; width: 176px; min-width: 176px; box-shadow: 1px 0 0 var(--stroke); }
.pr-table tbody th .pr-th { align-items: flex-start; }
.pr-table tbody th .pr-th .icon { margin-top: 2px; }
.pr-table td { min-width: 150px; }
.pr-table td strong { color: var(--ink); }
.pr-table td .seo-mark { align-items: flex-start; }
.pr-table td .seo-mark .icon { margin-top: 3px; }
.pr-table td .seo-mark--no { font-weight: 500; color: var(--ink-secondary); }
.pr-table .pr-pick { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: var(--radius-pill); background: var(--accent-strong); color: var(--accent-on); font-size: 10.5px; font-weight: 700; letter-spacing: .02em; vertical-align: 1px; }
.pr-table tbody tr:hover th, .pr-table tbody tr:hover td:not(.is-us) { background: var(--surface-2); }
.pr-table-hint { display: none; margin-bottom: 10px; font-size: 12.5px; color: var(--ink-tertiary); }
.pr-table-hint .icon { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; }

/* ---------- pack or Pro: facts and calculator ---------- */
.pr-facts { display: grid; gap: 12px; margin: 6px 0 0; padding: 0; list-style: none; }
.pr-facts li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; font-size: 15px; line-height: 1.6; color: var(--ink-secondary); }
.pr-facts li::marker { content: none; }
.pr-facts .icon-circle { width: 34px; height: 34px; }
.pr-facts .icon-circle .icon { width: 18px; height: 18px; }
.pr-facts strong { color: var(--ink); }

.calc { display: grid; gap: 18px; padding: 24px; background: var(--surface); border: 1px solid var(--stroke); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.calc__head { display: flex; align-items: center; gap: 12px; }
.calc__head h3 { font-size: 17px; letter-spacing: -.015em; }
.calc__label { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 14px; font-weight: 600; color: var(--ink); }
.calc__count { font-size: 28px; line-height: 1; letter-spacing: -.04em; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--accent-strong); }
.calc__count small { margin-left: 4px; font-size: 13px; font-weight: 600; letter-spacing: 0; color: var(--ink-secondary); }
.calc input[type="range"] { width: 100%; height: 28px; margin: 6px 0 0; accent-color: var(--accent); cursor: pointer; }
.calc__scale { display: flex; justify-content: space-between; margin-top: -2px; font-size: 11.5px; color: var(--ink-tertiary); font-variant-numeric: tabular-nums; }
.calc__rows { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.calc__row { display: grid; gap: 6px; }
.calc__row-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.calc__row-top span { display: inline-flex; align-items: center; gap: 8px; }
.calc__row-top .icon { width: 16px; height: 16px; color: var(--accent); }
.calc__row-top b { font-size: 16px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.calc__track { height: 10px; overflow: hidden; border-radius: var(--radius-pill); background: var(--surface-2); border: 1px solid var(--stroke); }
.calc__fill { display: block; height: 100%; min-width: 3px; border-radius: inherit; background: var(--stroke-strong); transition: width var(--motion-fast); }
.calc__row.is-best .calc__fill { background: var(--accent); }
.calc__row.is-best .calc__row-top b { color: var(--accent-strong); }
.calc__verdict { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 14px 16px; background: var(--accent-soft); border: 1px solid rgba(var(--accent-rgb), .24); border-radius: var(--radius-md); font-size: 14.5px; line-height: 1.55; color: var(--ink); }
.calc__verdict .icon { width: 20px; height: 20px; margin-top: 2px; color: var(--accent-strong); }
.calc__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.calc__fine { font-size: 12.5px; line-height: 1.55; color: var(--ink-tertiary); }

/* ---------- long text ---------- */
.pr-section-title { display: flex; align-items: center; gap: 14px; font-size: clamp(24px, 2.6vw, 30px); line-height: 1.2; letter-spacing: -.03em; }
.pr-section-title .icon-circle { flex: none; width: 44px; height: 44px; }
.pr-section-title .icon-circle .icon { width: 23px; height: 23px; }
.pr-detail { display: grid; gap: 64px; }
.pr-detail .price__timeline { margin: 4px 0 0; padding: 18px 20px; gap: 18px; background: var(--surface); }
.pr-detail .price__timeline li { font-size: 13.5px; }
.pr-detail .price__timeline strong { font-size: 14px; }
.pr-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.pr-list li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; }
.pr-list li::marker { content: none; }
.pr-list .icon { width: 18px; height: 18px; margin-top: 4px; color: var(--accent); }

/* ---------- final call to action ---------- */
.pr-cta-fine { display: inline-flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 14px; }
.pr-cta-fine span { display: inline-flex; align-items: center; gap: 6px; }
.pr-cta-fine .icon { width: 14px; height: 14px; color: var(--positive); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .pricing--three { grid-template-columns: minmax(0, 1fr); max-width: 560px; gap: 30px; }
  .pr-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pr-flow li::after { display: none; }
}
@media (max-width: 760px) {
  .pr-actions .btn { width: 100%; }
  .pr-flow { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .pr-terms div:last-child:nth-child(odd) { grid-column: auto; }
  .pr-table tbody th { width: 128px; min-width: 128px; }
  .pr-table-hint { display: block; }
  .calc { padding: 18px; }
  .calc__actions { grid-template-columns: minmax(0, 1fr); }
  .pr-detail { gap: 48px; }
  .pr-section-title .icon-circle { width: 38px; height: 38px; }
}
