/* DailyGro - Complete Styles Bundle v2.0 */
/* Note: Google Fonts loaded via <link> in <head> for faster parallel download */
/* ==========================================================================
   styles.css (FULL — consolidated + cleaned)
===== */

:root{
  --bg:#ffffff;
  --text:#0f172a;
  --muted:#5b6475;
  --line:rgba(15,23,42,.10);

  --green:#055f38;
  --green2:#1b8a58;

  --shadow: 0 18px 50px rgba(15,23,42,.10);
  --shadow2: 0 10px 28px rgba(15,23,42,.10);

  --radius: 22px;
  --radius-lg: 30px;
  --container: 1120px;

  /* bg “premium paper” (NO banding) */
  --paper-1: rgba(15,23,42,.028);
  --paper-2: rgba(27,138,88,.020);
  --paper-3: rgba(15,23,42,.018);

  /* glass */
  --glass: rgba(255,255,255,.34);
  --glass-border: rgba(15,23,42,.10);
  --glass-blur: 18px;

  /* sprout fx vars */
  --sprout-fade: 1;                 /* 1 = full, 0 = hidden (JS changes this near footer) */
  --sprout-parallax-y: 0px;         /* JS writes subtle scroll offsets */
  --sprout-filter: saturate(1.05) contrast(1.02);
  --sprout-opacity: 0.11;

}

/* =========================
   BASE
   ========================= */
*{box-sizing:border-box}
/* Remove ugly Android tap highlight */
button, a, .card, .pack-card, .plan, .recipe {
  -webkit-tap-highlight-color: rgba(27, 138, 88, 0.15);
  -webkit-touch-callout: none;
}

/* Better focus states for keyboard navigation */
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

button:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
  outline: none;
}
html,body{height:100%; margin:0; padding:0;}
html, body { overflow-x: hidden; }

body{
  margin:0;
  font-family:"Plus Jakarta Sans", system-ui,-apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;

  background: var(--bg);
  position: relative;
  overflow-x: hidden;
}

img{max-width:100%; display:block}
a{color:inherit; text-decoration:none}
.container{width:min(var(--container), calc(100% - 48px)); margin-inline:auto}

.muted{color:var(--muted)}
.tiny{font-size:12px}
.center{text-align:center}

/* Premium background texture (CSS-only, zero horizontal “layers”) */
body::before{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;

  background:
    radial-gradient(1200px 900px at 12% 18%, var(--paper-2), transparent 58%),
    radial-gradient(900px 700px at 86% 10%, var(--paper-1), transparent 60%),
    radial-gradient(1100px 900px at 88% 82%, var(--paper-2), transparent 60%),
    radial-gradient(900px 700px at 8% 82%, var(--paper-1), transparent 60%),
    radial-gradient(2px 2px at 20% 30%, rgba(15,23,42,.05), transparent 60%),
    radial-gradient(2px 2px at 70% 60%, rgba(15,23,42,.04), transparent 60%),
    radial-gradient(1px 1px at 40% 80%, rgba(15,23,42,.035), transparent 60%),
    radial-gradient(1px 1px at 55% 25%, rgba(15,23,42,.03), transparent 60%);

  opacity: .85;
  filter: saturate(1.02) contrast(1.02);
}

/* Ambient shapes (NO animation) */
body::after{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events:none;

  background:
    radial-gradient(140px 90px at 15% 30%, rgba(27,138,88,.10), transparent 70%),
    radial-gradient(160px 100px at 85% 22%, rgba(27,138,88,.08), transparent 72%),
    radial-gradient(120px 80px at 78% 75%, rgba(15,23,42,.06), transparent 72%),
    radial-gradient(150px 100px at 22% 78%, rgba(15,23,42,.05), transparent 74%);

  opacity:.85;
}

/* =========================
   PREMIUM MICRO-ANIMATIONS (safe)
   ========================= */
@media (prefers-reduced-motion: no-preference){
  .btn, .card, .pack-card, .plan, .recipe, .social-card, .trust-card, .promise-card{
    will-change: transform, box-shadow, opacity;
  }
}

/* =========================
   BACKGROUND BLOBS (subtle, hero only)
   Add in HTML inside .hero: <div class="bg-blobs" aria-hidden="true"></div>
   ========================= */
.bg-blobs{
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index:0;
  overflow:hidden;
}
.bg-blobs::before,
.bg-blobs::after{
  content:"";
  position:absolute;
  width: 380px;
  height: 380px;
  border-radius: 999px;
  filter: blur(40px);
  opacity: .16;
  transform: translate3d(0,0,0);
}
.bg-blobs::before{
  left: -140px;
  top: 20%;
  background: radial-gradient(circle at 30% 30%, rgba(27,138,88,.65), rgba(27,138,88,0));
}
.bg-blobs::after{
  right: -160px;
  top: 6%;
  background: radial-gradient(circle at 30% 30%, rgba(15,23,42,.55), rgba(15,23,42,0));
}

