:root {
  --cream: #faf7f2;
  --sky: #c7e6fa;
  --sky-mid: #e8f4fc;
  --ink: #2e333d;
  --muted: #5c6370;
  --line: #e6e0d6;
  --grass: #4a7c59;
  --hill: #7eb36f;
  --hill-deep: #5a9a62;
  --action: #3da857;
  --action-press: #338f47;
  --card: #ffffff;
  --max: 68rem;
  --header: 3.5rem;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Nunito", "Segoe UI", sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--grass); }

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  min-height: var(--header);
  padding: 0.55rem 1.25rem;
  background: linear-gradient(180deg, color-mix(in srgb, var(--sky) 70%, transparent), transparent);
}

body:has(main.legal) .site-header {
  position: sticky;
  background: var(--cream);
}

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

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.app-store {
  display: inline-block;
  line-height: 0;
}

.app-store img {
  height: 44px;
  width: auto;
}

.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  min-height: 100svh;
  height: 100svh;
  padding: calc(var(--header) + 0.4rem) 1.15rem 0;
  background:
    linear-gradient(180deg, var(--sky) 0%, var(--sky-mid) 46%, #f4f1e8 78%, #dcecc8 100%);
  display: flex;
  flex-direction: column;
}

.sun {
  position: absolute;
  top: -4rem;
  left: 50%;
  width: 18rem;
  height: 18rem;
  margin-left: -4rem;
  border-radius: 50%;
  background: radial-gradient(circle, #fff6c8 0%, #ffe58a 28%, rgba(255, 229, 138, 0.18) 58%, transparent 72%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 3;
  max-width: 34rem;
  margin: 0 auto;
}

h1, h2 {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0 0 0.8rem;
}

.hero h1 { font-size: clamp(2.35rem, 9vw, 3.7rem); }

h2 { font-size: clamp(1.45rem, 3.4vw, 2rem); }

.lead {
  color: var(--muted);
  font-size: 1.12rem;
  margin: 0 auto 1.4rem;
  max-width: 28rem;
}

.fine {
  margin: 0.85rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.hero-stage {
  position: relative;
  z-index: 2;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  margin: 0.2rem auto 0;
  max-width: 36rem;
}

.hero-yuki {
  position: absolute;
  left: 50%;
  bottom: 2.2rem;
  width: min(88vw, 26rem);
  max-width: none;
  transform: translateX(-48%);
  z-index: 4;
  filter: drop-shadow(0 18px 28px rgba(46, 70, 40, 0.18));
}

.prop {
  position: absolute;
  pointer-events: none;
  user-select: none;
}

.cherry {
  left: -12%;
  bottom: 1.4rem;
  width: 46%;
  z-index: 3;
  filter: drop-shadow(0 10px 16px rgba(46, 70, 40, 0.12));
}

.lantern {
  right: 2%;
  bottom: 6.4rem;
  width: 20%;
  z-index: 3;
  filter: drop-shadow(0 8px 12px rgba(46, 70, 40, 0.14));
}

.fox {
  left: 4%;
  bottom: 1.1rem;
  width: 30%;
  z-index: 5;
  filter: drop-shadow(0 8px 12px rgba(46, 70, 40, 0.16));
}

.hill {
  position: absolute;
  left: -18%;
  right: -18%;
  border-radius: 50% 50% 0 0;
  pointer-events: none;
}

.hill-back {
  bottom: 0.4rem;
  height: 7.5rem;
  background: color-mix(in srgb, var(--hill) 78%, #cfe8b8);
  z-index: 1;
}

.hill-front {
  bottom: -2.2rem;
  height: 5.2rem;
  background: var(--hill-deep);
  z-index: 6;
}

.phones {
  padding: 2.25rem 0 1rem;
  background: var(--cream);
}

.shot-row {
  display: flex;
  gap: 0.95rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.5rem 1.25rem 1.6rem;
  -webkit-overflow-scrolling: touch;
}

.shot-row figure {
  flex: 0 0 72%;
  max-width: 18rem;
  margin: 0;
  scroll-snap-align: center;
}

.shot-row img {
  width: 100%;
  border-radius: 2.35rem;
  box-shadow: 0 22px 44px rgba(36, 32, 28, 0.16);
  background: var(--sky-mid);
}

.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem 1.25rem 3rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
  margin-bottom: 0.85rem;
}

.site-footer nav a {
  font-weight: 700;
  text-decoration: none;
}

.site-footer p { margin: 0; }

main.legal {
  max-width: 40rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2rem;
}

main.legal h1 { font-size: 1.85rem; }

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

main.legal h2 {
  font-size: 1.15rem;
  margin: 2rem 0 0.6rem;
}

main.legal ul { padding-left: 1.15rem; }
main.legal li { margin: 0.35rem 0; }

footer.legal {
  padding: 1.5rem 1.25rem 3rem;
}

@media (min-width: 860px) {
  .hero {
    display: grid;
    grid-template-columns: minmax(18rem, 28rem) minmax(22rem, 1fr);
    align-items: stretch;
    min-height: 100svh;
    height: 100svh;
    padding: calc(var(--header) + 0.25rem) 2.5rem 0;
    text-align: left;
    column-gap: 1rem;
  }

  .hero-copy {
    align-self: center;
    margin: 0;
    padding: 1rem 0 4rem 0.5rem;
    max-width: 28rem;
    text-align: left;
  }

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

  .lead { margin-left: 0; font-size: 1.18rem; }

  .app-store img { height: 52px; }

  .hero-stage {
    position: relative;
    width: 100%;
    max-width: none;
    height: auto;
    min-height: 0;
    margin: 0;
  }

  .hero-yuki {
    width: min(26rem, 74%);
    left: 48%;
    bottom: 2.2rem;
    transform: translateX(-50%);
  }

  .cherry {
    left: 0;
    width: 36%;
    bottom: 1.6rem;
  }

  .fox {
    left: 4%;
    width: 22%;
  }

  .lantern {
    right: 8%;
    width: 16%;
    bottom: 7.2rem;
  }

  .sun {
    left: auto;
    right: 18%;
    top: -2rem;
    width: 24rem;
    height: 24rem;
    margin-left: 0;
  }

  .phones { padding: 2.75rem 1.5rem 2.5rem; }

  .shot-row {
    overflow: visible;
    justify-content: center;
    align-items: flex-end;
    gap: 0.85rem;
    padding: 1.5rem 1.5rem 2rem;
  }

  .shot-row figure {
    flex: 0 0 auto;
    width: 11.2rem;
    max-width: none;
  }

  .shot-row figure:nth-child(1) { transform: rotate(-6deg) translateY(1.1rem); }
  .shot-row figure:nth-child(2) { transform: rotate(-2deg); }
  .shot-row figure:nth-child(3) { transform: rotate(2deg); }
  .shot-row figure:nth-child(4) { transform: rotate(6deg) translateY(1.1rem); }
}

@media (prefers-reduced-motion: reduce) {
  .shot-row figure { transform: none !important; }
}
