/* Visual refresh for the Six-Lesson Piano Package landing page.
   The existing content and application interactions remain untouched. */
:root {
  --lp-ink: #180a31;
  --lp-violet: #49217b;
  --lp-violet-bright: #7c3aed;
  --lp-plum: #281044;
  --lp-gold: #f6c453;
  --lp-cream: #fff8ed;
  --lp-mist: rgba(255, 255, 255, 0.12);
  --lp-border: rgba(255, 255, 255, 0.21);
}

#root > .min-h-screen {
  background: #160826 !important;
}

#root .min-h-screen.bg-gradient-to-br.from-purple-900 {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(58rem 34rem at 10% 1%, rgba(154, 81, 255, 0.45), transparent 66%),
    radial-gradient(42rem 30rem at 100% 28%, rgba(63, 124, 242, 0.27), transparent 62%),
    radial-gradient(36rem 24rem at 48% 100%, rgba(240, 182, 65, 0.12), transparent 68%),
    linear-gradient(142deg, #160826 0%, #31125c 48%, #17072a 100%) !important;
}

#root .min-h-screen.bg-gradient-to-br.from-purple-900::before,
#root .min-h-screen.bg-gradient-to-br.from-purple-900::after {
  position: absolute;
  z-index: -1;
  content: "";
  border-radius: 999px;
  pointer-events: none;
  filter: blur(1px);
}

#root .min-h-screen.bg-gradient-to-br.from-purple-900::before {
  width: 34rem;
  height: 34rem;
  top: 14rem;
  left: -17rem;
  border: 1px solid rgba(246, 196, 83, 0.24);
  box-shadow: 0 0 0 2.8rem rgba(246, 196, 83, 0.028), 0 0 0 6rem rgba(246, 196, 83, 0.018);
}

#root .min-h-screen.bg-gradient-to-br.from-purple-900::after {
  width: 25rem;
  height: 25rem;
  right: -10rem;
  bottom: 4rem;
  background: radial-gradient(circle, rgba(127, 65, 215, 0.22), transparent 68%);
}

#root .max-w-7xl {
  position: relative;
  z-index: 1;
}

#root h1 {
  letter-spacing: -0.045em;
  text-wrap: balance;
  text-shadow: 0 10px 34px rgba(11, 3, 27, 0.32);
}

#root h2 {
  letter-spacing: -0.03em;
  text-wrap: balance;
}

#root .text-card-foreground.flex.flex-col.rounded-xl {
  position: relative;
  overflow: hidden;
  border-color: var(--lp-border) !important;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.07)) !important;
  box-shadow: 0 16px 42px rgba(10, 3, 27, 0.19), inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1), border-color 260ms ease, box-shadow 260ms ease, background 260ms ease;
}

#root .text-card-foreground.flex.flex-col.rounded-xl::before {
  position: absolute;
  content: "";
  width: 11rem;
  height: 11rem;
  top: -8rem;
  right: -5rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 246, 210, 0.16), transparent 66%);
  pointer-events: none;
}

#root .bg-white\/5.rounded-lg {
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(14, 5, 35, 0.18) !important;
}

#root .bg-green-500\/20.rounded-lg,
#root .bg-orange-500\/20.rounded-lg {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 220ms ease, background 220ms ease;
}

#root button {
  position: relative;
  isolation: isolate;
  min-height: 3.2rem;
  border-radius: 999px !important;
  letter-spacing: 0.01em;
  transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 200ms ease, background 200ms ease, color 200ms ease, border-color 200ms ease !important;
}

#root button[class*="bg-yellow-400"] {
  border: 1px solid rgba(255, 239, 171, 0.84);
  background: linear-gradient(135deg, #fee36f 0%, #f6be43 100%) !important;
  box-shadow: 0 10px 28px rgba(246, 190, 67, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.65) !important;
}

#root button[class*="bg-white/90"] {
  border-color: rgba(255, 255, 255, 0.64) !important;
  background: rgba(255, 255, 255, 0.93) !important;
  box-shadow: 0 8px 20px rgba(8, 3, 21, 0.15);
}

#root button:focus-visible,
#root a:focus-visible {
  outline: 3px solid #fde68a;
  outline-offset: 4px;
}

#root a,
.lessonpack-related-resources a {
  transition: color 180ms ease, text-decoration-color 180ms ease, text-underline-offset 180ms ease, transform 180ms ease, opacity 180ms ease;
}

