@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@500;600;700;800&family=Inter:wght@400;500;600;700;800&display=swap');

:root{
  /* Color */
  --navy-900:#0a0c16;
  --navy-800:#12152344;
  --navy-800-solid:#131627;
  --navy-700:#1c2036;
  --blue-500:#2f6bff;
  --blue-600:#1550e6;
  --blue-glow:#4d84ff;
  --purple-500:#8b5cf6;
  --purple-600:#7c3aed;
  --ink-900:#12141c;
  --ink-700:#3a3f4c;
  --muted-500:#6b7280;
  --muted-300:#9aa1ae;
  --surface-0:#ffffff;
  --surface-1:#f6f7fb;
  --surface-2:#eef0f6;
  --border:#e6e8f0;
  --success:#22c55e;

  /* Type */
  --font-display:'Baloo 2', system-ui, sans-serif;
  --font-body:'Inter', system-ui, sans-serif;

  /* Layout */
  --radius-lg:28px;
  --radius-md:18px;
  --radius-sm:12px;
  --max-w:1180px;
  --shadow-card:0 1px 2px rgba(18,20,28,.04), 0 10px 30px -14px rgba(18,20,28,.12);
  --shadow-pop:0 20px 60px -20px rgba(21,80,230,.35);
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; scroll-padding-top:96px; }

body{
  margin:0;
  font-family:var(--font-body);
  color:var(--ink-900);
  background:var(--surface-1);
  -webkit-font-smoothing:antialiased;
  line-height:1.6;
}

a{ color:inherit; }
img{ max-width:100%; display:block; }

.container{
  max-width:var(--max-w);
  margin:0 auto;
  padding:0 24px;
}

/* ==========================================================================
   Top bar
   ========================================================================== */
.topbar{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(10,12,22,.72);
  backdrop-filter:blur(14px) saturate(160%);
  -webkit-backdrop-filter:blur(14px) saturate(160%);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.topbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 24px;
  max-width:var(--max-w);
  margin:0 auto;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
}
.brand img{
  width:38px;
  height:38px;
  border-radius:11px;
  box-shadow:0 6px 18px -6px rgba(47,107,255,.65);
}
.brand-name{
  font-family:var(--font-display);
  font-weight:700;
  font-size:19px;
  color:#fff;
  letter-spacing:.2px;
}
.brand-sub{
  display:block;
  font-family:var(--font-body);
  font-size:11px;
  font-weight:600;
  color:var(--blue-glow);
  letter-spacing:.08em;
  text-transform:uppercase;
  margin-top:1px;
}
.topbar-cta{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:var(--blue-500);
  color:#fff;
  text-decoration:none;
  font-weight:700;
  font-size:14px;
  padding:10px 18px;
  border-radius:100px;
  transition:transform .18s ease, background .18s ease;
}
.topbar-cta:hover{ background:var(--blue-600); transform:translateY(-1px); }

/* ==========================================================================
   Hero — mirrors the app's promo-shot gradient + bold Baloo headline
   ========================================================================== */
