/* ==========================================================================
   LemonAid marketing site
   Brand palette pulled from the Flutter app (app/lib/main.dart):
   lemon gold #FFD700 · dark gold #705D00 · green #22C55E / #4ADE80
   cream #FFFBEB · olive #5B6400 · ink #1A1C1C
   ========================================================================== */

:root {
  --lemon: #FFD700;
  --lemon-soft: #FFE16D;
  --gold: #705D00;
  --olive: #5B6400;
  --green: #22C55E;
  --green-bright: #4ADE80;
  --green-dark: #14532D;
  --cream: #FFFBEB;
  --bg: #F9F9F9;
  --ink: #1A1C1C;
  --outline: #D0C6AB;
  --white: #FFFFFF;

  --font-display: "Fredoka", "Nunito", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, sans-serif;

  --radius: 20px;
  --radius-sm: 12px;
  --border: 3px solid var(--lemon);
  --shadow: 0 6px 0 rgba(112, 93, 0, 0.15);
  --shadow-lift: 0 12px 24px rgba(112, 93, 0, 0.18);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; }

img { max-width: 100%; }

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

.container--narrow { width: min(760px, 92%); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.65rem 1.5rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
  border: none;
}

.btn--lg { padding: 0.9rem 2.1rem; font-size: 1.1rem; }

.btn--primary {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 4px 0 var(--green-dark);
}

.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--green-dark); }

.btn--ghost {
  background: var(--white);
  color: var(--gold);
  border: var(--border);
}

.btn--ghost:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.btn--dark {
  background: var(--gold);
  color: var(--lemon);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.25);
}

.btn--dark:hover { transform: translateY(-2px); }

/* ---------- Eyebrows / titles ---------- */
.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--olive);
  letter-spacing: 0.02em;
  margin-bottom: 0.75rem;
}

.eyebrow--center { text-align: center; }
.eyebrow--light { color: var(--lemon-soft); }

.section { padding: 5.5rem 0; }

.section__title {
  text-align: center;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  margin-bottom: 3rem;
  color: var(--ink);
}

.section--cream { background: var(--cream); }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 251, 235, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--lemon);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0.8rem 0;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  margin-right: auto;
}

.nav__logo { font-size: 1.6rem; }

.nav__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--gold);
}

.nav__name em { font-style: normal; color: var(--green); }

.nav__links { display: flex; gap: 1.5rem; }

.nav__links a {
  text-decoration: none;
  color: var(--gold);
  font-weight: 700;
  font-size: 0.98rem;
}

.nav__links a:hover { color: var(--green); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav__toggle span {
  width: 24px;
  height: 3px;
  border-radius: 2px;
  background: var(--gold);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 215, 0, 0.35), transparent 45%),
    radial-gradient(circle at 10% 80%, rgba(74, 222, 128, 0.25), transparent 40%),
    linear-gradient(180deg, #FFF8D6 0%, #FFFDF4 100%);
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 3rem;
  padding: 5rem 0 7rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700;
  margin-bottom: 1.2rem;
}

.highlight {
  background: linear-gradient(180deg, transparent 55%, var(--lemon) 55%, var(--lemon) 92%, transparent 92%);
  padding: 0 0.15em;
}

.hero__sub {
  font-size: 1.15rem;
  color: #4a4a40;
  max-width: 34rem;
  margin-bottom: 1.8rem;
}

.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.6rem; }

.hero__badges {
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
  list-style: none;
  font-weight: 700;
  color: var(--olive);
  font-size: 0.95rem;
}

.hero__wave {
  position: absolute;
  inset: auto 0 -1px;
  line-height: 0;
}

.hero__wave svg { width: 100%; height: 60px; display: block; }

/* ---------- Phone mockup ---------- */
.hero__phone { position: relative; justify-self: center; }

.phone {
  width: 300px;
  background: var(--ink);
  border-radius: 42px;
  padding: 12px;
  box-shadow: var(--shadow-lift);
  transform: rotate(2.5deg);
}

