/* Modern 2026 Design System */
:root {
  /* Brand Palette from App Theme */
  --primary: #7C3AED;   /* Purple - Feed */
  --secondary: #3B82F6; /* Blue - Sleep */
  --success: #22C55E;   /* Green - Diaper */
  --accent: #EC4899;    /* Pink - Pump */
  --info: #06B6D4;      /* Cyan - Bath */
  --warning: #F59E0B;   /* Amber - Medicine */

  /* Neutral Scale */
  --bg-body: #F8FAFC;
  --bg-surface: #FFFFFF;
  --text-main: #0F172A;
  --text-muted: #64748B;
  --border-subtle: #E2E8F0;

  /* Elevations & Effects */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-glow: 0 0 20px rgba(124, 58, 237, 0.15); /* Purple glow */
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.5);
  --blur: blur(12px);

  /* Layout */
  --radius-sm: 12px;
  --radius-md: 20px; /* OneUI/Material3 hybrid */
  --radius-lg: 32px;
  --container-width: 1200px;
}

/* Reset & Base */
html { scroll-behavior: smooth; }
body {
  font-family: 'Outfit', 'Inter', system-ui, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  margin: 0;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

a { text-decoration: none; transition: 0.2s ease; }

/* Utilities */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Glass Header */
header {
  background: var(--glass-bg);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-bottom: 1px solid rgba(255,255,255,0.8);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 0;
  transition: all 0.3s ease;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links {
  display: flex;
  gap: 32px;
  background: rgba(255,255,255,0.5);
  padding: 8px 24px;
  border-radius: 50px;
  border: 1px solid var(--border-subtle);
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
}

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

/* Mobile Menu Button (Hidden on Desktop) */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-main);
  cursor: pointer;
  padding: 8px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  box-shadow: var(--shadow-glow);
  border: 1px solid rgba(255,255,255,0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(124, 58, 237, 0.25);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
}
.btn-outline:hover {
    background: rgba(124, 58, 237, 0.05);
}


/* Hero Section */
.hero {
  padding-top: 140px;
  padding-bottom: 80px;
  text-align: center;
  position: relative;
  overflow: visible; /* Changed to visible for image overflow */
}

/* Abstract Background */
.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  left: 0;
  width: 100%;
  height: 120%;
  background: url('assets/hero_bg.png') no-repeat center center;
  background-size: cover;
  z-index: -1;
  opacity: 0.6;
  filter: blur(40px);
}
.hero::after { display: none; } /* Remove the old blob */

.hero h1 {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #1e293b 0%, #475569 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-main); /* Darker text for better contrast on bg */
  max-width: 600px;
  margin: 0 auto 40px;
}

/* Hero Image Container */
.hero-image-container {
    margin-top: 60px;
    position: relative;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    perspective: 1000px;
}

.hero-image {
    width: 60%; /* Adjust based on image scale */
    max-width: 500px;
    height: auto;
    border-radius: 40px; /* Match phone radius */
    box-shadow: 0 40px 80px -20px rgba(50, 50, 93, 0.4), 
                0 30px 60px -30px rgba(0, 0, 0, 0.5);
    transform: rotateX(5deg) rotateY(-5deg); /* Subtle 3D tilt */
    transition: transform 0.5s ease;
}

.hero-image:hover {
    transform: rotateX(0) rotateY(0) scale(1.02);
}

/* Bento Grid Features */
.features {
  padding: 80px 0;
  position: relative;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

/* Bento Card Styling */
.bento-card {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: 32px;
  border: 1px solid var(--border-subtle);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.bento-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(124, 58, 237, 0.2);
}

.bento-card.wide { grid-column: span 2; }
.bento-card.tall { grid-row: span 2; }

.icon-box {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 24px;
}

/* Feature Colors (Backgrounds only) */
.feat-growth .icon-box { background: rgba(34, 197, 94, 0.1); }
.feat-ai .icon-box { background: rgba(124, 58, 237, 0.1); }
.feat-feed .icon-box { background: rgba(124, 58, 237, 0.1); }
.feat-diaper .icon-box { background: rgba(34, 197, 94, 0.1); }
.feat-hardware .icon-box { background: rgba(6, 182, 212, 0.1); }
.feat-family .icon-box { background: rgba(236, 72, 153, 0.1); }
.feat-privacy .icon-box { background: rgba(245, 158, 11, 0.1); }

.icon-box img {
    height: 32px;
    width: auto;
    object-fit: contain;
}

/* Logo Styling */
.logo img {
  height: 40px;
  width: auto;
  margin-right: 12px;
}

/* Comparison Section */
.comparison {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--bg-body) 0%, #fff 100%);
}

