/* =====================================================================
   Reflow — pricing page
   Uses tokens.css only. No new hues: cobalt + neutrals, same radii,
   same shadows, same type scale as site.css.
   ===================================================================== */

:root {
  --rf-tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.4 4.7 9 10 3.2' fill='none' stroke='%232563EB' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --rf-dash: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6h7' fill='none' stroke='%2394A3B8' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* ---------- page head ---------- */
.pr-head { padding-block: clamp(52px, 7vw, 92px) clamp(28px, 4vw, 44px); background: var(--rf-grad-tint), var(--rf-canvas); }
.pr-head .sub { margin-top: 14px; max-width: 660px; }
.pr-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.pr-meta span { font-size: 12.5px; font-weight: 700; color: var(--rf-text-soft);
  background: var(--rf-white); border: 1px solid var(--rf-line); border-radius: 999px; padding: 6px 13px; }

/* ---------- plan grid ---------- */
.pr-plans { padding-block: clamp(30px, 4vw, 44px) clamp(56px, 7vw, 88px); }
.plan-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
@media (max-width: 1000px) { .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px)  { .plan-grid { grid-template-columns: 1fr; } }

.plan { position: relative; display: flex; flex-direction: column; min-width: 0;
  background: var(--rf-white); border: 1px solid var(--rf-line);
  border-radius: var(--rf-radius-lg); padding: 24px 20px 20px; box-shadow: var(--rf-shadow-xs); }
.plan--lead { border-color: var(--rf-primary-600); box-shadow: 0 0 0 3px var(--rf-primary-50), var(--rf-shadow-md); }
.plan__badge { position: absolute; top: -11px; left: 20px; font-size: 11.5px; font-weight: 800; letter-spacing: 0.02em;
  color: #fff; background: var(--rf-primary-600); border-radius: 999px; padding: 4px 12px; }

.plan__name { font-size: 17px; font-weight: 800; color: var(--rf-ink); letter-spacing: -0.01em; }
.plan__for { margin-top: 6px; font-size: 13px; font-weight: 500; color: var(--rf-muted); line-height: 1.5; min-height: 39px; }

.plan__price { margin-top: 16px; display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap; }
.plan__price b { font-size: clamp(26px, 3vw, 31px); font-weight: 800; color: var(--rf-primary-950); letter-spacing: -0.03em; line-height: 1.1; }
.plan__price i { font-style: normal; font-size: 14px; font-weight: 700; color: var(--rf-ink-soft); }
.plan__price em { font-style: normal; font-size: 13.5px; font-weight: 600; color: var(--rf-muted); }
.plan__note { margin-top: 6px; font-size: 12px; font-weight: 600; color: var(--rf-muted); min-height: 18px; }

.plan .btn { width: 100%; margin-top: 16px; min-height: 46px; font-size: 14.5px; }

.plan__limits { margin: 20px 0 0; padding: 16px 0 0; border-top: 1px solid var(--rf-line-soft); display: grid; gap: 9px; }
.plan__limits > div { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.plan__limits dt { font-size: 13px; font-weight: 600; color: var(--rf-text-soft); }
.plan__limits dd { margin: 0; font-size: 13.5px; font-weight: 800; color: var(--rf-ink); white-space: nowrap; }

.plan__feats { list-style: none; margin: 16px 0 0; padding: 16px 0 0; border-top: 1px solid var(--rf-line-soft); display: grid; gap: 10px; }
.plan__feats li { display: flex; gap: 9px; font-size: 13px; font-weight: 600; color: var(--rf-text); line-height: 1.5; }
.plan__feats li::before { content: ""; flex: none; width: 15px; height: 15px; margin-top: 3px; border-radius: 5px;
  background: var(--rf-primary-50); border: 1px solid var(--rf-primary-100);
  background-image: var(--rf-tick); background-repeat: no-repeat; background-position: center; background-size: 9px 9px; }
.plan__feats li.is-off { color: var(--rf-muted); }
.plan__feats li.is-off::before { background: var(--rf-surface-2); border-color: var(--rf-line);
  background-image: var(--rf-dash); background-repeat: no-repeat; background-position: center; background-size: 7px 7px; }

/* ---------- common-to-all strip ---------- */
.pr-common { margin-top: 20px; background: var(--rf-white); border: 1px solid var(--rf-line);
  border-radius: var(--rf-radius-lg); padding: 22px 24px; }
.pr-common h3 { font-size: 14px; font-weight: 800; color: var(--rf-ink); letter-spacing: -0.01em; }
.pr-common ul { list-style: none; margin: 14px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 26px; }
@media (max-width: 860px) { .pr-common ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .pr-common ul { grid-template-columns: 1fr; } }
.pr-common li { display: flex; gap: 9px; font-size: 13.5px; font-weight: 600; color: var(--rf-text); }
.pr-common li::before { content: ""; flex: none; width: 15px; height: 15px; margin-top: 3px; border-radius: 5px;
  background: var(--rf-primary-50); border: 1px solid var(--rf-primary-100);
  background-image: var(--rf-tick); background-repeat: no-repeat; background-position: center; background-size: 9px 9px; }

/* ---------- enterprise row ---------- */
.pr-ent { margin-top: 20px; display: grid; grid-template-columns: 1fr auto; gap: 20px 28px; align-items: center;
  background: var(--rf-surface-tint); border: 1px solid var(--rf-primary-100);
  border-radius: var(--rf-radius-lg); padding: 24px 26px; }
@media (max-width: 720px) { .pr-ent { grid-template-columns: 1fr; } }
.pr-ent h3 { font-size: 17px; font-weight: 800; color: var(--rf-ink); }
.pr-ent p { margin-top: 8px; font-size: 14px; font-weight: 500; color: var(--rf-text-soft); line-height: 1.65; max-width: 640px; }
.pr-ent .btn { white-space: nowrap; }

/* ---------- comparison table ---------- */
.pr-table-wrap { margin-top: 34px; overflow-x: auto; border: 1px solid var(--rf-line);
  border-radius: var(--rf-radius-lg); background: var(--rf-white); }
.pr-table { width: 100%; min-width: 780px; border-collapse: collapse; }
.pr-table th, .pr-table td { text-align: center; padding: 12px 10px; font-size: 13px; border-bottom: 1px solid var(--rf-line-soft); }
.pr-table thead th { position: sticky; top: 0; background: var(--rf-surface-1); z-index: 1;
  font-size: 12.5px; font-weight: 800; color: var(--rf-ink); border-bottom: 1px solid var(--rf-line); padding-block: 14px; }
.pr-table thead th small { display: block; margin-top: 3px; font-size: 11.5px; font-weight: 700; color: var(--rf-primary-700); }
.pr-table th[scope="row"], .pr-table td:first-child, .pr-table thead th:first-child { text-align: left; padding-left: 20px; }
.pr-table th[scope="row"] { font-weight: 600; color: var(--rf-text); padding-left: 20px; white-space: nowrap; }
.pr-table td { font-weight: 700; color: var(--rf-ink); }
.pr-table .grp th { background: var(--rf-surface-2); text-align: left; padding-left: 20px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--rf-primary-800); }
.pr-table .yes { color: var(--rf-primary-600); }
.pr-table .no  { color: var(--rf-muted-soft); }
.pr-table tbody tr:hover td, .pr-table tbody tr:hover th[scope="row"] { background: var(--rf-primary-50); }
.pr-table .col-lead { background: var(--rf-surface-tint); }
.pr-table-hint { margin-top: 10px; font-size: 12.5px; font-weight: 600; color: var(--rf-muted); }

/* ---------- notes ---------- */
.pr-notes { list-style: none; margin: 30px 0 0; padding: 20px 24px; display: grid; gap: 9px;
  background: var(--rf-canvas-soft); border: 1px solid var(--rf-hairline-warm); border-radius: var(--rf-radius-lg); }
.pr-notes li { font-size: 13.5px; font-weight: 500; color: var(--rf-text-soft); line-height: 1.65; padding-left: 14px; position: relative; }
.pr-notes li::before { content: ""; position: absolute; left: 0; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: var(--rf-primary-600); }

/* visually-hidden (table caption) */
.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; }

/* current nav item */
.nav__links a[aria-current="page"] { color: var(--rf-primary-700); font-weight: 700; }

/* ---------- pricing FAQ: two columns so the row fills ---------- */
.pr-faq { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(26px, 4vw, 60px); align-items: start; }
@media (max-width: 880px) { .pr-faq { grid-template-columns: 1fr; } }
.pr-faq__head .h2 { font-size: clamp(24px, 3vw, 32px); }
.pr-faq__head .sub { margin-top: 14px; font-size: 15px; }
.pr-faq .faq { max-width: none; margin: 0; }
.pr-faq .faq__q { padding-block: 18px; }
