/* ── MealPlan Mom — Next-Gen Styles ─────────────────────────────────── */

:root {
  --primary: #E07A5F;
  --primary-dark: #C4634B;
  --sage: #3D9970;
  --gold: #F59E0B;
  --bg: #FFFBF5;
  --surface: #FFFFFF;
  --raised: #F5F0E8;
  --text: #1A1A1A;
  --text-dim: rgba(26,26,26,0.5);
  --text-light: rgba(26,26,26,0.3);
  --border: rgba(0,0,0,0.06);
  --accent-orange: #FFF3EE;
  --accent-green: #EDFAF3;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
  --premium-shadow: 0 25px 50px -12px rgba(0,0,0,0.15), 0 8px 24px rgba(0,0,0,0.06);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-height: 64px;
  --max-width: 1120px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }
ul, ol { list-style: none; }
h1, h2, h3, h4 { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; line-height: 1.0; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ── Fade-up animation ── */
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.fade-up.reveal { opacity: 1; transform: translateY(0); }
.fade-up.d1 { transition-delay: 0.1s; }
.fade-up.d2 { transition-delay: 0.2s; }
.fade-up.d3 { transition-delay: 0.3s; }
.fade-up.d4 { transition-delay: 0.4s; }

/* ── Label ── */
.label {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  margin-bottom: 12px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 4px 16px rgba(224,122,95,0.35);
}
.btn-primary:hover { box-shadow: 0 8px 28px rgba(224,122,95,0.45); color: #fff; }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid rgba(224,122,95,0.35);
}
.btn-outline:hover { background: var(--accent-orange); }
.btn-sm { font-size: 14px; padding: 8px 18px; border-radius: 10px; }
.btn-lg { font-size: 18px; padding: 16px 36px; border-radius: 16px; }
.btn-white {
  background: #fff;
  color: var(--primary);
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  text-decoration: none;
}
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--premium-shadow); color: var(--primary-dark); }

/* ── Device Frame ── */
.device-frame {
  border: 10px solid #1A1A1A;
  border-radius: 40px;
  overflow: hidden;
  box-shadow: var(--premium-shadow);
  position: relative;
  background: #000;
}
.device-frame img { display: block; width: 100%; height: auto; }
.device-frame-light {
  border-color: #E8E2DA;
  box-shadow: var(--shadow-lg);
}

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: rgba(255,251,245,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 100;
  transition: box-shadow 0.3s;
  border-bottom: 1px solid var(--border);
}
.nav.scrolled { box-shadow: var(--shadow); }
.nav .container { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.nav-logo { font-family: 'DM Serif Display', Georgia, serif; font-size: 22px; color: var(--text); }
.nav-logo span { color: var(--primary); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--text-dim); transition: color 0.2s; }
.nav-links a:hover { color: var(--primary); }
.nav-cta { margin-left: 4px; }

/* Nav dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-trigger {
  font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 500;
  color: var(--text-dim); background: none; border: none; cursor: pointer; padding: 0; transition: color 0.2s;
}
.nav-dropdown-trigger::after { content: " \25BE"; font-size: 10px; }
.nav-dropdown-trigger:hover { color: var(--primary); }
.nav-dropdown-menu {
  display: none; position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow-lg); min-width: 180px; padding: 6px 0; z-index: 200;
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: block; padding: 10px 16px; font-size: 14px; font-weight: 500;
  color: var(--text-dim); transition: background 0.15s, color 0.15s;
}
.nav-dropdown-menu a:hover { background: var(--accent-orange); color: var(--primary); }

/* Mobile nav */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; transition: all 0.3s; border-radius: 2px; }
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.mobile-menu {
  display: none; position: fixed; top: var(--nav-height); left: 0; right: 0; bottom: 0;
  background: var(--bg); z-index: 99; padding: 32px 24px;
}
.mobile-menu.open { display: flex; flex-direction: column; gap: 20px; }
.mobile-menu a { font-size: 18px; font-weight: 500; color: var(--text); padding: 6px 0; }

