/* ===== RESET & BASE ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
img, svg { display: block; max-width: 100%; }

:root {
  --bg: #f6f7ff;
  --bg-2: #fff6fb;
  --ink: #1c1e2a;
  --ink-2: #2f3144;
  --muted: #cbd5e1;

  --primary: #ff6b6b;
  --primary-2: #ff9f1c;
  --accent: #4d96ff;
  --accent-2: #6ef3d6;

  --white: #ffffff;
  --shadow-1: 0 8px 30px rgba(20, 20, 40, 0.10);
  --shadow-2: 0 18px 50px rgba(20, 20, 40, 0.18);

  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;
}

@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Nunito:wght@300;400;600;700;800&display=swap');

body {
  font-family: "Nunito", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(50rem 50rem at 10% -10%, #ffe0e5 0%, transparent 60%),
    radial-gradient(45rem 45rem at 110% 0%, #dbe8ff 0%, transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  line-height: 1.55;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(90deg, #1b1b28 0%, #25263b 100%);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.8rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo a { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: #fff; }
.logo span { font-family: "Fredoka", sans-serif; font-weight: 700; font-size: 1.3rem; letter-spacing: 0.5px; }

.main-nav { display: flex; gap: 1.1rem; flex-wrap: wrap; }
.main-nav a {
  text-decoration: none;
  color: #e5e7eb;
  font-weight: 700;
  font-size: 0.95rem;
  position: relative;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 0%;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.2s ease;
}
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }

.header-right { display: flex; align-items: center; gap: 0.8rem; }

/* Language Switcher */
.lang-switcher, .language-switcher {
  display: inline-flex;
  gap: 0.25rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-full);
  padding: 0.2rem;
}
.lang-switcher a, .language-switcher a {
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  transition: all 0.2s;
}
.lang-switcher a.active, .language-switcher a.active {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  color: #fff;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.55rem 1.3rem;
  font-weight: 700;
  font-size: 0.92rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  gap: 0.35rem;
  white-space: nowrap;
}
.btn-large { padding: 0.7rem 1.6rem; }
.btn-primary {
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  color: #fff;
  box-shadow: var(--shadow-1);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-2); }
.btn-outline {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
}

/* User menu */
.user-menu { position: relative; }
.user-menu-btn {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  cursor: pointer;
}
.user-menu-panel {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 6px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
  min-width: 220px;
  display: none;
  overflow: hidden;
}
.user-menu-panel::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 0; right: 0;
  height: 8px;
}
.user-menu-panel a {
  display: block;
  padding: 0.8rem 1rem;
  text-decoration: none;
  color: var(--ink-2);
  font-weight: 700;
}
.user-menu-panel a:hover { background: #f6f7ff; }
.user-menu:hover .user-menu-panel,
.user-menu:focus-within .user-menu-panel { display: block; }

/* ===== HERO ===== */
.hero { padding: 4rem 0 2.5rem; }
.hero-shell { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2.4rem; align-items: center; }

.hero-card {
  background: #fff;
  padding: 2rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2);
  position: relative;
  overflow: hidden;
}
.hero-card::after {
  content: "";
  position: absolute;
  right: -60px; top: -60px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(255,107,107,0.25), transparent 60%);
}
.hero-badge {
  display: inline-block;
  background: #ffe8ee;
  color: #c43b4d;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 0.8rem;
  margin-bottom: 0.8rem;
}
.hero h1 {
  font-family: "Fredoka", sans-serif;
  font-size: clamp(2.1rem, 3vw, 3.4rem);
  line-height: 1.1;
}
.highlight { color: var(--primary); }
.hero-subtitle { color: var(--ink-2); margin: 0.8rem 0 1.2rem; }

.hero-features {
  display: flex; flex-wrap: wrap; gap: 0.6rem;
  margin-bottom: 1.2rem;
}
.hero-features span {
  background: #f7f8ff;
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  color: var(--ink-2);
}
.hero-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.hero-trial { margin-top: 0.7rem; color: #6b7280; font-weight: 700; }

.hero-visual { display: flex; justify-content: center; }
.hero-pet {
  width: 320px;
  background: #fff;
  border-radius: 50%;
  padding: 2rem;
  box-shadow: var(--shadow-2);
}

/* Mini cards */
.mini { padding: 1.5rem 0 3rem; }
.mini-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.2rem; }
.mini-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  box-shadow: var(--shadow-1);
}
.mini-icon { font-size: 1.6rem; margin-bottom: 0.4rem; }

/* Sections */
.section { padding: 3rem 0; }
.page-hero { padding: 3rem 0 1rem; }
.page-hero h1 { font-family: "Fredoka", sans-serif; font-size: 2.3rem; }
.page-hero p { color: var(--ink-2); margin-top: 0.6rem; }

.card-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1.2rem;
}
.card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  box-shadow: var(--shadow-1);
  border: 1px solid rgba(0,0,0,0.04);
}

