/* BaggedIt marketing + legal site.
   Palette mirrors apps/baggedit/constants/Colors.ts so the web presence and the
   app read as one product. Tokens are defined light-first on :root, then
   overridden for dark — same structure as the app's theme. */

:root {
  --bg: #eff5fa;
  --surface: #ffffff;
  --surface-alt: #f7fafd;
  --text: #111827;
  --text-muted: #5b7a96;
  --primary: #3a7fa0;
  --primary-weak: #d4eafa;
  --border: #dbe6ef;
  --shadow: 0 1px 2px rgba(17, 24, 39, 0.04), 0 8px 24px rgba(17, 24, 39, 0.06);
  --measure: 34rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131b27;
    --surface: #1c2535;
    --surface-alt: #18202e;
    --text: #e8edf5;
    --text-muted: #8fa3bc;
    --primary: #5ba3c4;
    --primary-weak: #1a3448;
    --border: #2a3648;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ---- layout ---- */

.wrap {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

main { padding-bottom: 5rem; }

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

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 650;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}

.brand svg { display: block; color: var(--primary); }

.site-nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.94rem;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--primary);
}

/* ---- hero ---- */

.hero {
  padding: 4.5rem 0 3.5rem;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(60rem 20rem at 50% -8rem, var(--primary-weak), transparent 70%),
    var(--surface-alt);
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2.1rem, 6vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.hero p {
  margin: 0 auto;
  max-width: var(--measure);
  font-size: 1.15rem;
  color: var(--text-muted);
}

.hero .wrap { text-align: center; }

.ridge {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 2.5rem;
  color: var(--primary);
}

/* ---- content ---- */

.page-title {
  padding: 3.5rem 0 0.5rem;
}

.page-title h1 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.9rem, 5vw, 2.4rem);
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.effective {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.prose { padding-top: 2rem; }

.prose h2 {
  margin: 2.75rem 0 0.75rem;
  font-size: 1.28rem;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.prose h3 {
  margin: 1.75rem 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 650;
}

.prose p, .prose li { max-width: var(--measure); }

.prose ul { padding-left: 1.15rem; }

.prose li { margin-bottom: 0.45rem; }

.prose a { color: var(--primary); }

.prose strong { font-weight: 650; }

/* Placeholder text the owner must replace before this goes live. Deliberately
   conspicuous so an unreviewed deploy is obvious rather than silently wrong. */
.todo {
  background: #ffd166;
  color: #4a3200;
  padding: 0.05em 0.4em;
  border-radius: 3px;
  font-weight: 650;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.4rem;
  margin: 1.5rem 0;
  box-shadow: var(--shadow);
}

.card :first-child { margin-top: 0; }
.card :last-child { margin-bottom: 0; }

/* ---- table ---- */

.table-scroll {
  overflow-x: auto;
  margin: 1.25rem 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 32rem;
  font-size: 0.94rem;
}

th, td {
  text-align: left;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th {
  font-weight: 650;
  color: var(--text);
  background: var(--surface-alt);
}

tbody tr:last-child td { border-bottom: none; }

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

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 2rem 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

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

.site-footer nav { display: flex; gap: 1.1rem; flex-wrap: wrap; }
