/* Joy Music School marketing — aligned with portal / Material Dashboard theme (frontend/css/variables.css) */

:root {
  --md-primary: #f70880;
  --md-primary-dark: #cc0066;
  --md-accent: #fead8b;
  --md-purple: #9333ea;
  --bg-page: #f5f5f5;
  --bg-elevated: #ffffff;
  --bg-subtle: #fafafa;
  --stroke: rgba(103, 116, 142, 0.12);
  --stroke-strong: rgba(103, 116, 142, 0.2);
  --text: #344767;
  --text-secondary: #67748e;
  --text-muted: #8392ab;
  --radius: 0.75rem;
  --radius-lg: 1rem;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(255, 0, 128, 0.12);
  --shadow-card: 0 5px 10px -3px rgba(255, 0, 128, 0.08), 0 4px 6px -2px rgba(255, 0, 128, 0.04);
  --font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --gradient-primary: linear-gradient(135deg, #f70880 0%, #fead8b 100%);
  --gradient-hero-mesh: radial-gradient(ellipse 120% 80% at 50% -20%, rgba(247, 8, 128, 0.08), transparent 55%),
    radial-gradient(ellipse 80% 50% at 100% 0%, rgba(147, 51, 234, 0.06), transparent 45%),
    radial-gradient(ellipse 60% 40% at 0% 100%, rgba(254, 173, 139, 0.12), transparent 50%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-page);
  background-image: var(--gradient-hero-mesh), linear-gradient(180deg, #ffffff 0%, #f5f5f5 35%, #f5f5f5 100%);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Decorative layer (replaces dark aurora) — subtle portal-style glow */
.ja-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: var(--gradient-hero-mesh);
  opacity: 1;
}

.ja-noise {
  display: none;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

/* Top bar accent — echoes portal gradient strips */
.ja-top-accent {
  height: 3px;
  background: var(--gradient-primary);
  width: 100%;
}

/* Nav — white app shell like portal sidebar / navbar */
.ja-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--stroke);
  box-shadow: 0 0 2rem 0 rgba(255, 0, 128, 0.04);
}

.ja-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}

.ja-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text);
  font-size: 1.05rem;
}

.ja-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f70880 0%, #fead8b 50%, #9333ea 100%);
  padding: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  box-shadow:
    0 6px 20px rgba(247, 8, 128, 0.28),
    0 2px 8px rgba(147, 51, 234, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.15) inset;
  animation: jaBrandGlow 4s ease-in-out infinite;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ja-mark::before {
  content: '';
  position: absolute;
  inset: 2.5px;
  background: rgba(255, 255, 255, 0.97);
  border-radius: 9.5px;
  z-index: 0;
}

.ja-mark::after {
  content: '';
  position: absolute;
  inset: -6px;
  background: linear-gradient(135deg, #f70880, #fead8b, #9333ea);
  border-radius: 16px;
  opacity: 0.18;
  filter: blur(12px);
  z-index: -1;
  animation: jaGlowPulse 4s ease-in-out infinite;
}

.ja-mark img {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  position: relative;
  z-index: 1;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.1)) brightness(1.03) saturate(1.1);
  animation: jaLogoFloat 3s ease-in-out infinite;
}

.ja-brand:hover .ja-mark {
  transform: translateY(-2px) scale(1.05);
  box-shadow:
    0 10px 28px rgba(247, 8, 128, 0.35),
    0 4px 12px rgba(147, 51, 234, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.ja-brand:hover .ja-mark img {
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.15)) brightness(1.05) saturate(1.15);
}

@keyframes jaBrandGlow {
  0%, 100% { box-shadow: 0 6px 20px rgba(247,8,128,0.28), 0 2px 8px rgba(147,51,234,0.15), 0 0 0 1px rgba(255,255,255,0.15) inset; }
  50%       { box-shadow: 0 8px 28px rgba(247,8,128,0.4),  0 4px 14px rgba(147,51,234,0.25), 0 0 0 1px rgba(255,255,255,0.2) inset; }
}

@keyframes jaGlowPulse {
  0%, 100% { opacity: 0.18; filter: blur(12px); }
  50%       { opacity: 0.30; filter: blur(16px); }
}

