/* FoodMate AI — site styles
   Palette:
     leaf green   #7AB53F
     warm yellow  #F4C93C
     off-white    #FAF8F0
     accent green #35984D
     deep green   #227859
*/

:root {
  --leaf:   #7AB53F;
  --yellow: #F4C93C;
  --ground: #FAF8F0;
  --accent: #35984D;
  --deep:   #227859;

  --ink:        #2b2b25;
  --ink-soft:   #54544b;
  --ink-faint:  #8a8a7e;

  --card:       #FFFFFF;
  --card-warm:  #FFFEF8;
  --line:       #ebe6d4;

  --radius:     22px;
  --radius-sm:  14px;

  --shadow-sm:  0 1px 2px rgba(34, 120, 89, 0.04),
                0 4px 14px rgba(34, 120, 89, 0.06);
  --shadow-md:  0 6px 24px rgba(34, 120, 89, 0.08),
                0 2px 6px rgba(34, 120, 89, 0.05);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--deep); text-decoration: underline; text-underline-offset: 3px; }

img { max-width: 100%; height: auto; display: block; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  background: rgba(250, 248, 240, 0.85);
  border-bottom: 1px solid rgba(235, 230, 212, 0.6);
}
.nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--deep);
  font-size: 17px;
  letter-spacing: -0.01em;
}
.nav .brand:hover { text-decoration: none; }
.nav .brand img {
  width: 32px; height: 32px; border-radius: 8px;
}
.nav-links {
  margin-left: auto;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.nav-links a {
  color: var(--ink-soft);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
}
.nav-links a:hover {
  background: rgba(122, 181, 63, 0.12);
  color: var(--deep);
  text-decoration: none;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 64px 24px 56px;
  text-align: center;
  background:
    radial-gradient(1200px 480px at 50% -160px, rgba(244, 201, 60, 0.22), transparent 60%),
    radial-gradient(900px 520px at 50% -60px, rgba(122, 181, 63, 0.18), transparent 60%),
    linear-gradient(180deg, #f3f0dc 0%, var(--ground) 70%);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(244, 201, 60, 0.18) 0 2px, transparent 3px),
    radial-gradient(circle at 86% 30%, rgba(122, 181, 63, 0.18) 0 2px, transparent 3px),
    radial-gradient(circle at 22% 78%, rgba(53, 152, 77, 0.14) 0 2px, transparent 3px),
    radial-gradient(circle at 78% 70%, rgba(244, 201, 60, 0.16) 0 2px, transparent 3px);
  pointer-events: none;
}
.hero > * { position: relative; }

.app-icon {
  width: 128px;
  height: 128px;
  border-radius: 28px;
  margin: 0 auto 28px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.6) inset,
    0 18px 40px rgba(34, 120, 89, 0.22),
    0 4px 10px rgba(34, 120, 89, 0.12);
}

h1 {
  font-size: clamp(40px, 7vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--deep);
  margin-bottom: 14px;
}
h1 .ai {
  display: inline-block;
  margin-left: 4px;
  padding: 2px 10px;
  background: var(--yellow);
  color: var(--deep);
  border-radius: 999px;
  font-size: 0.42em;
  font-weight: 700;
  letter-spacing: 0.04em;
  vertical-align: middle;
  transform: translateY(-0.18em);
}

.tagline {
  font-size: clamp(18px, 2.4vw, 22px);
  color: var(--ink-soft);
  max-width: 620px;
  margin: 0 auto 28px;
  line-height: 1.45;
}

.coming-soon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  background: var(--deep);
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  box-shadow: 0 6px 18px rgba(34, 120, 89, 0.28);
}
.coming-soon .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 4px rgba(244, 201, 60, 0.25);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.coming-soon small {
  color: rgba(255,255,255,0.72);
  font-weight: 500;
}

.hero-contact {
  margin-top: 22px;
  font-size: 15px;
  color: var(--ink-soft);
}
.hero-contact a {
  color: var(--accent);
  border-bottom: 1px dotted var(--accent);
  padding-bottom: 1px;
}

/* ---------- Sections ---------- */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 24px;
}
.section + .section { padding-top: 16px; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.section-title {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--deep);
  line-height: 1.15;
  margin-bottom: 14px;
}
.section-lede {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 680px;
  margin-bottom: 36px;
  line-height: 1.55;
}

