/* ── Pricing page ── */
.pricing-page {
  --pr-blue: #1a6ef5;
  --pr-ink: #0f172a;
  --pr-muted: #64748b;
  --pr-border: #e2e8f0;
  --pr-bg: #f8fafc;
  --pr-yes: #16a34a;
  --pr-no: #cbd5e1;
  --pr-free: #0d9488;
  --pr-bronze: #b45309;
  --pr-silver: #64748b;
  --pr-gold: #ca8a04;
  --pr-enterprise: #1a6ef5;
}

.pricing-hero {
  padding: 120px 20px 36px;
  text-align: center;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(26, 110, 245, 0.12), transparent 70%),
    linear-gradient(180deg, #fff 0%, var(--pr-bg) 100%);
}

.pricing-hero h1 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--pr-ink);
  margin: 0 0 12px;
  line-height: 1.2;
}

.pricing-hero h1 span {
  color: var(--pr-blue);
}

.pricing-hero p {
  max-width: 640px;
  margin: 0 auto;
  color: var(--pr-muted);
  font-size: 16px;
  line-height: 1.7;
}

.pricing-plans {
  padding: 24px 20px 48px;
  background: var(--pr-bg);
}

.pricing-plans-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.pr-card {
  background: #fff;
  border: 1px solid var(--pr-border);
  border-radius: 16px;
  padding: 22px 18px 20px;
  display: flex;
  flex-direction: column;
  text-align: left;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
  position: relative;
  overflow: hidden;
}

.pr-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--tier-accent, var(--pr-blue));
}

.pr-card[data-tier="free"] {
  --tier-accent: #0d9488;
  --tier-soft: #f0fdfa;
  border-color: #99f6e4;
  background: linear-gradient(180deg, #f0fdfa 0%, #fff 42%);
}

.pr-card[data-tier="bronze"] {
  --tier-accent: #c2410c;
  --tier-soft: #fff7ed;
  border-color: #fdba74;
  background: linear-gradient(180deg, #fff7ed 0%, #fff 42%);
}

.pr-card[data-tier="silver"] {
  --tier-accent: #64748b;
  --tier-soft: #f8fafc;
  border-color: #cbd5e1;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 42%);
}

.pr-card[data-tier="gold"] {
  --tier-accent: #ca8a04;
  --tier-soft: #fefce8;
  border-color: #facc15;
  background: linear-gradient(180deg, #fefce8 0%, #fff 42%);
}

.pr-card[data-tier="enterprise"] {
  --tier-accent: #4f46e5;
  --tier-soft: #eef2ff;
  border-color: #a5b4fc;
  background: linear-gradient(180deg, #eef2ff 0%, #fff 42%);
}

.pr-card.is-featured {
  border-color: #eab308;
  box-shadow: 0 12px 32px rgba(202, 138, 4, 0.18);
}

.pr-card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: #ca8a04;
  padding: 4px 8px;
  border-radius: 999px;
}

.pr-card-tier {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
  color: var(--tier-accent, var(--pr-ink));
}

.pr-card-price {
  font-size: 32px;
  font-weight: 800;
  color: var(--pr-ink);
  line-height: 1.1;
  margin-bottom: 4px;
}

.pr-card-price span {
  font-size: 13px;
  font-weight: 500;
  color: var(--pr-muted);
  white-space: nowrap;
}

.pr-card-price.is-custom {
  font-size: 22px;
  padding-top: 6px;
  padding-bottom: 4px;
  color: #4f46e5;
}

.pr-card-note {
  font-size: 12px;
  color: var(--pr-muted);
  margin-bottom: 14px;
  min-height: 34px;
}

.pr-card-list {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  flex: 1;
}

.pr-card-list li {
  font-size: 12.5px;
  color: #334155;
  line-height: 1.45;
  padding: 6px 0 6px 18px;
  position: relative;
  border-top: 1px solid #f1f5f9;
}

.pr-card-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--tier-accent, var(--pr-yes));
  font-weight: 700;
  font-size: 12px;
}

.pr-card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  cursor: pointer;
}

/* Start Free — teal (distinct from Schedule Call) */
.pr-card-cta.cta-free {
  background: #0d9488;
  color: #fff;
  border-color: #0d9488;
}

.pr-card-cta.cta-free:hover {
  background: #0f766e;
  border-color: #0f766e;
  color: #fff;
}

/* Get Started — same blue on Bronze, Silver, Gold */
.pr-card-cta.cta-started {
  background: #1a6ef5;
  color: #fff;
  border-color: #1a6ef5;
}

