:root {
  --background: #f7f7f5;
  --text: #171917;
  --secondary: #6f726d;
  --line: #dedfda;
  --orange: #ed7b32;
  --blue: #3f78b5;
  --max-width: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.site-header,
.site-footer,
main {
  width: min(calc(100% - 48px), var(--max-width));
  margin-inline: auto;
}

.site-header {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  font-size: 21px;
  font-weight: 650;
  letter-spacing: -0.03em;
  text-decoration: none;
}

nav {
  display: flex;
  gap: 28px;
}

nav a,
.text-link,
.back-link {
  color: var(--secondary);
  font-size: 14px;
  text-decoration: none;
}

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

.hero {
  min-height: 650px;
  display: grid;
  grid-template-columns: 1fr 390px;
  align-items: center;
  gap: 100px;
  padding: 80px 0 120px;
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 650px;
  margin-bottom: 28px;
  font-size: clamp(54px, 8vw, 88px);
  font-weight: 650;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

h2 {
  max-width: 720px;
  margin-bottom: 46px;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

h3 {
  margin-bottom: 12px;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.hero-text {
  max-width: 440px;
  margin-bottom: 34px;
  color: var(--secondary);
  font-size: 20px;
  line-height: 1.45;
}

.app-store-button {
  display: inline-block;
  line-height: 0;
}

.app-store-button img {
  display: block;
  width: auto;
  height: 80px;
}

.phone-placeholder {
  width: 100%;
  display: flex;
  justify-content: center;
}

.phone-placeholder img {
  display: block;
  width: auto;
  max-width: 100%;
  height: min(610px, calc(100vh - 140px));
  object-fit: contain;
}

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

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 64px;
}

.feature-grid p,
.categories p,
.compact-section p {
  color: var(--secondary);
}

.feature-grid p {
  max-width: 300px;
  margin-bottom: 0;
}

.categories p {
  max-width: 780px;
  font-size: 21px;
  line-height: 1.7;
}

.compact-section {
  max-width: 760px;
}

.compact-section h2 {
  margin-bottom: 24px;
}

.compact-section p {
  max-width: 620px;
  font-size: 18px;
}

.text-link {
  display: inline-block;
  margin-top: 8px;
  color: var(--text);
  font-weight: 550;
}

.legal-page {
  max-width: 720px;
  padding: 80px 0 120px;
}

.back-link {
  display: inline-block;
  margin-bottom: 70px;
}

.legal-page h1 {
  font-size: clamp(48px, 7vw, 72px);
  margin-bottom: 12px;
}

.updated {
  color: var(--secondary);
  font-size: 14px;
  margin-bottom: 80px;
}

.legal-page h2 {
  margin: 56px 0 14px;
  font-size: 24px;
  letter-spacing: -0.025em;
}

.legal-page p {
  max-width: 680px;
  color: #4f524d;
  font-size: 17px;
}

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

.site-footer {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--secondary);
  font-size: 13px;
}

@media (max-width: 760px) {
  .site-header,
  .site-footer,
  main {
    width: min(calc(100% - 36px), var(--max-width));
  }

  .site-header {
    height: 68px;
  }

  nav {
    display: none;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 60px;
    padding: 70px 0 90px;
  }

  h1 {
    font-size: clamp(52px, 16vw, 72px);
  }

  .hero-text {
    font-size: 18px;
  }

  .phone-placeholder {
    width: min(100%, 300px);
    margin-inline: auto;
  }

  .phone-placeholder img {
    width: 100%;
    height: auto;
    max-height: calc(100vh - 100px);
  }

  .section {
    padding: 90px 0;
  }

  h2 {
    margin-bottom: 38px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .categories p {
    font-size: 18px;
  }

  .legal-page {
    padding: 60px 0 90px;
  }

  .back-link {
    margin-bottom: 55px;
  }

  .updated {
    margin-bottom: 60px;
  }
}
