:root {
  color-scheme: dark;
  --bg: #151718;
  --surface: #1c1e21;
  --surface-strong: #0f1113;
  --logo-bg: #151718;
  --text: #f0f0f0;
  --muted: #c5c9c8;
  --subtle: #9ba1a6;
  --border: #2c2e33;
  --accent: #c2603e;
  --accent-2: #4a7c6f;
  --white-border: rgba(255, 255, 255, 0.18);
  --image-scrim: rgba(0, 0, 0, 0.38);
  --image-text-scrim: rgba(0, 0, 0, 0.68);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.page {
  min-height: 100vh;
  background: var(--logo-bg);
}

.wrap {
  width: min(100% - 32px, 760px);
  margin: 0 auto;
  padding: 32px 0 48px;
}

.hero {
  position: relative;
  min-height: 100vh;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  z-index: -2;
}

.hero-media-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 18vh;
  content: "";
  background: linear-gradient(180deg, transparent, var(--bg));
  z-index: -1;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--image-text-scrim), rgba(0, 0, 0, 0.34) 48%, var(--image-scrim)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.24), rgba(0, 0, 0, 0.64));
  z-index: -1;
}

.hero-inner {
  width: min(100% - 48px, 1160px);
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto 1fr;
  padding: 0 0 64px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
  background: var(--logo-bg);
  box-shadow: 0 0 0 100vmax var(--logo-bg);
  clip-path: inset(0 -100vmax);
}

.legal > .site-header {
  width: min(100% - 48px, 1160px);
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: min(220px, 58vw);
  height: auto;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.top-nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 13px;
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.hero-copy {
  align-self: end;
  max-width: 720px;
  padding-bottom: 5vh;
}

.hero-content {
  align-self: end;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.66fr);
  align-items: end;
  gap: 36px;
  padding-bottom: 5vh;
}

.hero-content .hero-copy {
  align-self: auto;
  padding-bottom: 0;
}

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

h1 {
  margin: 8px 0 0;
  color: var(--text);
  font-size: clamp(40px, 7vw, 78px);
  line-height: 1;
  letter-spacing: 0;
}

.legal h1 {
  font-size: clamp(34px, 6vw, 48px);
}

h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
}

p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.intro {
  max-width: 680px;
  margin: 18px 0 0;
  font-size: 18px;
}

.availability-note {
  margin: 18px 0 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
}

.app-store-link {
  min-height: 64px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 14px;
  padding: 10px 22px 11px;
  background: #050505;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  white-space: nowrap;
}

.app-store-kicker {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.1;
}

.app-store-name {
  margin-top: 2px;
  font-size: 25px;
  font-weight: 800;
  line-height: 1;
}

.home-qr-panel {
  border: 1px solid var(--white-border);
  border-radius: 16px;
  padding: 18px;
  background: rgba(15, 17, 19, 0.82);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
}

.home-qr-panel h2 {
  font-size: 20px;
}

.home-qr-copy p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.home-qr-actions {
  display: grid;
  grid-template-columns: 164px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  margin-top: 16px;
}

.home-qr {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.android-note {
  margin: 12px 0 0;
  color: var(--subtle);
  font-size: 13px;
  font-weight: 700;
}

.section-list {
  display: grid;
  gap: 30px;
  margin-top: 40px;
}

.section {
  border-top: 1px solid var(--border);
  padding-top: 26px;
}

.section p {
  margin: 12px 0 0;
}

.footer {
  margin-top: 52px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
  color: var(--subtle);
  font-size: 14px;
}

.footer a {
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}

.support-email {
  color: var(--text);
  font-weight: 800;
}

.legal-header {
  margin-bottom: 20px;
}

.legal .eyebrow {
  margin-top: 44px;
}

.legal a {
  color: var(--text);
}

@media (max-width: 640px) {
  .wrap,
  .hero-inner {
    width: min(100% - 32px, 1160px);
  }

  .legal > .site-header {
    width: min(100% - 32px, 1160px);
  }

  .hero {
    min-height: 760px;
  }

  .hero-media-image {
    object-position: 58% center;
  }

  .hero-inner {
    min-height: 760px;
    padding: 0 0 48px;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .top-nav {
    justify-content: flex-start;
  }

  .top-nav a {
    min-height: 38px;
    font-size: 13px;
  }

  h1 {
    font-size: 44px;
  }

  .legal h1 {
    font-size: 38px;
  }

  .intro {
    font-size: 16px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 24px;
  }

  .hero-content .hero-copy {
    max-width: none;
  }

  .app-store-link {
    width: 100%;
    max-width: 260px;
  }

  .home-qr-panel {
    width: min(100%, 420px);
  }

  .home-qr-actions {
    grid-template-columns: 1fr;
  }

  .home-qr {
    max-width: 220px;
  }
}
