:root {
  --ink: #1f3d36;
  --ink-deep: #163029;
  --milk: #fff8ea;
  --butter: #f0ba57;
  --meadow: #3b7d61;
  --sky: #8ec8e8;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --pad-x: clamp(1rem, 4.5vw, 2.5rem);
  --topbar-h: 3.75rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  margin: 0;
  min-height: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: "Nunito", system-ui, sans-serif;
  color: var(--ink);
  background: var(--sky);
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.scene picture {
  display: block;
  width: 100%;
  height: 100%;
}

.scene__bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
  transform-origin: center 65%;
  animation: scene-breathe 14s ease-in-out infinite alternate;
}

.scene__glow {
  position: absolute;
  left: 50%;
  top: 34%;
  width: min(48vw, 480px);
  height: min(38vw, 380px);
  transform: translate(-50%, -50%);
  background: radial-gradient(
    ellipse at center,
    rgba(255, 236, 170, 0.5) 0%,
    rgba(255, 236, 170, 0.16) 42%,
    transparent 72%
  );
  animation: glow-pulse 5s ease-in-out infinite alternate;
}

.topbar {
  position: relative;
  z-index: 2;
  min-height: var(--topbar-h);
  display: flex;
  align-items: center;
  padding:
    calc(0.85rem + var(--safe-top))
    calc(var(--pad-x) + var(--safe-right))
    0.65rem
    calc(var(--pad-x) + var(--safe-left));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 100%;
  animation: fade-down 0.8s ease both;
}

.brand__mark {
  width: clamp(1.85rem, 5vw, 2.35rem);
  height: clamp(1.85rem, 5vw, 2.35rem);
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 0 rgba(31, 61, 54, 0.12));
}

.brand__name {
  font-family: "Fredoka", "Nunito", sans-serif;
  font-weight: 600;
  font-size: clamp(1.15rem, 3.8vw, 1.35rem);
  letter-spacing: 0.01em;
  color: var(--ink-deep);
  text-shadow: 0 1px 0 rgba(255, 248, 234, 0.55);
  white-space: nowrap;
}

.hero {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: calc(100vh - var(--topbar-h) - var(--safe-top));
  min-height: calc(100dvh - var(--topbar-h) - var(--safe-top));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding:
    1.25rem
    calc(var(--pad-x) + var(--safe-right))
    calc(22vh + var(--safe-bottom))
    calc(var(--pad-x) + var(--safe-left));
}

.hero__copy {
  width: min(100%, 40rem);
  text-align: center;
  animation: fade-up 0.9s ease 0.12s both;
}

.hero__eyebrow {
  margin: 0 0 0.55rem;
  font-size: clamp(0.68rem, 2.4vw, 0.78rem);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.78;
}

.hero__title {
  margin: 0;
  font-family: "Fredoka", "Nunito", sans-serif;
  font-weight: 700;
  font-size: clamp(1.7rem, 6.2vw, 3.55rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #fffef8;
  max-width: 18ch;
  margin-inline: auto;
  paint-order: stroke fill;
  text-shadow:
    -2px -2px 0 var(--ink-deep),
     2px -2px 0 var(--ink-deep),
    -2px  2px 0 var(--ink-deep),
     2px  2px 0 var(--ink-deep),
    -3px  0 0 var(--ink-deep),
     3px  0 0 var(--ink-deep),
     0 -3px 0 var(--ink-deep),
     0  3px 0 var(--ink-deep),
     0  6px 0 rgba(22, 48, 41, 0.18);
}

.hero__sub {
  margin: 0.85rem auto 0;
  max-width: 34ch;
  font-size: clamp(0.95rem, 3.2vw, 1.12rem);
  font-weight: 700;
  line-height: 1.45;
  color: var(--ink);
  text-shadow: 0 1px 0 rgba(255, 248, 234, 0.45);
}

.hero__actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.2rem;
  flex-wrap: wrap;
  width: 100%;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 3.1rem;
  padding: 0.72rem 1.2rem 0.72rem 1rem;
  border-radius: 0.9rem;
  background: #121212;
  color: #fff;
  box-shadow: 0 4px 0 rgba(18, 18, 18, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: default;
  max-width: 100%;
}

.store-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 rgba(18, 18, 18, 0.18);
}

.store-btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 0 rgba(18, 18, 18, 0.2);
}

.store-btn__icon {
  width: 1.55rem;
  height: 1.55rem;
  flex-shrink: 0;
}

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

.store-btn__label {
  font-size: 0.68rem;
  font-weight: 600;
  opacity: 0.85;
}

.store-btn__store {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.hero__proof {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  animation: fade-up 1s ease 0.28s both;
}

.hero__score {
  font-family: "Fredoka", "Nunito", sans-serif;
  font-size: clamp(1.85rem, 6vw, 2.35rem);
  font-weight: 700;
  line-height: 1;
  color: #fffef8;
  text-shadow:
    -2px -2px 0 var(--ink-deep),
     2px -2px 0 var(--ink-deep),
    -2px  2px 0 var(--ink-deep),
     2px  2px 0 var(--ink-deep),
    -3px  0 0 var(--ink-deep),
     3px  0 0 var(--ink-deep),
     0 -3px 0 var(--ink-deep),
     0  3px 0 var(--ink-deep);
}

.hero__ratings {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
}

.hero__ratings p {
  margin: 0;
  font-size: clamp(0.82rem, 2.8vw, 0.92rem);
  font-weight: 800;
  color: #fffef8;
  text-shadow:
    -1px -1px 0 var(--ink-deep),
     1px -1px 0 var(--ink-deep),
    -1px  1px 0 var(--ink-deep),
     1px  1px 0 var(--ink-deep),
    -1.5px  0 0 var(--ink-deep),
     1.5px  0 0 var(--ink-deep),
     0 -1.5px 0 var(--ink-deep),
     0  1.5px 0 var(--ink-deep);
}

.stars {
  display: flex;
  gap: 0.12rem;
}

.stars span {
  width: 0.9rem;
  height: 0.9rem;
  background: var(--butter);
  clip-path: polygon(
    50% 0%,
    61% 35%,
    98% 35%,
    68% 57%,
    79% 91%,
    50% 70%,
    21% 91%,
    32% 57%,
    2% 35%,
    39% 35%
  );
  filter: drop-shadow(0 1px 0 rgba(97, 59, 43, 0.25));
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-down {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glow-pulse {
  from {
    opacity: 0.7;
    transform: translate(-50%, -50%) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.04);
  }
}

@keyframes scene-breathe {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.018);
  }
}