@keyframes jaLogoFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33%       { transform: translateY(-1.5px) rotate(-1deg); }
  66%       { transform: translateY(1px) rotate(0.5deg); }
}

.ja-nav-links {
  display: flex;
  gap: 0.35rem 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.ja-nav-links a:not(.ja-btn) {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.35rem 0.5rem;
  border-radius: 0.5rem;
  transition: color 0.2s, background 0.2s;
}

.ja-nav-links a:not(.ja-btn):hover {
  color: var(--md-primary);
  background: rgba(247, 8, 128, 0.06);
}

.ja-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1.15rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}

.ja-btn:focus-visible {
  outline: 2px solid var(--md-primary);
  outline-offset: 2px;
}

.ja-btn .material-icons {
  font-size: 18px;
  line-height: 1;
  margin-right: 0.25rem;
}

.ja-btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(247, 8, 128, 0.35);
}

.ja-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(247, 8, 128, 0.45);
}

.ja-btn-ghost {
  background: var(--bg-elevated);
  border-color: var(--stroke-strong);
  color: var(--text-secondary);
}

.ja-btn-ghost:hover {
  border-color: var(--md-primary);
  color: var(--md-primary);
  background: rgba(247, 8, 128, 0.04);
}

/* Hero */
.ja-hero {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 2.5rem;
}

/* Full-bleed hero + rotating stock video (Mixkit 1080p MP4) */
.ja-hero--motion {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 0;
  overflow: hidden;
  min-height: clamp(22rem, 62vh, 36rem);
  border-bottom: 1px solid var(--stroke);
  box-shadow: 0 18px 40px rgba(247, 8, 128, 0.08);
}

.ja-hero-media {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  z-index: 0;
  min-height: inherit;
  overflow: hidden;
  background: linear-gradient(165deg, #fff5fb 0%, #fffefb 45%, #f5f5f5 100%);
}

.ja-hero-video-shell {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.ja-hero-video-stack {
  position: relative;
  width: 100%;
  height: 100%;
}

.ja-hero-video-shell .ja-hero-rot-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 1.1s ease;
  transform: translateZ(0) scale(1);
  pointer-events: none;
  z-index: 0;
  will-change: opacity, transform;
  backface-visibility: hidden;
}

.ja-hero-rot-video.ja-hero-video--active {
  opacity: 1;
  z-index: 2;
  filter: saturate(1.05) contrast(1.02);
  animation: none;
}

.ja-hero-rot-video.ja-hero-video--failed {
  opacity: 0 !important;
  visibility: hidden;
  pointer-events: none;
}

.ja-hero-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(105deg, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0.14) 38%, transparent 58%, transparent 100%),
    radial-gradient(ellipse 92% 72% at 50% 100%, rgba(0, 0, 0, 0.05), transparent 56%);
  box-shadow: inset 0 0 48px rgba(255, 255, 255, 0.1);
}

.ja-hero-media.ja-hero-video-active .ja-hero-video-overlay {
  background:
    linear-gradient(105deg, rgba(255, 255, 255, 0.32) 0%, rgba(255, 255, 255, 0.1) 44%, transparent 62%, transparent 100%),
    radial-gradient(ellipse 90% 68% at 50% 100%, rgba(0, 0, 0, 0.06), transparent 56%);
}

.ja-hero--motion .ja-hero-content {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  z-index: 4;
  align-self: center;
  padding: clamp(2.5rem, 6vw, 4.25rem) 0 clamp(2.25rem, 5vw, 3.25rem);
}

.ja-hero--motion h1 {
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9), 0 2px 24px rgba(255, 255, 255, 0.45);
}

.ja-hero--motion .ja-lead {
  color: var(--text);
  font-weight: 500;
  line-height: 1.55;
  max-width: 52ch;
  margin: 0 0 1.75rem;
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    0 10px 32px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  text-shadow: none;
}

.ja-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.ja-hero h1 {
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  letter-spacing: -0.03em;
  color: var(--text);
}

