/* FoodPal public landing — food-first, pre-login only */
:root {
  --lp-cream: #fff8f2;
  --lp-cream-deep: #f3e6d8;
  --lp-ink: #1a120e;
  --lp-muted: #6a5346;
  --lp-line: #ead7c6;
  --lp-ember: #e2452d;
  --lp-ember-deep: #b8321f;
  --lp-saffron: #f0a01a;
  --lp-herb: #2f6b4f;
  --lp-card: #ffffff;
  --lp-shadow: 0 18px 40px rgba(60, 28, 12, 0.1);
  --lp-radius: 22px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
}

.lp-body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--lp-ink);
  background: var(--lp-cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.lp-body * { box-sizing: border-box; }

.lp-wrap {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.lp-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  padding: 18px 0;
}

.lp-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.lp-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #fffaf5;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.lp-logo i { color: var(--lp-saffron); }

.lp-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.lp-links a {
  color: rgba(255, 250, 245, 0.88);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.lp-links a:hover,
.lp-links a:focus-visible {
  color: #fff;
  outline: none;
}

.lp-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lp-nav-actions .lp-nav-actions {
  gap: 10px;
}

.lp-menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.08);
  color: #fff;
  border-radius: 12px;
  cursor: pointer;
}

.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  border: none;
  font: 650 0.98rem var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, filter .18s ease, background .18s ease;
}

.lp-btn:hover { transform: translateY(-1px); filter: brightness(1.03); }
.lp-btn:focus-visible { outline: 3px solid rgba(240,160,26,.45); outline-offset: 2px; }

.lp-btn-primary {
  background: var(--lp-ember);
  color: #fff;
  box-shadow: 0 12px 28px rgba(226, 69, 45, 0.28);
}

.lp-btn-primary:hover { background: var(--lp-ember-deep); }

.lp-btn-ghost {
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,.4);
  backdrop-filter: blur(8px);
}

.lp-btn-soft {
  background: #fff;
  color: var(--lp-ember-deep);
  border: 1px solid var(--lp-line);
}

.lp-btn-dark {
  background: var(--lp-ink);
  color: #fffaf5;
}

/* Hero */
.lp-hero {
  position: relative;
  min-height: min(100vh, 900px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fffaf5;
  overflow: hidden;
  isolation: isolate;
}

.lp-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    url("https://images.unsplash.com/photo-1555939594-58d7cb561ad1?auto=format&fit=crop&w=2000&q=80")
    center / cover no-repeat;
  transform: scale(1.03);
  animation: lpHeroDrift 24s ease-in-out infinite alternate;
}

.lp-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(16, 8, 4, 0.45) 0%, rgba(16, 8, 4, 0.28) 35%, rgba(16, 8, 4, 0.78) 100%),
    radial-gradient(ellipse at 70% 30%, rgba(240, 160, 26, 0.18), transparent 45%);
}

@keyframes lpHeroDrift {
  from { transform: scale(1.03) translate3d(0, 0, 0); }
  to { transform: scale(1.08) translate3d(-1.5%, -1%, 0); }
}

.lp-hero-inner {
  position: relative;
  z-index: 2;
  padding: 0 0 64px;
  max-width: 640px;
}

.lp-brand {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0 0 14px;
  animation: lpRise .7s ease both;
}

.lp-brand span { color: var(--lp-saffron); }

.lp-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.5vw, 3.35rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.12;
  margin: 0 0 14px;
  animation: lpRise .7s .08s ease both;
}

.lp-hero-lead {
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  color: rgba(255, 250, 245, 0.9);
  max-width: 34ch;
  margin: 0 0 26px;
  animation: lpRise .7s .14s ease both;
}

.lp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  animation: lpRise .7s .2s ease both;
}

@keyframes lpRise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* Sections */
.lp-section {
  padding: clamp(56px, 8vw, 88px) 0;
}

.lp-section-alt {
  background: linear-gradient(180deg, #fff3e8 0%, var(--lp-cream) 100%);
}

.lp-kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lp-ember);
  margin-bottom: 10px;
}

.lp-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.45rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 12px;
}

.lp-sub {
  color: var(--lp-muted);
  font-size: 1.05rem;
  max-width: 42ch;
  margin: 0 0 28px;
}

/* Food preview cards */
.lp-food-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 1fr);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}

.lp-food-rail::-webkit-scrollbar { height: 6px; }
.lp-food-rail::-webkit-scrollbar-thumb { background: #e0c8b4; border-radius: 99px; }

@media (min-width: 900px) {
  .lp-food-rail {
    grid-auto-flow: unset;
    grid-template-columns: repeat(4, 1fr);
    overflow: visible;
  }
}

.lp-food-card {
  scroll-snap-align: start;
  background: var(--lp-card);
  border: 1px solid var(--lp-line);
  border-radius: var(--lp-radius);
  overflow: hidden;
  box-shadow: var(--lp-shadow);
  text-decoration: none;
  color: inherit;
  transition: transform .2s ease, box-shadow .2s ease;
}

.lp-food-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px rgba(60, 28, 12, 0.14);
}

