/* ==========================================================================
   Pup Pocket — marketing landing page
   Design tokens and layout follow design_handoff_pup_pocket_landing/README.md
   ========================================================================== */

:root {
  /* Surfaces & ink */
  --bg: #f6f1e7;
  --surface: #fffdf8;
  --ink: #2f2a24;
  --ink-soft: #4a4335;
  --ink-muted: #7a7263;
  --ink-faint: #9b8f7a;
  --border: #ece2cd;
  --dark-card: #33291f;
  --dark-card-text: #f6f1e7;
  --dark-card-sub: #d8c6ac;

  /* Brand */
  --sage: #6f8f66;
  --sage-deep: #5f7d57;
  --sage-tint-bg: #f1f5ee;
  --sage-tint-border: #d9e4d4;
  --sage-tint-chip: #dfeada;
  --sage-soft: #eef2ea;
  --sage-row-done: #e2ebdd;
  --sage-row-pending: #fbfcfa;
  --clay: #a07a4e;
  --clay-tint: #f0e3d5;
  --gold: #d9b56a;
  --circle-green: #c8bda6;
  --phone-bezel: #0c0b0a;

  /* Shadows */
  --sh-primary: 0 10px 22px rgba(111, 143, 102, .32);
  --sh-primary-hover: 0 16px 30px rgba(111, 143, 102, .38);
  --sh-card: 0 8px 18px rgba(47, 42, 36, .05);
  --sh-card-hover: 0 20px 34px rgba(47, 42, 36, .11);
  --sh-float: 0 14px 26px rgba(47, 42, 36, .12);
  --sh-float-dark: 0 16px 28px rgba(47, 42, 36, .22);
  --sh-hero-phone: 0 34px 60px rgba(47, 42, 36, .28);
  --sh-shot: 0 16px 30px rgba(47, 42, 36, .16);
  --sh-shot-hover: 0 28px 44px rgba(47, 42, 36, .24);
  --sh-step-n: 0 10px 18px rgba(111, 143, 102, .3);

  /* Type */
  --font-body: Archivo, system-ui, sans-serif;
  --font-display: "Archivo Black", Archivo, system-ui, sans-serif;
  --font-ui: "DM Sans", Archivo, system-ui, sans-serif;

  /* Layout */
  --content: 1180px;
  --gutter: 28px;
  --section-gap: 88px;
  --phone-w: 300px;
  --glow: 470px;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; }

a { color: var(--sage-deep); text-decoration: none; }
a:hover { color: var(--ink); }

::selection { background: var(--sage-tint-chip); }

:focus-visible {
  outline: 3px solid var(--sage);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  max-width: var(--content);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-top: var(--section-gap); }

/* Icons — sized by class, coloured by `currentColor`. */
.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--14 { width: 14px; height: 14px; }
.icon--16 { width: 16px; height: 16px; }
.icon--17 { width: 17px; height: 17px; }
.icon--19 { width: 19px; height: 19px; }
.icon--22 { width: 22px; height: 22px; }
.icon--sage { color: var(--sage); }

/* Shared bits ------------------------------------------------------------- */

.eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--clay);
}

.eyebrow--pill,
.eyebrow--sage {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 99px;
}
.eyebrow--pill { background: var(--clay-tint); color: var(--clay); }
.eyebrow--sage { background: var(--sage-tint-chip); color: var(--sage-deep); }

.section__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 44px;
  line-height: 1;
  letter-spacing: -.02em;
  text-transform: uppercase;
  margin-top: 14px;
}

.section__head { max-width: 620px; }

.section__lede {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-top: 14px;
  text-wrap: pretty;
}

.card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 26px;
}

.chip {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
}
.chip--sage { background: var(--sage-soft); color: var(--sage-deep); }

