/* ============================================================
   JibJib landing — brand-aligned, modern, soft & friendly
   Palette: Sage green #6B9E7D · Coral #E8836B · Cream #FAFAF8
   Fonts: Nunito (headings) · DM Sans (body)
   ============================================================ */

:root {
  --sage-50:  #F0F7F2;
  --sage-100: #D9EDE0;
  --sage-200: #B3DBBC;
  --sage-300: #8DC99A;
  --sage-400: #6B9E7D;
  --sage-500: #5A8A6B;
  --sage-600: #4A7259;
  --sage-700: #3A5B47;
  --sage-900: #1A2C23;

  --coral-100: #FAE0D9;
  --coral-300: #EFA28D;
  --coral-400: #E8836B;
  --coral-500: #D6715A;

  --cream:     #FAFAF8;
  --surface:   #FFFFFF;
  --surface-2: #F5F5F0;
  --ink:       #1A1A1E;
  --ink-2:     #5B5B62;
  --ink-3:     #9B9B9F;
  --border:    #E8E8E2;

  /* Icon-derived gradient: teal → green (slightly deepened for richness) */
  --grad: linear-gradient(135deg, #1AAEC4 0%, #28B488 45%, #3BC06A 100%);
  /* Soft tile gradient — sage→warm cream, nods to the coral secondary */
  --grad-soft: linear-gradient(160deg, #EAF7F2 0%, #F2F9EC 58%, #FCF1EC 100%);

  --shadow-sm: 0 2px 8px rgba(26,44,35,.06);
  --shadow-md: 0 12px 32px rgba(26,44,35,.10);
  --shadow-lg: 0 28px 64px rgba(26,44,35,.16);

  --radius: 20px;
  --radius-lg: 28px;
  --maxw: 1140px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: "Nunito", sans-serif; line-height: 1.1; letter-spacing: -0.02em; }

a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage-500);
  background: var(--sage-50);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 18px;
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ───────────── Buttons & store badges ───────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: "Nunito", sans-serif; font-weight: 800;
  background: var(--grad); color: #fff;
  padding: 14px 26px; border-radius: 100px;
  box-shadow: var(--shadow-md);
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn--small { padding: 10px 20px; font-size: 15px; }

.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: #fff;
  padding: 12px 20px; border-radius: 16px;
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
  box-shadow: var(--shadow-sm);
}
.store-badge:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.store-badge span { display: flex; flex-direction: column; font-family: "Nunito", sans-serif; font-weight: 800; font-size: 17px; line-height: 1.1; text-align: left; }
.store-badge small { font-family: "DM Sans", sans-serif; font-weight: 400; font-size: 10px; letter-spacing: .03em; opacity: .8; text-transform: none; }

/* ───────────── Nav ───────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 16px 0;
  transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
}
.nav--scrolled {
  background: rgba(250,250,248,.82);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  box-shadow: 0 1px 0 var(--border);
  padding: 10px 0;
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__brand { display: flex; align-items: center; gap: 10px; font-family: "Nunito", sans-serif; font-weight: 900; font-size: 22px; }
.nav__logo { width: 34px; height: 34px; border-radius: 9px; box-shadow: var(--shadow-sm); }
.nav__links { display: flex; gap: 28px; font-weight: 500; color: var(--ink-2); }
.nav__links a { transition: color .2s ease; }
.nav__links a:hover { color: var(--sage-500); }

/* ───────────── Hero ───────────── */
.hero { position: relative; padding: 150px 0 90px; overflow: hidden; }
.hero__glow {
  position: absolute; top: -200px; right: -150px; width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(54,194,107,.18), rgba(31,182,201,.10) 45%, transparent 70%);
  filter: blur(20px); z-index: 0;
}
.hero__glow::after {
  content: ""; position: absolute; bottom: -260px; left: -360px; width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(232,131,107,.16), transparent 68%);
  filter: blur(20px);
}
.hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 0.85fr; gap: 56px; align-items: center;
}
.hero h1 { font-size: clamp(40px, 6vw, 68px); font-weight: 900; }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--ink-2); margin: 22px 0 30px; max-width: 30ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__cta--center { justify-content: center; }
.hero__note { margin-top: 18px; font-size: 14px; color: var(--ink-3); }

