:root {
  --bg: #f6f4ee;
  --paper: #ffffff;
  --text: #1f2328;
  --muted: #59636e;
  --border: #e3dfd3;
  --link: #0969da;
  --shadow: 0 24px 60px rgba(31, 35, 40, 0.16), 0 4px 14px rgba(31, 35, 40, 0.08);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1117;
    --paper: #161b22;
    --text: #e6edf3;
    --muted: #9198a1;
    --border: #262c36;
    --link: #4493f8;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 4px 14px rgba(0, 0, 0, 0.35);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

code {
  font: 0.88em ui-monospace, SFMono-Regular, Menlo, monospace;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: color-mix(in srgb, var(--text) 8%, transparent);
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.hl {
  color: #1f2328;
  padding: 0 0.12em;
  border-radius: 0.12em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.hl-yellow {
  background: #fde047;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  color: var(--text);
}

.brand img {
  border-radius: 7px;
}

.nav nav {
  display: flex;
  gap: 22px;
  font-size: 15px;
}

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

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 40px;
  padding-top: 72px;
  padding-bottom: 56px;
}

h1 {
  margin: 0 0 20px;
  font-size: clamp(36px, 5.4vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.lede {
  margin: 0 0 30px;
  max-width: 34em;
  font-size: 19px;
  color: var(--muted);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px 10px 16px;
  color: #fff;
  background: #111;
  border-radius: 12px;
  line-height: 1.1;
  font-size: 19px;
  font-weight: 600;
}

.store:hover {
  text-decoration: none;
  background: #000;
}

.store small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  opacity: 0.8;
}

@media (prefers-color-scheme: dark) {
  .store {
    background: #f6f4ee;
    color: #111;
  }

  .store:hover {
    background: #fff;
  }
}

.price {
  font-size: 14px;
  color: var(--muted);
}

.hero-shots {
  position: relative;
  height: 560px;
}

.phone {
  position: absolute;
  width: 250px;
  height: auto;
  border-radius: 34px;
  box-shadow: var(--shadow);
  border: 6px solid #111;
  background: #111;
}

.phone.back {
  left: 6%;
  top: 30px;
  transform: rotate(-5deg);
}

.phone.front {
  right: 4%;
  top: 0;
  transform: rotate(3deg);
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding-top: 24px;
  padding-bottom: 72px;
}

.features article {
  padding: 22px 22px 20px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.features h2 {
  margin: 12px 0 6px;
  font-size: 18px;
}

.features p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.dot {
  display: block;
  width: 28px;
  height: 10px;
  border-radius: 5px;
  background: var(--c);
}

/* Gallery */
.gallery {
  padding: 64px 0;
  background: var(--paper);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-title {
  margin: 0 0 8px;
  font-size: clamp(24px, 3.2vw, 34px);
  letter-spacing: -0.015em;
}

.section-sub {
  margin: 0 0 32px;
  color: var(--muted);
}

.strip {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 8px 24px 32px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.strip figure {
  flex: 0 0 auto;
  margin: 0;
  scroll-snap-align: center;
  text-align: center;
}

.strip img {
  display: block;
  width: 220px;
  height: auto;
  border-radius: 26px;
  border: 5px solid #111;
  background: #111;
  box-shadow: var(--shadow);
}

.strip figcaption {
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
}

.ipad {
  display: block;
  width: min(620px, 100%);
  height: auto;
  margin: 24px auto 0;
  border-radius: 22px;
  border: 8px solid #111;
  background: #111;
  box-shadow: var(--shadow);
}

/* Compatibility */
.compat {
  padding-top: 64px;
  padding-bottom: 64px;
  max-width: 760px;
  text-align: center;
}

.compat p {
  color: var(--muted);
  font-size: 17px;
}

/* Footer */
.footer {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  padding-bottom: 40px;
  font-size: 14px;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

/* Text pages (privacy, support) */
.page {
  max-width: 720px;
  padding-top: 56px;
  padding-bottom: 72px;
}

.page h1 {
  font-size: clamp(32px, 4.4vw, 44px);
}

.page h2 {
  margin-top: 36px;
  font-size: 20px;
}

.page p,
.page li {
  font-size: 17px;
}

.page .updated {
  color: var(--muted);
  font-size: 15px;
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 44px;
  }

  .hero-shots {
    height: 460px;
  }

  .phone {
    width: 200px;
  }

  .phone.back {
    left: calc(50% - 210px);
  }

  .phone.front {
    right: calc(50% - 210px);
  }

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

  .strip {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .features {
    grid-template-columns: 1fr;
  }

  .nav nav {
    gap: 14px;
    font-size: 14px;
  }

  .nav nav a[href='#features'] {
    display: none;
  }

  .phone {
    width: 170px;
  }

  .phone.back {
    left: calc(50% - 172px);
  }

  .phone.front {
    right: calc(50% - 172px);
  }

  .hero-shots {
    height: 400px;
  }

  .strip img {
    width: 190px;
  }
}