.ja-hero h1 span {
  background: linear-gradient(135deg, #f70880 0%, #ff8552 50%, #fead8b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ja-lead {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 52ch;
  margin: 0 0 1.75rem;
  font-weight: 400;
}

.ja-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.ja-hero-demo-cta {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.ja-hero-demo-cta .ja-btn-ico {
  font-size: 18px;
  margin-right: 0;
}

.ja-hero-demo-badge {
  flex-shrink: 0;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--md-primary);
  background: rgba(255, 255, 255, 0.95);
  padding: 0.2rem 0.42rem;
  border-radius: 0.35rem;
  line-height: 1.15;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.ja-hero-demo-label {
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
}

.ja-micro {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

/* Sections */
section {
  padding: clamp(2rem, 4vw, 3.5rem) 0;
}

.ja-section-title {
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  margin: 0 0 0.5rem;
  color: var(--text);
}

.ja-section-sub {
  color: var(--text-secondary);
  margin: 0 0 2rem;
  max-width: 75ch;
  font-size: 0.9375rem;
}

/* Cards grid — portal-style elevated cards */
.ja-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.ja-grid--four {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.ja-program-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
}

.ja-program-tab {
  appearance: none;
  border: 1px solid var(--stroke-strong);
  background: var(--bg-elevated);
  color: var(--text);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.ja-program-tab:hover {
  border-color: rgba(247, 8, 128, 0.45);
}

.ja-program-tab[aria-selected="true"] {
  background: var(--gradient-primary);
  border-color: transparent;
  color: #fff;
}

.ja-offerings {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.ja-offerings[hidden] {
  display: none;
}

.ja-offering {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-sm);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.ja-offering:hover {
  transform: translateY(-1px);
  border-color: rgba(247, 8, 128, 0.4);
  box-shadow: var(--shadow-md);
}

.ja-program-cta {
  margin: 1.25rem 0 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.ja-program-cta a {
  color: var(--md-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ja-journey {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ja-journey li {
  padding: 1.25rem 1.3rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--stroke);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-card);
}

.ja-journey h3 {
  margin: 0.5rem 0 0.35rem;
  font-size: 1.05rem;
}

.ja-journey p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.ja-journey-step {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
}

.ja-curriculum-card--custom {
  background: linear-gradient(135deg, #f70880 0%, #c2185b 100%);
}

.ja-curriculum-card--perf {
  background: linear-gradient(135deg, #6a1b9a 0%, #4527a0 100%);
}

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

.ja-card {
  padding: 1.35rem 1.4rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--stroke);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s, transform 0.2s;
}

.ja-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.ja-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
}

.ja-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.55;
}

.ja-icon {
  width: 44px;
  height: 44px;
  border-radius: 0.75rem;
  display: grid;
  place-items: center;
  margin-bottom: 0.85rem;
  font-size: 1.25rem;
  background: linear-gradient(135deg, rgba(247, 8, 128, 0.12) 0%, rgba(254, 173, 139, 0.15) 100%);
  border: 1px solid rgba(247, 8, 128, 0.12);
}

/* Curriculum cards — wider tiles; wrap to a second row when they won’t fit */
.ja-curriculum-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.ja-curriculum-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  min-height: 118px;
  padding: 1.35rem 1.5rem;
  border: none;
  border-radius: 14px;
  color: #fff;
  text-align: left;
  font: inherit;
  cursor: pointer;
  box-shadow: none;
  overflow: hidden;
  transition: transform 0.2s ease, outline-color 0.2s ease;
}

.ja-curriculum-card:hover {
  transform: translateY(-3px);
}

.ja-curriculum-card:focus-visible {
  outline: 2px solid var(--md-primary, #f70880);
  outline-offset: 3px;
}

.ja-curriculum-card[aria-selected="true"] {
  outline: 2px solid rgba(255, 255, 255, 0.95);
  outline-offset: 2px;
  transform: translateY(-2px);
}

.ja-curriculum-card--rockschool {
  background: #1d7fd0;
}

.ja-curriculum-card--trinity {
  background: #511b51;
}

.ja-curriculum-card--abrsm {
  background: #c81e1e;
}

.ja-curriculum-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.ja-curriculum-copy h3 {
  margin: 0;
  color: #fff;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.ja-curriculum-copy p {
  margin: 0.35rem 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.2;
}

.ja-curriculum-logo {
  flex: 0 0 auto;
  width: 88px;
  display: grid;
  place-items: center;
  opacity: 0.95;
}

.ja-curriculum-logo svg {
  width: 100%;
  height: auto;
  display: block;
}

.ja-curriculum-logo--jms {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  padding: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  opacity: 1;
}

.ja-curriculum-logo--jms img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  border-radius: 50%;
}

.ja-curriculum-details {
  margin-top: 1rem;
}

.ja-curriculum-panel {
  padding: 1.35rem 1.5rem;
  border: 1px solid var(--stroke);
  border-radius: 14px;
  background: var(--bg-elevated);
  box-shadow: var(--shadow-card);
  animation: ja-curriculum-in 0.28s ease;
}

.ja-curriculum-panel[hidden] {
  display: none;
}

.ja-curriculum-panel h4 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

.ja-curriculum-panel p {
  margin: 0 0 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
  font-size: 0.98rem;
}

.ja-curriculum-panel ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text-muted);
  line-height: 1.55;
  font-size: 0.95rem;
}

.ja-curriculum-panel li + li {
  margin-top: 0.35rem;
}

@keyframes ja-curriculum-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ja-curriculum-panel {
    animation: none;
  }
}

@media (max-width: 900px) {
  .ja-curriculum-card {
    min-height: 104px;
  }

  .ja-curriculum-logo {
    width: 76px;
  }

  .ja-curriculum-logo--jms {
    width: 52px;
    height: 52px;
  }
}

/* Stats */
.ja-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.ja-stat {
  padding: 1.35rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--stroke);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-sm);
}

