/* Music lessons page (tokens in global.css; mirrors home.css patterns) */

/* =========================
   LAYOUT
========================= */
.lessons section {
  padding: clamp(2.5rem, 6vw, 4rem) var(--spacing-md);
}

.who__container,
.instruments__container,
.process__container,
.results__container,
.pricing__container,
.faq__container,
.cta__container {
  max-width: var(--container-width);
  margin: 0 auto;
}

/* =========================
   SHARED TYPOGRAPHY
========================= */
.who__title,
.instruments__title,
.process__title,
.results__title,
.pricing__title,
.faq__title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-align: center;
  margin-inline: auto;
  margin-bottom: var(--spacing-lg);
}

.who__title,
.instruments__title,
.process__title,
.results__title,
.faq__title {
  font-size: clamp(1.5rem, 2vw + 1rem, 1.85rem);
  max-width: 28ch;
}

.pricing__title {
  font-size: clamp(1.6rem, 2.5vw + 0.75rem, 2rem);
  max-width: 22ch;
  margin-bottom: var(--spacing-xl);
}

/* =========================
   WHO IT'S FOR
========================= */
.who {
  background: var(--color-bg);
}

.who__grid {
  display: grid;
  gap: var(--spacing-md);
}

.who__card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: var(--spacing-lg) var(--spacing-md);
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-card);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.who__card:hover {
  transform: translateY(-2px);
  border-color: color-mix(
    in srgb,
    var(--color-primary) 42%,
    var(--color-border)
  );
  box-shadow: var(--shadow-card-hover);
}

.who__card-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  letter-spacing: -0.01em;
  color: var(--color-secondary);
}

.who__card-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--color-muted);
}

/* =========================
   INSTRUMENTS
========================= */
.instruments {
  background: var(--gradient-section-to-surface);
}

.instruments__grid {
  display: grid;
  gap: var(--spacing-md);
}

.instruments__card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: var(--spacing-lg) var(--spacing-md);
  border-radius: var(--radius-md);
  text-align: left;
  box-shadow: var(--shadow-card);
  border-left: 3px solid var(--color-primary);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.instruments__card:hover {
  box-shadow: var(--shadow-card-hover);
  border-left-color: var(--color-accent);
}

.instruments__card-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: var(--spacing-xs);
  color: var(--color-secondary);
}

.instruments__card-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--color-muted);
}

/* =========================
   PROCESS
========================= */
.process {
  background: var(--color-bg);
}

.process__list {
  display: grid;
  gap: var(--spacing-md);
}

.process__item {
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg) var(--spacing-md);
  text-align: center;
  box-shadow: var(--shadow-card);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.process__item:hover {
  border-color: color-mix(
    in srgb,
    var(--color-primary) 35%,
    var(--color-border)
  );
  box-shadow: var(--shadow-card-hover);
}

.process__item-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: var(--spacing-xs);
  color: var(--color-secondary);
}

.process__item-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--color-muted);
}

/* =========================
   RESULTS
========================= */
.results {
  background: var(--gradient-section-muted);
}

.results__grid {
  display: grid;
  gap: var(--spacing-md);
}

.results__item {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.results__item:hover {
  border-color: color-mix(
    in srgb,
    var(--color-primary) 28%,
    var(--color-border)
  );
  box-shadow: var(--shadow-card-hover);
}

.results__text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--color-text);
  font-weight: 500;
  text-align: center;
}

/* =========================
   PRICING
========================= */
.pricing {
  background: var(--gradient-programs);
}

.pricing__card {
  max-width: 28rem;
  margin-inline: auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--spacing-xl) var(--spacing-lg);
  box-shadow: var(--shadow-programs-panel);
  text-align: center;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.pricing__card:hover {
  border-color: color-mix(
    in srgb,
    var(--color-primary) 32%,
    var(--color-border)
  );
  box-shadow: var(--shadow-card-hover);
}

.pricing__price {
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
}

.pricing__amount {
  font-size: 2.25rem;
  color: var(--color-primary);
  letter-spacing: -0.02em;
}

.pricing__period {
  font-size: 1rem;
  color: var(--color-muted);
  margin-left: 0.25rem;
}

.pricing__details {
  font-size: 0.95rem;
  color: var(--color-muted);
  margin-bottom: var(--spacing-md);
}

.pricing__list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--spacing-lg);
  text-align: left;
}

.pricing__item {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: var(--spacing-xs);
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--color-text);
}

.pricing__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--color-accent);
}

.pricing__cta {
  display: inline-block;
  width: 100%;
  font-weight: 600;
  text-align: center;
}

/* =========================
   FAQ
========================= */
.faq {
  background: var(--color-bg);
}

.faq__list {
  max-width: 40rem;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.faq__item {
  padding: var(--spacing-lg);
  background: var(--color-surface-glass);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--color-primary);
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.faq__item:hover {
  background: var(--color-surface);
  border-color: var(--color-border-emphasis);
  border-left-color: var(--color-accent);
}

.faq__question {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  letter-spacing: -0.01em;
  color: var(--color-secondary);
}

.faq__answer {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--color-muted);
}

/* =========================
   CTA (aligned with home)
========================= */
.lessons .cta {
  text-align: center;
  background: var(--color-primary);
  color: var(--color-on-primary);
}

.lessons .cta__title {
  color: var(--color-on-primary);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: var(--spacing-sm);
  max-width: 22ch;
  margin-inline: auto;
}

.lessons .cta__text {
  margin-bottom: var(--spacing-lg);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--color-on-primary);
  max-width: 36rem;
  margin-inline: auto;
}

/* Primary button on saturated band: light surface chip (home CTA pattern) */
.lessons .cta .btn--primary {
  background: var(--color-surface);
  color: var(--color-primary-dark);
  box-shadow: var(--shadow-cta-button);
  border: none;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    color 0.15s ease;
}

.lessons .cta .btn--primary:hover {
  transform: translateY(-1px);
  color: var(--color-primary);
  box-shadow:
    var(--shadow-cta-button-hover),
    0 0 0 1px color-mix(in srgb, var(--color-accent) 55%, transparent);
}

/* =========================
   RESPONSIVE
========================= */
@media (min-width: 640px) {
  .who__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .instruments__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .results__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pricing__amount {
    font-size: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .who__title,
  .instruments__title,
  .process__title,
  .results__title,
  .faq__title {
    max-width: none;
    margin-inline: 0;
  }

  .who__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .instruments__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .process__list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .results__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .pricing__title {
    font-size: 2.25rem;
  }

  .lessons .cta__container {
    max-width: 40rem;
  }
}
