/*
 * JuveTube — stage-black surfaces with a warm gold accent.
 * Plain CSS conversion of the original Tailwind design system.
 */

:root {
  --radius: 1rem;
  --background: oklch(0.14 0.005 85);
  --foreground: oklch(0.97 0.004 85);
  --card: oklch(0.185 0.007 85);
  --primary: oklch(0.79 0.13 80);
  --primary-foreground: oklch(0.19 0.03 80);
  --muted: oklch(0.22 0.007 85);
  --muted-foreground: oklch(0.68 0.014 85);
  --border: oklch(1 0 0 / 9%);
  --gold-soft: oklch(0.79 0.13 80 / 14%);

  /* alpha variants of the tokens above */
  --primary-25: oklch(0.79 0.13 80 / 25%);
  --primary-40: oklch(0.79 0.13 80 / 40%);
  --primary-60: oklch(0.79 0.13 80 / 60%);
  --primary-90: oklch(0.79 0.13 80 / 90%);
  --gold-soft-40: oklch(0.79 0.13 80 / 5.6%);
  --bg-80: oklch(0.14 0.005 85 / 80%);
  --bg-55: oklch(0.14 0.005 85 / 55%);
  --card-40: oklch(0.185 0.007 85 / 40%);
  --card-60: oklch(0.185 0.007 85 / 60%);
  --emerald: oklch(0.696 0.17 162.48);
  --emerald-15: oklch(0.696 0.17 162.48 / 15%);

  --r-xl: calc(var(--radius) + 4px);
  --r-2xl: calc(var(--radius) + 8px);
  --r-3xl: calc(var(--radius) + 12px);
  --font: "Manrope", ui-sans-serif, system-ui, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; border: 0 solid var(--border); }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--primary); color: var(--primary-foreground); }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; }
h1, h2, h3, h4 { font-weight: inherit; font-size: inherit; }

.site { display: flex; flex-direction: column; min-height: 100vh; background: var(--background); }
.site > main { flex: 1; }

.container { width: 100%; max-width: 72rem; margin: 0 auto; padding-left: 1rem; padding-right: 1rem; }
.text-primary { color: var(--primary); }

/* ---------- Icons ---------- */
.icon { width: 1rem; height: 1rem; flex-shrink: 0; }
.icon-sm { width: 1rem; height: 1rem; color: var(--primary); }
.icon-md { width: 1.25rem; height: 1.25rem; color: var(--primary); }
.icon-lg { width: 1.5rem; height: 1.5rem; color: var(--primary); }
.icon-xl { width: 1.75rem; height: 1.75rem; color: var(--primary); }
.icon-box { display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: var(--gold-soft); }
.icon-box-md { width: 2.75rem; height: 2.75rem; border-radius: var(--r-xl); }
.icon-box-lg { width: 3rem; height: 3rem; border-radius: var(--r-2xl); }
.icon-box-xl { width: 3.5rem; height: 3.5rem; border-radius: var(--r-2xl); margin: 0 auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom-width: 1px;
  background: var(--bg-80);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 4rem; }
.wordmark { font-size: 1.25rem; line-height: 1.75rem; font-weight: 800; letter-spacing: -0.025em; color: var(--foreground); }
.wordmark span { color: var(--primary); }
.nav { display: flex; align-items: center; gap: 0.25rem; }
.nav a {
  border-radius: 9999px; padding: 0.5rem 0.75rem;
  font-size: 0.875rem; line-height: 1.25rem; font-weight: 600;
  color: var(--muted-foreground); transition: color 0.15s;
}
.nav a:hover, .nav a.active { color: var(--foreground); }