.ja-stat strong {
  display: block;
  font-size: 1.75rem;
  font-family: var(--font);
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ja-stat span {
  color: var(--text-secondary);
  font-size: 0.8125rem;
}

/* FAQ */
.ja-faq details {
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  margin-bottom: 0.65rem;
  background: var(--bg-elevated);
  box-shadow: var(--shadow-sm);
}

.ja-faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
}

.ja-faq details[open] summary {
  margin-bottom: 0.5rem;
  color: var(--md-primary);
}

.ja-faq p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.ja-faq a {
  color: var(--md-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ja-faq a:hover {
  color: var(--md-primary-dark);
}

/* Footer */
footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--stroke);
  color: var(--text-muted);
  font-size: 0.8125rem;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.8));
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

footer a {
  color: var(--text-secondary);
  font-weight: 500;
}

footer a:hover {
  color: var(--md-primary);
}

.ja-social-links {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.ja-social-links a {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  color: var(--text-secondary);
  background: var(--bg-elevated);
  border: 2px solid var(--stroke-strong);
  transition: color 0.2s, background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(247, 8, 128, 0.1);
}

.ja-social-links a:hover {
  color: #fff;
  background: var(--gradient-primary);
  transform: translateY(-2px);
}

.ja-social-youtube {
  width: 64px !important;
  height: 64px !important;
  color: #fff !important;
  background: #ff0000 !important;
  border: 2px solid #ff0000 !important;
  box-shadow: 0 4px 16px rgba(255, 0, 0, 0.3) !important;
}

.ja-social-youtube:hover {
  background: #cc0000 !important;
  border-color: #cc0000 !important;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 24px rgba(255, 0, 0, 0.5) !important;
}

.ja-social-facebook {
  color: #fff !important;
  background: #1877f2 !important;
  border: 2px solid #1877f2 !important;
  box-shadow: 0 2px 8px rgba(24, 119, 242, 0.2) !important;
}

.ja-social-facebook:hover {
  background: #0a66c2 !important;
  border-color: #0a66c2 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(24, 119, 242, 0.4) !important;
}

.ja-social-instagram {
  color: #fff !important;
  background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcaf45 100%) !important;
  border: 2px solid #e4405f !important;
  box-shadow: 0 2px 8px rgba(232, 64, 87, 0.2) !important;
}