.stories-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.2rem; }
.story-card { background: #fff; border-radius: var(--radius-lg); padding: 1.2rem; box-shadow: var(--shadow-1); }
.story-card img { border-radius: 14px; margin-bottom: 0.8rem; }

.pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.2rem; }
.pricing-card { background: #fff; border-radius: var(--radius-xl); padding: 1.6rem; box-shadow: var(--shadow-1); }
.pricing-card.popular { border: 2px solid var(--accent); box-shadow: var(--shadow-2); }
.pricing-features { margin: 0.8rem 0; }
.pricing-features li { margin-bottom: 0.4rem; }

.faq-grid { display: grid; gap: 0.8rem; }
.faq-item { background: #fff; border-radius: var(--radius); padding: 1rem 1.2rem; box-shadow: var(--shadow-1); }

/* Forms */
.form-card { background: #fff; padding: 1.6rem; border-radius: var(--radius-lg); box-shadow: var(--shadow-1); }
input, select, textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.08);
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  margin-top: 3rem;
  padding: 2.5rem 0;
  background: linear-gradient(90deg, #1b1b28 0%, #25263b 100%);
  color: #e5e7eb;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1.2rem; }
.footer-col a { display: block; color: #cbd5e1; text-decoration: none; margin-top: 0.4rem; }
.footer-col a:hover { color: #fff; }
.footer-copy { margin-top: 1.2rem; color: #94a3b8; font-size: 0.9rem; }

/* Responsive */
@media (max-width: 980px) {
  .hero-shell { grid-template-columns: 1fr; }
  .card-grid, .stories-grid, .pricing-grid, .footer-grid { grid-template-columns: 1fr; }
  .mini-grid { grid-template-columns: 1fr; }
  .main-nav { display: none; }
}
@media (max-width: 640px) {
  .container { padding: 0 1rem; }
}

.dashboard-wrap { padding: 2.2rem; }
.dashboard-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.2rem; margin-top: 1.2rem; }
.dashboard-card { background: #fff; border-radius: var(--radius-lg); padding: 1.2rem; box-shadow: var(--shadow-1); }
.info-item { display: flex; justify-content: space-between; padding: 0.35rem 0; border-bottom: 1px dashed #e5e7eb; }
.info-item:last-child { border-bottom: none; }
.pet-preview { display: flex; justify-content: center; padding: 0.8rem 0; }
.admin-badge { background: #111827; color: #fff; padding: 0.15rem 0.5rem; border-radius: 8px; font-weight: 700; }
.success-message { background: #ecfdf5; color: #065f46; padding: 0.6rem 0.9rem; border-radius: 10px; margin-top: 0.8rem; }
.error-message { background: #fef2f2; color: #991b1b; padding: 0.6rem 0.9rem; border-radius: 10px; margin-top: 0.8rem; }

.payment-wrap { padding: 2.2rem; }

@media (max-width: 980px) {
  .dashboard-grid { grid-template-columns: 1fr; }
}

/* Footer tweaks */
.site-footer { padding: 1.6rem 0; }
.footer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; }
.footer-col h4 { margin-bottom: 0.4rem; }
.footer-col.links { column-count: 2; column-gap: 1.2rem; }
.footer-payments { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; margin-top: 0.8rem; }
.footer-payments img { height: 28px; width: auto; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.15)); }
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-col.links { column-count: 1; }
}

/* Hero ellipse with multiple pets */
.hero-pet {
  width: 460px;
  height: 230px;
  background: #fff;
  border-radius: 9999px;
  padding: 22px 28px;
  box-shadow: var(--shadow-2);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  align-items: center;
  justify-items: center;
}
.hero-pet img { width: 120px; height: auto; }

/* Footer compact */
.site-footer { padding: 1.2rem 0; }
.footer-grid { grid-template-columns: 1.2fr 1fr 1fr; gap: 0.8rem; }
.footer-col.links { column-count: 2; column-gap: 1rem; }
.footer-payments { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; margin-top: 0.4rem; }
.footer-payments img { height: 26px; width: auto; }
.footer-copy { margin-top: 0.6rem; font-size: 0.85rem; }
.footer-contact { margin-top: 0.4rem; color: #cbd5e1; }

@media (max-width: 980px) {
  .hero-pet { width: 100%; height: auto; grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-col.links { column-count: 1; }
}

/* Better centering for hero pets */
.hero-pet {
  width: 520px;
  height: 260px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  place-items: center;
  gap: 16px 24px;
}
.hero-pet img { width: 120px; height: auto; }
@media (max-width: 980px) {
  .hero-pet { width: 100%; height: auto; }
}

/* Hero pets final alignment */
.hero-visual { display: flex; justify-content: center; align-items: center; }
.hero-pet {
  width: 520px;
  height: 260px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  place-items: center;
  gap: 12px 24px;
  padding: 10px 18px;
}
.hero-pet-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transform: translateY(-10px);
}
.hero-pet-item img { width: 120px; height: auto; }
.hero-pet-item span {
  font-weight: 700;
  color: #5b5f72;
  font-size: 0.95rem;
}
@media (max-width: 980px) {
  .hero-pet { width: 100%; height: auto; }
}

/* Tighter hero pets layout */
.hero-pet {
  width: 470px;
  height: 230px;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 12px;
  padding: 6px 10px;
}
.hero-pet-item { transform: translateY(-8px); }
.hero-pet-item img { width: 105px; }
.hero-pet-item span { font-size: 0.85rem; }

/* Final tighter layout */
.hero-pet {
  width: 450px;
  height: 220px;
  gap: 4px 10px;
  padding: 4px 8px;
}
.hero-pet-item img { width: 95px; }
.hero-pet-item span { font-size: 0.82rem; }

/* Tight centered Twemoji pets */
.hero-pet {
  width: 420px;
  height: 210px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  place-items: center;
  gap: 4px 8px;
  padding: 4px 8px;
}
.hero-pet-item { transform: translateY(-6px); }
.hero-pet-item img { width: 84px; height: auto; }
.hero-pet-item span { font-size: 0.82rem; font-weight: 700; color: #5b5f72; }
@media (max-width: 980px) {
  .hero-pet { width: 100%; height: auto; }
}
