/*
 * Marketing + legal page styles.
 *
 * Handcrafted, self-contained, no Tailwind dependency. Served as a static
 * file from /marketing.css and referenced by every SSR'd public page so
 * the bundle stays small (a few KB) and crawlers don't have to wait on
 * the SPA's full CSS bundle.
 *
 * Design tokens mirror the in-app dark/light theme so the public site
 * reads as the same product. Tone is terse + technical per CLAUDE.md.
 */

/* ── Reset + base tokens ──────────────────────────────────────────── */

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

:root {
  --bg: #0a0a0b;
  --bg-elev: #111114;
  --bg-card: #15151a;
  --border: #26262d;
  --border-subtle: #1c1c22;
  --fg: #e8e8ea;
  --fg-muted: #9a9aa3;
  --fg-dim: #6a6a73;
  --accent: #4ade80;
  --accent-fg: #0a0a0b;
  --warn: #fbbf24;
  --danger: #f87171;
  --link: #93c5fd;
  --radius: 8px;
  --max-w: 1100px;
  --max-w-prose: 760px;
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

code, pre, kbd, samp { font-family: var(--font-mono); }

img { max-width: 100%; height: auto; }

/* ── Layout primitives ────────────────────────────────────────────── */

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.prose {
  max-width: var(--max-w-prose);
  margin: 0 auto;
  padding: 0 24px;
}

.prose h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 1rem; }
.prose h2 { font-size: 1.4rem; line-height: 1.3; margin: 2.5rem 0 0.75rem; }
.prose h3 { font-size: 1.1rem; line-height: 1.35; margin: 1.75rem 0 0.5rem; }
.prose p { margin: 0 0 1rem; }
.prose ul, .prose ol { margin: 0 0 1rem; padding-left: 1.4rem; }
.prose li { margin-bottom: 0.4rem; }
.prose strong { color: #fff; }

/* ── Header ───────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(10, 10, 11, 0.85);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border-subtle);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.brand {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--fg);
  text-decoration: none;
}
.brand-dot { color: var(--accent); }

.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--fg-muted); font-size: 0.95rem; }
.nav a:hover { color: var(--fg); text-decoration: none; }

/* ── Buttons ──────────────────────────────────────────────────────── */

.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 80ms ease, background 120ms ease, border-color 120ms ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-fg); }
.btn-primary:hover { background: #6ee7a0; }
.btn-secondary {
  background: transparent;
  color: var(--fg);
  border-color: var(--border);
}
.btn-secondary:hover { border-color: var(--fg-muted); }
.btn-ghost { background: transparent; color: var(--fg-muted); }
.btn-ghost:hover { color: var(--fg); }

/* ── Disclaimer strip ─────────────────────────────────────────────── */

.disclaimer-strip {
  background: #1a1300;
  border-bottom: 1px solid #3d2e00;
  color: #fbbf24;
  font-size: 0.85rem;
  text-align: center;
  padding: 8px 16px;
}
.disclaimer-strip strong { color: #fde68a; }

/* ── Hero ─────────────────────────────────────────────────────────── */

.hero {
  padding: 96px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(74, 222, 128, 0.08) 0%, transparent 60%),
    radial-gradient(50% 40% at 50% 50%, rgba(74, 222, 128, 0.04) 0%, transparent 60%);
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--fg-muted);
  margin-bottom: 24px;
  position: relative;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  font-weight: 700;
  position: relative;
}

.hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--fg-muted);
  max-width: 640px;
  margin: 0 auto 36px;
  position: relative;
}

.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

.hero-meta {
  margin-top: 28px;
  font-size: 0.85rem;
  color: var(--fg-dim);
  position: relative;
}

/* ── Sections ─────────────────────────────────────────────────────── */

section { padding: 64px 0; border-top: 1px solid var(--border-subtle); }
section:first-of-type { border-top: 0; }

.section-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
  font-weight: 700;
}

.section-lead {
  color: var(--fg-muted);
  max-width: 680px;
  margin: 0 0 36px;
  font-size: 1.05rem;
}

/* ── Cards ────────────────────────────────────────────────────────── */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: border-color 120ms ease, transform 120ms ease;
}
.card:hover { border-color: #34343e; transform: translateY(-2px); }

.card-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 8px;
  color: #fff;
}
.card-body { color: var(--fg-muted); font-size: 0.94rem; line-height: 1.55; }
.card-tag {
  display: inline-block;
  padding: 2px 8px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.72rem;
  color: var(--fg-muted);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Mode pills ───────────────────────────────────────────────────── */

.modes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.mode {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  background: var(--bg-card);
}
.mode-name {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.mode-name.dry { color: #93c5fd; }
.mode-name.paper { color: #fbbf24; }
.mode-name.live { color: #4ade80; }
.mode-desc { font-size: 0.92rem; color: var(--fg-muted); }

/* ── Two-column callout ──────────────────────────────────────────── */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}
@media (max-width: 720px) {
  .split { grid-template-columns: 1fr; }
}

.callout {
  background: linear-gradient(180deg, rgba(74, 222, 128, 0.06), rgba(74, 222, 128, 0.01));
  border: 1px solid rgba(74, 222, 128, 0.25);
  border-radius: var(--radius);
  padding: 24px;
}
.callout strong { color: #d1fae5; }

/* ── CTA block ───────────────────────────────────────────────────── */

.cta-block {
  text-align: center;
  padding: 80px 24px;
  border-top: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, rgba(74, 222, 128, 0.03), transparent);
}
.cta-block h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 12px;
  font-weight: 700;
}
.cta-block p { color: var(--fg-muted); margin: 0 0 24px; }

/* ── Footer ──────────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 24px;
  color: var(--fg-dim);
  font-size: 0.85rem;
}
.site-footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: var(--fg-muted); }
.footer-links a:hover { color: var(--fg); text-decoration: underline; }

/* ── Legal pages ──────────────────────────────────────────────────── */

.legal-page { padding: 60px 0 80px; }
.legal-page .effective-date {
  color: var(--fg-dim);
  font-size: 0.88rem;
  margin: 4px 0 24px;
}
.legal-page p, .legal-page li { color: #cdcdd2; }
.legal-page h2 { color: #fff; }
.legal-page h3 { color: #fff; }
.legal-page .legal-warning {
  background: #2a1f00;
  border: 1px solid #5c4400;
  color: #fde68a;
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 0 0 24px;
  font-size: 0.92rem;
}

/* ── Utilities ────────────────────────────────────────────────────── */

.text-muted { color: var(--fg-muted); }
.text-mono { font-family: var(--font-mono); }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }

@media (max-width: 600px) {
  .nav { gap: 12px; }
  .nav a { font-size: 0.88rem; }
  .hero { padding: 64px 24px 56px; }
}
