/* Menura landing page — earthy design system from the app
   (Color+Extensions.swift): olive #6B7150, deep olive #4D5238,
   ink #2B2A24, off-white #F5F1E8. Serif display, mono eyebrows. */

:root {
  --bg: #F5F1E8;
  --bg2: #EEE8D8;
  --bg3: #E4DBC4;
  --cream: #FAF6EB;
  --ink: #2B2A24;
  --ink2: #5C584A;
  --ink3: #8A8470;
  --line: #D8CFB5;
  --line2: #C9BEA0;
  --olive: #6B7150;
  --olive-deep: #4D5238;
  --clay: #A65A3C;
  --sand: #D9C9A3;
  --serif: "New York", ui-serif, "Iowan Old Style", Charter, Georgia, "Times New Roman", serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--olive-deep); }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; color: var(--ink); }
h2 { font-size: clamp(1.9rem, 4.5vw, 3rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h4 { font-size: 1.15rem; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink3);
}
.eyebrow.light { color: var(--sand); }

/* ---------- top bar ---------- */

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.7rem clamp(1rem, 4vw, 2.5rem);
  transition: background-color 0.35s, box-shadow 0.35s, backdrop-filter 0.35s;
}
.topbar.scrolled {
  background: rgba(245, 241, 232, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.topbar-logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--olive-deep);
  text-decoration: none;
}
.topbar-logo img { border-radius: 7px; }
.topbar-nav { display: flex; gap: 1.4rem; margin-left: auto; }
.topbar-nav a {
  font-size: 0.92rem;
  color: var(--ink2);
  text-decoration: none;
}
.topbar-nav a:hover { color: var(--olive-deep); }
.lang-toggle {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--line2);
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink2);
  cursor: pointer;
}
.lang-toggle:hover { border-color: var(--olive); color: var(--olive-deep); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.25rem 4rem;
  overflow: hidden;
}
.hero-center {
  position: relative;
  z-index: 2;
  max-width: 46rem;
  text-align: center;
}
.hero-icon {
  border-radius: 16px;
  margin: 0 auto 1.6rem;
  box-shadow: 0 10px 30px rgba(43, 42, 36, 0.18);
}
.hero-title {
  font-size: clamp(2.6rem, 8vw, 5rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.hero-title span { display: block; }
.hero-title .accent { color: var(--olive); font-style: italic; }
.hero-sub {
  margin: 1.5rem auto 0;
  max-width: 34rem;
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--ink2);
}
.hero-cta {
  margin-top: 2.2rem;
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.cta-primary {
  display: inline-block;
  background: var(--olive-deep);
  color: var(--cream);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(77, 82, 56, 0.35);
}
.cta-secondary {
  display: inline-block;
  color: var(--olive-deep);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.8rem 0.4rem;
}
.cta-secondary:hover { text-decoration: underline; }

/* floating food cards */
.hero-cards { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero-card {
  position: absolute;
  width: clamp(140px, 16vw, 240px);
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  overflow: hidden;
  border: 6px solid var(--cream);
  box-shadow: 0 18px 40px rgba(43, 42, 36, 0.18);
  will-change: transform;
}
.hero-card img { width: 100%; height: 100%; object-fit: cover; }
.hc-1 { top: 14%; left: max(-40px, 2vw); rotate: -6deg; }
.hc-2 { top: 10%; right: max(-30px, 3vw); rotate: 5deg; }
.hc-3 { bottom: 12%; left: max(-30px, 5vw); rotate: 4deg; }
.hc-4 { bottom: 16%; right: max(-40px, 4vw); rotate: -5deg; }

.scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  translate: -50% 0;
  color: var(--ink3);
  animation: cue 2.2s var(--ease) infinite;
}
@keyframes cue {
  0%, 100% { transform: translateY(0); opacity: 0.7; }
  50% { transform: translateY(8px); opacity: 1; }
}

/* hero entrance */
.rise { opacity: 0; transform: translateY(26px); animation: rise 0.9s var(--ease) forwards; }
.r-0 { animation-delay: 0.05s; }
.r-1 { animation-delay: 0.18s; }
.r-2 { animation-delay: 0.32s; }
.r-3 { animation-delay: 0.48s; }
.r-4 { animation-delay: 0.62s; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

/* ---------- intro statement ---------- */

.intro {
  max-width: 52rem;
  margin: 0 auto;
  padding: clamp(4rem, 10vw, 8rem) 1.25rem 3rem;
  text-align: center;
}
.statement { margin-top: 0.9rem; }
.intro-copy {
  margin: 1.3rem auto 0;
  max-width: 36rem;
  color: var(--ink2);
  font-size: 1.1rem;
}

/* ---------- marquee ---------- */

.marquee {
  overflow: hidden;
  padding: clamp(2rem, 5vw, 3.5rem) 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 1.2rem;
  width: max-content;
  animation: marquee 42s linear infinite;
}
.marquee-track img {
  width: clamp(200px, 24vw, 320px);
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 16px;
  border: 5px solid var(--cream);
  box-shadow: 0 10px 26px rgba(43, 42, 36, 0.12);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sticky showcase ---------- */

.showcase { padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 4vw, 2.5rem); }
.showcase-grid {
  display: grid;
  grid-template-columns: minmax(300px, 420px) 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  max-width: 68rem;
  margin: 0 auto;
  align-items: start;
}
.phone-wrap {
  position: sticky;
  top: calc(50vh - 330px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}
.phone {
  position: relative;
  width: min(300px, 80vw);
  aspect-ratio: 1284 / 2778;
  border-radius: 48px;
  background: var(--ink);
  padding: 10px;
  box-shadow: 0 30px 60px rgba(43, 42, 36, 0.28), 0 4px 14px rgba(43, 42, 36, 0.18);
}
.phone::after {
  /* dynamic island */
  content: "";
  position: absolute;
  top: 22px;
  left: 50%;
  translate: -50% 0;
  width: 26%;
  height: 22px;
  border-radius: 999px;
  background: var(--ink);
  z-index: 3;
}
.phone .shot {
  position: absolute;
  inset: 10px;
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  object-fit: cover;
  border-radius: 38px;
  opacity: 0;
  transform: scale(1.015);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.phone .shot.is-active { opacity: 1; transform: scale(1); }
.phone-dots { display: flex; gap: 0.45rem; }
.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--line2);
  transition: background-color 0.3s, transform 0.3s;
}
.dot.is-active { background: var(--olive); transform: scale(1.25); }

.steps { display: flex; flex-direction: column; }
.step {
  min-height: 78vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.9rem;
  max-width: 30rem;
  opacity: 0.3;
  transition: opacity 0.5s var(--ease);
}
.step.is-active { opacity: 1; }
.step p:not(.eyebrow) { color: var(--ink2); font-size: 1.06rem; }
.step-shot { display: none; }

/* ---------- feature grid ---------- */

.more {
  max-width: 68rem;
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 4vw, 2.5rem);
  text-align: center;
}
.cards {
  margin-top: 2.6rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.1rem;
  text-align: left;
}
.card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.5rem 1.4rem;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(43, 42, 36, 0.1);
}
.card p { margin-top: 0.45rem; color: var(--ink2); font-size: 0.95rem; }

/* ---------- plus band ---------- */

.plus {
  background: linear-gradient(160deg, var(--olive) 0%, var(--olive-deep) 70%);
  color: var(--cream);
  border-radius: clamp(20px, 4vw, 40px);
  margin: clamp(2rem, 6vw, 4rem) clamp(0.8rem, 3vw, 2.5rem);
  padding: clamp(3.5rem, 8vw, 6rem) clamp(1.25rem, 5vw, 4rem);
}
.plus-inner { max-width: 44rem; margin: 0 auto; text-align: center; }
.plus-icon {
  /* mirrors the app paywall badge: sparkles on a soft rounded square */
  width: 64px;
  height: 64px;
  margin: 0 auto 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(250, 246, 235, 0.14);
  border-radius: 18px;
}
.plus-icon svg { width: 30px; height: 30px; fill: var(--sand); }
.plus h2 { color: var(--cream); margin-top: 0.9rem; }
.plus-copy { margin-top: 1.2rem; color: rgba(250, 246, 235, 0.85); }
.plus-list {
  list-style: none;
  margin: 1.6rem auto 0;
  display: inline-flex;
  flex-direction: column;
  gap: 0.55rem;
  text-align: left;
}
.plus-list li { padding-left: 1.7rem; position: relative; }
.plus-list li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--sand);
}
.plus-note {
  margin-top: 2.2rem;
  font-size: 0.9rem;
  color: rgba(250, 246, 235, 0.75);
}