/* ───────────── Phone mockup ───────────── */
.hero__device { display: flex; justify-content: center; }
.phone {
  position: relative; width: 300px; height: 620px;
  background: #11131a; border-radius: 46px; padding: 12px;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255,255,255,.06);
}
.phone__notch {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 28px; background: #11131a; border-radius: 0 0 18px 18px; z-index: 3;
}
.phone__screen {
  width: 100%; height: 100%; background: var(--cream);
  border-radius: 36px; overflow: hidden; position: relative;
}
.app { display: flex; flex-direction: column; height: 100%; font-size: 13px; }
.app__statusbar { display: flex; justify-content: space-between; padding: 12px 22px 6px; font-weight: 700; font-size: 12px; color: var(--ink); }
.app__statusicons { letter-spacing: 2px; font-size: 8px; }
.app__header { font-family: "Nunito", sans-serif; font-weight: 800; font-size: 20px; padding: 6px 18px 10px; }
.app__partner {
  margin: 0 14px 12px; padding: 10px 12px; background: var(--sage-50);
  border-radius: 14px; display: flex; align-items: center; gap: 10px;
}
.app__partner-dot { width: 30px; height: 30px; border-radius: 50%; background: var(--grad); flex: none; box-shadow: 0 0 0 3px rgba(54,194,107,.18); }
.app__partner strong { display: block; font-family: "Nunito", sans-serif; font-size: 13px; }
.app__partner span { font-size: 11px; color: var(--ink-2); }
.app__cat { font-family: "Nunito", sans-serif; font-weight: 800; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--sage-500); padding: 8px 18px 4px; }
.app__item {
  display: flex; align-items: center; gap: 10px;
  margin: 3px 14px; padding: 10px 12px; background: var(--surface);
  border-radius: 12px; box-shadow: var(--shadow-sm); font-weight: 500;
}
.app__item em { margin-left: auto; font-style: normal; font-size: 10px; color: var(--sage-500); font-weight: 600; }
.app__item--checked { color: var(--ink-3); }
.app__item--checked:not(:has(em)) { text-decoration: line-through; }
.chk { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border); flex: none; }
.chk--on { background: var(--sage-400); border-color: var(--sage-400); position: relative; }
.chk--on::after { content: "✓"; color: #fff; font-size: 11px; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.pill { margin-left: auto; background: var(--coral-400); color: #fff; font-size: 8px; font-weight: 800; padding: 2px 7px; border-radius: 100px; letter-spacing: .04em; }
.app__addbar {
  margin: auto 14px 18px; padding: 12px 14px; background: var(--surface);
  border: 1.5px dashed var(--border); border-radius: 14px; color: var(--ink-3);
  display: flex; align-items: center; gap: 8px; font-weight: 500;
}
.app__addplus { width: 20px; height: 20px; border-radius: 50%; background: var(--grad); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; }

/* ───────────── Tagline strip ───────────── */
.strip { background: var(--grad); color: #fff; padding: 22px 0; }
.strip__inner { display: flex; align-items: center; justify-content: center; gap: 18px; font-family: "Nunito", sans-serif; font-weight: 800; font-size: clamp(15px, 2.4vw, 22px); flex-wrap: wrap; }
.strip__dot { opacity: .6; }

/* ───────────── Sections ───────────── */
.section-head { text-align: center; max-width: 620px; margin: 0 auto 60px; }
.section-head h2 { font-size: clamp(30px, 4.5vw, 46px); font-weight: 900; }

.features { padding: 100px 0; }
.feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
  margin-bottom: 90px;
}
.feature:last-child { margin-bottom: 0; }
.feature--reverse .feature__text { order: 2; }
.feature__icon { width: 64px; height: 64px; border-radius: 18px; display: flex; align-items: center; justify-content: center; font-size: 30px; background: var(--grad-soft); box-shadow: var(--shadow-sm); margin-bottom: 22px; }
.feature__text h3 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; margin-bottom: 14px; }
.feature__text p { font-size: 18px; color: var(--ink-2); max-width: 34ch; }

