/* ============================================================================
   RPACPC — Pricing page styles (extends css/styles.css tokens)
   ============================================================================ */

/* ── Pricing hero ──────────────────────────────────────────────────────── */
.phero { position: relative; padding: calc(72px * var(--pad)) 0 calc(36px * var(--pad)); overflow: hidden; text-align: center; }
.phero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(720px 420px at 50% -12%, var(--primary-tint) 0%, transparent 62%),
    radial-gradient(560px 380px at 88% 10%, var(--green-tint) 0%, transparent 60%);
  opacity: .85;
}
.phero .eyebrow { justify-content: center; }
.phero h1 { font-size: clamp(34px, 4.6vw, 56px); letter-spacing: -.03em; line-height: 1.04; margin-top: 20px; max-width: 16ch; margin-left: auto; margin-right: auto; text-wrap: balance; }
.phero h1 .hl { color: var(--primary); }
.phero-sub { font-size: clamp(17px, 1.5vw, 20px); color: var(--body); margin: 22px auto 0; max-width: 600px; line-height: 1.55; }
.phero-note { display: inline-flex; align-items: center; gap: 10px; margin-top: 20px; font-family: var(--f-mono); font-size: 13px; color: var(--green-strong); background: var(--green-tint); border: 1px solid color-mix(in srgb, var(--green) 25%, transparent); padding: 8px 16px; border-radius: 999px; }
.phero-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 30px; }

