/* Bubble — the same visual language as the app: low-chroma slate, one indigo
   accent, weight and symbol rather than colour doing the work. */

:root {
  --bg: #fbfaf9;
  --surface: #ffffff;
  --surface-2: #f2f3f8;
  --border: #e3e5ee;
  --text: #0f1729;
  --text-muted: #555f75;
  --brand: #4f5cb4;
  --brand-soft: #eef0fb;
  --burst: #d74343;
  --radius: 16px;
  --shadow: 0 1px 3px rgba(15, 23, 41, 0.06), 0 12px 32px rgba(15, 23, 41, 0.05);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 64rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0e16;
    --surface: #161a29;
    --surface-2: #121628;
    --border: rgba(255, 255, 255, 0.09);
    --text: #f8f9fc;
    --text-muted: #a3aec0;
    --brand: #93a1e5;
    --brand-soft: rgba(147, 161, 229, 0.12);
    --burst: #f87171;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.5), 0 12px 32px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  font-size: 17px;
}

a { color: var(--brand); }
img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

/* ── header ─────────────────────────────────────────────────────────── */

.site-header { padding: 1.5rem 0; }
.nav { display: flex; align-items: center; gap: 0.75rem; }
.nav img { width: 34px; height: 34px; border-radius: 9px; }
.nav strong { font-size: 1.05rem; letter-spacing: -0.01em; }

/* ── hero ───────────────────────────────────────────────────────────── */

.hero { padding: 3.5rem 0 4rem; }
.hero-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.15fr 0.85fr; } }

.hero h1 {
  font-size: clamp(2.1rem, 5.5vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin-bottom: 1.1rem;
}
.hero .lede { font-size: 1.15rem; color: var(--text-muted); max-width: 34rem; }
.hero .lede + .lede { margin-top: 0.9rem; }

.cta { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 1.4rem;
  border-radius: 12px; font-weight: 600; font-size: 1rem;
  text-decoration: none; border: 1px solid transparent;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-ghost { border-color: var(--border); color: var(--text); }
.note { font-size: 0.9rem; color: var(--text-muted); }

.hero-art { display: grid; place-items: center; }
.hero-art img { width: min(240px, 60vw); border-radius: 22.37%; box-shadow: var(--shadow); }

/* ── lock screen mock ───────────────────────────────────────────────── */

.phone {
  width: min(300px, 82vw);
  aspect-ratio: 9 / 16.5;
  border-radius: 38px;
  padding: 2.2rem 1rem 1rem;
  background: linear-gradient(165deg, #1d2440, #0a0c18 70%);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  display: flex; flex-direction: column; align-items: center; gap: 1.1rem;
}
.phone .spacer { flex: 1; }
.phone .indicator {
  width: 36%; height: 5px; border-radius: 3px;
  background: rgba(255, 255, 255, 0.45); margin-bottom: 0.2rem;
}
.phone .time { font-size: 3.6rem; font-weight: 300; letter-spacing: -0.03em; line-height: 1; }
.phone .date { font-size: 0.85rem; opacity: 0.65; margin-top: -0.7rem; }
.lockwidget {
  width: 100%; border-radius: 14px; padding: 0.7rem 0.85rem;
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(8px);
  display: grid; gap: 0.15rem;
}
.lockwidget .who { font-size: 0.82rem; font-weight: 600; }
.lockwidget .what { font-size: 0.78rem; opacity: 0.8; }
.lockwidget .left {
  font-size: 0.78rem; font-weight: 600; opacity: 0.95;
  font-variant-numeric: tabular-nums;
}

/* ── sections ───────────────────────────────────────────────────────── */

section { padding: 3.5rem 0; }
section.alt { background: var(--surface-2); }
.section-title {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 0.6rem;
}
.section-lede { color: var(--text-muted); max-width: 40rem; margin-bottom: 2rem; }

.cards { display: grid; gap: 1rem; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.4rem;
}
.card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; letter-spacing: -0.01em; }
.card p { color: var(--text-muted); font-size: 0.96rem; }
.step {
  display: inline-grid; place-items: center;
  width: 28px; height: 28px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand);
  font-size: 0.85rem; font-weight: 700; margin-bottom: 0.8rem;
}

.rows { display: grid; gap: 0.75rem; }
.row {
  display: grid; gap: 0.2rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.1rem 1.3rem;
}
.row h3 { font-size: 1rem; letter-spacing: -0.01em; }
.row p { color: var(--text-muted); font-size: 0.95rem; }

.burst {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--burst); color: #fff;
  border-radius: 12px; padding: 0.7rem 1.2rem;
  font-weight: 600; margin-top: 0.4rem;
}

/* ── footer ─────────────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 3rem;
  color: var(--text-muted); font-size: 0.9rem;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-bottom: 1rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* ── long-form (privacy) ────────────────────────────────────────────── */

.prose { max-width: 42rem; padding: 2.5rem 0 4rem; }
.prose h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); letter-spacing: -0.02em; margin-bottom: 0.4rem; }
.prose .updated { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 2rem; }
.prose h2 { font-size: 1.2rem; margin: 2rem 0 0.5rem; letter-spacing: -0.01em; }
.prose p, .prose li { color: var(--text-muted); }
.prose p { margin-bottom: 0.9rem; }
.prose ul { margin: 0 0 0.9rem 1.2rem; }
.prose li { margin-bottom: 0.35rem; }
.prose strong { color: var(--text); font-weight: 600; }

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