:root {
  --text: #101114;
  --muted: #6d7178;
  --line: #e8eaee;
  --button: #4624ff;
  --button-hover: #3517dd;
  --max-width: 760px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #ffffff;
}

body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  color: var(--text);
  background: #ffffff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.home-page {
  justify-content: space-between;
}

.home-shell {
  width: min(100%, var(--max-width));
  min-height: calc(100vh - 96px);
  margin: 0 auto;
  padding: 80px 24px 48px;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 48px;
  text-align: center;
}

.app-logo {
  width: clamp(104px, 18vw, 156px);
  height: clamp(104px, 18vw, 156px);
  display: block;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(16, 17, 20, 0.08), 0 1px 2px rgba(16, 17, 20, 0.08);
}

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

h1 {
  margin: 28px 0 6px;
  font-size: clamp(38px, 8vw, 72px);
  line-height: 1;
  font-weight: 750;
}

.tagline {
  margin: 0 0 34px;
  color: var(--muted);
  font-size: 18px;
}

.download-link {
  min-width: 300px;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--button);
  font-weight: 700;
  text-decoration: none;
  transition: background-color 160ms ease, transform 160ms ease;
}

.download-link:hover {
  background: var(--button-hover);
  transform: translateY(-1px);
}

.apple-mark {
  width: 16px;
  height: 20px;
  display: block;
  flex: 0 0 auto;
}

.download-link:focus-visible,
.site-footer a:focus-visible,
.back-link:focus-visible {
  outline: 3px solid rgba(47, 157, 244, 0.34);
  outline-offset: 4px;
}

.site-footer {
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 28px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-footer a {
  text-decoration: none;
  font-weight: 650;
}

.site-footer a:hover {
  color: var(--text);
}

.legal-page .site-footer {
  border-top: 1px solid var(--line);
}

.legal-header {
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 28px 24px 0;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.back-link:hover {
  color: var(--text);
}

.legal-shell {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: 54px 24px 80px;
}

.legal-shell h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 7vw, 56px);
  line-height: 1.05;
}

.legal-shell h2 {
  margin: 36px 0 10px;
  font-size: 20px;
  line-height: 1.25;
}

.legal-shell p {
  margin: 12px 0;
  color: #2e3238;
}

.legal-shell ul {
  margin: 10px 0 18px;
  padding-left: 24px;
}

.legal-shell li {
  margin: 8px 0;
  color: #2e3238;
}

.legal-updated {
  margin-bottom: 36px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 650;
}

@media (max-width: 640px) {
  .home-shell {
    min-height: calc(100vh - 132px);
    padding: 64px 20px 40px;
  }

  .download-link {
    width: min(100%, 320px);
  }

  .site-footer {
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    text-align: center;
  }

  .legal-header,
  .legal-shell {
    padding-left: 20px;
    padding-right: 20px;
  }
}
