/* =========================================================================
   BOP Marketing — Pricing page enhancements (Canva-inspired).
   Scoped to .pricing-page + shared pricing components. Uses theme tokens
   from style.css (:root --brand-primary etc). No hardcoded plan data.
   ========================================================================= */

.pricing-hero {
  padding: var(--space-16, 5rem) 0 var(--space-10, 3rem);
  text-align: center;
  background:
    radial-gradient(1100px 480px at 50% -10%, rgba(37,99,235,.14), transparent 60%),
    linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}
.pricing-hero .eyebrow { color: var(--brand-primary, #2563EB); }
.pricing-hero h1 { font-size: clamp(2.25rem, 4vw, 3.25rem); letter-spacing: -.02em; }
.pricing-hero p { max-width: 620px; margin: 1rem auto 0; color: var(--text-secondary, #475569); font-size: 1.0625rem; }

/* --- Plan cards --- */
.pricing-grid {
  display: grid; gap: 1.25rem; align-items: stretch;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  margin-top: 2.25rem;
}
.pricing-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pricing-grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.p-card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid #e6eaf1; border-radius: 18px;
  padding: 1.75rem 1.4rem 1.5rem; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.p-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -20px rgba(15,23,42,.28); border-color: #d3dbea; }
.p-card.popular {
  border-color: var(--brand-primary, #2563EB);
  box-shadow: 0 24px 55px -26px rgba(37,99,235,.55);
  background: linear-gradient(180deg, #fff 0%, #f5f9ff 100%);
}
.p-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: .35rem;
  background: var(--brand-primary, #2563EB); color: #fff;
  font-size: .72rem; font-weight: 700; letter-spacing: .03em;
  padding: .32rem .7rem; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 6px 16px -6px rgba(37,99,235,.7);
}
.p-badge svg { width: 13px; height: 13px; }
.p-card h3 { font-size: 1.35rem; margin: .25rem 0 .35rem; }
.p-desc { color: var(--text-secondary, #475569); font-size: .9rem; min-height: 2.6em; margin-bottom: 1rem; }
.p-price { margin-bottom: 1.1rem; }
.p-price .amount { font-size: 2.35rem; font-weight: 800; letter-spacing: -.02em; color: var(--brand-dark, #1e293b); }
.p-price .per { font-size: .95rem; color: var(--text-tertiary, #64748b); font-weight: 600; }
.p-price .cycle { font-size: .78rem; color: var(--text-tertiary, #94a3b8); margin-top: .25rem; }
.p-cta-note { text-align: center; font-size: .72rem; color: var(--text-tertiary, #94a3b8); margin-top: .5rem; }
.p-feats { list-style: none; padding: 0; margin: 1.15rem 0 0; display: flex; flex-direction: column; gap: .6rem; }
.p-feats li { display: flex; gap: .55rem; align-items: flex-start; font-size: .875rem; color: var(--text-secondary, #334155); }
.p-feats li svg { width: 16px; height: 16px; color: var(--brand-primary, #2563EB); flex: 0 0 16px; margin-top: 2px; }
.btn-block { display: flex; width: 100%; justify-content: center; }
.btn-sm { padding: .5rem .75rem; font-size: .8rem; }
.btn-ghost { background: transparent; border: 1px solid rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }

/* --- Value band --- */
.pricing-value .section-head { text-align: center; }
.value-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin-top: 1.75rem; }
.value-card {
  background: #fff; border: 1px solid #eef1f6; border-radius: 16px; padding: 1.5rem 1.35rem;
  transition: transform .16s ease, box-shadow .16s ease;
}
.value-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px -22px rgba(15,23,42,.3); }
.value-ico {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border-radius: 12px; background: rgba(37,99,235,.1); color: var(--brand-primary, #2563EB); margin-bottom: .9rem;
}
.value-ico svg { width: 22px; height: 22px; }
.value-card h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.value-card p { font-size: .875rem; color: var(--text-secondary, #475569); }

/* --- Compare table --- */
.compare-section .section-head { text-align: center; }
.compare-scroll { overflow-x: auto; margin-top: 1.75rem; border-radius: 16px; }
.compare-table {
  width: 100%; border-collapse: separate; border-spacing: 0; min-width: 640px;
  background: #fff; border: 1px solid #e6eaf1; border-radius: 16px; overflow: hidden;
}
.compare-table th, .compare-table td {
  padding: .85rem 1rem; text-align: center; border-bottom: 1px solid #eef1f6; font-size: .875rem;
}
.compare-table thead th { position: sticky; top: 0; background: #f8fafc; z-index: 1; }
.compare-table .ct-feature { text-align: left; font-weight: 600; color: var(--brand-dark, #1e293b); }
.compare-table tbody tr:nth-child(even) { background: #fbfcfe; }
.ct-plan-name { display: block; font-weight: 800; color: var(--brand-dark, #1e293b); font-size: .95rem; }
.ct-plan-price { display: block; font-size: .78rem; color: var(--text-tertiary, #94a3b8); margin-top: .15rem; }
.ct-plan-price span { font-size: .7rem; }
.ct-rec { background: rgba(37,99,235,.06) !important; }
.compare-table thead .ct-rec { background: rgba(37,99,235,.12) !important; }
.ct-yes svg { width: 18px; height: 18px; color: var(--brand-primary, #2563EB); }
.ct-no { color: #cbd5e1; }
.compare-table tfoot td { border-bottom: none; padding-top: 1rem; padding-bottom: 1rem; }

/* --- Add-ons (Jobber-style cards with product images) --- */
.addons-section .section-head { text-align: center; }
.addons-section .section-head .eyebrow { color: var(--brand-primary, #2563EB); }
.addons-section .section-sub {
  max-width: 640px; margin: .85rem auto 0;
  color: var(--text-secondary, #475569); font-size: 1.0625rem;
}
.addons-grid {
  display: grid; gap: 1.35rem; margin-top: 2.25rem;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}
.addon-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid #e6eaf1; border-radius: 20px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.addon-card:hover { transform: translateY(-5px); box-shadow: 0 22px 48px -24px rgba(15,23,42,.34); border-color: #d3dbea; }
.addon-body { padding: 1.6rem 1.5rem 1.35rem; display: flex; flex-direction: column; flex: 1 1 auto; }
.addon-cat {
  font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--brand-primary, #2563EB); margin-bottom: .55rem;
}
.addon-card h3 { font-size: 1.15rem; margin-bottom: .5rem; color: var(--brand-dark, #1e293b); }
.addon-card p { font-size: .875rem; line-height: 1.55; color: var(--text-secondary, #475569); flex: 1 1 auto; margin-bottom: 1.1rem; }
.addon-link {
  display: inline-flex; align-items: center; gap: .4rem; align-self: flex-start;
  font-size: .875rem; font-weight: 700; color: var(--brand-primary, #2563EB);
  text-decoration: none; transition: gap .16s ease, color .16s ease;
}
.addon-link svg { width: 16px; height: 16px; }
.addon-link:hover { gap: .7rem; color: #1d4ed8; }
.addon-media {
  margin-top: auto; padding: 0 1.1rem 1.1rem;
}
.addon-media img {
  display: block; width: 100%; height: 190px; object-fit: cover;
  border-radius: 14px; background: #f2f6fd;
}

/* --- Bottom CTA band --- */
.pricing-cta-band {
  margin: 1rem 0; padding: var(--space-14, 4rem) 0; text-align: center;
  background: linear-gradient(120deg, #1e3a8a 0%, #2563EB 55%, #1d4ed8 100%);
  color: #fff;
}
.pricing-cta-band h2 { color: #fff; font-size: clamp(1.75rem, 3vw, 2.5rem); }
.pricing-cta-band p { color: rgba(255,255,255,.85); max-width: 560px; margin: .9rem auto 1.75rem; font-size: 1.0625rem; }
.pcb-actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }

@media (max-width: 900px) {
  .pricing-grid--4, .pricing-grid--5 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
}
@media (max-width: 560px) {
  .p-badge { font-size: .66rem; }
  .pricing-grid { gap: 1.5rem; }
}
