:root {
  --surface: #f9f9fe;
  --surface-low: #f1f2f8;
  --surface-high: #e6e8ee;
  --on-surface: #1c1b1f;
  --on-surface-variant: #5c5f66;
  --outline: #c6c8d1;
  --primary: #3a5488;
  --on-primary: #ffffff;
  --secondary-container: #dde3f1;
  --on-secondary-container: #1f2a44;
  --phone: #101114;
  --radius: 20px;
  --max: 1080px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --surface: #131316;
    --surface-low: #1c1c20;
    --surface-high: #26272c;
    --on-surface: #e6e1e5;
    --on-surface-variant: #b3b6c0;
    --outline: #46474f;
    --primary: #aec4ff;
    --on-primary: #0f2a5e;
    --secondary-container: #2c3548;
    --on-secondary-container: #dde3f1;
    --phone: #000000;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Roboto, "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--on-surface);
  background: var(--surface);
  line-height: 1.5;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0 0 12px; line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: clamp(30px, 4.5vw, 46px); font-weight: 700; }
h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 600; }
h3 { font-size: 18px; font-weight: 600; }
p { margin: 0 0 12px; }
.lead { font-size: 18px; color: var(--on-surface-variant); max-width: 34ch; }
.note { font-size: 13px; color: var(--on-surface-variant); max-width: 46ch; }
.muted { color: var(--on-surface-variant); }
.eyebrow {
  display: inline-block; margin-bottom: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--primary);
}

.top {
  max-width: var(--max); margin: 0 auto; padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--on-surface); font-size: 17px; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 9px; }
.top nav { display: flex; align-items: center; gap: 20px; }
.top nav a { color: var(--on-surface-variant); font-weight: 500; }
.top nav a.button { color: var(--on-primary); }

main { max-width: var(--max); margin: 0 auto; padding: 0 24px 48px; }
section { margin: 40px 0; }
.narrow { max-width: 72ch; }

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: 24px;
  background: var(--primary); color: var(--on-primary); font-weight: 600; white-space: nowrap;
}
.button:hover { text-decoration: none; filter: brightness(1.08); }
.button-small { min-height: 40px; padding: 0 18px; }
.button-tonal { background: var(--secondary-container); color: var(--on-secondary-container); }
.button-disabled { opacity: 0.55; cursor: default; pointer-events: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 16px; }

.hero {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: end;
  padding: 40px 40px 0; border-radius: var(--radius); background: var(--surface-low);
  overflow: hidden;
}
.hero-text { padding-bottom: 40px; }
.phone {
  margin: 0; justify-self: center; align-self: end;
  width: 300px; height: 440px; padding: 10px 10px 0; border-radius: 40px 40px 0 0;
  background: var(--phone); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18); overflow: hidden;
}
.phone img { display: block; width: 100%; height: auto; border-radius: 30px 30px 0 0; }
.phone picture { display: block; }

.rows { display: grid; gap: 20px; }
.row {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; align-items: end;
  padding: 0 0 0 40px; border-radius: var(--radius); background: var(--surface-low); overflow: hidden;
}
.row-reverse { grid-template-columns: 1.2fr 1fr; padding: 0 40px 0 0; }
.row-reverse .row-text { order: 2; }
.row-text { padding: 40px 0; align-self: center; }
.row-text p { color: var(--on-surface-variant); max-width: 40ch; }
.shots { display: flex; gap: 20px; align-items: end; justify-content: center; padding-top: 32px; }
.shot {
  margin: 0; width: 220px; height: 320px;
  padding: 8px 8px 0; border-radius: 30px 30px 0 0; background: var(--phone); overflow: hidden;
}
/* The status bar of a full-screen capture carries nothing: start just above the content. */
.shot img { display: block; width: 100%; height: auto; margin-top: -8%; border-radius: 22px 22px 0 0; }
.shot picture { display: block; }
.row .homescreen { margin: 32px 0 32px; }

.section-head { max-width: 60ch; margin-bottom: 20px; }
.section-head p { color: var(--on-surface-variant); }
.homescreen {
  position: relative; height: 380px; border-radius: var(--radius); overflow: hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(58, 84, 136, 0.25), transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(58, 84, 136, 0.18), transparent 50%),
    var(--surface-high);
}
.homescreen .w { position: absolute; display: block; }
.homescreen .w img { display: block; width: 100%; border-radius: 18px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12); }
.w-single { width: 300px; left: 6%; top: 32px; }
.w-list { width: 300px; left: 6%; top: 132px; }
.w-qr { width: 130px; right: 8%; top: 52px; }

.card { padding: 28px 32px; border-radius: var(--radius); background: var(--surface-low); }
.card ul { margin: 0 0 12px; padding-left: 20px; color: var(--on-surface-variant); }
.card li { margin-bottom: 6px; }
.card-download { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.card-download p { color: var(--on-surface-variant); margin: 0; max-width: 52ch; }
.card-download .actions { margin: 0; }

details { padding: 14px 20px; border-radius: 16px; background: var(--surface-low); margin-top: 8px; }
summary { cursor: pointer; font-weight: 600; }
details p, details ul { color: var(--on-surface-variant); margin: 8px 0 0; }
.changelog { margin-top: 12px; }

.doc h2 { margin-top: 32px; }
.doc ul { padding-left: 20px; }
.doc table { border-collapse: collapse; width: 100%; margin: 12px 0; font-size: 15px; }
.doc th, .doc td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--outline); vertical-align: top; }
.doc th { color: var(--on-surface-variant); font-weight: 600; }

footer {
  max-width: var(--max); margin: 0 auto; padding: 24px;
  display: flex; gap: 20px; flex-wrap: wrap; color: var(--on-surface-variant); font-size: 14px;
  border-top: 1px solid var(--outline);
}

@media (max-width: 760px) {
  .top nav a:not(.button) { display: none; }
  .hero { grid-template-columns: 1fr; padding: 24px 24px 0; }
  .hero-text { padding-bottom: 24px; }
  .row, .row-reverse { grid-template-columns: 1fr; padding: 0 24px; }
  .row-reverse .row-text { order: 0; }
  .row-text { padding: 24px 0 0; }
  .shots { padding-top: 16px; }
  .shot { width: 45%; height: 240px; }
  .row .homescreen { margin: 16px -24px 0; border-radius: 0; height: 520px; }
  .w-single, .w-list { width: min(300px, 84%); left: 8%; }
  .w-list { top: 132px; }
  .w-qr { right: auto; left: 8%; top: 380px; width: 120px; }
}