/* Feature artwork cards */
.feature__art { display: flex; justify-content: center; }
.mini-card {
  width: 100%; max-width: 360px; background: var(--surface);
  border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.mini-row { display: flex; align-items: center; gap: 12px; font-weight: 500; padding: 10px 0; }
.mini-row--muted { color: var(--ink-3); }
.mini-row b { color: var(--ink); }
.mini-ava { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-family: "Nunito", sans-serif; font-weight: 800; font-size: 14px; flex: none; }
.mini-ava--a { background: var(--sage-400); }
.mini-ava--b { background: var(--coral-400); }
.mini-arrow { text-align: center; color: var(--sage-500); font-weight: 700; font-size: 13px; padding: 6px 0; }

.mini-progress { height: 12px; background: var(--surface-2); border-radius: 100px; overflow: hidden; }
.mini-progress__bar { width: 62%; height: 100%; background: var(--grad); border-radius: 100px; }
.mini-progress__label { font-size: 13px; color: var(--ink-2); margin: 10px 0 18px; font-weight: 600; }
.mini-checks { display: flex; flex-direction: column; gap: 8px; }
.mini-check { padding: 10px 14px; border-radius: 12px; background: var(--surface-2); font-weight: 500; }
.mini-check.done { background: var(--sage-50); color: var(--sage-600); text-decoration: line-through; }

.mini-card--media { display: flex; flex-direction: column; gap: 16px; }
.mini-photo { height: 150px; border-radius: 16px; background: linear-gradient(135deg, var(--sage-200), var(--coral-300)); }
.mini-voice { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--surface-2); border-radius: 14px; }
.mini-voice__play { width: 30px; height: 30px; border-radius: 50%; background: var(--grad); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 11px; flex: none; }
.mini-wave { flex: 1; height: 22px; background: repeating-linear-gradient(90deg, var(--sage-300) 0 3px, transparent 3px 7px); border-radius: 4px; opacity: .7; }
.mini-voice em { font-style: normal; font-size: 12px; color: var(--ink-2); font-weight: 600; }

.mini-offline { display: inline-block; background: var(--coral-100); color: var(--coral-500); font-weight: 700; font-size: 13px; padding: 6px 14px; border-radius: 100px; margin-bottom: 4px; }