.phone__notch {
  width: 110px;
  height: 22px;
  background: var(--ink);
  border-radius: 0 0 14px 14px;
  margin: 0 auto -14px;
  position: relative;
  z-index: 2;
}

.phone__screen {
  background: var(--cream);
  border-radius: 32px;
  padding: 26px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pos__header { display: flex; align-items: center; justify-content: space-between; }

.pos__title { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--gold); }

.pos__pill {
  font-size: 0.62rem;
  font-weight: 800;
  background: var(--lemon-soft);
  color: var(--gold);
  border-radius: 999px;
  padding: 3px 8px;
}

.pos__products { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.pos__product {
  background: var(--white);
  border: 2px solid var(--outline);
  border-radius: var(--radius-sm);
  padding: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}

.pos__product--active { border: 3px solid var(--lemon); box-shadow: 0 3px 0 rgba(112, 93, 0, 0.12); }

.pos__emoji { font-size: 1.3rem; }

.pos__name { font-weight: 800; font-size: 0.72rem; color: var(--ink); }

.pos__price { font-size: 0.68rem; font-weight: 700; color: var(--olive); }

.pos__cart {
  background: var(--white);
  border-radius: var(--radius-sm);
  border: 2px solid var(--outline);
  padding: 8px 10px;
  font-size: 0.72rem;
  font-weight: 700;
}

.pos__cart-row { display: flex; justify-content: space-between; padding: 2px 0; color: #4a4a40; }

.pos__cart-row--total {
  border-top: 2px dashed var(--outline);
  margin-top: 4px;
  padding-top: 5px;
  color: var(--ink);
  font-weight: 800;
  font-size: 0.8rem;
}

.pos__pay { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.pos__paybtn {
  border: none;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.78rem;
  padding: 9px 0;
  cursor: default;
}

.pos__paybtn--card { background: var(--green); color: var(--white); }

.pos__paybtn--cash { background: var(--lemon); color: var(--gold); }

.pos__stock {
  text-align: center;
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--olive);
}

/* floating chips around the phone */
.hero__float {
  position: absolute;
  background: var(--white);
  border: var(--border);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 800;
  font-size: 0.8rem;
  color: var(--gold);
  box-shadow: var(--shadow);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero__float--goal { top: 8%; left: -78px; animation: bob 4s ease-in-out infinite; }

.hero__float--sale { bottom: 12%; right: -46px; animation: bob 4s ease-in-out 1.2s infinite; color: var(--green-dark); border-color: var(--green-bright); }

.hero__bar {
  width: 64px;
  height: 8px;
  border-radius: 999px;
  background: var(--cream);
  border: 1px solid var(--outline);
  overflow: hidden;
  display: inline-block;
}

.hero__bar span { display: block; height: 100%; background: var(--green); border-radius: 999px; }

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ---------- Strip ---------- */
.strip { background: var(--cream); padding: 1.6rem 0 2.4rem; }

.strip__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.strip__stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--gold);
}

.strip__stat span { font-size: 0.9rem; color: #6b6455; font-weight: 600; }

/* ---------- Feature cards ---------- */
.grid--features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

.card {
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }

.card__icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.card__icon--yellow { background: var(--lemon-soft); }

.card__icon--green { background: var(--green-bright); }

.card h3 { font-size: 1.25rem; margin-bottom: 0.5rem; color: var(--ink); }

.card p { color: #4a4a40; font-size: 0.98rem; }

/* ---------- AI section ---------- */
.section--dark {
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 215, 0, 0.15), transparent 40%),
    var(--green-dark);
  color: var(--white);
}

.ai__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}

.ai__inner h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 1rem; }

