/* Wax marketing site — colors and feel match the app
   (CLAUDE.md → Design Principles → Color palette). */
:root {
  --bg: #F7F7F5;
  --card: #FFFFFF;
  --text: #0D0D0D;
  --muted: #888880;
  --border: #E8E8E8;
  --gold: #E9A800;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; transition: color 120ms ease; }

/* ── Header ─────────────────────────────────────────────────────────── */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--card);
}
.logo {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text);
}
.gold-star { color: var(--gold); }
.site-nav { display: flex; gap: 24px; }
.site-nav a {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}
.site-nav a:hover { color: var(--text); }

/* ── Main flex fill ─────────────────────────────────────────────────── */
main { flex: 1; }

/* ── Landing hero ───────────────────────────────────────────────────── */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 112px 24px 96px;
  text-align: center;
}
.hero-logo {
  font-size: 88px;
  font-weight: 800;
  letter-spacing: -3px;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1;
}
.hero-tagline {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 44px;
}
.hero-desc {
  font-size: 18px;
  max-width: 480px;
  color: var(--text);
  margin: 0 auto 40px;
  line-height: 1.55;
}
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--text);
  color: var(--card);
  padding: 16px 32px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: not-allowed;
  font-family: inherit;
  opacity: 0.95;
}
.cta:hover { opacity: 1; }
.cta-sub {
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.2px;
}

/* ── Legal pages (privacy, terms) ───────────────────────────────────── */
.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}
.legal h1 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}
.legal .updated {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 36px;
}
.legal h2 {
  font-size: 18px;
  font-weight: 700;
  margin-top: 32px;
  margin-bottom: 12px;
}
.legal p {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 14px;
  color: var(--text);
}
.legal ul {
  padding-left: 22px;
  margin-bottom: 16px;
}
.legal li {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 6px;
}
.legal a {
  color: var(--gold);
  font-weight: 500;
}
.legal a:hover { text-decoration: underline; }
.legal strong { font-weight: 700; }

/* CCPA categories table (privacy §11.3) — kept minimal to match the rest
   of the legal copy without introducing a new visual language. */
.legal .table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 16px 0 20px;
  -webkit-overflow-scrolling: touch;
}
.legal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}
.legal th,
.legal td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  line-height: 1.55;
}
.legal th {
  background: var(--bg);
  font-weight: 700;
  font-size: 13px;
  color: var(--text);
}

/* ── Footer ─────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px 40px;
  text-align: center;
  background: var(--card);
}
.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 8px;
}
.footer-links a {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}
.footer-links a:hover { color: var(--text); }
.dot { color: var(--muted); }
.footer-copy {
  font-size: 12px;
  color: var(--muted);
}

/* ── Mobile ─────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .site-header { padding: 16px 20px; }
  .logo { font-size: 19px; }
  .site-nav { gap: 18px; }

  .hero { padding: 72px 20px 56px; }
  .hero-logo { font-size: 64px; letter-spacing: -2px; }
  .hero-tagline { font-size: 16px; margin-bottom: 36px; }
  .hero-desc { font-size: 16px; margin-bottom: 32px; }
  .cta { padding: 14px 26px; font-size: 14px; }

  .legal { padding: 40px 20px 64px; }
  .legal h1 { font-size: 26px; }
  .legal h2 { font-size: 16px; margin-top: 28px; }
  .legal p, .legal li { font-size: 14.5px; }

  .site-footer { padding: 28px 20px 36px; }
}