/* ── HERO ── */
.hero {
  padding: calc(var(--nav-height) + 80px) 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
  pointer-events: none;
}
.hero-glow.coral { background: var(--primary); top: 10%; left: 50%; transform: translateX(-70%); }
.hero-glow.sage { background: var(--sage); top: 20%; left: 50%; transform: translateX(30%); opacity: 0.2; }
.hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}
.hero h1 span { color: var(--primary); }
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-dim);
  max-width: 520px;
  margin: 0 auto 36px;
  line-height: 1.7;
  position: relative;
  z-index: 2;
}
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 2; margin-bottom: 56px; }
.hero-phones {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 0;
  max-width: 700px;
  margin: 0 auto;
  z-index: 2;
}
.hero-phone-main { width: 280px; position: relative; z-index: 3; }
.hero-phone-back {
  width: 240px;
  position: absolute;
  z-index: 1;
  opacity: 0.6;
}
.hero-phone-back.left { left: -40px; bottom: -20px; transform: rotate(-8deg); }
.hero-phone-back.right { right: -40px; bottom: -20px; transform: rotate(8deg); }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.hero-phone-main { animation: float 5s ease-in-out infinite; }

/* ── STORY SECTION (dark) ── */
.story {
  background: var(--text);
  color: var(--bg);
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.story h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.story h2 span { color: var(--primary); }
.story p {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: rgba(255,251,245,0.6);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── BENTO GRID ── */
.bento { padding: 80px 0; }
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.bento-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 32px;
  position: relative;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.bento-box:hover { transform: translateY(-4px); box-shadow: var(--premium-shadow); }
.bento-box h3 { font-size: clamp(1.4rem, 2.5vw, 1.8rem); margin-bottom: 8px; line-height: 1.1; }
.bento-box p { font-size: 15px; color: var(--text-dim); line-height: 1.6; max-width: 320px; }
.bento-box .device-frame { margin-top: 24px; }

.bento-wide { grid-column: span 7; }
.bento-narrow { grid-column: span 5; }
.bento-half { grid-column: span 6; }
.bento-full { grid-column: span 12; }

.bento-box .bento-img {
  border-radius: 16px;
  box-shadow: var(--shadow);
  margin-top: 20px;
  width: 100%;
  max-width: 300px;
}
.bento-box .bento-img-full {
  border-radius: 16px;
  box-shadow: var(--shadow);
  margin-top: 20px;
  width: 100%;
}

/* ── GROCERY SECTION (sage) ── */
.grocery {
  background: var(--sage);
  color: #fff;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.grocery-inner {
  display: flex;
  align-items: center;
  gap: 56px;
}
.grocery-text { flex: 1; }
.grocery-text .label { color: rgba(255,255,255,0.6); }
.grocery-text h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.05;
}
.grocery-text p { font-size: 17px; color: rgba(255,255,255,0.75); line-height: 1.7; max-width: 420px; }
.grocery-image { flex-shrink: 0; }
.grocery-image .device-frame {
  width: 280px;
  border-color: rgba(255,255,255,0.2);
  transform: perspective(800px) rotateY(-10deg) rotateX(3deg);
  transition: transform 0.5s var(--ease);
}
.grocery-image .device-frame:hover {
  transform: perspective(800px) rotateY(-2deg) rotateX(1deg);
}

/* ── PRICING ── */
.pricing { padding: 80px 0; }
.pricing-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 48px;
  align-items: start;
}
.pricing-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  border: 1px solid var(--border);
  text-align: center;
  position: relative;
  transition: all 0.3s var(--ease);
  width: 300px;
}
.pricing-card:hover { box-shadow: var(--shadow-lg); }
.pricing-card.featured {
  border: 2px solid var(--primary);
  box-shadow: 0 0 0 1px var(--primary), 0 12px 40px rgba(224,122,95,0.15);
  transform: scale(1.04);
}
.pricing-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.5px; padding: 5px 18px; border-radius: 20px;
}
.pricing-card h3 { font-family: 'Inter', sans-serif; font-size: 20px; font-weight: 600; margin-bottom: 4px; }
.pricing-price { font-family: 'DM Serif Display', serif; font-size: 48px; color: var(--text); margin: 12px 0 4px; }
.pricing-price span { font-size: 18px; color: var(--text-dim); font-family: 'Inter', sans-serif; }
.pricing-period { font-size: 14px; color: var(--text-dim); margin-bottom: 24px; }
.pricing-features { margin-bottom: 28px; }
.pricing-features li {
  font-size: 15px; color: var(--text-dim); padding: 8px 0;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px; text-align: left;
}
.pricing-features li:last-child { border: none; }
.pricing-check { color: var(--sage); font-weight: bold; flex-shrink: 0; }
.pricing-note { font-size: 13px; color: var(--text-light); margin-top: 28px; }

