:root {
  color-scheme: dark;
  --background: #101215;
  --ink: #edf2f5;
  --muted: #a2adb6;
  --rule: #353c43;
  --accent: #a9dbf4;
  --column-gap: clamp(0.75rem, 2vw, 1.75rem);
  --section-gap: clamp(6rem, 12vw, 11rem);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--ink); font: 1rem/1.55 var(--font); }
h1, h2, h3, p, figure { margin: 0; }
img { display: block; }
a { color: inherit; text-underline-offset: 0.22em; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
[id] { scroll-margin-top: 2rem; }

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--column-gap);
  width: min(90%, 85rem);
  margin-inline: auto;
}

.site-header {
  min-height: 4.75rem;
  align-items: center;
  border-bottom: 1px solid var(--rule);
}

.brand {
  display: inline-flex;
  grid-column: 1 / 6;
  align-items: center;
  justify-self: start;
  gap: 0.625rem;
  font-weight: 720;
  letter-spacing: -0.035em;
  text-decoration: none;
  white-space: nowrap;
}

.brand img { border-radius: 25%; }
.site-header nav {
  grid-column: 6 / -1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.75rem);
}

.site-header nav a, .footer-links a {
  color: var(--muted);
  font-size: 0.875rem;
  text-decoration: none;
  white-space: nowrap;
}

.site-header nav a:hover, .site-header nav a[aria-current="page"], .footer-links a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: clamp(37rem, 56vw, 51rem);
}

.hero-title {
  position: absolute;
  z-index: 1;
  top: 23%;
  left: 3.75%;
  right: 4.75%;
  display: flex;
  justify-content: space-between;
  white-space: nowrap;
  font-size: clamp(6rem, 18.1vw, 23rem);
  font-weight: 820;
  line-height: 0.8;
  letter-spacing: -0.069em;
}

.hero-title span:last-child { transform: scaleX(0.93); transform-origin: right center; }

.hero-product {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: clamp(12.5rem, 21vw, 20rem);
  transform: translate(-50%, -49%) rotate(-9deg);
}