/* ---------- Footer ---------- */
.site-footer { border-top-width: 1px; }
.footer-inner { display: flex; flex-direction: column; gap: 1.5rem; padding-top: 2.5rem; padding-bottom: 2.5rem; }
.footer-tagline { margin-top: 0.5rem; max-width: 20rem; font-size: 0.875rem; color: var(--muted-foreground); }
.footer-cols { display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.875rem; }
.footer-col { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-foreground); }
.footer-col a { color: var(--muted-foreground); transition: color 0.15s; }
.footer-col a:hover { color: var(--foreground); }
.footer-col a.footer-email { color: var(--primary); }
.footer-col a.footer-email:hover { text-decoration: underline; }
.footer-bottom { border-top-width: 1px; padding: 1.25rem 0; }
.footer-bottom p { text-align: center; font-size: 0.75rem; color: var(--muted-foreground); }

/* ---------- Shared components ---------- */
.eyebrow {
  display: inline-block; border-radius: 9999px; background: var(--gold-soft);
  padding: 0.375rem 1rem; font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--primary);
}
.badge {
  border: 1px solid var(--primary-40); border-radius: 9999px; background: var(--gold-soft);
  padding: 0.375rem 1rem; font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--primary);
}
.section-heading { max-width: 42rem; margin: 0 auto; text-align: center; }
.section-heading h2 {
  margin-top: 1rem; font-size: 1.875rem; line-height: 2.25rem; font-weight: 800;
  letter-spacing: -0.025em; text-wrap: balance;
}
.section-heading p { margin-top: 0.75rem; font-size: 1rem; line-height: 1.5rem; color: var(--muted-foreground); text-wrap: balance; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border-radius: 9999px; padding: 0.875rem 1.75rem;
  font-size: 0.875rem; line-height: 1.25rem; font-weight: 700;
  background: var(--primary); color: var(--primary-foreground);
  box-shadow: 0 8px 30px -8px oklch(0.79 0.13 80 / 45%);
  transition: background-color 0.15s;
}
.btn:hover { background: var(--primary-90); }

.glow {
  position: absolute; left: 50%; pointer-events: none;
  background: radial-gradient(closest-side, oklch(0.79 0.13 80 / 22%), transparent 70%);
}

.card { border: 1px solid var(--border); border-radius: var(--r-3xl); background: var(--card); padding: 1.75rem; }
.card-hover { transition: border-color 0.15s; }
.card-hover:hover { border-color: var(--primary-40); }
.card-title { margin-top: 1.25rem; font-size: 1.125rem; line-height: 1.75rem; font-weight: 700; }
.card-title-sm { margin-top: 1rem; }
.card-text { margin-top: 0.5rem; font-size: 0.875rem; line-height: 1.625; color: var(--muted-foreground); }

.grid-3 { display: grid; gap: 1.25rem; margin-top: 3rem; }
.section { padding-top: 5rem; padding-bottom: 5rem; }

/* ---------- Home ---------- */
.hero { position: relative; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: 0.6; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, var(--bg-80), var(--bg-55), var(--background)); }
.hero-inner {
  position: relative; max-width: 56rem; margin: 0 auto; padding: 7rem 1rem;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.hero h1 { margin-top: 1.5rem; font-size: 2.25rem; line-height: 2.5rem; font-weight: 800; letter-spacing: -0.025em; text-wrap: balance; }
.hero-lead { margin-top: 1.25rem; max-width: 36rem; font-size: 1rem; line-height: 1.5rem; color: var(--muted-foreground); text-wrap: balance; }
.hero-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.75rem; }
.link-muted { font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; color: var(--muted-foreground); transition: color 0.15s; }
.link-muted:hover { color: var(--foreground); }

.band { border-top-width: 1px; border-bottom-width: 1px; background: var(--card-40); }
.step-top { display: flex; align-items: center; justify-content: space-between; }
.step-num { font-size: 1.875rem; line-height: 2.25rem; font-weight: 800; color: var(--primary-40); }

