* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; line-height: 1.6; color: #1f2937; background: #fff; }
a { color: #7c3aed; text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }

header.site { padding: 1rem 0; border-bottom: 1px solid #e5e7eb; position: relative; background: #fff; z-index: 50; }
header.site .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
header.site .brand { display: flex; align-items: center; gap: .6rem; font-weight: 700; color: #111827; }
header.site .brand img { height: 36px; width: auto; object-fit: contain; }
header.site nav a { margin-left: 1.25rem; color: #4b5563; font-size: .95rem; }

.header-actions { display: flex; align-items: center; gap: .6rem; }

@property --beam-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
@keyframes border-beam {
  0% { --beam-angle: 0deg; }
  100% { --beam-angle: 360deg; }
}

.header-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: .55rem 1.1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
  color: #fff !important;
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);
  transition: transform .15s, box-shadow .15s;
  white-space: nowrap;
  border: 2px solid transparent;
  overflow: hidden;
}
.header-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(124, 58, 237, 0.35); text-decoration: none; }
.header-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(from var(--beam-angle), transparent 20%, #ffffff 50%, transparent 80%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
          mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  animation: border-beam 3s linear infinite;
  pointer-events: none;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: .5rem;
  cursor: pointer;
  color: #4b5563;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}
.nav-toggle:hover { color: #7c3aed; border-color: #7c3aed; }
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
header.site.open .nav-toggle .icon-open { display: none; }
header.site.open .nav-toggle .icon-close { display: block; }

.hero { padding: 3.5rem 0 2.5rem; background: linear-gradient(180deg, #f5f3ff 0%, #fff 100%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: center; }
.hero h1 { font-size: clamp(1.9rem, 4vw, 2.75rem); line-height: 1.15; color: #111827; margin-bottom: 1rem; }
.hero h1 strong { color: #7c3aed; }
.hero p.lead { font-size: 1.125rem; color: #4b5563; margin-bottom: 1.5rem; }
.parent-pain {
  background: #fef3c7;
  border-left: 4px solid #d97706;
  padding: .85rem 1rem;
  border-radius: 0 10px 10px 0;
  color: #78350f;
  font-size: .98rem;
  line-height: 1.55;
  margin-bottom: 1.5rem;
  max-width: 580px;
}
.hero-cta { display: flex; gap: .75rem; flex-wrap: wrap; }
.btn { display: inline-block; padding: .85rem 1.5rem; border-radius: 10px; font-weight: 600; transition: transform .15s; cursor: pointer; }
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary { background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%); color: #fff; box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3); }
.btn-primary:hover { box-shadow: 0 6px 16px rgba(124, 58, 237, 0.4); }
.btn-secondary { background: #fff; color: #7c3aed; border: 2px solid #7c3aed; }
.hero-media img { width: 100%; height: auto; border-radius: 16px; box-shadow: 0 20px 50px rgba(124, 58, 237, .15); }
.screenshot-pair { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.screenshot-pair img { width: 100%; height: auto; border-radius: 18px; box-shadow: 0 12px 30px rgba(124, 58, 237, .18); border: 1px solid #e5e7eb; }

section { padding: 3rem 0; }
section.alt { background: #f9fafb; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); color: #111827; margin-bottom: 1.5rem; }
h3 { font-size: 1.15rem; color: #111827; margin-bottom: .5rem; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.feature { padding: 1.5rem; background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; transition: all .2s ease; }
.feature:hover { border-color: #7c3aed; box-shadow: 0 4px 12px rgba(124, 58, 237, 0.1); }
.feature .icon { width: 44px; height: 44px; background: rgba(124, 58, 237, 0.1); border-radius: 10px; display: grid; place-items: center; color: #7c3aed; font-size: 1.4rem; margin-bottom: .9rem; }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.step { padding: 1.25rem; background: #fff; border-left: 4px solid #7c3aed; border-radius: 0 12px 12px 0; box-shadow: 0 4px 12px rgba(0,0,0,.04); }
.step::before { counter-increment: step; content: counter(step); display: inline-block; width: 32px; height: 32px; line-height: 32px; text-align: center; background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%); color: #fff; border-radius: 50%; font-weight: 700; margin-bottom: .5rem; }

.levels { display: flex; flex-wrap: wrap; gap: .5rem; }
.level-chip { padding: .5rem 1rem; background: rgba(124, 58, 237, 0.1); color: #6d28d9; border-radius: 999px; font-weight: 600; font-size: .9rem; }

.faq details { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 1rem 1.25rem; margin-bottom: .75rem; }
.faq summary { cursor: pointer; font-weight: 600; color: #111827; }
.faq details[open] summary { margin-bottom: .75rem; }
.faq p { color: #4b5563; }

.cta-band { background: linear-gradient(135deg, #7c3aed, #6d28d9); color: #fff; padding: 3rem 0; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { opacity: .92; margin-bottom: 1.5rem; }
.cta-band .btn-primary { background: #fff; color: #7c3aed; box-shadow: 0 4px 12px rgba(0,0,0,.15); }
.cta-band .btn-primary:hover { box-shadow: 0 6px 16px rgba(0,0,0,.2); }

.stats-band { background: #fff; border-top: 1px solid #e5e7eb; border-bottom: 1px solid #e5e7eb; padding: 2.25rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1.5rem; text-align: center; }
.stat-num { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 800; background: linear-gradient(135deg, #7c3aed, #6d28d9); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; line-height: 1.1; }
.stat-label { font-size: .9rem; color: #6b7280; margin-top: .35rem; font-weight: 500; }

footer.site { padding: 2rem 0; background: #111827; color: #9ca3af; font-size: .9rem; }
footer.site .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
footer.site a { color: #d1d5db; }

@media (max-width: 800px) {
  .hero-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-flex; }
  header.site nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 12px 24px rgba(0, 0, 0, .08);
    flex-direction: column;
    padding: .75rem 1.25rem 1rem;
    gap: 0;
  }
  header.site.open nav { display: flex; }
  header.site nav a {
    margin: 0;
    padding: .85rem .25rem;
    border-bottom: 1px solid #f3f4f6;
    font-size: 1rem;
    font-weight: 500;
  }
  header.site nav a:last-child { border-bottom: none; }
}

/* ============================================================
   Custom audio player — mirrors src/app/components/shared/custom-audio-player
   ============================================================ */
.audio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.25rem; }
.audio-card { display: flex; flex-direction: column; gap: .5rem; }
.audio-card .audio-card-label { font-weight: 600; color: #1f2937; margin-bottom: .25rem; font-size: .95rem; }

.cap {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
  user-select: none;
}
.cap:hover { border-color: #7c3aed; box-shadow: 0 4px 12px rgba(124, 58, 237, 0.15); }

.cap-controls-row { display: flex; align-items: center; justify-content: center; gap: 1rem; }
.cap-btn {
  background: transparent;
  border: none;
  color: #6b7280;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  width: 36px; height: 36px;
}
.cap-btn:hover:not(:disabled) { background: rgba(124, 58, 237, 0.1); color: #7c3aed; }
.cap-btn:disabled { opacity: .4; cursor: not-allowed; }
.cap-btn svg { width: 20px; height: 20px; fill: currentColor; }

.cap-play {
  flex-shrink: 0;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}
.cap-play:hover:not(:disabled) { transform: scale(1.05); box-shadow: 0 6px 16px rgba(124, 58, 237, 0.4); }
.cap-play:active:not(:disabled) { transform: scale(0.95); }
.cap-play svg { width: 26px; height: 26px; fill: #fff; }

.cap-progress { display: flex; align-items: center; gap: 0.75rem; }
.cap-time { font-size: 0.875rem; font-weight: 600; color: #6b7280; min-width: 40px; text-align: center; }
.cap-bar { flex: 1; height: 6px; background: #e5e7eb; border-radius: 3px; position: relative; cursor: pointer; }
.cap-bar:hover .cap-handle, .cap-bar.dragging .cap-handle { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.cap-fill { position: absolute; top: 0; left: 0; height: 100%; background: linear-gradient(90deg, #7c3aed 0%, #a78bfa 100%); border-radius: 3px; pointer-events: none; }
.cap-handle { position: absolute; top: 50%; transform: translate(-50%, -50%) scale(0.8); width: 16px; height: 16px; background: #7c3aed; border: 3px solid #fff; border-radius: 50%; box-shadow: 0 2px 8px rgba(124, 58, 237, 0.5); opacity: 0; transition: all 0.2s ease; pointer-events: none; }

.cap-extras { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0 0.25rem; }
.cap-volume svg { width: 22px; height: 22px; }
.cap-speed-wrap { position: relative; }
.cap-speed {
  display: flex; align-items: center; gap: 0.25rem;
  padding: 0.5rem 0.75rem;
  border-radius: 20px;
  background: rgba(124, 58, 237, 0.08);
  color: #7c3aed;
  font-weight: 600;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}
.cap-speed:hover { background: rgba(124, 58, 237, 0.15); }
.cap-speed svg { width: 14px; height: 14px; fill: currentColor; }
.cap-speed-menu {
  position: absolute;
  bottom: calc(100% + 0.5rem);
  right: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  padding: 0.5rem;
  min-width: 80px;
  z-index: 10;
  display: none;
}
.cap-speed-menu.open { display: block; }
.cap-speed-option {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: none;
  background: transparent;
  color: #374151;
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  border-radius: 8px;
  text-align: left;
  transition: all 0.15s ease;
}
.cap-speed-option:hover { background: rgba(124, 58, 237, 0.1); color: #7c3aed; }
.cap-speed-option.active { background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%); color: #fff; font-weight: 600; }

@media (max-width: 640px) {
  .cap { padding: 0.875rem; }
  .cap-controls-row { gap: 0.75rem; }
  .cap-time { font-size: 0.8rem; min-width: 36px; }
  .cap-extras { padding: 0; }
  .cap-speed { font-size: 0.8rem; padding: 0.4rem 0.6rem; }
}
