/* MusicKeep — musickeepapp.com
   Brand: MusicKeep purple. No frameworks, no JavaScript. */

:root {
  --primary: #6D3BEA;
  --primary-light: #8B6CFF;
  --primary-dark: #4F1FC4;
  --primary-ink: #5B2FD0;           /* purple with enough contrast on light backgrounds */
  --background: #FAF9FF;
  --background-alt: #F3F0FF;
  --card-bg: #FFFFFF;
  --text-primary: #17132B;
  --text-secondary: #57536B;
  --text-light: #8B879C;
  --hairline: rgba(23, 19, 43, 0.09);
  --success: #3FA36F;
  --success-light: #E6F5EC;
  --accent-gradient: linear-gradient(135deg, #8B6CFF 0%, #6D3BEA 55%, #4F1FC4 100%);
  --hero-gradient: linear-gradient(180deg, #FFFFFF 0%, #F6F3FF 55%, #EFEAFF 100%);
  --card-shadow: 0 4px 24px rgba(109, 59, 234, 0.10);
  --card-shadow-hover: 0 12px 44px rgba(109, 59, 234, 0.18);
  --footer-bg: #110D22;
  --header-bg: rgba(255, 255, 255, 0.88);
  --btn-glow: 109, 59, 234;           /* RGB for the travelling light on the secondary button */
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary-ink: #A78BFF;
    --background: #0F0C1D;
    --background-alt: #161230;
    --card-bg: #1B1634;
    --text-primary: #F1EEFF;
    --text-secondary: #B4AFCB;
    --text-light: #7F7A98;
    --hairline: rgba(241, 238, 255, 0.10);
    --success-light: rgba(63, 163, 111, 0.16);
    --hero-gradient: linear-gradient(180deg, #14102A 0%, #181336 60%, #1B1538 100%);
    --card-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
    --card-shadow-hover: 0 12px 44px rgba(0, 0, 0, 0.5);
    --footer-bg: #0A0816;
    --header-bg: rgba(15, 12, 29, 0.85);
    --btn-glow: 167, 139, 255;
  }
}

/* Metric-matched stand-in for Inter so text does not reflow (and icons do not
   jump) while the web font loads. Values are the standard Inter-over-Arial
   overrides; Arial ships with macOS, iOS, and Windows. */
@font-face {
  font-family: 'Inter Fallback';
  src: local('Arial');
  size-adjust: 107.12%;
  ascent-override: 90.49%;
  descent-override: 22.56%;
  line-gap-override: 0%;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Inter Fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--background);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
a { color: var(--primary-ink); }

/* ---------- Header ---------- */
header.site {
  background: var(--header-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 14px 40px;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--hairline);
}
.header-content {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}
.logo img {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  box-shadow: 0 4px 12px rgba(109, 59, 234, 0.25);
}
.logo-text {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.4px;
}
nav.links { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
nav.links a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 9px 16px;
  font-weight: 500;
  font-size: 15px;
  border-radius: 10px;
  transition: color 0.2s ease, background 0.2s ease;
}
nav.links a:hover { color: var(--primary-ink); background: rgba(109, 59, 234, 0.08); }

/* ---------- Hero ---------- */
.hero {
  padding: 150px 40px 100px;
  background: var(--hero-gradient);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -45%; right: -20%;
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(139, 108, 255, 0.18) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -35%; left: -12%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(79, 31, 196, 0.14) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}
.hero-icon {
  width: 140px; height: 140px;
  border-radius: 32px;
  margin-bottom: 36px;
  box-shadow: 0 20px 60px rgba(109, 59, 234, 0.38);
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-icon { animation: none; }
}
.hero h1 {
  font-size: 52px;
  font-weight: 800;
  margin-bottom: 22px;
  letter-spacing: -1.5px;
  line-height: 1.12;
}
.hero h1 span {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 20px;
  color: var(--text-secondary);
  margin: 0 auto 44px;
  max-width: 640px;
  line-height: 1.75;
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.app-store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 17px 34px;
  background: var(--text-primary);
  color: var(--background);
  text-decoration: none;
  border-radius: 16px;
  font-weight: 600; font-size: 17px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 8px 30px rgba(23, 19, 43, 0.22);
}
.app-store-btn:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(23, 19, 43, 0.3); }
.app-store-btn svg { width: 24px; height: 24px; flex-shrink: 0; }
.secondary-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 17px 34px;
  background: transparent;
  color: var(--text-primary);
  text-decoration: none;
  border-radius: 16px;
  font-weight: 600; font-size: 17px;
  border: 2px solid var(--hairline);
  transition: border-color 0.25s ease, background 0.25s ease;
}
.secondary-btn svg { width: 20px; height: 20px; flex-shrink: 0; }

