:root {
  color-scheme: light dark;
  --text: #0a0a0a;
  --secondary: #6e6e73;
  --tertiary: #a1a1a6;
  --bg: #fff;
  --surface: #f5f5f7;
  --hairline: #e5e5ea;
  --ball: #ffd60a;
  --frame-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.25);
}
@media (prefers-color-scheme: dark) {
  :root {
    --text: #f5f5f7;
    --secondary: #8e8e93;
    --tertiary: #5a5a5e;
    --bg: #000;
    --surface: #111113;
    --hairline: #2c2c2e;
    --frame-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

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

/* Header and footer, shared by every page */
.top { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 19px; letter-spacing: -0.01em; }
.brand img { width: 30px; height: 30px; border-radius: 50%; }
.nav { display: flex; gap: 24px; font-size: 15px; color: var(--secondary); }
.nav a:hover, .foot a:hover { color: var(--text); }
.foot { border-top: 1px solid var(--hairline); margin-top: 96px; padding: 28px 0 48px; display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; font-size: 14px; color: var(--secondary); }
.foot nav { display: flex; gap: 24px; }

/* Home */
.hero { text-align: center; padding: 72px 0 24px; }
.hero .icon { width: 112px; height: 112px; margin: 0 auto 28px; border-radius: 50%; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.45); }
.hero h1 { font-size: clamp(44px, 8vw, 72px); line-height: 1; letter-spacing: -0.04em; margin: 0; font-weight: 700; }
.hero .lede { font-size: clamp(19px, 2.4vw, 22px); line-height: 1.45; color: var(--secondary); max-width: 34ch; margin: 18px auto 0; }
.badge { display: inline-flex; align-items: center; gap: 10px; margin-top: 32px; padding: 12px 22px; border-radius: 999px; background: var(--text); color: var(--bg); font-size: 15px; font-weight: 600; }
.badge:hover { opacity: 0.85; }
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ball); }

.phones { display: flex; justify-content: center; padding: 64px 0 8px; }
.phones .phone { width: 320px; }
.phone { border-radius: 40px; overflow: hidden; border: 1px solid var(--hairline); box-shadow: var(--frame-shadow); background: var(--bg); }

.section { padding-top: 112px; }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 0.02em; color: var(--secondary); margin: 0 0 10px; }
.section h2 { font-size: clamp(30px, 4.4vw, 40px); line-height: 1.12; letter-spacing: -0.025em; margin: 0; max-width: 20ch; }

.steps { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: step; }
.steps li { counter-increment: step; }
.steps .phone { width: 100%; border-radius: 30px; }
.steps h3 { font-size: 17px; margin: 22px 0 4px; letter-spacing: -0.01em; }
.steps h3::before { content: counter(step); display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 10px; border-radius: 50%; background: var(--text); color: var(--bg); font-size: 12px; font-weight: 700; vertical-align: 2px; }
.steps p { margin: 0; color: var(--secondary); font-size: 15px; line-height: 1.5; }

.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 48px; background: var(--hairline); border: 1px solid var(--hairline); border-radius: 22px; overflow: hidden; }
.points div { background: var(--bg); padding: 28px; }
.points h3 { font-size: 17px; margin: 0 0 6px; letter-spacing: -0.01em; }
.points p { margin: 0; color: var(--secondary); font-size: 15px; line-height: 1.5; }

/* Document pages: support and privacy */
.doc { max-width: 640px; margin: 0 auto; padding-top: 48px; }
.doc h1 { font-size: clamp(34px, 5vw, 44px); line-height: 1.1; letter-spacing: -0.03em; margin: 0 0 6px; }
.doc .meta { color: var(--secondary); font-size: 15px; margin: 0 0 40px; }
.doc h2 { font-size: 20px; letter-spacing: -0.015em; margin: 48px 0 8px; }
.doc p, .doc li { margin: 0 0 12px; }
.doc ul { padding-left: 20px; }
.doc a { text-decoration: underline; text-decoration-color: var(--hairline); text-underline-offset: 3px; }
.toc { display: grid; grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(4, auto); grid-auto-flow: column; gap: 2px 24px; padding: 18px 0; margin: 0 0 8px; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); font-size: 15px; }
.doc .toc a { color: var(--secondary); padding: 4px 0; text-decoration: none; }
.toc a:hover { color: var(--text); }
.doc ol { padding-left: 22px; }
.doc ol li { padding-left: 4px; }
.doc h2 { scroll-margin-top: 24px; }
.doc code { font: 14px ui-monospace, "SF Mono", Menlo, monospace; background: var(--surface); padding: 2px 6px; border-radius: 6px; }
.doc .figure { display: flex; gap: 20px; margin: 20px 0 8px; }
.doc .figure .phone { width: 200px; border-radius: 30px; box-shadow: none; }

@media (max-width: 860px) {
  .steps { grid-template-columns: repeat(2, 1fr); gap: 40px 20px; }
  .points { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .nav { gap: 18px; }
  .phones { padding-top: 48px; }
  .phones .phone { width: 78%; border-radius: 32px; }
  .doc .figure .phone { width: 46%; }
  .toc { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; }
}
