/* =========================================================================
   Doggy Daycare — marketing site styles
   Warm storybook toybox: cream world, golden-doodle amber, toy accents.
   ========================================================================= */

/* ---- Tokens ------------------------------------------------------------ */
:root {
  /* Warm cream world (pulled from the app icon) */
  --cream:       #FBF1DA;
  --cream-deep:  #F4E4BE;
  --cream-card:  #FFFBF2;

  /* Golden doodle */
  --amber:       #EBA94C;
  --amber-deep:  #CD8324;
  --wood:        #C98A4B;
  --wood-deep:   #9C6329;

  /* Toybox accents (logo + playroom) */
  --teal:        #2AA69C;
  --teal-deep:   #1C837B;
  --coral:       #EE6A43;
  --coral-deep:  #CF4E28;
  --purple:      #8F72C8;
  --purple-deep: #6E52A6;
  --sky:         #5BA6DE;

  /* Ink */
  --ink:         #4A3526;
  --ink-soft:    #806A54;

  --shadow-soft: 0 14px 34px rgba(120, 82, 38, 0.16);
  --shadow-lift: 0 22px 48px rgba(120, 82, 38, 0.22);
  --ring:        rgba(74, 53, 38, 0.14);

  --maxw: 1080px;
  --radius: 26px;
}

/* ---- Reset-ish --------------------------------------------------------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.68;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3 {
  font-family: "Baloo 2", "Nunito", sans-serif;
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.01em;
}

a { color: var(--teal-deep); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--coral-deep); }

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

/* ---- Layout helpers ---------------------------------------------------- */
.wrap { width: min(100% - 2.4rem, var(--maxw)); margin-inline: auto; }

.eyebrow {
  font-family: "Nunito", sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  color: var(--coral-deep);
  margin: 0 0 0.7rem;
}

.section { padding: clamp(3.6rem, 8vw, 6rem) 0; position: relative; }
.section-title { font-size: clamp(1.85rem, 4.4vw, 2.9rem); font-weight: 800; }
.section-intro {
  max-width: 44ch;
  color: var(--ink-soft);
  font-size: clamp(1.02rem, 2.2vw, 1.18rem);
  margin: 0.9rem 0 0;
}
.section-head { text-align: center; margin-inline: auto; }
.section-head .section-intro { margin-inline: auto; }

/* ---- Buttons ----------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: "Baloo 2", sans-serif;
  font-weight: 700;
  font-size: 1.08rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
  will-change: transform;
}
.btn-primary {
  background: var(--coral);
  color: #fff;
  box-shadow: 0 8px 0 var(--coral-deep), var(--shadow-soft);
}
.btn-primary:hover { transform: translateY(-2px); color: #fff; box-shadow: 0 10px 0 var(--coral-deep), var(--shadow-lift); }
.btn-primary:active { transform: translateY(4px); box-shadow: 0 4px 0 var(--coral-deep); }
.btn-secondary {
  background: var(--cream-card);
  color: var(--ink);
  box-shadow: 0 8px 0 var(--cream-deep), var(--shadow-soft);
}
.btn-secondary:hover { transform: translateY(-2px); color: var(--ink); box-shadow: 0 10px 0 var(--cream-deep), var(--shadow-lift); }
.btn-secondary:active { transform: translateY(4px); box-shadow: 0 4px 0 var(--cream-deep); }

/* =========================================================================
   HERO
   ========================================================================= */