.ja-social-instagram:hover {
  background: linear-gradient(135deg, #6c2c91 0%, #e01e5a 50%, #f77737 100%) !important;
  border-color: #c13584 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(232, 64, 87, 0.4) !important;
}

/* Reveal on scroll */
.ja-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.ja-reveal.ja-in {
  opacity: 1;
  transform: none;
}

/* Student / family reviews (text + video link or embed) */
.ja-reviews-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.ja-review-card {
  padding: 1.35rem 1.4rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--stroke);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.ja-stars {
  color: #e65100;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  line-height: 1;
}

html[data-theme="dark"] .ja-stars {
  color: #ffb74d;
}

.ja-review-quote {
  margin: 0;
  flex: 1;
}

.ja-review-quote p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.ja-review-quote--compact p {
  font-size: 0.875rem;
}

.ja-review-quote code {
  font-size: 0.8125em;
  padding: 0.1em 0.35em;
  border-radius: 0.25rem;
  background: var(--bg-subtle);
  border: 1px solid var(--stroke);
}

html[data-theme="dark"] .ja-review-quote code {
  background: rgba(0, 0, 0, 0.35);
}

.ja-review-byline {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-top: 0.25rem;
  border-top: 1px solid var(--stroke);
}

.ja-review-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
}

.ja-review-role {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.ja-review-card--video .ja-review-video-link {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  aspect-ratio: 16 / 9;
  margin: 0 0 0.25rem;
  background: #1a1a1e;
}

.ja-review-video-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
  transition: transform 0.35s ease;
  transform-origin: center center;
}

.ja-review-video-frame {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.58) 0%, rgba(0, 0, 0, 0.08) 42%, transparent 72%),
    linear-gradient(135deg, rgba(247, 8, 128, 0.2) 0%, transparent 45%);
  transition: transform 0.35s ease;
  transform-origin: center center;
}

.ja-review-video-link:hover .ja-review-video-thumb,
.ja-review-video-link:focus-visible .ja-review-video-thumb,
.ja-review-video-link:hover .ja-review-video-frame,
.ja-review-video-link:focus-visible .ja-review-video-frame {
  transform: scale(1.04);
}

.ja-review-play {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  z-index: 2;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

.ja-review-play .material-icons {
  font-size: 3.25rem;
  line-height: 1;
  opacity: 0.95;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.35));
}

.ja-review-play-text {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.ja-review-video-meta {
  position: absolute;
  right: 0.65rem;
  bottom: 0.5rem;
  z-index: 2;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.5rem;
  border-radius: 0.35rem;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  pointer-events: none;
}

.ja-review-video-link:focus-visible {
  outline: 2px solid var(--md-primary);
  outline-offset: 3px;
}

/* Optional: inline embed (uncomment block in index.html when you have a URL) */
.ja-review-embed {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000;
  margin: 0 0 0.5rem;
}

.ja-review-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Theme toggle (Material icon) */
.ja-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-left: 0.35rem;
  padding: 0;
  border-radius: 0.5rem;
  border: 1px solid var(--stroke-strong);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}

.ja-theme-toggle .material-icons {
  font-size: 22px;
  line-height: 1;
}

.ja-theme-toggle:hover {
  color: var(--md-primary);
  border-color: rgba(247, 8, 128, 0.45);
  background: rgba(247, 8, 128, 0.06);
}

.ja-theme-toggle:focus-visible {
  outline: 2px solid var(--md-primary);
  outline-offset: 2px;
}

.ja-theme-toggle:active {
  transform: scale(0.96);
}

/* ---------- Dark theme ---------- */
html[data-theme="dark"] {
  color-scheme: dark;
  --bg-page: #0b0d12;
  --bg-elevated: rgba(255, 255, 255, 0.06);
  --bg-subtle: rgba(255, 255, 255, 0.04);
  --stroke: rgba(255, 255, 255, 0.1);
  --stroke-strong: rgba(255, 255, 255, 0.18);
  --text: #f4f6fb;
  --text-secondary: #b4bcc8;
  --text-muted: #8b95a5;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 4px 18px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.55);
  --shadow-card: 0 18px 50px rgba(0, 0, 0, 0.4);
  --gradient-hero-mesh: radial-gradient(ellipse 120% 80% at 50% -15%, rgba(247, 8, 128, 0.22), transparent 55%),
    radial-gradient(ellipse 90% 55% at 100% 10%, rgba(147, 51, 234, 0.14), transparent 50%),
    radial-gradient(ellipse 70% 50% at 0% 90%, rgba(254, 173, 139, 0.1), transparent 48%);
}