/* Buttons ----------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 15px;
  border-radius: 99px;
  white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease,
              border-color .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-3px); }

.btn--primary {
  background: var(--sage);
  color: var(--surface);
  padding: 15px 26px;
  box-shadow: var(--sh-primary);
}
.btn--primary:hover { color: var(--surface); box-shadow: var(--sh-primary-hover); }

.btn--secondary {
  background: var(--surface);
  color: var(--ink);
  border: 2px solid var(--border);
  padding: 13px 24px;
}
.btn--secondary:hover { color: var(--ink); border-color: var(--sage); }

.btn--light {
  background: var(--bg);
  color: var(--ink);
  padding: 15px 26px;
}
.btn--light:hover { color: var(--ink); }

.btn--ghost {
  background: rgba(246, 241, 231, .1);
  color: var(--bg);
  border: 2px solid rgba(246, 241, 231, .24);
  padding: 13px 24px;
}
.btn--ghost:hover { color: var(--bg); background: rgba(246, 241, 231, .18); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(246, 241, 231, .86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-block: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-right: auto;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }

.brand__mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: block;
  animation: pp-bob 3.6s ease-in-out infinite;
}

.brand__word {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 21px;
  letter-spacing: -.02em;
}

.nav__link {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-soft);
}
.nav__link:hover { color: var(--ink); }

.nav__cta {
  display: inline-flex;
  align-items: center;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 14px;
  padding: 11px 20px;
  border-radius: 99px;
  transition: transform .18s ease, background .18s ease;
}
.nav__cta:hover {
  background: var(--sage);
  color: var(--surface);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 40px;
  align-items: center;
  padding-top: 60px;
  padding-bottom: 30px;
}

.hero__copy { position: relative; z-index: 1; }

.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 66px;
  line-height: .94;
  letter-spacing: -.03em;
  text-transform: uppercase;
  margin-top: 20px;
  text-wrap: balance;
}

.hero__accent {
  color: var(--sage);
  display: inline-block;
  animation: pp-bob 3.8s ease-in-out infinite;
}

.hero__lede {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 470px;
  margin-top: 22px;
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

/* The phone and its three floating cards share one fixed-width relative
   wrapper, so every card offset stays put no matter how the column resizes. */
.hero__stage {
  position: relative;
  z-index: 1;
  width: var(--phone-w);
  margin: 82px auto 78px;
}

.hero__glow {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  width: var(--glow);
  height: var(--glow);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, #e6eddf 0%, rgba(246, 241, 231, 0) 68%);
}

.hero__phone {
  position: relative;
  width: var(--phone-w);
  padding: 11px;
  border-radius: 54px;
  background: var(--phone-bezel);
  box-shadow: var(--sh-hero-phone);
  animation: pp-float 7s ease-in-out infinite;
}

.hero__phone-screen {
  border-radius: 43px;
  overflow: hidden;
  background: var(--bg);
  /* Screenshots are 878x1897, already cropped so the app's own tab bar sits flush at the foot;
     the ratio below matches that exactly — replacements must share it. */
  aspect-ratio: 878 / 1897;
}

.hero__phone-screen img,
.shot__screen img {
  width: 100%;
  height: auto;
  display: block;
}

/* Floating cards ---------------------------------------------------------- */

.floater {
  position: absolute;
  border-radius: 20px;
  padding: 12px 15px;
  animation: pp-float 5.6s ease-in-out infinite;
}

.floater--walk,
.floater--booster {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 2px solid var(--border);
  box-shadow: var(--sh-float);
}

.floater--walk {
  top: -64px;
  left: -38px;
  rotate: -6deg;
}

.floater--streak {
  top: -58px;
  right: -40px;
  padding: 12px 16px;
  background: var(--dark-card);
  color: var(--dark-card-text);
  box-shadow: var(--sh-float-dark);
  rotate: 8deg;
  animation-duration: 5s;
  animation-delay: .4s;
}

.floater--booster {
  bottom: -62px;
  right: -38px;
  rotate: 5deg;
  animation-duration: 6.6s;
  animation-delay: .8s;
}

.floater__chip {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
}
.floater__chip--sage { background: var(--sage-tint-chip); color: var(--sage-deep); }
.floater__chip--clay { background: var(--clay-tint); color: var(--clay); }

