:root {
  --bg: #f4f7f6;
  --bg-deep: #e8efed;
  --ink: #0e1211;
  --muted: #5c6b68;
  --accent: #1a7a72;
  --accent-soft: #e4f3f1;
  --line: #d9e2df;
  --surface: #ffffff;
  --tile-empty: #cfdad6;
  --max: 68rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 520px at 85% 10%, rgba(26, 122, 114, 0.14), transparent 60%),
    radial-gradient(700px 480px at 0% 80%, rgba(26, 122, 114, 0.08), transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  animation: atmosphereDrift 18s ease-in-out infinite alternate;
}

@keyframes atmosphereDrift {
  from {
    transform: scale(1) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.04) translate3d(-1.5%, 1%, 0);
  }
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem clamp(1.25rem, 4vw, 2.5rem);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-size: 1.05rem;
  text-decoration: none;
}

.brand img {
  border-radius: 7px;
}

nav {
  display: flex;
  gap: 1.15rem;
  font-size: 0.95rem;
}

.hero {
  max-width: var(--max);
  margin: 0 auto;
  min-height: calc(100svh - 4.25rem);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(2rem, 6vh, 4rem) clamp(1.25rem, 4vw, 2.5rem) 3rem;
}

.hero-copy {
  animation: riseIn 0.8s ease both;
}

.brand-hero {
  font-size: clamp(3rem, 9vw, 5.25rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.95;
  margin: 0 0 1.1rem;
  color: var(--accent);
}

.hero h1 {
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0 0 0.85rem;
  max-width: 18ch;
}

.lede {
  color: var(--muted);
  margin: 0 0 1.75rem;
  font-size: 1.08rem;
  max-width: 34ch;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.store-btn {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-width: 10.5rem;
  padding: 0.7rem 1.1rem;
  border-radius: 0.75rem;
  background: var(--ink);
  color: #f7faf9;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

.store-btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
  background: #1c2422;
}

.store-btn[aria-disabled='true'] {
  opacity: 0.88;
}

.store-btn-kicker {
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  opacity: 0.75;
}

.store-btn-name {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.cta-note {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0.9rem 0 0;
}

.hero-visual {
  display: flex;
  justify-content: center;
  animation: riseIn 1s ease 0.12s both;
}

.phone-frame {
  width: min(100%, 22rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.6rem;
  padding: 1.15rem 1.15rem 1.35rem;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 24px 60px rgba(14, 18, 17, 0.08);
}

.phone-chrome {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1rem;
  gap: 0.75rem;
}

.phone-habit {
  font-weight: 600;
  letter-spacing: -0.02em;
}

.phone-streak {
  color: var(--muted);
  font-size: 0.85rem;
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(14, 1fr);
  gap: 0.28rem;
}

.tile {
  aspect-ratio: 1;
  border-radius: 0.22rem;
  background: var(--tile-empty);
  opacity: 0.55;
  transform: scale(0.86);
  animation: tileIn 0.45s ease forwards;
}

.tile.is-filled {
  background: var(--accent);
  opacity: 1;
}

.tile.is-today {
  outline: 1.5px solid var(--ink);
  outline-offset: 1px;
}

@keyframes tileIn {
  to {
    transform: scale(1);
  }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pitch {
  max-width: 36rem;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem) 5rem;
  text-align: center;
  animation: riseIn 0.9s ease 0.2s both;
}

.pitch h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.7rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.7rem;
}

.pitch p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.legal {
  max-width: 40rem;
  margin: 0 auto;
  padding: 3rem clamp(1.25rem, 4vw, 2.5rem) 4rem;
}

.legal h1 {
  letter-spacing: -0.03em;
  margin-bottom: 0.35rem;
}

.legal h2 {
  margin-top: 2rem;
  letter-spacing: -0.02em;
}

.meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.25rem clamp(1.25rem, 4vw, 2.5rem) 3rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 0.45rem;
  text-align: center;
}

.footer-brand {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}

.footer-links {
  margin: 0.35rem 0 0;
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 2.5rem;
  }

  .hero-visual {
    order: -1;
  }

  .brand-hero {
    font-size: clamp(2.6rem, 14vw, 3.6rem);
  }

  .phone-frame {
    width: min(100%, 19rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .atmosphere,
  .hero-copy,
  .hero-visual,
  .pitch,
  .tile {
    animation: none !important;
  }

  .tile {
    transform: none;
    opacity: 1;
  }

  .store-btn:hover {
    transform: none;
  }
}