html[data-theme="dark"] body {
  background: #0b0d12;
  background-image: var(--gradient-hero-mesh),
    linear-gradient(180deg, #12151c 0%, #0b0d12 40%, #0b0d12 100%);
}

html[data-theme="dark"] .ja-bg {
  opacity: 1;
  background: radial-gradient(1200px 600px at 10% 10%, rgba(247, 8, 128, 0.28), transparent 55%),
    radial-gradient(900px 500px at 90% 20%, rgba(254, 173, 139, 0.14), transparent 50%),
    radial-gradient(700px 400px at 50% 100%, rgba(147, 51, 234, 0.12), transparent 45%);
}

html[data-theme="dark"] .ja-nav {
  background: rgba(11, 13, 18, 0.85);
  border-bottom-color: var(--stroke);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .ja-brand {
  color: var(--text);
}

html[data-theme="dark"] .ja-nav-links a:not(.ja-btn):hover {
  color: #fff;
  background: rgba(247, 8, 128, 0.15);
}

html[data-theme="dark"] .ja-btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--stroke-strong);
  color: var(--text);
}

html[data-theme="dark"] .ja-btn-ghost:hover {
  border-color: rgba(254, 173, 139, 0.5);
  color: #fff;
  background: rgba(247, 8, 128, 0.12);
}

html[data-theme="dark"] .ja-pill {
  background: var(--bg-elevated);
  box-shadow: none;
}

html[data-theme="dark"] .ja-hero-media {
  background: linear-gradient(165deg, #1a1420 0%, #12151c 50%, #0b0d12 100%);
}

html[data-theme="dark"] .ja-hero-video-overlay {
  background:
    linear-gradient(105deg, rgba(12, 14, 22, 0.5) 0%, rgba(12, 14, 22, 0.22) 42%, transparent 62%, transparent 100%),
    radial-gradient(ellipse 92% 72% at 50% 100%, rgba(0, 0, 0, 0.28), transparent 56%);
}

html[data-theme="dark"] .ja-hero-media.ja-hero-video-active .ja-hero-video-overlay {
  background:
    linear-gradient(105deg, rgba(12, 14, 22, 0.42) 0%, rgba(12, 14, 22, 0.14) 48%, transparent 65%, transparent 100%),
    radial-gradient(ellipse 90% 68% at 50% 100%, rgba(0, 0, 0, 0.32), transparent 56%);
}

html[data-theme="dark"] .ja-hero--motion h1 {
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.75), 0 1px 3px rgba(0, 0, 0, 0.9);
}

html[data-theme="dark"] .ja-hero--motion .ja-lead {
  color: var(--text);
  font-weight: 500;
  background: rgba(10, 12, 18, 0.9);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow:
    0 12px 36px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  text-shadow: none;
}

html[data-theme="dark"] .ja-program-tab {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--stroke-strong);
  color: var(--text);
}

html[data-theme="dark"] .ja-program-tab[aria-selected="true"] {
  background: var(--gradient-primary);
  color: #fff;
}

html[data-theme="dark"] .ja-offering {
  background: var(--bg-elevated);
}

html[data-theme="dark"] .ja-icon {
  background: linear-gradient(135deg, rgba(247, 8, 128, 0.2) 0%, rgba(254, 173, 139, 0.12) 100%);
  border-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .ja-faq a:hover {
  color: #fead8b;
}

html[data-theme="dark"] footer {
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.35));
}

html[data-theme="dark"] .ja-theme-toggle {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
}

html[data-theme="dark"] .ja-theme-toggle:hover {
  background: rgba(247, 8, 128, 0.18);
  color: #fff;
}

html[data-theme="dark"] .ja-review-card {
  box-shadow: var(--shadow-card);
}

html[data-theme="dark"] .ja-review-video-meta {
  background: rgba(0, 0, 0, 0.55);
}

/* Track Demo — themed dialog (marketing SPA only) */
#trackDemoModal {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(18, 10, 20, 0.48);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

#trackDemoModal .tdm-card {
  background: var(--bg-elevated, #fff);
  border-radius: 16px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 80px rgba(40, 10, 30, 0.28);
  font-family: var(--font);
}

#trackDemoModal .tdm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: var(--gradient-primary);
  color: #fff;
}

#trackDemoModal .tdm-header h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

#trackDemoModal .tdm-close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#trackDemoModal .tdm-close:hover {
  background: rgba(255, 255, 255, 0.32);
}

#trackDemoModal .tdm-close .material-icons {
  font-size: 20px;
}