/* A faint point of light that races around the button outline. The ring is a
   conic gradient masked down to the border width; ::after is a blurred copy
   that gives it a soft halo. Browsers without @property simply show nothing. */
@property --btn-glow-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}
.secondary-btn { position: relative; isolation: isolate; }
.secondary-btn::before,
.secondary-btn::after {
  content: "";
  position: absolute;
  inset: -2px;
  padding: 2px;
  border-radius: 16px;
  background: conic-gradient(from var(--btn-glow-angle),
    transparent 0deg,
    transparent 290deg,
    rgba(var(--btn-glow), 0.35) 338deg,
    rgba(var(--btn-glow), 0.85) 352deg,
    transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: -1;
  animation: btn-glow-race 5s linear infinite;
}
.secondary-btn::after {
  inset: -6px;
  padding: 6px;
  border-radius: 20px;
  filter: blur(5px);
  opacity: 0.45;
}
@keyframes btn-glow-race { to { --btn-glow-angle: 360deg; } }
@media (prefers-reduced-motion: reduce) {
  .secondary-btn::before, .secondary-btn::after { animation: none; }
}
.secondary-btn:hover { border-color: var(--primary); background: rgba(109, 59, 234, 0.06); }
.hero-note { margin-top: 22px; font-size: 14px; color: var(--text-light); }

/* ---------- Promise band ---------- */
.promise {
  background: var(--accent-gradient);
  padding: 48px 40px;
  color: #fff;
  text-align: center;
}
.promise-content { max-width: 820px; margin: 0 auto; }
.promise h2 {
  font-size: 27px; font-weight: 700; margin-bottom: 10px;
  display: flex; align-items: center; justify-content: center; gap: 12px;
}
.promise h2 svg { width: 32px; height: 32px; flex-shrink: 0; }
.promise p { font-size: 17.5px; opacity: 0.95; max-width: 640px; margin: 0 auto; }

/* ---------- Sections ---------- */
.section { padding: 100px 40px; }
.section.alt { background: var(--background-alt); }
.section-inner { max-width: 1120px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-tag {
  display: inline-block;
  padding: 7px 18px;
  background: rgba(109, 59, 234, 0.10);
  color: var(--primary-ink);
  border-radius: 50px;
  font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 18px;
}
.section-header h2 {
  font-size: 40px; font-weight: 800;
  letter-spacing: -1px; margin-bottom: 14px; line-height: 1.15;
}
.section-header p { font-size: 18px; color: var(--text-secondary); max-width: 600px; margin: 0 auto; }

/* Features */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.feature-card {
  background: var(--card-bg);
  border-radius: 22px;
  padding: 34px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--hairline);
  position: relative; overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--accent-gradient);
  opacity: 0; transition: opacity 0.3s ease;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--card-shadow-hover); }
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 60px; height: 60px;
  background: rgba(109, 59, 234, 0.10);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
  color: var(--primary-ink);
}
.feature-icon svg { width: 30px; height: 30px; }
.feature-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.feature-card p { color: var(--text-secondary); font-size: 15px; line-height: 1.7; }

