/* =========================================================================
   Doggo — landing page
   Aesthetic: "sunny sticker-book" — glossy 3D stickers, sky→cream gradients,
   warm shadows, playful but premium. Bricolage Grotesque + Nunito.
   ========================================================================= */

:root {
  /* sky */
  --sky-top: #6FCBF5;
  --sky-mid: #A7E0FB;
  --sky-low: #DCF2FF;
  --sky: #38BDF8;
  --sky-deep: #0EA5E9;
  --sky-ink: #0B5E8A;

  /* warm ground */
  --cream: #FAF6EE;
  --cream-2: #FFFDF8;
  --sand: #F2E9D8;

  /* accents */
  --sun: #FBB43A;
  --sun-deep: #F59E0B;
  --grass: #2FBF71;
  --coral: #FF7A66;

  /* ink */
  --ink: #2A2520;
  --ink-soft: #574F45;
  --muted: #8C8478;

  /* shadows — warm + sky tinted */
  --sh-warm: 0 18px 44px -18px rgba(120, 92, 56, .42);
  --sh-warm-lg: 0 40px 80px -30px rgba(120, 92, 56, .5);
  --sh-sky: 0 16px 30px -10px rgba(14, 165, 233, .5);
  --sh-sun: 0 16px 30px -10px rgba(245, 158, 11, .5);
  --sticker-shadow: drop-shadow(0 14px 16px rgba(78, 58, 30, .28));

  --r-lg: 36px;
  --r-md: 24px;
  --r-sm: 16px;

  --maxw: 1180px;
  --ease: cubic-bezier(.2, .8, .2, 1);

  --font-display: "Bricolage Grotesque", "Nunito", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
em { font-style: normal; color: var(--sky-deep); position: relative; white-space: nowrap; }
em::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: .04em; height: .42em;
  background: linear-gradient(90deg, rgba(251,180,58,.55), rgba(255,122,102,.45));
  border-radius: 999px; z-index: -1; transform: rotate(-1.2deg);
}

.skip-link {
  position: fixed; left: 50%; top: -60px; transform: translateX(-50%);
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px;
  z-index: 200; transition: top .2s; font-weight: 700;
}
.skip-link:focus { top: 12px; }

/* film grain */
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .04; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ===================== buttons ===================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 800; font-size: 1rem;
  border: 0; border-radius: 999px; padding: 16px 26px; cursor: pointer;
  white-space: nowrap; transition: transform .14s var(--ease), box-shadow .2s, filter .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.96); }