/* ---------- privacy ---------- */

.privacy {
  max-width: 46rem;
  margin: 0 auto;
  padding: clamp(3.5rem, 9vw, 7rem) 1.25rem;
  text-align: center;
}
.privacy h2 { margin-top: 0.9rem; }
.priv-points { margin-top: 1.8rem; display: flex; flex-direction: column; gap: 0.5rem; }
.priv-points p {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.6vw, 1.5rem);
  color: var(--ink2);
}
.privacy .cta-secondary { margin-top: 1.6rem; }

/* ---------- footer ---------- */

.footer { border-top: 1px solid var(--line); background: var(--bg2); }
.footer-inner {
  max-width: 68rem;
  margin: 0 auto;
  padding: 2.2rem clamp(1rem, 4vw, 2.5rem);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--serif);
  font-weight: 700;
  color: var(--olive-deep);
}
.footer-brand img { border-radius: 6px; }
.footer-nav { display: flex; gap: 1.3rem; margin-left: auto; flex-wrap: wrap; }
.footer-nav a { font-size: 0.9rem; color: var(--ink2); text-decoration: none; }
.footer-nav a:hover { color: var(--olive-deep); }
.footer-note { width: 100%; font-size: 0.8rem; color: var(--ink3); }

/* ---------- scroll reveals (JS adds .in) ---------- */

html.js .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
html.js .reveal.d-1 { transition-delay: 0.12s; }
html.js .reveal.d-2 { transition-delay: 0.24s; }
html.js .reveal.d-3 { transition-delay: 0.36s; }
html.js .reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .topbar-nav { display: none; }
  .hero-card { display: none; }
  .hc-1, .hc-2 { display: block; width: clamp(110px, 24vw, 160px); }
  .hc-1 { top: 9%; left: -30px; }
  .hc-2 { top: 7%; right: -26px; }

  .showcase-grid { grid-template-columns: 1fr; }
  .phone-wrap { display: none; }
  .step { min-height: 0; opacity: 1; padding: 2.2rem 0; max-width: none; }
  .step-shot {
    display: block;
    width: min(240px, 70vw);
    border-radius: 24px;
    border: 6px solid var(--ink);
    margin-bottom: 1rem;
    box-shadow: 0 16px 36px rgba(43, 42, 36, 0.22);
  }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise { animation: none; opacity: 1; transform: none; }
  .scroll-cue { animation: none; }
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; }
  html.js .reveal { transition: none; opacity: 1; transform: none; }
  .hero-card { transform: none !important; }
  .phone .shot { transition: opacity 0.3s; transform: none; }
}
