/* ––––– PAGE SHELL (REV 2025-07-27) ––––– */
.pricing-page {
  max-width: 1280px;
  margin: 0 auto;
  /* ▼ 40 px → 20 px pulls header up to match homepage */
  padding: 20px 24px 40px;
  font-family: 'Inter', sans-serif;
}


/* ─── PRICING HEADER (matched to Search page) ────────────────────────── */
.pricing-header {
  margin: 12px 0 16px;
  /* pulled up a bit now that the logo row is gone */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1500;
  text-align: center;
  width: 100%;
}


/* Main title (replaces logo + "| Pricing" + subtitle) */
.pricing-title {
  margin: 0;
  /* ▼ match Resources header sizing */
  font-size: clamp(1.15rem, 1.9vw, 1.5rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  /* ▼ keep your existing styling */
  font-weight: 800;
  color: #0056b3;
  text-align: center;
  text-wrap: balance;
  /* ▼ ensure crisp rendering like Resources */
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  /* explicit font to satisfy item #2 */
  font-family: 'Inter', sans-serif;
}

@media (max-width: 640px) {
  .pricing-title {
    /* mirror Resources .resources-title--single mobile sizing */
    font-size: clamp(1.05rem, 4vw, 1.35rem);
    line-height: 1.2;
    letter-spacing: -0.01em;
  }
}



.section-divider {
  width: 100%;
  align-self: stretch;
  /* ensure full width inside the flex header */
  display: block;
  margin: 8px 0 12px;
  /* comfortable breathing room */
}


/* ─── Billing toggle (segmented control) ─────────────────────────────── */
.billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 4px;
/* ▼ match Resources tone */
  border: 1px solid #d5e6ff;
  border-radius: 999px;
  background: #e6f2ff;
}



.billing-toggle input {
  display: none;
}

.billing-toggle .pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  color: #0056b3;
  user-select: none;
  transition: background .25s, color .25s, transform .15s;
}

.billing-toggle .pill .save-tag {
  font-size: .8rem;
  font-weight: 700;
  color: #0f766e;
  background: #d1fae5;
  border: 1px solid #99f6e4;
  border-radius: 999px;
  padding: 2px 8px;
}

/* selected state */
#bill-monthly:checked+label,
#bill-annual:checked+label {
  background: #ffffff;
  color: #0056b3;
  box-shadow: 0 1px 6px rgba(0, 0, 0, .08);
  transform: translateZ(0);
}

/* Row 3 in the header: keep toggle centered with light spacing */
.pricing-header .billing-toggle {
  margin-top: 2px;
}




/* ––––– GRID (desktop fits 4 cleanly; responsive under 1100px) ––––– */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  /* ⬅ was 360px */
  gap: 24px;
  /* ⬅ was 32px */
  margin: 0 auto;
  /* center the grid */
}

/* Force 4 columns on wider desktops while staying inside the 1280px shell */
@media (min-width: 1100px) {
  .packages-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ––––– PANEL ––––– */
.package-panel {
  background: #ffffff;
  border: 1px solid #e5ebf3;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.package-panel>h2 {
  margin: 0 0 16px;
  color: #003f7f;
}

/* ––– CAROUSEL & EMBEDDED ARROWS (REV 2025-07-27) ––– */
.carousel {
  position: relative;
  width: 100%;
  /* slightly smaller gutters so 4 cards fit comfortably at 1280px */
  padding: 0 48px;
  /* ⬅ was 56px */
  overflow: hidden;
  min-height: 420px;
}


.carousel-slide {
  flex: 1;
  /* fills available height                 */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 0 12px 24px;
}


/* ––– EMBEDDED IN-CARD ARROWS (updated) ––– */
.carousel-prev,
.carousel-next {
  position: absolute;
  left: auto;
  right: auto;
  top: 50%;
  transform: translateY(-50%) scale(1);
  /* stay centered; prepare for scale */
  will-change: transform;
  /* smoother hover, no jank */
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #0056b3;
  background: #fff;
  color: #0056b3;
  font-size: 1.75rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .25s, color .25s, transform .15s ease-out;
  z-index: 3;
}

/* Move arrows closer to panel edges (but still inside) */
.carousel-prev {
  left: 6px;
}

.carousel-next {
  right: 6px;
}

.carousel-prev:hover,
.carousel-next:hover {
  background: #0056b3;
  color: #fff;
  transform: translateY(-50%) scale(1.07);
  /* keep center while scaling */
}

.plan-name {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #0056b3;
  /* keep short titles in one line; all our titles are short */
  white-space: nowrap;
}


.plan-price {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  color: #1d4ed8;
}

.price-period {
  font-size: 1rem;
  font-weight: 500;
  color: #475569;
}

.plan-queries {
  margin: 0;
  font-size: 0.95rem;
  color: #475569;
  /* reserve one line of space even if blank (aligns CTAs across slides) */
  min-height: 1.25em;
}


.plan-features {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.95rem;
  color: #374151;
}

.plan-features li {
  margin: 6px 0;
}

.action-btn {
  margin-top: 12px;
  padding: 10px 24px;
  background: #27ae60;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
}

.action-btn:hover {
  background: #1e9950;
}

/* Enterprise button inherits .action-btn */
#enterprise-contact-btn {
  width: 100%;
}

