:root {
  --paper: #f6f4f0;
  --ink: #141414;
  --soft: #66625c;
  --line: #e2ded6;
  --night: #15171b;
  --night-ink: #f4f2ee;
  --night-soft: #a7a49e;
  --accent: #079a15;
  --wide: 1080px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 18px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(44px, 6.4vw, 76px); font-weight: 700; }
h2 { font-size: clamp(32px, 4vw, 46px); font-weight: 700; }
h3 { font-size: 21px; font-weight: 650; letter-spacing: -0.01em; line-height: 1.25; }
p { margin: 0; }

.wrap { max-width: var(--wide); margin: 0 auto; padding-left: 28px; padding-right: 28px; }

/* Header and footer */
header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.mark { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; font-size: 22px; letter-spacing: -0.02em; text-decoration: none; }
.mark img { width: 30px; height: 30px; border-radius: 7px; }
nav a { margin-left: 26px; text-decoration: none; color: var(--soft); }
nav a:hover, nav a[aria-current] { color: var(--ink); }
footer { border-top: 1px solid var(--line); margin-top: 120px; padding: 36px 0 60px; color: var(--soft); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; }
footer p + p { margin-top: 6px; }
footer nav a { margin: 0 22px 0 0; }

/* Home */
.hero { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 64px; align-items: center; padding-top: 48px; padding-bottom: 24px; }
.hero .lead { margin-top: 28px; font-size: 21px; color: var(--soft); max-width: 30em; }
.get { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.store { display: inline-block; padding: 14px 24px; border-radius: 12px; background: var(--ink); color: var(--paper); font-weight: 600; text-decoration: none; }
.store[aria-disabled] { cursor: default; }
.get small { color: var(--soft); font-size: 15px; }
.hero .phone { justify-self: center; width: 100%; max-width: 340px; }

section { padding-top: 120px; }
.intro { margin-top: 18px; color: var(--soft); max-width: 38em; font-size: 20px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 56px; list-style: none; padding: 0; }
.steps li { display: flex; flex-direction: column; gap: 26px; }
.steps .phone { max-width: 290px; }
.steps h3 span { color: var(--accent); margin-right: 8px; font-variant-numeric: tabular-nums; }
.steps p { margin-top: 8px; color: var(--soft); }

.aside { margin-top: 64px; padding: 34px 36px; border: 1px solid var(--line); border-radius: 22px; display: grid; grid-template-columns: 1fr 1.6fr; gap: 12px 48px; }
.aside p { color: var(--soft); }
.aside p strong { color: var(--ink); font-weight: 600; }

.night { margin-top: 120px; padding-top: 104px; padding-bottom: 112px; background: var(--night); color: var(--night-ink); }
.night .intro { color: var(--night-soft); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px 48px; margin: 64px 0 0; }
.facts dt { font-weight: 650; font-size: 20px; }
.facts dd { margin: 8px 0 0; color: var(--night-soft); }
.night .more { margin-top: 56px; }

.columns { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; margin-top: 40px; }
.columns p { color: var(--soft); margin-top: 12px; }

.faq { margin-top: 36px; border-top: 1px solid var(--line); max-width: 46em; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 22px 36px 22px 0; font-weight: 600; font-size: 19px; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font-weight: 400; font-size: 26px; color: var(--soft); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 0 24px; color: var(--soft); max-width: 40em; }
.faq details p + p { margin-top: -10px; }

/* Text pages */
.page { padding-top: 40px; }
.page > * { max-width: 40em; }
.page h1 { font-size: clamp(40px, 5vw, 56px); }
.page .updated { margin-top: 14px; color: var(--soft); }
.page .summary { margin-top: 36px; font-size: 21px; }
.page h2 { font-size: 26px; margin-top: 52px; letter-spacing: -0.015em; }
.page p, .page ul { margin-top: 14px; }
.page ul { padding-left: 1.2em; }
.page li + li { margin-top: 8px; }
.page .faq { margin-top: 20px; }

/* A phone around an app screenshot. Sizes are fractions of the phone's width. */
.phone { container-type: inline-size; width: 100%; }
.phone .body { padding: 0.65cqw; border-radius: 16.3cqw; background: linear-gradient(160deg, #4a4b4f, #232427 40%, #3b3c40); box-shadow: 0 30px 60px -30px rgba(20, 20, 20, 0.45); }
.phone .bezel { padding: 2.05cqw; border-radius: 15.6cqw; background: #000; }
.phone .screen { position: relative; border-radius: 13.6cqw; overflow: hidden; background: #fff; }
.phone img { display: block; width: 100%; height: auto; }
.phone .screen::after { content: ""; position: absolute; top: 2.7cqw; left: 50%; width: 29.5cqw; height: 8.7cqw; transform: translateX(-50%); border-radius: 4.4cqw; background: #000; }

@media (max-width: 860px) {
  body { font-size: 17px; }
  .hero { grid-template-columns: 1fr; gap: 56px; padding-top: 24px; }
  section { padding-top: 96px; }
  .steps, .facts, .columns, .aside { grid-template-columns: 1fr; }
  .steps { gap: 64px; }
  .steps li { align-items: flex-start; }
  .steps .phone { max-width: 300px; }
  nav a { margin-left: 18px; }
}
