/* ==========================================================================
   Jungle Mornings — site design system  (premium redesign v1, 2026-07)
   Canonical stylesheet. Homepage uses it now; blog/about propagate later.
   Type: Archivo (chunky grotesk display, interim for Right Grotesk) + Inter.
   Rule: green (--canopy) appears on LIVING FOLIAGE ONLY — never on bands,
   type, panels, icons or backgrounds.
   ========================================================================== */

/* ---------- fonts (self-hosted woff2) ---------- */
@font-face { font-family:'Archivo'; font-style:normal; font-weight:700; font-display:swap; src:url('fonts/archivo-700.woff2') format('woff2'); }
@font-face { font-family:'Archivo'; font-style:normal; font-weight:800; font-display:swap; src:url('fonts/archivo-800.woff2') format('woff2'); }
@font-face { font-family:'Archivo'; font-style:normal; font-weight:900; font-display:swap; src:url('fonts/archivo-900.woff2') format('woff2'); }
@font-face { font-family:'Inter'; font-style:normal; font-weight:400; font-display:swap; src:url('fonts/inter-400.woff2') format('woff2'); }
@font-face { font-family:'Inter'; font-style:normal; font-weight:500; font-display:swap; src:url('fonts/inter-500.woff2') format('woff2'); }
@font-face { font-family:'Inter'; font-style:normal; font-weight:600; font-display:swap; src:url('fonts/inter-600.woff2') format('woff2'); }
@font-face { font-family:'Inter'; font-style:normal; font-weight:700; font-display:swap; src:url('fonts/inter-700.woff2') format('woff2'); }

/* ---------- tokens ---------- */
:root {
  /* locked palette */
  --cream:     #F3E4CB;
  --paper:     #FBF3E4;   /* lighter card/surface */
  --sand:      #DCC7A0;
  --espresso:  #2A201A;
  --honey:     #E4A52E;
  --turmeric:  #CE9A3A;
  --terracotta:#C75B3B;
  --paprika:   #C9551E;
  --brick:     #8A3520;
  --canopy:    #2E4B3C;   /* FOLIAGE ONLY */

  --display: 'Archivo', system-ui, sans-serif;
  --body:    'Inter', system-ui, sans-serif;

  /* radius scale — deliberate, not blanket-rounded */
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;

  /* spacing */
  --gut: 24px;
  --wrap: 1200px;

  /* shadow scale — real depth hierarchy */
  --sh-1: 0 1px 2px color-mix(in srgb, var(--brick) 12%, transparent);
  --sh-2: 0 10px 24px -14px color-mix(in srgb, var(--brick) 40%, transparent);
  --sh-3: 0 30px 70px -30px color-mix(in srgb, var(--brick) 55%, transparent);

  /* foliage leaf (canopy green, plants-only) */
  --leaf: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%20120%20120%27%3E%3Cpath%20d%3D%27M60%206%20C74%2020%2084%2022%2096%2020%20C92%2034%2096%2044%20104%2052%20C88%2054%2082%2062%2080%2074%20C72%2066%2064%2066%2058%2072%20C56%2060%2048%2054%2034%2054%20C44%2044%2046%2034%2042%2020%20C54%2024%2054%2018%2060%206%20Z%27%20fill%3D%27none%27%2F%3E%3Cpath%20d%3D%27M61%208%20C72%2030%2090%2040%20108%2044%20C96%2052%2086%2066%2082%2086%20C74%2074%2063%2072%2055%2080%20C55%2062%2044%2050%2024%2050%20C40%2040%2046%2024%2044%206%20C50%2020%2056%2018%2061%208%20Z%27%20fill%3D%27%232E4B3C%27%2F%3E%3Cpath%20d%3D%27M62%2014%20C66%2040%2076%2062%2092%2078%27%20stroke%3D%27%231c2f25%27%20stroke-width%3D%271.6%27%20fill%3D%27none%27%20opacity%3D%270.5%27%2F%3E%3C%2Fsvg%3E");
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--body);
  background: var(--cream);
  color: var(--espresso);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* paper grain — global, subtle */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0.05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27200%27%20height%3D%27200%27%3E%3Cfilter%20id%3D%27n%27%3E%3CfeTurbulence%20type%3D%27fractalNoise%27%20baseFrequency%3D%270.85%27%20numOctaves%3D%272%27%2F%3E%3C%2Ffilter%3E%3Crect%20width%3D%27200%27%20height%3D%27200%27%20filter%3D%27url(%23n)%27%2F%3E%3C%2Fsvg%3E");
}
body > * { position: relative; z-index: 1; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gut); padding-right: var(--gut); }
.wrap-narrow { max-width: 900px; }