.floater__ring {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  border: 2px solid var(--sage);
  animation: pp-pulse 2.6s ease-out infinite;
}

.floater__title {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 12px;
  text-transform: uppercase;
}

.floater__sub {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-faint);
}

.floater__eyebrow {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
}

.floater__stat {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.1;
}

/* --------------------------------------------------------------------------
   Marquee
   -------------------------------------------------------------------------- */

.marquee {
  margin-top: 18px;
  padding-block: 16px;
  background: var(--dark-card);
  color: var(--dark-card-text);
  overflow: hidden;
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: pp-marquee 34s linear infinite;
}

.marquee__list {
  display: flex;
  align-items: center;
  gap: 34px;
  padding-right: 34px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 15px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.marquee__sep { color: var(--gold); }

/* --------------------------------------------------------------------------
   Features
   -------------------------------------------------------------------------- */

.features { padding-bottom: 20px; }

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.feature {
  padding: 24px;
  box-shadow: var(--sh-card);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.feature:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-card-hover);
  border-color: var(--sage-tint-border);
}

.feature__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 17px;
  letter-spacing: .02em;
  text-transform: uppercase;
  margin-top: 18px;
}

.feature__body {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin-top: 9px;
  text-wrap: pretty;
}

/* --------------------------------------------------------------------------
   Screens gallery
   -------------------------------------------------------------------------- */

.screens__head {
  display: flex;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}
.screens__head > div { max-width: 560px; }

.screens__note {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 340px;
  margin: 0 0 6px auto;
}

.screens__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 40px;
}

.shot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.shot__phone {
  width: 100%;
  max-width: 210px;
  padding: 8px;
  border-radius: 34px;
  background: var(--phone-bezel);
  box-shadow: var(--sh-shot);
  transition: transform .28s cubic-bezier(.2, .7, .3, 1), box-shadow .28s ease;
}
.shot__phone:hover {
  transform: translateY(-10px) rotate(-1.2deg);
  box-shadow: var(--sh-shot-hover);
}

.shot__screen {
  border-radius: 27px;
  overflow: hidden;
  background: var(--bg);
  aspect-ratio: 878 / 1897;
}

.shot__caption { text-align: center; }

.shot__label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.shot__text {
  display: block;
  max-width: 210px;
  margin-top: 5px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-muted);
}

/* --------------------------------------------------------------------------
   How it works
   -------------------------------------------------------------------------- */

.how__head {
  text-align: center;
  max-width: 560px;
  margin-inline: auto;
}

.how__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 44px;
}

.step {
  position: relative;
  padding: 28px 24px 26px;
}

.step__n {
  position: absolute;
  top: -18px;
  left: 24px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: var(--sage);
  color: var(--surface);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 19px;
  box-shadow: var(--sh-step-n);
}

.step__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 18px;
  text-transform: uppercase;
  margin-top: 22px;
}

.step__body {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-top: 10px;
  text-wrap: pretty;
}

/* --------------------------------------------------------------------------
   Puppy mode
   -------------------------------------------------------------------------- */

.puppy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
  padding: 46px;
  border-radius: 34px;
  background: var(--sage-tint-bg);
  border: 2px solid var(--sage-tint-border);
}

.puppy__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 40px;
  line-height: 1.02;
  letter-spacing: -.02em;
  text-transform: uppercase;
  margin-top: 18px;
}

.puppy__lede {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 420px;
  margin-top: 14px;
  text-wrap: pretty;
}

.puppy__stats {
  display: flex;
  gap: 22px;
  margin-top: 26px;
}

.stat__n {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 30px;
  color: var(--sage-deep);
}