/* Tablet */
@media (max-width: 900px) {
  .hero {
    justify-content: flex-start;
    padding-top: clamp(1.5rem, 6vh, 3.5rem);
    padding-bottom: calc(34vh + var(--safe-bottom));
  }

  .scene__bg {
    object-position: center 55%;
  }

  .scene__glow {
    top: 28%;
    width: min(70vw, 420px);
    height: min(48vw, 320px);
  }
}

@media (max-width: 720px) and (min-width: 641px) {
  .scene__bg {
    object-position: center 50%;
  }
}

/* Phone */
@media (max-width: 640px) {
  :root {
    --pad-x: 1.1rem;
    --topbar-h: 3.4rem;
  }

  .hero {
    justify-content: flex-start;
    padding-top: clamp(4.5rem, 14vh, 7.5rem);
    padding-bottom: calc(32vh + var(--safe-bottom));
  }

  .hero__copy {
    width: min(100%, 22.5rem);
  }

  .hero__eyebrow {
    margin-bottom: 1rem;
  }

  .hero__title {
    font-size: clamp(1.7rem, 8.6vw, 2.2rem);
    line-height: 1.22;
    max-width: 13ch;
    text-shadow:
      -1.5px -1.5px 0 var(--ink-deep),
       1.5px -1.5px 0 var(--ink-deep),
      -1.5px  1.5px 0 var(--ink-deep),
       1.5px  1.5px 0 var(--ink-deep),
      -2.5px  0 0 var(--ink-deep),
       2.5px  0 0 var(--ink-deep),
       0 -2.5px 0 var(--ink-deep),
       0  2.5px 0 var(--ink-deep),
       0  4px 0 rgba(22, 48, 41, 0.16);
  }

  .hero__sub {
    max-width: 28ch;
    font-size: 0.98rem;
    margin-top: 1.35rem;
    line-height: 1.55;
  }

  .hero__actions {
    margin-top: 1.75rem;
  }

  .store-btn {
    width: 100%;
    max-width: 17.5rem;
    min-height: 3.25rem;
  }

  .scene__bg {
    object-position: center bottom;
    animation: none;
  }

  .scene__glow {
    top: 34%;
    width: 90vw;
    height: 48vw;
    opacity: 0.75;
  }

  .hero__proof {
    margin-top: 1.35rem;
  }
}

/* Small phones */
@media (max-width: 380px) {
  .hero__title {
    font-size: 1.58rem;
    max-width: 12ch;
  }

  .hero__sub {
    font-size: 0.92rem;
  }

  .store-btn__label {
    font-size: 0.62rem;
  }

  .store-btn__store {
    font-size: 0.95rem;
  }

  .hero {
    padding-top: clamp(3.75rem, 12vh, 6rem);
    padding-bottom: calc(34vh + var(--safe-bottom));
  }
}

/* Short landscape phones / small height */
@media (max-height: 700px) and (orientation: landscape) {
  .topbar {
    padding-top: calc(0.45rem + var(--safe-top));
    padding-bottom: 0.35rem;
    min-height: 0;
  }

  .hero {
    justify-content: center;
    padding-top: 0.5rem;
    padding-bottom: calc(0.75rem + var(--safe-bottom));
    min-height: auto;
  }

  .hero__title {
    font-size: clamp(1.35rem, 5vh, 2rem);
    max-width: 22ch;
  }

  .hero__sub {
    font-size: 0.9rem;
    max-width: 42ch;
  }

  .hero__eyebrow {
    margin-bottom: 0.35rem;
  }

  .hero__actions,
  .hero__proof {
    margin-top: 0.7rem;
  }

  .scene__bg {
    object-position: center 60%;
  }
}

/* Very short portrait (small phones / browser chrome) */
@media (max-height: 720px) and (orientation: portrait) and (max-width: 640px) {
  .hero {
    padding-top: clamp(3.25rem, 10vh, 5rem);
    padding-bottom: calc(30vh + var(--safe-bottom));
  }

  .hero__eyebrow {
    margin-bottom: 0.85rem;
  }

  .hero__sub {
    margin-top: 1.15rem;
  }

  .hero__actions {
    margin-top: 1.4rem;
  }

  .hero__proof {
    margin-top: 1.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (hover: none) {
  .store-btn:hover {
    transform: none;
    box-shadow: 0 4px 0 rgba(18, 18, 18, 0.2);
  }
}

.footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 5;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;

  font-size: 14px;
  color: rgba(31,61,54,.85);
}

.footer p{
  margin:0;
}

.footer a{
  color: var(--ink);
  font-weight:700;
  text-decoration:none;
  border-bottom:1px solid rgba(31,61,54,.3);
}

.footer a:hover{
  opacity:.75;
}