.btn-sm { padding: 11px 20px; font-size: .94rem; }
.btn-primary { background: linear-gradient(180deg, var(--sky), var(--sky-deep)); color: #fff; box-shadow: var(--sh-sky); }
.btn-primary:hover { filter: brightness(1.05); transform: translateY(-2px); }
.btn-sun { background: linear-gradient(180deg, var(--sun), var(--sun-deep)); color: #4a2c00; box-shadow: var(--sh-sun); }
.btn-sun:hover { filter: brightness(1.04); transform: translateY(-2px); }

/* ===================== nav ===================== */
.nav {
  position: sticky; top: 0; z-index: 100;
  padding: 14px clamp(16px, 4vw, 40px);
  transition: padding .25s var(--ease), background .25s, box-shadow .25s, backdrop-filter .25s;
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; gap: 18px;
}
.nav.scrolled {
  background: rgba(255, 253, 248, .8);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  box-shadow: 0 1px 0 rgba(120, 92, 56, .1), 0 10px 30px -20px rgba(120, 92, 56, .5);
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-logo {
  width: 40px; height: 40px; border-radius: 12px; object-fit: cover;
  box-shadow: 0 6px 14px -4px rgba(120, 92, 56, .45), inset 0 0 0 1px rgba(120, 92, 56, .08);
}
.footer .brand-logo { width: 36px; height: 36px; box-shadow: 0 6px 14px -4px rgba(0,0,0,.4), inset 0 0 0 1px rgba(255,255,255,.12); }
.brand-name {
  font-family: var(--font-display); font-weight: 800; font-size: 1.4rem;
  letter-spacing: -.02em; color: var(--ink);
}
.nav-links { margin-left: auto; display: flex; gap: 8px; }
.nav-links a {
  font-weight: 700; color: var(--ink-soft); padding: 8px 14px; border-radius: 999px;
  transition: background .2s, color .2s;
}
.nav-links a:hover { background: rgba(14,165,233,.1); color: var(--sky-ink); }
.nav-cta { margin-left: 4px; }

/* ===================== hero ===================== */
.hero { position: relative; padding-top: clamp(20px, 5vw, 60px); }
.hero-sky {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 38%, var(--sky-low) 70%, var(--cream) 100%);
  overflow: hidden;
}
.sun {
  position: absolute; top: -90px; right: -60px; width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,247,214,.95) 0%, rgba(255,231,150,.6) 38%, rgba(255,231,150,0) 70%);
  filter: blur(4px);
}
.cloud {
  position: absolute; background: #fff; border-radius: 100px; opacity: .9;
  filter: blur(2px); box-shadow: 0 30px 40px -20px rgba(70,120,160,.25);
}
.cloud::before, .cloud::after { content: ""; position: absolute; background: #fff; border-radius: 50%; }
.cloud-1 { width: 150px; height: 38px; top: 14%; left: 8%; animation: drift 26s linear infinite; }
.cloud-1::before { width: 70px; height: 70px; top: -34px; left: 22px; }
.cloud-1::after { width: 52px; height: 52px; top: -24px; left: 78px; }
.cloud-2 { width: 110px; height: 30px; top: 30%; left: 62%; opacity: .8; animation: drift 34s linear infinite reverse; }
.cloud-2::before { width: 54px; height: 54px; top: -26px; left: 16px; }
.cloud-2::after { width: 40px; height: 40px; top: -18px; left: 58px; }
.cloud-3 { width: 90px; height: 26px; top: 9%; left: 44%; opacity: .7; animation: drift 40s linear infinite; }
.cloud-3::before { width: 44px; height: 44px; top: -22px; left: 12px; }
.cloud-3::after { width: 34px; height: 34px; top: -14px; left: 48px; }
@keyframes drift { from { transform: translateX(-30px); } to { transform: translateX(40px); } }

.hero-grid {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(24px, 5vw, 56px) clamp(16px, 4vw, 40px) 0;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 4vw, 56px);
  align-items: center; min-height: min(78vh, 720px);
}
.hero-copy { max-width: 580px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.7); color: var(--sky-ink);
  font-weight: 800; font-size: .82rem; letter-spacing: .01em;
  padding: 8px 15px; border-radius: 999px; margin-bottom: 22px;
  box-shadow: 0 6px 16px -8px rgba(14,165,233,.5), inset 0 0 0 1px rgba(255,255,255,.8);
}
.hero h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.6rem, 6.2vw, 4.7rem); line-height: .98; letter-spacing: -.03em;
  color: var(--ink); margin-bottom: 20px;
}
.lede { font-size: clamp(1.05rem, 1.8vw, 1.32rem); color: var(--ink-soft); font-weight: 600; max-width: 30ch; }

/* waitlist form */
.waitlist-form { margin-top: 30px; max-width: 460px; }
.field {
  display: flex; gap: 8px; background: #fff; padding: 7px; border-radius: 999px;
  box-shadow: var(--sh-warm), inset 0 0 0 1.5px rgba(120,92,56,.08);
  transition: box-shadow .2s, transform .2s;
}
.field:focus-within { box-shadow: var(--sh-warm), inset 0 0 0 2px var(--sky-deep); }
.field input {
  flex: 1; min-width: 0; border: 0; background: transparent; outline: none;
  font-family: var(--font-body); font-size: 1.02rem; font-weight: 600; color: var(--ink);
  padding: 0 10px 0 18px;
}
.field input::placeholder { color: #b9b1a4; }
.field .btn { flex-shrink: 0; }
.form-note { margin-top: 12px; font-size: .86rem; color: var(--muted); font-weight: 600; }
.form-status {
  margin-top: 10px; font-weight: 800; font-size: .92rem; min-height: 1.1em;
  opacity: 0; transform: translateY(-2px); transition: opacity .25s, transform .25s;
}
.form-status.show { opacity: 1; transform: none; }
.form-status.ok { color: var(--grass); }
.form-status.err { color: var(--coral); }

/* hero stage / phone */
.hero-stage { position: relative; justify-self: center; width: 100%; max-width: 380px; aspect-ratio: 3 / 4; }
.phone {
  position: absolute; inset: 0; margin: auto; width: 76%; aspect-ratio: 9 / 19;
  background: #1c1a17; border-radius: 44px; padding: 9px;
  box-shadow: var(--sh-warm-lg), inset 0 0 0 2px rgba(255,255,255,.08);
  transform: rotate(-3deg);
  animation: phone-float 7s ease-in-out infinite;
}
.phone-screen { width: 100%; height: 100%; border-radius: 36px; object-fit: cover; background: var(--sky-low); }
.phone-notch {
  position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  width: 38%; height: 22px; background: #1c1a17; border-radius: 0 0 14px 14px; z-index: 2;
}
@keyframes phone-float { 0%,100% { transform: rotate(-3deg) translateY(0); } 50% { transform: rotate(-3deg) translateY(-12px); } }

.float-sticker {
  position: absolute; width: 30%; filter: var(--sticker-shadow); z-index: 3;
  animation: bob 5s ease-in-out infinite; will-change: transform;
}
.fs-cafe { top: -4%; left: -10%; width: 30%; animation-delay: -.4s; }
.fs-pub  { top: 22%; right: -14%; width: 33%; animation-delay: -1.6s; }
.fs-park { bottom: 6%; left: -12%; width: 32%; animation-delay: -2.4s; }
.fs-book { bottom: -6%; right: -4%; width: 26%; animation-delay: -3.1s; }
.fs-ball { top: -8%; right: 18%; width: 16%; animation-delay: -.9s; }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-14px) rotate(3deg); } }

