/* Shared styling for the kelbo.app marketing and policy pages.
   Palette intentionally matches the app's green theme (mobile/lib/theme.ts). */

:root {
  --bg: #ffffff;
  --surface: #f4f4f5;
  --surface-alt: #eef9f1;
  --primary: #22c55e;
  --primary-text: #ffffff;
  --primary-soft: #dcfce7;
  --primary-soft-text: #166534;
  --text: #18181b;
  --text-secondary: #52525b;
  --text-muted: #71717a;
  --border: #e4e4e7;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121212;
    --surface: #1e1e1e;
    --surface-alt: #152018;
    --primary: #4ade80;
    --primary-text: #0b1f12;
    --primary-soft: #14532d;
    --primary-soft-text: #bbf7d0;
    --text: #f4f4f5;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --border: #2e2e2e;
  }
}

* { box-sizing: border-box; }

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

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

header.site {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--primary);
  color: var(--primary-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 22px;
}

h1 { font-size: 2rem; margin: 0; letter-spacing: -0.02em; }
h2 { font-size: 1.25rem; margin: 40px 0 8px; letter-spacing: -0.01em; }
h3 { font-size: 1rem; margin: 24px 0 4px; }

.tagline { color: var(--text-secondary); font-size: 1.1rem; margin: 4px 0 32px; }
.muted { color: var(--text-muted); font-size: 0.9rem; }
p { margin: 0 0 12px; }
a { color: var(--primary-soft-text); }
@media (prefers-color-scheme: dark) { a { color: var(--primary); } }

ul { padding-left: 20px; margin: 0 0 12px; }
li { margin-bottom: 6px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  margin: 24px 0;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}

.store-links { flex: 1 1 240px; display: flex; flex-direction: column; gap: 12px; }

.btn {
  display: inline-block;
  background: var(--primary);
  color: var(--primary-text);
  text-decoration: none;
  font-weight: 700;
  padding: 14px 22px;
  border-radius: 10px;
  text-align: center;
}
.btn:hover { opacity: 0.9; }

.btn-disabled {
  background: var(--surface-alt);
  color: var(--text-muted);
  border: 1px dashed var(--border);
  cursor: default;
  font-weight: 600;
}

/* QR stays light-on-dark-modules in both themes, scanners need the contrast. */
.qr {
  background: #ffffff;
  padding: 12px;
  border-radius: 12px;
  width: 168px;
  height: 168px;
  flex: 0 0 auto;
}
.qr svg { width: 100%; height: 100%; display: block; }

.badge {
  display: inline-block;
  background: var(--primary-soft);
  color: var(--primary-soft-text);
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 0.8rem;
  font-weight: 700;
}

table { width: 100%; border-collapse: collapse; margin: 12px 0 20px; font-size: 0.95rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--text-secondary); font-weight: 600; }
.table-scroll { overflow-x: auto; }

footer.site {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
footer.site a { color: var(--text-secondary); }

.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 40px;
  margin-bottom: 16px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}
