:root {
  color-scheme: light;
  --bg: #f3efe6;
  --surface: rgba(255, 252, 245, 0.84);
  --surface-strong: #fffaf1;
  --text: #18231d;
  --muted: #55625a;
  --line: rgba(24, 35, 29, 0.12);
  --accent: #0f8b6d;
  --accent-dark: #0b6b54;
  --shadow: 0 24px 70px rgba(18, 35, 29, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(15, 139, 109, 0.18), transparent 34%),
    radial-gradient(circle at right 20%, rgba(226, 168, 87, 0.18), transparent 24%),
    linear-gradient(180deg, #fbf7ef 0%, var(--bg) 100%);
  min-height: 100vh;
}

a {
  color: inherit;
}

.page-shell,
.legal-page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.page-shell {
  padding: 32px 0 24px;
}

.hero {
  padding: 88px 0 96px;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-dark);
}

.app-icon {
  display: block;
  width: 112px;
  height: 112px;
  margin-bottom: 22px;
  border-radius: 24px;
  box-shadow: var(--shadow);
  object-fit: cover;
}

h1 {
  margin: 0;
  max-width: 10ch;
  font-size: clamp(3.4rem, 10vw, 6.8rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
}

.hero-copy,
.legal-card p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.05rem;
}

.hero-copy {
  max-width: 640px;
  margin: 24px 0 0;
}

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

.text-link-button,
.back-link,
.app-store-badge-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.app-store-badge-link:hover,
.text-link-button:hover,
.back-link:hover {
  transform: translateY(-1px);
}

.legal-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.legal-page h1 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.app-store-badge-link {
  align-self: flex-start;
}

.app-store-badge {
  display: block;
  width: 180px;
  height: auto;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 0 10px;
}

.footer-brand {
  font-weight: 700;
}

.footer-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.text-link-button,
.back-link {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.56);
  color: var(--text);
}

.legal-page {
  padding: 32px 0 56px;
}

.back-link {
  margin: 8px 0 28px;
}

.legal-page h1 {
  margin-bottom: 18px;
}

.legal-card {
  padding: 28px;
  max-width: 760px;
}

@media (max-width: 860px) {
  .hero {
    padding: 64px 0 40px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .page-shell,
  .legal-page {
    width: min(100% - 20px, 1120px);
  }

  h1 {
    max-width: none;
  }

  .hero-actions {
    flex-direction: column;
  }
}