.pr-card-cta.cta-started:hover {
  background: #1558c7;
  border-color: #1558c7;
  color: #fff;
}

/* Schedule Call — indigo (distinct from Start Free) */
.pr-card-cta.cta-enterprise {
  background: #4f46e5;
  color: #fff;
  border-color: #4f46e5;
}

.pr-card-cta.cta-enterprise:hover {
  background: #4338ca;
  border-color: #4338ca;
  color: #fff;
}

.pricing-compare {
  padding: 20px 20px 64px;
  background: #fff;
}

.pricing-compare-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.pricing-compare-head {
  text-align: center;
  margin-bottom: 24px;
}

.pricing-compare-head h2 {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  color: var(--pr-ink);
  margin: 0 0 8px;
}

.pricing-compare-head p {
  color: var(--pr-muted);
  font-size: 15px;
  margin: 0;
}

.pr-table-shell {
  border: 1px solid var(--pr-border);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.pr-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.pr-table {
  width: 100%;
  min-width: 900px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
  color: #1e293b;
  table-layout: fixed;
}

.pr-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #0f172a;
  color: #fff;
  font-weight: 700;
  text-align: center;
  padding: 12px 8px;
  border-bottom: 1px solid #1e293b;
  white-space: normal;
  vertical-align: bottom;
  line-height: 1.25;
}