#root footer.mt-12 {
  margin-top: 4.5rem !important;
  padding-top: 2rem !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
}

.lessonpack-related-resources {
  background: linear-gradient(180deg, #180a31 0%, #11051f 100%) !important;
  padding-top: 1.35rem !important;
  padding-bottom: 2.4rem !important;
}

.lessonpack-related-resources a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(250, 204, 21, 0.33);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none !important;
}

@media (hover: hover) {
  #root .text-card-foreground.flex.flex-col.rounded-xl:hover {
    z-index: 2;
    transform: translateY(-7px);
    border-color: rgba(255, 231, 157, 0.46) !important;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.21), rgba(255, 255, 255, 0.09)) !important;
    box-shadow: 0 25px 54px rgba(9, 3, 23, 0.34), 0 0 0 1px rgba(255, 239, 180, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
  }

  #root .bg-green-500\/20.rounded-lg:hover,
  #root .bg-orange-500\/20.rounded-lg:hover {
    transform: translateY(-4px) scale(1.015);
    box-shadow: 0 12px 26px rgba(7, 2, 20, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }

  #root button:not(:disabled):hover {
    transform: translateY(-3px) scale(1.025) !important;
    box-shadow: 0 16px 30px rgba(8, 3, 22, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.7) !important;
  }

  #root button[class*="bg-yellow-400"]:not(:disabled):hover {
    background: linear-gradient(135deg, #fff0a2 0%, #f8c545 100%) !important;
  }

  #root button[class*="bg-white/90"]:not(:disabled):hover {
    border-color: rgba(255, 235, 169, 0.88) !important;
    background: rgba(255, 255, 255, 1) !important;
    color: #3b1766 !important;
  }

  #root a:hover {
    color: #fff3ba;
    text-decoration-color: #facc15;
    text-underline-offset: 6px;
  }

  .lessonpack-related-resources a:hover {
    transform: translateY(-2px);
    border-color: rgba(250, 204, 21, 0.74);
    background: rgba(250, 204, 21, 0.11);
    color: #fff5bd !important;
  }

  #root .bg-yellow-400.rounded-full:hover,
  #root .bg-blue-500.rounded-full:hover,
  #root .bg-green-500.rounded-full:hover,
  #root .bg-purple-500.rounded-full:hover,
  #root .bg-yellow-500.rounded-full:hover {
    transform: rotate(-5deg) scale(1.11);
    filter: brightness(1.12) saturate(1.12);
    transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1), filter 200ms ease;
  }
}

@media (max-width: 640px) {
  #root .min-h-screen.bg-gradient-to-br.from-purple-900 {
    padding-top: 3.5rem !important;
    padding-bottom: 3.75rem !important;
  }

  #root h1 {
    font-size: clamp(2.25rem, 11vw, 3.25rem) !important;
    line-height: 0.98 !important;
  }

  #root .text-card-foreground.flex.flex-col.rounded-xl {
    border-radius: 1.25rem !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}


/* Shared navigation, anchor destinations, and accessibility refinements. */
html {
  scroll-behavior: smooth;
  background: #160826;
}

body {
  margin: 0;
  background: #160826;
}

.lessonpack-skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  transform: translateY(-180%);
  padding: 0.75rem 1rem;
  border-radius: 0.65rem;
  background: #fff8ed;
  color: #180a31;
  font: 700 0.875rem/1 ui-sans-serif, system-ui, sans-serif;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(5, 1, 15, 0.34);
  transition: transform 180ms ease;
}

.lessonpack-skip-link:focus {
  transform: translateY(0);
}

.lessonpack-site-header {
  position: sticky;
  z-index: 60;
  top: 0;
  display: flex;
  align-items: center;
  min-height: 4.75rem;
  padding: 0 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(22, 8, 38, 0.83);
  box-shadow: 0 8px 26px rgba(8, 2, 22, 0.14);
  backdrop-filter: blur(16px) saturate(135%);
  -webkit-backdrop-filter: blur(16px) saturate(135%);
  color: #fff8ed;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.lessonpack-nav-inner {
  display: flex;
  align-items: center;
  width: min(100%, 80rem);
  margin: 0 auto;
  gap: 1.5rem;
}