/* ---------- typography ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.02; letter-spacing: -0.02em; }
.eyebrow, .section-label {
  display: inline-block; font-family: var(--display); font-weight: 700;
  font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--brick);
}
.section-label { color: var(--paprika); margin-bottom: 14px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.01em;
  background: var(--paprika); color: var(--cream);
  padding: 13px 26px; border-radius: var(--r-pill);
  text-decoration: none; border: none; cursor: pointer; white-space: nowrap;
  box-shadow: var(--sh-2);
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.btn:hover { background: var(--brick); transform: translateY(-2px); box-shadow: var(--sh-3); }
.btn-small { padding: 9px 18px; font-size: 0.82rem; box-shadow: var(--sh-1); }

/* ---------- nav ---------- */
nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--cream) 82%, transparent);
  backdrop-filter: saturate(120%) blur(10px);
  -webkit-backdrop-filter: saturate(120%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease, box-shadow .25s ease;
}
nav.scrolled {
  border-bottom-color: color-mix(in srgb, var(--espresso) 12%, transparent);
  box-shadow: var(--sh-1);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px var(--gut); max-width: var(--wrap); margin: 0 auto; }
.wordmark { display: flex; align-items: center; gap: 11px; font-family: var(--display); font-weight: 800; font-size: 1.05rem; letter-spacing: 0.04em; color: var(--espresso); text-decoration: none; text-transform: uppercase; min-width: 0; }
.wordmark span { color: var(--paprika); }
.nav-mark { width: 38px; height: 38px; border-radius: 50%; display: block; flex-shrink: 0; }
.nav-actions { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }
.nav-link { font-family: var(--display); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--espresso); text-decoration: none; white-space: nowrap; }
.nav-link:hover { color: var(--paprika); }

/* ---------- hero (full-bleed image + overlaid copy) ---------- */
.hero { position: relative; min-height: min(88vh, 800px); display: flex; align-items: center; overflow: hidden; padding: 90px 0; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 74% center; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--cream) 95%, transparent) 0%,
    color-mix(in srgb, var(--cream) 93%, transparent) 42%,
    color-mix(in srgb, var(--cream) 74%, transparent) 55%,
    color-mix(in srgb, var(--cream) 28%, transparent) 68%,
    transparent 82%); }
.hero > .wrap { width: 100%; }
.hero-content { position: relative; z-index: 2; max-width: 500px; text-shadow: 0 1px 18px color-mix(in srgb, var(--cream) 82%, transparent), 0 0 3px color-mix(in srgb, var(--cream) 70%, transparent); }
.hero .tag {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--display); font-weight: 700; font-size: 0.72rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--brick);
  background: color-mix(in srgb, var(--honey) 34%, transparent);
  border: 1px solid color-mix(in srgb, var(--brick) 22%, transparent);
  padding: 7px 15px; border-radius: var(--r-pill); margin-bottom: 26px;
}
.hero .tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--paprika); }
.hero h1 { font-size: clamp(2.8rem, 5.6vw, 4.7rem); font-weight: 900; margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: var(--paprika); }
.hero .sub { font-size: 1.12rem; color: color-mix(in srgb, var(--espresso) 88%, transparent); max-width: 25em; margin-bottom: 30px; }
.hero .sub strong { color: var(--espresso); font-weight: 600; }

/* decorative foliage leaves (canopy green, plants-only) — used on CTA */
.leaf { position: absolute; background: var(--leaf) no-repeat center/contain; opacity: 0.12; pointer-events: none; z-index: 0; }