#trackDemoModal .tdm-body {
  padding: 20px 18px 18px;
  overflow-y: auto;
  color: var(--text);
}

#trackDemoModal .tdm-hint {
  margin-bottom: 18px;
  padding: 14px;
  background: var(--bg-subtle, #fafafa);
  border: 1px solid var(--stroke);
  border-radius: 10px;
}

#trackDemoModal .tdm-hint p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
}

#trackDemoModal .tdm-label {
  display: block;
  margin-bottom: 7px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}

#trackDemoModal .tdm-input {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--stroke-strong);
  border-radius: 8px;
  font-size: 14px;
  box-sizing: border-box;
  background: var(--bg-elevated, #fff);
  color: var(--text);
  font-family: inherit;
}

#trackDemoModal .tdm-input:focus {
  outline: none;
  border-color: var(--md-primary);
  box-shadow: 0 0 0 3px rgba(247, 8, 128, 0.15);
}

#trackDemoModal .tdm-help {
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 6px;
  display: block;
}

#trackDemoModal .tdm-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 20px;
}

#trackDemoModal .track-demo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
  line-height: 1.2;
  font-family: inherit;
}

#trackDemoModal .track-demo-btn--primary {
  background: var(--gradient-primary);
  color: #fff;
  border: none;
  box-shadow: 0 4px 12px rgba(247, 8, 128, 0.28);
}

#trackDemoModal .track-demo-btn--primary:hover {
  filter: brightness(1.06);
}

#trackDemoModal .track-demo-btn--secondary {
  background: transparent;
  color: var(--md-primary);
  border: 1.5px solid var(--md-primary);
}

#trackDemoModal .track-demo-btn--secondary:hover {
  background: rgba(247, 8, 128, 0.06);
}

#trackDemoModal .track-demo-btn--join {
  background: var(--gradient-primary);
  color: #fff;
  border: none;
  padding: 8px 16px;
  font-size: 13px;
  box-shadow: 0 4px 12px rgba(247, 8, 128, 0.28);
}

#trackDemoModal .track-demo-btn--join:hover {
  filter: brightness(1.06);
  color: #fff;
}

#trackDemoModal #trackDemoResults {
  margin-top: 16px;
  padding: 16px;
  background: var(--bg-subtle, #fafafa);
  border-radius: 10px;
  border: 1px solid var(--stroke);
  font-size: 13px;
}

.tdm-field-error {
  position: fixed;
  inset: 0;
  z-index: 100050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(18, 10, 20, 0.42);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.tdm-field-error__card {
  position: relative;
  overflow: hidden;
  background: var(--bg-elevated, #fff);
  border-radius: 20px;
  max-width: 340px;
  width: 100%;
  text-align: center;
  padding: 28px 22px 20px;
  box-shadow: 0 18px 50px rgba(40, 10, 30, 0.28);
}

.tdm-field-error__card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 5px;
  background: linear-gradient(135deg, #ff9800 0%, #ef6c00 100%);
}

.tdm-field-error__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ff9800 0%, #ef6c00 100%);
  color: #fff;
  box-shadow: 0 8px 18px rgba(239, 108, 0, 0.28);
}

.tdm-field-error__icon .material-icons {
  font-size: 28px;
}

.tdm-field-error__eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ef6c00;
  margin-bottom: 8px;
}

.tdm-field-error__msg {
  margin: 0 0 18px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.45;
}

.tdm-field-error__ok {
  background: var(--gradient-primary);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 10px 32px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  min-width: 108px;
}

html[data-theme="dark"] #trackDemoModal .tdm-card,
html[data-theme="dark"] .tdm-field-error__card {
  background: var(--bg-elevated);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.55);
}

html[data-theme="dark"] #trackDemoModal .tdm-hint,
html[data-theme="dark"] #trackDemoModal #trackDemoResults {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--stroke-strong);
}

html[data-theme="dark"] #trackDemoModal .tdm-input {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--stroke-strong);
  color: var(--text);
}

@media (max-width: 720px) {
  .ja-nav-mid {
    display: none;
  }

  .ja-nav-inner {
    padding: 0.65rem 0;
  }

  .ja-nav-links {
    gap: 0.5rem;
  }

  .ja-btn {
    padding: 0.5rem 0.85rem;
    font-size: 0.8125rem;
  }
}
