:root {
  --bg: #000;
  --surface: #111315;
  --text: #f3f3f1;
  --muted: #b0b1b5;
  --accent: #f3f3f1;
  --border: rgba(255, 255, 255, 0.08);
  --max: 72rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

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

a:hover {
  text-decoration: underline;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: #000;
}

.site-header__bar {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  justify-content: flex-end;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 500;
}

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

.site-nav a:hover {
  color: var(--text);
  text-decoration: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

main {
  max-width: min(var(--max), 100%);
  margin: 0 auto;
  padding: 3.5rem 1.25rem 4rem;
}

.hero {
  min-height: calc(100vh - 9.5rem);
  display: grid;
  grid-template-columns: minmax(18rem, 0.9fr) minmax(19rem, 1fr);
  align-items: center;
  gap: clamp(2rem, 7vw, 6rem);
}

.hero__copy {
  max-width: 31rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: "Google Sans Flex", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(4.5rem, 13vw, 9.5rem);
  font-weight: 900;
  font-variation-settings: "wght" 900;
  letter-spacing: 0;
  line-height: 0.82;
}

.hero p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.6vw, 1.32rem);
  line-height: 1.45;
  max-width: 29rem;
}

.hero__showcase {
  justify-self: center;
  width: min(100%, 28rem);
}

/* Carousel */
.carousel {
  width: 100%;
  position: relative;
}

.carousel__viewport {
  width: 100%;
  overflow: hidden;
  padding: 0.25rem 0;
}

.carousel__track {
  display: flex;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.carousel__track::-webkit-scrollbar {
  display: none;
}

.carousel__slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 1rem;
}

.carousel__slide img {
  display: block;
  width: min(100%, 22rem);
  margin: 0 auto;
  height: auto;
  vertical-align: middle;
  border-radius: 2.15rem;
  box-shadow: 0 1.75rem 5rem rgba(0, 0, 0, 0.6);
}

.carousel__slide figcaption {
  min-height: 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.4;
  text-align: center;
}

.carousel__dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.35rem;
}

.carousel__dot {
  width: 0.5rem;
  height: 0.5rem;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
  opacity: 1;
  cursor: pointer;
  transition: background 0.15s ease;
}

.carousel__dot:hover {
  background: rgba(255, 255, 255, 0.38);
}

.carousel__dot.is-active {
  background: var(--accent);
}

.hero .store-cta {
  margin: 2.25rem 0 0;
  max-width: none;
}

.appstore-badge-link {
  background: none;
  border: 0;
  display: inline-block;
  line-height: 0;
  padding: 0;
}

.appstore-badge-link:hover {
  text-decoration: none;
}

.appstore-badge-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.appstore-badge-link img {
  display: block;
  width: min(100%, 12rem);
  height: auto;
}

.card {
  display: block;
  padding: 1.25rem 1.35rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.card:hover {
  border-color: rgba(59, 130, 246, 0.35);
  text-decoration: none;
  transform: translateY(-1px);
}

.card strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.card span {
  font-size: 0.875rem;
  color: var(--muted);
}

.doc-title {
  margin: 0 0 0.25rem;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.doc-meta {
  margin: 0 0 2rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.doc-section {
  margin-bottom: 1.75rem;
}

.doc-section h2 {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 700;
}

.doc-section p,
.doc-section ul {
  margin: 0;
  color: #d4d4d8;
  font-size: 0.9375rem;
}

@media (max-width: 640px) {
  main {
    padding-top: 2.25rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .site-header__bar {
    justify-content: center;
  }

  .hero {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 2.25rem;
    text-align: center;
  }

  .hero__copy {
    margin: 0 auto;
  }

  .hero h1 {
    font-size: clamp(4rem, 23vw, 6.5rem);
  }

  .hero p {
    margin-left: auto;
    margin-right: auto;
  }

  .appstore-badge-link img {
    margin: 0 auto;
  }

  .hero .store-cta {
    margin-top: 2rem;
  }

  .hero__showcase {
    width: min(100%, 19rem);
  }

  .carousel__slide img {
    border-radius: 1.65rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .carousel__track {
    scroll-behavior: auto;
  }

  .carousel__dot,
  .card {
    transition: none;
  }
}

.doc-section ul {
  padding-left: 1.25rem;
}

.doc-section li {
  margin-bottom: 0.35rem;
}

.site-footer {
  max-width: 56rem;
  margin: 0 auto;
  padding: 2rem 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--muted);
  text-align: center;
}

.support-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem 1.35rem;
  margin-bottom: 2rem;
}

.support-box h2 {
  margin: 0 0 0.75rem;
  font-size: 1.125rem;
}

.support-box p {
  margin: 0;
  color: #d4d4d8;
  font-size: 0.9375rem;
}

.support-box a.wordmark {
  color: var(--text);
  font-weight: 700;
}
