/* ============================================================
   YILD — Health-Tech Commerce
   Display: Cabinet Grotesk · Body: Work Sans
   ============================================================ */

:root {
  /* Brand */
  --green-900: #163a17;
  --green-800: #1e4a1f;
  --green-700: #246b27;
  --green-600: #2e8b32;
  --green-500: #3aa83f;
  --mint-50: #eef8ef;
  --mint-100: #e2f3e4;

  /* Score colours */
  --excellent: #1ba84a;
  --excellent-bg: #e6f6ec;
  --good: #8cc63f;
  --good-bg: #f0f7e2;
  --average: #f3a712;
  --average-bg: #fdf1da;
  --poor: #e0533d;
  --poor-bg: #fbe7e2;

  --accent: #ffb627;
  --accent-dark: #e89e0f;

  /* Brand berry (from the Yild logo) — used sparingly as the spark */
  --berry: #a01860;
  --berry-600: #8a1453;
  --berry-400: #c23b82;
  --berry-50: #fbeaf3;
  --berry-glow: rgba(160, 24, 96, .28);

  /* Neutrals */
  --ink: #16231a;
  --ink-soft: #5a6760;
  --line: #e8ece8;
  --cream: #faf7ef;
  --bg: #ffffff;
  --surface: #f6f8f5;

  /* Type */
  --font-display: 'Cabinet Grotesk', 'Work Sans', system-ui, sans-serif;
  --font-body: 'Work Sans', system-ui, sans-serif;

  --text-hero: clamp(2.4rem, 5.2vw, 4rem);
  --text-2xl: clamp(1.8rem, 3.6vw, 2.8rem);
  --text-xl: clamp(1.4rem, 2.4vw, 1.9rem);
  --text-lg: 1.2rem;
  --text-base: 1.0625rem;
  --text-sm: 0.9375rem;
  --text-xs: 0.8125rem;

  --container: 1200px;
  --radius: 20px;
  --radius-sm: 14px;
  --shadow-sm: 0 2px 14px rgba(22, 58, 23, 0.06);
  --shadow-md: 0 14px 40px rgba(22, 58, 23, 0.12);
  --shadow-lg: 0 24px 60px rgba(22, 58, 23, 0.18);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body); font-size: var(--text-base); line-height: 1.65;
  color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-size: var(--text-sm); font-weight: 600;
  padding: 13px 26px; border-radius: 100px; border: none; cursor: pointer;
  transition: transform .3s var(--ease), background .25s, box-shadow .3s, color .25s; white-space: nowrap;
}
.btn--sm { padding: 9px 18px; font-size: var(--text-sm); }
.btn--lg { padding: 15px 32px; font-size: var(--text-base); }
.btn--primary { background: var(--green-700); color: #fff; }
.btn--primary:hover { background: var(--green-800); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--accent { background: var(--accent); color: var(--green-900); }
.btn--accent:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn--berry { background: var(--berry); color: #fff; }
.btn--berry:hover { background: var(--berry-600); transform: translateY(-2px); box-shadow: 0 14px 34px var(--berry-glow); }
.btn--ghost { background: var(--mint-100); color: var(--green-800); }
.btn--ghost:hover { background: var(--green-700); color: #fff; transform: translateY(-2px); }
.btn--outline { background: transparent; color: var(--green-700); border: 1.5px solid var(--line); }
.btn--outline:hover { border-color: var(--green-700); background: var(--green-700); color: #fff; }
.btn--add { background: var(--green-700); color: #fff; padding: 9px 20px; }
.btn--add:hover { background: var(--green-800); }
.btn--add.is-added { background: var(--excellent); }

/* ---------- Shared ---------- */
.section { padding: clamp(56px, 7vw, 104px) 0; }
.section--mint { background: var(--mint-50); }
.section--cream { background: var(--cream); }
.section--dark { background: var(--green-900); color: var(--cream); }
.section { position: relative; overflow: hidden; }
.section .container { position: relative; z-index: 1; }

.eyebrow { display: inline-block; font-weight: 700; font-size: var(--text-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--green-600); margin-bottom: 12px; }
.eyebrow--light { color: var(--accent); }
.eyebrow--berry { color: var(--berry); }

.section__head { max-width: 660px; margin: 0 auto clamp(40px, 5vw, 60px); text-align: center; }
.section__head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; text-align: left; }
.section__head--row .section__title { margin: 0; }
.section__title { font-family: var(--font-display); font-weight: 800; line-height: 1.06; font-size: var(--text-2xl); letter-spacing: -.02em; color: var(--green-900); }
.section__title--light { color: var(--cream); }
.section__lead { margin-top: 14px; color: var(--ink-soft); font-size: var(--text-lg); }

.pill { display: inline-flex; align-items: center; gap: 8px; background: var(--mint-100); color: var(--green-800); font-weight: 600; font-size: var(--text-sm); padding: 7px 16px; border-radius: 100px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; }
.dot--green { background: var(--excellent); }

/* ---------- Score primitives ---------- */
.score-ring {
  --c: var(--excellent); --bg: var(--excellent-bg);
  width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; color: var(--c);
  background: var(--bg); border: 3px solid var(--c);
}
.score-ring span { font-size: 1.15rem; }
.score-ring--sm { width: 46px; height: 46px; border-width: 2.5px; } .score-ring--sm span { font-size: .95rem; }
.score-ring--md { width: 78px; height: 78px; } .score-ring--md span { font-size: 1.25rem; }
.score-ring--excellent { --c: var(--excellent); --bg: var(--excellent-bg); }
.score-ring--good { --c: var(--good); --bg: var(--good-bg); color: #5c8418; }
.score-ring--average { --c: var(--average); --bg: var(--average-bg); }
.score-ring--poor { --c: var(--poor); --bg: var(--poor-bg); }

.score-badge {
  position: absolute; top: 12px; right: 12px; z-index: 2; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: .95rem;
  color: #fff; box-shadow: var(--shadow-sm);
}
.score-badge--excellent { background: var(--excellent); }
.score-badge--good { background: var(--good); }
.score-badge--average { background: var(--average); }
.score-badge--poor { background: var(--poor); }

.mini-score { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 8px; border-radius: 12px; font-family: var(--font-display); font-weight: 800; color: #fff; }
.mini-score--excellent { background: var(--excellent); }
.mini-score--good { background: var(--good); color: #3d5c0f; }
.mini-score--poor { background: var(--poor); }

/* ---------- Announcement ---------- */
.announce { background: var(--green-900); color: var(--cream); font-size: var(--text-xs); }
.announce__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 9px 24px; }
.announce__text { display: inline-flex; align-items: center; gap: 8px; }
.announce__text strong { color: var(--accent); }
.announce__cta { font-weight: 600; color: var(--accent); white-space: nowrap; transition: opacity .2s; }
.announce__cta:hover { opacity: .8; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.88); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); transition: box-shadow .3s var(--ease); }
.header--scrolled { box-shadow: var(--shadow-sm); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.logo__img { height: 44px; width: auto; }
.nav { display: flex; gap: 30px; margin-left: auto; }
.nav__link { font-size: var(--text-sm); font-weight: 500; position: relative; padding: 4px 0; }
.nav__link::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: linear-gradient(90deg, var(--green-600), var(--berry-400)); transition: width .3s var(--ease); }
.nav__link:hover { color: var(--green-700); } .nav__link:hover::after { width: 100%; }
.header__actions { display: flex; align-items: center; gap: 6px; }
.icon-btn { background: none; border: none; cursor: pointer; color: var(--ink); padding: 8px; display: grid; place-items: center; border-radius: 10px; transition: background .2s, color .2s; }
.icon-btn:hover { background: var(--surface); color: var(--green-700); }
.cart-btn { position: relative; }
.cart-count { position: absolute; top: 2px; right: 2px; background: var(--accent); color: var(--green-900); font-size: 10px; font-weight: 700; min-width: 17px; height: 17px; border-radius: 100px; display: grid; place-items: center; padding: 0 4px; }
.header__cta { margin-left: 8px; }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.hamburger span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s; }
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Drawer ---------- */
.drawer { position: fixed; top: 0; right: -100%; width: min(82vw, 340px); height: 100%; z-index: 70; background: #fff; padding: 92px 28px 28px; transition: right .4s var(--ease); box-shadow: var(--shadow-lg); }
.drawer.is-open { right: 0; }
.drawer__nav { display: flex; flex-direction: column; gap: 4px; }
.drawer__link { font-size: var(--text-lg); font-weight: 500; padding: 14px 0; border-bottom: 1px solid var(--line); }
.drawer__cta { margin-top: 24px; }
.drawer__overlay { position: fixed; inset: 0; background: rgba(22,35,26,.5); z-index: 60; opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; }
.drawer__overlay.is-open { opacity: 1; visibility: visible; }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 6vw, 84px) 0 clamp(56px, 7vw, 96px); background: radial-gradient(120% 120% at 80% 0%, var(--mint-50) 0%, #fff 55%); }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__title { font-family: var(--font-display); font-weight: 800; font-size: var(--text-hero); line-height: 1.04; letter-spacing: -.03em; color: var(--green-900); margin: 18px 0 18px; }
.hero__title .hl { color: var(--berry); position: relative; white-space: nowrap; }
.hero__title .hl::after { content: ''; position: absolute; left: 0; right: 100%; bottom: 4px; height: 11px; background: linear-gradient(90deg, var(--berry-400), var(--berry)); opacity: .26; z-index: -1; border-radius: 4px; transition: right 1s var(--ease) .5s; }
.hero__title.is-underlined .hl::after { right: 0; }
.hero__sub { font-size: var(--text-lg); color: var(--ink-soft); max-width: 520px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero__trust { list-style: none; display: flex; gap: 32px; margin-top: 34px; }
.hero__trust li { display: flex; flex-direction: column; }
.hero__trust strong { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; color: var(--green-800); }
.hero__trust span { font-size: var(--text-xs); color: var(--ink-soft); }

.hero__visual { position: relative; }
.hero__photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/4.4; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.float-card { position: absolute; background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow-md); padding: 14px 16px; display: flex; align-items: center; gap: 12px; animation: float 5s ease-in-out infinite; }
.float-card--score { top: 24px; left: -28px; }
.float-card--alt { bottom: 26px; right: -24px; flex-direction: column; align-items: flex-start; gap: 8px; animation-delay: -2.5s; }
.float-card__text { display: flex; flex-direction: column; line-height: 1.2; }
.float-card__text strong { font-family: var(--font-display); color: var(--excellent); }
.float-card__text span { font-size: var(--text-xs); color: var(--ink-soft); }
.float-card__label { font-size: var(--text-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--berry); }
.float-card__row { display: flex; align-items: center; gap: 10px; font-size: var(--text-sm); color: var(--ink); }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Trust bar ---------- */
.trustbar { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.trustbar__inner { display: flex; align-items: center; gap: 28px; padding: 20px 24px; flex-wrap: wrap; justify-content: center; }
.trustbar__label { font-size: var(--text-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; }
.trustbar__logos { list-style: none; display: flex; gap: 30px; flex-wrap: wrap; justify-content: center; }
.trustbar__logos li { font-family: var(--font-display); font-weight: 700; color: var(--green-800); opacity: .8; font-size: var(--text-sm); }

/* ---------- Products ---------- */
/* ---- Products carousel: auto-scroll + drag/swipe ---- */
.products-carousel { position: relative; margin: 0 calc(var(--gutter, 0px) * -1); }
.products-track {
  display: flex; gap: 24px;
  overflow-x: auto; overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 6px 2px 14px;
  cursor: grab;
}
.products-track::-webkit-scrollbar { display: none; }
.products-track.is-dragging { cursor: grabbing; user-select: none; }
.products-track.is-dragging .card { pointer-events: none; }
.products-track.is-dragging, .products-track.is-dragging * { -webkit-user-select: none; user-select: none; }
.products-track .card {
  flex: 0 0 clamp(250px, 30%, 310px);
}
.card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s var(--ease); display: flex; flex-direction: column; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card__media { position: relative; aspect-ratio: 1; background: var(--surface); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__media img { transform: scale(1.06); }
.badge-sale { position: absolute; top: 12px; left: 12px; z-index: 2; background: var(--poor); color: #fff; font-size: var(--text-xs); font-weight: 700; padding: 4px 10px; border-radius: 100px; }
.card__body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.card__cat { font-size: var(--text-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--green-600); font-weight: 700; }
.card__name { font-family: var(--font-display); font-weight: 700; font-size: var(--text-lg); line-height: 1.18; }
.card__note { font-size: var(--text-xs); color: var(--ink-soft); }

/* ---- Product attribute tags (Organic / Vegan / etc.) ---- */
.card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 1px; padding: 0; list-style: none; }
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; letter-spacing: .02em; padding: 3px 9px 3px 8px; border-radius: 100px; line-height: 1.3; border: 1px solid transparent; }
.tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.tag--organic { color: var(--green-700); background: var(--mint-100); border-color: rgba(46,139,50,.18); }
.tag--vegan { color: var(--berry); background: var(--berry-50); border-color: rgba(160,24,96,.16); }
.tag--whole { color: var(--green-700); background: var(--mint-50); border-color: rgba(46,139,50,.14); }
.tag--natural { color: #9a6a00; background: #fff6e2; border-color: rgba(255,182,39,.32); }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 10px; }
.card__price { display: flex; align-items: baseline; gap: 8px; }
.card__was { color: var(--ink-soft); text-decoration: line-through; font-size: var(--text-sm); opacity: .6; }
.card__now { font-family: var(--font-display); font-weight: 800; font-size: var(--text-lg); color: var(--green-800); }

/* ---------- Health scoring scale ---------- */
.scale { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-bottom: 56px; }
.scale__item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 22px; text-align: center; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.scale__item:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.scale__item .score-ring { margin: 0 auto 16px; }
.scale__item h3 { font-family: var(--font-display); font-weight: 700; font-size: var(--text-lg); margin-bottom: 6px; }
.scale__item p { font-size: var(--text-sm); color: var(--ink-soft); }

.scoring__features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.feat__icon { font-size: 28px; margin-bottom: 12px; }
.feat h4 { font-family: var(--font-display); font-weight: 700; font-size: var(--text-lg); margin-bottom: 8px; }
.feat p { font-size: var(--text-sm); color: var(--ink-soft); }

/* ---------- App ---------- */
.app__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.app__copy .section__title { text-align: left; }
.app__copy p { color: var(--ink-soft); margin-top: 14px; }
.app__list { list-style: none; margin: 24px 0 28px; display: flex; flex-direction: column; gap: 12px; }
.app__list li { display: flex; align-items: center; gap: 12px; font-size: var(--text-base); }
.check { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--excellent-bg); color: var(--excellent); font-size: 13px; font-weight: 700; flex-shrink: 0; }
.app__badges { display: flex; gap: 12px; flex-wrap: wrap; }
.store-badge { display: inline-flex; flex-direction: column; justify-content: center; background: var(--green-900); color: #fff; padding: 10px 22px; border-radius: 12px; line-height: 1.25; transition: transform .3s var(--ease); }
.store-badge:hover { transform: translateY(-2px); }
.store-badge__top { font-size: 10px; opacity: .8; }
.store-badge__bot { font-family: var(--font-display); font-weight: 700; font-size: var(--text-base); }
.app__note { font-size: var(--text-sm); margin-top: 18px; color: var(--green-700); font-weight: 500; }

/* phone mockup */
.app__phone { display: grid; place-items: center; }
.phone { width: 280px; max-width: 80vw; background: var(--green-900); border-radius: 38px; padding: 12px; box-shadow: var(--shadow-lg); position: relative; }
.phone__notch { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 120px; height: 24px; background: var(--green-900); border-radius: 0 0 16px 16px; z-index: 3; }
.phone__screen { background: #fff; border-radius: 28px; overflow: hidden; padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.phone__scan { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 1.2; background: var(--surface); }
.phone__scan img { width: 100%; height: 100%; object-fit: cover; }
.phone__scanline { position: absolute; left: 8%; right: 8%; height: 3px; background: var(--berry-400); box-shadow: 0 0 16px 4px var(--berry-glow); border-radius: 4px; top: 10%; animation: scan 2.6s ease-in-out infinite; z-index: 2; }
.phone__scan::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, var(--berry-glow) 100%); opacity: .35; pointer-events: none; }
@keyframes scan { 0%,100% { top: 12%; } 50% { top: 84%; } }
.phone__result { display: flex; align-items: center; gap: 12px; background: var(--mint-50); border-radius: 14px; padding: 12px; }
.phone__result strong { font-family: var(--font-display); font-size: var(--text-sm); display: block; line-height: 1.2; }
.phone__verdict { font-size: var(--text-xs); color: var(--excellent); font-weight: 600; }
.phone__cta { background: var(--green-700); color: #fff; text-align: center; padding: 12px; border-radius: 12px; font-weight: 600; font-size: var(--text-sm); }

/* ---------- Swap / alternatives ---------- */
.swap__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.swap__lead { color: rgba(250,247,239,.8); margin-top: 14px; font-size: var(--text-lg); }
.swap__demo { display: flex; align-items: center; gap: 18px; }
.swap__card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 22px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.swap__card strong { font-family: var(--font-display); font-size: var(--text-base); }
.swap__card span:not(.mini-score) { font-size: var(--text-xs); color: rgba(250,247,239,.65); }
.swap__card--to { background: rgba(27,168,74,.14); border-color: rgba(27,168,74,.4); }
.swap__card--to .btn { margin-top: 8px; align-self: flex-start; }
.swap__arrow { font-size: 1.6rem; color: var(--berry-400); flex-shrink: 0; }

/* ---------- Farmers ---------- */
.farmers__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.grower { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: transform .35s var(--ease), box-shadow .35s var(--ease); display: flex; flex-direction: column; }
.grower:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.grower__head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.grower__avatar { width: 50px; height: 50px; border-radius: 50%; background: var(--green-700); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; flex-shrink: 0; }
.grower__name { font-family: var(--font-display); font-weight: 700; font-size: var(--text-lg); }
.stars { color: var(--accent); letter-spacing: 2px; font-size: var(--text-sm); }
.grower__quote { color: var(--ink-soft); font-style: italic; margin-bottom: 18px; line-height: 1.55; }
.grower__link { margin-top: auto; color: var(--green-700); font-weight: 600; font-size: var(--text-sm); }
.grower__link:hover { color: var(--green-900); }
.grower--cta { background: var(--mint-50); border-style: dashed; justify-content: center; align-items: center; text-align: center; gap: 14px; padding: 28px 24px; }
.grower--cta .grower__name { margin-bottom: 0; }
.grower--cta .grower__quote { font-style: normal; margin-bottom: 0; max-width: 30ch; }
.grower--cta .btn { align-self: center; margin-top: 4px; }

/* ---------- Blog ---------- */
.blog__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post { display: flex; flex-direction: column; gap: 10px; }
.post__media { display: block; height: 200px; border-radius: var(--radius); background-image: var(--img); background-size: cover; background-position: center; transition: transform .5s var(--ease); margin-bottom: 4px; }
.post:hover .post__media { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.post__tag { font-size: var(--text-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--green-600); }
.post__title { font-family: var(--font-display); font-weight: 700; font-size: var(--text-lg); line-height: 1.25; }
.post:hover .post__title { color: var(--green-700); }
.post__meta { font-size: var(--text-xs); color: var(--ink-soft); }

/* ---------- Newsletter ---------- */
.newsletter { background: var(--green-900); }
.newsletter__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.newsletter__text .section__title { text-align: left; }
.newsletter__text p { color: rgba(250,247,239,.82); margin-top: 12px; }
.newsletter__form { display: flex; gap: 12px; flex-wrap: wrap; }
.newsletter__form input { flex: 1; min-width: 220px; padding: 15px 20px; border-radius: 100px; border: 1.5px solid rgba(250,247,239,.25); background: rgba(250,247,239,.08); color: var(--cream); font-family: var(--font-body); font-size: var(--text-base); }
.newsletter__form input::placeholder { color: rgba(250,247,239,.5); }
.newsletter__form input:focus { outline: none; border-color: var(--berry-400); box-shadow: 0 0 0 4px var(--berry-glow); }
.newsletter__note { flex-basis: 100%; color: var(--accent); font-size: var(--text-sm); font-weight: 500; }

/* ---------- Footer ---------- */
.footer { background: var(--green-800); color: rgba(250,247,239,.82); padding-top: 60px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 44px; }
.footer__logo { height: 44px; width: auto; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer__desc { font-size: var(--text-sm); max-width: 320px; }
.footer__pay { margin-top: 18px; max-width: 170px; opacity: .9; }
.footer__title { font-family: var(--font-display); font-weight: 700; font-size: var(--text-base); color: var(--cream); margin-bottom: 16px; }
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: var(--text-sm); }
.footer__col a:hover { color: var(--accent); }
.footer__social { display: flex; gap: 16px; margin-top: 18px; font-size: var(--text-sm); }
.footer__social a:hover { color: var(--accent); }
.footer__bar { border-top: 1px solid rgba(250,247,239,.15); padding: 20px 0; }
.footer__bar-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: var(--text-xs); opacity: .8; }

/* ---------- Floats ---------- */
.wa-float { position: fixed; bottom: 24px; right: 24px; z-index: 80; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-md); transition: transform .3s var(--ease); }
.wa-float:hover { transform: scale(1.08); }
.to-top { position: fixed; bottom: 90px; right: 27px; z-index: 80; width: 46px; height: 46px; border-radius: 50%; background: var(--green-700); color: #fff; border: none; cursor: pointer; font-size: 20px; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .3s var(--ease); box-shadow: var(--shadow-sm); }
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--green-800); }

/* ============================================================
   STUDIO MOTION
   ============================================================ */

/* Scroll reveals — directional + refined easing */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); will-change: opacity, transform; }
.reveal.is-in { opacity: 1; transform: none; }
.reveal--left { transform: translateX(-44px); }
.reveal--right { transform: translateX(44px); }
.reveal--scale { transform: scale(.92); }
.reveal--blur { filter: blur(10px); transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); }
.reveal--blur.is-in { filter: blur(0); }

/* Hero headline word mask reveal */
.line-mask { display: block; overflow: hidden; }
.word { display: inline-block; transform: translateY(110%); transition: transform .85s var(--ease); }
.is-revealed .word { transform: translateY(0); }

/* Magnetic buttons */
.magnetic { will-change: transform; transition: transform .35s var(--ease); }
.magnetic > span { display: inline-block; will-change: transform; transition: transform .35s var(--ease); }

/* GSAP scroll-motion targets: pre-hide while JS+motion is enabled so they
   animate in cleanly (no paint-then-hide flash). If GSAP never loads, the
   inline guard removes .gsap-init and these become visible. */
.gsap-init .section__title:not(#heroTitle),
.gsap-init .products > *,
.gsap-init .scale > *,
.gsap-init .scoring__features > *,
.gsap-init .farmers__grid > *,
.gsap-init .blog__grid > *,
.gsap-init .swap__card,
.gsap-init .swap__arrow {
  opacity: 0;
}

/* Card top-accent that draws in on hover */
.card, .scale__item, .grower, .feat { position: relative; }
.card::before, .scale__item::before, .grower::before, .feat::before {
  content: ''; position: absolute; top: 0; left: 0; height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--green-500), var(--berry-400));
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
  border-radius: var(--radius) var(--radius) 0 0; z-index: 3;
}
.card:hover::before, .scale__item:hover::before, .grower:hover::before, .feat:hover::before { transform: scaleX(1); }

/* Section accent glow that fades in */
.glow-blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0; transition: opacity 1.2s var(--ease); pointer-events: none; z-index: 0; }
.glow-blob.is-in { opacity: .5; }

/* ============================================================
   DECORATIVE BACKGROUND ELEMENTS
   Subtle, on-brand, non-interactive (sit behind .container z-index:1)
   ============================================================ */

/* Faint dotted texture layer for a section background */
.section__deco { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.section__deco--dots::before {
  content: ''; position: absolute; inset: -10%;
  background-image: radial-gradient(var(--green-500) 1.4px, transparent 1.4px);
  background-size: 26px 26px;
  opacity: .06;
  -webkit-mask-image: radial-gradient(120% 80% at 50% 0%, #000 0%, transparent 70%);
          mask-image: radial-gradient(120% 80% at 50% 0%, #000 0%, transparent 70%);
}
.section--dark .section__deco--dots::before { background-image: radial-gradient(var(--accent) 1.4px, transparent 1.4px); opacity: .08; }

/* Soft outlined organic blob shapes that drift gently */
.deco-blob {
  position: absolute; z-index: 0; pointer-events: none;
  width: 220px; height: 220px;
  border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
  border: 1.5px solid currentColor; color: var(--green-500);
  opacity: .12;
  animation: blobDrift 18s ease-in-out infinite;
}
.deco-blob--berry { color: var(--berry-400); }
.deco-blob--accent { color: var(--accent); }
.deco-blob--fill { background: currentColor; border: 0; filter: blur(1px); opacity: .07; }
.deco-blob--sm { width: 130px; height: 130px; }
.deco-blob--lg { width: 320px; height: 320px; }
.section--dark .deco-blob { opacity: .14; }
@keyframes blobDrift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; }
  50% { transform: translate(14px, -18px) rotate(12deg); border-radius: 58% 42% 38% 62% / 56% 38% 62% 44%; }
}

/* Inline leaf glyphs sprinkled in the background */
.deco-leaf { position: absolute; z-index: 0; pointer-events: none; color: var(--green-500); opacity: .1; }
.deco-leaf svg { display: block; width: 100%; height: 100%; }
.deco-leaf--berry { color: var(--berry-400); }
.deco-leaf--float { animation: float 7s ease-in-out infinite; }

/* CTA / "Become a farmer" card — give it a richer decorated background */
.grower--cta { position: relative; overflow: hidden; background: linear-gradient(155deg, var(--mint-50) 0%, #fff 70%); border-color: var(--green-500); }
.grower--cta .deco-blob { animation-duration: 22s; }
.grower--cta > :not(.deco-blob):not(.deco-leaf) { position: relative; z-index: 2; }

@media (prefers-reduced-motion: reduce) {
  .float-card, .phone__scanline, .deco-blob, .deco-leaf--float { animation: none; }
  .reveal, .word, .hero__title .hl::after { transition: none; }
  .word { transform: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .scale { grid-template-columns: repeat(2, 1fr); }
  .scoring__features, .farmers__grid, .blog__grid { grid-template-columns: repeat(2, 1fr); }
  .products-track .card { flex-basis: clamp(230px, 42%, 280px); }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { max-width: 460px; margin: 0 auto; }
}
@media (max-width: 860px) {
  .nav, .header__cta { display: none; }
  .hamburger { display: flex; }
  .header__actions { margin-left: auto; }
  .announce__cta { display: none; }
  .announce__inner { justify-content: center; text-align: center; }
  .app__grid, .swap__inner, .swap__demo, .newsletter__inner { grid-template-columns: 1fr; }
  .swap__demo { flex-direction: column; }
  .swap__arrow { transform: rotate(90deg); }
  .app__copy .section__title, .newsletter__text .section__title { text-align: center; }
  .app__copy, .newsletter__text { text-align: center; }
  .app__list { text-align: left; max-width: 420px; margin-inline: auto; }
  .app__badges, .app__actions { justify-content: center; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .deco-blob--lg { width: 200px; height: 200px; }
  .deco-leaf { transform: scale(.7); }
  .scale, .scoring__features, .farmers__grid, .blog__grid { grid-template-columns: 1fr; }
  .products-track .card { flex-basis: 78%; }
  .products-track { gap: 16px; }
  .section__head--row { flex-direction: column; align-items: flex-start; }
  .hero__trust { gap: 20px; }
  .float-card--score { left: 0; } .float-card--alt { right: 0; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bar-inner { justify-content: center; text-align: center; }
  .btn--lg { width: 100%; }
}
