/* =========================================================
   Foodminder — brand stylesheet
   "Pantry & Provisions": warm cream, herb green, clay amber
   ========================================================= */

:root {
  /* color tokens (driven by Tweaks) */
  --paper:      oklch(0.973 0.012 92);
  --paper-2:    oklch(0.955 0.014 90);
  --card:       oklch(0.992 0.006 92);
  --ink:        oklch(0.275 0.018 152);
  --ink-soft:   oklch(0.45 0.02 152);
  --muted:      oklch(0.56 0.018 150);
  --line:       oklch(0.90 0.012 92);
  --line-soft:  oklch(0.93 0.010 92);

  --green:      oklch(0.47 0.074 150);
  --green-deep: oklch(0.33 0.050 152);
  --green-tint: oklch(0.93 0.030 150);

  --accent:     oklch(0.70 0.125 62);   /* clay amber */
  --accent-deep:oklch(0.58 0.115 55);
  --accent-tint:oklch(0.93 0.045 75);

  --ok:    oklch(0.62 0.11 150);
  --warn:  oklch(0.74 0.13 75);
  --alert: oklch(0.62 0.16 32);

  /* type */
  --font-display: "Newsreader", Georgia, serif;
  --font-sans: "Hanken Grotesk", -apple-system, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px oklch(0.3 0.03 150 / 0.06), 0 2px 8px oklch(0.3 0.03 150 / 0.05);
  --shadow-md: 0 8px 30px oklch(0.3 0.03 150 / 0.10), 0 2px 8px oklch(0.3 0.03 150 / 0.06);
  --shadow-lg: 0 30px 70px oklch(0.25 0.03 150 / 0.22), 0 8px 24px oklch(0.25 0.03 150 / 0.12);

  --maxw: 1180px;
}

[data-theme="dark"] {
  --paper:      oklch(0.205 0.014 152);
  --paper-2:    oklch(0.235 0.016 152);
  --card:       oklch(0.255 0.016 152);
  --ink:        oklch(0.95 0.010 92);
  --ink-soft:   oklch(0.82 0.012 92);
  --muted:      oklch(0.68 0.014 100);
  --line:       oklch(0.34 0.018 152);
  --line-soft:  oklch(0.30 0.016 152);
  --green:      oklch(0.66 0.10 150);
  --green-deep: oklch(0.30 0.05 152);
  --green-tint: oklch(0.30 0.045 152);
  --accent:     oklch(0.76 0.13 65);
  --accent-tint:oklch(0.33 0.05 70);
  --shadow-lg:  0 30px 70px oklch(0 0 0 / 0.5), 0 8px 24px oklch(0 0 0 / 0.35);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01";
  transition: background .4s ease, color .4s ease;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.05; letter-spacing: -0.01em; }
.serif-italic { font-style: italic; }

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

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  display: inline-flex; align-items: center; gap: 9px;
}
.eyebrow::before {
  content: ""; width: 22px; height: 1px; background: currentColor; opacity: .6;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-sans); font-weight: 600; font-size: 15px;
  padding: 13px 22px; border-radius: 100px; border: 1px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green-deep); color: oklch(0.97 0.02 92); box-shadow: var(--shadow-sm); }
.btn-primary:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: oklch(0.24 0.04 50); }
.btn-accent:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--paper-2); }

/* ---------- nav ---------- */
header.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
  background: color-mix(in oklch, var(--paper) 82%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
header.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 15px; color: var(--ink-soft); font-weight: 500; transition: color .15s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 14px; }

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 11px; }
.logo-mark {
  width: 30px; height: 30px; position: relative; flex: none;
  background: var(--green);
  border-radius: 4px 16px 4px 16px;
  transform: rotate(-2deg);
}
.logo-mark::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 48%, color-mix(in oklch, var(--paper) 70%, transparent) 49%, color-mix(in oklch, var(--paper) 70%, transparent) 51%, transparent 52%);
  border-radius: inherit;
}
.logo-word { font-family: var(--font-display); font-size: 23px; font-weight: 600; letter-spacing: -0.02em; }
.logo-word b { color: var(--green); font-weight: 600; }

