:root {
  color-scheme: dark;
  --background: #0b0b0d;
  --surface: #131418;
  --surface-raised: #191b20;
  --text: #f7f8f9;
  --muted: #adb4bc;
  --line: #30343b;
  --line-strong: #4b515b;
  --accent: #d8dde3;
  --accent-ink: #101216;
  --focus: #8ec5ff;
  --max-width: 72rem;
  --content-width: 48rem;
  --radius: 1rem;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
  scroll-behavior: smooth;
}

body {
  min-width: 20rem;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 85% 5%, rgba(197, 205, 214, 0.08), transparent 24rem),
    var(--background);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--text);
  text-decoration-color: #838b95;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-color: currentColor;
}

:focus-visible {
  outline: 0.2rem solid var(--focus);
  outline-offset: 0.2rem;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 20;
  padding: 0.65rem 0.9rem;
  border-radius: 0.4rem;
  background: var(--text);
  color: var(--background);
  font-weight: 700;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(11, 11, 13, 0.94);
}

.header-inner,
.footer-inner,
.page-shell {
  width: min(calc(100% - 2rem), var(--max-width));
  margin-inline: auto;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem 1.5rem;
  min-height: 4.75rem;
  padding-block: 0.85rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 750;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: clamp(2.15rem, 6vw, 2.5rem);
  height: auto;
  flex: 0 0 auto;
}

.site-nav ul,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: 0.48rem 0.65rem;
  border-radius: 0.4rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--surface-raised);
  color: var(--text);
}

.page-shell {
  padding-block: clamp(3.5rem, 8vw, 7rem);
}

.hero {
  position: relative;
  display: grid;
  min-height: 30rem;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero::after {
  position: absolute;
  right: -8rem;
  bottom: 3rem;
  width: min(38rem, 75vw);
  height: 10rem;
  border-top: 1px solid rgba(216, 221, 227, 0.28);
  border-radius: 50%;
  content: "";
  transform: rotate(-11deg);
}

.hero .page-shell {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: var(--text);
  line-height: 1.16;
  text-wrap: balance;
}

h1 {
  max-width: 15ch;
  margin: 0;
  font-size: clamp(2.7rem, 9vw, 5.8rem);
  letter-spacing: -0.055em;
}

.page-intro h1,
.not-found h1 {
  max-width: 20ch;
  font-size: clamp(2.35rem, 7vw, 4.4rem);
}

h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.45rem, 4vw, 2rem);
  letter-spacing: -0.025em;
}

h3 {
  margin: 0 0 0.65rem;
  font-size: 1.08rem;
}

p,
ul {
  margin-block: 0 1.15rem;
}

.hero-lede {
  max-width: 39rem;
  margin: 1.35rem 0 0;
  color: var(--accent);
  font-size: clamp(1.2rem, 3vw, 1.65rem);
  line-height: 1.45;
}

.hero-copy {
  max-width: 45rem;
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 1.03rem;
}

.section {
  border-bottom: 1px solid var(--line);
}

.section:last-child {
  border-bottom: 0;
}

.section-heading {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.section-heading p,
.page-intro p,
.legal-content p,
.support-content p,
.support-content li {
  color: var(--muted);
}

.product-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #08080a;
  object-fit: contain;
}

.video-caption {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.video-caption:empty {
  margin: 0;
}

.audience-section {
  --max-width: 64rem;
}

.audience-videos {
  display: grid;
  gap: 1.5rem;
}

.video-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(1rem, 3vw, 1.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--surface-raised), var(--surface));
}

.video-card-copy {
  flex: 1;
  margin-top: 1.25rem;
}

.video-card-copy p {
  margin-bottom: 0;
  color: var(--muted);
}

.video-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin-top: 1.25rem;
}

.video-play {
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.video-play[hidden] {
  display: none;
}

.video-file-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (min-width: 48rem) {
  .audience-videos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.screenshot-gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 88%;
  gap: 1.5rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--line-strong) var(--surface);
  padding: 0 0 1.25rem;
  margin: 0;
  list-style: none;
}

.screenshot-gallery > li {
  min-width: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.screenshot-card {
  height: 100%;
  margin: 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--surface-raised), var(--surface));
}

.screenshot-card img {
  display: block;
  width: 100%;
  height: auto;
}

.screenshot-card figcaption {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-top: 1rem;
  font-weight: 650;
}

.screenshot-number {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.1em;
}

.screenshot-hint {
  color: var(--muted);
  font-size: 0.9rem;
}

.screenshot-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.screenshot-controls[hidden] {
  display: none;
}

.screenshot-buttons {
  display: flex;
  gap: 0.75rem;
}