/* ── Outcome strip ─────────────────────────────────────────────────────── */
.outcomes { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.outcomes-grid { display: grid; grid-template-columns: repeat(5, 1fr); }
.outcome { padding: 26px 20px; text-align: center; border-left: 1px solid var(--line-2); }
.outcome:first-child { border-left: none; }
.outcome-v { font-family: var(--f-display); font-size: clamp(20px, 1.9vw, 26px); font-weight: 600; color: var(--ink); letter-spacing: -.02em; line-height: 1.1; }
.outcome-v .u { color: var(--primary); }
.outcome-k { font-size: 12.5px; color: var(--muted); margin-top: 6px; line-height: 1.4; }

/* ── How pricing works (factors) ──────────────────────────────────────── */
.factor-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.factor { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px; transition: border-color .15s, transform .15s, box-shadow .15s; }
.factor:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.factor-ico { width: 46px; height: 46px; border-radius: 12px; background: var(--primary-tint); color: var(--primary); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.factor-ico svg { width: 24px; height: 24px; }
.factor h3 { font-size: 17px; letter-spacing: -.01em; margin-bottom: 7px; }
.factor p { font-size: 13.5px; color: var(--body); line-height: 1.55; }

/* ── Plans ─────────────────────────────────────────────────────────────── */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 30px 28px; box-shadow: var(--shadow-sm); position: relative; display: flex; flex-direction: column; transition: transform .18s, box-shadow .18s; }
.plan:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.plan.featured { border-color: var(--primary); box-shadow: 0 0 0 1.5px var(--primary), var(--shadow-lg); }
.plan-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); font-family: var(--f-mono); font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--primary); padding: 5px 14px; border-radius: 999px; white-space: nowrap; }
.plan-name { font-size: 23px; letter-spacing: -.02em; }
.plan-philo { font-family: var(--f-mono); font-size: 12px; font-weight: 500; color: var(--primary); margin-top: 6px; }
.plan-desc { font-size: 14px; color: var(--body); line-height: 1.55; margin-top: 12px; padding-bottom: 22px; border-bottom: 1px solid var(--line-2); }
.plan-feats { list-style: none; margin: 20px 0 24px; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.plan-feats li { display: flex; gap: 11px; font-size: 14px; color: var(--ink); line-height: 1.4; }
.plan-feats .pf-check { color: var(--green-strong); flex-shrink: 0; margin-top: 1px; }
.plan-feats .pf-check svg { width: 18px; height: 18px; }
.plan-best { margin-bottom: 18px; }
.plan-best-k { font-family: var(--f-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.plan-best-v { font-size: 13px; color: var(--body); line-height: 1.5; }
.plan .btn { width: 100%; justify-content: center; }

/* ── What's included ──────────────────────────────────────────────────── */
.incl { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.incl-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.incl-item { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.incl-item .ii-check { width: 26px; height: 26px; border-radius: 7px; background: var(--green-tint); color: var(--green-strong); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.incl-item .ii-check svg { width: 16px; height: 16px; }
.incl-item span { font-size: 13.5px; font-weight: 500; color: var(--ink); }

/* ── API categories ───────────────────────────────────────────────────── */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cat { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 26px; transition: border-color .15s, transform .15s, box-shadow .15s; }
.cat:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.cat-top { display: flex; align-items: center; gap: 13px; margin-bottom: 14px; }
.cat-ico { width: 44px; height: 44px; border-radius: 11px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-family: var(--f-mono); font-size: 12px; font-weight: 600; }
.cat h3 { font-size: 19px; letter-spacing: -.01em; }
.cat p { font-size: 14px; color: var(--body); line-height: 1.55; }
.cat-link { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: 12.5px; font-weight: 500; color: var(--primary); margin-top: 16px; }
.cat-link:hover { gap: 9px; }

/* ── Why choose ───────────────────────────────────────────────────────── */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.why-card { padding: 4px; }
.why-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--green-tint); color: var(--green-strong); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.why-ico svg { width: 23px; height: 23px; }
.why-card h3 { font-size: 18px; letter-spacing: -.01em; margin-bottom: 8px; }
.why-card p { font-size: 14px; color: var(--body); line-height: 1.55; }

/* ── Comparison matrix ─────────────────────────────────────────────────── */
.cmp { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-sm); }
.cmp table { width: 100%; border-collapse: collapse; }
.cmp thead th { text-align: center; padding: 22px 18px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.cmp thead th:first-child { text-align: left; }
.cmp thead th.pop { background: var(--primary-tint); }
.cmp .cmp-tier { font-family: var(--f-display); font-size: 19px; font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
.cmp .cmp-tier.pop { color: var(--primary); }
.cmp .cmp-tier-sub { font-family: var(--f-mono); font-size: 11px; color: var(--muted); margin-top: 4px; font-weight: 400; }
.cmp .cmp-feat-h { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.cmp tbody td { padding: 15px 18px; border-bottom: 1px solid var(--line-2); text-align: center; font-size: 14px; }
.cmp tbody tr:last-child td { border-bottom: none; }
.cmp tbody td:first-child { text-align: left; font-weight: 500; color: var(--ink); }
.cmp tbody td.pop { background: color-mix(in srgb, var(--primary-tint) 45%, transparent); }
.cmp tbody tr:hover td { background: var(--surface-2); }
.cmp tbody tr:hover td.pop { background: var(--primary-tint); }
.cmp-yes { color: var(--green-strong); display: inline-flex; }
.cmp-yes svg { width: 19px; height: 19px; }
.cmp-no { color: var(--faint); font-size: 16px; }

/* ── Final CTA reuse handled by .finalcta in styles.css ───────────────── */

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .factor-grid { grid-template-columns: repeat(2, 1fr); }
  .incl-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .outcomes-grid { grid-template-columns: repeat(3, 1fr); }
  .outcome:nth-child(-n+2) { } .outcome:nth-child(3n+1) { border-left: none; }
  .outcome:nth-child(n+4) { border-top: 1px solid var(--line-2); }
}
@media (max-width: 880px) {
  .plans { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .plan.featured { order: -1; }
  .cmp { overflow-x: auto; }
  .cmp table { min-width: 620px; }
}
@media (max-width: 560px) {
  .factor-grid, .incl-grid, .cat-grid, .why-grid { grid-template-columns: 1fr; }
  .outcomes-grid { grid-template-columns: repeat(2, 1fr); }
  .outcome { border-left: none; border-top: 1px solid var(--line-2); }
  .outcome:first-child, .outcome:nth-child(2) { border-top: none; }
  .outcome:nth-child(odd) { border-left: none; }
}
