/* FoodIQ landing. Layout: white page, the app's lime "hill" as the one loud surface, screenshots as the imagery. */
:root {
  --lime: #b2e63f;        /* store-screenshot background */
  --lime-soft: #eef9d3;
  --apple: #1f8f33;       /* icon green, darkened for text contrast */
  --violet: #7b61f0;      /* app accent */
  --ink: #171a14;
  --ink-2: #4c5345;
  --line: #e3e8da;
  --paper: #ffffff;
  --paper-2: #f6f8f1;

  --display: "Bricolage Grotesque", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-lg: 36px;
  --r-md: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); line-height: 1; font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); line-height: 1.08; font-weight: 700; }
h3 { font-size: 1.2rem; line-height: 1.25; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1120px; margin-inline: auto; padding-inline: max(20px, env(safe-area-inset-left, 0px)) max(20px, env(safe-area-inset-right, 0px)); }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, 0.9); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.top__row { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 1.3rem/1 var(--display); letter-spacing: -0.02em; }
.brand img { border-radius: 10px; border: 1px solid var(--line); }
.top__nav { display: flex; gap: 28px; margin-left: auto; font-size: 0.95rem; font-weight: 500; }
.top__nav a { text-decoration: none; color: var(--ink-2); }
.top__nav a:hover { color: var(--ink); }

.btn { display: inline-flex; align-items: center; justify-content: center; background: var(--ink); color: #fff; text-decoration: none; font-weight: 600; border-radius: 999px; padding: 14px 24px; }
.btn--small { padding: 10px 18px; font-size: 0.95rem; }
.btn:hover { background: #000; }

/* ---------- hero ---------- */
.hero { padding-block: clamp(36px, 6vw, 72px) 0; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; padding-bottom: clamp(36px, 6vw, 72px); }
.chip { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--apple); background: var(--lime-soft); border-radius: 999px; padding: 7px 14px; }
.mark { background: linear-gradient(transparent 58%, var(--lime) 58%, var(--lime) 92%, transparent 92%); white-space: nowrap; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-2); max-width: 34em; }
.fine { font-size: 0.9rem; color: var(--ink-2); }

.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.stores--center { justify-content: center; }
.store { display: inline-flex; align-items: center; gap: 12px; background: var(--ink); color: #fff; text-decoration: none; border-radius: 16px; padding: 11px 22px 11px 18px; font: 600 1.15rem/1.15 var(--display); transition: transform 0.15s ease; }
.store small { display: block; font: 500 0.7rem/1.3 var(--body); opacity: 0.75; letter-spacing: 0.02em; }
.store:hover { transform: translateY(-2px); }

/* Screenshot card. The store images carry a headline in their top fifth; --crop hides it and keeps the phone. */
.shot { border-radius: var(--r-lg); overflow: hidden; background: var(--lime); }
.shot--crop { aspect-ratio: 1080 / 1570; }
.shot--crop img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.hero__shot { align-self: end; }
.hero__shot .shot { border-radius: var(--r-lg) var(--r-lg) 0 0; max-width: 460px; margin-inline: auto; }

/* ---------- how it works (the lime hill) ---------- */
.how { background: var(--lime); padding-block: clamp(56px, 8vw, 96px); }
.how h2 { max-width: 14em; }
.steps { list-style: none; margin: clamp(28px, 4vw, 48px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.steps li { background: var(--paper); border-radius: var(--r-md); padding: 26px 24px 28px; display: flex; flex-direction: column; gap: 10px; }
.steps__n { width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--lime); display: grid; place-items: center; font: 700 1.1rem/1 var(--display); margin-bottom: 6px; }
.steps p { color: var(--ink-2); font-size: 1rem; }

/* ---------- feature rows ---------- */
.rows { padding-block: clamp(56px, 8vw, 104px); }
.rows .wrap { display: flex; flex-direction: column; gap: clamp(56px, 8vw, 104px); }
.row { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 88px); align-items: center; }
.row--flip .row__shot { order: 2; }
.row__shot .shot { max-width: 400px; margin-inline: auto; }
.row__copy { display: flex; flex-direction: column; gap: 18px; }
.row__copy p { color: var(--ink-2); max-width: 32em; }
.ticks { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-weight: 500; }
.ticks li { position: relative; padding-left: 32px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.18em; width: 20px; height: 20px; border-radius: 50%; background: var(--lime); }
.ticks li::after { content: ""; position: absolute; left: 6px; top: calc(0.18em + 5px); width: 8px; height: 5px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(-45deg); }

/* ---------- feature grid ---------- */
.grid-sec { background: var(--paper-2); padding-block: clamp(56px, 8vw, 96px); }
.feats { list-style: none; margin: clamp(28px, 4vw, 44px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.feats li { padding: 26px 28px 30px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.feats p { color: var(--ink-2); font-size: 1rem; }

/* ---------- faq ---------- */
.faq { padding-block: clamp(56px, 8vw, 96px); }
.faq__wrap { max-width: 800px; }
.faq h2 { margin-bottom: 20px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font: 600 1.15rem/1.3 var(--display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font: 400 1.6rem/1 var(--body); color: var(--apple); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-2); padding: 0 0 22px; max-width: 40em; }
.faq a { color: var(--apple); font-weight: 500; }

/* ---------- final cta ---------- */
.cta { padding-block: 0 clamp(56px, 8vw, 96px); }
.cta__box { background: var(--lime); border-radius: var(--r-lg); padding-block: clamp(40px, 6vw, 72px); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; max-width: 1080px; }
.cta__box img { border-radius: 24px; background: #fff; }
.cta__box h2 { max-width: 13em; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding-block: 28px 36px; font-size: 0.95rem; }
.foot__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.brand--foot { font-size: 1.1rem; }
.foot__nav { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.foot__nav a { color: var(--ink-2); text-decoration: none; }
.foot__nav a:hover { color: var(--ink); text-decoration: underline; }
.foot__fine { margin-top: 18px; color: var(--ink-2); font-size: 0.82rem; max-width: 60em; }

/* ---------- narrow screens ---------- */
@media (max-width: 860px) {
  .top__nav { display: none; }
  .top__row { justify-content: space-between; }
  .hero__grid, .row { grid-template-columns: minmax(0, 1fr); }
  .hero__copy { padding-bottom: 8px; }
  .hero__shot .shot { max-width: 360px; }
  .row--flip .row__shot { order: 0; }
  .row__shot .shot { max-width: 340px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .feats { grid-template-columns: minmax(0, 1fr); }
  .feats li { padding-right: 0; }
  .store { flex: 1 1 100%; justify-content: center; }
  .cta__box { border-radius: 24px; margin-inline: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .store { transition: none; }
}