/* ---------- Feature grid ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.feature-glyph {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(140deg, rgba(122, 181, 63, 0.16), rgba(244, 201, 60, 0.18));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--deep);
}
.feature-glyph svg { width: 30px; height: 30px; }
.feature h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--deep);
  letter-spacing: -0.005em;
  margin-bottom: 8px;
}
.feature p {
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.55;
}

/* ---------- Two columns / paired cards ---------- */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}
.panel--green {
  background:
    linear-gradient(180deg, rgba(122, 181, 63, 0.08), rgba(122, 181, 63, 0.02));
  border-color: rgba(122, 181, 63, 0.25);
}
.panel h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--deep);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.panel p { color: var(--ink-soft); font-size: 16px; }
.panel p + p { margin-top: 12px; }

/* ---------- Pillars (Yours to keep) ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 8px;
}
.pillar {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.pillar-icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--deep);
}
.pillar-icon svg { width: 22px; height: 22px; }
.pillar h4 {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--deep);
  margin-bottom: 4px;
  letter-spacing: -0.005em;
}
.pillar p {
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.5;
}

/* ---------- Interest card (CTA) ---------- */
.interest {
  position: relative;
  margin-top: 48px;
  padding: 40px 32px;
  border-radius: var(--radius);
  background:
    radial-gradient(700px 260px at 80% 20%, rgba(244, 201, 60, 0.32), transparent 60%),
    radial-gradient(700px 320px at 20% 90%, rgba(122, 181, 63, 0.28), transparent 60%),
    linear-gradient(180deg, var(--deep), #1b6350);
  color: #fff;
  text-align: center;
  overflow: hidden;
}
.interest h3 {
  font-size: clamp(24px, 3.4vw, 32px);
  font-weight: 800;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
}
.interest p {
  color: rgba(255,255,255,0.85);
  max-width: 540px;
  margin: 0 auto 22px;
  font-size: 17px;
}
.interest .email-link {
  display: inline-block;
  background: var(--yellow);
  color: var(--deep);
  font-weight: 700;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 16px;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
}
.interest .email-link:hover {
  background: #ffd957;
  color: var(--deep);
  text-decoration: none;
  transform: translateY(-1px);
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 48px;
  padding: 36px 24px 40px;
  border-top: 1px solid var(--line);
  background: #f4f1e1;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--deep);
  font-weight: 700;
}
.footer-brand img { width: 36px; height: 36px; border-radius: 9px; }
.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 14.5px;
}
.footer-links a { color: var(--ink-soft); }
.footer-meta {
  max-width: 1100px;
  margin: 22px auto 0;
  font-size: 13.5px;
  color: var(--ink-faint);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
}

/* ---------- Legal / article pages ---------- */
.article {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 32px;
}
.article .crumbs {
  font-size: 14px;
  color: var(--ink-faint);
  margin-bottom: 22px;
}
.article .crumbs a { color: var(--ink-soft); }
.article h1 {
  font-size: clamp(34px, 5vw, 44px);
  margin-bottom: 8px;
}
.article .subtitle {
  color: var(--ink-faint);
  font-size: 15px;
  margin-bottom: 32px;
}
.article .intro {
  font-size: 18px;
  color: var(--ink-soft);
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--leaf);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
  margin-bottom: 32px;
}
.article h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--deep);
  letter-spacing: -0.01em;
  margin-top: 32px;
  margin-bottom: 12px;
}
.article p {
  color: var(--ink);
  font-size: 16.5px;
  margin-bottom: 14px;
  line-height: 1.65;
}
.article .back-to-top {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
  color: var(--ink-faint);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* support page highlight callout */
.support-callout {
  background: linear-gradient(140deg, rgba(122, 181, 63, 0.14), rgba(244, 201, 60, 0.14));
  border: 1px solid rgba(122, 181, 63, 0.3);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 32px;
  font-size: 17px;
  color: var(--deep);
}
.support-callout strong { color: var(--deep); }
.support-callout a {
  color: var(--deep);
  font-weight: 600;
  border-bottom: 1px solid var(--accent);
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .hero { padding: 48px 20px 40px; }
  .section { padding: 44px 20px; }
  .article { padding: 36px 20px 24px; }
  .interest { padding: 32px 22px; }
  .feature { padding: 22px; }
  .panel { padding: 24px; }
  .nav { padding: 12px 18px; }
  .nav-links a { padding: 6px 10px; font-size: 14.5px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 380px) {
  .app-icon { width: 104px; height: 104px; }
  h1 { font-size: 36px; }
}