.lp-food-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  background: var(--lp-cream-deep);
}

.lp-food-card-body { padding: 14px 16px 16px; }
.lp-food-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}
.lp-food-meta {
  color: var(--lp-muted);
  font-size: 0.88rem;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
}

.lp-section-cta { margin-top: 28px; }

/* Steps */
.lp-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.lp-step {
  background: #fff;
  border: 1px solid var(--lp-line);
  border-radius: var(--lp-radius);
  padding: 22px 20px;
}

.lp-step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff1ee;
  color: var(--lp-ember-deep);
  font-weight: 800;
  margin-bottom: 14px;
}

.lp-step h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 8px;
}

.lp-step p { margin: 0; color: var(--lp-muted); }

/* Privacy */
.lp-privacy {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;
  align-items: center;
}

.lp-privacy-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.lp-privacy-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--lp-line);
  border-radius: 16px;
  padding: 14px 16px;
}

.lp-privacy-list i {
  color: var(--lp-herb);
  margin-top: 3px;
}

.lp-privacy-visual {
  border-radius: 28px;
  min-height: 280px;
  background:
    linear-gradient(160deg, rgba(26,18,14,.35), rgba(26,18,14,.55)),
    url("https://images.unsplash.com/photo-1414235077428-338989a2e8c0?auto=format&fit=crop&w=1200&q=80")
    center / cover no-repeat;
  box-shadow: var(--lp-shadow);
}

/* Categories */
.lp-cats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.lp-cat {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  min-height: 200px;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
  color: #fff;
  isolation: isolate;
}

.lp-cat img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform .35s ease;
}

.lp-cat::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 30%, rgba(16,8,4,.78));
}

.lp-cat:hover img { transform: scale(1.06); }

.lp-cat span {
  position: relative;
  z-index: 2;
  padding: 18px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
}

/* Final CTA */
.lp-final {
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(240,160,26,.16), transparent 55%),
    #1a120e;
  color: #fffaf5;
  border-radius: 32px;
  padding: clamp(40px, 6vw, 64px) 24px;
  margin: 0 auto;
}

.lp-final .lp-title { color: #fffaf5; }
.lp-final .lp-sub { color: rgba(255,250,245,.78); margin-left: auto; margin-right: auto; }
.lp-final-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

/* Footer */
.lp-footer {
  padding: 40px 0 28px;
  border-top: 1px solid var(--lp-line);
  margin-top: 20px;
}

.lp-footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.lp-footer-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  text-decoration: none;
  color: var(--lp-ink);
}

.lp-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
}

.lp-footer-links a {
  color: var(--lp-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.lp-footer-links a:hover { color: var(--lp-ember-deep); }

.lp-copy {
  margin-top: 22px;
  color: var(--lp-muted);
  font-size: 0.85rem;
}

/* Mobile nav drawer */
.lp-drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(16, 8, 4, 0.5);
}

.lp-drawer.open { display: block; }

.lp-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(320px, 88vw);
  height: 100%;
  background: #fffaf5;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: -12px 0 40px rgba(0,0,0,.2);
}

.lp-drawer-panel a,
.lp-drawer-panel button {
  text-align: left;
  border: none;
  background: transparent;
  font: 650 1.05rem var(--font-body);
  color: var(--lp-ink);
  padding: 12px 8px;
  text-decoration: none;
  cursor: pointer;
  border-radius: 10px;
}

.lp-drawer-panel a:hover,
.lp-drawer-panel button:hover { background: #fff1ee; }

.lp-drawer-close {
  align-self: flex-end;
  width: 44px;
  height: 44px;
  border-radius: 12px !important;
  border: 1px solid var(--lp-line) !important;
}

@media (max-width: 900px) {
  .lp-steps { grid-template-columns: 1fr; }
  .lp-privacy { grid-template-columns: 1fr; }
  .lp-cats { grid-template-columns: 1fr 1fr; }
  .lp-privacy-visual { min-height: 220px; }
}

@media (max-width: 780px) {
  .lp-links { display: none; }
  .lp-nav-actions .lp-hide-sm { display: none; }
  .lp-menu-btn { display: inline-grid; place-items: center; }
  .lp-hero { min-height: 100svh; }
  .lp-hero-inner { padding-bottom: 48px; }
  .lp-btn { min-height: 50px; width: 100%; }
  .lp-hero-actions { width: 100%; }
  .lp-hero-actions .lp-btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .lp-hero-media { animation: none; }
  .lp-brand, .lp-hero h1, .lp-hero-lead, .lp-hero-actions { animation: none; }
  .lp-food-card, .lp-cat img { transition: none; }
}