.screenshot-buttons button {
  min-height: 2.75rem;
  padding: 0.6rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.5rem;
  background: var(--surface-raised);
  color: var(--text);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.screenshot-buttons button:hover {
  border-color: var(--accent);
}

.screenshot-buttons button[aria-disabled="true"] {
  color: var(--muted);
  cursor: default;
}

#screenshots-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}


@media (min-width: 42rem) {
  .screenshot-gallery {
    grid-auto-columns: calc((100% - 1.5rem) / 2);
  }
}

@media (min-width: 70rem) {
  .screenshot-gallery {
    grid-auto-columns: calc((100% - 3rem) / 3);
  }
}

.card-grid {
  display: grid;
  gap: 1rem;
}

.link-card,
.info-card {
  position: relative;
  min-height: 12rem;
  padding: clamp(1.35rem, 4vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
}

.link-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--text);
  text-decoration: none;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.link-card:hover {
  border-color: var(--line-strong);
  background-color: rgba(255, 255, 255, 0.025);
  transform: translateY(-0.15rem);
}

.card-index {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.14em;
}

.card-arrow {
  align-self: flex-end;
  color: var(--muted);
  font-size: 1.35rem;
}

.link-card p,
.info-card p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.contact-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: clamp(1.5rem, 5vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.contact-panel h2,
.contact-panel p {
  margin: 0;
}

.contact-panel p {
  color: var(--muted);
}

.hero-row {
  display: grid;
  gap: clamp(2.5rem, 8vw, 5rem);
  align-items: center;
}

.hero-content {
  min-width: 0;
}

.app-identity-panel {
  display: grid;
  width: min(100%, 32rem);
  min-width: 0;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem 1.25rem;
  justify-self: start;
  padding: clamp(1.5rem, 5vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(19, 20, 24, 0.92);
}

.hero-app-icon {
  display: block;
  width: clamp(6rem, 28vw, 8rem);
  max-width: 100%;
  height: auto;
  border-radius: 22%;
}

.app-product-label p {
  margin: 0;
}

.app-product-name {
  color: var(--text);
  font-size: 1.08rem;
  font-weight: 750;
}

.app-product-type {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
}

.store-slots {
  display: flex;
  min-width: 0;
  grid-column: 1 / -1;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.apple-store-slot {
  display: inline-flex;
  width: min(100%, 13.5rem);
  min-height: 4rem;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.7rem;
  background: #08080a;
  color: var(--text);
  text-align: center;
  text-decoration: none;
}

.apple-store-slot:not([href]) {
  cursor: default;
}

.apple-store-slot:not([href]) .app-store-badge,
.apple-store-slot[href] .store-coming-soon {
  display: none;
}

.apple-store-slot[href] {
  padding: 0;
  border-color: transparent;
  background: transparent;
}

.apple-store-slot[href]:hover {
  opacity: 0.9;
}

.store-coming-soon {
  font-weight: 750;
}

.app-store-badge {
  display: block;
  width: auto;
  height: 2.75rem;
}

.google-play-slot[hidden] {
  display: none;
}

@media (max-width: 37.999rem) {
  .header-inner {
    align-items: flex-start;
  }

  .site-nav {
    width: 100%;
  }

  .site-nav ul {
    justify-content: flex-start;
  }
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.1rem;
  border: 1px solid var(--accent);
  border-radius: 0.5rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 750;
  text-decoration: none;
}

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

.page-intro {
  border-bottom: 1px solid var(--line);
}

.page-intro .page-shell {
  padding-bottom: clamp(2.75rem, 6vw, 5rem);
}

.page-intro p {
  max-width: 43rem;
  margin-top: 1.25rem;
  font-size: 1.08rem;
}

.effective-date {
  display: inline-block;
  margin-top: 1.25rem;
  padding: 0.38rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
}

.content-layout {
  display: grid;
  gap: 2.5rem;
}

.contents-nav {
  align-self: start;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--surface);
}

.contents-nav h2 {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contents-nav ol {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding-left: 1.3rem;
  color: var(--muted);
}

.contents-nav a {
  color: var(--muted);
  font-size: 0.9rem;
}

.legal-content,
.support-content {
  min-width: 0;
  max-width: var(--content-width);
}

.legal-section,
.support-section {
  padding-block: 0 2.75rem;
  scroll-margin-top: 1rem;
}

.legal-section + .legal-section,
.support-section + .support-section {
  padding-top: 2.75rem;
  border-top: 1px solid var(--line);
}

.legal-content ul,
.support-content ul {
  padding-left: 1.35rem;
}

.legal-content li + li,
.support-content li + li {
  margin-top: 0.35rem;
}

.callout {
  margin: 1.5rem 0;
  padding: 1.25rem;
  border-left: 0.2rem solid var(--accent);
  background: var(--surface);
}

.callout p:last-child {
  margin-bottom: 0;
}

.term {
  color: var(--text);
  font-weight: 700;
}

.support-grid {
  display: grid;
  gap: 1rem;
}

.support-grid .support-section {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.support-grid .support-section + .support-section {
  padding-top: 1.5rem;
}

.support-grid .support-section p:last-child,
.support-grid .support-section ul:last-child {
  margin-bottom: 0;
}

.not-found {
  display: grid;
  min-height: 65vh;
  place-items: center;
}

.not-found .page-shell {
  text-align: center;
}

.not-found h1 {
  margin-inline: auto;
}

.not-found p {
  max-width: 35rem;
  margin: 1.25rem auto 2rem;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #08080a;
}

.footer-inner {
  display: grid;
  gap: 2rem;
  padding-block: 2.5rem;
}

.footer-brand {
  margin: 0 0 0.25rem;
  font-weight: 750;
}

.copyright,
.footer-contact {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-meta {
  display: grid;
  gap: 0.75rem;
}

.footer-links {
  gap: 1rem;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.9rem;
}

@media (min-width: 42rem) {
  .header-inner,
  .footer-inner,
  .page-shell {
    width: min(calc(100% - 3rem), var(--max-width));
  }

  .card-grid,
  .support-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: 1fr auto;
    align-items: end;
  }

  .footer-meta {
    justify-items: end;
  }
}

@media (min-width: 60rem) {
  .hero-row {
    grid-template-columns: minmax(0, 1fr) minmax(17rem, 20rem);
  }

  .app-identity-panel {
    grid-template-columns: 1fr;
    justify-items: center;
    justify-self: end;
    text-align: center;
  }

  .hero-app-icon {
    width: clamp(7.5rem, 11vw, 9rem);
  }

  .store-slots {
    grid-column: auto;
    justify-content: center;
  }

  .content-layout {
    grid-template-columns: 13rem minmax(0, 1fr);
    gap: clamp(3rem, 7vw, 6rem);
  }

  .contents-nav {
    position: sticky;
    top: 1rem;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
