:root {
  --bg: #f8f4ec;
  --surface: #fffdf8;
  --surface-soft: #f3f0e9;
  --text: #1b1f1d;
  --heading: #2b302d;
  --muted: #62584c;
  --quiet: #8b8378;
  --line: rgba(27, 31, 29, 0.1);
  --line-warm: rgba(216, 204, 185, 0.8);
  --green: #9cad91;
  --green-dark: #617b69;
  --sand: #ece3d7;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  line-height: 1.6;
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 72px 24px;
}

.home {
  max-width: 1120px;
  padding-top: 36px;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(44px, 8vw, 82px);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.02;
}

h2 {
  margin-bottom: 14px;
  color: var(--heading);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.25;
}

p {
  margin-bottom: 18px;
  font-size: 18px;
}

a {
  color: var(--text);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.card {
  margin: 28px 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 253, 248, 0.48);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(280px, 0.66fr);
  gap: clamp(28px, 4.5vw, 52px);
  align-items: center;
  min-height: calc(100vh - 72px);
  padding-bottom: 36px;
}

.hero-copy {
  max-width: 620px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  color: var(--green-dark);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.brand-mark img {
  flex: 0 0 auto;
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  box-shadow: 0 8px 20px rgba(27, 31, 29, 0.08);
}

.tagline {
  max-width: 580px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(20px, 3vw, 25px);
  line-height: 1.42;
}

.store-badge {
  display: inline-block;
  width: 150px;
  line-height: 0;
  text-decoration: none;
  transition: opacity 140ms ease, transform 140ms ease;
}

.store-badge:hover {
  opacity: 0.86;
}

.store-badge:active {
  transform: translateY(1px);
}

.store-badge img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-device {
  position: relative;
  width: min(100%, 320px);
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(255, 253, 248, 0.38);
  border-radius: 44px;
  background: #111111;
  box-shadow:
    0 28px 78px rgba(27, 31, 29, 0.18),
    inset 0 0 0 1px rgba(0, 0, 0, 0.9);
}

.hero-device::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 50%;
  z-index: 2;
  width: 86px;
  height: 25px;
  border-radius: 999px;
  background: #050505;
  transform: translateX(-50%);
}

.hero-device::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 43px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.hero-device img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 34px;
}

.quiet-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 36px 0 92px;
  border-block: 1px solid var(--line-warm);
  background: var(--line-warm);
}

.quiet-grid article {
  min-height: 250px;
  padding: 28px 24px;
  background: var(--bg);
}

.quiet-grid span {
  display: block;
  margin-bottom: 58px;
  color: var(--quiet);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 700;
}

.quiet-grid p,
.privacy-band p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.privacy-band {
  max-width: 680px;
  margin: 0 auto 92px;
  padding: 38px 0;
  border-top: 1px solid var(--line-warm);
  border-bottom: 1px solid var(--line-warm);
}

.privacy-band h2,
.final-cta h2 {
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.12;
}

.final-cta {
  text-align: center;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 22px;
  border-top: 1px solid var(--line);
  padding: 28px 24px 48px;
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
}

.footer a {
  color: var(--muted);
  text-decoration: none;
}

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

.footer span {
  flex-basis: 100%;
  text-align: center;
}

@media (max-width: 840px) {
  .home {
    padding-top: 28px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-device {
    margin: 0 auto;
  }

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

  .quiet-grid article {
    min-height: 0;
  }

  .quiet-grid span {
    margin-bottom: 28px;
  }
}

@media (max-width: 520px) {
  main,
  .home {
    padding-right: 18px;
    padding-left: 18px;
  }

  .hero {
    gap: 28px;
  }

  .hero-device img {
    border-radius: 30px;
  }
}