.pr-table thead th:first-child {
  width: 240px;
  max-width: 260px;
  text-align: left;
  white-space: nowrap;
  padding-left: 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.pr-table thead .th-free { color: #5eead4; }
.pr-table thead .th-bronze { color: #fdba74; }
.pr-table thead .th-silver { color: #cbd5e1; }
.pr-table thead .th-gold { color: #fde047; }
.pr-table thead .th-enterprise { color: #93c5fd; }

.pr-table .th-price {
  display: block;
  font-size: 11px;
  font-weight: 500;
  opacity: 0.85;
  margin-top: 4px;
  white-space: normal;
  line-height: 1.3;
}

.pr-table tbody td {
  padding: 10px 8px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
  text-align: center;
  background: #fff;
}

.pr-table tbody td.feat-cell {
  text-align: left;
}

.pr-table tbody tr:nth-child(even) td {
  background: #f8fafc;
}

.pr-table .feat-cell {
  width: 240px;
  max-width: 260px;
  color: #334155;
  font-weight: 500;
  border-right: 1px solid #e2e8f0;
}

.pr-table .mod-row td {
  background: #eef2ff !important;
  font-weight: 800;
  color: var(--pr-blue);
  text-align: left !important;
  padding: 10px 14px;
  border-bottom: 1px solid #dbe3f8;
  cursor: pointer;
  user-select: none;
}

.pr-table .mod-row:hover td {
  background: #e0e7ff !important;
}

.pr-table .mod-row:focus {
  outline: none;
}

.pr-table .mod-row:focus td {
  box-shadow: inset 0 0 0 2px rgba(26, 110, 245, 0.35);
}

.pr-table .mod-row-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
}

.pr-table .mod-row-label {
  text-align: left;
}

.pr-table .mod-row-chevron {
  flex-shrink: 0;
  font-size: 14px;
  color: var(--pr-blue);
  transition: transform 0.2s ease;
}

.pr-table .mod-row.is-open .mod-row-chevron {
  transform: rotate(0deg);
}

.pr-table .mod-row:not(.is-open) .mod-row-chevron {
  transform: rotate(-90deg);
}

/* Plan column separators (Free..Enterprise are always last 5 cells) */
.pr-table thead th.th-free,
.pr-table thead th.th-bronze,
.pr-table thead th.th-silver,
.pr-table thead th.th-gold,
.pr-table thead th.th-enterprise,
.pr-table tbody td:nth-last-child(-n + 5) {
  border-left: 1px solid #e2e8f0;
}

.pr-table thead th.th-free,
.pr-table thead th.th-bronze,
.pr-table thead th.th-silver,
.pr-table thead th.th-gold,
.pr-table thead th.th-enterprise {
  border-left-color: rgba(255, 255, 255, 0.12);
}

.pr-table tbody td:nth-last-child(-n + 5) {
  width: 120px;
  min-width: 120px;
  max-width: 130px;
  text-align: center;
  padding-left: 6px;
  padding-right: 6px;
}

.pr-table thead th.th-free,
.pr-table thead th.th-bronze,
.pr-table thead th.th-silver,
.pr-table thead th.th-gold,
.pr-table thead th.th-enterprise {
  width: 120px;
  min-width: 120px;
  max-width: 130px;
  padding-left: 8px;
  padding-right: 8px;
}

/* Column + cell hover highlight */
.pr-table.col-hover-free th.th-free,
.pr-table.col-hover-free td:nth-last-child(5),
.pr-table.col-hover-bronze th.th-bronze,
.pr-table.col-hover-bronze td:nth-last-child(4),
.pr-table.col-hover-silver th.th-silver,
.pr-table.col-hover-silver td:nth-last-child(3),
.pr-table.col-hover-gold th.th-gold,
.pr-table.col-hover-gold td:nth-last-child(2),
.pr-table.col-hover-enterprise th.th-enterprise,
.pr-table.col-hover-enterprise td:nth-last-child(1) {
  background: rgba(26, 110, 245, 0.08) !important;
}

.pr-table.col-hover-free th.th-free,
.pr-table.col-hover-bronze th.th-bronze,
.pr-table.col-hover-silver th.th-silver,
.pr-table.col-hover-gold th.th-gold,
.pr-table.col-hover-enterprise th.th-enterprise {
  background: #1e3a5f !important;
}

.pr-table td.is-cell-hover {
  background: rgba(26, 110, 245, 0.18) !important;
  box-shadow: inset 0 0 0 2px rgba(26, 110, 245, 0.35);
}

.pr-yes {
  display: inline-block;
  color: var(--pr-yes);
  font-weight: 900;
  font-size: 22px;
  line-height: 1;
  -webkit-text-stroke: 0.4px currentColor;
}

.pr-no {
  display: inline-block;
  color: var(--pr-no);
  font-weight: 800;
  font-size: 18px;
  line-height: 1;
}

.pr-val {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #1e40af;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  padding: 3px 8px;
  white-space: nowrap;
}

.pr-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--pr-muted);
  line-height: 1.6;
  padding: 12px 14px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 12px;
}

.pr-note strong {
  color: #9a3412;
}

.pr-mobile-hint {
  display: none;
}

@media (max-width: 1100px) {
  .pricing-plans-inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .pricing-plans-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .pricing-hero {
    padding: 100px 16px 24px;
  }

  .pricing-hero h1 {
    font-size: 26px;
  }

  .pricing-hero p {
    font-size: 14px;
  }

  .pricing-plans {
    padding: 12px 16px 28px;
  }

  .pricing-plans-inner {
    grid-template-columns: 1fr;
    gap: 14px;
    max-width: 420px;
    margin: 0 auto;
  }

  .pr-card {
    padding: 20px 16px 16px;
  }

  .pr-card-price {
    font-size: 28px;
  }

  .pr-card-price span {
    display: inline;
    white-space: normal;
  }

  .pr-card-note {
    min-height: 0;
  }

  .pricing-compare {
    padding: 8px 12px 48px;
  }

  .pricing-compare-head h2 {
    font-size: 22px;
  }

  .pr-mobile-hint {
    display: block;
    text-align: center;
    font-size: 12px;
    color: var(--pr-muted);
    margin: 0 0 10px;
    padding: 8px 10px;
    background: #f1f5f9;
    border-radius: 999px;
  }

  .pr-table-shell {
    border-radius: 12px;
  }

  .pr-table-scroll {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    scrollbar-color: #94a3b8 #e2e8f0;
  }

  .pr-table-scroll::-webkit-scrollbar {
    height: 10px;
  }

  .pr-table-scroll::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 8px;
  }

  .pr-table {
    min-width: 860px;
    font-size: 12px;
  }

  /* Sticky Feature column for mobile swipe compare */
  .pr-table thead th:first-child,
  .pr-table tbody td.feat-cell {
    position: sticky;
    left: 0;
    z-index: 3;
    background: #0f172a;
    box-shadow: 4px 0 8px rgba(15, 23, 42, 0.08);
  }

  .pr-table tbody td.feat-cell {
    background: #fff;
    min-width: 150px;
    max-width: 170px;
    width: 160px;
    z-index: 2;
  }

  .pr-table tbody tr:nth-child(even) td.feat-cell {
    background: #f8fafc;
  }

  .pr-table .mod-row td {
    padding-left: 14px;
  }

  .pr-table thead th.th-free,
  .pr-table thead th.th-bronze,
  .pr-table thead th.th-silver,
  .pr-table thead th.th-gold,
  .pr-table thead th.th-enterprise,
  .pr-table tbody td:nth-last-child(-n + 5) {
    width: 110px;
    min-width: 110px;
    max-width: 120px;
    padding-left: 6px;
    padding-right: 6px;
  }

  .pr-table .th-price {
    white-space: normal;
    line-height: 1.3;
  }

  .pr-yes {
    font-size: 20px;
  }
}
