/* Flap — one stylesheet for four static pages. No build step, no dependencies:
   the app has none either, and a website for a four-page site does not need a
   toolchain to rot. */

:root {
  --brand: #6e49e4;          /* the app icon's background (decision 42) */
  --brand-ink: #6e49e4;      /* brand colour used as text on light ground */
  --bg: #ffffff;
  --bg-soft: #f4f4f7;
  --ink: #17171c;
  --ink-soft: #5f5f6b;
  --line: #e4e4ea;
  --radius: 18px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand-ink: #a78bff;    /* the light accent: 5.9:1 on the dark ground */
    --bg: #000000;
    --bg-soft: #131317;
    --ink: #f2f2f5;
    --ink-soft: #a0a0ad;
    --line: #2a2a32;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
        Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand-ink); }
a:hover { text-decoration: none; }

img { max-width: 100%; height: auto; display: block; }

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

/* ---------- hero ---------- */

.hero {
  background: var(--brand);
  color: #fff;
  text-align: center;
  padding: 72px 24px 80px;
}

.hero img.icon {
  width: 132px; height: 132px;
  margin: 0 auto 28px;
  border-radius: 30px;
}

.hero h1 {
  font-size: clamp(38px, 7vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  font-weight: 800;
}

.hero p {
  font-size: clamp(17px, 2.4vw, 21px);
  max-width: 30em;
  margin: 0 auto 34px;
  color: rgba(255, 255, 255, 0.86);
}

/* The App Store button. White on the brand, matching the onboarding screen the
   visitor is about to see in the screenshots below. */
.cta {
  display: inline-block;
  background: #fff;
  color: var(--brand);
  font-weight: 600;
  font-size: 18px;
  text-decoration: none;
  padding: 15px 34px;
  border-radius: 999px;
}

.cta:hover { opacity: 0.9; }

.cta-note {
  display: block;
  margin-top: 16px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- claims ---------- */

.claims {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, 1fr);
  padding: 64px 0 8px;
}

.claim {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 26px 24px;
}

.claim h2 {
  font-size: 19px;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.claim p { margin: 0; color: var(--ink-soft); font-size: 16px; }

/* ---------- shots ---------- */

.shots {
  display: grid;
  gap: 26px;
  grid-template-columns: repeat(3, 1fr);
  padding: 56px 0;
}

.shots figure { margin: 0; }

.shots img {
  border-radius: 22px;
  border: 1px solid var(--line);
  width: 100%;
}

.shots figcaption {
  margin-top: 14px;
  font-size: 15px;
  color: var(--ink-soft);
  text-align: center;
}

/* ---------- watch ---------- */

.watch {
  display: flex;
  gap: 40px;
  align-items: center;
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 40px;
  margin-bottom: 64px;
}

.watch img { width: 210px; border-radius: 26px; flex: none; }
.watch h2 { font-size: 26px; margin: 0 0 10px; letter-spacing: -0.02em; }
.watch p { margin: 0; color: var(--ink-soft); }

/* ---------- prose pages ---------- */

.page-head {
  background: var(--brand);
  color: #fff;
  padding: 40px 24px;
}

.page-head .wrap { display: flex; align-items: center; gap: 16px; }
.page-head img { width: 46px; height: 46px; border-radius: 11px; }
.page-head a { color: #fff; text-decoration: none; font-weight: 600; font-size: 19px; }

.prose { padding-top: 48px; padding-bottom: 72px; }
.prose h1 { font-size: 34px; letter-spacing: -0.02em; margin: 0 0 6px; }
.prose h2 { font-size: 21px; letter-spacing: -0.01em; margin: 38px 0 10px; }
.prose .updated { color: var(--ink-soft); font-size: 15px; margin: 0 0 32px; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 10px; }

.prose dl { margin: 0; }
.prose dt { font-weight: 600; margin-top: 26px; }
.prose dd { margin: 6px 0 0; color: var(--ink-soft); }

.callout {
  background: var(--bg-soft);
  border-radius: 14px;
  padding: 18px 20px;
  margin: 28px 0;
}

.callout p { margin: 0; }

/* ---------- footer ---------- */

footer {
  border-top: 1px solid var(--line);
  padding: 34px 0 56px;
  color: var(--ink-soft);
  font-size: 15px;
}

footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; }
footer a { color: var(--ink-soft); }
footer .spacer { margin-left: auto; }

@media (max-width: 800px) {
  .claims, .shots { grid-template-columns: 1fr; }
  .watch { flex-direction: column; text-align: center; padding: 32px 24px; }
  footer .spacer { margin-left: 0; }
}
