:root {
  color-scheme: light;
  --bg: #f7f9fd;
  --ink: #111827;
  --muted: #5f6b7d;
  --soft: #e5ebf7;
  --line: #d8e0ee;
  --panel: #ffffff;
  --blue: #2f6bff;
  --blue-dark: #1747c8;
  --dark: #101827;
  --code: #172033;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.page {
  min-height: 100vh;
}

.shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
}

.brand-lockup {
  align-items: center;
  display: inline-flex;
  gap: 12px;
  font-weight: 800;
  text-decoration: none;
}

.brand-lockup img {
  border-radius: 12px;
  height: 36px;
  width: 36px;
}

.nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.nav a {
  text-decoration: none;
}

.nav a:hover {
  color: var(--ink);
}

.hero {
  display: grid;
  gap: 42px;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  padding: 58px 0 74px;
}

.hero-copy {
  align-self: center;
}

.hero h1 {
  font-size: clamp(44px, 6vw, 78px);
  letter-spacing: 0;
  line-height: 0.95;
  margin: 0 0 24px;
  max-width: 720px;
}

.lead {
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.45;
  margin: 0 0 30px;
  max-width: 610px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-weight: 800;
  min-height: 48px;
  padding: 0 20px;
  text-decoration: none;
}

.button.primary {
  background: var(--blue);
  color: #fff;
}

.button.primary:hover {
  background: var(--blue-dark);
}

.button.secondary {
  background: var(--dark);
  color: #fff;
}

.button.ghost {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
}

.hero-media {
  align-self: center;
}

.hero-media img,
.media-frame img {
  display: block;
  height: auto;
  width: 100%;
}

.hero-media img {
  filter: drop-shadow(0 30px 44px rgba(24, 39, 75, 0.16));
}

.section {
  padding: 64px 0;
}

.section.alt {
  background: #eef3ff;
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

.section-grid {
  align-items: center;
  display: grid;
  gap: 46px;
  grid-template-columns: minmax(0, 0.86fr) minmax(360px, 1.14fr);
}

h2 {
  font-size: clamp(32px, 4vw, 50px);
  letter-spacing: 0;
  line-height: 1.02;
  margin: 0 0 18px;
}

h3 {
  font-size: 20px;
  line-height: 1.2;
  margin: 0 0 8px;
}

p {
  margin: 0;
}

.section p {
  color: var(--muted);
  font-size: 18px;
  max-width: 620px;
}

.cards {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
}

.badge-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.badge-link:hover {
  opacity: 0.85;
}

.badge-link img {
  height: 48px;
  width: auto;
  display: block;
}

.iphone-demo {
  margin-top: 28px;
  text-align: center;
}

.iphone-demo img {
  width: min(320px, 80%);
  height: auto;
  border-radius: 18px;
  box-shadow: 0 24px 48px -28px rgba(15, 23, 42, 0.45);
}

.iphone-gallery {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 32px;
}

.iphone-gallery figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.iphone-gallery img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
}

.iphone-gallery figcaption {
  color: var(--muted);
  font-size: 15px;
  text-align: center;
}

@media (max-width: 720px) {
  .iphone-gallery {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 70%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 16px;
    padding: 8px 16px 24px;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    width: 100vw;
    gap: 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .iphone-gallery::-webkit-scrollbar {
    display: none;
  }

  .iphone-gallery figure {
    scroll-snap-align: center;
  }
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}

.card p {
  font-size: 15px;
}

.steps {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.step {
  align-items: flex-start;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  grid-template-columns: 36px minmax(0, 1fr);
  padding: 18px;
}

.step-number {
  align-items: center;
  background: var(--blue);
  border-radius: 50%;
  color: #fff;
  display: flex;
  font-weight: 900;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.step p {
  font-size: 16px;
}

.code {
  background: var(--code);
  border-radius: 8px;
  color: #dbe7ff;
  font: 15px/1.7 ui-monospace, SFMono-Regular, Menlo, monospace;
  margin-top: 18px;
  overflow-x: auto;
  padding: 18px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.media-frame {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
}

.footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  padding: 30px 0 42px;
}

.footer a {
  color: var(--muted);
  font-weight: 650;
  text-decoration: none;
}

@media (max-width: 860px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .section-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 34px;
  }

  .cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .shell {
    width: min(100% - 28px, 1120px);
  }

  .button {
    justify-content: center;
    width: 100%;
  }
}