.phone {
  position: relative;
  isolation: isolate;
  background: linear-gradient(140deg, #8e9ba5, #383f47 31%, #191d22 69%, #505966);
  border: 1px solid #747d87;
  border-radius: 15.4% / 7.1%;
  padding: 2.5%;
  box-shadow: inset 0 0 0 2px #181c21, 0 0.8rem 2.5rem #06070975;
}

.phone img {
  width: 100%;
  height: auto;
  border-radius: 13.2% / 6.1%;
  background: #0f1012;
}

.phone--hero {
  overflow: hidden;
  padding: 2.9%;
  box-shadow: inset 0 0 0 2px #181c21, 0.8rem 2.4rem 3.6rem #050608bc, 0.2rem 0.65rem 1.1rem #050608d4;
}

@media (prefers-reduced-motion: no-preference) {
  .phone--hero { animation: settle 1.8s cubic-bezier(0.2, 0.7, 0.3, 1) both; }
  .phone--hero::after {
    position: absolute;
    inset: 0;
    content: "";
    pointer-events: none;
    background: linear-gradient(119deg, transparent 38%, #d3ebfb33 49%, transparent 60%) -160% 0 / 220% 100% no-repeat;
    animation: sweep 1.6s 0.18s ease-out both;
  }
}

@keyframes settle {
  from { transform: translateY(0.65rem); }
  to { transform: translateY(0); }
}

@keyframes sweep {
  from { background-position: 140% 0; opacity: 0; }
  34% { opacity: 1; }
  to { background-position: -150% 0; opacity: 0; }
}

.hero-info {
  position: relative;
  z-index: 3;
  align-items: end;
  margin-bottom: clamp(2rem, 5vw, 4.5rem);
  pointer-events: none;
}

.hero-intro {
  grid-column: 1 / 5;
  font-size: clamp(1.4rem, 3vw, 2.875rem);
  font-weight: 650;
  letter-spacing: -0.046em;
  line-height: 1.06;
}

.hero-dock {
  grid-column: 9 / -1;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 1.5vw, 1.5rem);
  width: max-content;
  padding: 0.5rem 0.5rem 0.5rem 0.875rem;
  border: 1px solid var(--rule);
  border-radius: 0.9rem;
  background: #22272dcf;
  backdrop-filter: blur(12px);
  font-size: 0.875rem;
  font-weight: 650;
  line-height: 1.25;
  white-space: nowrap;
  pointer-events: auto;
}

.hero-dock small { color: var(--muted); font-size: 0.8125rem; font-weight: 450; }

.button {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1rem;
  border-radius: 0.5rem;
  background: var(--accent);
  color: var(--background);
  font-size: 0.9375rem;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.button:hover { background: var(--ink); }

.app-section { margin-top: var(--section-gap); }
.section-title {
  font-size: clamp(2.25rem, 4vw, 4.25rem);
  font-weight: 730;
  letter-spacing: -0.052em;
  line-height: 1.04;
  text-wrap: balance;
}

.app-section > .section-title { grid-column: 1 / 8; max-width: 13ch; }
.app-summary {
  grid-column: 1 / 8;
  max-width: 55ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.55vw, 1.25rem);
}
.tour { grid-column: 1 / -1; margin-top: clamp(2rem, 6vw, 5rem); }
.tour-stage { display: none; }
.chapter {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: center;
  gap: var(--column-gap);
  padding-block: 2rem;
}

.chapter + .chapter { border-top: 1px solid var(--rule); }
.chapter-copy { grid-column: 8 / -1; }
.chapter h3 {
  font-size: clamp(1.75rem, 3.3vw, 3.625rem);
  font-weight: 710;
  line-height: 1.03;
  letter-spacing: -0.049em;
  text-wrap: balance;
}

.chapter p, .connect-info > p { margin-top: 1rem; max-width: 34ch; font-size: clamp(1rem, 1.55vw, 1.25rem); }
.chapter p, .connect p, .beta p, figcaption { color: var(--muted); }
.text-link { display: inline-block; margin-top: 1rem; color: var(--accent); }
.chapter-screen { grid-column: 2 / 7; grid-row: 1; justify-self: center; }
.chapter-screen, .tour-stack { width: min(100%, 17rem); }
.chapter-screen figcaption, .tour-stack figcaption { margin-top: 1rem; text-align: center; }
figcaption { font-size: 0.875rem; }

@media (min-width: 52rem) and (min-height: 39rem) {
  .tour[data-ready] {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: var(--column-gap);
  }

  .tour[data-ready] .tour-stage {
    grid-column: 1 / 7;
    position: sticky;
    top: 0;
    display: grid;
    align-self: start;
    place-items: center;
    height: min(100vh, 40rem);
  }

  .tour-stack { width: min(17rem, 35vh); }
  .tour[data-ready] .tour-chapters { grid-column: 8 / -1; }
  .tour[data-ready] .chapter {
    display: flex;
    min-height: min(100vh, 40rem);
    padding-block: 1rem;
  }

  .tour[data-ready] .chapter-copy { width: 100%; }
  .tour[data-ready] .chapter-screen { display: none; }
  .tour[data-ready] .chapter h3 { position: relative; }
  .tour[data-ready] .chapter[data-active] h3::before {
    position: absolute;
    content: "";
    right: calc(100% + 1.25rem);
    top: 0.53em;
    width: clamp(2rem, 7vw, 7rem);
    height: 1px;
    background: var(--accent);
  }
}

.detail {
  position: relative;
  isolation: isolate;
  display: grid;
  overflow: hidden;
  margin-top: var(--section-gap);
  padding-bottom: 2.75rem;
  background: #1a1b1f;
}

.detail img {
  width: 100%;
  height: auto;
  max-height: 43rem;
  object-fit: contain;
}

.detail figcaption {
  position: absolute;
  inset: auto 0 0;
  padding-bottom: clamp(0.65rem, 2vw, 1.5rem);
}

.detail figcaption span {
  grid-column: 1 / -1;
  justify-self: end;
  padding: 0.25rem 0.55rem;
  background: var(--background);
}

.connect, .specifications, .beta { margin-top: var(--section-gap); }
.connect > .section-title { grid-column: 1 / 6; }
.connect-info { grid-column: 7 / -1; }
.connect-info > p { margin-top: 0; }
.connector { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); }
.connector code { display: block; margin-top: 0.5rem; font: 1rem/1.5 ui-monospace, monospace; overflow-wrap: anywhere; }
.specifications > .section-title { grid-column: 1 / 5; }
.specifications table { grid-column: 6 / -1; width: 100%; border-collapse: collapse; text-align: left; }
.specifications tr { border-top: 1px solid var(--rule); }
.specifications tr:last-child { border-bottom: 1px solid var(--rule); }
.specifications th, .specifications td { padding: 0.95rem 0; vertical-align: top; }
.specifications th { padding-right: 1.25rem; color: var(--muted); font: 0.875rem/1.75 ui-monospace, monospace; }

.beta {
  align-items: center;
  padding-block: clamp(1.5rem, 4vw, 3rem);
  border-block: 1px solid var(--rule);
}