/* Plus */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: stretch; }
.plan {
  background: var(--card-bg);
  border-radius: 24px;
  padding: 36px;
  border: 1px solid var(--hairline);
  box-shadow: var(--card-shadow);
}
.plan.highlight { border: 2px solid var(--primary); }
.plan h3 { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.plan .price { color: var(--text-secondary); font-size: 15px; margin-bottom: 22px; }
.plan ul { list-style: none; }
.plan li {
  position: relative; padding: 9px 0 9px 32px;
  color: var(--text-secondary); font-size: 15px;
  border-bottom: 1px solid var(--hairline);
}
.plan li:last-child { border-bottom: none; }
.plan li::before {
  content: '';
  position: absolute; left: 0; top: 13px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--success-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233FA36F' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") no-repeat center / 12px;
}
.plan.highlight li::before {
  background-color: rgba(109, 59, 234, 0.12);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236D3BEA' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}
.plan-note { text-align: center; color: var(--text-light); font-size: 14px; margin-top: 28px; max-width: 640px; margin-left: auto; margin-right: auto; }

/* Privacy grid */
.privacy-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.privacy-card {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 32px 22px;
  text-align: center;
  border: 1px solid var(--hairline);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.privacy-card:hover { transform: translateY(-4px); box-shadow: var(--card-shadow); }
.privacy-card .icon {
  width: 66px; height: 66px;
  background: var(--success-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
  color: var(--success);
}
.privacy-card .icon svg { width: 30px; height: 30px; }
.privacy-card h4 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.privacy-card p { color: var(--text-secondary); font-size: 14px; line-height: 1.6; }

/* Solo dev */
.solo { text-align: center; }
.solo .inner { max-width: 640px; margin: 0 auto; }
.solo p { color: var(--text-secondary); margin-top: 14px; font-size: 17px; }
.solo .sig { font-style: italic; color: var(--primary-ink); margin-top: 18px; }

/* Contact */
.contact { text-align: center; }
.contact-email {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 19px 42px;
  background: var(--accent-gradient);
  color: #fff;
  text-decoration: none;
  border-radius: 16px;
  font-weight: 600; font-size: 18px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 8px 30px rgba(109, 59, 234, 0.35);
}
.contact-email:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(109, 59, 234, 0.45); }
.contact-email svg { width: 24px; height: 24px; }

/* ---------- Legal / support pages ---------- */
main.page {
  max-width: 800px;
  margin: 0 auto;
  padding: 130px 24px 70px;
}
.page h1 {
  font-size: 38px; font-weight: 800; letter-spacing: -1px; line-height: 1.15;
  margin-bottom: 8px;
  background: var(--accent-gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.page .date { color: var(--text-light); margin-bottom: 36px; font-size: 14px; }
.page .lede { color: var(--text-secondary); font-size: 17px; margin-bottom: 36px; }
.highlight-box {
  background: rgba(109, 59, 234, 0.08);
  border-left: 4px solid var(--primary);
  padding: 22px 24px;
  border-radius: 0 12px 12px 0;
  margin-bottom: 40px;
  color: var(--text-primary);
}
.page section { margin-bottom: 34px; }
.page h2 { font-size: 21px; font-weight: 700; margin-bottom: 12px; }
.page p, .page li { color: var(--text-secondary); }
.page p { margin-bottom: 14px; }
.page ul, .page ol { margin: 0 0 16px 24px; }
.page li { margin-bottom: 8px; }
.page strong { color: var(--text-primary); font-weight: 600; }
.page table { width: 100%; border-collapse: collapse; margin-bottom: 18px; font-size: 15px; }
.page th, .page td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--hairline); vertical-align: top; color: var(--text-secondary); }
.page th { color: var(--text-primary); font-weight: 600; }
.table-wrap { overflow-x: auto; }

/* FAQ */
details {
  background: var(--card-bg);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 12px;
}
details summary { cursor: pointer; font-weight: 600; color: var(--text-primary); font-size: 16px; list-style-position: outside; }
details p { margin: 10px 0 4px; color: var(--text-secondary); font-size: 15px; }
details ul { margin-top: 8px; }
details li { font-size: 15px; }

/* ---------- Footer ---------- */
footer.site {
  background: var(--footer-bg);
  color: #fff;
  padding: 48px 40px;
}
.footer-content {
  max-width: 1120px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 20px;
}
.footer-logo { display: flex; align-items: center; gap: 12px; }
.footer-logo img { width: 38px; height: 38px; border-radius: 10px; }
.footer-logo span { font-weight: 700; font-size: 18px; }
.footer-links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-links a { color: rgba(255, 255, 255, 0.62); text-decoration: none; font-size: 15px; transition: color 0.2s; }
.footer-links a:hover { color: var(--primary-light); }
.footer-copyright { color: rgba(255, 255, 255, 0.42); font-size: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .privacy-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  header.site { padding: 12px 20px; }
  .header-content { flex-direction: column; gap: 10px; }
  nav.links { justify-content: center; }
  nav.links a { padding: 7px 12px; font-size: 14px; }
  .hero { padding: 150px 24px 70px; }
  .hero-icon { width: 100px; height: 100px; border-radius: 24px; }
  .hero h1 { font-size: 34px; letter-spacing: -0.6px; }
  .hero p { font-size: 17px; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .section { padding: 70px 24px; }
  .section-header h2 { font-size: 30px; }
  .features-grid, .privacy-grid, .plans { grid-template-columns: 1fr; }
  .promise { padding: 40px 24px; }
  .promise h2 { font-size: 22px; }
  main.page { padding: 140px 20px 50px; }
  .page h1 { font-size: 30px; }
  .footer-content { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}
