/* ═══════════════════════════════════════════════════════════════
   NUDGEBEE PRICING PAGE
   ═══════════════════════════════════════════════════════════════ */

/* ═══ HERO ══════════════════════════════════════════════════════ */
.pr-hero {
  padding: 90px var(--gutter) 32px;
  background: var(--white);
  text-align: center;
}
.pr-hero-inner { max-width: 780px; margin: 0 auto; }
.pr-hero-h {
  font-family: var(--fh);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 400; color: var(--ink);
  letter-spacing: -.03em; line-height: 1.15;
  margin-bottom: 6px;
}
.pr-hero-h strong {
  font-weight: 800;
}
.pr-hero-h .acc { color: var(--purple); }
.pr-hero .section-lead { font-size: .92rem; margin: 10px auto 0; }

/* ═══ PRICING TABLE ════════════════════════════════════════════ */
.pr-table-section {
  padding: 0 var(--gutter) var(--sp-2xl);
  background: var(--white);
}
.pr-table-wrap {
  max-width: var(--max-w-lg); margin: 0 auto;
  background: var(--off);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: visible;
}
/* Re-clip only the last row so content doesn't bleed out of rounded corners */
.pr-table-wrap > .pr-grid:last-child  { border-radius: 0 0 20px 20px; overflow: hidden; }
/* Round top corners of header row but allow badge overflow */
.pr-header-row { border-radius: 20px 20px 0 0; }

/* Grid: 5 columns — label + 4 plans */
.pr-grid {
  display: grid;
  grid-template-columns: 240px repeat(4, 1fr);
}

/* ═══ PLAN HEADER ROW ══════════════════════════════════════════ */
.pr-header-row {
  border-bottom: 1px solid var(--border);
}
.pr-header-row .pr-label-col {
  background: var(--white);
}
.pr-plan-col {
  padding: 14px 16px 14px;
  border-left: 1px solid var(--border);
  background: var(--white);
  display: flex; flex-direction: column;
}
.pr-plan-col.pr-plan-popular {
  position: relative;
}
.pr-popular-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--white); border: 1.5px solid var(--yellow);
  border-radius: var(--r-pill);
  padding: 6px 16px;
  font-family: var(--fh); font-size: .72rem; font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
  /* Sit on top of the card's top border */
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.pr-popular-tag svg { color: var(--yellow); }

.pr-plan-name {
  font-family: var(--fh); font-size: 1rem; font-weight: 800;
  color: var(--ink); margin-bottom: 4px; letter-spacing: -.02em;
}
.pr-plan-desc {
  font-size: .72rem; color: #4B5563; line-height: 1.4;
  margin-bottom: 8px; flex: 1;
}
.pr-plan-price {
  margin-bottom: 1px;
  display: flex; align-items: baseline; gap: 2px;
}
.pr-price-val {
  font-family: var(--fh); font-size: 1.5rem; font-weight: 800;
  color: var(--ink); letter-spacing: -.04em;
}
.pr-price-unit {
  font-size: .78rem; color: var(--muted); font-weight: 500;
}
.pr-price-note {
  font-size: .7rem; color: var(--muted); font-weight: 600;
  margin-bottom: 2px;
}

/* Plan CTA button */
.pr-plan-btn {
  display: inline-flex; align-items: center; gap: 0;
  background: var(--navy); color: #fff;
  font-family: var(--fb); font-size: .74rem; font-weight: 700;
  padding: 4px 4px 4px 14px; border-radius: var(--r-md); border: none;
  box-shadow: 0 2px 10px rgba(27,45,74,.22);
  transition: transform .2s var(--ease-out-expo), box-shadow .2s;
  margin-top: 6px; align-self: flex-start;
  text-decoration: none;
}
.pr-plan-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(27,45,74,.32);
}
.pr-btn-arr {
  width: 24px; height: 24px; border-radius: 5px;
  background: var(--yellow); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  margin-left: 10px; flex-shrink: 0;
}
.pr-btn-arr svg {
  width: 13px; height: 13px;
  stroke: var(--navy); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
  fill: none;
}

/* ═══ FEATURE ROWS ═════════════════════════════════════════════ */
.pr-row {
  border-bottom: 1px solid var(--border);
}
.pr-row-last {
  border-bottom: none;
}
.pr-label-col {
  padding: 8px 16px;
  display: flex; align-items: center;
  background: var(--white);
}
.pr-feat-label {
  font-family: var(--fh); font-size: .76rem; font-weight: 700;
  color: var(--ink); line-height: 1.3;
}
.pr-val-col {
  padding: 8px 16px;
  border-left: 1px solid var(--border);
  font-size: .74rem; color: #4B5563; line-height: 1.4;
  display: flex; align-items: center;
}

/* Check icon */
.pr-check {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px;
  background: #0F766E; border-radius: 3px;
}
.pr-check svg {
  width: 12px; height: 12px; stroke: white;
}

/* Dash */
.pr-dash {
  color: var(--muted); font-size: 1rem;
}

/* ═══ CATEGORY HEADERS ═════════════════════════════════════════ */
.pr-category {
  padding: 7px 16px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.pr-cat-label {
  font-family: var(--fh); font-size: .76rem; font-weight: 700;
  color: var(--purple); letter-spacing: .01em;
}

/* ═══ CTA — uses shared .cta-card from styles.css ═══════════════ */

/* ═══ MOBILE PLAN CARDS (hidden on desktop) ═══════════════════ */
.pr-mob-cards { display: none; }

/* ═══ RESPONSIVE ════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .pr-grid {
    grid-template-columns: 200px repeat(4, 1fr);
  }
  .pr-plan-col { padding: 12px 12px 12px; }
  .pr-val-col { padding: 7px 12px; }
  .pr-label-col { padding: 7px 12px; }
  .pr-price-val { font-size: 1.3rem; }
}

@media (max-width: 900px) {
  .pr-hero { padding: 120px var(--gutter-sm) 36px; }
  .pr-table-section { padding: 0 var(--gutter-sm) var(--sp-4xl); }

  /* Hide the desktop comparison table */
  .pr-table-wrap { display: none; }

  /* Show mobile cards */
  .pr-mob-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .pr-mob-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: visible;
  }
  .pr-mob-card-popular {
    border-color: var(--yellow);
    border-width: 2px;
    margin-top: 14px;
  }

  .pr-mob-header {
    padding: 20px 20px 16px;
    border-bottom: 1px solid var(--border);
    position: relative;
  }
  .pr-mob-card-popular .pr-mob-header {
    padding-top: 36px;
  }
  .pr-mob-card-popular .pr-popular-tag {
    position: absolute;
    top: 0; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
  }

  .pr-mob-details {
    padding: 4px 0;
  }

  .pr-mob-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 20px;
    gap: 12px;
    border-bottom: 1px solid var(--border);
  }
  .pr-mob-row:last-child {
    border-bottom: none;
  }

  .pr-mob-label {
    font-family: var(--fh);
    font-size: .74rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.3;
    flex-shrink: 0;
    max-width: 45%;
  }
  .pr-mob-val {
    font-size: .74rem;
    color: #4B5563;
    line-height: 1.4;
    text-align: right;
  }

  .pr-mob-cat {
    font-family: var(--fh);
    font-size: .72rem;
    font-weight: 700;
    color: var(--purple);
    padding: 8px 20px 4px;
    letter-spacing: .01em;
  }
}

@media (max-width: 600px) {
  .pr-hero-h { font-size: 1.6rem; }
  .pr-mob-header { padding: 16px 16px 14px; }
  .pr-mob-row { padding: 9px 16px; }
  .pr-mob-cat { padding: 8px 16px 4px; }
}