.hero {
  position: relative;
  text-align: center;
  padding: clamp(1.5rem, 4vw, 2.5rem) 0 0;
  background:
    radial-gradient(120% 80% at 50% -10%, #FFF8E7 0%, var(--cream) 55%);
  overflow: hidden;
}

/* Pegboard top for the hanging sign */
.hero-pegs {
  display: flex;
  justify-content: center;
  gap: clamp(9rem, 34vw, 15rem);
  margin-top: 0.4rem;
}
.peg { width: 16px; height: 16px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #b98a54, var(--wood-deep));
  box-shadow: inset 0 -2px 2px rgba(0,0,0,.25);
}

/* The swinging sign */
.sign-hang {
  transform-origin: 50% -6px;
  animation: sway 5.5s ease-in-out infinite;
  display: inline-block;
  position: relative;
  margin-top: -8px;
}
.rope { position: absolute; top: -2px; width: 5px; height: 34px;
  background: linear-gradient(var(--wood-deep), var(--wood));
  border-radius: 4px; transform-origin: top;
}
.rope.left  { left: calc(50% - min(13vw, 5.6rem)); transform: rotate(19deg); }
.rope.right { right: calc(50% - min(13vw, 5.6rem)); transform: rotate(-19deg); }

.sign {
  margin-top: 26px;
  display: inline-block;
  padding: clamp(1.1rem, 3vw, 1.7rem) clamp(1.6rem, 5vw, 3rem);
  background: linear-gradient(160deg, #E7B978 0%, var(--wood) 60%, #b47c3f 100%);
  border-radius: 30px;
  box-shadow: var(--shadow-lift), inset 0 3px 0 rgba(255,255,255,.35), inset 0 -6px 0 rgba(120,70,20,.35);
  position: relative;
}
.sign::before { /* screws */
  content: ""; position: absolute; inset: 12px;
  border-radius: 20px;
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.28);
  pointer-events: none;
}
.sign-inner {
  background: var(--cream-card);
  border-radius: 20px;
  padding: clamp(1rem, 3vw, 1.5rem) clamp(1.4rem, 4vw, 2.4rem);
  box-shadow: inset 0 2px 6px rgba(120,70,20,.18);
}
.wordmark {
  font-family: "Baloo 2", sans-serif;
  font-weight: 800;
  font-size: clamp(2.5rem, 8.5vw, 4.7rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.wordmark .w-doggy  { color: var(--teal); }
.wordmark .w-daycare{ color: var(--coral); }
.wordmark .paw { font-size: 0.5em; }

.hero-tag {
  margin: 1.6rem auto 0;
  max-width: 30ch;
  font-size: clamp(1.15rem, 2.8vw, 1.5rem);
  font-weight: 700;
  color: var(--ink);
}
.hero-sub { color: var(--ink-soft); margin: 0.5rem auto 0; max-width: 40ch; font-size: 1.05rem; }

.hero-cta { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; margin-top: 1.8rem; }
.hero-made { margin-top: 1.4rem; color: var(--ink-soft); font-weight: 700; font-size: 0.98rem; }
.hero-made .heart { color: var(--coral); }

/* The rug / yard where pups wander */
.yard {
  position: relative;
  height: clamp(150px, 22vw, 220px);
  margin-top: clamp(1.4rem, 4vw, 2.6rem);
  border-top-left-radius: 40% 60px;
  border-top-right-radius: 40% 60px;
  background:
    radial-gradient(circle at 12% 40%, var(--coral) 0 7px, transparent 8px),
    radial-gradient(circle at 30% 68%, var(--teal) 0 6px, transparent 7px),
    radial-gradient(circle at 52% 32%, var(--purple) 0 7px, transparent 8px),
    radial-gradient(circle at 70% 62%, var(--amber) 0 7px, transparent 8px),
    radial-gradient(circle at 88% 42%, var(--sky) 0 6px, transparent 7px),
    radial-gradient(circle at 42% 78%, var(--amber) 0 5px, transparent 6px),
    radial-gradient(circle at 78% 82%, var(--coral) 0 5px, transparent 6px),
    linear-gradient(180deg, #FBEAC6, #F3DDB0);
  box-shadow: inset 0 6px 16px rgba(120,70,20,.12);
  overflow: hidden;
}
.yard-floor { /* soft ground shadow line pups walk on */
  position: absolute; left: 0; right: 0; bottom: 0; height: 40%;
  background: linear-gradient(180deg, transparent, rgba(120,70,20,.08));
}

/* Wandering pup — real per-breed sprites, normalized like the game:
   full square canvas, per-breed --scale, per-pose --foot planting. */
.pup {
  --base: clamp(104px, 15vw, 158px);
  position: absolute;
  bottom: 6%;
  left: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  will-change: transform;
}
.pup-inner { transform-origin: 50% 100%; display: flex; align-items: flex-end; }
.pup-body {
  --h: calc(var(--base) * var(--scale, 1));
  height: var(--h); width: auto;
  margin-bottom: calc(var(--h) * var(--foot, 0.1) * -1);
  filter: drop-shadow(0 7px 5px rgba(120,70,20,.24));
}
.pup-face-right .pup-body { transform: scaleX(-1); } /* art faces left; flip to go right */

/* gentle trot bob layered under the 2-frame stand/walk sprite swap */
.pup.is-walking .pup-inner { animation: trot 0.34s ease-in-out infinite; }

.zzz {
  position: absolute; top: -2px; right: -10px;
  font-family: "Baloo 2", sans-serif; font-weight: 800; color: var(--sky);
  opacity: 0; font-size: 1.3rem;
}
.pup.is-napping .zzz { animation: floatz 2.6s ease-in-out infinite; }

/* =========================================================================
   APP TILE strip (below hero)
   ========================================================================= */
.appstrip {
  display: flex; align-items: center; gap: clamp(1.2rem, 4vw, 2.4rem);
  justify-content: center; flex-wrap: wrap;
  background: var(--cream-card);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 4vw, 2.2rem);
  box-shadow: var(--shadow-soft);
  border: 2px solid var(--ring);
  margin-top: -1px;
}
.app-tile {
  width: clamp(104px, 22vw, 148px);
  aspect-ratio: 1;
  border-radius: 24%;
  box-shadow: var(--shadow-lift);
  overflow: hidden;
  flex: none;
  animation: bobtile 4.5s ease-in-out infinite;
}
.app-tile img { width: 100%; height: 100%; object-fit: cover; }
.appstrip-copy { text-align: left; max-width: 34ch; }
.appstrip-copy h3 { font-size: 1.5rem; margin-bottom: 0.3rem; }
.appstrip-copy p { margin: 0; color: var(--ink-soft); }
.badge-row { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.8rem; }
.badge {
  font-weight: 800; font-size: 0.8rem; letter-spacing: 0.02em;
  padding: 0.35rem 0.8rem; border-radius: 999px;
  background: var(--cream-deep); color: var(--ink);
}
.badge.blue { background: #DCEBFA; color: #24557f; }

/* =========================================================================
   PILLARS
   ========================================================================= */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(228px, 1fr));
  gap: 1.2rem;
  margin-top: 2.4rem;
}
.pillar {
  background: var(--cream-card);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow-soft);
  border: 2px solid var(--ring);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.pillar:hover { transform: translateY(-6px) rotate(-0.6deg); box-shadow: var(--shadow-lift); }
.pillar .ic {
  width: 54px; height: 54px; border-radius: 16px;
  display: grid; place-items: center; font-size: 1.7rem;
  margin-bottom: 1rem;
}
.pillar h3 { font-size: 1.28rem; margin-bottom: 0.4rem; }
.pillar p { margin: 0; color: var(--ink-soft); font-size: 1rem; }
.ic.teal   { background: #D3EFEC; }
.ic.coral  { background: #FBDDD1; }
.ic.purple { background: #E5DCF5; }
.ic.amber  { background: #FAE7C4; }

/* =========================================================================
   THE DAY (loop steps) — a real sequence, so numbers earn their place
   ========================================================================= */
.day { background: var(--cream-deep); }
.day-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.steps { display: flex; flex-direction: column; gap: 1.1rem; margin-top: 1.8rem; }
.step { display: flex; gap: 1rem; align-items: flex-start; }
.step .n {
  flex: none;
  width: 44px; height: 44px; border-radius: 14px;
  display: grid; place-items: center;
  font-family: "Baloo 2", sans-serif; font-weight: 800; font-size: 1.25rem;
  color: #fff;
}
.step:nth-child(1) .n { background: var(--teal); }
.step:nth-child(2) .n { background: var(--coral); }
.step:nth-child(3) .n { background: var(--purple); }
.step:nth-child(4) .n { background: var(--amber-deep); }
.step h3 { font-size: 1.16rem; }
.step p { margin: 0.15rem 0 0; color: var(--ink-soft); font-size: 0.98rem; }
.day-art {
  background: radial-gradient(circle at 50% 45%, #FFF7E6, var(--cream));
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow-soft);
  border: 2px solid var(--ring);
}
.day-art img { margin-inline: auto; max-width: 100%; height: auto; animation: bobtile 5s ease-in-out infinite; }
.day-art figcaption { text-align: center; color: var(--ink-soft); font-weight: 700; margin-top: 0.4rem; font-size: 0.92rem; }

/* =========================================================================
   MEET THE DOGS
   ========================================================================= */
.dog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.3rem;
  margin-top: 2.4rem;
}
.dog-card {
  background: var(--cream-card);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem 1.5rem;
  box-shadow: var(--shadow-soft);
  border: 2px solid var(--ring);
  position: relative;
  text-align: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.dog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.dog-card .pin {
  position: absolute; top: 1.1rem; right: 1.1rem;
  font-size: 0.74rem; font-weight: 800; letter-spacing: 0.02em;
  padding: 0.3rem 0.7rem; border-radius: 999px;
  background: var(--cream-deep); color: var(--ink-soft);
  z-index: 2;
}
/* Sprites keep the game's normalization: full square canvas (never trimmed),
   sized by a per-breed --scale, and planted by a per-pose --foot fraction so
   swapping poses re-plants the paws instead of resizing the dog. */
.dog-stage {
  --base: 190px;
  position: relative;
  height: 172px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-bottom: 0.3rem;
}
.dog-stage::after { /* soft ground shadow so the pup feels planted */
  content: ""; position: absolute; left: 50%; bottom: 4px;
  transform: translateX(-50%);
  width: 82px; height: 15px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(120,70,20,.20), transparent);
}
.dog-stage .sprite {
  --h: calc(var(--base) * var(--scale, 1));
  height: var(--h); width: auto;
  margin-bottom: calc(var(--h) * var(--foot, 0.1) * -1);
  filter: drop-shadow(0 5px 4px rgba(120,70,20,.20));
  position: relative; z-index: 1;
}
.dog-card h3 { font-size: 1.45rem; }
.dog-card .breed { color: var(--teal-deep); font-weight: 800; font-size: 0.9rem; margin: 0.1rem 0 0.7rem; }
.dog-card .bio { margin: 0 auto; max-width: 30ch; color: var(--ink-soft); font-size: 0.97rem; }
.dog-card .traits { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center; margin-top: 1rem; }
.trait { font-size: 0.8rem; font-weight: 800; padding: 0.3rem 0.7rem; border-radius: 10px; background: var(--cream-deep); }

/* =========================================================================
   JOIN / TESTFLIGHT
   ========================================================================= */
.join { text-align: center; }
.join-card {
  background: linear-gradient(160deg, #FFF8E8, var(--cream-card));
  border-radius: 34px;
  padding: clamp(2rem, 6vw, 3.4rem);
  box-shadow: var(--shadow-lift);
  border: 2px solid var(--ring);
  max-width: 760px; margin: 2.4rem auto 0;
}
.join-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1.8rem 0 2rem; text-align: left; }
.join-step { background: var(--cream); border-radius: 18px; padding: 1.1rem; }
.join-step .jn { font-family: "Baloo 2", sans-serif; font-weight: 800; color: var(--coral); font-size: 1.5rem; }
.join-step p { margin: 0.2rem 0 0; font-size: 0.94rem; color: var(--ink-soft); }
.join-note { color: var(--ink-soft); font-size: 0.9rem; margin-top: 1.2rem; }

/* =========================================================================
   FOOTER
   ========================================================================= */
.footer { background: var(--ink); color: #F3E4CC; padding: 3rem 0 2.4rem; text-align: center; }
.footer .fmark { font-family: "Baloo 2", sans-serif; font-weight: 800; font-size: 1.6rem; }
.footer .fmark .a { color: #6FD0C7; } .footer .fmark .b { color: #F5936F; }
.footer p { margin: 0.5rem 0; color: #D8C3A6; }
.footer a { color: #F3E4CC; font-weight: 700; }
.footer a:hover { color: #F5936F; }
.footer-links { display: flex; gap: 1.4rem; justify-content: center; flex-wrap: wrap; margin-top: 1rem; }
.footer-fine { font-size: 0.85rem; color: #B49F84; margin-top: 1.4rem; }

/* =========================================================================
   PRIVACY / legal page
   ========================================================================= */
.legal { max-width: 720px; margin-inline: auto; padding: clamp(2.4rem, 6vw, 4rem) 0; }
.legal .back { display: inline-block; font-weight: 800; margin-bottom: 1.4rem; }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); }
.legal .updated { color: var(--ink-soft); font-weight: 700; margin: 0.4rem 0 2rem; }
.legal h2 { font-size: 1.4rem; margin: 2.2rem 0 0.6rem; color: var(--teal-deep); }
.legal p, .legal li { color: var(--ink); }
.legal ul { padding-left: 1.2rem; }
.legal li { margin: 0.35rem 0; }
.tldr {
  background: var(--cream-card);
  border-left: 6px solid var(--teal);
  border-radius: 16px;
  padding: 1.2rem 1.4rem;
  box-shadow: var(--shadow-soft);
  margin: 1.6rem 0;
}
.tldr strong { color: var(--teal-deep); }

/* =========================================================================
   ANIMATIONS
   ========================================================================= */
@keyframes sway { 0%,100% { transform: rotate(-1.6deg); } 50% { transform: rotate(1.6deg); } }
@keyframes trot {
  0%,100% { transform: translateY(0) rotate(-1deg); }
  50%     { transform: translateY(-7%) rotate(1deg); }
}
@keyframes bobtile { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes floatz {
  0%   { opacity: 0; transform: translate(0, 0) scale(0.7); }
  30%  { opacity: 1; }
  100% { opacity: 0; transform: translate(10px, -22px) scale(1.1); }
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 720px) {
  .day-inner { grid-template-columns: 1fr; }
  .appstrip-copy { text-align: center; }
  .join-steps { grid-template-columns: 1fr; }
}

/* =========================================================================
   REDUCED MOTION — respect it fully
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  .btn { transition: none; }
}