.mini-tag { display: inline-block; margin: 5px; padding: 10px 16px; border-radius: 100px; font-weight: 700; font-size: 14px; }
.mini-tag--produce { background: #E6F4EA; color: #2E7D43; }
.mini-tag--dairy { background: #FFF6E0; color: #B58A00; }
.mini-tag--bakery { background: #F8ECDD; color: #9A6B2F; }
.mini-tag--household { background: #E7F0FA; color: #3A6EA5; }

/* ───────────── How it works ───────────── */
.how { padding: 100px 0; background: var(--surface); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step { background: var(--cream); border-radius: var(--radius-lg); padding: 38px 30px; border: 1px solid var(--border); transition: transform .25s ease, box-shadow .25s ease; }
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.step__num { width: 52px; height: 52px; border-radius: 16px; background: var(--grad); color: #fff; font-family: "Nunito", sans-serif; font-weight: 900; font-size: 24px; display: flex; align-items: center; justify-content: center; margin-bottom: 22px; box-shadow: var(--shadow-sm); }
.step h3 { font-size: 23px; font-weight: 800; margin-bottom: 10px; }
.step p { color: var(--ink-2); }

/* ───────────── Meet Jibi ───────────── */
.jibi { padding: 110px 0; background: var(--grad-soft); }
.jibi__inner { display: grid; grid-template-columns: 0.8fr 1fr; gap: 56px; align-items: center; }
.jibi__art { display: flex; justify-content: center; }
.jibi__copy h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 900; margin-bottom: 16px; }
.jibi__copy p { font-size: 18px; color: var(--ink-2); max-width: 46ch; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ── Jibi the otter (CSS-built, mirrors the in-app mascot) ── */
.jibi-otter {
  position: relative; width: 200px; height: 224px;
  animation: float 5s ease-in-out infinite;
  filter: drop-shadow(0 22px 30px rgba(26,44,35,.18));
}
.jibi-otter__ear {
  position: absolute; top: 6px; width: 50px; height: 50px;
  background: var(--sage-300); border-radius: 50% 50% 42% 42%; z-index: 1;
}
.jibi-otter__ear::after {
  content: ""; position: absolute; left: 10px; right: 10px; top: 9px; height: 24px;
  background: var(--sage-400); border-radius: 50% 50% 42% 42%;
}
.jibi-otter__ear--l { left: 26px; }
.jibi-otter__ear--r { right: 26px; }

.jibi-otter__body {
  position: absolute; top: 26px; left: 50%; transform: translateX(-50%);
  width: 156px; height: 184px; background: var(--sage-300);
  border-radius: 46% 46% 45% 45%; z-index: 2;
}
.jibi-otter__belly {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 104px; background: var(--sage-50); border-radius: 50%;
}

.jibi-otter__arm {
  position: absolute; top: 104px; width: 30px; height: 52px;
  background: var(--sage-400); border-radius: 15px; z-index: 1;
}
.jibi-otter__arm--l { left: 2px; transform: rotate(16deg); }
.jibi-otter__arm--r { right: -2px; transform-origin: bottom center; animation: jibi-wave .8s ease-in-out infinite alternate; }
@keyframes jibi-wave { from { transform: rotate(34deg); } to { transform: rotate(12deg); } }

.jibi-otter__face { position: absolute; top: 52px; left: 0; right: 0; display: flex; flex-direction: column; align-items: center; }
.jibi-otter__eyes { display: flex; gap: 34px; }
.jibi-eye { width: 17px; height: 9px; background: var(--sage-900); border-radius: 0 0 18px 18px; }
.jibi-otter__nose { width: 11px; height: 7px; background: var(--sage-900); border-radius: 0 0 8px 8px; margin-top: 7px; }
.jibi-otter__cheeks { display: flex; gap: 54px; margin-top: 5px; }
.jibi-otter__cheeks span { width: 15px; height: 15px; border-radius: 50%; background: var(--coral-300); opacity: .55; }
.jibi-otter__mouth {
  width: 26px; height: 15px; margin-top: -6px; background: var(--sage-900);
  border-radius: 6px 6px 13px 13px; overflow: hidden;
  display: flex; justify-content: center;
}
.jibi-otter__mouth::after { content: ""; width: 16px; height: 5px; background: #fff; border-radius: 0 0 6px 6px; }

.jibi-otter__badge {
  position: absolute; top: 18px; right: 6px; z-index: 4;
  width: 46px; height: 46px; border-radius: 50%; background: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: var(--coral-500);
  box-shadow: var(--shadow-md);
  animation: jibi-pop 2.4s ease-in-out infinite;
}
@keyframes jibi-pop { 0%,100% { transform: scale(1); } 50% { transform: scale(1.12); } }

/* ───────────── Download CTA ───────────── */
.cta { position: relative; padding: 110px 0; background: var(--sage-900); color: #fff; overflow: hidden; }
.cta__glow { position: absolute; bottom: -300px; left: 50%; transform: translateX(-50%); width: 900px; height: 600px; background: radial-gradient(circle, rgba(54,194,107,.30), transparent 65%); filter: blur(10px); }
.cta__inner { position: relative; text-align: center; }
.cta h2 { font-size: clamp(30px, 4.5vw, 48px); font-weight: 900; margin-bottom: 16px; }
.cta p { font-size: 19px; color: rgba(255,255,255,.78); margin-bottom: 34px; }

/* ───────────── Footer ───────────── */
.footer { background: var(--surface); border-top: 1px solid var(--border); padding: 40px 0; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer__brand { display: flex; align-items: center; gap: 10px; font-family: "Nunito", sans-serif; font-weight: 900; font-size: 20px; }
.footer__links { display: flex; gap: 26px; font-weight: 500; color: var(--ink-2); }
.footer__links a:hover { color: var(--sage-500); }
.footer__copy { color: var(--ink-3); font-size: 14px; }

/* ───────────── Legal pages ───────────── */
.legal { max-width: 760px; margin: 0 auto; padding: 130px 24px 80px; }
.legal h1 { font-size: clamp(32px, 5vw, 48px); font-weight: 900; margin-bottom: 8px; }
.legal__updated { color: var(--ink-3); font-size: 14px; margin-bottom: 36px; }
.legal h2 { font-size: 24px; font-weight: 800; margin: 36px 0 12px; }
.legal p, .legal li { color: var(--ink-2); font-size: 16px; margin-bottom: 12px; }
.legal ul { padding-left: 22px; margin-bottom: 12px; }
.legal a { color: var(--sage-500); text-decoration: underline; }
.legal__back { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--sage-500); margin-bottom: 28px; }

/* ───────────── Scroll reveal ───────────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ───────────── Responsive ───────────── */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .hero { padding: 120px 0 60px; }
  .hero__inner { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .hero__copy { display: flex; flex-direction: column; align-items: center; }
  .lead { max-width: 100%; }
  .hero__cta { justify-content: center; }
  .feature, .feature--reverse { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .feature--reverse .feature__text { order: 0; }
  .feature__icon { margin-left: auto; margin-right: auto; }
  .feature__text p { max-width: 100%; }
  .steps { grid-template-columns: 1fr; }
  .jibi__inner { grid-template-columns: 1fr; text-align: center; }
  .jibi__copy p { max-width: 100%; margin: 0 auto; }
  .jibi__icon { width: 180px; height: 180px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition: none; opacity: 1; transform: none; }
  .jibi__icon { animation: none; }
}
