/* ============================================================
   Pupmood landing — "soft-pop editorial"
   Warm paper base · Fraunces display + Nunito body · indigo accent
   ============================================================ */

:root {
  --paper: #faf4ea;
  --paper-2: #f1e7d7;
  --card: #fffdf9;
  --ink: #1d1a16;
  --ink-soft: #6f685d;
  --line: #e6dac6;

  --indigo: #6366f1;
  --violet: #8b5cf6;
  --coral: #ff6b4a;

  --shadow-sm: 0 2px 10px rgba(60, 44, 20, 0.06);
  --shadow-md: 0 18px 40px -18px rgba(60, 44, 20, 0.28);
  --shadow-lg: 0 40px 80px -30px rgba(50, 36, 16, 0.4);

  --r-lg: 30px;
  --r-md: 20px;
  --maxw: 1160px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Nunito", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* Warm atmospheric blooms + grain behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(40% 50% at 12% 8%, rgba(99, 102, 241, 0.14), transparent 70%),
    radial-gradient(45% 45% at 92% 18%, rgba(255, 159, 10, 0.14), transparent 70%),
    radial-gradient(50% 50% at 80% 90%, rgba(139, 92, 246, 0.12), transparent 70%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  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='0.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}

/* Decorative paws */
.paw-field {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.paw {
  position: absolute;
  left: var(--x);
  top: var(--y);
  font-size: calc(38px * var(--s));
  transform: rotate(var(--r));
  opacity: 0.1;
  animation: drift 14s ease-in-out infinite;
}
.paw:nth-child(even) {
  animation-duration: 18s;
  animation-direction: reverse;
}
@keyframes drift {
  50% {
    transform: rotate(var(--r)) translateY(-16px);
  }
}

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink);
  --fg: var(--paper);
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  color: var(--fg);
  background: var(--bg);
  padding: 0.7em 1.3em;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  box-shadow: var(--shadow-sm);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn:active {
  transform: translateY(0);
}
.btn-lg {
  font-size: 1.06rem;
  padding: 0.85em 1.6em;
}
.btn-block {
  width: 100%;
  justify-content: center;
}
.btn-ink {
  --bg: var(--ink);
  --fg: #fff;
}
.btn-cream {
  --bg: var(--paper);
  --fg: var(--ink);
}
.btn-ghost {
  --bg: transparent;
  --fg: var(--ink);
  box-shadow: inset 0 0 0 2px var(--line);
}
.btn-ghost:hover {
  background: var(--card);
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  backdrop-filter: blur(10px);
}
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--paper) 72%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
  z-index: -1;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}
.brand-logo {
  width: 38px;
  height: 38px;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}
.nav-links {
  display: flex;
  gap: 1.75rem;
}
.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 0.98rem;
  transition: color 0.18s ease;
}
.nav-links a:hover {
  color: var(--ink);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px;
  height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
}

/* ---------- Shared ---------- */
section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 5.5rem 1.5rem;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--indigo);
}
.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--indigo);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--indigo) 18%, transparent);
}
.section-head {
  max-width: 640px;
  margin-bottom: 3rem;
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-top: 0.6rem;
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 3rem;
  padding-top: 3rem;
  padding-bottom: 4rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.8rem, 6.5vw, 4.7rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 1rem 0 1.2rem;
}
.hero h1 em {
  font-style: italic;
  font-weight: 900;
  color: var(--indigo);
}
.lede {
  font-size: 1.18rem;
  color: var(--ink-soft);
  max-width: 30em;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 2rem 0 1rem;
}
.hero-note {
  font-size: 0.9rem;
  color: var(--ink-soft);
  font-weight: 600;
}

/* ---------- Phone mockup ---------- */
.hero-phone {
  position: relative;
  display: grid;
  place-items: center;
}
.phone {
  position: relative;
  width: 300px;
  aspect-ratio: 300 / 620;
  background: #14110d;
  border-radius: 46px;
  padding: 12px;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255, 255, 255, 0.06);
  transform: rotate(3deg);
  animation: phone-in 1s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes phone-in {
  from {
    opacity: 0;
    transform: rotate(8deg) translateY(30px) scale(0.96);
  }
}
.phone-notch {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 22px;
  background: #14110d;
  border-radius: 0 0 14px 14px;
  z-index: 3;
}
.phone-screen {
  height: 100%;
  border-radius: 34px;
  padding: 26px 16px 16px;
  overflow: hidden;
  background:
    radial-gradient(60% 40% at 15% 0%, rgba(99, 102, 241, 0.18), transparent 70%),
    linear-gradient(160deg, #eef2ff, #faf5ff 45%, #fff1f2);
}
.app-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.app-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  font-size: 22px;
  box-shadow: var(--shadow-sm);
}
.app-title {
  font-weight: 700;
  font-size: 1.02rem;
  color: #1d1a16;
  line-height: 1.2;
}
.app-title strong {
  font-weight: 800;
}
.mood-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}
.mood {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 12px 4px;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--c) 35%, transparent);
  background: color-mix(in srgb, var(--c) 12%, white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.72rem;
  color: #1d1a16;
  cursor: pointer;
}
.mood span {
  font-size: 20px;
}
.mood.is-active {
  transform: scale(1.04);
  box-shadow: 0 8px 18px -8px color-mix(in srgb, var(--c) 80%, transparent);
  border-color: var(--c);
}
.app-section {
  font-weight: 800;
  font-size: 0.74rem;
  color: #6f685d;
  margin-bottom: 8px;
}
.app-entry {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-radius: 14px;
  padding: 8px 10px;
  margin-bottom: 7px;
  box-shadow: var(--shadow-sm);
}
.ae-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 15px;
  background: color-mix(in srgb, var(--c) 16%, white);
}
.ae-label {
  font-weight: 700;
  font-size: 0.82rem;
}
.ae-time {
  margin-left: auto;
  font-size: 0.74rem;
  color: #8a8377;
  font-weight: 600;
}