/* ––––– INITIAL VISIBILITY ––––– */
.carousel-slide:first-child {
  display: flex;
}


/* ─── CAROUSEL HEIGHT & ARROW ALIGNMENT — consistent across packages ─── */
.package-panel {
  position: relative;
}

/* arrow anchor */
.carousel {
  /* fixed height keeps arrows centered identically across all panels */
  min-height: 480px;
}

/* unified slide height */
.carousel-slide {
  min-height: 480px;
}




/* ─── PLAN FEATURES — perforated underline + checkmark icon ───────────── */
.plan-features li {
  position: relative;
  padding-left: 26px;
  margin: 6px 0;
  border-bottom: 1px dotted #d1d5db;
  /* perforated look */
}

.plan-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #27ae60;
  font-weight: 700;
}

/* ─── OPTIONAL: hide list bullet fallback in some browsers ────────────── */
.plan-features {
  list-style: none;
}

/* ––– CTA vertical-alignment patch (REV 2025-07-27) ––– */
.package-panel>.action-btn,
#enterprise-package .action-btn {
  align-self: center;
  /* mirrors .carousel-slide variant */
  margin: 4px 0 12px;
  /* identical spacing */
}


/* ––– FAQ ACCORDION (added 2025-07-27) ––– */
.faq-section {
  max-width: 960px;
  margin: 60px auto 0;
  font-family: 'Inter', sans-serif;
}

.faq-section h2 {
  font-size: 1.75rem;
  color: #0056b3;
  margin-bottom: 24px;
  text-align: center;
}

.faq-item {
  border: 1px solid #e5ebf3;
  border-radius: 8px;
  background: #fff;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 18px 24px;
  font-size: 1.05rem;
  font-weight: 600;
  color: #003f7f;
  cursor: pointer;
  background: #f7fcff;
  border: none;
  outline: none;
  transition: background .25s;
}

.faq-question:hover {
  background: #e6f2ff;
}

.faq-question .arrow {
  font-size: 1.5rem;
  transition: transform .3s;
}

.faq-item.open .faq-question .arrow {
  transform: rotate(90deg);
}

.faq-answer {
  padding: 0 24px 18px;
  font-size: .95rem;
  line-height: 1.6;
  color: #374151;
  display: none;
}

.faq-item.open .faq-answer {
  display: block;
}


/* Keep FAQ title from overflowing small screens */
.faq-section h2,
.faq-section .faq-title {
  text-wrap: balance;
  /* modern, widely supported */
  overflow-wrap: anywhere;
  /* allow breaks on tiny screens */
  word-break: normal;
}

/* Mobile-friendly FAQ title sizing/padding */
@media (max-width: 600px) {

  .faq-section h2,
  .faq-section .faq-title {
    font-size: 1.35rem;
    /* ⤵️ scale down from 1.75rem */
    padding: 0 12px;
    /* light horizontal breathing room */
  }
}


/* Ensures pricing cards never cover global dropdowns */
.packages-grid {
  position: relative;
  z-index: 1;
}


/* === Mobile/smaller screens (≤ 900px) – Pricing page === */
@media (max-width: 900px) {
  .pricing-logo {
    height: 48px;
  }

  .pricing-suffix {
    font-size: 1.05rem;
  }

  .packages-grid {
    grid-template-columns: 1fr;
    /* one card per row */
    gap: 16px;
  }

  .package-panel {
    padding: 20px 16px;
  }

  .carousel {
    padding: 0 52px;
    /* keep the unified min-height even on mobile to lock arrow position */
    min-height: 480px;
  }


  .carousel-prev,
  .carousel-next {
    width: 36px;
    height: 36px;
    font-size: 1.5rem;
  }

  .plan-price {
    font-size: 1.6rem;
  }

  .plan-name {
    font-size: 1.1rem;
  }

  .billing-toggle {
    transform: scale(.98);
  }

  .billing-toggle .pill {
    padding: 10px 14px;
  }

  .pricing-title-row {
    gap: 8px;
  }

}