:root {
  --bg: #fff;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --tint: 0.09;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1c1c1e;
    --ink: #f5f5f7;
    --muted: #98989d;
    --tint: 0.16;
  }
}

:root[data-theme="dark"] {
  --bg: #1c1c1e;
  --ink: #f5f5f7;
  --muted: #98989d;
  --tint: 0.16;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang TC", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 560px;
  margin: 0 auto;
  padding: 64px 20px 72px;
}

/* Entrance: title first, then each row 50ms apart */
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

h1, .lede, .apps li, footer {
  animation: rise 0.6s var(--ease) both;
  animation-delay: calc(80ms + var(--i, 0) * 50ms);
}

.lede { --i: 1; }
footer { --i: 9; }

h1 {
  margin: 0;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.lede {
  margin: 8px 0 0;
  color: var(--muted);
  text-wrap: pretty;
}

.apps {
  list-style: none;
  margin: 44px 0 0;
  padding: 0;
}

/* Each row carries its app's own colour (--c, set inline as r,g,b) */
.apps a {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 -12px;
  padding: 12px;
  border-radius: 16px;
  color: inherit;
  text-decoration: none;
  transition: background-color 0.25s var(--ease);
}

.apps a:hover,
.apps a:focus-visible {
  background: rgba(var(--c), var(--tint));
  outline: none;
}

.apps img {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 22.37%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.apps a:hover img {
  transform: translateY(-2px) scale(1.04);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06), 0 10px 24px -8px rgba(var(--c), 0.55);
}

/* iOS home-screen press */
.apps a:active img {
  transform: scale(0.94);
  transition-duration: 0.1s;
}

.text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.text b { font-weight: 600; }

.text span {
  color: var(--muted);
  font-size: 15px;
}

.store {
  flex: none;
  color: var(--muted);
  font-size: 13px;
  transition: color 0.25s var(--ease);
}

.apps a:hover .store,
.apps a:focus-visible .store { color: rgb(var(--c)); }

footer {
  margin-top: 56px;
  color: var(--muted);
  font-size: 14px;
  display: flex;
  gap: 20px;
}

footer a {
  color: inherit;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: color 0.2s var(--ease), text-decoration-color 0.2s var(--ease);
}

footer a:hover { color: var(--ink); text-decoration-color: currentColor; }

@media (min-width: 640px) {
  main { padding-top: 112px; }
  h1 { font-size: 44px; }
  .apps { margin-top: 56px; }
  .apps a { gap: 20px; padding: 14px 16px; margin: 0 -16px; }
  .apps img { width: 64px; height: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  h1, .lede, .apps li, footer { animation: none; }
  .apps a, .apps img, .store, footer a { transition: none; }
  .apps a:hover img { transform: none; }
}

/* == generated by build.py == */
.hero{display:flex;flex-direction:column;gap:14px;margin:0 0 40px}
.hero .r{display:flex;gap:18px}
.hero .r + .r{padding-left:37px}
.hero a{display:block;width:56px;height:56px;border-radius:22.37%;box-shadow:0 0 0 1px rgba(0,0,0,.06),0 10px 20px -12px rgba(var(--c),.55);animation:float var(--d) ease-in-out var(--dl) infinite;transition:transform .3s var(--ease),box-shadow .3s var(--ease)}
.hero a:hover{animation-play-state:paused;transform:translateY(-4px) scale(1.06)!important;box-shadow:0 0 0 1px rgba(0,0,0,.06),0 16px 28px -12px rgba(var(--c),.7)}
.hero img{display:block;width:100%;height:100%;border-radius:inherit}
@keyframes float{0%,100%{transform:translateY(0) rotate(var(--r))}50%{transform:translateY(-5px) rotate(calc(var(--r) * -0.5))}}
.text small{display:none}
@media (min-width:640px){.hero{gap:18px;margin-bottom:48px}.hero .r{gap:22px}.hero .r + .r{padding-left:43px}.hero a{width:64px;height:64px}}
@media (prefers-reduced-motion:reduce){.hero a{animation:none}}

.apps a{align-items:center}
.text small{display:none}
.apps a .store{display:none}
.shot{flex:none;width:60px;height:130px;object-fit:cover;object-position:top;border-radius:10px;box-shadow:0 0 0 1px rgba(0,0,0,.08),0 6px 16px -8px rgba(0,0,0,.35);transition:transform .35s var(--ease),box-shadow .35s var(--ease)}
.shot.wide{width:112px;height:70px;border-radius:8px}
.apps a:hover .shot{transform:translateY(-4px) rotate(-1.5deg) scale(1.04);box-shadow:0 0 0 1px rgba(0,0,0,.08),0 18px 30px -12px rgba(var(--c),.6)}
.apps a .text{gap:2px}
.apps a .text small{display:block;font-size:13px;color:rgb(var(--c));margin-top:6px}
@media (min-width:640px){.shot{width:72px;height:156px}.shot.wide{width:136px;height:85px}}
