/* Badger — shared styles for the marketing site and legal pages.
   Brand palette is lifted from the app (src/theme/index.js). */

:root {
  --orange: #ff6b00;
  --orange-dark: #cc5500;
  --ink: #0a0a0a;
  --ink-soft: #1a1a1a;
  --surface: #2a2a2a;
  --paper: #ffffff;
  --text-on-dark: #ffffff;
  --muted-on-dark: #a6a6a6;
  --text: #1a1a1a;
  --muted: #555555;
  --border: #dddddd;
  --maxw: 720px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--orange-dark);
}

img {
  max-width: 100%;
}

/* ── Landing ─────────────────────────────────────────────────────────────── */

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px 32px;
  color: var(--text-on-dark);
  background:
    radial-gradient(
      ellipse 80% 60% at 50% 0%,
      rgba(255, 107, 0, 0.18),
      transparent 70%
    ),
    var(--ink);
  position: relative;
  overflow: hidden;
}

/* Soft brand glow behind the mark. */
.hero::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  top: -160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 107, 0, 0.12), transparent 65%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  width: 100%;
}

.mark {
  width: 132px;
  height: auto;
  margin-bottom: 28px;
  filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.55));
}

.wordmark {
  width: 208px;
  height: auto;
  margin-bottom: 28px;
}

.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  border: 1px solid rgba(255, 107, 0, 0.45);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 26px;
}

h1 {
  font-size: clamp(30px, 6.2vw, 46px);
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}

h1 .accent {
  color: var(--orange);
}

.lede {
  font-size: clamp(16px, 2.4vw, 19px);
  color: var(--muted-on-dark);
  margin: 0 auto 36px;
  max-width: 30em;
}

.points {
  list-style: none;
  margin: 0 auto 36px;
  padding: 0;
  display: grid;
  gap: 12px;
  text-align: left;
  max-width: 26em;
}

.points li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: #d8d8d8;
  font-size: 15px;
}

.points svg {
  flex: 0 0 auto;
  margin-top: 3px;
  color: var(--orange);
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 999px;
  transition: background 0.15s ease, transform 0.15s ease;
}

.cta:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
}

.cta-note {
  margin: 14px 0 0;
  font-size: 13px;
  color: #7a7a7a;
}

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

.site-footer {
  background: var(--ink);
  color: #7a7a7a;
  font-size: 13px;
  text-align: center;
  padding: 28px 24px 40px;
  border-top: 1px solid #232323;
}

.site-footer a {
  color: #a6a6a6;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--orange);
  text-decoration: underline;
}

.footer-links {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.footer-links .sep {
  opacity: 0.4;
}

.legalese {
  margin: 0;
  line-height: 1.7;
}

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

.doc-header {
  background: var(--ink);
  padding: 20px 24px;
}

.doc-header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.doc-header img {
  width: 34px;
  height: 34px;
}

.doc-header a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.doc {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 44px 24px 72px;
}

.doc h1 {
  color: var(--text);
  font-size: clamp(26px, 5vw, 34px);
  margin: 0 0 24px;
}

.doc h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 44px 0 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.doc p,
.doc li {
  color: var(--text);
  font-size: 16px;
}

.doc strong {
  font-weight: 700;
}

.doc hr {
  display: none; /* section rules are drawn by the h2 border instead */
}

.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 15px;
  display: block;
  overflow-x: auto;
}

.doc th,
.doc td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.doc th {
  background: #f7f7f7;
  font-weight: 700;
}

.doc ul {
  padding-left: 22px;
}

.doc li {
  margin-bottom: 8px;
}

.doc .doc-meta {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 28px;
}

.doc-nav {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 15px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
