*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #07080B;
  --bg2: #0C0E13;
  --surface: #101318;
  --line: #1B222E;
  --text: #EDF1F8;
  --muted: #9AA3B4;
  --quiet: #6B7588;
  --accent: #C2CEEA;
}
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
img { max-width: 100%; display: block; }

/* nav */
nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 14px 20px;
  background: rgba(7,8,11,0.88);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}
.logo { color: var(--text); text-decoration: none; font-size: 13px; letter-spacing: 3px; text-transform: uppercase; }
.nav-links { display: flex; gap: 18px; flex-wrap: wrap; justify-content: flex-end; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 14px; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }

/* layout */
main { max-width: 720px; margin: 0 auto; padding: 0 20px; }
section { padding: 56px 0; border-bottom: 1px solid var(--line); }
section:last-child { border-bottom: 0; }
h1, h2, h3 { font-family: 'Fraunces', Georgia, serif; font-weight: 300; line-height: 1.2; }
h1 { font-size: clamp(38px, 9vw, 64px); margin-bottom: 18px; }
h2 { font-size: clamp(28px, 6vw, 38px); margin-bottom: 20px; }
h3 { font-size: 21px; margin: 28px 0 8px; color: var(--text); }
p { color: var(--muted); margin-bottom: 14px; }
p strong, li strong { color: var(--text); font-weight: 400; }
.brand { font-size: 13px; letter-spacing: 4px; text-transform: uppercase; color: var(--quiet); margin-bottom: 18px; }
.lead { font-size: 19px; color: var(--text); }

/* hero */
.hero { padding-top: 64px; }

/* Apple's App Store badge: Apple's own artwork, unchanged. 48px high (Apple's
   least onscreen is 40px), with at least a quarter of its height, 12px, clear
   on every side. One badge on the page, as Apple's rules ask. */
.badge { display: inline-block; margin: 18px 0 12px; line-height: 0; }
.badge img { height: 48px; width: auto; }

/* screenshot places */
.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 28px 0 8px; }
.shot {
  aspect-ratio: 9 / 19.5; border: 1px dashed var(--quiet); border-radius: 22px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: var(--quiet); font-size: 13px; padding: 12px; background: var(--bg2);
}
@media (min-width: 640px) { .shots { grid-template-columns: repeat(4, 1fr); } }

/* steps */
ol.steps { list-style: none; counter-reset: step; }
ol.steps li { counter-increment: step; position: relative; padding-left: 46px; margin-bottom: 26px; color: var(--muted); }
ol.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--accent);
}
ol.steps li strong { display: block; margin-bottom: 4px; font-size: 18px; }

/* plans */
.plans { display: grid; gap: 14px; margin-bottom: 20px; }
.plan { border: 1px solid var(--line); border-radius: 16px; padding: 20px; background: var(--surface); }
.plan h3 { margin-top: 0; }
.plan p:last-child { margin-bottom: 0; }
@media (min-width: 640px) { .plans { grid-template-columns: 1fr 1fr; } }

/* questions */
.faq h3 { margin-top: 36px; }
.faq h3:first-of-type { margin-top: 0; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 28px 20px 40px; text-align: center; color: var(--quiet); font-size: 14px; }
footer a { color: var(--muted); text-decoration: none; margin: 0 10px; }
footer a:hover { color: var(--text); }
footer p { color: var(--quiet); margin: 0 0 10px; }
footer p.credit { max-width: 560px; margin: 16px auto 0; font-size: 12px; line-height: 1.5; }
.updated { font-size: 14px; color: var(--quiet); margin-bottom: 22px; }

/* the app's screens: a sideways row on a phone, wrapping on a wide screen */
.gallery {
  display: flex; gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  margin: 0 -20px; padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.gallery picture { flex: 0 0 auto; scroll-snap-align: start; scroll-margin-left: 20px; }
.gallery picture:first-child { margin-left: 20px; }
.gallery picture:last-child { margin-right: 20px; }
.gallery img {
  width: min(62vw, 240px); height: auto; border-radius: 22px;
  border: 1px solid var(--line); background: var(--bg2);
}
@media (min-width: 860px) {
  .gallery { flex-wrap: wrap; justify-content: center; overflow-x: visible; margin: 0 calc(50% - 50vw + 20px); }
  .gallery img { width: 200px; }
  .gallery picture:first-child, .gallery picture:last-child { margin: 0; }
}
