/* Woof Dog Merge — app-store landing, garden palette */
:root {
  --bg: #fff8ee;
  --sky: #e7f6fb;
  --foam: #fffdf9;
  --ink: #3d2618;
  --muted: #5c4333;
  --line: #ead9b8;
  --gold: #f4c43a;
  --gold-edge: #d9a21c;
  --green: #3f9140;
  --green-deep: #2e7d32;
  --shadow: 0 12px 32px rgba(61, 38, 24, 0.1);
  --display: "Paytone One", system-ui, sans-serif;
  --body: "Figtree", system-ui, sans-serif;
  --nav-h: 80px;
  --space: clamp(4.5rem, 10vw, 8.5rem);
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background:
    radial-gradient(1100px 640px at 82% -8%, #d8f0c8 0%, transparent 58%),
    linear-gradient(180deg, var(--sky) 0, var(--bg) 70vh);
  line-height: 1.7;
}

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

button,
a {
  font-family: inherit;
}

button {
  cursor: pointer;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  z-index: 50;
  background: var(--foam);
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 8px;
}

.skip-link:focus {
  top: 12px;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 253, 249, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.nav.is-stuck {
  box-shadow: 0 8px 24px rgba(61, 38, 24, 0.08);
}

.nav__inner {
  width: min(1180px, calc(100% - var(--gutter) * 2));
  margin: 0 auto;
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  font-family: var(--display);
  font-size: 1rem;
}

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

.nav__links {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.nav__links a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 999px;
  transition: background-color 0.2s ease;
}

.nav__links a:hover,
.nav__links a:focus-visible {
  background: #fff3cc;
  outline: none;
}

.nav__end {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 800;
  transition: filter 0.2s ease;
}

.btn--gold {
  background: linear-gradient(#ffe27a, var(--gold));
  color: var(--ink);
  border: 2px solid var(--gold-edge);
}

.btn:hover,
.btn:focus-visible {
  filter: brightness(1.05);
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.nav__toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  padding: 8px;
}

.nav__toggle span {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: var(--ink);
}

.hero,
.section,
.download,
.footer {
  width: min(1180px, calc(100% - var(--gutter) * 2));
  margin-left: auto;
  margin-right: auto;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
  min-height: calc(100dvh - var(--nav-h));
  padding: clamp(3rem, 8vh, 6rem) 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-weight: 700;
  color: var(--green-deep);
}

.eyebrow i,
.card__icon i,
.modal__close i {
  width: 18px;
  height: 18px;
}

h1,
h2 {
  font-family: var(--display);
  line-height: 1.15;
  margin: 0 0 18px;
}

h1 {
  font-size: clamp(2.15rem, 4.4vw, 3.6rem);
  max-width: 14ch;
}

.lead,
.section__head p {
  color: var(--muted);
  margin: 0;
  font-size: 1.12rem;
  max-width: 38rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 14px;
  padding: 10px 16px;
  color: #fff;
  background: #2a1810;
  transition: filter 0.2s ease;
}

.store-btn small {
  display: block;
  opacity: 0.8;
  font-size: 0.68rem;
  font-weight: 500;
}

.store-btn span {
  font-weight: 800;
  line-height: 1.15;
  text-align: left;
}

.store-btn--play {
  background: var(--green-deep);
}

.store-btn:hover,
.store-btn:focus-visible {
  filter: brightness(1.08);
  outline: 2px solid var(--gold-edge);
  outline-offset: 2px;
}

.store-btn i {
  width: 22px;
  height: 22px;
}

.hero__banner {
  width: 100%;
  aspect-ratio: 1024 / 500;
  object-fit: contain;
  border-radius: 24px;
  background: var(--foam);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.section {
  padding: var(--space) 0;
}

.section__head {
  max-width: 40rem;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.section__head h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.cards {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.25rem, 3vw, 2rem);
  padding: 0;
  margin: 0;
}

.card {
  background: var(--foam);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  box-shadow: var(--shadow);
}

.card__icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #fff3cc;
  color: var(--ink);
  margin-bottom: 12px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

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

.shots {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(0.85rem, 2vw, 1.5rem);
}

.shot {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: filter 0.2s ease;
}

.shot:hover,
.shot:focus-visible {
  filter: brightness(1.04);
  outline: 2px solid var(--gold-edge);
  outline-offset: 3px;
}

.shot img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: contain;
  background: #1b120c;
}

.download {
  padding: var(--space) 0 calc(var(--space) * 0.55);
}

.download__card {
  text-align: center;
  background: var(--foam);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1.5rem, 4vw, 3rem);
  box-shadow: var(--shadow);
}

.download__card img {
  margin: 0 auto 12px;
  border-radius: 18px;
}

.download__card h2,
.download__card p {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.download__card p {
  color: var(--muted);
  font-size: 1.12rem;
  max-width: 36rem;
}

.download__card .cta-row {
  justify-content: center;
}

.footer {
  padding: 2.5rem 0 5rem;
  color: var(--muted);
}

.footer__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.brand--foot {
  font-size: 0.95rem;
}

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

.footer a {
  color: var(--ink);
  font-weight: 700;
}

.footer a:hover,
.footer a:focus-visible {
  color: var(--green-deep);
}

.modal,
.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(420px, calc(100vw - 32px));
}

.modal::backdrop,
.lightbox::backdrop {
  background: rgba(61, 38, 24, 0.45);
}

.modal__box {
  position: relative;
  background: var(--foam);
  border-radius: 20px;
  padding: 28px 22px 22px;
  text-align: center;
  border: 1px solid var(--line);
}

.modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #fff3cc;
  color: var(--ink);
}

.lightbox img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: contain;
  background: #1b120c;
  border-radius: 20px;
}

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

  h1 {
    max-width: none;
  }

  .cards {
    grid-template-columns: 1fr 1fr;
  }

  .shots {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .nav__links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--foam);
    border-bottom: 1px solid var(--line);
    padding: 12px 16px 16px;
  }

  .nav__links.is-open {
    display: flex;
  }

  .nav__toggle {
    display: block;
  }

  .nav {
    position: sticky;
  }

  .section,
  .download {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
  }

  .shots {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .cards {
    grid-template-columns: 1fr;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
