:root {
  --bg: #fbf8f4;
  --bg-tint: #f3eee7;
  --surface: #ffffff;
  --ink: #1d1a1f;
  --ink-soft: #57505a;
  --line: #e6dfd6;
  --accent: #e0153f;
  --accent-ink: #ffffff;
  --accent-soft: #fde6ea;
  --shadow: 0 1px 2px rgb(40 20 30 / 6%), 0 18px 48px -12px rgb(40 20 30 / 22%);
  --radius: 20px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Fraunces', Georgia, serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121114;
    --bg-tint: #1a181d;
    --surface: #222026;
    --ink: #f3eff4;
    --ink-soft: #b3abb6;
    --line: #322e37;
    --accent: #ff4d6d;
    --accent-ink: #1a0008;
    --accent-soft: #3a1720;
    --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 18px 48px -12px rgb(0 0 0 / 70%);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

p a,
dd a,
.note a {
  color: var(--accent);
  text-underline-offset: 3px;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
}

.wrap {
  width: min(1160px, 100% - 40px);
  margin: 0 auto;
}

.wrap.narrow {
  width: min(760px, 100% - 40px);
}

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 4px;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 999px;
  transition: background-color 160ms ease, color 160ms ease;
}

.nav-links a:hover {
  background: var(--bg-tint);
  color: var(--ink);
}

.nav-links .gh {
  color: var(--ink);
  border: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero {
  padding: 72px 0 56px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
  align-items: center;
}

h1 {
  font-family: var(--serif);
  font-weight: 650;
  font-size: clamp(40px, 6vw, 68px);
  letter-spacing: -0.02em;
  line-height: 1.02;
}

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

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

.cta.center {
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn.primary {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: transparent;
}

.btn.wide {
  width: 100%;
}

.fine {
  margin: 18px 0 0;
  font-size: 14px;
  color: var(--ink-soft);
}

.hero-art {
  position: relative;
  padding: 0 0 60px 0;
}

.browser {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.browser-bar {
  display: flex;
  gap: 7px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.browser-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--line);
}

.phone {
  background: #0b0b0c;
  border-radius: 34px;
  padding: 9px;
  box-shadow: var(--shadow);
}

.phone img {
  border-radius: 26px;
  width: 100%;
  height: auto;
}

.hero-phone {
  position: absolute;
  width: 34%;
  right: -12px;
  bottom: 0;
  transform: rotate(3deg);
}

.hero .browser {
  width: 88%;
  transform: rotate(-1.5deg);
}

.pillars {
  padding: 24px 0 72px;
}

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

.pillar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.pillar-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 18px;
}

.pillar h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.pillar p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
}

.section {
  padding: 96px 0;
}

.section.tint {
  background: var(--bg-tint);
}

.section-title {
  font-family: var(--serif);
  font-weight: 650;
  font-size: clamp(32px, 4.4vw, 48px);
  letter-spacing: -0.015em;
  max-width: 18em;
}

.section-lede {
  margin: 18px 0 0;
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 40em;
}

.story {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
  align-items: center;
  margin-top: 88px;
}

.story.flip {
  grid-template-columns: 1.2fr 0.8fr;
}

.story.flip .story-copy {
  order: 2;
}

.step {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  margin-bottom: 16px;
}

.story h3 {
  font-family: var(--serif);
  font-weight: 650;
  font-size: 30px;
  margin-bottom: 12px;
}

.story p {
  margin: 0;
  color: var(--ink-soft);
}

.story-art.phones {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: 560px;
  justify-self: center;
}

.story-art.phones .phone:nth-child(2) {
  transform: translateY(40px);
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 44px;
}

.fact {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.fact h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
}

.fact p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
}

.install-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 56px;
  margin-top: 44px;
  align-items: start;
}

.install-steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 30px;
}

.install-steps li {
  counter-increment: step;
  position: relative;
  padding-left: 56px;
}

.install-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -4px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

.install-steps h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 6px;
}

.install-steps p {
  margin: 0;
  color: var(--ink-soft);
}

.install-steps .note {
  margin-top: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--bg-tint);
  font-size: 15px;
}

.download-card {
  position: sticky;
  top: 88px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow);
}

.download-qr {
  width: 200px;
  height: 200px;
  padding: 10px;
  border-radius: 14px;
  /* QR codes need a light quiet zone in both colour schemes. */
  background: #ffffff;
}

.download-hint {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
}

.download-meta {
  width: 100%;
  margin: 4px 0 0;
  font-size: 14px;
}

.download-meta div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}

.download-meta dt {
  color: var(--ink-soft);
}

.download-meta dd {
  margin: 0;
  text-align: right;
}

code {
  font-size: 13px;
}

.guide-shot {
  display: none;
}

.honest {
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 18px;
}

.honest li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  color: var(--ink-soft);
}

.honest strong {
  display: block;
  color: var(--ink);
  margin-bottom: 4px;
}

.closing {
  padding: 110px 0;
  text-align: center;
}

.closing-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.closing h2 {
  font-family: var(--serif);
  font-weight: 650;
  font-size: clamp(32px, 4.4vw, 48px);
  margin-top: 8px;
}

.closing p {
  margin: 0 0 12px;
  color: var(--ink-soft);
  font-size: 19px;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 48px;
  font-size: 14px;
  color: var(--ink-soft);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer p {
  margin: 0;
}

.disclaimer {
  max-width: 34em;
}

@media (max-width: 900px) {
  .hero {
    padding-top: 44px;
  }
  .hero-grid,
  .story,
  .story.flip,
  .install-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .story {
    margin-top: 64px;
  }
  .story.flip .story-copy {
    order: 0;
  }
  .pillar-grid,
  .facts {
    grid-template-columns: 1fr;
  }
  .download-card {
    position: static;
  }
  .section {
    padding: 72px 0;
  }
}

@media (max-width: 640px) {
  .nav-links a:not(.gh) {
    display: none;
  }
  .hero-phone {
    width: 40%;
    right: 0;
  }
  .hero .browser {
    width: 92%;
  }
  .story-art.phones {
    gap: 16px;
  }
  .story-art.phones .phone {
    border-radius: 24px;
    padding: 6px;
  }
  .story-art.phones .phone img {
    border-radius: 19px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn,
  .nav-links a {
    transition: none;
  }
}

.gallery {
  padding: 0 0 96px;
}

.gallery-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.gallery figure {
  margin: 0;
}

.gallery figcaption {
  margin-top: 14px;
  text-align: center;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
}

@media (max-width: 900px) {
  .gallery-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 16px;
  }
}