.stat__label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.checklist {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checkrow {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 16px;
  border-radius: 16px;
  background: var(--sage-row-pending);
  color: var(--circle-green);
  box-shadow: 0 4px 12px rgba(47, 42, 36, .04);
}
.checkrow--done { background: var(--sage-row-done); color: var(--sage); }

.checkrow__label {
  margin-right: auto;
  font-size: 14px;
  font-weight: 800;
  color: var(--ink-soft);
}
.checkrow--done .checkrow__label { color: var(--sage-deep); }

.checkrow__when {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--sage-deep);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Download CTA
   -------------------------------------------------------------------------- */

.cta {
  position: relative;
  overflow: hidden;
  padding: 58px 48px;
  border-radius: 38px;
  background: var(--dark-card);
  color: var(--dark-card-text);
  text-align: center;
}

.cta__blob {
  position: absolute;
  border-radius: 50%;
}
.cta__blob--sage {
  top: -60px;
  left: -40px;
  width: 220px;
  height: 220px;
  background: rgba(111, 143, 102, .28);
}
.cta__blob--gold {
  bottom: -80px;
  right: -30px;
  width: 260px;
  height: 260px;
  background: rgba(217, 181, 106, .16);
}

.cta__inner { position: relative; }

.cta__mark {
  width: 92px;
  height: 92px;
  border-radius: 26px;
  display: block;
  margin-inline: auto;
  animation: pp-wag 3.4s ease-in-out infinite;
}

.cta__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 50px;
  line-height: .98;
  letter-spacing: -.03em;
  text-transform: uppercase;
  margin-top: 22px;
}

.cta__lede {
  font-size: 16px;
  line-height: 1.55;
  color: var(--dark-card-sub);
  max-width: 430px;
  margin: 16px auto 0;
  text-wrap: pretty;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 30px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 26px;
  padding-top: 44px;
  padding-bottom: 54px;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}

.site-footer__brand img { border-radius: 12px; display: block; }

.site-footer__word {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 17px;
}

.site-footer__legal {
  margin-left: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-faint);
}

.site-footer__link {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-muted);
}
.site-footer__link:hover { color: var(--ink); }

/* --------------------------------------------------------------------------
   Legal pages (privacy.html) — long-form prose in the same type and palette
   -------------------------------------------------------------------------- */

.legal {
  padding-top: 52px;
  padding-bottom: 20px;
}

.legal__card {
  max-width: 820px;
  margin-inline: auto;
  padding: 52px 48px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 34px;
  box-shadow: var(--sh-card);
}

.legal__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 40px;
  line-height: 1.02;
  letter-spacing: -.02em;
  text-transform: uppercase;
  margin-top: 14px;
  text-wrap: balance;
}

.legal h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 20px;
  letter-spacing: .02em;
  text-transform: uppercase;
  margin-top: 38px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}
.legal h2:first-of-type { border-top: 0; padding-top: 0; }

.legal p,
.legal li {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.legal p { margin-top: 12px; }
.legal h2 + p { margin-top: 10px; }

/* The broad prose rules above would otherwise swallow the shared eyebrow. */
.legal p.eyebrow {
  font-size: 12px;
  line-height: 1.4;
  color: var(--clay);
}

.legal strong { font-weight: 700; color: var(--ink); }

.legal a {
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}

.legal ul {
  list-style: disc;
  padding-left: 20px;
  margin-top: 12px;
}
.legal li { margin-top: 7px; }
.legal li::marker { color: var(--circle-green); }

/* Pull-quote intro, in the same sage tint as the puppy-mode panel. */
.legal__lede {
  margin-top: 24px;
  padding: 22px 24px;
  background: var(--sage-tint-bg);
  border: 2px solid var(--sage-tint-border);
  border-radius: 20px;
}
.legal__lede p:first-child { margin-top: 0; }

.legal__note {
  margin-top: 24px;
  padding: 2px 0 2px 16px;
  border-left: 3px solid var(--border);
}
.legal__note p { margin-top: 0; font-size: 14px; color: var(--ink-muted); }

.legal__table-wrap {
  margin-top: 18px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.legal table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 14px;
}

.legal th,
.legal td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px 12px 0;
  border-bottom: 1px solid var(--border);
}
.legal th:last-child,
.legal td:last-child { padding-right: 0; }

.legal th {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  border-bottom: 2px solid var(--border);
}

.legal td { color: var(--ink-soft); line-height: 1.55; }

