/* ==========================================================================
   Pricing Page Styles — Clean White Luxury Theme
   ========================================================================== */

/* 2. Page Hero / Intro Banner */
.pricing-hero {
  padding: 4rem 0 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--bg);
  min-height: 83vh;
}

.pricing-hero .hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.pricing-hero .hero-bg-media,
.pricing-hero .hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.04;
}

.pricing-hero-inner {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  width: 100%;
}

.pricing-hero-meta {
  margin-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  justify-content: center;
  color: var(--muted);
  font-size: 0.82rem;
}

.pricing-hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.pricing-hero-meta i {
  width: 0.9rem;
  height: 0.9rem;
  color: var(--tan);
}

/* 3. Billing Toggle */
.billing-section {
  padding: 3rem 0 2rem;
}

.billing-toggle-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.45rem 0.55rem;
  border-radius: 6px !important;
  border: 1px solid var(--border);
  background: var(--bg-2);
}

.billing-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  padding: 0.45rem 0.85rem;
  border-radius: 4px !important;
  transition: color 0.25s, background 0.25s;
  cursor: pointer;
  user-select: none;
}

.billing-label.active {
  color: #FFFFFF;
  background: var(--bg-dark);
}

.billing-switch {
  position: relative;
  width: 3rem;
  height: 1.65rem;
  border-radius: 6px !important;
  background: var(--border);
  border: 1px solid var(--border);
  flex-shrink: 0;
  transition: background 0.25s, border-color 0.25s;
  cursor: pointer;
}

.billing-switch[aria-checked="true"] {
  background: var(--bg-dark);
  border-color: var(--bg-dark);
}

.billing-switch-thumb {
  position: absolute;
  top: 50%;
  left: 0.2rem;
  transform: translateY(-50%);
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 4px !important;
  background: #FFFFFF;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.billing-switch[aria-checked="true"] .billing-switch-thumb {
  transform: translate(1.35rem, -50%);
}

.billing-save {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--bg-dark);
  background: var(--tan-light);
  border: 1px solid var(--border);
  padding: 0.35rem 0.75rem;
  border-radius: 4px !important;
}

.billing-save i {
  width: 0.85rem;
  height: 0.85rem;
}

/* 4. Pricing Plans / Tiers Grid */
.pricing-tiers {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 2.5rem;
  align-items: stretch;
}

@media (max-width: 900px) {
  .pricing-tiers {
    grid-template-columns: 1fr;
  }
}

.pricing-tier {
  padding: 2.2rem 2rem;
  border-radius: 6px !important;
  background: #FFFFFF;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.35s, border-color 0.35s, box-shadow 0.35s;
}

.pricing-tier:hover {
  transform: translateY(-4px);
  border-color: var(--tan);
  box-shadow: var(--shadow-hover);
}

.pricing-tier.featured {
  border: 2px solid var(--bg-dark) !important;
  box-shadow: var(--shadow-hover);
  z-index: 2;
}

.pricing-tier .tier-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-dark);
  color: #FFFFFF;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.8rem;
  border-radius: 4px !important;
}

/* Featured tier uses the shared .badge component, positioned to float above the card */
.pricing-tier.featured .badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 0;
  white-space: nowrap;
}

/* ==========================================================================
   Hero Background — image / video toggle
   ========================================================================== */
.pricing-hero .hero-bg-image { display: block; }
.pricing-hero .hero-bg-video { display: none; }
.pricing-hero .hero-bg--video .hero-bg-image { display: none; }
.pricing-hero .hero-bg--video .hero-bg-video { display: block; }

/* ==========================================================================
   Tier Card Internals
   ========================================================================== */
.tier-icon {
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px !important;
  background: var(--tan-light);
  color: var(--bg-dark);
  margin-bottom: 1.1rem;
}

.tier-icon i { width: 1.3rem; height: 1.3rem; }

.pricing-tier h3 { margin-top: 0; }

.tier-desc {
  margin-top: 0.4rem;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
}

.price-block {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.3rem;
  margin: 1.5rem 0 1.75rem;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 500;
  color: var(--fg);
  transition: opacity 0.2s ease;
}

.price-amount.is-updating { opacity: 0.4; }

.price-period {
  font-size: 0.9rem;
  color: var(--muted);
}

.price-note {
  flex-basis: 100%;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: var(--tan);
}

.tier-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.tier-features li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--fg);
}

.tier-features li i {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  color: var(--bg-dark);
}

.tier-features li.disabled {
  color: var(--muted);
  opacity: 0.6;
}

.tier-features li.disabled i { color: var(--muted); }

/* ==========================================================================
   Feature Comparison Table
   ========================================================================== */