/* ---------- hero ---------- */
.hero { padding: 64px 0 40px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(44px, 5.4vw, 74px); margin: 22px 0 0; }
.hero h1 em { color: var(--green); font-style: italic; }
.hero .lede { font-size: 20px; color: var(--ink-soft); max-width: 30em; margin-top: 22px; }

.signup { display: flex; gap: 10px; margin-top: 30px; max-width: 440px; }
.signup input {
  flex: 1; font-family: var(--font-sans); font-size: 15px; color: var(--ink);
  padding: 13px 18px; border-radius: 100px; border: 1px solid var(--line);
  background: var(--card); transition: border-color .2s, box-shadow .2s;
}
.signup input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px var(--green-tint); }
.signup input::placeholder { color: var(--muted); }
.trust { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-size: 14px; color: var(--muted); }
.avatars { display: flex; }
.avatars span { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--paper); margin-left: -8px; background: var(--green-tint); }
.avatars span:first-child { margin-left: 0; }
.avatars span:nth-child(2){ background: var(--accent-tint); }
.avatars span:nth-child(3){ background: var(--green-tint); }
.avatars span:nth-child(4){ background: var(--accent-tint); }

.signup-msg { font-size: 14px; color: var(--green); margin-top: 14px; min-height: 18px; font-weight: 600; opacity: 0; transition: opacity .3s; }
.signup-msg.show { opacity: 1; }

/* ---------- phone ---------- */
.phone-stage { position: relative; display: flex; justify-content: center; }
.leaf-blob {
  position: absolute; width: 380px; height: 380px; border-radius: 46% 54% 60% 40%;
  background: radial-gradient(circle at 35% 30%, var(--green-tint), transparent 70%);
  filter: blur(8px); z-index: 0; top: -20px; right: -30px;
}
.phone {
  position: relative; z-index: 1; width: 300px; height: 612px;
  background: oklch(0.22 0.012 150); border-radius: 44px; padding: 11px;
  box-shadow: var(--shadow-lg); border: 1px solid oklch(0.3 0.01 150);
}
.phone-screen {
  width: 100%; height: 100%; background: var(--paper); border-radius: 34px; overflow: hidden;
  display: flex; flex-direction: column; position: relative;
}
.phone-notch {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 26px; background: oklch(0.22 0.012 150); border-radius: 100px; z-index: 5;
}

/* app inside phone */
.app-top { padding: 44px 18px 12px; display: flex; align-items: center; justify-content: space-between; }
.app-top .greet { font-size: 12px; color: var(--muted); }
.app-top .greet b { display: block; font-family: var(--font-display); font-size: 19px; color: var(--ink); font-weight: 600; margin-top: 2px; }
.app-bell { width: 34px; height: 34px; border-radius: 50%; background: var(--green-tint); display: grid; place-items: center; font-size: 15px; }

.app-summary { margin: 4px 16px 8px; background: var(--green-deep); border-radius: 18px; padding: 15px 16px; color: oklch(0.95 0.02 92); }
.app-summary .lab { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; opacity: .7; }
.app-summary .big { font-family: var(--font-display); font-size: 26px; margin-top: 3px; }
.app-summary .big span { font-size: 14px; opacity: .8; }
.app-summary .bar { height: 6px; border-radius: 100px; background: oklch(1 0 0 / .18); margin-top: 11px; overflow: hidden; }
.app-summary .bar i { display: block; height: 100%; width: 64%; background: var(--accent); border-radius: 100px; }

.app-sect { padding: 12px 16px 4px; display: flex; align-items: center; justify-content: space-between; }
.app-sect h4 { font-family: var(--font-sans); font-size: 13px; font-weight: 700; letter-spacing: -0.01em; }
.app-sect a { font-size: 11px; color: var(--green); font-weight: 600; }

