:root {
  --sky: #8fcaf5;
  --sky-deep: #5fa8e6;
  --cream: #fff7ea;
  --cocoa: #6e4334;
  --cocoa-soft: #9a6b58;
  --pink: #f2667f;
  --pink-deep: #c9405d;
  --butter: #ffd25a;
  --butter-deep: #e8a92a;
  --grass: #7cc457;
  --grass-deep: #4f9a3c;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--cocoa);
  font: 600 18px/1.5 "Baloo 2", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

/* ------------------------------------------------------------ hero */
.hero {
  position: relative;
  height: 100vh; height: 100svh;
  min-height: 600px; max-height: 1100px;
  overflow: hidden;
  background: var(--sky);
  isolation: isolate;
}
.scene { position: absolute; inset: 0; animation: push 18s ease-out forwards; transform-origin: 50% 75%; }
.scene .bg { position: absolute; max-width: none; }
.scene .actor { position: absolute; max-width: none; will-change: transform; }
.actor[data-actor="hero"] { transform-origin: 50% 100%; animation: bob 2.4s ease-in-out infinite; }
.actor[data-actor="corgi"] { transform-origin: 50% 100%; animation: hop .92s ease-in-out infinite; }
.actor[data-actor="fox"] { transform-origin: 50% 100%; animation: stroll 5s linear infinite; }
@keyframes push { from { transform: scale(1); } to { transform: scale(1.05); } }
@keyframes bob {
  0%, 100% { transform: scale(1.018, .975) rotate(-1.4deg); }
  50% { transform: scale(.985, 1.025) rotate(1.4deg); }
}
@keyframes hop {
  0%, 100% { transform: translateY(0) scale(1.06, .94); }
  45% { transform: translateY(-22%) scale(.97, 1.04) rotate(-4deg); }
  55% { transform: translateY(-22%) scale(.97, 1.04) rotate(4deg); }
}
@keyframes stroll {
  0% { transform: translate(0, 0) scale(1); opacity: 0; }
  12% { opacity: 1; }
  82% { opacity: 1; }
  100% { transform: translate(-40%, -30%) scale(.82); opacity: 0; }
}

.clouds { position: absolute; inset: 0 0 auto; height: 40%; pointer-events: none; z-index: 1; }
.clouds i {
  position: absolute; width: 150px; height: 46px; border-radius: 40px;
  background: #fff; opacity: .9;
  box-shadow: 0 8px 0 -2px rgba(160, 205, 245, .55);
  animation: drift 70s linear infinite;
}
.clouds i::before, .clouds i::after { content: ""; position: absolute; background: #fff; border-radius: 50%; }
.clouds i::before { width: 70px; height: 70px; left: 22px; top: -34px; }
.clouds i::after { width: 54px; height: 54px; left: 74px; top: -22px; }
.clouds i:nth-child(1) { top: 26%; left: -10%; animation-duration: 80s; }
.clouds i:nth-child(2) { top: 12%; left: -40%; transform: scale(.7); animation-duration: 95s; animation-delay: -40s; }
.clouds i:nth-child(3) { top: 34%; left: -25%; transform: scale(.55); animation-duration: 110s; animation-delay: -75s; }
@keyframes drift { from { translate: 0 0; } to { translate: 140vw 0; } }

.fall { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; }

.topnav {
  position: absolute; z-index: 5; top: max(14px, env(safe-area-inset-top)); right: 16px;
  display: flex; gap: 8px;
}
.topnav a {
  text-decoration: none; font-size: 15px; font-weight: 700; color: #fff;
  padding: 4px 14px; border-radius: 99px;
  background: rgba(40, 90, 140, .22);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border: 1.5px solid rgba(255, 255, 255, .45);
}
.topnav a:hover { background: rgba(40, 90, 140, .38); }

.hero-ui {
  position: absolute; z-index: 4; left: 0; right: 0; top: max(6vh, 44px);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 0 16px;
}
.hero h1 { margin: 0; }
.logo {
  width: min(560px, 82vw); height: auto;
  filter: drop-shadow(0 10px 18px rgba(40, 80, 130, .25));
  animation: logo-in .9s cubic-bezier(.2, 1.6, .4, 1) both, breathe 4s 1s ease-in-out infinite;
}
@keyframes logo-in { from { transform: scale(.6) translateY(-30px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes breathe { 50% { transform: scale(1.025); } }
.tag {
  margin: -4px 0 18px;
  font-size: clamp(20px, 2.6vw, 28px); font-weight: 800; color: #fff;
  -webkit-text-stroke: 6px var(--pink-deep); paint-order: stroke fill;
  letter-spacing: 1.2px; word-spacing: 4px;
  animation: rise .7s .35s ease-out both;
}
@keyframes rise { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
.badges { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; animation: rise .7s .55s ease-out both; }
.badge { display: block; border-radius: 12px; transition: transform .15s ease; }
.badge img { height: 56px; width: auto; filter: drop-shadow(0 6px 12px rgba(30, 50, 80, .3)); }
.badge:hover { transform: translateY(-3px) scale(1.04); }
.badge:active { transform: scale(.96); }

.scroll-cue {
  position: absolute; z-index: 4; left: 50%; bottom: max(18px, env(safe-area-inset-bottom));
  translate: -50% 0; width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255, 255, 255, .85); box-shadow: 0 4px 0 rgba(110, 67, 52, .25);
  animation: nudge 1.8s ease-in-out infinite;
}
.scroll-cue span {
  position: absolute; left: 50%; top: 42%; width: 13px; height: 13px;
  border: solid var(--pink); border-width: 0 4px 4px 0; border-radius: 2px;
  translate: -50% -50%; rotate: 45deg;
}
@keyframes nudge { 50% { transform: translateY(6px); } }

/* ------------------------------------------------------------ sections */
main { position: relative; }
.title {
  margin: 0 0 28px; text-align: center;
  font-size: clamp(30px, 4.6vw, 52px); line-height: 1.1; font-weight: 800;
  color: var(--butter);
  -webkit-text-stroke: 10px var(--cocoa); paint-order: stroke fill;
  text-shadow: 0 6px 0 rgba(110, 67, 52, .25);
}

.seasons {
  padding: 72px 16px 56px;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, .7) 0 2px, transparent 3px) 0 0 / 38px 38px,
    linear-gradient(#fff3df, var(--cream));
}
.season-stage {
  display: flex; align-items: center; justify-content: center; gap: clamp(28px, 6vw, 80px);
  max-width: 1000px; margin: 0 auto; flex-wrap: wrap;
}
.phone {
  position: relative; margin: 0;
  width: min(320px, 78vw); aspect-ratio: 720 / 1600;
  border-radius: 44px; overflow: hidden;
  border: 10px solid #fff;
  box-shadow: 0 0 0 3px #f1d9c2, 0 26px 50px rgba(110, 67, 52, .28);
  background: var(--sky);
}
.phone .shot {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.06);
  transition: opacity .7s ease, transform 1.4s ease;
}
.phone .shot.on { opacity: 1; transform: none; }
.season-side { display: flex; flex-direction: column; align-items: center; gap: 22px; max-width: 360px; }
.app-icon {
  position: relative; width: 150px; height: 150px; border-radius: 34px; overflow: hidden;
  box-shadow: 0 0 0 5px #fff, 0 16px 30px rgba(110, 67, 52, .25);
}
.app-icon img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transform: scale(.8) rotate(-8deg); transition: opacity .45s, transform .6s cubic-bezier(.2, 1.6, .4, 1); }
.app-icon img.on { opacity: 1; transform: none; }
.season-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.pill {
  font: inherit; font-size: 17px; font-weight: 800; cursor: pointer;
  color: #fff; padding: 8px 20px 10px; border-radius: 16px; border: 3px solid var(--cocoa);
  background: linear-gradient(#ffb0c0, var(--pink) 55%);
  box-shadow: inset 0 -5px 0 var(--pink-deep), 0 4px 0 var(--cocoa);
  text-shadow: 0 2px 0 var(--pink-deep);
  transition: transform .1s;
}
.pill:hover { transform: translateY(-2px); }
.pill:active { transform: translateY(3px); box-shadow: inset 0 -2px 0 var(--pink-deep), 0 1px 0 var(--cocoa); }
.pill.on {
  background: linear-gradient(#fff0a8, var(--butter) 55%);
  box-shadow: inset 0 -5px 0 var(--butter-deep), 0 4px 0 var(--cocoa);
  color: var(--cocoa); text-shadow: 0 2px 0 rgba(255, 255, 255, .6);
}
.season-note { margin: 0; text-align: center; color: var(--cocoa-soft); font-size: 18px; }

.reel {
  padding: 56px 0 64px; overflow: hidden;
  background: linear-gradient(var(--sky), var(--sky-deep));
  position: relative;
}
.reel::before, .reel::after {
  content: ""; position: absolute; left: 0; right: 0; height: 34px; z-index: 1;
  background: radial-gradient(circle at 50% 0, var(--cream) 23px, transparent 24px) 0 0 / 56px 34px repeat-x;
}
.reel::before { top: -1px; }
.reel::after { bottom: -1px; rotate: 180deg; background-image: radial-gradient(circle at 50% 0, #fff3df 23px, transparent 24px); }
.reel-track {
  display: flex; gap: 22px; width: max-content; padding: 10px 22px;
  animation: reel 60s linear infinite;
}
.reel:hover .reel-track { animation-play-state: paused; }
.reel-track img {
  width: clamp(200px, 22vw, 270px); height: auto; border-radius: 26px;
  border: 6px solid #fff; box-shadow: 0 16px 30px rgba(20, 60, 110, .3);
  rotate: -2deg; transition: rotate .3s, scale .3s;
}
.reel-track img:nth-child(even) { rotate: 2deg; translate: 0 18px; }
.reel-track img:hover { rotate: 0deg; scale: 1.05; }
@keyframes reel { to { transform: translateX(-50%); } }

.cta {
  padding: 80px 16px 70px; text-align: center;
  background: #fff3df;
  display: flex; flex-direction: column; align-items: center;
}
.cta-icon { width: 128px; height: 128px; border-radius: 30px; margin-bottom: 20px; box-shadow: 0 0 0 5px #fff, 0 14px 26px rgba(110, 67, 52, .25); animation: breathe 3.4s ease-in-out infinite; }
.cta .title { margin-bottom: 8px; }
.cta-note { margin: 0 0 22px; color: var(--cocoa-soft); }

.foot {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px;
  padding: 26px 16px calc(30px + env(safe-area-inset-bottom));
  background: var(--cocoa); color: #f6e2d4; font-size: 15px;
}
.foot a { color: #ffd6df; text-decoration: none; }
.foot a:hover { text-decoration: underline; }

@media (max-aspect-ratio: 1/1) {
  /* Tall screens: logo in the sky, store badges at the foot of the scene. */
  .hero-ui .badges {
    position: fixed; position: absolute; left: 0; right: 0; bottom: calc(84px + env(safe-area-inset-bottom));
    top: auto;
  }
  .hero-ui { position: absolute; inset: 0; justify-content: flex-start; padding-top: max(9vh, 64px); top: 0; }
  .hero::after {
    content: ""; position: absolute; inset: auto 0 0; height: 34%; z-index: 3; pointer-events: none;
    background: linear-gradient(transparent, rgba(60, 40, 30, .35));
  }
}
@media (max-width: 560px) {
  .topnav { left: 0; right: 0; justify-content: center; }
  .topnav a { font-size: 14px; padding: 3px 12px; }
  .badge img { height: 48px; }
  .seasons { padding-top: 56px; }
  .app-icon { width: 112px; height: 112px; border-radius: 26px; }
  .season-side { order: -1; }
  .pill { font-size: 15px; padding: 6px 14px 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reel-track { width: auto; overflow-x: auto; }
}