.comparison-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.comparison-header {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  color: white;
  padding: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

table { width: 100%; border-collapse: separate; border-spacing: 0; }
th, td { padding: 20px 24px; text-align: left; border-bottom: 1px solid var(--border-subtle); }

th {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #f8fafc;
}
/* overwrite header styles specifically for the table within existing html structure if needed,
   but we are rewriting, so clean slate */

/* NestMate Column Highlight */
.col-nestmate {
  background: rgba(124, 58, 237, 0.03);
  position: relative;
}
.col-nestmate.header {
  background: var(--primary);
  color: white;
  border-radius: 12px 12px 0 0;
}
td.col-nestmate {
    border-left: 2px solid rgba(124, 58, 237, 0.1);
    border-right: 2px solid rgba(124, 58, 237, 0.1);
    font-weight: 600;
    color: var(--primary);
}
/* Last row rounded corners for highlight */
tr:last-child td.col-nestmate {
    border-bottom: 2px solid rgba(124, 58, 237, 0.1);
    border-radius: 0 0 12px 12px;
}

/* Checkmarks */
.check { color: var(--success); font-weight: bold; }
.cross { color: var(--muted); opacity: 0.5; }

/* Story Section */
.story-section {
  padding: 100px 0;
  background: white;
  position: relative;
  overflow: hidden;
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.story-content h2 { font-size: 2.5rem; margin-bottom: 24px; }
.story-content p { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 16px; }

.story-image {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transform: rotate(2deg);
  transition: transform 0.3s ease;
}
.story-image:hover { transform: rotate(0); }

/* Pricing Section */
.pricing-section {
  padding: 100px 0;
  background: var(--bg-body);
}

.pricing-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 48px;
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
  border: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.pricing-badge {
  background: var(--primary);
  color: white;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 24px;
}

.price-large {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
}

.price-period {
  color: var(--text-muted);
  font-size: 1.2rem;
  font-weight: 500;
}

.pricing-features {
  margin: 32px 0 40px;
  text-align: left;
}

.pricing-feat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--text-main);
  font-weight: 500;
}

.pricing-check {
  color: var(--success);
  background: rgba(34, 197, 94, 0.1);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

/* Testimonials */
.testimonials {
  padding: 80px 0;
  text-align: center;
}
.testim-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.testim-card {
  background: white;
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  text-align: left;
}
.stars { color: #facc15; margin-bottom: 12px; }

/* Responsive adjustments */
@media (max-width: 768px) {
  .story-grid { grid-template-columns: 1fr; }
  .testim-grid { grid-template-columns: 1fr; }
}

/* Footer */
footer {
  background: white;
  padding: 80px 0 40px;
  border-top: 1px solid var(--border-subtle);
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
  text-align: left;
}

.footer-brand h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 300px;
}

.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
  color: var(--text-main);
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col li { margin-bottom: 12px; }

.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--primary); }

.footer-bottom {
  text-align: center;
  padding-top: 40px;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* Responsive */
@media (max-width: 1024px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-card.wide { grid-column: span 1; }
}

@media (max-width: 768px) {
  .hero h1 { font-size: 2.5rem; }
  .bento-grid { grid-template-columns: 1fr; }
  
  /* Mobile Nav */
  .mobile-menu-btn { display: block; }
  
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 24px;
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid var(--border-subtle);
    gap: 16px;
    align-items: center;
  }
  
  .nav-links.active {
    display: flex;
    animation: slideDown 0.3s ease-out;
  }
  
  .faq-grid { grid-template-columns: 1fr; }
  .table-wrapper { overflow-x: auto; padding-bottom: 20px; }
  
  /* Scroll Hint for Table */
  .table-wrapper::after {
    content: '← Scroll for more →';
    display: block;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 8px;
    font-weight: 500;
  }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Legal & Text Content */
.legal-content h3 {
  margin-top: 32px;
  margin-bottom: 16px;
  font-size: 1.5rem;
}

.legal-content p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.legal-content ul {
  margin-bottom: 24px;
  padding-left: 24px;
  color: var(--text-muted);
}

.legal-content li {
  margin-bottom: 8px;
}

/* Mobile Sticky CTA */
.mobile-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-subtle);
  display: none; /* Hidden on desktop */
  z-index: 9999;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.05);
  animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@media (max-width: 768px) {
  .mobile-sticky-cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
  }
  
  /* Prevent content from being hidden behind CTA */
  body {
    padding-bottom: 80px;
  }
  
  /* Adjust footer padding */
  footer {
    padding-bottom: 100px;
  }
}

/* Blog Post Content - Moved from blog-post.html */
.blog-body {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-main);
}

.blog-body h2 {
  margin-top: 48px;
  margin-bottom: 24px;
  font-size: 2rem;
  color: var(--text-main); /* Keep explicit */
  letter-spacing: -0.01em;
}

.blog-body h3 {
  margin-top: 40px;
  margin-bottom: 16px;
  font-size: 1.5rem;
  color: var(--text-main);
}

.blog-body p { margin-bottom: 24px; font-weight: 400; color: #334155; }
.blog-body ul, .blog-body ol { margin-bottom: 24px; padding-left: 24px; color: #334155; }
.blog-body li { margin-bottom: 12px; }

.blog-body blockquote {
  border-left: 4px solid var(--primary);
  background: linear-gradient(to right, rgba(124, 58, 237, 0.03), transparent);
  padding: 24px 32px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--text-muted);
  margin: 40px 0;
}

/* Enhanced Blog Image Styling */
.blog-body img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  margin: 48px 0;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
  display: block;
}

.blog-body img:hover {
  transform: scale(1.015);
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.15); /* More dramatic lift */
}
