:root {
  --bg: #f6f8f5;
  --surface: #ffffff;
  --text: #1f2a1f;
  --muted: #4d5b4c;
  --line: #d9e1d8;
  --accent: #2f6a3e;
  --accent-hover: #245330;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #fbfcfa 0%, var(--bg) 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page {
  width: min(1100px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 28px 0 24px;
  flex: 1;
}

.site-header {
  width: min(1100px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 18px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-brand {
  color: var(--text);
  text-decoration: none;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 18px;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.96rem;
}

.site-nav a:hover,
.site-brand:hover {
  text-decoration: underline;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(250px, 0.85fr);
  gap: 28px;
  align-items: center;
  min-height: calc(100vh - 150px);
}

.hero-copy {
  display: grid;
  gap: 18px;
  align-content: center;
}

.hero-header h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  letter-spacing: 0.01em;
}

.subtitle {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.15rem);
}

.downloads {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.card {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(217, 225, 216, 0.9);
  border-radius: 18px;
  padding: 15px;
  box-shadow: 0 10px 30px rgba(31, 42, 31, 0.05);
  backdrop-filter: blur(8px);
  display: grid;
  gap: 10px;
}

.card h2 {
  margin: 0;
  font-size: 1.08rem;
}

.badge-placeholder {
  width: 100%;
  min-height: 56px;
  border: 1px solid rgba(217, 225, 216, 0.95);
  border-radius: 14px;
  background: linear-gradient(135deg, #fdfefe 0%, #eef3ec 100%);
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.badge-placeholder::before {
  content: "";
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(47, 106, 62, 0.12);
  flex: 0 0 auto;
}

.badge-apple::before {
  background: rgba(31, 42, 31, 0.12);
}

.badge-label {
  font-weight: 600;
  letter-spacing: 0.01em;
}

.qr-placeholder {
  width: 108px;
  height: 108px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(135deg, #f7faf6 0%, #edf3eb 100%);
  color: var(--muted);
  display: grid;
  place-items: center;
  font-size: 0.85rem;
}

.coming-soon {
  margin: 0;
  color: var(--muted);
}

.screenshot {
  display: flex;
  justify-content: center;
  padding-bottom: 28px;
}

.screenshot-placeholder {
  width: min(100%, 308px);
  aspect-ratio: 9 / 18;
  border: 1px solid rgba(185, 196, 184, 0.45);
  border-radius: 46px;
  background: linear-gradient(150deg, #f3f6f2 0%, #dde4db 55%, #d1d9cf 100%);
  overflow: visible;
  box-shadow:
    0 18px 42px rgba(31, 42, 31, 0.13),
    0 2px 8px rgba(31, 42, 31, 0.12);
  position: relative;
  padding: 6px;
}

.screenshot-placeholder::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 33%;
  height: 14px;
  border-radius: 999px;
  background: rgba(12, 16, 12, 0.8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  z-index: 3;
}

.screenshot-placeholder::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 42px;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.screenshot-frame {
  position: absolute;
  inset: 6px;
  border-radius: 40px;
  background: #0d140f;
  overflow: hidden;
}

.screenshot-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 500ms ease;
}

.screenshot-image.is-active {
  opacity: 1;
}

.screenshot-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -24px;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 4;
}

.screenshot-dot {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: rgba(31, 42, 31, 0.24);
  cursor: pointer;
}

.screenshot-dot.is-active {
  background: var(--accent);
}

.legal-page {
  display: flex;
  align-items: flex-start;
}

.legal-content {
  width: 100%;
  max-width: 760px;
  display: grid;
  gap: 14px;
  padding-top: 16px;
  line-height: 1.7;
}

.legal-content h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  letter-spacing: 0.01em;
}

.legal-content h2 {
  margin: 14px 0 0;
  font-size: 1.25rem;
  line-height: 1.25;
}

.legal-content h3 {
  margin: 10px 0 0;
  font-size: 1.05rem;
  line-height: 1.3;
}

.legal-content p {
  margin: 0;
}

.legal-content ul {
  margin: 0;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.35rem;
}

.legal-content li {
  margin: 0;
}

.legal-content a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(47, 106, 62, 0.35);
  text-underline-offset: 0.14em;
}

.legal-content a:hover {
  color: var(--accent-hover);
  text-decoration-color: currentColor;
}

.footer {
  width: min(1100px, calc(100vw - 48px));
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding: 14px 0 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.footer a {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.96rem;
}

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

.footer-copy {
  width: 100%;
  margin: 6px 0 0;
  color: var(--muted);
}

@media (max-width: 720px) {
  .site-header {
    width: min(1100px, calc(100vw - 28px));
    padding-top: 14px;
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .page {
    width: min(1100px, calc(100vw - 28px));
    padding-top: 22px;
  }

  .footer {
    width: min(1100px, calc(100vw - 28px));
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 18px;
    min-height: auto;
  }

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

  .card {
    padding: 14px;
  }

  .qr-placeholder {
    width: 100px;
    height: 100px;
  }

  .screenshot-placeholder {
    width: min(100%, 292px);
  }

  .legal-content {
    padding-top: 8px;
  }

  .footer {
    gap: 10px 14px;
  }
}
