/* ──────────────────────────────────────────────────────────────────────
   V-Tune site — shared styles.
   Design tokens, base typography, and the header/footer that every page
   shares (rendered by the <site-header>/<site-footer> elements in site.js).
   Page-specific styling stays in each page's own <style> block.
   ────────────────────────────────────────────────────────────────────── */

:root {
  --bg: #08080c;
  --bg-panel: #101018;
  --bg-card: #0d0d15;
  --border: #1e1e2a;
  --border-bright: #2a2a3a;
  --text: #f5f5fa;
  --text-dim: rgba(255, 255, 255, 0.75);
  --text-faint: rgba(255, 255, 255, 0.55);
  --cyan: #06b6d4;
  --cyan-bright: #22d3ee;
  --green: #00e878;
  --red: #ff3b3b;
  --yellow: #fbbf24;
  --purple: #a855f7;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }

a { color: var(--cyan-bright); text-decoration: none; }
a:hover { text-decoration: underline; }

/* One page width everywhere. */
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

/* ── Header (rendered by <site-header>) ── */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 8, 12, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.logo { display: flex; align-items: center; }
.logo img { height: 30px; width: auto; display: block; }
a.logo:hover { text-decoration: none; }
.header-links { display: flex; gap: 24px; align-items: center; }
.header-links a { color: var(--text-dim); font-size: 14px; font-weight: 500; }
.header-links a:hover { color: var(--text); text-decoration: none; }
.header-links a[aria-current="page"] { color: var(--cyan-bright); }
/* ── Mobile nav ──────────────────────────────────────────────────────
   Phones get a burger + full-screen slide-in menu; the inline links
   simply wrap and cramp otherwise. Desktop is untouched. */
.nav-toggle, .nav-brand, .nav-buy, .nav-close { display: none; }  /* mobile-panel chrome */

@media (max-width: 720px) {
  /* The header's backdrop-filter would otherwise become the containing
     block for the fixed panel below, anchoring it to the header instead
     of the viewport. Drop it on phones — the header is opaque anyway. */
  header.site { backdrop-filter: none; background: var(--bg); }

  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; margin-right: -8px;
    background: none; border: 0; cursor: pointer; color: var(--text);
    -webkit-tap-highlight-color: transparent;
  }
  .nav-toggle svg { width: 24px; height: 24px; }

  .header-links {
    position: fixed; inset: 0; z-index: 60;
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    gap: 0;
    padding: 92px 32px max(32px, env(safe-area-inset-bottom));
    background: var(--bg);
    overflow-y: auto;
    /* Slide in from the right; hidden (and untabbable) when closed. */
    transform: translateX(100%);
    transition: transform .28s cubic-bezier(.16,1,.3,1);
    visibility: hidden;
  }
  .header-links.open { transform: translateX(0); visibility: visible; }

  /* Wordmark crowning the panel. */
  .nav-brand {
    display: block; margin: 0 auto 40px; width: 190px; max-width: 60%;
  }

  /* Links: full-width rows separated by hairlines, as on the app's menus. */
  .header-links a {
    font-size: 22px; font-weight: 600; color: var(--text);
    padding: 20px 8px; text-align: center;
    border-bottom: 1px solid rgba(168, 85, 247, 0.18);
  }
  .header-links a:first-of-type { border-top: 1px solid rgba(168, 85, 247, 0.18); }
  .header-links a:hover { text-decoration: none; }
  .header-links a.hide-sm { display: block; }
  .header-links a[aria-current="page"] { color: var(--cyan-bright); }

  /* Buy CTA pinned to the bottom of the panel. */
  .nav-buy {
    display: flex; margin-top: auto; padding-top: 48px; padding-bottom: 24px;
    justify-content: center;
  }
  .nav-buy a {
    display: block; width: 100%; max-width: 320px;
    background: var(--green); color: #04140a;
    font-size: 17px; font-weight: 700; text-align: center;
    padding: 16px 20px; border-radius: 12px; border: 0;
  }
  .nav-buy a:hover { text-decoration: none; }

  /* Close button sits top-right, mirroring the burger it replaced. */
  .nav-close {
    position: absolute; top: 9px; right: 16px;
    width: 42px; height: 42px; display: inline-flex;
    align-items: center; justify-content: center;
    background: none; border: 0; color: var(--text); cursor: pointer;
  }
  .nav-close svg { width: 24px; height: 24px; }
  body.nav-open { overflow: hidden; }
}

/* ── Footer (rendered by <site-footer>) ── */
footer.site { border-top: 1px solid var(--border); padding: 40px 0; }
.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 20px;
}
.footer-inner .col-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-inner a { color: var(--text-dim); font-size: 14px; }
.footer-inner a:hover { color: var(--text); text-decoration: none; }
.footer-inner .credit { color: var(--text-faint); font-size: 13px; }

/* ── Long-form pages (pricing / terms / privacy / refunds) ──
   The page container is the full 1040px like everywhere else; running text
   sits in a readable column inside it so lines don't stretch unreadably. */
main.prose { padding: 56px 0 80px; }
.prose h1 { font-size: 36px; font-weight: 700; letter-spacing: -1px; margin-bottom: 6px; }
.prose .updated { color: var(--text-faint); font-size: 14px; margin-bottom: 36px; }
.prose .sub { color: var(--text-dim); font-size: 17px; margin-bottom: 40px; max-width: 64ch; }
.prose h2 { font-size: 20px; font-weight: 700; margin: 32px 0 10px; color: var(--cyan); }
.prose h3 { font-size: 16px; font-weight: 700; margin: 20px 0 6px; }
.prose p, .prose ul { max-width: 76ch; }
.prose p { color: var(--text-dim); margin-bottom: 14px; }
.prose ul { color: var(--text-dim); margin: 0 0 14px 22px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--text); }
.prose .no { color: var(--red); font-weight: 700; }
.prose .short {
  background: var(--bg-panel); border: 1px solid var(--border);
  border-radius: 14px; padding: 24px 26px; margin-bottom: 32px; max-width: 76ch;
}
.prose .short p { color: var(--text); margin: 0; font-size: 16px; max-width: none; }
