/* ═══════════════════════════════════════════════════════════════════════
   PETDALIA LANDING — Warm Minimal Editorial
   Color seed: #4A7A65 (Warm Forest Teal)
   Fonts: Figtree (headings) + Noto Sans (body)
   ═══════════════════════════════════════════════════════════════════════ */

/* ── RESET & TOKENS ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Primary palette */
  --seed: #4A7A65;
  --primary: #4A7A65;
  --primary-light: #6B9D85;
  --primary-lighter: #A3C4B4;
  --primary-pale: #D6E8DE;
  --primary-ghost: #EDF5F0;
  --primary-dark: #3A6150;
  --primary-darker: #2A4A3C;

  /* Warm neutrals */
  --bg: #FAFAF7;
  --bg-warm: #F5F3EE;
  --surface: #FFFFFF;
  --surface-dim: #F0EDE8;
  --text-primary: #1C2B22;
  --text-secondary: #4A5B50;
  --text-muted: #7A8A80;
  --border: #E2DFD8;
  --border-light: #EDEBE6;

  /* Accent */
  --accent-amber: #C8A25C;
  --accent-coral: #C27A6B;
  --accent-blue: #5B8FA8;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
  --space-2xl: 64px;
  --space-3xl: 96px;

  /* Radius */
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --radius-full: 9999px;

  /* Shadow */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.06);
  --shadow-lg: 0 16px 64px rgba(0,0,0,0.08);
  --shadow-glow: 0 0 40px rgba(74,122,101,0.12);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Noto Sans', system-ui, sans-serif;
  color: var(--text-primary);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Figtree', system-ui, sans-serif;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

/* ── SHARED ──────────────────────────────────────────────────────────── */
.section-tag {
  font-family: 'Figtree', sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  margin-bottom: var(--space-md);
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.section-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.65;
}

/* ── BUTTONS ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: 'Figtree', sans-serif;
  font-weight: 700;
  font-size: 0.9375rem;
  border-radius: var(--radius-full);
  padding: 14px 28px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn__icon { width: 20px; height: 20px; flex-shrink: 0; }

.btn--primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(74,122,101,0.25);
}
.btn--primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 6px 24px rgba(74,122,101,0.35);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary-lighter);
}
.btn--ghost:hover {
  background: var(--primary-ghost);
  border-color: var(--primary);
}

.btn--lg { padding: 16px 36px; font-size: 1rem; }

/* ── NAV ─────────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: var(--space-md) var(--space-lg);
  transition: all 0.3s ease;
}

.nav--scrolled {
  background: rgba(250,250,247,0.92);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.nav__logo {
  border-radius: var(--radius-sm);
}

.nav__name {
  font-family: 'Figtree', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text-primary);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav__link {
  font-family: 'Figtree', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.nav__link:hover { color: var(--primary); }

.nav__cta {
  font-family: 'Figtree', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  background: var(--primary);
  padding: 10px 24px;
  border-radius: var(--radius-full);
  transition: all 0.25s;
}
.nav__cta:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

/* ── HERO ────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px var(--space-lg) var(--space-3xl);
  overflow: hidden;
}

.hero__bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero__shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.04;
  pointer-events: none;
}

.hero__shape--1 {
  width: 600px; height: 600px;
  background: var(--primary);
  top: -200px; right: -100px;
  animation: float-slow 20s ease-in-out infinite;
}

.hero__shape--2 {
  width: 400px; height: 400px;
  background: var(--accent-amber);
  bottom: -100px; left: -50px;
  animation: float-slow 25s ease-in-out infinite reverse;
}

.hero__shape--3 {
  width: 250px; height: 250px;
  background: var(--primary-light);
  top: 40%; left: 45%;
  animation: float-slow 18s ease-in-out infinite 5s;
}

.hero__content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: 'Figtree', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-ghost);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--primary-pale);
  margin-bottom: var(--space-lg);
  width: fit-content;
}

.hero__badge-dot {
  width: 8px; height: 8px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.hero__title {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
}

.hero__title-accent {
  color: var(--primary);
  display: block;
}

.hero__subtitle {
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
  max-width: 500px;
}

.hero__actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* ── HERO PHONE ──────────────────────────────────────────────────────── */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero__phone-frame {
  width: 290px;
  height: 590px;
  background: #1C2B22; /* dark metal casing */
  border-radius: 44px;
  border: 10px solid #2A4A3C; /* dark warm teal border matching the seed */
  box-shadow: var(--shadow-lg), var(--shadow-glow), inset 0 0 10px rgba(0,0,0,0.5);
  overflow: hidden;
  position: relative;
  z-index: 3;
}

