/* ============================================
   LAUNCH VALLEY TUTORING — pricing.css
============================================ */

/* Keep nav slightly more opaque on this page (no hero video behind it) */
.nav.scrolled {
  background: rgba(13, 27, 42, 0.92);
  box-shadow: 0 1px 0 rgba(191, 160, 104, 0.15);
}

[data-theme="light"] .nav,
[data-theme="light"] .nav.scrolled {
  background: rgba(245, 243, 238, 0.92);
}

.nav-link.active {
  color: var(--gold);
}


/* ============================================
   PRICING SECTIONS
============================================ */

.pricing-section {
  padding: var(--section-pad) 1.5rem;
}

#calculator {
  padding-top: 0.5rem;
}

.pricing-container {
  max-width: 960px;
  margin: 0 auto;
}


/* --- Intro --- */

.pricing-intro {
  text-align: center;
  margin-bottom: 3rem;
}

.pricing-heading {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--white);
  margin: 0.75rem 0 1.25rem;
}

.pricing-subtext {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.7;
}


/* --- Details bar --- */

.pricing-details-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 3.5rem;
}

.bar-dot {
  color: var(--text-dim);
}


/* --- Cards --- */

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

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

.pricing-card {
  background: var(--navy-light);
  border: 1px solid rgba(191, 160, 104, 0.18);
  border-radius: 8px;
  padding: 2.2rem 1.8rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.pricing-card:hover {
  border-color: rgba(191, 160, 104, 0.5);
  transform: translateY(-4px);
}

.pricing-card--featured {
  border-color: rgba(191, 160, 104, 0.18);
  background: var(--navy-light);
}

.card-level {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.card-level-sub {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-top: 0.2rem;
  font-weight: 400;
}

.card-price-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.card-original {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-dim);
  text-decoration: line-through;
  text-decoration-color: rgba(191, 160, 104, 0.5);
}

.card-hr {
  font-size: 0.8rem;
}

.card-discounted {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.card-new {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.card-new-hr {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.card-badge {
  display: inline-block;
  align-self: flex-start;
  background: rgba(191, 160, 104, 0.15);
  border: 1px solid rgba(191, 160, 104, 0.35);
  color: var(--gold-light);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 50px;
}


/* --- CTA --- */

.pricing-cta {
  text-align: center;
}


/* ============================================
   SECTION 2 — PACKAGE CALCULATOR
============================================ */

/* Type selector: full width above the layout */
.pricing-container > .calc-type-grid {
  margin-bottom: 2rem;
}

/* Layout: two-column on desktop */
.calc-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 820px) {
  .calc-layout {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .calc-inputs {
    gap: 1rem;
  }

  .calc-group-label {
    font-size: 0.62rem;
    margin-bottom: 0.4rem;
    line-height: 1.4;
  }

  .mob-break {
    display: block;
  }

  .calc-stepper {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .stepper-btn[data-dir="1"] {
    order: -1;
  }

  .stepper-display {
    order: 0;
    min-width: 0;
  }

  .stepper-btn[data-dir="-1"] {
    order: 1;
  }

  .stepper-symbol {
    display: none;
  }

  .stepper-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
  }

  .stepper-btn[data-dir="1"]::before {
    content: '▲';
    font-size: 0.55rem;
  }

  .stepper-btn[data-dir="-1"]::before {
    content: '▼';
    font-size: 0.55rem;
  }

  .stepper-val {
    font-size: 1.2rem;
  }

  .stepper-unit {
    font-size: 0.62rem;
  }

  .calc-type-btn {
    padding: 0.7rem 0.5rem;
    font-size: 0.72rem;
  }

  .calc-summary {
    padding: 1.2rem 1rem 1rem;
    gap: 0.8rem;
    position: static;
  }

  .summary-total {
    font-size: 1.8rem;
  }

  .summary-level {
    font-size: 0.65rem;
  }

  .summary-schedule {
    font-size: 0.72rem;
  }

  .summary-key,
  .summary-val {
    font-size: 0.75rem;
  }

  .summary-saving {
    font-size: 0.7rem;
  }
}


/* ── Input Groups ── */

.calc-inputs {
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
}

.calc-group-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}



/* ── Student Type Tiles ── */

.calc-type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

@media (max-width: 500px) {
  .calc-type-grid {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }
}

.calc-type-btn {
  background: var(--navy-light);
  border: 1px solid rgba(191, 160, 104, 0.2);
  border-radius: 8px;
  padding: 1.1rem 1rem;
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.calc-type-btn:hover {
  border-color: rgba(191, 160, 104, 0.5);
  color: var(--white);
}

.calc-type-btn.active {
  border-color: var(--gold);
  background: rgba(191, 160, 104, 0.08);
  color: var(--white);
}

.calc-type-sub {
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  line-height: 1.3;
}

.calc-type-btn.active .calc-type-sub {
  color: var(--text-muted);
}


/* ── Steppers ── */

.calc-stepper {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.stepper-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(191, 160, 104, 0.35);
  background: transparent;
  color: var(--gold);
  font-size: 1.3rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
  flex-shrink: 0;
}

.stepper-btn:hover {
  background: rgba(191, 160, 104, 0.12);
  border-color: var(--gold);
}

.stepper-btn:disabled {
  opacity: 0.25;
  cursor: default;
  pointer-events: none;
}

.stepper-display {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  min-width: 72px;
}

.stepper-val {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1;
}

.stepper-unit {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}


/* ── Summary Card ── */

.calc-summary {
  background: var(--navy-mid);
  border: 1px solid rgba(191, 160, 104, 0.25);
  border-radius: 12px;
  padding: 2.2rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  position: sticky;
  top: 100px;
}

.summary-header {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.summary-level {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.summary-schedule {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.summary-divider {
  height: 1px;
  background: rgba(191, 160, 104, 0.12);
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.summary-key {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.summary-val {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--white);
}

.summary-price-block {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.summary-original {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-dim);
  text-decoration: line-through;
  text-decoration-color: rgba(191, 160, 104, 0.4);
  min-height: 1.3em; /* reserve space so layout doesn't shift */
}

.summary-total {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.summary-saving {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--gold-light);
  min-height: 1.2em;
}

.summary-cta {
  display: block;
  text-align: center;
  margin-top: 0.4rem;
}