.ai__sub { color: #bbf7d0; font-size: 1.1rem; margin-bottom: 1.4rem; }

.ai__list { list-style: none; display: grid; gap: 0.9rem; }

.ai__list li {
  padding-left: 1.6rem;
  position: relative;
  color: #e7fbe9;
}

.ai__list li::before {
  content: "🍋";
  position: absolute;
  left: 0;
  top: 0.1rem;
  font-size: 0.85rem;
}

.ai__list strong { color: var(--lemon-soft); }

.chat {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.4rem;
  display: grid;
  gap: 0.8rem;
  box-shadow: var(--shadow-lift);
  border: var(--border);
}

.chat__msg {
  max-width: 85%;
  padding: 0.7rem 1rem;
  border-radius: 16px;
  font-size: 0.95rem;
  color: var(--ink);
}

.chat__msg--user {
  background: var(--lemon-soft);
  color: var(--gold);
  font-weight: 800;
  justify-self: end;
  border-bottom-right-radius: 4px;
}

.chat__msg--bot {
  background: var(--cream);
  border: 2px solid var(--outline);
  justify-self: start;
  border-bottom-left-radius: 4px;
}

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.6rem;
  counter-reset: step;
}

.step {
  background: var(--white);
  border-radius: var(--radius);
  border: 2px solid var(--outline);
  padding: 1.8rem 1.4rem 1.5rem;
  position: relative;
}

.step__num {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--lemon);
  color: var(--gold);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  box-shadow: 0 3px 0 rgba(112, 93, 0, 0.2);
}

.step h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }

.step p { font-size: 0.94rem; color: #4a4a40; }

/* ---------- FAQ ---------- */
.faq {
  background: var(--white);
  border: 2px solid var(--outline);
  border-radius: var(--radius-sm);
  padding: 1rem 1.3rem;
  margin-bottom: 0.9rem;
}

.faq[open] { border-color: var(--lemon); box-shadow: var(--shadow); }

.faq summary {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--green);
  font-weight: 700;
  transition: transform 0.2s ease;
}

.faq[open] summary::after { transform: rotate(45deg); }

.faq p { padding-top: 0.7rem; color: #4a4a40; }

/* ---------- CTA ---------- */
.cta {
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.35), transparent 45%),
    var(--lemon);
  padding: 5.5rem 0;
}

.cta__inner { text-align: center; }

.cta__lemon { font-size: 3rem; display: inline-block; animation: bob 3.5s ease-in-out infinite; }

.cta h2 {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  color: var(--gold);
  margin: 0.6rem 0 0.8rem;
}

.cta > .container > p { color: var(--gold); font-weight: 700; font-size: 1.15rem; }

.cta .btn { margin-top: 1.6rem; }

.cta__note { margin-top: 1.1rem; font-size: 0.9rem !important; opacity: 0.8; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #d8d5c8; padding: 3rem 0 2rem; }

.footer__inner { display: grid; gap: 1.4rem; text-align: center; justify-items: center; }

.footer__brand p { font-size: 0.9rem; margin-top: 0.3rem; }

.footer__brand .nav__name { color: var(--lemon); }

.footer__links { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center; }

.footer__links a { color: #d8d5c8; text-decoration: none; font-weight: 700; font-size: 0.95rem; }

.footer__links a:hover { color: var(--lemon); }

.footer__copy { font-size: 0.85rem; opacity: 0.7; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; padding: 3.5rem 0 6rem; }
  .hero__sub { margin-inline: auto; }
  .hero__actions, .hero__badges { justify-content: center; }
  .hero__phone { margin-top: 1.5rem; }
  .hero__float--goal { left: -20px; }
  .hero__float--sale { right: -10px; }
  .grid--features { grid-template-columns: 1fr 1fr; }
  .ai__inner { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .strip__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--cream);
    border-bottom: 2px solid var(--lemon);
    padding: 1rem 1.5rem;
    gap: 1rem;
  }
  .nav__links.is-open { display: flex; }
  .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  .grid--features, .steps { grid-template-columns: 1fr; }
  .phone { width: 260px; }
  .hero__float--goal { top: 2%; }
}