/* ---------- signup form ---------- */
.signup { display: flex; gap: 10px; max-width: 470px; }
.signup input {
  flex: 1; min-width: 0; font-family: var(--body); font-size: 1rem;
  padding: 14px 18px; border-radius: var(--r-pill);
  border: 2px solid color-mix(in srgb, var(--espresso) 18%, transparent);
  background: #fffdf8; color: var(--espresso); outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.signup input:focus { border-color: var(--paprika); box-shadow: 0 0 0 4px color-mix(in srgb, var(--paprika) 15%, transparent); }
.form-note { font-size: 0.82rem; margin-top: 13px; color: color-mix(in srgb, var(--espresso) 60%, transparent); }
.success {
  display: none; background: color-mix(in srgb, var(--honey) 25%, transparent);
  border: 1px solid var(--turmeric); border-radius: var(--r-md); padding: 16px 20px;
  max-width: 470px; font-weight: 600;
}
.success.show { display: block; }

/* ---------- stat / credibility band ---------- */
.stats { background: var(--espresso); color: var(--cream); padding: 40px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat .num { font-family: var(--display); font-weight: 900; font-size: clamp(1.9rem, 4vw, 2.9rem); color: var(--honey); line-height: 1; letter-spacing: -0.02em; }
.stat .num .unit { font-size: 0.5em; color: color-mix(in srgb, var(--cream) 70%, transparent); margin-left: 2px; }
.stat .lbl { font-family: var(--display); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: color-mix(in srgb, var(--cream) 72%, transparent); margin-top: 10px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: center; margin-top: 30px; padding-top: 26px; border-top: 1px solid color-mix(in srgb, var(--cream) 14%, transparent); }
.trust-row span { font-family: var(--display); font-weight: 700; font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: color-mix(in srgb, var(--cream) 78%, transparent); }
.trust-row span b { color: var(--honey); font-weight: 700; }

/* ---------- ticker strip ---------- */
.strip { background: var(--brick); color: var(--cream); padding: 15px 0; overflow: hidden; white-space: nowrap; }
.strip-inner { display: inline-block; animation: ticker 34s linear infinite; }
.strip span { font-family: var(--display); font-weight: 800; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.1em; margin-right: 44px; }
.strip span::after { content: "✦"; color: var(--honey); margin-left: 44px; font-size: 0.7em; vertical-align: 2px; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
section { padding: 96px 0; position: relative; }
.section-title { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 800; margin-bottom: 16px; max-width: 16em; }
.section-sub { color: color-mix(in srgb, var(--espresso) 74%, transparent); max-width: 40em; margin-bottom: 52px; font-size: 1.05rem; }

/* pillars */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.pillar {
  background: var(--paper); border: 1px solid color-mix(in srgb, var(--espresso) 7%, transparent);
  border-radius: var(--r-md); padding: 30px 26px; box-shadow: var(--sh-2);
  transition: transform .22s ease, box-shadow .22s ease;
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--sh-3); }
.pillar .icon { width: 54px; height: 54px; border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.pillar:nth-child(1) .icon { background: color-mix(in srgb, var(--terracotta) 20%, transparent); }
.pillar:nth-child(2) .icon { background: color-mix(in srgb, var(--honey) 30%, transparent); }
.pillar:nth-child(3) .icon { background: color-mix(in srgb, var(--turmeric) 26%, transparent); }
.pillar:nth-child(4) .icon { background: color-mix(in srgb, var(--paprika) 18%, transparent); }
.pillar h3 { font-size: 1.22rem; margin-bottom: 10px; letter-spacing: -0.01em; }
.pillar p { font-size: 0.94rem; color: color-mix(in srgb, var(--espresso) 76%, transparent); }
.pillar .mech { display: block; margin-top: 16px; font-family: var(--display); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--brick); }

/* ingredient macro gallery — horizontal scroll row (never orphans on any width) */
.gallery { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 8px; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.ing-card { flex: 1 0 0; min-width: 210px; scroll-snap-align: start; background: var(--paper); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--sh-2); transition: transform .22s ease, box-shadow .22s ease; }
.ing-card:hover { transform: translateY(-4px); box-shadow: var(--sh-3); }
.ing-card .ph { aspect-ratio: 4/5; width: 100%; height: auto; object-fit: cover; display: block; background: color-mix(in srgb, var(--sand) 60%, var(--cream)); }
.ing-card .body { padding: 18px 18px 22px; }
.ing-card h3 { font-size: 1.02rem; margin-bottom: 6px; }
.ing-card p { font-size: 0.85rem; color: color-mix(in srgb, var(--espresso) 72%, transparent); }

/* how it works */
.how { background: var(--sand); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: step; }
.step { position: relative; padding: 32px 30px; background: color-mix(in srgb, var(--cream) 78%, #fff); border-radius: var(--r-md); box-shadow: var(--sh-1); }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-family: var(--display); font-weight: 900; font-size: 2.6rem; color: var(--paprika); display: block; margin-bottom: 12px; letter-spacing: -0.03em; }
.step h3 { font-size: 1.18rem; margin-bottom: 8px; }
.step p { font-size: 0.95rem; color: color-mix(in srgb, var(--espresso) 76%, transparent); }

/* inside — full-bleed lifestyle band with overlaid card */
.inside { padding: 0; }
.inside-band { position: relative; min-height: 560px; display: flex; align-items: center; overflow: hidden; }
.inside-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; transform: scale(1.05); }
.inside-band::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(100deg, color-mix(in srgb, var(--espresso) 92%, transparent) 0%, color-mix(in srgb, var(--espresso) 84%, transparent) 46%, color-mix(in srgb, var(--espresso) 52%, transparent) 70%, transparent 90%); }
.inside-card { position: relative; z-index: 2; max-width: 520px; margin: 56px 0; color: var(--cream); text-shadow: 0 1px 14px color-mix(in srgb, var(--espresso) 55%, transparent); }
.inside-card .section-label { color: var(--honey); }
.inside-card h2 { color: var(--cream); }
.inside-card .section-sub { color: color-mix(in srgb, var(--cream) 82%, transparent); margin-bottom: 26px; }
.ingredients { list-style: none; }
.ingredients li { display: flex; justify-content: space-between; gap: 18px; padding: 13px 0; border-bottom: 1px solid color-mix(in srgb, var(--cream) 20%, transparent); font-size: 0.95rem; }
.ingredients li strong { font-weight: 700; white-space: nowrap; }
.ingredients li span { text-align: right; color: color-mix(in srgb, var(--cream) 72%, transparent); }
.fine { font-size: 0.8rem; margin-top: 20px; color: color-mix(in srgb, var(--cream) 60%, transparent); }

/* final cta */
.cta { background: var(--espresso); color: var(--cream); text-align: center; overflow: hidden; }
.cta .leaf-c { width: 260px; height: 260px; top: -60px; left: -60px; opacity: 0.16; transform: rotate(40deg); }
.cta .leaf-d { width: 200px; height: 200px; bottom: -50px; right: -40px; opacity: 0.14; transform: rotate(-120deg); }
.cta h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 900; margin-bottom: 18px; }
.cta h2 em { font-style: normal; color: var(--honey); }
.cta p { color: color-mix(in srgb, var(--cream) 82%, transparent); max-width: 34em; margin: 0 auto 34px; }
.cta .signup { margin: 0 auto; }
.cta .signup input { background: color-mix(in srgb, var(--cream) 12%, transparent); border-color: color-mix(in srgb, var(--cream) 30%, transparent); color: var(--cream); }
.cta .signup input::placeholder { color: color-mix(in srgb, var(--cream) 55%, transparent); }
.cta .signup input:focus { border-color: var(--honey); box-shadow: 0 0 0 4px color-mix(in srgb, var(--honey) 20%, transparent); }
.cta .btn { background: var(--honey); color: var(--espresso); }
.cta .btn:hover { background: var(--turmeric); }
.cta .form-note { color: color-mix(in srgb, var(--cream) 55%, transparent); }
.cta .success { background: color-mix(in srgb, var(--honey) 20%, transparent); border-color: var(--honey); margin: 0 auto; }

/* taste */
.taste { background: var(--sand); }
.taste .section-sub { margin-bottom: 0; font-size: 1.1rem; }

/* footer */
footer { background: var(--espresso); color: color-mix(in srgb, var(--cream) 55%, transparent); padding: 34px 0 44px; font-size: 0.85rem; border-top: 1px solid color-mix(in srgb, var(--cream) 12%, transparent); }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- scroll-reveal motion ---------- */
/* Progressive enhancement: the hidden state applies only when JS is present
   (an inline <head> script adds `.js` to <html>). No JS -> content stays visible. */
.reveal { transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal { opacity: 0; transform: translateY(26px); }
.js .reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .pillars { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
  .steps { grid-template-columns: 1fr; }
  section { padding: 68px 0; }
  .inside-band::after { background: linear-gradient(180deg, color-mix(in srgb, var(--espresso) 45%, transparent), color-mix(in srgb, var(--espresso) 88%, transparent)); }
  .inside-card { margin: 48px 0; }
}
@media (max-width: 720px) {
  .hero { min-height: auto; padding: 52px 0 60px; }
  .hero-bg img { object-position: 68% center; }
  .hero::after { background: linear-gradient(180deg, color-mix(in srgb, var(--cream) 72%, transparent) 0%, color-mix(in srgb, var(--cream) 82%, transparent) 52%, color-mix(in srgb, var(--cream) 92%, transparent) 100%); }
  .hero-content { max-width: 100%; text-shadow: 0 1px 12px color-mix(in srgb, var(--cream) 70%, transparent); }
}
@media (max-width: 620px) {
  :root { --gut: 20px; }
  .pillars { grid-template-columns: 1fr; }
  .ing-card { min-width: 62%; }
  .ing-card .ph { aspect-ratio: 1 / 1; }
  .signup { flex-direction: column; }
  .signup .btn { width: 100%; }
  .hero .leaf-a { width: 150px; height: 150px; top: -30px; right: -30px; }
  .footer-inner { flex-direction: column; gap: 8px; }
}
@media (max-width: 380px) {
  :root { --gut: 16px; }
  .nav-link { display: none; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-img img { animation: none; }
  .strip-inner { animation: none; }
  .reveal, .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
