/* Public product site — home, privacy, terms. Shares the dashboard's design
 * language (warm cream paper, one action blue, hairline borders, pill
 * geometry) but stands alone: no session, no app.js, one stylesheet.
 *
 * Theme: light by default, dark via prefers-color-scheme, and [data-theme]
 * wins over both so the dashboard's saved preference carries across. */

:root {
  color-scheme: light;
  --bg: #fbfaf6;
  --surface: #ffffff;
  --surface-muted: #f3f3ef;
  --border: #e8e6e1;
  --border-strong: #d5d2ca;
  --text: #1a1a1a;
  --text-2: #5c5c58;
  --text-3: #8b8b86;
  --on-action: #ffffff;
  --action: #3a7ca5;
  --action-surface: #e8f1f7;
  --accent: #c56a26;
  --accent-surface: #fdf2e9;
  --success: #2f8f63;
  --success-surface: #e6f5ee;
  --flag-black: #1a1a1a;
  --flag-red: #d31f25;
  --flag-gold: #f5c518;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 12px 32px rgba(26, 26, 26, 0.08);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #121412;
    --surface: #1b1e1c;
    --surface-muted: #262a27;
    --border: #343a36;
    --border-strong: #4a524c;
    --text: #f3f4f1;
    --text-2: #c2c6bf;
    --text-3: #979d95;
    --on-action: #0c1a22;
    --action: #7cb8dd;
    --action-surface: #1a3341;
    --accent: #f2a262;
    --accent-surface: #3a2a19;
    --success: #67d0a0;
    --success-surface: #143026;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.45);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #121412;
  --surface: #1b1e1c;
  --surface-muted: #262a27;
  --border: #343a36;
  --border-strong: #4a524c;
  --text: #f3f4f1;
  --text-2: #c2c6bf;
  --text-3: #979d95;
  --on-action: #0c1a22;
  --action: #7cb8dd;
  --action-surface: #1a3341;
  --accent: #f2a262;
  --accent-surface: #3a2a19;
  --success: #67d0a0;
  --success-surface: #143026;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* The header is sticky, so anchored sections need clearance. */
  overflow-wrap: break-word;
}

a { color: var(--action); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -0.02em; font-weight: 700; }
h1 { font-size: clamp(30px, 6vw, 50px); letter-spacing: -0.03em; }
h2 { font-size: clamp(22px, 3.4vw, 30px); }
h3 { font-size: 17px; letter-spacing: -0.01em; }
p { margin: 0; }

.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--surface); color: var(--text); padding: 10px 16px;
  border: 1px solid var(--border-strong); border-radius: 999px;
}
.skip:focus { left: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* ── Header ─────────────────────────────────────────────────────────
 * No hamburger anywhere: every link — Privacy and Terms included — is
 * visible at every width, wrapping onto a second row on phones. App
 * reviewers must reach the policies without opening anything. */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.6) blur(10px);
  border-bottom: 1px solid var(--border);
}
@supports not (backdrop-filter: blur(10px)) { .site-header { background: var(--bg); } }

.header-inner {
  display: flex; align-items: center; gap: 16px 20px; flex-wrap: wrap;
  padding-top: 12px; padding-bottom: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); font-size: 16px; }
.brand:hover { text-decoration: none; }
.flagbars { display: flex; align-items: flex-end; gap: 3px; height: 20px; flex: none; }
.flagbars span { width: 5px; border-radius: 2px; display: block; }
.flagbars span:nth-child(1) { height: 9px; background: var(--flag-black); }
.flagbars span:nth-child(2) { height: 14px; background: var(--flag-red); }
.flagbars span:nth-child(3) { height: 20px; background: var(--flag-gold); }
:root[data-theme="dark"] .flagbars span:nth-child(1) { background: #f3f4f1; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .flagbars span:nth-child(1) { background: #f3f4f1; }
}

.nav { display: flex; align-items: center; gap: 4px 18px; flex-wrap: wrap; margin-left: auto; }
.nav a { color: var(--text-2); font-size: 14.5px; font-weight: 500; white-space: nowrap; }
.nav a:hover { color: var(--text); text-decoration: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; border: 1px solid transparent;
  font-size: 15px; font-weight: 600; line-height: 1; white-space: nowrap; cursor: pointer;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--action); color: var(--on-action); }
.btn-primary:hover { filter: brightness(1.07); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface-muted); }
.btn-sm { padding: 9px 16px; font-size: 14px; }