@media (prefers-reduced-motion: no-preference){
  .bg-blobs::before{ animation: blobDrift1 18s ease-in-out infinite alternate; }
  .bg-blobs::after { animation: blobDrift2 22s ease-in-out infinite alternate; }
}
@keyframes blobDrift1{
  from{ transform: translate3d(0, 0, 0) scale(1); }
  to  { transform: translate3d(30px, -18px, 0) scale(1.06); }
}
@keyframes blobDrift2{
  from{ transform: translate3d(0, 0, 0) scale(1); }
  to  { transform: translate3d(-28px, 22px, 0) scale(1.05); }
}

/* =========================
   SCROLL REVEAL (CSS hooks)
   ========================= */
.reveal{
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in{
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger > *{
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal-stagger.in > *{ opacity:1; transform: translateY(0); }
.reveal-stagger.in > *:nth-child(1){ transition-delay: .02s; }
.reveal-stagger.in > *:nth-child(2){ transition-delay: .08s; }
.reveal-stagger.in > *:nth-child(3){ transition-delay: .14s; }
.reveal-stagger.in > *:nth-child(4){ transition-delay: .20s; }

/* =========================
   SECTIONS
   ========================= */
.section{padding:45px 0; position:relative; z-index:1;}
/* Perf: render below-fold sections lazily (no visual change) */
main section.section{content-visibility:auto; contain-intrinsic-size: 900px 700px;}
@supports not (content-visibility:auto){
  main section.section{content-visibility:visible;}
}


.section-soft{
  background:
    radial-gradient(900px 520px at 20% 20%, rgba(27,138,88,.10), transparent 60%),
    radial-gradient(900px 520px at 80% 70%, rgba(27,138,88,.07), transparent 60%),
    rgba(27,138,88,.02);
  border-top: 1px solid rgba(15,23,42,.04);
  border-bottom: 1px solid rgba(15,23,42,.04);
}
.section-soft-neutral{
  background:
    radial-gradient(900px 520px at 18% 35%, rgba(15,23,42,.06), transparent 60%),
    radial-gradient(900px 520px at 85% 70%, rgba(15,23,42,.04), transparent 62%),
    rgba(15,23,42,.015);
  border-top: 1px solid rgba(15,23,42,.04);
  border-bottom: 1px solid rgba(15,23,42,.04);
}

.section-head{margin-bottom:22px}
.section-head h2{margin:0 0 6px; font-size:34px; letter-spacing:-.02em}
.section-head p{margin:0; max-width:680px}
.section-head.center{text-align:center}
.section-head.center p{margin:0 auto}
/* iOS Safe Area Support */
@supports (padding: env(safe-area-inset-bottom)) {
  .footer {
    padding-bottom: calc(18px + env(safe-area-inset-bottom));
  }
  
  .nav {
    padding-top: env(safe-area-inset-top);
  }
}/* ==========================================================================
   DAILYGRO DESIGN SYSTEM - ENHANCED UI
   Modern, fresh aesthetics with excellent cross-browser compatibility
   ========================================================================== */

:root{
  /* ===== ENHANCED COLOR PALETTE ===== */
  /* Primary Brand Colors - Fresh, vibrant greens */
  --green-50: #f0fdf4;
  --green-100: #dcfce7;
  --green-200: #bbf7d0;
  --green-300: #86efac;
  --green-400: #4ade80;
  --green-500: #22c55e;
  --green-600: #16a34a;
  --green-700: #15803d;
  --green-800: #166534;
  --green-900: #14532d;
  
  /* Semantic Colors */
  --primary: #16a34a;
  --primary-hover: #15803d;
  --primary-light: #86efac;
  --accent: #22c55e;
  --accent-bright: #4ade80;
  
  /* Neutral Palette - Warmer, more inviting */
  --bg-primary: #ffffff;
  --bg-secondary: #fafaf9;
  --bg-tertiary: #f5f5f4;
  --bg-soft: #fafaf9;
  
  --text-primary: #1c1917;
  --text-secondary: #57534e;
  --text-muted: #78716c;
  --text-subtle: #a8a29e;
  
  /* Borders & Lines */
  --border-light: rgba(0, 0, 0, 0.06);
  --border-medium: rgba(0, 0, 0, 0.12);
  --border-strong: rgba(0, 0, 0, 0.18);
  
  /* ===== ENHANCED SHADOWS ===== */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  
  /* Green-tinted shadows for brand elements */
  --shadow-primary: 0 10px 30px -5px rgba(22, 163, 74, 0.3);
  --shadow-primary-lg: 0 20px 40px -8px rgba(22, 163, 74, 0.35);
  
  /* ===== GLASS MORPHISM ===== */
  --glass-white: rgba(255, 255, 255, 0.7);
  --glass-white-strong: rgba(255, 255, 255, 0.85);
  --glass-blur: 16px;
  --glass-border: rgba(255, 255, 255, 0.2);
  
  /* ===== SPACING SYSTEM ===== */
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.25rem;   /* 20px */
  --space-6: 1.5rem;    /* 24px */
  --space-8: 2rem;      /* 32px */
  --space-10: 2.5rem;   /* 40px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;     /* 64px */
  --space-20: 5rem;     /* 80px */
  
  /* ===== BORDER RADIUS ===== */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-3xl: 32px;
  --radius-full: 9999px;
  
  /* ===== TRANSITIONS ===== */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
  
  /* ===== CONTAINER ===== */
  --container-max: 1280px;
  --container-padding: clamp(1rem, 5vw, 3rem);
  
  /* ===== Z-INDEX LAYERS ===== */
  --z-base: 0;
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
}

/* Dark Theme Colors */
[data-theme="dark"] {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;
  --bg-soft: #1e293b;
  
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
  
  --border-light: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.18);
  
  --glass-white: rgba(30, 41, 59, 0.7);
  --glass-white-strong: rgba(30, 41, 59, 0.85);
  --glass-border: rgba(255, 255, 255, 0.1);
  
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.5), 0 1px 2px -1px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -2px rgba(0, 0, 0, 0.5);
}

/* ===== BASE RESETS & IMPROVEMENTS ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  
  /* Prevent font size adjustment on orientation change */
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, 
               "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", 
               "Segoe UI Emoji", "Segoe UI Symbol";
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
  
  /* Better font rendering */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1;
  font-kerning: normal;
}

