:root {
  --bg: #f2f3f7;
  --surface: #ffffff;
  --text: #14161b;
  --muted: #646a78;
  --line: #dfe2e9;
  --accent: #2f6fed;
  --accent-ink: #ffffff;
  --glow: rgba(47, 111, 237, 0.20);
  --shadow: 0 -1px 0 rgba(255, 255, 255, 0.6), 0 30px 80px -20px rgba(24, 40, 90, 0.35), 0 8px 24px rgba(24, 40, 90, 0.12);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", system-ui, Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1013;
    --surface: #18191d;
    --text: #f2f3f5;
    --muted: #9a9fab;
    --line: #2b2d34;
    --accent: #5b8dff;
    --accent-ink: #0a0d14;
    --glow: rgba(91, 141, 255, 0.22);
    --shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 30px 80px -20px rgba(0, 0, 0, 0.8);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---- one screen: header, headline, button, and a screenshot that fills the rest ---- */
.page {
  height: 100vh;
  height: 100dvh;
  min-height: 600px;
  display: grid;
  grid-template-rows: auto auto minmax(300px, 1fr);
  background: radial-gradient(70% 55% at 50% 100%, var(--glow), transparent 70%);
  overflow: hidden;
}

.top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px max(20px, env(safe-area-inset-right)) 0 max(20px, env(safe-area-inset-left));
  width: 100%; max-width: 1200px; margin: 0 auto;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 650; font-size: 18px; letter-spacing: -0.01em; }
.brand img { border-radius: 8px; }
.link {
  appearance: none; border: 0; background: none; cursor: pointer;
  color: var(--muted); font: inherit; font-size: 15px; padding: 8px 4px;
}
.link:hover { color: var(--text); }

.hero { text-align: center; padding: clamp(28px, 6vh, 64px) 20px clamp(28px, 5vh, 48px); }
h1 {
  margin: 0 auto;
  max-width: 14em;
  font-size: clamp(38px, 6.6vw, 78px);
  line-height: 1.03;
  letter-spacing: -0.04em;
  font-weight: 700;
  text-wrap: balance;
}
.lede {
  margin: 18px auto 0;
  max-width: 40em;
  color: var(--muted);
  font-size: clamp(16px, 1.9vw, 20px);
  line-height: 1.45;
  text-wrap: balance;
}

.cta { margin-top: clamp(22px, 4vh, 34px); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.cta-meta { margin: 0; color: var(--muted); font-size: 14px; }

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 17px;
  padding: 14px 30px;
  border-radius: 999px;
  transition: transform .15s ease, filter .15s ease;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn:active { transform: none; filter: brightness(0.95); }
.btn.small { font-size: 15px; padding: 9px 20px; white-space: nowrap; }
.btn[aria-disabled="true"] { background: var(--line); color: var(--muted); pointer-events: none; }

:is(.btn, .link, .close, .brand, .sheet-foot a):focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* ---- the screenshot: the one memorable thing ---- */
.shot { margin: 0; padding: 0 clamp(12px, 3vw, 32px); display: flex; justify-content: center; align-items: flex-start; min-height: 0; overflow: hidden; }
.frame {
  width: min(1120px, 100%);
  border-radius: 16px 16px 0 0;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.bar {
  display: flex; align-items: center; gap: 7px;
  height: 38px; padding: 0 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted); font-size: 13px;
}
.bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line); display: block; }
.bar span { margin-left: 10px; }
.frame img { display: block; width: 100%; height: auto; }

@keyframes rise {
  from { opacity: 0; transform: translateY(36px); }
  to { opacity: 1; transform: none; }
}

/* ---- the "all downloads" sheet ---- */
dialog {
  width: min(560px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  color: var(--text);
  padding: 8px 24px 20px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.35);
}
dialog::backdrop { background: rgba(10, 12, 18, 0.45); backdrop-filter: blur(6px); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 0 6px; }
.sheet-head h2 { margin: 0; font-size: 22px; letter-spacing: -0.02em; }
.close { appearance: none; border: 0; background: var(--bg); color: var(--muted); width: 32px; height: 32px; border-radius: 50%; font-size: 20px; line-height: 1; cursor: pointer; }
.close:hover { color: var(--text); }

.rows { list-style: none; margin: 0; padding: 0; }
.row { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; padding: 18px 0; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; }
.row-main { min-width: 0; }
.row h3 { margin: 0 0 2px; font-size: 18px; letter-spacing: -0.01em; }
.row .meta { margin: 0; color: var(--muted); font-size: 14px; }
.row .help { margin: 8px 0 0; color: var(--muted); font-size: 14px; max-width: 42ch; }
.row .help strong { color: var(--text); font-weight: 600; }
.row.is-match h3::after { content: "For this device"; margin-left: 10px; font-size: 12px; font-weight: 600; color: var(--accent); vertical-align: 2px; }
.sheet-foot { margin: 6px 0 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.sheet-foot a { color: var(--muted); }

/* ---- phones: a phone-shaped screenshot ---- */
@media (max-width: 700px) {
  .frame { width: min(360px, 100%); border-radius: 30px 30px 0 0; border: 1px solid var(--line); border-bottom: 0; }
  .bar { display: none; }
  .hero { padding-top: 24px; }
  .row { flex-direction: column; gap: 12px; }
  .row .help { max-width: none; }
}

@media (max-height: 560px) and (min-width: 701px) {
  .hero { padding-top: 16px; padding-bottom: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .frame { animation: none; }
  .btn { transition: none; }
}