/* ── FINAL CTA ── */
.final-cta {
  padding: 80px 0 0;
}
.final-cta-box {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-lg);
  padding: 72px 48px;
  text-align: center;
  color: #fff;
}
.final-cta-box h2 { font-size: clamp(2rem, 4vw, 3rem); color: #fff; margin-bottom: 12px; }
.final-cta-box p { font-size: 18px; color: rgba(255,255,255,0.8); margin-bottom: 32px; }

/* ── FOOTER ── */
.footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--border);
  margin-top: 80px;
}
.footer-content { display: flex; justify-content: space-between; align-items: start; gap: 40px; margin-bottom: 32px; }
.footer-brand p { font-size: 14px; color: var(--text-dim); margin-top: 8px; max-width: 280px; }
.footer-links { display: flex; gap: 48px; }
.footer-col h4 { font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px; color: var(--text-dim); }
.footer-col a { display: block; font-size: 14px; color: var(--text-dim); padding: 3px 0; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-light); }

/* ── LEGAL / CONTENT PAGES ── */
.page-header {
  padding-top: calc(var(--nav-height) + 48px);
  padding-bottom: 32px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--accent-orange) 100%);
}
.page-header h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 8px; }
.page-header .updated { font-size: 14px; color: var(--text-dim); }
.legal-content { max-width: 720px; margin: 0 auto; padding: 48px 24px 80px; }
.legal-content h2 { font-family: 'Inter', sans-serif; font-size: 22px; font-weight: 600; margin-top: 40px; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.legal-content h3 { font-family: 'Inter', sans-serif; font-size: 17px; font-weight: 600; margin-top: 24px; margin-bottom: 8px; }
.legal-content p { margin-bottom: 12px; color: var(--text-dim); line-height: 1.7; }
.legal-content ul { margin: 8px 0 16px 20px; }
.legal-content ul li { list-style: disc; font-size: 15px; color: var(--text-dim); line-height: 1.7; padding: 2px 0; }
.legal-content a { color: var(--primary); text-decoration: underline; }
.legal-content strong { color: var(--text); }

/* ── FAQ ── */
.faq-search { max-width: 480px; margin: 0 auto 40px; position: relative; }
.faq-search input { width: 100%; padding: 14px 20px 14px 48px; border: 1px solid var(--border); border-radius: 14px; font-size: 16px; font-family: 'Inter', sans-serif; background: var(--surface); color: var(--text); outline: none; transition: border-color 0.2s; }
.faq-search input:focus { border-color: var(--primary); }
.faq-search .search-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--text-light); font-size: 18px; }
.faq-category { margin-bottom: 32px; }
.faq-category h3 { font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--primary); margin-bottom: 12px; padding-left: 4px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; margin-bottom: 8px; overflow: hidden; transition: box-shadow 0.2s; }
.faq-item:hover { box-shadow: var(--shadow); }
.faq-question { width: 100%; padding: 16px 20px; background: none; border: none; font-family: 'Inter', sans-serif; font-size: 16px; font-weight: 500; color: var(--text); text-align: left; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-question::after { content: "+"; font-size: 20px; font-weight: 300; color: var(--text-light); transition: transform 0.3s; flex-shrink: 0; }
.faq-item.open .faq-question::after { content: "\2212"; color: var(--primary); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-answer-inner { padding: 0 20px 16px; font-size: 15px; color: var(--text-dim); line-height: 1.7; }
.contact-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px; text-align: center; margin-top: 48px; }
.contact-card h3 { font-family: 'Inter', sans-serif; font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.contact-card p { color: var(--text-dim); margin-bottom: 20px; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .hero { padding-top: calc(var(--nav-height) + 48px); }
  .hero-phones { max-width: 300px; }
  .hero-phone-main { width: 220px; }
  .hero-phone-back { display: none; }
  .story { padding: 64px 0; }
  .bento-grid { grid-template-columns: 1fr; }
  .bento-wide, .bento-narrow, .bento-half, .bento-full { grid-column: span 1; }
  .grocery-inner { flex-direction: column; text-align: center; }
  .grocery-image .device-frame { width: 240px; margin: 0 auto; transform: none; }
  .grocery-image .device-frame:hover { transform: none; }
  .pricing-grid { flex-direction: column; align-items: center; }
  .pricing-card.featured { transform: none; }
  .final-cta-box { padding: 48px 24px; }
  .footer-content { flex-direction: column; }
  .footer-links { flex-direction: column; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-phone-main { width: 200px; }
  .bento-box { padding: 24px; }
}
