/* ============================================
   WoofMates — Golden Hour palette
   Mobile-first, illustration-rich
   ============================================ */

:root {
  --bg: #EDEAE5;
  --bg-light: #F5F3F0;
  --card-dark: #2E2C3E;
  --accent: #C2815A;
  --accent-hover: #B0724E;
  --green: #8FA680;
  --green-light: rgba(143, 166, 128, 0.12);
  --heading: #2E2C3E;
  --text: #4A4040;
  --text-light: #6B6560;
  --white: #FDFCFA;
  --border: rgba(221, 216, 208, 0.5);
  --shadow-sm: 0 2px 8px rgba(46, 44, 62, 0.06);
  --shadow-md: 0 8px 30px rgba(46, 44, 62, 0.1);
  --shadow-lg: 0 20px 60px rgba(46, 44, 62, 0.15);
  --radius: 20px;
  --radius-sm: 12px;
  --max-width: 1120px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  background: var(--bg-light);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); }

/* ============================================
   Navigation
   ============================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(245, 243, 240, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--heading);
  text-decoration: none;
}

.nav-logo:hover { color: var(--heading); }

.nav-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--white);
  border: 1px solid var(--border);
}

.nav-links {
  display: none;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.nav-links a:hover { color: var(--accent); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  background: var(--accent);
  color: var(--heading) !important;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
  transition: background 0.2s, transform 0.15s;
}

.nav-cta:hover { background: var(--accent-hover); transform: translateY(-1px); }

@media (min-width: 768px) {
  .nav-links { display: flex; }
  .nav-inner { padding: 12px 32px; }
}

/* ============================================
   Sticky mobile CTA
   ============================================ */

.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 12px 20px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  background: rgba(245, 243, 240, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
}

.sticky-cta .btn-primary {
  width: 100%;
  text-align: center;
}

@media (min-width: 768px) {
  .sticky-cta { display: none; }
}

/* ============================================
   Buttons
   ============================================ */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  background: var(--accent);
  color: var(--heading);
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none !important;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(194, 129, 90, 0.3);
}

.btn-lg {
  padding: 16px 40px;
  font-size: 18px;
  border-radius: 14px;
}

/* ============================================
   Hero
   ============================================ */