/* Floating chips */
.float-chip {
  position: absolute;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5em 0.9em;
  font-weight: 800;
  font-size: 0.85rem;
  box-shadow: var(--shadow-md);
  animation: bob 4s ease-in-out infinite;
}
.chip-1 {
  top: 14%;
  left: -6%;
  color: #b06a00;
}
.chip-2 {
  bottom: 12%;
  right: -4%;
  color: var(--indigo);
  animation-delay: 1.2s;
}
@keyframes bob {
  50% {
    transform: translateY(-10px);
  }
}

/* ---------- Mood strip ---------- */
.moods {
  text-align: center;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.moods-label {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--ink-soft);
  margin-bottom: 1.4rem;
}
.mood-pills {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
}
.mood-pills li {
  font-weight: 800;
  font-size: 1rem;
  padding: 0.55em 1.1em;
  border-radius: 999px;
  color: color-mix(in srgb, var(--c) 72%, #1d1a16);
  background: color-mix(in srgb, var(--c) 13%, var(--card));
  border: 1.5px solid color-mix(in srgb, var(--c) 32%, transparent);
  transition: transform 0.18s ease;
}
.mood-pills li:hover {
  transform: translateY(-3px) rotate(-2deg);
}

/* ---------- Features ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.card-ico {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 26px;
  margin-bottom: 1rem;
  background: color-mix(in srgb, var(--c) 16%, white);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 30%, transparent);
}
.card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.32rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.4rem;
}
.card p {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* ---------- How ---------- */
.steps {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}
.steps li {
  position: relative;
  padding: 2rem 1.5rem 1.5rem;
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, var(--paper-2), var(--card));
  border: 1px solid var(--line);
}
.step-n {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.4rem;
  color: var(--indigo);
  line-height: 1;
  display: block;
  margin-bottom: 0.6rem;
}
.steps h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
}
.steps p {
  color: var(--ink-soft);
}
.steps em,
.steps h3 em {
  font-style: italic;
  color: var(--indigo);
}

/* ---------- Pricing ---------- */
.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
  max-width: 760px;
}
.plan {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 2rem;
}
.plan-pro {
  background: linear-gradient(165deg, #211d3a, #14110d);
  color: var(--paper);
  border: none;
  box-shadow: var(--shadow-md);
}
.plan-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  padding: 0.3em 0.7em;
  border-radius: 999px;
  background: var(--indigo);
  color: #fff;
}
.plan-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
}
.plan-price {
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin-bottom: 1.4rem;
}
.plan-pro .plan-price {
  color: color-mix(in srgb, var(--paper) 70%, transparent);
}
.plan-price span {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.6rem;
  color: var(--ink);
  margin-right: 0.2rem;
}
.plan-pro .plan-price span {
  color: #fff;
}
.plan-list {
  list-style: none;
  padding: 0;
  margin-bottom: 1.6rem;
  display: grid;
  gap: 0.6rem;
}
.plan-list li {
  position: relative;
  padding-left: 1.6rem;
  font-weight: 600;
}
.plan-list li::before {
  content: "🐾";
  position: absolute;
  left: 0;
  font-size: 0.85rem;
}

/* ---------- CTA ---------- */
.cta {
  text-align: center;
  background: linear-gradient(160deg, #2a2550, #14110d);
  color: var(--paper);
  border-radius: 40px;
  padding: 4.5rem 1.5rem;
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(40% 60% at 80% 10%, rgba(139, 92, 246, 0.4), transparent 70%);
}
.cta > * {
  position: relative;
}
.cta-logo {
  width: 76px;
  height: 76px;
  margin-bottom: 1rem;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.35));
}
.cta h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}

/* ---------- Footer ---------- */
.footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem;
  border-top: 1px solid var(--line);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-right: auto;
}
.footer-links {
  display: flex;
  gap: 1.4rem;
}
.footer-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 700;
}
.footer-links a:hover {
  color: var(--ink);
}
.footer-note {
  width: 100%;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: var(--d, 0ms);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 2rem;
  }
  .hero .lede {
    margin-inline: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-phone {
    order: -1;
    margin-bottom: 1rem;
  }
  .feature-grid,
  .steps {
    grid-template-columns: 1fr 1fr;
  }
  .plans {
    grid-template-columns: 1fr;
  }
  .nav-links,
  .nav-cta {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .nav.open .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 1.5rem 1.5rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 560px) {
  section {
    padding: 4rem 1.25rem;
  }
  .feature-grid,
  .steps {
    grid-template-columns: 1fr;
  }
  .float-chip {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  ::before,
  ::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
