/* =========================================
   PRICING PAGE — InmoSogna (Klaviyo Replica)
========================================= */

body {
  background-color: var(--c-crema-alabastro); /* Light background like Klaviyo but brand-aligned */
}

/* ---------- 3-COLUMN LAYOUT ---------- */
.pricing-page-wrapper {
  padding: 5rem 2rem;
  min-height: 100vh;
}

.pricing-layout {
  display: grid;
  grid-template-columns: 220px 1fr 320px;
  gap: 3rem;
  max-width: 1300px;
  margin: 0 auto;
  align-items: start;
}

/* ---------- LEFT NAV (Sticky) ---------- */
.pricing-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 2rem);
  background: transparent;
}
.ps-title {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--c-gris-carbono);
  margin-bottom: 2rem;
}
.ps-group-title {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-gris-pizarra);
  margin-bottom: 0.8rem;
  padding-left: 0.8rem;
}
.ps-menu {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
}
.ps-menu li {
  margin-bottom: 0.3rem;
}
.ps-menu a {
  display: block;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--c-gris-carbono);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
}
.ps-menu a:hover {
  background: rgba(0,0,0,0.04);
}
.ps-menu a.active {
  background: #6D4C66; /* Klaviyo's mauvey purple */
  color: white;
}

/* ---------- CENTER CONTENT ---------- */
.pricing-main {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.pricing-section {
  scroll-margin-top: calc(var(--nav-height) + 2rem);
}

.pricing-section h2 {
  font-family: var(--font-sans);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--c-gris-carbono);
  margin-bottom: 0.8rem;
}
.pricing-section > p {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--c-gris-pizarra);
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 600px;
}

/* Starter Highlights Block */
.starter-highlights {
  background: white;
  border-radius: var(--radius-md);
  padding: 2.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.starter-highlights h3 {
  font-family: var(--font-sans);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--c-gris-carbono);
  text-align: center;
  margin-bottom: 2rem;
}
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}
.highlight-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--c-gris-carbono);
}
.highlight-item svg {
  width: 18px;
  height: 18px;
  color: #2F8A4B; /* Klaviyo green check */
  flex-shrink: 0;
}
.starter-cta {
  text-align: center;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--c-gris-ceniza);
}
.starter-cta h4 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.starter-cta p {
  color: var(--c-gris-pizarra);
  margin-bottom: 1.5rem;
}

/* Product Blocks (Growth / Features) */
.product-block {
  background: white;
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  margin-bottom: 1.5rem;
}
.product-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
.product-title {
  font-family: var(--font-sans);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--c-gris-carbono);
}
.badge-included {
  background: #1A1A1A;
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-desc {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--c-gris-pizarra);
  margin-bottom: 2.5rem;
}

/* Slider matching Klaviyo exactly */
.klaviyo-slider-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  gap: 2rem;
}
.slider-left-col {
  flex: 1;
}
.slider-right-col {
  text-align: right;
  min-width: 120px;
}

.slider-label {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--c-gris-carbono);
  margin-bottom: 0.2rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.slider-info-icon {
  width: 14px;
  height: 14px;
  color: var(--c-gris-pizarra);
  cursor: help;
}
.slider-value-display {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--c-gris-carbono);
  margin-bottom: 1rem;
}