/* ===== IMPROVED TAP/TOUCH HANDLING ===== */
a, button, input, select, textarea {
  /* Remove tap highlight on mobile */
  -webkit-tap-highlight-color: transparent;
  
  /* Prevent callout menu on long press */
  -webkit-touch-callout: none;
  
  /* Prevent text selection on buttons */
}

button, input[type="button"], input[type="submit"] {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* ===== FOCUS STATES - ACCESSIBILITY ===== */
*:focus {
  outline: none;
}

*:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ===== IMAGES & MEDIA ===== */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Prevent layout shift from lazy-loaded images */
img[loading="lazy"] {
  content-visibility: auto;
}

/* ===== TYPOGRAPHY IMPROVEMENTS ===== */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h5 { font-size: clamp(1.125rem, 2vw, 1.25rem); }
h6 { font-size: clamp(1rem, 1.5vw, 1.125rem); }

p {
  margin: 0;
  line-height: 1.7;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-base);
}

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

/* ===== IMPROVED CONTAINER ===== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

/* ===== PREMIUM BACKGROUND EFFECTS ===== */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  
  background:
    radial-gradient(circle at 20% 20%, var(--green-50) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, var(--green-50) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  
  opacity: 0.6;
}

/* Subtle grain texture */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='2.5' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.03;
  mix-blend-mode: overlay;
}

[data-theme="dark"] body::before {
  background:
    radial-gradient(circle at 20% 20%, var(--green-900) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, var(--green-900) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  opacity: 0.3;
}

/* ===== UTILITY CLASSES ===== */
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-subtle { color: var(--text-subtle); }

.bg-primary { background-color: var(--bg-primary); }
.bg-secondary { background-color: var(--bg-secondary); }
.bg-tertiary { background-color: var(--bg-tertiary); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ===== CROSS-BROWSER COMPATIBILITY ===== */

/* Scrollbar Styling - Webkit browsers */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: var(--radius-full);
  border: 3px solid var(--bg-secondary);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Firefox scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) var(--bg-secondary);
}

/* Selection color */
::selection {
  background-color: var(--primary-light);
  color: var(--text-primary);
}

::-moz-selection {
  background-color: var(--primary-light);
  color: var(--text-primary);
}

/* ===== PRINT STYLES ===== */
@media print {
  body::before,
  body::after {
    display: none;
  }
  
  * {
    background: white !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
}

/* =========================
   SCROLL PROGRESS BAR
   ========================= */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, 
    var(--color-primary-500), 
    var(--color-primary-600));
  z-index: 9999;
  transition: width 0.1s ease-out;
  will-change: width;
  box-shadow: 0 2px 4px rgba(22, 163, 74, 0.3);
}

[data-theme="dark"] .scroll-progress {
  background: linear-gradient(90deg, 
    var(--color-primary-400), 
    var(--color-primary-500));
}

@media (prefers-reduced-motion: reduce) {
  .scroll-progress {
    transition: none;
  }
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  padding: 8px 10px;
  min-width: 38px;
}

.icon-btn:hover {
  transform: scale(1.05);
}

.icon-btn:active {
  transform: scale(0.95);
}

/* =========================
   FIX #15: Scroll margin for anchor sections
   ========================= */
section[id],
[id="top"] {
  scroll-margin-top: 80px;
}
