:root {
  color-scheme: light;
  --ink: #17211f;
  --muted: #5f6b66;
  --paper: #f7f4ec;
  --surface: #fffdf7;
  --line: #ded7c8;
  --accent: #e26d4f;
  --sage: #819b83;
  --night: #182521;
}

* {
  box-sizing: border-box;
}

html {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
}

body {
  margin: 0;
}

a {
  color: inherit;
}

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px clamp(20px, 5vw, 72px);
  color: #fffdf7;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 760;
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.nav {
  display: flex;
  gap: 22px;
  font-size: 14px;
}

.nav a {
  text-decoration: none;
  opacity: 0.86;
}

.hero {
  min-height: 94svh;
  position: relative;
  overflow: hidden;
  display: grid;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(20, 34, 29, 0.92) 0%, rgba(20, 34, 29, 0.76) 43%, rgba(20, 34, 29, 0.28) 72%),
    url("assets/app-store-hero.png") center right 12% / min(62vw, 760px) auto no-repeat,
    #24372f;
  color: #fffdf7;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  background: linear-gradient(0deg, var(--paper), rgba(247, 244, 236, 0));
}

.hero-copy {
  width: min(600px, calc(100vw - 40px));
  padding: 124px 0 92px clamp(20px, 7vw, 96px);
  position: relative;
  z-index: 2;
}

.app-name {
  display: block;
  font-size: clamp(52px, 8vw, 116px);
  line-height: 0.9;
  font-weight: 820;
  letter-spacing: 0;
}

.hero h1 {
  margin: 18px 0 0;
  font-size: clamp(26px, 3.6vw, 48px);
  line-height: 1.02;
  font-weight: 720;
  letter-spacing: 0;
}

.hero p {
  margin: 22px 0 0;
  max-width: 520px;
  color: rgba(255, 253, 247, 0.82);
  font-size: 18px;
  line-height: 1.6;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 20px;
  font-weight: 720;
  text-decoration: none;
  background: #fffdf7;
  color: #182521;
}

.button.secondary {
  background: transparent;
  color: #fffdf7;
  border: 1px solid rgba(255, 253, 247, 0.42);
}

.section {
  padding: 84px clamp(20px, 6vw, 88px);
}

.section-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.lead-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.7fr);
  gap: clamp(36px, 7vw, 96px);
  align-items: center;
}

.section h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 68px);
  line-height: 0.98;
  letter-spacing: 0;
}

.section p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.feature-list {
  margin-top: 34px;
  display: grid;
  gap: 18px;
}

.feature {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.feature strong {
  display: block;
  font-size: 18px;
}

.feature span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.55;
}

.phone-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: end;
}

.phone-pair img {
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 24px 64px rgba(25, 34, 30, 0.22);
}

.phone-pair img:nth-child(2) {
  transform: translateY(42px);
}

.band {
  background: var(--night);
  color: #fffdf7;
}

.band p,
.band .feature span {
  color: rgba(255, 253, 247, 0.72);
}

.band .feature {
  border-color: rgba(255, 253, 247, 0.2);
}

.final {
  text-align: center;
  background: var(--surface);
}

.final .button {
  margin-top: 28px;
  background: var(--accent);
  color: #fffdf7;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 32px clamp(20px, 6vw, 88px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.legal-page {
  min-height: 100svh;
  background: var(--surface);
}

.legal-page .site-header {
  position: static;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.legal-content {
  width: min(820px, calc(100% - 40px));
  margin: 0 auto;
  padding: 64px 0 88px;
}

.legal-content h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 0.98;
}

.legal-content h2 {
  margin: 42px 0 0;
  font-size: 22px;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
  line-height: 1.7;
}

@media (max-width: 820px) {
  .site-header {
    position: static;
    background: var(--night);
  }

  .nav {
    gap: 14px;
    font-size: 13px;
  }

  .hero {
    min-height: auto;
    background:
      linear-gradient(180deg, rgba(20, 34, 29, 0.94), rgba(20, 34, 29, 0.72)),
      url("assets/app-store-hero.png") center bottom -170px / 580px auto no-repeat,
      #24372f;
  }

  .hero-copy {
    padding: 60px 20px 420px;
  }

  .lead-grid {
    grid-template-columns: 1fr;
  }

  .phone-pair {
    max-width: 520px;
    margin: 0 auto;
  }

  .phone-pair img:nth-child(2) {
    transform: translateY(20px);
  }

  .site-footer {
    flex-direction: column;
  }
}
