/* nlsound — shared responsive layer. Loaded AFTER each page's inline <style>
   so equal-specificity rules win inside matching media queries. Targets the
   shared design-system class names used across all pages. */

/* ---- Cookie banner (global, injected by site.js) ---------------------- */
.nl-cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200;
  max-width: 760px; margin: 0 auto;
  background: rgba(20,20,24,0.96); backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.14); border-radius: 16px;
  padding: 20px 22px; display: flex; align-items: center; gap: 20px;
  box-shadow: 0 30px 70px -30px rgba(0,0,0,0.8);
  font-family: 'Archivo', sans-serif;
}
.nl-cookie p { margin: 0; font-size: 14px; line-height: 1.55; color: #c7c5c0; flex: 1; }
.nl-cookie p a { color: oklch(0.8 0.12 75); }
.nl-cookie .nl-cookie-btns { display: flex; gap: 10px; flex: none; }
.nl-cookie button {
  font-family: 'Archivo', sans-serif; font-size: 14px; font-weight: 600; cursor: pointer;
  border-radius: 999px; padding: 10px 20px; border: 1px solid rgba(255,255,255,0.2);
  background: none; color: #f4f3f1; white-space: nowrap;
}
.nl-cookie button.nl-accept { background: #f4f3f1; color: #111; border-color: #f4f3f1; }
.nl-cookie button:hover { border-color: rgba(255,255,255,0.5); }
.nl-cookie button.nl-accept:hover { background: #fff; }
@media (max-width: 620px) {
  .nl-cookie { flex-direction: column; align-items: stretch; gap: 14px; padding: 18px; }
  .nl-cookie .nl-cookie-btns button { flex: 1; }
}

/* ============================ TABLET ============================ */
@media (max-width: 1040px) {
  .wrap { padding-left: 32px; padding-right: 32px; }
  /* collapse 2-col heroes/sections */
  .hero-grid, .reel, .contact-card, .about-grid, .journey-grid, .story-grid, .grid, .feature {
    grid-template-columns: 1fr !important;
    gap: 44px !important;
  }
  .feature { gap: 0 !important; }
  .feat-cover { min-height: 260px !important; }
  .cover, .card { position: static !important; }
  .journey-side { position: static !important; }
  /* stat/feature grids */
  .svc-grid, .outcomes, .packs, .use-grid, .lib-grid, .values, .setup, .steps { grid-template-columns: 1fr 1fr !important; }
  .band .wrap { grid-template-columns: 1fr !important; gap: 28px !important; }
}

/* ============================ MOBILE ============================ */
@media (max-width: 720px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  .nav-links { display: none !important; }
  .nav-right { display: none !important; }
  .nl-burger { display: inline-flex !important; }
  .nav-inner { height: 64px; }
  .logo { height: 24px !important; }

  /* single column everywhere */
  .svc-grid, .outcomes, .packs, .use-grid, .lib-grid, .values, .setup, .steps,
  .stats { grid-template-columns: 1fr !important; }
  .stats { gap: 4px; }
  .meta-row { flex-wrap: wrap; gap: 22px 32px !important; }
  .feat-body { padding: 32px 26px !important; }
  .feat-body h3 { font-size: 27px !important; }
  .stat { padding: 12px 0; border-top: 1px solid var(--line); }

  /* section rhythm */
  .sec { padding-top: 66px !important; padding-bottom: 66px !important; }
  .hero { padding-top: 48px !important; padding-bottom: 56px !important; }
  .sec-head { flex-direction: column !important; align-items: flex-start !important; gap: 18px; margin-bottom: 40px !important; }

  /* headline scaling */
  .hero h1 { font-size: 44px !important; line-height: 1.05 !important; }
  h1 { text-wrap: balance; }
  .sec-head h2, .reel-copy h2, .about-copy h2, .story-grid h2, .journey-side h2,
  .contact-card h2, .quote p { font-size: 32px !important; line-height: 1.12 !important; }
  .post-head h1 { font-size: 40px !important; }
  .head h1 { font-size: 46px !important; }
  .doc h1 { font-size: 38px !important; }
  .hero-sub, .sub, .hero-lead { font-size: 18px !important; }

  /* cards & padding */
  .contact-card { padding: 40px 26px !important; }
  .qcard, .svc, .outcome, .use, .pack, .player, .card, .lead-card, .ba, .sonic { padding: 24px 22px !important; }
  .sec-head p { font-size: 16.5px !important; }

  /* footer */
  .foot-inner { flex-direction: column !important; gap: 32px !important; }
  .foot-cols { gap: 44px !important; }

  /* hero CTA stacking */
  .hero-ctas, .contact-actions, .endcta .wrap, .endcta-actions { flex-wrap: wrap; }
  .endcta .wrap { flex-direction: column; align-items: flex-start; gap: 24px; }

  /* audio player waveform a touch shorter */
  .cardwave { height: 44px; }
}

@media (max-width: 420px) {
  .hero h1 { font-size: 37px !important; }
  .btn-lg { width: 100%; justify-content: center; }
  .hero-ctas .btn, .contact-actions .btn { width: 100%; }
}

/* ---- Mobile burger + full-screen menu -------------------------------- */
.nl-burger {
  display: none; margin-left: auto; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px;
  background: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 0;
}
.nl-burger span { display: block; width: 18px; height: 1.6px; background: var(--ink); border-radius: 2px; transition: transform .3s ease, opacity .2s ease; }
.nl-burger.on span:first-child { transform: translateY(3.3px) rotate(45deg); }
.nl-burger.on span:last-child { transform: translateY(-3.3px) rotate(-45deg); }

.nl-menu {
  position: fixed; inset: 0; z-index: 300; display: flex; flex-direction: column;
  background: rgba(11,11,13,0.98); backdrop-filter: blur(22px);
  padding: 20px 24px 40px; opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .32s ease, transform .32s ease, visibility .32s;
  font-family: 'Archivo', sans-serif;
}
.nl-menu.open { opacity: 1; visibility: visible; transform: none; }
.nl-menu-top { display: flex; align-items: center; justify-content: space-between; height: 44px; }
.nl-menu-logo { height: 24px; display: block; }
.nl-menu-close { background: none; border: none; color: var(--ink); font-size: 34px; line-height: 1; cursor: pointer; width: 44px; height: 44px; }
.nl-menu-links { display: flex; flex-direction: column; margin-top: 40px; gap: 4px; flex: 1; }
.nl-menu-links a {
  font-size: 32px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); text-decoration: none;
  padding: 14px 0; border-bottom: 1px solid var(--line-soft);
  opacity: 0; transform: translateY(10px); transition: opacity .4s ease, transform .4s ease, color .2s ease;
}
.nl-menu.open .nl-menu-links a { opacity: 1; transform: none; }
.nl-menu.open .nl-menu-links a:nth-child(1) { transition-delay: .08s; }
.nl-menu.open .nl-menu-links a:nth-child(2) { transition-delay: .14s; }
.nl-menu.open .nl-menu-links a:nth-child(3) { transition-delay: .20s; }
.nl-menu.open .nl-menu-links a:nth-child(4) { transition-delay: .26s; }
.nl-menu.open .nl-menu-links a:nth-child(5) { transition-delay: .32s; }
.nl-menu-links a:hover { color: var(--accent); }
.nl-menu-foot { display: flex; flex-direction: column; gap: 22px; margin-top: 32px; }
.nl-menu-lang { display: inline-flex; align-self: flex-start; border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.nl-menu-lang button {
  font-family: 'JetBrains Mono', monospace; font-size: 13px; letter-spacing: 0.04em; font-weight: 500;
  padding: 8px 18px; border-radius: 999px; color: var(--dim); background: none; border: none; cursor: pointer;
}
.nl-menu-lang button.on { background: var(--ink); color: #111; }
.nl-menu-cta { justify-content: center; width: 100%; font-size: 17px; padding: 17px 28px; }
@media (prefers-reduced-motion: reduce) {
  .nl-menu, .nl-menu-links a { transition: none; }
}