.pricing-comparison-wrap {
  margin-top: 2.5rem;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 6px !important;
  box-shadow: var(--shadow-card);
  background: var(--bg-surface, #FFFFFF);
}

.pricing-comparison {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: 0.88rem;
}

.pricing-comparison th,
.pricing-comparison td {
  padding: 1rem 1.25rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.pricing-comparison td:first-child,
.pricing-comparison th:first-child {
  text-align: left;
  color: var(--fg);
  font-weight: 600;
  white-space: normal;
}

.pricing-comparison thead th {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  background: var(--bg-2);
  position: relative;
}

.pricing-comparison tbody td { color: var(--muted); }
.pricing-comparison tbody tr:last-child td { border-bottom: none; }

.pricing-comparison .col-popular {
  background: var(--tan-light);
  color: var(--fg);
}

.pricing-comparison thead .col-popular {
  background: var(--bg-dark);
  color: #FFFFFF;
  position: relative;
}

.plan-tag {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--tan-light);
}

.comp-icon {
  width: 1.1rem;
  height: 1.1rem;
}

.comp-yes { color: var(--bg-dark); }
.comp-no { color: var(--border-2); }

/* ==========================================================================
   Most Popular / Recommended Spotlight
   ========================================================================== */
.popular-spotlight {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
  padding: 3rem;
  border-radius: 6px !important;
}

.popular-spotlight-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--bg-dark);
  background: var(--tan-light);
  padding: 0.35rem 0.85rem;
  border-radius: 4px !important;
  margin-bottom: 0.75rem;
}

.popular-spotlight-badge i { width: 0.9rem; height: 0.9rem; }

.popular-spotlight-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem 0;
}

.popular-spotlight-price .amount {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 500;
  color: var(--fg);
  transition: opacity 0.2s ease;
}

.popular-spotlight-price .amount.is-updating { opacity: 0.4; }

.popular-spotlight-perks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 1.25rem 0 1.75rem;
}

.popular-spotlight-perks li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--fg);
}

.popular-spotlight-perks li i {
  width: 1rem;
  height: 1rem;
  color: var(--bg-dark);
  flex-shrink: 0;
}

.spotlight-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.popular-spotlight-visual { min-width: 0; }

.popular-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.popular-stat {
  padding: 1.5rem 1.25rem;
  text-align: center;
  border-radius: 6px !important;
  background: #FFFFFF;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.popular-stat-v {
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--bg-dark);
}

.popular-stat-l {
  margin-top: 0.3rem;
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 860px) {
  .popular-spotlight { grid-template-columns: minmax(0, 1fr); padding: 2rem; gap: 2rem; }
}

/* ==========================================================================
   Add-ons Grid
   ========================================================================== */
.addons-grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.addon-card {
  padding: 1.75rem;
  border-radius: 6px !important;
  text-align: left;
}

.addon-card i {
  width: 1.6rem;
  height: 1.6rem;
  color: var(--bg-dark);
  margin-bottom: 0.9rem;
}

.addon-card h4 { margin-top: 0; }

.addon-card p {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}

.addon-price {
  margin-top: 1.25rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--fg);
}

.addon-price span {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--muted);
}

@media (max-width: 900px) {
  .addons-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .addons-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Enterprise Block
   ========================================================================== */
.enterprise-block {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
  padding: 3rem;
  border-radius: 6px !important;
}

.enterprise-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.5rem 0 2rem;
}

.enterprise-features li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--fg);
}

.enterprise-features li i {
  width: 1rem;
  height: 1rem;
  color: var(--bg-dark);
  flex-shrink: 0;
}

.enterprise-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.enterprise-visual {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.enterprise-pill {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: 6px !important;
  background: #FFFFFF;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.enterprise-pill i {
  width: 1.6rem;
  height: 1.6rem;
  flex-shrink: 0;
  color: var(--bg-dark);
}

.enterprise-pill strong {
  display: block;
  font-size: 0.9rem;
}

.enterprise-pill span {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.8rem;
  color: var(--muted);
}

@media (max-width: 860px) {
  .enterprise-block { grid-template-columns: minmax(0, 1fr); padding: 2rem; gap: 2rem; }
}

/* ==========================================================================
   Money-Back Guarantee Banner
   ========================================================================== */
.guarantee-banner {
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem 2.25rem;
  border-radius: 6px !important;
}

.guarantee-icon {
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px !important;
  background: var(--tan-light);
  color: var(--bg-dark);
}

.guarantee-icon i { width: 1.5rem; height: 1.5rem; }

.guarantee-content { flex: 1; min-width: 0; }
.guarantee-content h4 { margin-top: 0; }
.guarantee-content p {
  margin-top: 0.4rem;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
}

.guarantee-link {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 700px) {
  .guarantee-banner { flex-direction: column; text-align: center; }
  .guarantee-link { margin-top: 0.5rem; }
}

/* ==========================================================================
   Small-screen refinements
   ========================================================================== */
@media (max-width: 480px) {
  .pricing-tier { padding: 1.75rem 1.5rem; }
  .price-amount { font-size: 2rem; }
  .popular-spotlight-price .amount { font-size: 2.1rem; }
  .billing-toggle-wrap { gap: 0.75rem; }
  .enterprise-block, .popular-spotlight { padding: 1.5rem; }
}