:root {
  --bg: #ffffff;
  --text-main: #101114;
  --text-sub: #36445c;
  --panel: #ffffff;
  --border: #d5d8df;
  --cta: #a98be2;
  --cta-hover: #9d7fd8;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

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

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --text-main: #f4f6fb;
    --text-sub: #a4b2cc;
    --panel: #0f1115;
    --border: #252b36;
  }

  .site-footer,
  .back-link {
    color: #9caac3;
  }
}

.page {
  min-height: calc(100vh - 56px);
  display: grid;
  grid-template-rows: 1fr auto;
  padding: 32px 24px 20px;
}

.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.brand {
  margin: 0;
  font-size: clamp(54px, 9vw, 82px);
  line-height: 0.95;
  letter-spacing: 0.02em;
  font-weight: 800;
  text-transform: lowercase;
}

.tagline {
  margin: 0;
  min-height: 2.2rem;
  font-size: clamp(24px, 4.3vw, 36px);
  line-height: 1.15;
  font-weight: 700;
  color: var(--text-sub);
  transform: scaleX(1);
  opacity: 1;
  transition: transform 260ms cubic-bezier(0.55, 0.09, 0.68, 0.53), opacity 260ms cubic-bezier(0.55, 0.09, 0.68, 0.53);
}

.tagline.flip-out {
  transform: scaleX(0);
  opacity: 0;
}

.tagline.flip-in {
  transform: scaleX(1);
  opacity: 1;
  transition: transform 260ms cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 260ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.downloads {
  width: min(700px, 100%);
  margin: 0 auto;
}

.downloads-title {
  margin: 0 0 14px;
  text-transform: lowercase;
  letter-spacing: 0.02em;
  text-align: center;
  font-weight: 700;
  color: var(--text-main);
  font-size: 1.2rem;
}

.store-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.store-btn {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 0;
  border: 0;
  text-decoration: none;
  background: transparent;
  box-shadow: none;
  transition: opacity 140ms ease, transform 140ms ease;
}

.store-btn img {
  height: 40px;
  width: auto;
  display: block;
}

.store-btn:hover,
.store-btn:focus-visible {
  opacity: 0.9;
  transform: translateY(-1px);
  outline: none;
}

.site-footer {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.95rem;
  color: #4c5a73;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  text-decoration: underline;
}

.legal-page {
  width: min(820px, 100%);
  margin: 0 auto;
  padding: 36px 24px 48px;
  color: var(--text-main);
}

.legal-page h1 {
  margin: 12px 0 10px;
  font-size: clamp(2rem, 5.5vw, 2.8rem);
}

.legal-page h2 {
  margin: 28px 0 8px;
  font-size: 1.1rem;
}

.legal-page p {
  margin: 0;
  color: var(--text-sub);
  line-height: 1.65;
}

.back-link {
  color: #34435c;
  text-decoration: none;
  font-weight: 600;
}

.back-link:hover,
.back-link:focus-visible {
  text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
  .tagline,
  .tagline.flip-in,
  .tagline.flip-out,
  .store-btn {
    transition: none;
  }
}

@media (max-width: 640px) {
  .page {
    padding: 24px 16px 14px;
  }

  .hero {
    gap: 8px;
  }

  .tagline {
    min-height: 1.8rem;
    font-size: 1.9rem;
  }

  .store-links {
    grid-template-columns: 1fr;
  }

  .legal-page {
    padding: 24px 16px 32px;
  }
}