.hero{
  position:relative;
  background:
    radial-gradient(90% 60% at 18% 0%, rgba(47,107,255,.35), transparent 60%),
    radial-gradient(70% 50% at 100% 10%, rgba(139,92,246,.22), transparent 55%),
    linear-gradient(180deg, var(--navy-900) 0%, #10131f 100%);
  color:#fff;
  padding:72px 0 96px;
  overflow:hidden;
}
.hero::after{
  content:"";
  position:absolute;
  inset:auto 0 0 0;
  height:120px;
  background:linear-gradient(180deg, transparent, var(--surface-1));
  pointer-events:none;
}
.hero-grid{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:48px;
  align-items:center;
  position:relative;
}
.eyebrow-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.14);
  color:#dbe4ff;
  font-size:13px;
  font-weight:600;
  padding:7px 14px 7px 10px;
  border-radius:100px;
  margin-bottom:22px;
}
.eyebrow-pill .dot{
  width:8px; height:8px; border-radius:50%;
  background:var(--success);
  box-shadow:0 0 0 4px rgba(34,197,94,.18);
}
.hero h1{
  font-family:var(--font-display);
  font-weight:800;
  font-size:clamp(38px,5.2vw,60px);
  line-height:1.04;
  letter-spacing:-.5px;
  margin:0 0 20px;
}
.hero h1 .accent{
  background:linear-gradient(90deg,#8ab4ff,#c6b3ff);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.hero p{
  font-size:17px;
  color:#aab1c6;
  max-width:520px;
  margin:0 0 32px;
}
.hero-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}
.btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-weight:700;
  font-size:14.5px;
  padding:13px 22px;
  border-radius:100px;
  text-decoration:none;
  border:1px solid transparent;
  transition:transform .18s ease, background .18s ease, border-color .18s ease;
}
.btn-primary{ background:var(--blue-500); color:#fff; box-shadow:var(--shadow-pop); }
.btn-primary:hover{ background:var(--blue-600); transform:translateY(-2px); }
.btn-ghost{ background:rgba(255,255,255,.06); color:#fff; border-color:rgba(255,255,255,.16); }
.btn-ghost:hover{ background:rgba(255,255,255,.12); }

.hero-meta{
  display:flex;
  gap:26px;
  margin-top:36px;
  flex-wrap:wrap;
}
.hero-meta div{ font-size:13px; color:#8891a6; }
.hero-meta strong{
  display:block;
  color:#fff;
  font-size:15px;
  font-weight:700;
  margin-bottom:2px;
}

/* Phone mockup echoing the screenshots' device frame */
.phone{
  position:relative;
  margin-left:auto;
  width:270px;
  height:548px;
  background:#0e1120;
  border-radius:44px;
  border:8px solid #1c2036;
  box-shadow:
    0 40px 80px -30px rgba(0,0,0,.65),
    0 0 0 1px rgba(255,255,255,.04);
  padding:14px;
  transform:rotate(3deg);
}
.phone::before{
  content:"";
  position:absolute;
  top:22px; left:50%;
  transform:translateX(-50%);
  width:78px; height:20px;
  background:#0a0c16;
  border-radius:20px;
}
.phone-screen{
  width:100%; height:100%;
  background:linear-gradient(180deg,#fff,#f3f5fb);
  border-radius:30px;
  overflow:hidden;
  padding:34px 14px 14px;
}
.phone-title{
  font-family:var(--font-display);
  font-weight:700;
  font-size:14px;
  color:var(--ink-900);
  margin-bottom:10px;
}
.phone-search{
  background:var(--surface-2);
  border-radius:10px;
  padding:8px 10px;
  font-size:11px;
  color:var(--muted-500);
  margin-bottom:12px;
}
.phone-row{
  display:flex;
  align-items:center;
  gap:10px;
  padding:8px 0;
  border-bottom:1px solid var(--border);
}
.phone-row .swatch{
  width:34px; height:34px;
  border-radius:9px;
  flex-shrink:0;
}
.phone-row .lines{ flex:1; }
.phone-row .l1{
  height:8px; width:80%;
  background:#dfe3ee;
  border-radius:4px;
  margin-bottom:6px;
}
.phone-row .l2{
  height:6px; width:50%;
  background:#eceef5;
  border-radius:4px;
}
.phone-row .lock{
  width:16px;height:16px;
  border-radius:5px;
  background:var(--purple-500);
  flex-shrink:0;
}

/* ==========================================================================
   Layout: sticky TOC + content
   ========================================================================== */
.policy-shell{
  max-width:var(--max-w);
  margin:-56px auto 0;
  padding:0 24px 100px;
  display:grid;
  grid-template-columns:260px 1fr;
  gap:40px;
  position:relative;
  z-index:2;
}

.toc{
  align-self:start;
  position:sticky;
  top:96px;
  background:var(--surface-0);
  border:1px solid var(--border);
  border-radius:var(--radius-md);
  padding:18px;
  box-shadow:var(--shadow-card);
}
.toc-label{
  font-size:11px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:var(--muted-300);
  padding:0 8px 10px;
}
.toc ol{
  list-style:none;
  margin:0; padding:0;
  counter-reset:toc;
}
.toc li{ counter-increment:toc; }
.toc a{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  color:var(--ink-700);
  font-size:13.5px;
  font-weight:600;
  padding:9px 8px;
  border-radius:10px;
  transition:background .15s ease, color .15s ease;
}
.toc a::before{
  content:counter(toc, decimal-leading-zero);
  font-family:var(--font-body);
  font-size:11px;
  font-weight:700;
  color:var(--muted-300);
  width:22px;
}
.toc a:hover, .toc a.active{
  background:var(--surface-2);
  color:var(--blue-600);
}
.toc a.active::before{ color:var(--blue-500); }

.toc-contact{
  margin-top:16px;
  padding:14px;
  border-radius:14px;
  background:linear-gradient(135deg, var(--blue-500), #4f46e5);
  color:#fff;
}
.toc-contact p{
  margin:0 0 10px;
  font-size:12.5px;
  color:rgba(255,255,255,.85);
  line-height:1.5;
}
.toc-contact a{
  display:inline-flex;
  align-items:center;
  gap:6px;
  background:rgba(255,255,255,.16);
  font-size:12.5px;
  font-weight:700;
  text-decoration:none;
  color:#fff;
  padding:8px 12px;
  border-radius:100px;
}

/* ==========================================================================
   Content sections
   ========================================================================== */
.content{ min-width:0; }

.doc-header{
  background:var(--surface-0);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  padding:28px 32px;
  margin-bottom:24px;
  box-shadow:var(--shadow-card);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  flex-wrap:wrap;
}
.doc-header h2{
  font-family:var(--font-display);
  font-size:22px;
  margin:0 0 6px;
}
.doc-header p{
  margin:0;
  color:var(--muted-500);
  font-size:14px;
}
.date-chip{
  background:var(--surface-2);
  border:1px solid var(--border);
  border-radius:100px;
  padding:8px 16px;
  font-size:12.5px;
  font-weight:700;
  color:var(--ink-700);
  white-space:nowrap;
}

section.policy-section{
  background:var(--surface-0);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  padding:32px;
  margin-bottom:20px;
  box-shadow:var(--shadow-card);
  scroll-margin-top:96px;
}
.section-head{
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom:16px;
}
.section-icon{
  width:44px; height:44px;
  border-radius:13px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
  background:linear-gradient(160deg, var(--blue-500), var(--blue-600));
  box-shadow:0 8px 18px -8px rgba(47,107,255,.55);
}
.section-icon svg{ width:22px; height:22px; stroke:#fff; }
.section-icon.purple{
  background:linear-gradient(160deg, var(--purple-500), var(--purple-600));
  box-shadow:0 8px 18px -8px rgba(139,92,246,.55);
}
.policy-section h3{
  font-family:var(--font-display);
  font-size:20px;
  font-weight:700;
  margin:0;
  color:var(--ink-900);
}
.eyebrow{
  display:block;
  font-size:11px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:var(--blue-500);
  margin-bottom:3px;
}
.policy-section p{
  color:var(--ink-700);
  font-size:15px;
  margin:0 0 14px;
}
.policy-section p:last-child{ margin-bottom:0; }
.policy-section ul{
  margin:0 0 14px;
  padding-left:0;
  list-style:none;
}
.policy-section ul li{
  position:relative;
  padding:9px 0 9px 26px;
  font-size:14.5px;
  color:var(--ink-700);
  border-bottom:1px dashed var(--border);
}
.policy-section ul li:last-child{ border-bottom:none; }
.policy-section ul li::before{
  content:"";
  position:absolute;
  left:2px; top:16px;
  width:7px; height:7px;
  border-radius:50%;
  background:var(--blue-500);
}

/* data-category cards, styled after the app's Audio Effects sliders */
.data-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:14px;
  margin:20px 0 6px;
}
.data-card{
  border:1px solid var(--border);
  border-radius:16px;
  padding:16px;
  background:var(--surface-1);
}
.data-card-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:10px;
}
.data-card-top span{
  font-weight:700;
  font-size:13.5px;
  color:var(--ink-900);
}
.toggle{
  width:34px; height:20px;
  border-radius:100px;
  background:var(--blue-500);
  position:relative;
  flex-shrink:0;
}
.toggle::after{
  content:"";
  position:absolute;
  top:2px; right:2px;
  width:16px; height:16px;
  border-radius:50%;
  background:#fff;
}
.data-card-bar{
  height:6px;
  border-radius:100px;
  background:var(--surface-2);
  overflow:hidden;
  margin-bottom:8px;
}
.data-card-bar span{
  display:block;
  height:100%;
  background:linear-gradient(90deg, var(--blue-500), var(--blue-glow));
  border-radius:100px;
}
.data-card p{
  font-size:12.5px;
  color:var(--muted-500);
  margin:0;
}

/* private / callout box echoing the Hidden Songs purple screen */
.callout{
  border-radius:18px;
  padding:20px 22px;
  margin:18px 0 6px;
  display:flex;
  gap:14px;
  align-items:flex-start;
  background:linear-gradient(135deg, #1c1030, #2a1750);
  color:#fff;
}
.callout .section-icon{ background:linear-gradient(160deg,#a78bfa,#7c3aed); box-shadow:none; }
.callout h4{
  margin:0 0 4px;
  font-family:var(--font-display);
  font-size:15px;
}
.callout p{
  margin:0;
  font-size:13.5px;
  color:rgba(255,255,255,.78);
}

/* third party / rights pill list */
.pill-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:16px 0 6px;
}
.pill-row span{
  background:var(--surface-2);
  border:1px solid var(--border);
  border-radius:100px;
  padding:8px 14px;
  font-size:13px;
  font-weight:600;
  color:var(--ink-700);
}

.rights-grid{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:10px;
  margin:16px 0 6px;
}
.rights-grid div{
  display:flex;
  align-items:center;
  gap:10px;
  border:1px solid var(--border);
  border-radius:14px;
  padding:12px 14px;
  font-size:13.5px;
  font-weight:600;
  color:var(--ink-700);
  background:var(--surface-1);
}
.rights-grid div::before{
  content:"✓";
  display:flex;
  align-items:center;
  justify-content:center;
  width:20px; height:20px;
  border-radius:50%;
  background:var(--success);
  color:#fff;
  font-size:11px;
  flex-shrink:0;
}

.contact-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  flex-wrap:wrap;
  background:linear-gradient(135deg, var(--navy-900), #17284f);
  color:#fff;
  border-radius:var(--radius-lg);
  padding:32px;
  margin-top:8px;
}
.contact-card h3{
  font-family:var(--font-display);
  font-size:22px;
  margin:0 0 6px;
}
.contact-card p{
  margin:0;
  color:#aab1c6;
  font-size:14px;
  max-width:420px;
}
.contact-card .btn-primary{ box-shadow:0 20px 50px -20px rgba(47,107,255,.6); }

footer{
  text-align:center;
  padding:36px 24px 48px;
  color:var(--muted-300);
  font-size:13px;
}
footer a{ color:var(--blue-600); text-decoration:none; font-weight:600; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px){
  .hero-grid{ grid-template-columns:1fr; }
  .phone{ display:none; }
  .policy-shell{ grid-template-columns:1fr; margin-top:-40px; }
  .toc{ position:static; display:flex; flex-wrap:wrap; gap:4px; }
  .toc ol{ display:flex; flex-wrap:wrap; gap:6px; width:100%; }
  .toc li{ flex:1 1 auto; }
  .toc-contact{ display:none; }
  .data-grid{ grid-template-columns:1fr; }
  .rights-grid{ grid-template-columns:1fr; }
}
@media (max-width: 600px){
  .doc-header{ flex-direction:column; align-items:flex-start; }
  section.policy-section{ padding:22px; }
  .contact-card{ flex-direction:column; align-items:flex-start; }
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *{ transition:none !important; }
}