.hill { position: relative; line-height: 0; margin-top: -2px; }
.hill svg { width: 100%; height: clamp(60px, 9vw, 140px); display: block; }

/* ===================== section heads ===================== */
.section-head { max-width: 720px; margin: 0 auto clamp(28px, 4vw, 48px); text-align: center; padding: 0 20px; }
.kicker {
  display: inline-block; font-weight: 800; font-size: .82rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--sky-deep); margin-bottom: 14px;
}
.section-head h2, .more h2, .cta h2, .support h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2rem, 4.6vw, 3.2rem); line-height: 1.02; letter-spacing: -.025em;
}
.section-head p { margin-top: 14px; font-size: 1.12rem; color: var(--ink-soft); font-weight: 600; }

/* ===================== categories / marquee ===================== */
.categories { padding: clamp(40px, 7vw, 84px) 0 clamp(30px, 5vw, 60px); }
.marquee { position: relative; overflow: hidden; padding: 16px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.marquee-track { display: flex; gap: 16px; width: max-content; animation: scroll-x 46s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scroll-x { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.cat-chip {
  display: flex; align-items: center; gap: 14px; flex-shrink: 0;
  background: var(--cream-2); border-radius: 999px; padding: 12px 26px 12px 12px;
  box-shadow: var(--sh-warm), inset 0 0 0 1.5px rgba(120,92,56,.06);
  transition: transform .2s var(--ease);
}
.cat-chip:hover { transform: translateY(-4px) rotate(-1deg); }
.cat-chip img { width: 56px; height: 56px; object-fit: contain; filter: drop-shadow(0 6px 6px rgba(78,58,30,.22)); }
.cat-chip b { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; }

/* ===================== features ===================== */
.features { max-width: var(--maxw); margin: 0 auto; padding: clamp(30px, 5vw, 60px) clamp(16px, 4vw, 40px) clamp(40px, 6vw, 80px); display: grid; gap: clamp(48px, 8vw, 110px); }
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.feature-row--reverse .feature-art { order: 2; }
.feature-text .kicker { color: var(--sun-deep); }
.feature-text h3 { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.7rem, 3.4vw, 2.6rem); line-height: 1.04; letter-spacing: -.025em; margin-bottom: 16px; }
.feature-text > p { font-size: 1.12rem; color: var(--ink-soft); font-weight: 600; max-width: 46ch; }
.ticks { list-style: none; margin-top: 22px; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 36px; font-weight: 700; color: var(--ink); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--grass) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 14px no-repeat;
  box-shadow: 0 6px 12px -4px rgba(47,191,113,.6);
}

/* art cards */
.art-card {
  position: relative; border-radius: var(--r-lg); aspect-ratio: 4 / 3.4; overflow: visible;
  background: var(--cream-2); padding: 14px;
  box-shadow: var(--sh-warm-lg), inset 0 0 0 1.5px rgba(120,92,56,.06);
  transform: rotate(-1.5deg);
}
.feature-row--reverse .art-card { transform: rotate(1.5deg); }
.art-photo { width: 100%; height: 100%; object-fit: cover; border-radius: calc(var(--r-lg) - 14px); }
.art-pop { position: absolute; filter: var(--sticker-shadow); animation: bob 6s ease-in-out infinite; }
.sticker-pop { width: 42%; bottom: -10%; right: -8%; }
.art-card--world .sticker-pop { width: 50%; bottom: -12%; right: -10%; border-radius: 18px; }
.pop-dog1 { width: 38%; bottom: -10%; left: -10%; animation-delay: -1s; }
.pop-dog2 { width: 34%; top: -12%; right: -8%; animation-delay: -2.4s; }
.pop-heart { width: 28%; top: 8%; left: -14%; animation-delay: -.6s; }

/* ===================== more to love ===================== */
.more { background: linear-gradient(180deg, var(--cream), var(--sand)); padding: clamp(48px, 8vw, 96px) clamp(16px, 4vw, 40px); }
.more-grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.5vw, 28px); }
.more-card {
  background: var(--cream-2); border-radius: var(--r-md); padding: 30px 26px 28px; text-align: center;
  box-shadow: var(--sh-warm), inset 0 0 0 1.5px rgba(120,92,56,.06);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.more-card:hover { transform: translateY(-6px); box-shadow: var(--sh-warm-lg); }
.more-card img { width: 96px; height: 96px; object-fit: contain; margin: 0 auto 14px; filter: var(--sticker-shadow); }
.more-card h4 { font-family: var(--font-display); font-weight: 700; font-size: 1.32rem; letter-spacing: -.01em; margin-bottom: 8px; }
.more-card p { color: var(--ink-soft); font-weight: 600; }

/* ===================== final CTA ===================== */
.cta { position: relative; overflow: hidden; padding: clamp(50px, 8vw, 100px) clamp(16px, 4vw, 40px); }
.cta-sky { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--sand) 0%, var(--sky-mid) 55%, var(--sky-top) 100%); }
.cta-inner {
  max-width: 1040px; margin: 0 auto; background: rgba(255,253,248,.66);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-radius: var(--r-lg); padding: clamp(24px, 3vw, 36px);
  display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(20px, 3vw, 40px); align-items: center;
  box-shadow: var(--sh-warm-lg), inset 0 0 0 1.5px rgba(255,255,255,.7);
}
.cta-dog { width: 100%; border-radius: var(--r-md); aspect-ratio: 4 / 5; object-fit: cover; box-shadow: var(--sh-warm); }
.cta-copy h2 { margin-bottom: 12px; }
.cta-copy > p { font-size: 1.14rem; color: var(--ink-soft); font-weight: 600; margin-bottom: 8px; }
.waitlist-form--light { margin-top: 18px; }