/* ── Sections ───────────────────────────────────────────────────── */
section { scroll-margin-top: 96px; }
.section { padding: 72px 0; border-top: 1px solid var(--border); }
.section:first-of-type { border-top: 0; }
.section-head { max-width: 620px; margin-bottom: 36px; display: grid; gap: 12px; }
.section-head p { color: var(--text-2); font-size: 16.5px; }

.eyebrow {
  /* justify-self too: as a grid item it would otherwise stretch to the full
     column and stop reading as a pill. */
  display: inline-flex; align-items: center; gap: 8px; align-self: start; justify-self: start;
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-surface);
  padding: 6px 12px; border-radius: 999px;
}

/* ── Hero ───────────────────────────────────────────────────────── */
.hero { padding: 64px 0 72px; }
.hero-grid { display: grid; gap: 48px; align-items: center; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 940px) { .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 56px; } }
.hero-copy { display: grid; gap: 22px; justify-items: start; }
.hero-copy .lede { font-size: clamp(17px, 2.2vw, 19.5px); color: var(--text-2); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { font-size: 14px; color: var(--text-3); }
.hero-art { width: 100%; }
.hero-art svg { width: 100%; height: auto; display: block; filter: drop-shadow(var(--shadow-lg)); border-radius: 18px; }

/* ── Cards ──────────────────────────────────────────────────────── */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 24px; box-shadow: var(--shadow); display: grid; gap: 10px; align-content: start;
}
.card p { color: var(--text-2); font-size: 15px; }
.card-icon {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: var(--action-surface); color: var(--action); margin-bottom: 4px;
}
.card-icon svg { width: 20px; height: 20px; display: block; }

/* ── Steps ──────────────────────────────────────────────────────── */
.steps { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); counter-reset: step; }
.step { display: grid; gap: 8px; align-content: start; padding-top: 20px; border-top: 2px solid var(--border-strong); }
.step-n {
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--action);
}
.step p { color: var(--text-2); font-size: 15px; }

/* ── Platform table ─────────────────────────────────────────────── */
.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 15px; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--border); vertical-align: top; }
thead th { font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); font-weight: 700; }
tbody tr:last-child td { border-bottom: 0; }
td strong { font-weight: 650; }
.muted { color: var(--text-2); }

/* ── Callout ────────────────────────────────────────────────────── */
.callout {
  background: var(--surface-muted); border: 1px solid var(--border);
  border-radius: 16px; padding: 26px; display: grid; gap: 12px;
}
.callout ul { margin: 0; padding-left: 20px; color: var(--text-2); display: grid; gap: 8px; font-size: 15px; }

/* ── Contact ────────────────────────────────────────────────────── */
.contact-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.contact-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 24px; display: grid; gap: 6px; align-content: start; }
.contact-label { font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); font-weight: 700; }
.contact-card a { font-size: 16.5px; font-weight: 600; word-break: break-word; }
.contact-card p { color: var(--text-2); font-size: 15px; }

/* ── Footer ─────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--border); background: var(--surface-muted); padding: 40px 0; margin-top: 8px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; justify-content: space-between; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.footer-links a { color: var(--text-2); font-size: 14.5px; font-weight: 500; }
.footer-links a:hover { color: var(--text); }
.footer-note { color: var(--text-3); font-size: 13.5px; }

/* ── Legal pages ────────────────────────────────────────────────── */
.legal { padding: 56px 0 72px; }
.legal-head { display: grid; gap: 12px; max-width: 46em; margin-bottom: 12px; }
.legal-head .updated { color: var(--text-3); font-size: 14px; }
.legal-body { max-width: 46em; display: grid; gap: 30px; margin-top: 34px; }
.legal-body section { display: grid; gap: 12px; }
.legal-body h2 { font-size: 20px; }
.legal-body p, .legal-body li { color: var(--text-2); font-size: 15.5px; }
.legal-body ul { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.legal-body strong { color: var(--text); font-weight: 650; }
.toc { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px 22px; }
.toc ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 15px; }

@media (max-width: 620px) {
  .section { padding: 52px 0; }
  .hero { padding: 40px 0 52px; }
  .card, .callout, .contact-card { padding: 20px; }
  .nav { margin-left: 0; width: 100%; gap: 4px 16px; order: 3; }
  .header-inner { gap: 10px 14px; }
  .header-inner > .brand { order: 1; }
  .header-inner > .btn { order: 2; margin-left: auto; }
}
