/* ===== Grocerr AI — premium fresh-tech site ===== */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Hanken+Grotesk:wght@400;500;600;700;800&display=swap');

:root {
  --cream: #F6F3EB;
  --cream-2: #EFEBDF;
  --ink: #15201A;
  --ink-soft: #41514A;
  --green: #0E5C3F;
  --green-deep: #0A4730;
  --green-black: #0A1410;
  --lime: #C4F042;
  --lime-soft: #E4F8B0;
  --line: rgba(21,32,26,0.10);
  --white: #FFFFFF;
  --radius: 22px;
  --radius-sm: 14px;
  --maxw: 1180px;
  --shadow-sm: 0 1px 2px rgba(10,20,16,0.05), 0 8px 24px rgba(10,20,16,0.05);
  --shadow-lg: 0 30px 80px -30px rgba(10,20,16,0.35);
  --display: 'Fraunces', Georgia, serif;
  --body: 'Hanken Grotesk', -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.04; letter-spacing: -0.02em; }
.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--green); display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow::before { content: ''; width: 22px; height: 1.5px; background: var(--green); display: inline-block; }
.text-lime { color: var(--lime); }
.text-green { color: var(--green); }
.serif-i { font-style: italic; font-family: var(--display); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--body); font-weight: 600; font-size: 16px;
  padding: 15px 26px; border-radius: 100px; border: none; cursor: pointer;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, background .25s, color .25s;
  white-space: nowrap;
}
.btn-primary { background: var(--ink); color: var(--cream); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(10,20,16,.5); }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -8px rgba(196,240,66,.6); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.btn-light { background: var(--cream); color: var(--ink); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(0,0,0,.4); }
.btn svg { width: 18px; height: 18px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s, box-shadow .3s, padding .3s;
  padding: 18px 0;
}
.nav.scrolled {
  background: rgba(246,243,235,0.82); backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 0 var(--line); padding: 12px 0;
}
.nav .container { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--display); font-weight: 600; font-size: 21px; letter-spacing: -0.02em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav-links { display: flex; align-items: center; gap: 34px; list-style: none; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--ink-soft); transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 168px 0 90px; overflow: hidden; }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; z-index: 0; }
.orb-1 { width: 520px; height: 520px; background: radial-gradient(circle, #2FA46B, transparent 70%); top: -120px; right: -120px; }
.orb-2 { width: 460px; height: 460px; background: radial-gradient(circle, var(--lime), transparent 70%); bottom: -160px; left: -140px; opacity: .4; }
.hero .container { position: relative; z-index: 2; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px; padding: 8px 15px 8px 11px; border-radius: 100px;
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-size: 13.5px; font-weight: 600; color: var(--ink-soft); margin-bottom: 30px;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(14,92,63,.18); }
.hero h1 { font-size: clamp(46px, 8vw, 92px); max-width: 14ch; margin-bottom: 26px; }
.hero p.lead { font-size: clamp(18px, 2.4vw, 22px); color: var(--ink-soft); max-width: 52ch; margin-bottom: 36px; line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 44px; align-items: center; }
.hero-trust .ht { display: flex; align-items: center; gap: 9px; font-size: 14.5px; color: var(--ink-soft); font-weight: 500; }
.hero-trust .ht b { font-family: var(--display); font-weight: 600; font-size: 19px; color: var(--ink); }
.hero-trust .divider { width: 1px; height: 30px; background: var(--line); }

/* store buttons */
.store-btn {
  display: inline-flex; align-items: center; gap: 11px; padding: 12px 20px; border-radius: 14px;
  background: var(--ink); color: var(--cream); transition: transform .25s, box-shadow .25s;
}
.store-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.store-btn svg { width: 26px; height: 26px; flex-shrink: 0; }
.store-btn .sb-small { font-size: 10.5px; opacity: .8; line-height: 1; letter-spacing: .02em; }
.store-btn .sb-big { font-size: 17px; font-weight: 600; line-height: 1.15; }
.store-btn.alt { background: var(--white); color: var(--ink); border: 1px solid var(--line); }

/* ---------- Section shell ---------- */
section { position: relative; }
.sec { padding: 100px 0; }
.sec-head { max-width: 760px; margin-bottom: 60px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head h2 { font-size: clamp(34px, 5vw, 58px); margin: 18px 0 18px; }
.sec-head p { font-size: 18.5px; color: var(--ink-soft); max-width: 56ch; }
.sec-head.center p { margin: 0 auto; }

/* ---------- Marquee strip ---------- */
.strip { background: var(--ink); color: var(--cream); padding: 22px 0; overflow: hidden; }
.marquee { display: flex; gap: 56px; white-space: nowrap; animation: scrollx 28s linear infinite; width: max-content; }
.marquee span { font-family: var(--display); font-size: 22px; font-weight: 500; opacity: .85; display: inline-flex; align-items: center; gap: 56px; }
.marquee span::after { content: '✳'; color: var(--lime); font-size: 16px; }
@keyframes scrollx { to { transform: translateX(-50%); } }

/* ---------- Features ---------- */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 30px;
  transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s; position: relative; overflow: hidden;
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.feature .ico {
  width: 54px; height: 54px; border-radius: 15px; display: flex; align-items: center; justify-content: center;
  background: var(--lime-soft); color: var(--green); margin-bottom: 22px;
}
.feature .ico svg { width: 26px; height: 26px; }
.feature h3 { font-size: 23px; margin-bottom: 10px; }
.feature p { color: var(--ink-soft); font-size: 15.5px; }
.feature.big { grid-column: span 2; background: var(--green-black); color: var(--cream); border-color: transparent; }
.feature.big h3 { color: var(--cream); }
.feature.big p { color: rgba(246,243,235,.72); }
.feature.big .ico { background: rgba(196,240,66,.16); color: var(--lime); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; counter-reset: step; }
.step { position: relative; padding-top: 30px; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--display); font-size: 17px; font-weight: 600; color: var(--green);
  border-top: 2px solid var(--green); padding-top: 14px; display: block; width: 100%;
}
.step h3 { font-size: 26px; margin: 16px 0 10px; }
.step p { color: var(--ink-soft); font-size: 16px; }

/* ---------- Stats (dark) ---------- */
.dark { background: var(--green-black); color: var(--cream); }
.dark .eyebrow { color: var(--lime); }
.dark .eyebrow::before { background: var(--lime); }
.stats-band { text-align: center; }
.stats-band h2 { font-size: clamp(36px, 6vw, 76px); max-width: 18ch; margin: 0 auto 60px; }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat .num { font-family: var(--display); font-size: clamp(40px, 6vw, 62px); font-weight: 600; color: var(--lime); }
.stat .lbl { color: rgba(246,243,235,.66); font-size: 15px; margin-top: 4px; }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 880px; margin: 0 auto; }
.price-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 38px 34px; }
.price-card.featured { background: var(--ink); color: var(--cream); border-color: var(--ink); position: relative; }
.price-card .tier { font-size: 15px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); }
.price-card.featured .tier { color: var(--lime); }
.price-card .amt { font-family: var(--display); font-size: 56px; font-weight: 600; margin: 12px 0 2px; letter-spacing: -.03em; }
.price-card .amt small { font-family: var(--body); font-size: 17px; font-weight: 500; color: var(--ink-soft); }
.price-card.featured .amt small { color: rgba(246,243,235,.6); }
.price-card .desc { color: var(--ink-soft); font-size: 15.5px; margin-bottom: 26px; }
.price-card.featured .desc { color: rgba(246,243,235,.7); }
.plist { list-style: none; margin: 26px 0; display: flex; flex-direction: column; gap: 13px; }
.plist li { display: flex; gap: 11px; align-items: flex-start; font-size: 15.5px; }
.plist li svg { width: 19px; height: 19px; flex-shrink: 0; margin-top: 2px; color: var(--green); }
.price-card.featured .plist li svg { color: var(--lime); }
.price-card .btn { width: 100%; }
.badge-pop { position: absolute; top: 22px; right: 26px; background: var(--lime); color: var(--ink); font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 100px; letter-spacing: .03em; }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.quote { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.quote .stars { color: var(--lime); font-size: 15px; letter-spacing: 2px; margin-bottom: 14px; -webkit-text-stroke: .5px #b9c95f; }
.quote p { font-size: 16.5px; line-height: 1.55; margin-bottom: 20px; }
.quote .who { display: flex; align-items: center; gap: 12px; }
.quote .who .av { width: 42px; height: 42px; border-radius: 50%; background: var(--green); color: var(--cream); display: flex; align-items: center; justify-content: center; font-weight: 700; font-family: var(--display); }
.quote .who b { font-size: 15px; }
.quote .who span { display: block; font-size: 13px; color: var(--ink-soft); }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 800px; margin: 0 auto; }
.faq { border-bottom: 1px solid var(--line); }
.faq button {
  width: 100%; background: none; border: none; cursor: pointer; text-align: left;
  padding: 26px 0; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  font-family: var(--display); font-size: 21px; font-weight: 500; color: var(--ink); letter-spacing: -.01em;
}
.faq .ic { width: 26px; height: 26px; flex-shrink: 0; position: relative; transition: transform .3s; }
.faq .ic::before, .faq .ic::after { content: ''; position: absolute; background: var(--green); border-radius: 2px; }
.faq .ic::before { width: 16px; height: 2px; top: 12px; left: 5px; }
.faq .ic::after { width: 2px; height: 16px; top: 5px; left: 12px; transition: transform .3s; }
.faq.open .ic::after { transform: rotate(90deg); opacity: 0; }
.faq .ans { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.faq .ans p { padding: 0 0 26px; color: var(--ink-soft); font-size: 16.5px; max-width: 64ch; }

/* ---------- Final CTA ---------- */
.cta-final { background: var(--green-black); color: var(--cream); border-radius: 40px; padding: 90px 40px; text-align: center; position: relative; overflow: hidden; margin: 0 24px; }
.cta-final .orb { position: absolute; width: 460px; height: 460px; border-radius: 50%; filter: blur(70px); }
.cta-final .o1 { background: radial-gradient(circle,#2FA46B,transparent 70%); top: -180px; left: -100px; opacity: .5; }
.cta-final .o2 { background: radial-gradient(circle,var(--lime),transparent 70%); bottom: -200px; right: -100px; opacity: .35; }
.cta-final > * { position: relative; z-index: 2; }
.cta-final h2 { font-size: clamp(36px, 6vw, 70px); max-width: 16ch; margin: 0 auto 22px; }
.cta-final p { font-size: 19px; color: rgba(246,243,235,.72); max-width: 48ch; margin: 0 auto 36px; }
.cta-final .hero-actions { justify-content: center; }

/* ---------- Footer ---------- */
.footer { padding: 70px 0 40px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid var(--line); }
.footer-brand p { color: var(--ink-soft); font-size: 15px; max-width: 32ch; margin: 16px 0 20px; }
.footer-col h4 { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: 15px; color: var(--ink); opacity: .8; transition: opacity .2s; }
.footer-col a:hover { opacity: 1; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 30px; flex-wrap: wrap; gap: 16px; }
.footer-bottom p { font-size: 14px; color: var(--ink-soft); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }

/* ---------- Legal / content pages ---------- */
.page-hero { padding: 150px 0 50px; }
.page-hero h1 { font-size: clamp(38px, 6vw, 68px); margin-bottom: 14px; }
.page-hero p { color: var(--ink-soft); font-size: 18px; }
.prose { max-width: 760px; padding-bottom: 90px; }
.prose h2 { font-size: 27px; margin: 40px 0 12px; }
.prose h3 { font-size: 20px; margin: 26px 0 8px; font-family: var(--body); font-weight: 700; }
.prose p, .prose li { color: var(--ink-soft); font-size: 16.5px; margin-bottom: 12px; line-height: 1.65; }
.prose ul { padding-left: 22px; margin-bottom: 14px; }
.prose a { color: var(--green); font-weight: 600; }
.prose strong { color: var(--ink); }
.callout { background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--green); border-radius: var(--radius-sm); padding: 22px 24px; margin: 24px 0; }
.callout p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: flex; }
  .nav.open .nav-links { display: flex; position: absolute; top: 100%; left: 16px; right: 16px; flex-direction: column; align-items: flex-start; gap: 4px; background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 14px; box-shadow: var(--shadow-lg); }
  .nav.open .nav-links a { padding: 10px 8px; width: 100%; }
  .features-grid, .quotes { grid-template-columns: 1fr; }
  .feature.big { grid-column: span 1; }
  .steps { grid-template-columns: 1fr; gap: 16px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 30px 16px; }
  .price-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-brand { grid-column: span 2; }
  .cta-final { padding: 60px 22px; border-radius: 28px; }
}
@media (max-width: 540px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
  .hero-trust .divider { display: none; }
  .sec { padding: 70px 0; }
}