.legal__contact {
  margin-top: 26px;
  padding: 22px 24px;
  background: var(--clay-tint);
  border-radius: 20px;
}
.legal__contact p:first-child { margin-top: 0; }

.legal p.legal__end {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-faint);
}

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */

/* `translate` is animated on its own so each card keeps its static `rotate`. */
@keyframes pp-float {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -14px; }
}
@keyframes pp-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
@keyframes pp-wag {
  0%, 100% { transform: rotate(-7deg); }
  50%      { transform: rotate(7deg); }
}
@keyframes pp-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes pp-pulse {
  0%, 100% { transform: scale(1);   opacity: .55; }
  50%      { transform: scale(1.5); opacity: 0; }
}

/* Scroll reveal. Only ever hides content when JS is running (`html.js`) and
   motion is welcome — main.js also force-reveals everything as a backstop. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s cubic-bezier(.2, .7, .3, 1) var(--reveal-delay, 0ms),
              transform .6s cubic-bezier(.2, .7, .3, 1) var(--reveal-delay, 0ms);
}
.js [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   Responsive
   The prototype is desktop-only; these follow the fallbacks documented in the
   handoff (hero stacks, grids step down, gallery becomes a snap row).
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .hero { grid-template-columns: minmax(0, 1fr) 360px; }
  .hero__title { font-size: 58px; }
  .site-header .nav { gap: 20px; }
}

@media (max-width: 940px) {
  :root { --section-gap: 72px; }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding-bottom: 10px;
  }
  .hero__title { font-size: 54px; }
  .hero__lede { max-width: none; }
  .hero__stage { margin: 96px auto 86px; }

  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .screens__grid { grid-template-columns: repeat(2, 1fr); }
  .screens__note { margin-left: 0; }

  .puppy {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding: 38px 30px;
  }
  .puppy__lede { max-width: none; }

  /* Five footer links no longer fit beside the brand — give them their own row. */
  .site-footer { gap: 18px 24px; }
  .site-footer__brand { width: 100%; }
}

@media (max-width: 820px) {
  .how__grid { grid-template-columns: minmax(0, 1fr); gap: 34px; }
}

/* Below this the four nav anchors stop fitting; brand + CTA carry the header. */
@media (max-width: 760px) {
  .nav__link { display: none; }
}

@media (max-width: 640px) {
  :root { --gutter: 20px; --phone-w: 268px; --glow: 340px; }

  .hero { padding-top: 40px; }
  .hero__title { font-size: 40px; }
  .hero__lede { font-size: 16px; }
  .section__title { font-size: 30px; }
  .cta__title { font-size: 32px; }
  .puppy__title { font-size: 30px; }

  .hero__actions .btn { flex: 1 1 auto; justify-content: center; }

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

  /* Gallery becomes a horizontal snap row rather than a cramped 2-up grid. */
  .screens__grid {
    display: flex;
    gap: 18px;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    padding-bottom: 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }
  .shot {
    flex: 0 0 210px;
    scroll-snap-align: center;
  }

  .puppy { padding: 34px 22px; }
  .checkrow { padding: 15px 14px; gap: 10px; }

  .cta { padding: 44px 24px; }
  .cta__mark { width: 76px; height: 76px; }
  /* Once the store buttons wrap, match their widths so the stack reads evenly. */
  .cta__actions .btn { flex: 1 1 160px; max-width: 240px; justify-content: center; }

  .legal { padding-top: 34px; }
  .legal__card { padding: 32px 22px; border-radius: 26px; }
  .legal__title { font-size: 30px; }
  .legal h2 { font-size: 18px; margin-top: 32px; padding-top: 26px; }
  .legal__lede,
  .legal__contact { padding: 18px 18px; }

  .site-footer { gap: 16px 22px; }
  .site-footer__brand { width: 100%; flex-wrap: wrap; }
  .site-footer__legal { margin-left: 0; width: 100%; }
}

@media (max-width: 400px) {
  .hero__title { font-size: 34px; }
  .floater--walk { left: -22px; }
  .floater--streak { right: -22px; }
  .floater--booster { right: -20px; }
}
