/* ----------------------------------------------------------------------------
 * site.css — the public, un-gated pages: /, /privacy, /terms, /404.
 *
 * Deliberately separate from auth.css. These pages must render fully for a
 * visitor (and a crawler) with no Firebase session and no JavaScript at all,
 * so nothing here depends on the auth-loading visibility dance.
 *
 * Tokens mirror auth.css and the deck so the three surfaces read as one
 * product.
 * ---------------------------------------------------------------------------- */

:root {
  --color-bg: #0a0a0b;
  --color-surface: #131316;
  --color-border: #26262b;
  --color-text: #f4f4f5;
  --color-text-muted: #a1a1aa;
  --color-accent: #3b82f6;
  --color-accent-hover: #2563eb;
  --max-width: 760px;
}

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

html,
body {
  margin: 0;
  padding: 0;
  background: var(--color-bg);
  color: var(--color-text);
}

body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a:hover {
  text-decoration: underline;
}

/* ------------------------------------------------------------------ header */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
}

.site-header__brand img {
  display: block;
  height: auto;
  max-width: 106px;
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.9375rem;
}

.site-header__nav a {
  color: var(--color-text-muted);
}

.site-header__nav a:hover {
  color: var(--color-text);
}

/* -------------------------------------------------------------------- main */

main {
  flex: 1;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.25rem 4rem;
}

.hero {
  padding: 2.5rem 0 3rem;
  border-bottom: 1px solid var(--color-border);
}

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-weight: 500;
  margin: 0 0 1rem;
}

h1 {
  font-size: clamp(1.875rem, 5vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 1.25rem;
}

h2 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 0.75rem;
}

.lede {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  margin: 0 0 2rem;
  max-width: 60ch;
}

p {
  margin: 0 0 1rem;
  max-width: 68ch;
}

.hero__actions,
.panel__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.panel {
  padding: 2.25rem 0;
  border-bottom: 1px solid var(--color-border);
}

.panel:last-of-type {
  border-bottom: none;
}

.panel p:last-child {
  margin-bottom: 0;
}

.panel__actions {
  margin-top: 1.5rem;
}

/* ----------------------------------------------------------------- buttons */

.btn-primary,
.btn-secondary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 1.125rem;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
  font-family: inherit;
  text-decoration: none;
  border: 1px solid transparent;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease;
}

.btn-primary,
.btn-primary:hover {
  background: var(--color-accent);
  color: #fff;
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--color-accent-hover);
}

.btn-secondary,
.btn-ghost {
  background: transparent;
  border-color: var(--color-border);
  color: var(--color-text);
}

.btn-secondary:hover,
.btn-ghost:hover {
  border-color: #3f3f46;
  background: var(--color-surface);
  text-decoration: none;
}

.btn-ghost {
  height: 36px;
  padding: 0 0.875rem;
  font-size: 0.875rem;
}

.link {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

.link:hover {
  color: var(--color-text);
}

/* ------------------------------------------------------------------ footer */

.site-footer {
  border-top: 1px solid var(--color-border);
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.site-footer__brand img {
  display: block;
  height: auto;
  max-width: 88px;
  opacity: 0.75;
}

.site-footer__brand p {
  margin: 0;
  font-weight: 500;
  color: var(--color-text);
}

.site-footer__links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.site-footer__links a {
  color: var(--color-text-muted);
}

.site-footer__links a:hover {
  color: var(--color-text);
}

.site-footer__legal {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: #71717a;
  max-width: 72ch;
}

/* --------------------------------------------------------- legal documents */

.doc h1 {
  font-size: clamp(1.625rem, 4vw, 2.125rem);
  margin-bottom: 0.5rem;
}

.doc__updated {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  margin-bottom: 2.5rem;
}

.doc h2 {
  margin-top: 2.25rem;
}

.doc ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  max-width: 68ch;
}

.doc li {
  margin-bottom: 0.5rem;
}

/* --------------------------------------------------------------------- 404 */

.notfound {
  padding: 4rem 0;
  text-align: left;
}