/* ===================== support ===================== */
.support { background: linear-gradient(180deg, var(--cream-2), var(--cream)); padding: clamp(48px, 8vw, 96px) clamp(16px, 4vw, 40px); }
.support-inner { max-width: 640px; margin: 0 auto; text-align: center; display: grid; justify-items: center; gap: 6px; }
.support-sticker { width: 88px; height: 88px; object-fit: contain; margin-bottom: 8px; filter: var(--sticker-shadow); }
.support h2 { margin-bottom: 8px; }
.support-inner p { font-size: 1.12rem; color: var(--ink-soft); font-weight: 600; margin-bottom: 22px; max-width: 46ch; }

/* ===================== footer ===================== */
.footer { background: var(--ink); color: #fff; padding: clamp(40px, 6vw, 64px) clamp(16px, 4vw, 40px); }
.footer-inner { max-width: var(--maxw); margin: 0 auto; text-align: center; display: grid; gap: 12px; justify-items: center; }
.footer .brand-name { color: #fff; }
.footer-tag { color: rgba(255,255,255,.72); font-weight: 600; max-width: 40ch; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; }
.footer-links a { color: rgba(255,255,255,.72); font-weight: 700; font-size: .92rem; text-decoration: none; transition: color .2s var(--ease); }
.footer-links a:hover { color: #fff; }
.footer-legal { color: rgba(255,255,255,.4); font-size: .85rem; font-weight: 600; }

/* ===================== reveal animation ===================== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.hero-copy .reveal:nth-child(1) { transition-delay: .05s; }
.hero-copy .reveal:nth-child(2) { transition-delay: .14s; }
.hero-copy .reveal:nth-child(3) { transition-delay: .24s; }
.hero-copy .reveal:nth-child(4) { transition-delay: .34s; }

/* ===================== responsive ===================== */
@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; min-height: 0; padding-bottom: 20px; }
  .hero-copy { max-width: 100%; margin: 0 auto; }
  .lede { max-width: 100%; }
  .waitlist-form { margin-left: auto; margin-right: auto; }
  .hero-stage { max-width: 320px; margin-top: 28px; order: -1; }
  .feature-row, .feature-row--reverse { grid-template-columns: 1fr; text-align: center; }
  .feature-row--reverse .feature-art { order: 0; }
  .feature-text > p, .ticks { margin-left: auto; margin-right: auto; }
  .ticks { display: inline-grid; text-align: left; }
  .more-grid { grid-template-columns: 1fr; max-width: 420px; }
  .cta-inner { grid-template-columns: 1fr; }
  .cta-dog { max-width: 300px; margin: 0 auto; aspect-ratio: 1 / 1; }
}
@media (max-width: 560px) {
  .field { flex-direction: column; gap: 8px; padding: 8px; border-radius: var(--r-md); }
  .field input { padding: 12px 16px; text-align: center; }
  .field .btn { width: 100%; }
}

/* respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
