@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800&family=Fraunces:opsz,wght@9..144,600;9..144,700&display=swap");

:root {
  color-scheme: light;
  --page-padding: clamp(24px, 5vw, 72px);
  --bg: #f5efe6;
  --bg-alt: #ede4d8;
  --surface: rgba(255, 251, 245, 0.84);
  --surface-strong: rgba(255, 253, 249, 0.96);
  --line: rgba(29, 36, 35, 0.1);
  --line-strong: rgba(29, 36, 35, 0.16);
  --text: #1d2423;
  --muted: #66706c;
  --accent: #25524d;
  --accent-soft: #dbe7e4;
  --shadow-lg: 0 28px 72px rgba(29, 36, 35, 0.14);
  --shadow-md: 0 18px 40px rgba(29, 36, 35, 0.09);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 16%, rgba(219, 231, 228, 0.94), transparent 32%),
    radial-gradient(circle at 84% 10%, rgba(37, 82, 77, 0.08), transparent 24%),
    radial-gradient(circle at 85% 88%, rgba(207, 188, 165, 0.28), transparent 22%),
    linear-gradient(155deg, var(--bg), var(--bg-alt));
}

body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: -1;
  border-radius: 999px;
}

body::before {
  top: 12vh;
  right: -130px;
  width: 340px;
  height: 340px;
  background: rgba(37, 82, 77, 0.07);
}

body::after {
  bottom: -130px;
  left: -70px;
  width: 400px;
  height: 400px;
  background: rgba(184, 100, 69, 0.08);
}

a {
  color: inherit;
  text-decoration: none;
}

.site-shell {
  padding: 18px;
}

.site-header,
.page,
.site-footer {
  width: min(1160px, 100%);
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  position: fixed;
  top: 22px;
  left: 0;
  right: 0;
  z-index: 20;
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
  min-height: auto;
  padding: 0;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}

.page {
  padding: 112px var(--page-padding) 52px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 440px);
  gap: clamp(30px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 190px);
}

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

.hero-kicker,
.qr-kicker {
  margin: 0;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero h1,
.simple-page h1 {
  margin: 14px 0 0;
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  font-size: clamp(3.2rem, 6vw, 5.15rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.06em;
}

.hero h1 span {
  display: block;
  color: var(--accent);
}

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

.button,
.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
}

.button:hover,
.header-cta:hover,
.carousel-dot:hover {
  transform: translateY(-1px);
}

.button {
  min-height: 54px;
  padding: 0 24px;
  font-size: 0.98rem;
  font-weight: 800;
}

.button-primary,
.header-cta {
  background: var(--accent);
  color: #fffdf8;
  box-shadow: var(--shadow-md);
}

.button-secondary {
  background: rgba(255, 253, 248, 0.84);
  border-color: var(--line);
  color: var(--text);
}

.header-cta {
  min-height: 48px;
  padding: 0 24px;
  font-weight: 700;
}

.store-button {
  justify-content: flex-start;
  gap: 12px;
  min-width: 228px;
  padding: 10px 16px;
  border-radius: 18px;
}

.store-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.store-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: 50% 50%;
}

.store-icon-ios svg {
  fill: currentColor;
  transform: scale(1.62);
}

.store-icon-play svg {
  transform: scale(1.38);
}

.store-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.05;
}

.store-copy-top {
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0.88;
}

.store-copy-bottom {
  font-size: 1.34rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.hero-qr-card {
  display: inline-grid;
  grid-template-columns: 168px minmax(0, auto);
  gap: 20px;
  align-items: center;
  justify-items: start;
  width: fit-content;
  max-width: 100%;
  margin-top: 24px;
  padding: 14px 18px 14px 14px;
  border: 1px solid rgba(29, 36, 35, 0.08);
  border-radius: 28px;
  background: rgba(255, 253, 248, 0.76);
}

.qr-frame {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  width: 100%;
  padding: 14px;
  border-radius: 22px;
  background: #fffdf8;
  border: 1px solid rgba(29, 36, 35, 0.08);
}

.qr-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-qr-label {
  margin: 0;
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-qr-note {
  margin: 6px 0 0;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
}

.qr-copy,
.download-status,
.download-note,
.legal-meta,
.legal-section p,
.site-footer,
.footer-links a {
  color: var(--muted);
}

.qr-copy,
.download-status,
.download-note,
.legal-section p,
.site-footer p {
  margin: 0;
  line-height: 1.7;
}

.hero-stage {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 18px;
  align-self: stretch;
  align-content: center;
}

.hero-stage::before {
  content: "";
  position: absolute;
  inset: 10% 8% auto auto;
  width: 84%;
  height: 80%;
  border-radius: 42px;
  background: linear-gradient(160deg, rgba(37, 82, 77, 0.05), rgba(255, 253, 248, 0.12));
  filter: blur(16px);
  z-index: 0;
}

.screenshot-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 360px);
  aspect-ratio: 1320 / 2868;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(29, 36, 35, 0.16);
  background: transparent;
}

.screenshot-stack {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
  background: transparent;
}

.screenshot-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transform: scale(1.02);
  transition:
    opacity 420ms ease,
    transform 420ms ease;
}

.screenshot-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.screenshot-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.carousel-dots {
  position: relative;
  z-index: 1;
  display: inline-flex;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.8);
  box-shadow: var(--shadow-md);
}

.carousel-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  background: rgba(37, 82, 77, 0.22);
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    width 180ms ease;
}

.carousel-dot.is-active {
  width: 24px;
  border-radius: 999px;
  background: var(--accent);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px var(--page-padding) 34px;
  font-size: 0.95rem;
}

.site-footer strong {
  color: var(--text);
}

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

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

.footer-year {
  white-space: nowrap;
}

.simple-page {
  max-width: 840px;
}

.simple-page h1 {
  font-size: clamp(2.5rem, 6vw, 4.2rem);
}

.legal-meta {
  margin: 12px 0 0;
}

.legal-section {
  margin-top: 24px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 248, 0.72);
}

.legal-section h2 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.legal-section a {
  color: var(--accent);
}

.download-page {
  display: grid;
  align-items: center;
  min-height: calc(100vh - 180px);
}

.download-panel {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.download-status {
  margin-top: 16px;
  font-size: 1.02rem;
}

.download-note {
  margin-top: 18px;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
  transition-delay: var(--delay, 0s);
}

body.loaded .reveal {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .screenshot-slide,
  .button,
  .header-cta,
  .carousel-dot {
    transition: none;
  }
}

@media (max-width: 920px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-copy {
    max-width: none;
  }

  .hero-stage {
    justify-items: start;
    align-content: start;
  }

  .screenshot-panel {
    width: min(100%, 340px);
    min-height: 0;
  }

  .site-footer {
    flex-wrap: wrap;
  }
}

@media (max-width: 760px) {
  .site-shell {
    padding: 10px;
  }

  .site-header {
    top: 10px;
    width: calc(100% - 20px);
    padding: 0;
  }

  .hero-qr-card {
    grid-template-columns: 1fr;
    justify-items: center;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .qr-frame {
    width: min(180px, 100%);
  }

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

@media (max-width: 560px) {
  .page {
    padding-top: 96px;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 13vw, 4rem);
  }

  .hero-actions,
  .download-actions {
    width: 100%;
  }

  .hero-actions .button,
  .download-actions .button,
  .store-button {
    width: 100%;
  }

  .wordmark,
  .header-cta {
    min-height: 52px;
  }

  .screenshot-panel {
    width: 100%;
    min-height: 0;
  }

  .download-panel {
    padding: 24px;
  }
}