.cta { position: relative; overflow: hidden; }
.glow-cta { top: 50%; width: 800px; height: 500px; transform: translate(-50%, -50%); }
.cta-inner { position: relative; max-width: 48rem; margin: 0 auto; padding: 6rem 1rem; text-align: center; }
.cta-button { margin-top: 2rem; display: flex; justify-content: center; }
.fine-print { margin-top: 1.5rem; font-size: 0.75rem; line-height: 1rem; color: var(--muted-foreground); }
.fine-print a { color: var(--primary); }
.fine-print a:hover { text-decoration: underline; }

/* ---------- Inner-page hero (Contact / Privacy) ---------- */
.page-hero { position: relative; overflow: hidden; border-bottom-width: 1px; }
.glow-top { top: -10rem; width: 700px; height: 420px; transform: translateX(-50%); }
.page-hero-inner { position: relative; margin: 0 auto; padding: 5rem 1rem; }
.page-hero-center { max-width: 42rem; text-align: center; }
.page-hero-left { max-width: 48rem; padding-top: 4rem; padding-bottom: 4rem; }
.page-hero h1 { margin-top: 1.25rem; font-size: 2.25rem; line-height: 2.5rem; font-weight: 800; letter-spacing: -0.025em; }
.page-hero-lead { margin-top: 1rem; font-size: 1rem; line-height: 1.5rem; color: var(--muted-foreground); }
.page-hero-left .page-hero-lead { max-width: 42rem; }
.page-hero-lead-2 { margin-top: 0.75rem; }
.updated { margin-top: 1.25rem; display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; line-height: 1.25rem; color: var(--muted-foreground); }

/* ---------- Contact ---------- */
.narrow { max-width: 42rem; margin: 0 auto; padding: 4rem 1rem; }
.email-card {
  display: block; border: 1px solid var(--primary-40); border-radius: var(--r-3xl);
  background: var(--card); padding: 2rem; text-align: center; transition: background-color 0.15s;
}
.email-card:hover { background: var(--gold-soft-40); }
.email-label { margin-top: 1rem; font-size: 0.75rem; line-height: 1rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-foreground); }
.email-address { margin-top: 0.25rem; font-size: 1.5rem; line-height: 2rem; font-weight: 800; color: var(--primary); overflow-wrap: anywhere; }
.email-card:hover .email-address { text-decoration: underline; }
.response-time { margin-top: 2.5rem; display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; line-height: 1.25rem; color: var(--muted-foreground); }
.topics { margin-top: 2.5rem; }
.topics h2 { font-size: 1.25rem; line-height: 1.75rem; font-weight: 700; }
.topic-list { margin-top: 1.25rem; display: grid; gap: 1rem; }
.topic { display: flex; gap: 1rem; border: 1px solid var(--border); border-radius: var(--r-2xl); background: var(--card); padding: 1.5rem; }
.topic h3 { font-weight: 600; }
.topic p { margin-top: 0.25rem; font-size: 0.875rem; line-height: 1.625; color: var(--muted-foreground); }
.note-box {
  margin-top: 2.5rem; border: 1px solid var(--border); border-radius: var(--r-2xl);
  background: var(--card-60); padding: 1.25rem; font-size: 0.875rem; line-height: 1.625; color: var(--muted-foreground);
}
.note-box a { color: var(--primary); }
.note-box a:hover { text-decoration: underline; }

/* ---------- Privacy ---------- */
.narrow-lg { max-width: 48rem; margin: 0 auto; padding: 3rem 1rem; }
.policy-sections > * + * { margin-top: 2.5rem; }
.policy-h2 { font-size: 1.25rem; line-height: 1.75rem; font-weight: 700; }
.policy-num { margin-right: 0.75rem; color: var(--primary-60); font-variant-numeric: tabular-nums; }
.policy-p { margin-top: 0.75rem; font-size: 0.875rem; line-height: 1.625; color: var(--muted-foreground); }
.side-rule { border-left: 2px solid var(--primary-25); padding-left: 1.25rem; }
.defs { margin-top: 1rem; }
.defs > * + * { margin-top: 0.75rem; }
.defs > div { font-size: 0.875rem; line-height: 1.625; color: var(--muted-foreground); }
.defs dt { font-weight: 600; color: var(--foreground); }
.defs dd { margin-top: 0.25rem; }
.nested { margin-top: 1rem; }
.nested > * + * { margin-top: 1.5rem; }
.nested h3 { font-size: 1.125rem; line-height: 1.75rem; font-weight: 600; }
.nested-body { margin-top: 0.5rem; }
.nested-body .policy-p { margin-top: 0; }
.nested-body > * + * { margin-top: 0.75rem; }