.hero {
  background: var(--bg-light);
  padding: 100px 20px 0;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-text {
  max-width: 560px;
  margin-bottom: 32px;
}

.hero h1 {
  font-size: 38px;
  font-weight: 800;
  color: var(--heading);
  line-height: 1.12;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.hero p {
  font-size: 18px;
  color: var(--text);
  margin-bottom: 28px;
  line-height: 1.55;
}

.hero-actions { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.hero-platforms { font-size: 13px; color: var(--text-light); }

.hero-visual {
  max-width: 420px;
  width: 100%;
}

.hero-illustration {
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 12px 40px rgba(46, 44, 62, 0.1);
  animation: float 4s ease-in-out infinite;
}

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

.hero-wave {
  display: none;
}

.hero-wave svg {
  display: block;
  width: 100%;
  height: 60px;
}

@media (min-width: 768px) {
  .hero { padding: 120px 32px 0; }
  .hero-inner {
    flex-direction: row;
    text-align: left;
    gap: 40px;
    align-items: center;
  }
  .hero-text { margin-bottom: 0; max-width: 480px; }
  .hero-actions { align-items: flex-start; }
  .hero h1 { font-size: 52px; letter-spacing: -1px; }
  .hero p { font-size: 20px; }
  .hero-visual { max-width: 440px; }
  .hero-wave svg { height: 100px; }
}

@media (min-width: 1024px) {
  .hero h1 { font-size: 58px; }
  .hero-inner { gap: 60px; }
}

/* ============================================
   Sections
   ============================================ */

.section {
  padding: 64px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-alt {
  background: var(--white);
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--heading);
  text-align: center;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 48px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .section { padding: 100px 32px; }
  .section-title { font-size: 38px; }
  .section-subtitle { font-size: 18px; }
}

/* ============================================
   How it works (3 steps)
   ============================================ */

.how-it-works {
  padding-top: 48px;
}

.steps-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.step {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: left;
  box-shadow: none;
  width: 100%;
  max-width: 300px;
  position: relative;
}

.step-number {
  position: absolute;
  top: -12px;
  left: 20px;
  width: 28px;
  height: 28px;
  background: var(--accent);
  color: var(--white);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-icon {
  font-size: 36px;
  margin-bottom: 12px;
}

.step h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 6px;
}

.step p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.5;
}

.step-arrow {
  font-size: 24px;
  color: var(--accent);
  opacity: 0.4;
  transform: rotate(90deg);
}

@media (min-width: 768px) {
  .steps-row {
    flex-direction: row;
    justify-content: center;
    gap: 16px;
  }
  .step-arrow { transform: none; font-size: 28px; }
  .step { max-width: 260px; }
}

/* ============================================
   Feature sections (alternating)
   ============================================ */

.feature-section {
  padding: 48px 20px;
}

.feature-section-alt {
  background: var(--white);
}

.feature-section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.feature-section-inner.reverse {
  flex-direction: column;
}

.feature-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.feature-illustration {
  max-width: 500px;
  width: 100%;
  border-radius: var(--radius);
}

.feature-content {
  flex: 1;
  max-width: 480px;
}

.feature-tag {
  display: inline-block;
  background: var(--green-light);
  color: var(--green);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tag-care {
  background: rgba(194, 129, 90, 0.1);
  color: var(--accent);
}

.tag-share {
  background: rgba(46, 44, 62, 0.08);
  color: var(--card-dark);
}

.feature-content h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.feature-content p {
  font-size: 16px;
  color: var(--text);
  margin-bottom: 24px;
  line-height: 1.65;
}

.feature-list {
  list-style: none;
}

.feature-list li {
  font-size: 15px;
  color: var(--text);
  padding: 8px 0;
  padding-left: 28px;
  position: relative;
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  opacity: 0.6;
}

@media (min-width: 768px) {
  .feature-section { padding: 80px 32px; }
  .feature-section-inner {
    flex-direction: row;
    gap: 60px;
  }
  .feature-section-inner.reverse {
    flex-direction: row-reverse;
  }
  .feature-illustration { max-width: 520px; }
  .feature-content h2 { font-size: 34px; }
}

/* ============================================
   App Preview (phone mockup)
   ============================================ */

.app-preview-section {
  text-align: center;
}

.phone-mockup {
  display: flex;
  justify-content: center;
}

.phone-frame {
  position: relative;
  width: 260px;
  background: var(--card-dark);
  border-radius: 36px;
  padding: 12px;
  box-shadow: var(--shadow-lg),
              inset 0 0 0 2px rgba(255,255,255,0.08);
}

.phone-notch {
  width: 100px;
  height: 24px;
  background: var(--card-dark);
  border-radius: 0 0 16px 16px;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.phone-screenshot {
  border-radius: 24px;
  width: 100%;
  display: block;
}

@media (min-width: 768px) {
  .phone-frame { width: 300px; padding: 14px; border-radius: 40px; }
  .phone-screenshot { border-radius: 28px; }
}

/* ============================================
   Pricing
   ============================================ */

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 720px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  border: 2px solid transparent;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.pricing-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.pricing-card.featured {
  border-color: var(--accent);
  position: relative;
  background: linear-gradient(180deg, rgba(194, 129, 90, 0.03) 0%, var(--white) 100%);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 18px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pricing-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 4px;
}

.pricing-price {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 24px;
}

.pricing-features {
  list-style: none;
}

.pricing-features li {
  font-size: 14px;
  color: var(--text);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pricing-features li:last-child { border-bottom: none; }

.pricing-value { font-weight: 600; color: var(--heading); }
.pricing-check { color: var(--green); font-weight: 700; font-size: 18px; }
.pricing-cross { color: var(--text-light); opacity: 0.35; font-size: 18px; }

@media (min-width: 768px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================
   FAQ
   ============================================ */

.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--heading);
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: inherit;
  line-height: 1.4;
  transition: color 0.2s;
}

.faq-question:hover { color: var(--accent); }

.faq-question::after {
  content: '+';
  font-size: 22px;
  font-weight: 300;
  color: var(--text-light);
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
  color: var(--accent);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-answer p {
  padding-bottom: 20px;
  font-size: 15px;
  color: var(--text);
  line-height: 1.65;
}

.faq-item.open .faq-answer {
  max-height: 300px;
}

/* ============================================
   CTA Section
   ============================================ */

.cta-section {
  text-align: center;
  padding-top: 80px;
  padding-bottom: 40px;
}

.cta-inner {
  max-width: 600px;
  margin: 0 auto;
}

.cta-dog {
  max-width: 360px;
  margin: 0 auto 24px;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.08));
}

.cta-subtitle {
  font-size: 16px;
  color: var(--text-light);
  margin-top: 8px;
  margin-bottom: 32px;
}

/* ============================================
   Store badges
   ============================================ */

.store-badges {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.store-badge {
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--card-dark);
  color: var(--white) !important;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  gap: 10px;
  transition: transform 0.15s, box-shadow 0.2s;
  text-decoration: none !important;
}

.store-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(46, 44, 62, 0.25);
}

.store-badge-label { font-size: 10px; font-weight: 400; opacity: 0.7; }
.store-badge-name { font-size: 15px; font-weight: 600; }
.store-badge-wrap { display: flex; flex-direction: column; line-height: 1.2; }

/* ============================================
   Footer
   ============================================ */

.footer {
  background: var(--card-dark);
  color: var(--bg);
  padding: 48px 20px;
  padding-bottom: max(48px, calc(env(safe-area-inset-bottom) + 80px));
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid var(--border);
}

.footer-logo-text {
  font-size: 18px;
  font-weight: 700;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--bg);
  font-size: 14px;
  opacity: 0.6;
  text-decoration: none;
}

.footer-links a:hover { opacity: 1; }

.footer-copy {
  font-size: 13px;
  opacity: 0.4;
}

@media (min-width: 768px) {
  .footer { padding-bottom: 48px; }
  .footer-inner { flex-direction: row; justify-content: space-between; }
}

/* ============================================
   Legal pages (privacy, terms)
   ============================================ */

.legal-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 100px 20px 80px;
}

.legal-page h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 8px;
}

.legal-page .updated {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 32px;
}

.legal-page h2 {
  font-size: 18px;
  font-weight: 600;
  color: var(--heading);
  margin-top: 32px;
  margin-bottom: 12px;
}

.legal-page p {
  font-size: 15px;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 12px;
}

/* ============================================
   Animations
   ============================================ */

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Stagger children */
.steps-row .fade-in:nth-child(1) { transition-delay: 0s; }
.steps-row .fade-in:nth-child(2) { transition-delay: 0.1s; }
.steps-row .fade-in:nth-child(3) { transition-delay: 0.15s; }
.steps-row .fade-in:nth-child(4) { transition-delay: 0.2s; }
.steps-row .fade-in:nth-child(5) { transition-delay: 0.25s; }

/* ============================================
   Selection color
   ============================================ */

::selection {
  background: rgba(194, 129, 90, 0.25);
  color: var(--heading);
}