.custom-slider-container {
  position: relative;
  width: 100%;
  height: 24px;
}
.slider-track-bg {
  position: absolute;
  top: 10px;
  left: 0;
  width: 100%;
  height: 4px;
  background: #E0E0E0;
  border-radius: 2px;
}
.slider-track-fill {
  position: absolute;
  top: 10px;
  left: 0;
  height: 4px;
  background: #6D4C66; /* Klaviyo purple */
  border-radius: 2px;
  pointer-events: none;
}
.k-range-input {
  -webkit-appearance: none;
  width: 100%;
  background: transparent;
  position: absolute;
  top: 0;
  left: 0;
  height: 24px;
  margin: 0;
  z-index: 5;
}
.k-range-input:focus {
  outline: none;
}
.k-range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 20px;
  width: 20px;
  border-radius: 50%;
  background: #6D4C66;
  cursor: grab;
  border: 2px solid white;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  margin-top: -8px; /* Align to track */
}
.k-range-input::-webkit-slider-thumb:active {
  cursor: grabbing;
}
.k-range-input::-moz-range-thumb {
  height: 20px;
  width: 20px;
  border-radius: 50%;
  background: #6D4C66;
  cursor: grab;
  border: 2px solid white;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.k-price-val {
  font-family: var(--font-sans);
  font-size: 2rem;
  font-weight: 700;
  color: var(--c-gris-carbono);
  line-height: 1;
}
.k-price-sub {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--c-gris-pizarra);
  margin-top: 0.3rem;
}

/* Add-to-plan Checkbox */
.add-to-plan {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--c-gris-carbono);
  cursor: pointer;
}
.add-to-plan input {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #6D4C66;
}

/* What's included accordion */
.whats-included-wrap {
  border-top: 1px solid var(--c-gris-ceniza);
  padding-top: 1.5rem;
  margin-top: 1.5rem;
}
.whats-included-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--c-gris-carbono);
  cursor: pointer;
  user-select: none;
}
.whats-included-toggle svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s;
}
.whats-included-wrap.open .whats-included-toggle svg {
  transform: rotate(180deg);
}
.whats-included-content {
  display: none;
  margin-top: 1.5rem;
}
.whats-included-wrap.open .whats-included-content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 2rem;
}

/* Pricing cards for Enterprise/Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.service-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
}
.service-title {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--c-gris-carbono);
  margin-bottom: 0.5rem;
}
.service-desc {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--c-gris-pizarra);
  margin-bottom: 1.5rem;
  min-height: 45px;
}
.service-price {
  font-family: var(--font-sans);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--c-gris-carbono);
  margin-bottom: 1.5rem;
}
.service-price span {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--c-gris-pizarra);
}

/* ---------- RIGHT SUMMARY CARD (Sticky) ---------- */
.pricing-summary-card {
  position: sticky;
  top: calc(var(--nav-height) + 2rem);
  background: white;
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.sum-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}
.sum-price {
  font-family: var(--font-sans);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--c-gris-carbono);
  line-height: 1;
}
.sum-currency {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  background: #F1F1F1;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  color: var(--c-gris-carbono);
}
.sum-per {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--c-gris-pizarra);
  margin-bottom: 0.5rem;
}
.sum-desc {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--c-gris-pizarra);
  margin-bottom: 2rem;
}

.sum-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--c-gris-carbono);
  margin-bottom: 0.8rem;
}
.sum-line.total {
  font-weight: 700;
  border-top: 1px solid var(--c-gris-ceniza);
  padding-top: 1rem;
  margin-top: 1rem;
}
.sum-subline {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: #8C6A8F; /* Purple text from klaviyo */
  margin-top: -0.4rem;
  margin-bottom: 1.2rem;
}

.btn-klaviyo {
  display: block;
  width: 100%;
  text-align: center;
  background: #1A1A1A;
  color: white;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  padding: 1.1rem;
  border-radius: 30px; /* Klaviyo has very rounded buttons here */
  text-decoration: none;
  margin-top: 1.5rem;
  transition: background 0.2s;
}
.btn-klaviyo:hover {
  background: #000000;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .pricing-layout {
    grid-template-columns: 200px 1fr;
  }
  .pricing-summary-card {
    display: none; /* In mobile, Klaviyo puts the summary at the bottom fixed or floating */
  }
}
@media (max-width: 768px) {
  .pricing-layout {
    grid-template-columns: 1fr;
  }
  .pricing-sidebar {
    position: static;
    margin-bottom: 2rem;
  }
  .klaviyo-slider-wrapper {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  .slider-right-col {
    text-align: left;
  }
  .whats-included-wrap.open .whats-included-content {
    grid-template-columns: 1fr;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
}
