/* RagdollRunner landing page. No build: this file is served as is. */
:root {
  color-scheme: light dark;
  --hero-from: #0a5296;
  --hero-via: #0d68b8;
  --hero-to: #1679c9;
  --hero-ink: #ffffff;
  --hero-muted: rgba(255, 255, 255, 0.9);
  --hero-hover: rgba(255, 255, 255, 0.16);
  --accent: #0b63b5;
  --accent-soft: rgba(11, 99, 181, 0.12);
  --bg: #f6f6fa;
  --surface: #ffffff;
  --ink: #15151f;
  --muted: #55556a;
  --line: rgba(21, 21, 31, 0.09);
  --shadow: 0 1px 2px rgba(16, 16, 32, 0.06), 0 12px 32px rgba(16, 16, 32, 0.08);
  --bezel: #0b0b10;
  --radius: 22px;
  --max: 1080px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #6cb8ff;
    --accent-soft: rgba(108, 184, 255, 0.14);
    --bg: #0d0d13;
    --surface: #17171f;
    --ink: #f3f3f7;
    --muted: #a6a6b9;
    --line: rgba(255, 255, 255, 0.1);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
/* Headings balance their lines, and paragraphs and list items don't end on one word alone (a widow); browsers without
   text-wrap simply wrap as before. */
h1, h2, h3 { text-wrap: balance; }
p, li, figcaption { text-wrap: pretty; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.hero :focus-visible { outline-color: var(--hero-ink); }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: 24px; padding-right: 24px; }

.skip-link { position: absolute; left: -9999px; top: 0; }
.skip-link:focus {
  left: 16px; top: 12px; z-index: 10;
  background: var(--surface); color: var(--ink);
  padding: 8px 14px; border-radius: 10px; box-shadow: var(--shadow);
}

/* Header and hero */
.hero {
  background: linear-gradient(135deg, var(--hero-from), var(--hero-via) 55%, var(--hero-to));
  color: var(--hero-ink);
  overflow: hidden;
}
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--hero-ink); text-decoration: none; font-weight: 700; font-size: 17px; }
.brand img { width: 32px; height: 32px; border-radius: 22.5%; }
.topnav { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.topnav a { display: block; color: var(--hero-ink); text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 14px; border-radius: 999px; }
.topnav a:hover, .topnav a[aria-current="page"] { background: var(--hero-hover); }

.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; padding-top: 24px; padding-bottom: 80px; }
.app-icon { width: 112px; height: 112px; border-radius: 22.5%; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22); }
.hero h1 { font-size: clamp(42px, 6vw, 64px); line-height: 1.04; letter-spacing: -0.02em; margin: 22px 0 10px; }
.tagline { font-size: clamp(21px, 2.4vw, 26px); font-weight: 650; margin: 0 0 14px; text-wrap: balance; }
.lead { font-size: 19px; color: var(--hero-muted); max-width: 34em; margin: 0 0 28px; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.cta p { margin: 0; }
.store-badge img { width: auto; height: 50px; }
.cta-meta { font-size: 15px; color: var(--hero-muted); }
.hero-shot { justify-self: center; }

/* Screenshots, in an iPhone-like frame drawn by the shadow */
.device {
  width: min(300px, 72vw);
  border-radius: 12.5% / 5.75%;
  box-shadow: 0 0 0 8px var(--bezel), 0 0 0 9px rgba(255, 255, 255, 0.22), 0 30px 60px rgba(0, 0, 0, 0.3);
  background: var(--bezel);
}

/* Sections */
.section { padding: 72px 0; }
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section h2 { font-size: clamp(28px, 3.4vw, 38px); line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 12px; }
.section-intro { color: var(--muted); font-size: 19px; max-width: 40em; margin: 0 0 36px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; margin: 0; padding: 0; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.feature-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--accent-soft); font-size: 26px; margin-bottom: 14px; }
.feature h3 { font-size: 19px; margin: 0 0 6px; }
.feature p { color: var(--muted); font-size: 16px; margin: 0; }

.gallery { display: flex; gap: 36px; overflow-x: auto; scroll-snap-type: x mandatory; list-style: none; margin: 0 -24px; padding: 16px 24px 24px; }
.gallery li { flex: 0 0 auto; scroll-snap-align: center; }
.gallery li:first-child { margin-left: auto; }
.gallery li:last-child { margin-right: auto; }
.gallery figure { margin: 0; text-align: center; }
.gallery .device { width: 248px; margin: 10px auto 18px; box-shadow: 0 0 0 7px var(--bezel), var(--shadow); }
.gallery figcaption { font-weight: 600; max-width: 260px; margin: 0 auto; }

.facts { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; margin: 0; padding: 0; }
.facts li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 10px 18px; font-weight: 600; font-size: 15px; }
.more { margin: 28px 0 0; font-weight: 600; }

/* Privacy, Support and 404 */
.hero--page { padding-bottom: 44px; }
.page-title h1 { font-size: clamp(36px, 5vw, 50px); line-height: 1.08; letter-spacing: -0.015em; margin: 20px 0 6px; }
.page-title p { margin: 0; color: var(--hero-muted); font-size: 18px; }
.article { max-width: 760px; margin: 0 auto; padding: 44px 24px 16px; }
.article h2 { font-size: 22px; line-height: 1.25; margin: 36px 0 10px; }
.article ul, .article ol { padding-left: 1.2em; }
.article li + li { margin-top: 6px; }
/* A comfortable measure: at most 66 characters a line (the policy ran to 80 and more on a wide screen). */
.article p, .article li { max-width: 66ch; }
.updated { color: var(--muted); font-size: 15px; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 24px; margin: 4px 0 8px; }
.contact-card p { margin: 0; }
.contact-card a { font-weight: 700; }

/* Footer */
.site-footer { color: var(--muted); font-size: 14px; padding: 40px 0 56px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 0 0 14px; padding: 0; font-size: 15px; font-weight: 600; }
.footer-links a { color: var(--ink); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.site-footer p { max-width: 66ch; margin: 0; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; text-align: center; padding-top: 8px; padding-bottom: 64px; }
  .app-icon { margin: 0 auto; }
  .lead { margin-left: auto; margin-right: auto; }
  .cta { justify-content: center; }
  .features { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding-left: 18px; padding-right: 18px; }
  .topnav a { padding: 8px 10px; font-size: 14px; }
  .lead { font-size: 17px; }
  .section { padding: 56px 0; }
  .section-intro { font-size: 17px; }
  .features { grid-template-columns: 1fr; }
  .gallery { margin: 0 -18px; padding-left: 18px; padding-right: 18px; gap: 24px; }
  .gallery .device { width: 216px; }
}

/* Phones narrower than about 460px have no room for the name beside the links (it ran into "Support"): the
   icon stands for it there, right above the page's big heading, and the link keeps the name for screen
   readers. */
@media (max-width: 460px) {
  .brand span { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
