/* ============================================================================
   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: 900px; margin-left: auto; margin-right: auto;  }
.phero h1 .hl { color: var(--primary); }
.phero-sub { font-size: clamp(17px, 1.5vw, 20px); color: var(--body); margin: 22px auto 0; max-width: 800px; 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 { padding: 40px 0; background: transparent; }

.outcomes-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm); }
.outcome:first-child { border-radius: 16px 0 0 16px; }
.outcome:last-child { border-radius: 0 16px 16px 0; }
.outcomes-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm); }
.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; }
}


/* "?"? Plans (Premium Dark Redesign Override) "?"?"?"?"?"?"?"?"?"?"?"?"?"?"?"?"?"?"?"?"?"?"?"?"?"?"?"?"?"?"?"?"?"?"?"?"?"?"?"? */
.p-plans {
  background: #0B101E; /* Deep premium dark */
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 80px 0;
}
.p-plans::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(1000px 600px at 50% 0%, rgba(21, 66, 211, 0.15) 0%, transparent 100%);
  pointer-events: none;
}
.p-plans .section-head .eyebrow { color: var(--primary); }
.p-plans .section-head h2 { color: #fff; }
.p-plans .section-head p { color: rgba(255,255,255,0.7); }

.plans-wrap { position: relative; z-index: 2; }
.plans-wrap .plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; margin-top: 20px; }

.plan-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 40px 32px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.4s;
  overflow: hidden;
}
.plan-card::before {
  content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, transparent 100%); z-index: -1;
}

.plan-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.4);
}

.plan-card.featured {
  background: rgba(21, 66, 211, 0.05);
  border-color: rgba(21, 66, 211, 0.4);
  box-shadow: 0 0 0 1px rgba(21, 66, 211, 0.4), 0 24px 48px -12px rgba(0, 0, 0, 0.3);
}
.plan-card.featured:hover {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary), 0 0 40px -10px rgba(21, 66, 211, 0.4);
}
.plan-card.featured::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, #1542D3, #4371FF);
}

.plan-card .plan-badge {
  position: absolute; top: 20px; left: 50%; right: auto; transform: translateX(-50%);
  font-family: var(--f-mono); font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: #fff; background: linear-gradient(135deg, #1542D3, #36A968);
  padding: 6px 14px; border-radius: 999px;
  box-shadow: 0 4px 12px rgba(21, 66, 211, 0.3);
}

.plan-card .plan-name { font-size: 26px; font-weight: 600; color: #fff; letter-spacing: -.02em; }
.plan-card .plan-philo { font-family: var(--f-mono); font-size: 12.5px; font-weight: 500; color: var(--primary-tint); margin-top: 8px; opacity: 0.8; }
.plan-card .plan-desc { font-size: 15px; color: rgba(255,255,255,0.65); line-height: 1.55; margin-top: 16px; padding-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,0.1); }

.plan-card .plan-feats { list-style: none; margin: 28px 0 32px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.plan-card .plan-feats li { display: flex; gap: 12px; font-size: 14.5px; color: rgba(255,255,255,0.85); line-height: 1.4; }
.plan-card .plan-feats .pf-check { color: var(--green); flex-shrink: 0; margin-top: 2px; }
.plan-card .plan-feats .pf-check svg { width: 18px; height: 18px; }

.plan-card .plan-best { margin-bottom: 24px; padding: 16px; background: rgba(0,0,0,0.2); border-radius: 12px; border: 1px solid rgba(255,255,255,0.03); }
.plan-card .plan-best-k { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 8px; }
.plan-card .plan-best-v { font-size: 13.5px; color: rgba(255,255,255,0.75); line-height: 1.5; }

.plan-card .btn { width: 100%; justify-content: center; }
.plan-card .btn-secondary { background: rgba(255,255,255,0.08); color: #fff; border: 1px solid rgba(255,255,255,0.1); }
.plan-card .btn-secondary:hover { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.2); }

@media (max-width: 900px) {
  .plans-wrap .plans { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .plan-card.featured { order: -1; }
}