.beta > div { grid-column: 1 / 9; }
.beta h2 { font-size: clamp(1.65rem, 3vw, 3rem); letter-spacing: -0.055em; line-height: 1.1; }
.beta p { margin-top: 0.5rem; }
.beta .button { grid-column: 9 / -1; justify-self: end; }
.footer-links { align-items: center; padding-top: 1.5rem; }
.footer-links > span { grid-column: 1 / 5; font-size: 0.875rem; font-weight: 650; }
.footer-links > div { grid-column: 5 / -1; display: flex; justify-content: flex-end; gap: 1.5rem; }
.footer-wordmark {
  overflow: hidden;
  margin: clamp(2rem, 5vw, 5rem) auto 0;
  padding: 0 0.04em 0.1em 0;
  color: var(--rule);
  font-size: 22vw;
  font-weight: 820;
  line-height: 0.79;
  letter-spacing: -0.069em;
  text-align: center;
  white-space: nowrap;
}

.guide { margin-block: clamp(3rem, 8vw, 7rem); }
.guide article { grid-column: 2 / 12; }
.guide-intro { margin-bottom: clamp(2rem, 5vw, 4rem); }
.guide h1 {
  max-width: 19ch;
  font-size: clamp(2.75rem, 6vw, 6rem);
  font-weight: 790;
  letter-spacing: -0.05em;
  line-height: 1.01;
  text-wrap: balance;
}
.guide-intro p {
  max-width: 57ch;
  margin-top: 1.25rem;
  font-size: clamp(1.125rem, 2vw, 1.375rem);
}
.guide section { padding-block: 1.5rem; border-top: 1px solid var(--rule); }
.guide h2 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  letter-spacing: -0.035em;
  line-height: 1.15;
}
.guide p, .guide li, .guide dd { color: var(--muted); }
.guide section p, .guide section li { max-width: 68ch; }
.guide p + p, .guide li + li { margin-top: 0.5rem; }
.guide ol, .guide ul { margin-block: 0.75rem; padding-inline-start: 1.5rem; }
.guide a:not(.button) { color: var(--accent); }
.guide blockquote, .guide-address {
  display: block;
  max-width: 68ch;
  margin: 0.75rem 0 0;
  padding: 0.65rem 1rem;
  border-left: 2px solid var(--accent);
  background: #1a1b1f;
}
.guide-address { width: fit-content; margin-bottom: 0.75rem; overflow-wrap: anywhere; }
.guide-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(8rem, 12rem);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
}
.guide-feature figure { padding-bottom: 1.5rem; text-align: center; }
.guide-feature img {
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  border-radius: 12% / 6%;
}
.guide-feature figcaption { margin-top: 0.5rem; }
.guide-jump, .guide-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.guide-jump { padding-bottom: 1.5rem; }
.guide-actions { margin-top: 1.5rem; }
.guide-permissions { margin-block: 0.75rem; }
.guide-permissions dt { margin-top: 0.5rem; font-weight: 700; }
.guide-permissions dd { margin-inline-start: 0; }
.guide + .site-footer .footer-links { border-top: 1px solid var(--rule); padding-bottom: 1.5rem; }

@media (max-width: 51.99rem) {
  .hero { min-height: clamp(38rem, 96vw, 46rem); }
  .hero-title { top: 9%; font-size: 20.2vw; }
  .hero-title span:last-child { transform: none; }
  .hero-product { width: clamp(11rem, 32vw, 15rem); transform: translate(-50%, -50%) rotate(-8deg); }
  .hero-info { margin-bottom: 1.75rem; }
  .hero-intro { grid-column: 1 / 8; }
  .hero-dock { grid-column: 8 / -1; }
  .app-section > .section-title, .app-summary, .guide article { grid-column: 1 / -1; }
}

@media (max-width: 35rem) {
  .site-header { row-gap: 0.75rem; padding-block: 0.75rem; }
  .brand { grid-column: 1 / 6; gap: 0.4rem; }
  .brand img { width: 1.5rem; height: 1.5rem; }
  .site-header nav { grid-column: 1 / -1; justify-content: flex-start; flex-wrap: wrap; gap: 0.5rem 1rem; }
  .hero { min-height: clamp(34.5rem, 143vw, 41.5rem); }
  .hero-title { top: 7%; }
  .hero-product { top: 47%; }
  .hero-info { row-gap: 0.85rem; margin-bottom: 0; }
  .hero-intro, .hero-dock { grid-column: 1 / -1; justify-self: center; }
  .hero-intro { text-align: center; }
  .chapter { row-gap: 1.5rem; padding-block: 2.25rem; }
  .chapter-copy, .chapter-screen { grid-column: 1 / -1; grid-row: auto; }
  .chapter-screen { width: min(65%, 15rem); }
  .connect .section-title, .connect-info, .specifications .section-title,
  .specifications table, .beta > div, .beta .button { grid-column: 1 / -1; }
  .beta .button { justify-self: start; }
  .guide-feature { grid-template-columns: 1fr; gap: 0; }
  .guide-feature figure { width: min(55%, 12rem); justify-self: center; }
}