.app-list { padding: 0 16px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; flex: 1; }
.food {
  display: flex; align-items: center; gap: 11px; background: var(--card);
  border: 1px solid var(--line-soft); border-radius: 14px; padding: 10px 12px;
}
.food .ic { width: 36px; height: 36px; border-radius: 9px; background: var(--green-tint); display: grid; place-items: center; font-size: 17px; flex: none; }
.food .meta { flex: 1; min-width: 0; }
.food .meta b { font-size: 13.5px; font-weight: 600; display: block; }
.food .meta small { font-size: 11px; color: var(--muted); }
.chip { font-family: var(--font-mono); font-size: 10px; font-weight: 600; padding: 4px 8px; border-radius: 100px; white-space: nowrap; }
.chip.red { background: color-mix(in oklch, var(--alert) 16%, transparent); color: var(--alert); }
.chip.amber { background: color-mix(in oklch, var(--warn) 22%, transparent); color: oklch(0.5 0.12 65); }
.chip.green { background: color-mix(in oklch, var(--ok) 18%, transparent); color: var(--ok); }

.app-tabs { display: flex; justify-content: space-around; padding: 12px 14px 20px; border-top: 1px solid var(--line-soft); background: var(--card); }
.app-tabs span { width: 22px; height: 22px; border-radius: 7px; background: var(--line); }
.app-tabs span.on { background: var(--green); }

/* ---------- marquee / stat band ---------- */
.band { background: var(--green-deep); color: oklch(0.95 0.02 92); padding: 72px 0; }
.band .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.band .stat { font-family: var(--font-display); font-size: clamp(56px, 8vw, 104px); line-height: 0.95; }
.band .stat em { color: var(--accent); font-style: italic; }
.band p { font-size: 19px; color: oklch(0.88 0.02 92); max-width: 30em; }
.band p .src { display: block; margin-top: 14px; font-family: var(--font-mono); font-size: 12px; opacity: .55; letter-spacing: .04em; }

/* ---------- section heading ---------- */
.sec { padding: 96px 0; }
.sec-head { max-width: 640px; }
.sec-head h2 { font-size: clamp(34px, 4vw, 52px); margin-top: 16px; }
.sec-head p { font-size: 18px; color: var(--ink-soft); margin-top: 16px; }
.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.step { position: relative; padding-top: 26px; }
.step .no { font-family: var(--font-mono); font-size: 13px; color: var(--accent-deep); font-weight: 600; }
.step h3 { font-size: 25px; margin: 14px 0 8px; }
.step p { color: var(--ink-soft); font-size: 16px; }
.step .pic {
  margin-top: 22px; border-radius: var(--radius); height: 200px; border: 1px solid var(--line);
  background:
    repeating-linear-gradient(45deg, var(--paper-2), var(--paper-2) 11px, var(--card) 11px, var(--card) 22px);
  display: grid; place-items: center;
}
.step .pic .ph { font-family: var(--font-mono); font-size: 11px; color: var(--muted); background: var(--paper); padding: 5px 10px; border-radius: 100px; border: 1px solid var(--line); }
.step .top-rule { position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--line); }
.step .top-rule i { display:block; height: 100%; width: 38%; background: var(--accent); }

/* ---------- features ---------- */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 56px; }
.feature {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: color-mix(in oklch, var(--green) 40%, var(--line)); }
.feature .fic { width: 48px; height: 48px; border-radius: 12px; background: var(--green-tint); display: grid; place-items: center; font-size: 22px; }
.feature.alt .fic { background: var(--accent-tint); }
.feature h3 { font-size: 22px; margin: 20px 0 9px; }
.feature p { color: var(--ink-soft); font-size: 15.5px; }