.hero__phone-notch {
  width: 120px;
  height: 28px;
  background: #1C2B22;
  border-radius: 0 0 16px 16px;
  margin: 0 auto;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.hero__phone-screen {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

.hero__phone-slider {
  width: 100%;
  height: 100%;
  position: relative;
}

.hero__phone-screenshot {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
  transform: scale(1.04);
}

.hero__phone-screenshot.active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

.hero__phone-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.hero__phone-dot {
  width: 7px;
  height: 7px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.hero__phone-dot.active {
  background: var(--surface);
  width: 16px;
  border-radius: 4px;
}

/* Floating widgets */
.hero__widget {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 32px rgba(28, 43, 34, 0.08);
  z-index: 4;
  transition: all 0.3s ease;
  animation: float-widget 6s ease-in-out infinite;
}

.hero__widget:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 16px 40px rgba(28, 43, 34, 0.12);
  background: rgba(255, 255, 255, 0.95);
}

.hero__widget--weight {
  top: 80px;
  left: -40px;
  animation-delay: 0s;
}

.hero__widget--reminder {
  bottom: 120px;
  right: -50px;
  animation-delay: 3s;
}

.hero__widget-icon {
  font-size: 1.5rem;
  width: 42px;
  height: 42px;
  background: var(--primary-ghost);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__widget-text {
  display: flex;
  flex-direction: column;
}

.hero__widget-title {
  font-family: 'Figtree', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.hero__widget-value {
  font-family: 'Figtree', sans-serif;
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--text-primary);
}

@keyframes float-widget {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Mascot floating near phone */
.hero__mascot-float {
  position: absolute;
  bottom: -20px;
  right: -30px;
  animation: mascot-bounce 3s ease-in-out infinite;
  filter: drop-shadow(0 8px 24px rgba(74,122,101,0.2));
}

.hero__mascot-float img {
  width: 100px;
  height: 100px;
}

/* ── FEATURES ────────────────────────────────────────────────────────── */
.features {
  padding: var(--space-3xl) var(--space-lg);
  background: var(--surface);
}

.features__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.features__header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.features__header .section-subtitle {
  margin: 0 auto;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.feature-card {
  padding: var(--space-xl);
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-pale);
}

.feature-card__icon {
  width: 56px; height: 56px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
}

.feature-card__icon svg {
  width: 26px; height: 26px;
}

.feature-card__icon--health { background: var(--primary-pale); color: var(--primary); }
.feature-card__icon--reminders { background: #FBE8CC; color: var(--accent-amber); }
.feature-card__icon--documents { background: #D6E4EE; color: var(--accent-blue); }
.feature-card__icon--pets { background: #F0D6D0; color: var(--accent-coral); }
.feature-card__icon--sync { background: var(--primary-ghost); color: var(--primary-light); }
.feature-card__icon--guest { background: #E8E4DB; color: var(--text-secondary); }

.feature-card__title {
  font-size: 1.125rem;
  font-weight: 800;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.feature-card__desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── MASCOT SECTION ──────────────────────────────────────────────────── */
.mascot-section {
  padding: var(--space-3xl) var(--space-lg);
  background: var(--bg);
}

.mascot-section__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.mascot-section__gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  position: relative;
}

.mascot-section__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-xl);
  background: var(--surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.mascot-section__card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-md);
}

.mascot-section__card--base {
  background: linear-gradient(135deg, var(--surface) 0%, var(--primary-ghost) 100%);
  border-color: var(--primary-pale);
}

.mascot-section__card--curious {
  background: linear-gradient(135deg, var(--surface) 0%, #FFF8EE 100%);
  border-color: #FBE8CC;
}

.mascot-section__card--sleeping {
  background: linear-gradient(135deg, var(--surface) 0%, #F5F7F8 100%);
  border-color: var(--border-light);
}

.mascot-section__card--premium {
  background: linear-gradient(135deg, var(--surface) 0%, #FFF5F7 100%);
  border-color: #FFF2F4;
}

.mascot-section__card--base img,
.mascot-section__card--curious img,
.mascot-section__card--sleeping img,
.mascot-section__card--premium img {
  width: 90px;
  height: 90px;
}

.mascot-section__card--base img {
  animation: mascot-bounce 3.5s ease-in-out infinite;
}

.mascot-section__card--curious img {
  animation: mascot-bounce 3s ease-in-out infinite 0.5s;
}

.mascot-section__card--sleeping img {
  animation: mascot-breathe 4s ease-in-out infinite;
}

.mascot-section__card--premium img {
  animation: mascot-breathe 3s ease-in-out infinite 1s;
}

.mascot-section__label {
  font-family: 'Figtree', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-secondary);
  background: var(--primary-ghost);
  padding: 6px 14px;
  border-radius: var(--radius-full);
}

.mascot-section__list {
  list-style: none;
  margin-top: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.mascot-section__list li {
  position: relative;
  width: min(100%, 420px);
  padding-left: 20px;
  text-align: left;
  font-size: 1rem;
  color: var(--text-secondary);
}

.mascot-section__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-lighter);
  box-shadow: 0 0 0 6px rgba(163, 196, 180, 0.18);
}

/* ── DOWNLOAD CTA ────────────────────────────────────────────────────── */
.download {
  padding: var(--space-3xl) var(--space-lg);
  background: linear-gradient(160deg, var(--primary-darker) 0%, var(--primary) 50%, var(--primary-light) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.download::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
  top: -200px; right: -200px;
  border-radius: 50%;
}

.download__inner {
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.download__mascot {
  margin-bottom: var(--space-lg);
  animation: mascot-bounce 3s ease-in-out infinite;
  filter: drop-shadow(0 8px 32px rgba(0,0,0,0.15));
}

.download__mascot img {
  width: 120px; height: 120px;
  margin: 0 auto;
}

.download__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: var(--space-md);
}

.download__subtitle {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: var(--space-xl);
  line-height: 1.65;
}

.download__badges {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}

.store-badge {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  min-height: 64px;
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.25);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  transition: all 0.25s;
  backdrop-filter: blur(8px);
}

.store-badge:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.4);
}

.store-badge svg,
.store-badge__icon {
  flex-shrink: 0;
}

.store-badge__icon {
  width: 28px;
  height: 28px;
  display: block;
  filter: brightness(0) invert(1);
}

.store-badge__label {
  display: block;
  font-size: 0.6875rem;
  opacity: 0.8;
  line-height: 1.2;
}

.store-badge__store {
  display: block;
  font-family: 'Figtree', sans-serif;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.2;
}

.download__note {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.02em;
}

/* ── FOOTER ──────────────────────────────────────────────────────────── */
.footer {
  padding: var(--space-xl) var(--space-lg);
  background: var(--bg-warm);
  border-top: 1px solid var(--border);
}

.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: 'Figtree', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: var(--text-primary);
}

.footer__brand img {
  border-radius: 8px;
}

.footer__links {
  display: flex;
  gap: var(--space-lg);
}

.footer__links a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer__links a:hover { color: var(--primary); }

.footer__disclaimer {
  width: 100%;
  text-align: center;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin-top: var(--space-lg);
  padding: 16px 20px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  border-top: 1px solid var(--border-light);
  font-style: italic;
}

.footer__copy {
  width: 100%;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: var(--space-sm);
}

/* ── ANIMATIONS ──────────────────────────────────────────────────────── */
@keyframes float-slow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

@keyframes mascot-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes mascot-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Scroll-triggered fade-in */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ──────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero__content {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    text-align: center;
  }

  .hero__subtitle { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .hero__badge { margin-left: auto; margin-right: auto; }

  .hero__visual { order: -1; }
  .hero__widget { display: none; }

  .features__grid { grid-template-columns: repeat(2, 1fr); }

  .mascot-section__inner {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .mascot-section__text { text-align: center; }
  .mascot-section__text .section-subtitle { margin: 0 auto; }
  .mascot-section__list { align-items: center; }
}

@media (max-width: 640px) {
  .nav__links { gap: var(--space-md); }
  .nav__link { display: none; }

  .hero { padding-top: 100px; padding-bottom: var(--space-2xl); min-height: auto; }
  .hero__phone-frame { width: 260px; }
  .hero__mascot-float img { width: 72px; height: 72px; }

  .features__grid { grid-template-columns: 1fr; }

  .feature-card { padding: var(--space-lg); }

  .mascot-section__gallery {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
  }

  .mascot-section__card { padding: var(--space-lg); }
  .mascot-section__card--base img,
  .mascot-section__card--curious img,
  .mascot-section__card--sleeping img,
  .mascot-section__card--premium img { width: 70px; height: 70px; }

  .download__badges { flex-direction: column; align-items: center; }

  .footer__inner { flex-direction: column; text-align: center; }
  .footer__links { flex-wrap: wrap; justify-content: center; }
}
