:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --subtle: #64748b;
  --line: #e2e8f0;
  --brand: #4f46e5;
  --brand-soft: #eef2ff;
  --t1: #4f46e5; --t2: #0ea5e9; --t3: #10b981; --t4: #f59e0b;
  --t5: #ef4444; --t6: #ec4899; --t7: #8b5cf6; --t8: #334155;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1120;
    --surface: #111827;
    --text: #f1f5f9;
    --muted: #cbd5e1;
    --subtle: #94a3b8;
    --line: #1f2937;
    --brand: #818cf8;
    --brand-soft: #1e1b4b;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--brand); }
img { max-width: 100%; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }

/* Header / footer */
.site-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 19px; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.site-nav { display: flex; gap: 20px; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }

.site-footer { border-top: 1px solid var(--line); margin-top: 72px; padding: 28px 0 40px; color: var(--subtle); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-footer nav { display: flex; gap: 18px; }
.site-footer a { color: var(--subtle); }

/* Hero */
.hero { padding: 72px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.1; margin: 0 0 18px; letter-spacing: -0.02em; }
.hero p.lede { font-size: 20px; color: var(--muted); margin: 0 0 28px; max-width: 34ch; }
.availability { display: inline-flex; align-items: center; gap: 10px; background: var(--brand-soft); color: var(--brand); border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: 15px; }
.availability::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

/* Phone illustration */
.phone {
  justify-self: center;
  width: 280px; aspect-ratio: 9 / 19;
  border-radius: 44px; padding: 14px;
  background: #0f172a;
  box-shadow: 0 30px 60px -20px rgba(15, 23, 42, 0.45);
}
.screen {
  height: 100%; border-radius: 32px; padding: 52px 20px 20px;
  background: linear-gradient(160deg, #c7d2fe, #fbcfe8 55%, #fde68a);
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 54px; gap: 18px 14px; align-content: start;
}
.tile { border-radius: 14px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 22px; }
.tile.wide { grid-column: span 4; grid-row: span 2; border-radius: 22px; background: rgba(255, 255, 255, 0.75); padding: 12px; display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: 1fr 1fr; place-items: stretch; gap: 10px; }
.tile.wide span { border-radius: 12px; display: grid; place-items: center; font-size: 18px; }
.c1 { background: var(--t1); } .c2 { background: var(--t2); } .c3 { background: var(--t3); } .c4 { background: var(--t4); }
.c5 { background: var(--t5); } .c6 { background: var(--t6); } .c7 { background: var(--t7); } .c8 { background: var(--t8); }

/* Sections */
section { padding: 40px 0; }
h2 { font-size: 30px; line-height: 1.2; margin: 0 0 24px; letter-spacing: -0.01em; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; padding: 0; margin: 0; list-style: none; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; margin-bottom: 14px; }
.steps h3 { margin: 0 0 6px; font-size: 18px; }
.steps p { margin: 0; color: var(--muted); font-size: 16px; }

.platforms { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px 26px; }
.card h3 { margin: 0 0 10px; font-size: 19px; }
.card ul { margin: 0; padding-left: 20px; color: var(--muted); }
.card li + li { margin-top: 6px; }

.privacy-callout { background: var(--brand-soft); border-radius: 18px; padding: 26px 28px; }
.privacy-callout h2 { font-size: 22px; margin-bottom: 8px; }
.privacy-callout p { margin: 0; color: var(--muted); }

/* Document pages */
.doc { padding: 48px 0 0; }
.doc h1 { font-size: 36px; line-height: 1.15; margin: 0 0 6px; }
.doc .updated { color: var(--subtle); margin: 0 0 32px; font-size: 15px; }
.doc h2 { font-size: 22px; margin: 36px 0 10px; }
.doc p, .doc li { color: var(--muted); }
.doc strong { color: var(--text); }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--text); }
.faq details p { margin: 10px 0 0; }

@media (max-width: 820px) {
  .hero { padding-top: 44px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .steps, .platforms { grid-template-columns: 1fr; }
  .site-nav { gap: 14px; }
}
@media (max-width: 420px) {
  .site-nav a.hide-sm { display: none; }
  .phone { width: 240px; }
}
