/* The welcome page at dogsout.app. Builds on site.css (palette, top bar, floating
   background, cards, footer). */

body.home {
  /* Text sits straight on the background here, so the dogs float a little softer than in the app. */
  --floaty-strength: 0.75;
  background:
    radial-gradient(1200px 500px at 50% -120px, var(--surface-2), transparent 70%),
    var(--ground);
}

.home main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px 4rem;
}

.home h2 {
  font-size: clamp(1.45rem, 3.4vw, 1.9rem);
  font-weight: 750;
  letter-spacing: -0.02em;
  text-align: center;
  margin: 0 0 1.75rem;
  text-wrap: balance;
}

/* ---------- hero ---------- */
.hero { padding-top: 1.5rem; text-align: center; }
.hero-art {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 28px;
  box-shadow: 0 18px 50px -20px rgba(13, 40, 24, 0.35);
}
.hero-text { max-width: 720px; margin: 2.25rem auto 0; }
.home .hero h1 {
  font-size: clamp(2rem, 5.5vw, 3.1rem);
  line-height: 1.07;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin: 0 0 1rem;
}
.home .hero .lede { margin: 0 auto 1.75rem; font-size: clamp(1.02rem, 2.2vw, 1.18rem); }
.trust { color: var(--ink-soft); font-size: 0.92rem; margin: 1rem auto 0; max-width: none; }

/* ---------- store buttons ---------- */
.home .stores { justify-content: center; gap: 0.75rem; margin: 0; }
.home .store {
  gap: 0.65rem;
  padding: 0.6rem 1.25rem 0.6rem 1rem;
  border-radius: 14px;
  min-width: 11.5rem;
  text-align: left;
  line-height: 1.15;
  font-size: 1.1rem;
  font-weight: 700;
  background: #0D2818;
  color: #fff;
  transition: transform 0.12s ease, background 0.12s ease;
}
.home .store svg { width: 26px; height: 26px; flex: none; }
.home .store small { display: block; font-size: 0.7rem; font-weight: 500; opacity: 0.85; }
.home .store.primary { background: var(--accent); }
.home .store:hover { background: var(--accent-ink); }
@media (prefers-reduced-motion: no-preference) {
  .home .store:hover { transform: translateY(-2px); }
}

/* ---------- app previews ---------- */
.previews { margin-top: 5rem; }
.shots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.shots figure { margin: 0; text-align: center; }
.shots img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 22px;
  box-shadow: 0 12px 34px -16px rgba(13, 40, 24, 0.4);
}
.shots figcaption { margin-top: 0.75rem; font-weight: 650; font-size: 0.95rem; }

@media (max-width: 760px) {
  /* Swipe through the previews like the app itself. */
  .shots {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 62%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin: 0 -16px;
    padding: 0 16px 1rem;
    scrollbar-width: none;
  }
  .shots::-webkit-scrollbar { display: none; }
  .shots figure { scroll-snap-align: center; }
}

/* ---------- features ---------- */
.features { margin-top: 5rem; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
}
@media (min-width: 1000px) {
  .feature-grid { grid-template-columns: repeat(4, 1fr); }
}
.feature {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 20px;
  padding: 1.4rem 1.4rem 1.2rem;
}
.feature .emoji {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  font-size: 1.4rem;
  border-radius: 14px;
  background: var(--surface-2);
  margin-bottom: 0.8rem;
}
.feature h3 { margin: 0 0 0.3rem; font-size: 1.08rem; letter-spacing: -0.01em; }
.feature h3 .new {
  display: inline-block;
  vertical-align: 0.15em;
  margin-left: 0.3rem;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.feature p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- how it works ---------- */
.steps { margin-top: 5rem; }
.steps ol {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0 auto;
  max-width: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1rem;
}
.steps li {
  counter-increment: step;
  text-align: center;
  padding: 0 0.5rem;
}
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  margin: 0 auto 0.75rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
}
.steps strong { display: block; font-size: 1.05rem; margin-bottom: 0.2rem; }
.steps span { color: var(--ink-soft); }

/* ---------- privacy note ---------- */
.privacy-band {
  margin: 4.5rem auto 0;
  max-width: 760px;
  display: flex;
  gap: 1rem;
  align-items: center;
  background: var(--surface-2);
  border-radius: 20px;
  padding: 1.2rem 1.4rem;
}
.privacy-band .emoji { font-size: 1.6rem; }
.privacy-band p { margin: 0; color: var(--ink); }

/* ---------- closing call to action ---------- */
.cta {
  margin-top: 4.5rem;
  text-align: center;
  background: linear-gradient(160deg, #2E9E6B, #237A53);
  color: #fff;
  border-radius: 28px;
  padding: clamp(2rem, 6vw, 3.25rem) 1.25rem;
}
.home .cta h2 { color: #fff; margin-bottom: 1.5rem; }
.home .cta .store { background: #fff; color: #0D2818; }
.home .cta .store.primary { background: #0D2818; color: #fff; }
.home .cta .store:hover { background: #E6F4EC; color: #0D2818; }

/* ---------- help & legal ---------- */
.help { margin-top: 5rem; }
.home .help h2 { font-size: 1.25rem; }
.home .cards { margin-bottom: 0; }

.home footer { margin-top: 3rem; }

@media (max-width: 480px) {
  .home .store { min-width: 0; flex: 1 1 100%; justify-content: center; }
  .pill { display: none; }
  .hero-art { border-radius: 18px; }
  .privacy-band { flex-direction: column; text-align: center; }
}