.ccpa { margin-top: 1.5rem; }
.ccpa-cards > * + * { margin-top: 1rem; }
.ccpa-card { border: 1px solid var(--border); border-radius: var(--r-2xl); background: var(--card-60); padding: 1rem; }
.ccpa-top { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.ccpa-top h4 { font-weight: 600; }
.ccpa-letter { margin-right: 0.5rem; color: var(--primary); }
.pill { flex-shrink: 0; border-radius: 9999px; padding: 0.25rem 0.75rem; font-size: 0.75rem; line-height: 1rem; font-weight: 700; }
.pill-yes { background: var(--emerald-15); color: var(--emerald); }
.pill-no { background: var(--muted); color: var(--muted-foreground); }
.ccpa-examples { margin-top: 0.5rem; font-size: 0.875rem; line-height: 1.625; color: var(--muted-foreground); }
.ccpa-examples strong { font-weight: 600; color: var(--foreground); }
.ccpa-note { margin-top: 0.5rem; font-size: 0.875rem; font-style: italic; color: var(--muted-foreground); }
.ccpa-exclusions { margin-top: 1rem; }
.ccpa-exclusions > p { font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; color: var(--foreground); }
.ccpa-exclusions ul { margin: 0.5rem 0 0 1.25rem; list-style: disc; font-size: 0.875rem; line-height: 1.625; color: var(--muted-foreground); }
.ccpa-exclusions li + li { margin-top: 0.25rem; }

.contact-box { margin-top: 3.5rem; border: 1px solid var(--primary-40); border-radius: var(--r-3xl); background: var(--card); padding: 1.75rem; }
.contact-box h2 { margin-top: 1rem; font-size: 1.25rem; line-height: 1.75rem; font-weight: 700; }
.contact-box p { margin-top: 0.5rem; font-size: 0.875rem; color: var(--muted-foreground); }
.contact-box a { font-weight: 600; color: var(--primary); }
.contact-box a:hover { text-decoration: underline; }

/* ---------- Breakpoints ---------- */
@media (min-width: 640px) {
  .container, .cta-inner, .hero-inner, .page-hero-inner, .narrow, .narrow-lg { padding-left: 1.5rem; padding-right: 1.5rem; }
  .nav { gap: 0.5rem; }
  .nav a { padding-left: 1rem; padding-right: 1rem; }
  .footer-cols { flex-direction: row; gap: 2rem; }
  .section-heading h2 { font-size: 2.25rem; line-height: 2.5rem; }
  .section-heading p { font-size: 1.125rem; line-height: 1.75rem; }
  .hero-inner { padding-top: 10rem; padding-bottom: 10rem; }
  .hero h1 { font-size: 3.75rem; line-height: 1; }
  .hero-lead { font-size: 1.125rem; line-height: 1.75rem; }
  .page-hero h1 { font-size: 3rem; line-height: 1; }
  .page-hero-lead { font-size: 1.125rem; line-height: 1.75rem; }
  .page-hero-left .page-hero-lead { font-size: 1rem; line-height: 1.5rem; }
  .email-address { font-size: 1.875rem; line-height: 2.25rem; }
  .policy-p, .defs > div, .ccpa-exclusions ul { font-size: 1rem; line-height: 1.625; }
  .contact-box p { font-size: 1rem; }
}
@media (min-width: 768px) {
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-inner { flex-direction: row; align-items: center; justify-content: space-between; }
}