/* ---------- showcase ---------- */
.showcase { background: var(--paper-2); }
.showcase .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.showcase .pic {
  border-radius: 22px; height: 460px; border: 1px solid var(--line); position: relative; overflow: hidden;
  background:
    repeating-linear-gradient(135deg, var(--paper), var(--paper) 14px, var(--card) 14px, var(--card) 28px);
  display: grid; place-items: center; box-shadow: var(--shadow-md);
}
.showcase .pic .ph { font-family: var(--font-mono); font-size: 12px; color: var(--muted); background: var(--paper); padding: 7px 13px; border-radius: 100px; border: 1px solid var(--line); }
.showcase ul { list-style: none; margin-top: 26px; display: flex; flex-direction: column; gap: 18px; }
.showcase li { display: flex; gap: 14px; align-items: flex-start; }
.showcase li .tick { width: 26px; height: 26px; border-radius: 50%; background: var(--green-tint); color: var(--green); display: grid; place-items: center; flex: none; font-size: 13px; font-weight: 700; margin-top: 2px; }
.showcase li b { font-weight: 600; }
.showcase li p { color: var(--ink-soft); font-size: 15.5px; margin-top: 2px; }

/* ---------- testimonial ---------- */
.quote { text-align: center; max-width: 880px; margin: 0 auto; }
.quote blockquote { font-family: var(--font-display); font-size: clamp(28px, 3.5vw, 42px); line-height: 1.25; letter-spacing: -0.01em; }
.quote blockquote em { color: var(--green); font-style: italic; }
.quote .by { margin-top: 30px; display: inline-flex; align-items: center; gap: 12px; }
.quote .by .av { width: 44px; height: 44px; border-radius: 50%; background: var(--accent-tint); }
.quote .by .who { text-align: left; }
.quote .by .who b { display: block; font-weight: 600; }
.quote .by .who small { color: var(--muted); }

/* ---------- faq ---------- */
.faq-grid { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 60px; margin-top: 20px; }
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-top: 1px solid var(--line); padding: 4px 0; }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; background: none; border: none; cursor: pointer; text-align: left; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-family: var(--font-display); font-size: 21px; color: var(--ink); font-weight: 500; }
.faq-q .pm { font-family: var(--font-sans); font-size: 26px; color: var(--green); transition: transform .25s; flex: none; }
.faq-item.open .faq-q .pm { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { color: var(--ink-soft); font-size: 16px; padding-bottom: 22px; max-width: 50em; }

/* ---------- cta band ---------- */
.cta {
  background: var(--accent); color: oklch(0.22 0.04 50); border-radius: 30px;
  padding: 70px 8%; text-align: center; position: relative; overflow: hidden;
}
.cta h2 { font-size: clamp(34px, 4.5vw, 56px); }
.cta p { font-size: 19px; margin: 16px auto 0; max-width: 34em; opacity: .85; }
.cta .signup { margin: 30px auto 0; }
.cta .signup input { background: oklch(1 0 0 / .85); border-color: transparent; }
.cta .trust { justify-content: center; color: oklch(0.3 0.04 50 / .8); }

/* ---------- footer ---------- */
footer { padding: 70px 0 40px; border-top: 1px solid var(--line); margin-top: 0; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.foot-grid p { color: var(--muted); font-size: 14.5px; margin-top: 16px; max-width: 26em; }
.foot-col h5 { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.foot-col a { display: block; color: var(--ink-soft); font-size: 15px; padding: 6px 0; transition: color .15s; }
.foot-col a:hover { color: var(--green); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; }

/* ---------- reveal anim ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .hero-grid, .band .wrap, .showcase .wrap, .faq-grid { grid-template-columns: 1fr; gap: 40px; }
  .steps, .features { grid-template-columns: 1fr; }
  .phone-stage { margin-top: 10px; }
  .nav-links { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 20px; }
  .signup { flex-direction: column; }
  .signup .btn { justify-content: center; }
  .foot-grid { grid-template-columns: 1fr; }
  .sec { padding: 64px 0; }
}

/* tweak panel mount stays out of the way */
#tweaks-root { position: fixed; z-index: 9999; }
