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

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

:root {
  color-scheme: light dark;

  /* Songwright brand color — sampled from BrandIcon (magenta-violet) */
  --accent: light-dark(#C822E9, #D724F5);

  --bg-deep: light-dark(#FAFAFA, #050510);
  --bg-card: light-dark(#FFFFFF, #111128);

  --text-primary: light-dark(#1A1A2E, #F0F0F5);
  --text-secondary: light-dark(#5A5A7A, #8888AA);
  --text-muted: light-dark(#9999AA, #555570);

  --nav-bg: light-dark(rgba(250, 250, 250, 0.8), rgba(5, 5, 16, 0.7));
  --nav-border: light-dark(rgba(0, 0, 0, 0.06), rgba(255, 255, 255, 0.05));
  --card-border: light-dark(rgba(0, 0, 0, 0.08), rgba(255, 255, 255, 0.06));
  --footer-border: light-dark(rgba(0, 0, 0, 0.06), rgba(255, 255, 255, 0.05));

  --input-bg: light-dark(rgba(0, 0, 0, 0.03), rgba(255, 255, 255, 0.04));
  --input-border: light-dark(rgba(0, 0, 0, 0.1), rgba(255, 255, 255, 0.1));

  --phone-border: light-dark(rgba(0, 0, 0, 0.12), rgba(255, 255, 255, 0.1));
  --phone-shadow: light-dark(rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.5));

  --hero-heading-gradient: linear-gradient(
    135deg,
    light-dark(#1A1A2E, #FFFFFF) 0%,
    light-dark(#3A3A6E, #C0C0E0) 50%,
    var(--accent) 100%
  );
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

site-nav { display: contents; }
site-footer { display: contents; }

/* Header */
.site-nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(20px);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--nav-border);
}

.site-nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  text-decoration: none;
}

.site-nav-logo img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: block;
}

/* Footer */
.site-footer-bar {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
  border-top: 1px solid var(--footer-border);
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: auto;
}

.site-footer-links {
  display: flex;
  gap: 1.5rem;
}

.site-footer-bar a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer-bar a:hover {
  color: var(--text-primary);
}

body.support .site-footer-links a[href="/support"],
body.privacy .site-footer-links a[href="/privacy"],
body.terms .site-footer-links a[href="/terms"] {
  color: var(--text-primary);
  pointer-events: none;
  cursor: default;
}

/* Shared long-form content layout (privacy, terms, support) */
main.content {
  flex: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 8rem 2rem 2rem;
  width: 100%;
}

main.content h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

main.content h2 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

main.content p,
main.content li {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

main.content ul {
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
}

main.content li { margin-bottom: 0.4rem; }

main.content a {
  color: var(--accent);
  text-decoration: none;
}

main.content a:hover { text-decoration: underline; }

main.content .last-updated {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 3rem;
}

main.content .lede {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 3rem;
}

main.content .lede a {
  font-weight: 600;
}

/* Tablet and up */
@media (min-width: 560px) {
  .site-footer-bar {
    flex-direction: row;
    justify-content: space-between;
    gap: 0;
    text-align: left;
  }
}
