:root {
  --bg: #f6f5f2;
  --card: #ffffff;
  --text: #1d1d1f;
  --muted: #5f5f66;
  --accent: #a84a1a; /* 5.3:1 on the background, passes WCAG AA for text */
  --focus: #1d5fd1;
  --rule: #e4e2dd;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141416;
    --card: #1e1e21;
    --text: #f2f2f4;
    --muted: #a3a3ab;
    --accent: #f08a52;
    --focus: #8ab4ff;
    --rule: #2e2e33;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
}
/* Page frame */
.site-header, main, .site-footer { max-width: 720px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
body.wide .site-header, body.wide main, body.wide .site-footer { max-width: 1000px; }
.site-header { padding-top: 48px; padding-bottom: 32px; }
main { padding-bottom: 16px; }
main:focus { outline: none; }
.brand { display: inline-flex; align-items: center; gap: 16px; color: inherit; text-decoration: none; border-radius: 12px; }
.brand img { width: 64px; height: 64px; border-radius: 15px; }
.brand-text { display: flex; flex-direction: column; }
.brand .name { font-size: 22px; font-weight: 700; line-height: 1.2; }
.brand .by { color: var(--muted); font-size: 15px; }
h1 { font-size: 34px; line-height: 1.15; margin: 0 0 8px; }
h2 { font-size: 21px; margin: 36px 0 8px; }
p, li { color: var(--text); }
.muted { color: var(--muted); }
a { color: var(--accent); }
ul { padding-left: 22px; }
li { margin: 6px 0; }
.card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 20px 22px;
  margin: 20px 0;
}
.card h2, .card h3 { margin-top: 0; }
.card h3 { font-size: 19px; }
.site-footer { margin-top: 48px; padding-bottom: 48px; color: var(--muted); font-size: 14px; }
.site-footer nav { border-top: 1px solid var(--rule); padding-top: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.site-footer li { margin: 0; }
/* At least 24px tall for touch and pointer users (WCAG 2.5.8). */
.site-footer nav a { display: inline-block; padding: 10px 6px; font-size: 16px; }
.site-footer p { margin: 0; }

/* Accessibility */
.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 10;
  background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 10px;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }
a:focus-visible, [tabindex]:focus-visible, button:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  a.feature.link:hover { transform: none; }
}

/* Landing page */
main.wide { max-width: 1000px; }
.hero { max-width: 680px; }
.hero h1 { font-size: clamp(34px, 6vw, 52px); letter-spacing: -0.02em; }
.lede { font-size: 19px; color: var(--muted); margin: 12px 0 24px; }
.small { font-size: 14px; }
.store {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--text); color: var(--bg);
  padding: 10px 20px 10px 16px; border-radius: 12px; text-decoration: none;
}
.store svg { width: 28px; height: 28px; }
.store span { display: flex; flex-direction: column; font-size: 20px; font-weight: 600; line-height: 1.1; }
.store small { font-size: 11px; font-weight: 500; }
.shots {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin: 48px 0;
}
.shots figure { margin: 0; text-align: center; }
.shots img {
  width: 100%; height: auto; border-radius: 28px;
  border: 1px solid var(--rule); box-shadow: 0 10px 30px rgba(0,0,0,.08);
}
.shots figcaption { color: var(--muted); font-size: 15px; margin-top: 10px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.feature { background: var(--card); border: 1px solid var(--rule); border-radius: 16px; padding: 20px 22px; }
.feature .emoji { font-size: 30px; line-height: 1; }
.feature h2, .feature h3 { font-size: 18px; margin: 10px 0 4px; }
.feature p { margin: 0; color: var(--muted); font-size: 16px; }
.how { margin-top: 32px; }
.how ol { padding-left: 22px; margin: 0; }
@media (max-width: 640px) {
  .site-header { padding-top: 32px; }
  .shots {
    grid-template-columns: repeat(3, 72%); overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 32px -20px; padding: 0 20px 8px;
  }
  .shots figure { scroll-snap-align: center; }
}

/* Feature pages */
.crumb { margin: -16px 0 8px; font-size: 15px; }
.crumb a { display: inline-block; padding: 4px 0; }
.detail {
  display: grid; grid-template-columns: 1fr 280px; gap: 40px; align-items: center;
  padding: 40px 0; border-top: 1px solid var(--rule);
}
.detail:nth-of-type(odd) .phone { order: -1; }
.detail:nth-of-type(odd) { grid-template-columns: 280px 1fr; }
.detail.no-shot, .detail.no-shot:nth-of-type(odd) { grid-template-columns: 1fr; padding: 28px 0; }
.detail h2 { margin-top: 0; font-size: 24px; }
.detail p { color: var(--muted); }
.detail .detail-text { max-width: 560px; }
.phone {
  width: 100%; height: auto; border-radius: 28px;
  border: 1px solid var(--rule); box-shadow: 0 10px 30px rgba(0,0,0,.08);
}
.cta { margin: 32px 0 8px; }
.more-title { margin-top: 48px; }
a.feature.link { color: inherit; text-decoration: none; display: block; transition: border-color .15s, transform .15s; }
a.feature.link:hover { border-color: var(--accent); transform: translateY(-2px); }
.feature .go { display: inline-block; margin-top: 10px; color: var(--accent); font-size: 15px; font-weight: 600; }
.everything { columns: 2 280px; column-gap: 32px; padding-left: 22px; margin: 0; }
.everything li { break-inside: avoid; color: var(--muted); }
.everything strong { color: var(--text); }
@media (max-width: 720px) {
  .detail, .detail:nth-of-type(odd) { grid-template-columns: 1fr; gap: 20px; }
  .detail .phone, .detail:nth-of-type(odd) .phone { order: 1; max-width: 300px; margin: 0 auto; }
}