.lessonpack-brand {
  flex: 0 0 auto;
  color: #fff8ed;
  font-size: 1.03rem;
  font-weight: 760;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.lessonpack-desktop-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin-left: auto;
}

.lessonpack-desktop-nav a,
.lessonpack-mobile-panel a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.55rem 0.8rem;
  border-radius: 0.65rem;
  color: rgba(255, 248, 237, 0.86);
  font-size: 0.875rem;
  font-weight: 630;
  line-height: 1.2;
  text-decoration: none;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.lessonpack-desktop-nav a:not(.lessonpack-nav-cta):hover,
.lessonpack-mobile-panel a:not(.lessonpack-nav-cta):hover {
  background: rgba(255, 255, 255, 0.09);
  color: #fff8ed;
}

.lessonpack-nav-cta {
  min-height: 2.9rem !important;
  margin-left: 0.55rem;
  padding-right: 1rem !important;
  padding-left: 1rem !important;
  border: 1px solid rgba(255, 239, 171, 0.85);
  border-radius: 999px !important;
  background: linear-gradient(135deg, #fee36f 0%, #f6be43 100%);
  box-shadow: 0 8px 22px rgba(246, 190, 67, 0.19), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  color: #2a1248 !important;
  font-weight: 790 !important;
}

.lessonpack-nav-cta:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #fff0a2 0%, #f8c545 100%);
  box-shadow: 0 13px 25px rgba(246, 190, 67, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.lessonpack-mobile-menu {
  display: none;
  margin-left: auto;
}

.lessonpack-mobile-menu summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  color: #fff8ed;
  cursor: pointer;
  list-style: none;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.lessonpack-mobile-menu summary::-webkit-details-marker { display: none; }
.lessonpack-mobile-menu summary::before {
  width: 1.18rem;
  height: 0.78rem;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
}
.lessonpack-mobile-menu summary::after {
  position: absolute;
  width: 1.18rem;
  border-top: 2px solid currentColor;
  content: "";
}
.lessonpack-mobile-menu[open] summary {
  border-color: rgba(246, 196, 83, 0.72);
  background: rgba(246, 196, 83, 0.12);
}
.lessonpack-mobile-menu[open] summary::before { transform: rotate(45deg); }
.lessonpack-mobile-menu[open] summary::after { transform: rotate(-45deg); }

.lessonpack-mobile-panel {
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 1rem;
  left: 1rem;
  display: grid;
  gap: 0.25rem;
  padding: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 1rem;
  background: rgba(27, 10, 49, 0.98);
  box-shadow: 0 20px 44px rgba(5, 1, 15, 0.4);
}

.lessonpack-mobile-panel a {
  justify-content: flex-start;
  min-height: 3rem;
  padding-right: 0.9rem;
  padding-left: 0.9rem;
}

.lessonpack-mobile-panel .lessonpack-nav-cta {
  justify-content: center;
  margin: 0.3rem 0 0;
  text-align: center;
}

#package-details,
#benefits {
  scroll-margin-top: 6.25rem;
}

:focus-visible {
  outline: 3px solid var(--focus-ring, #F7D98A) !important;
  outline-offset: 3px !important;
}

#root footer .text-gray-300,
#root footer [class*="text-gray"] {
  opacity: 1 !important;
  color: #e9e1f2 !important;
}

@media (max-width: 767px) {
  .lessonpack-site-header {
    min-height: 4.35rem;
    padding: 0 1rem;
  }

  .lessonpack-nav-inner { gap: 0.75rem; }
  .lessonpack-desktop-nav { display: none; }
  .lessonpack-mobile-menu { display: block; }
  .lessonpack-brand { font-size: 0.98rem; }
  .lessonpack-related-resources a {
    min-height: 3rem;
    padding: 0.8rem 1rem !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lessonpack-site-header *,
  .lessonpack-related-resources * { transition: none !important; }
}


.lessonpack-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* The React application fills #root after its module evaluates. Keep the static
   footer out of the initial paint so its eventual position below the app does
   not create a measurable layout shift. */
.lessonpack-related-resources {
  visibility: hidden;
  opacity: 0;
}

.lessonpack-app-ready .lessonpack-related-resources {
  visibility: visible;
  opacity: 1;
  transition: opacity 160ms ease;
}


@media (max-width: 767px) {
  .lessonpack-mobile-panel .lessonpack-nav-cta {
    min-height: 3rem !important;
  }
}
