/* ============================================================
   PlatePlan — landing page
   Palette: warm cream + fresh herb green + charcoal
   ============================================================ */

:root {
  --green-900: #14361f;
  --green-700: #1f6b3b;
  --green-600: #2c8a4e;
  --green-500: #3aa766;
  --green-100: #e4f3e8;
  --herb: #6fbf73;

  --amber: #f4a23b;
  --coral: #e8744f;

  --ink: #1a2420;
  --ink-soft: #46544c;
  --ink-faint: #6b7a72;

  --cream: #fbf8f1;
  --cream-2: #f4efe4;
  --paper: #ffffff;
  --line: #e9e3d6;

  --maxw: 1140px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(20, 54, 31, .06), 0 6px 16px rgba(20, 54, 31, .06);
  --shadow-md: 0 10px 30px rgba(20, 54, 31, .10);
  --shadow-lg: 0 30px 70px rgba(20, 54, 31, .18);

  --font-sans: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-weight: 600;
  font-size: .98rem;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--green-700);
  color: #fff;
  box-shadow: 0 8px 20px rgba(31, 107, 59, .25);
}
.btn--primary:hover { background: var(--green-900); transform: translateY(-2px); box-shadow: 0 14px 28px rgba(31, 107, 59, .3); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--green-600); color: var(--green-700); transform: translateY(-2px); }
.btn--lg { padding: 1.05rem 2rem; font-size: 1.05rem; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 248, 241, .8);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.nav.is-scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.nav__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 70px;
}
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 700; }
.brand__mark { display: inline-flex; align-items: center; }
.brand__mark svg { width: 40px; height: 40px; display: block; }
.brand__name { font-family: 'Poppins', var(--font-sans); font-weight: 600; font-size: 1.4rem; letter-spacing: -.01em; color: #233028; }

.nav__links { display: flex; gap: 1.6rem; margin-left: auto; }
.nav__links a {
  font-size: .95rem; font-weight: 500; color: var(--ink-soft);
  position: relative; padding: 4px 0;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--green-600); transition: width .2s ease;
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { width: 100%; }

.nav__cta { margin-left: .25rem; padding: .55rem 1.1rem; }
.nav__toggle {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px; margin-left: auto;
}
.nav__toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 72px 0 90px;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(111, 191, 115, .18), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(244, 162, 59, .10), transparent 55%);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}
.badge {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .82rem; font-weight: 600; color: var(--green-700);
  background: var(--green-100);
  border: 1px solid rgba(44, 138, 78, .2);
  padding: .4rem .85rem; border-radius: 999px;
  margin-bottom: 1.4rem;
}
.badge__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-500); box-shadow: 0 0 0 4px rgba(58, 167, 102, .2); }

.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.5rem, 5.2vw, 4rem);
  line-height: 1.04;
  letter-spacing: -.025em;
  margin-bottom: 1.3rem;
}
.hl {
  background: linear-gradient(120deg, var(--green-700), var(--green-500));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lede {
  font-size: 1.18rem;
  color: var(--ink-soft);
  max-width: 38ch;
  margin-bottom: 2rem;
}
.hero__lede strong { color: var(--ink); font-weight: 600; }
.hero__actions { display: flex; gap: .9rem; flex-wrap: wrap; margin-bottom: 2.6rem; }
.hero__proof {
  display: flex; gap: 2.2rem; list-style: none;
  border-top: 1px solid var(--line); padding-top: 1.5rem;
}
.hero__proof li { display: flex; flex-direction: column; }
.hero__proof strong { font-family: var(--font-display); font-size: 1.7rem; color: var(--green-700); line-height: 1; }
.hero__proof span { font-size: .85rem; color: var(--ink-faint); margin-top: .3rem; }

/* ---- Hero phone mockup ---- */
.hero__visual { position: relative; display: grid; place-items: center; }
.phone {
  position: relative;
  width: 300px;
  background: #0f1a14;
  border-radius: 38px;
  padding: 12px;
  box-shadow: var(--shadow-lg);
  animation: floaty 6s ease-in-out infinite;
}
.phone__notch {
  position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 22px; background: #0f1a14; border-radius: 0 0 14px 14px; z-index: 3;
}
.phone__screen {
  background: linear-gradient(180deg, #fff, #fbfaf6);
  border-radius: 28px;
  padding: 34px 16px 18px;
  height: 560px;
  overflow: hidden;
}
.appbar__hi { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; }
.appbar__sub { font-size: .78rem; color: var(--ink-faint); margin-top: 2px; }
.appbar__sub b { color: var(--green-700); }
.goalbar { background: var(--green-100); border-radius: 14px; padding: 12px 14px; margin: 14px 0; }
.goalbar__row { display: flex; justify-content: space-between; font-size: .76rem; font-weight: 600; color: var(--green-900); margin-bottom: 7px; }
.goalbar__track { height: 7px; background: rgba(31, 107, 59, .15); border-radius: 99px; overflow: hidden; }
.goalbar__track i { display: block; height: 100%; background: linear-gradient(90deg, var(--green-500), var(--green-700)); border-radius: 99px; }

.meal {
  display: flex; align-items: center; gap: 11px;
  background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 9px; margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
}
.meal__img { width: 46px; height: 46px; border-radius: 10px; flex: none; }
.meal__img--a { background: linear-gradient(135deg, #e8744f, #f4a23b); }
.meal__img--b { background: linear-gradient(135deg, #3aa766, #1f6b3b); }
.meal__img--c { background: linear-gradient(135deg, #b06a3b, #e8a24f); }
.meal__body { flex: 1; min-width: 0; }
.meal__name { font-size: .85rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meal__meta { font-size: .7rem; color: var(--ink-faint); }
.meal__price { font-weight: 700; color: var(--green-700); font-size: .9rem; }
.cartbtn {
  width: 100%; margin-top: 6px; border: none; cursor: pointer;
  background: var(--green-700); color: #fff; font-weight: 600; font-size: .9rem;
  padding: 12px; border-radius: 13px;
}

.floatcard {
  position: absolute; background: #fff; border-radius: 14px;
  padding: 10px 14px; box-shadow: var(--shadow-md); border: 1px solid var(--line);
  display: flex; flex-direction: column;
}
.floatcard__k { font-size: .68rem; color: var(--ink-faint); }
.floatcard__v { font-size: .82rem; font-weight: 700; }
.floatcard--1 { top: 12%; left: -6%; animation: floaty 5s ease-in-out infinite .4s; }
.floatcard--2 { bottom: 14%; right: -8%; animation: floaty 5.5s ease-in-out infinite .9s; }

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

/* ---------- Strip ---------- */
.strip { padding: 26px 0; background: var(--cream-2); border-block: 1px solid var(--line); }
.strip__inner { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
.strip__label { font-size: .82rem; font-weight: 600; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .06em; }
.strip__items { list-style: none; display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.strip__items li { font-weight: 600; color: var(--ink-soft); }
.strip__items .dot { color: var(--herb); }

/* ---------- Section base ---------- */
.section { padding: 92px 0; }
.section--alt { background: var(--cream-2); }
.section__head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.eyebrow {
  display: inline-block; font-size: .82rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--green-600); margin-bottom: 1rem;
}
.eyebrow--light { color: var(--herb); }
.section__title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.9rem, 3.6vw, 2.85rem); line-height: 1.1; letter-spacing: -.02em;
  margin-bottom: 1rem;
}
.section__lede { font-size: 1.12rem; color: var(--ink-soft); }
.section__head--light .section__title { color: #fff; }
.section__head--light .section__lede { color: #c8d6cd; }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 22px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(44, 138, 78, .35); }
.card__icon {
  width: 52px; height: 52px; display: grid; place-items: center;
  color: var(--green-700); background: var(--green-100); border-radius: 14px; margin-bottom: 1.1rem;
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; margin-bottom: .5rem; }
.card p { color: var(--ink-soft); font-size: .98rem; }

.cards--features { margin-top: 46px; }
.card--feature { padding: 24px; }
.card--feature h3 {
  font-size: 1.1rem; padding-left: 16px; position: relative; margin-bottom: .4rem;
}
.card--feature h3::before {
  content: ""; position: absolute; left: 0; top: .15em; bottom: .15em; width: 4px;
  background: linear-gradient(var(--green-500), var(--green-700)); border-radius: 4px;
}

/* ---------- Flow (how it worked) ---------- */
.flow {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  counter-reset: flow;
}
.flow__step {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 20px;
  box-shadow: var(--shadow-sm);
}
.flow__num {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 11px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.1rem;
  color: #fff; background: var(--green-700); margin-bottom: 1rem;
}
.flow__step h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: .4rem; }
.flow__step p { font-size: .9rem; color: var(--ink-soft); }
.flow__step:not(:last-child)::after {
  content: "→"; position: absolute; right: -14px; top: 38px;
  color: var(--herb); font-weight: 700; z-index: 2;
}

/* ---------- Split (product thinking) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.panel {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-md);
}
.panel__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.panel__title { font-weight: 700; }
.tag { font-size: .72rem; font-weight: 600; color: var(--green-700); background: var(--green-100); padding: .3rem .7rem; border-radius: 99px; }
.node {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px 16px; font-weight: 600;
  display: flex; flex-direction: column;
}
.node span { font-weight: 400; font-size: .82rem; color: var(--ink-faint); margin-top: 2px; }
.node--accent { background: var(--green-700); color: #fff; border-color: var(--green-700); }
.node--accent span { color: #c8e6d2; }
.node__arrow { text-align: center; color: var(--herb); font-weight: 700; padding: 4px 0; }

.split__copy { display: flex; flex-direction: column; gap: 26px; }
.reason { padding-left: 20px; border-left: 3px solid var(--green-100); }
.reason h3 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; margin-bottom: .35rem; }
.reason p { color: var(--ink-soft); }

/* ---------- Traction (dark) ---------- */
.section--dark {
  background:
    radial-gradient(800px 400px at 80% 0%, rgba(58, 167, 102, .18), transparent 60%),
    var(--green-900);
  color: #fff;
}
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.metric {
  text-align: center;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
  padding: 36px 20px;
}
.metric__num {
  display: block;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.4rem, 5vw, 3.4rem); line-height: 1; color: #fff;
  margin-bottom: .6rem;
}
.metric__label { color: #b9cdbf; font-size: .95rem; }
.metrics__note {
  max-width: 760px; margin: 36px auto 0; text-align: center;
  color: #c8d6cd; font-size: 1.05rem;
}

/* ---------- Timeline ---------- */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.tl {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; box-shadow: var(--shadow-sm); position: relative;
}
.tl::before {
  content: ""; position: absolute; top: -9px; left: 26px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--green-500); border: 3px solid var(--cream-2);
}
.tl__when { font-size: .8rem; font-weight: 700; color: var(--green-600); text-transform: uppercase; letter-spacing: .05em; }
.tl h3 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; margin: .4rem 0; }
.tl p { font-size: .92rem; color: var(--ink-soft); }

/* ---------- Founder ---------- */
.founder {
  display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: center;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 24px; padding: 48px; box-shadow: var(--shadow-md);
}
.founder__media { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.founder__avatar {
  width: 120px; height: 120px; border-radius: 28px;
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 2.6rem; font-weight: 600; color: #fff;
  background: linear-gradient(140deg, var(--green-600), var(--green-900));
  box-shadow: var(--shadow-md);
}
.founder__name { display: block; font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; }
.founder__role { color: var(--ink-faint); font-size: .95rem; }
.founder__copy blockquote { display: flex; flex-direction: column; gap: 1rem; }
.founder__copy p { font-size: 1.1rem; color: var(--ink-soft); }
.founder__copy p:first-child { font-size: 1.2rem; color: var(--ink); font-weight: 500; }

/* ---------- Prototype / MVP simulation ---------- */
.title-soft { color: var(--ink-faint); font-weight: 400; }
.section--proto {
  background:
    radial-gradient(720px 360px at 50% 0%, rgba(111, 191, 115, .16), transparent 62%),
    var(--cream);
}
.proto {
  max-width: 760px; margin: 0 auto; text-align: center;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 24px; padding: 42px 36px; box-shadow: var(--shadow-md);
}
.proto__flow {
  list-style: none; display: flex; flex-wrap: wrap; justify-content: center;
  gap: 10px; margin-bottom: 30px;
}
.proto__flow li {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .9rem; font-weight: 600; color: var(--ink-soft);
  background: var(--cream); border: 1px solid var(--line);
  padding: 8px 14px; border-radius: 999px;
}
.proto__flow li span {
  display: grid; place-items: center; width: 20px; height: 20px; flex: none;
  font-size: .72rem; color: #fff; background: var(--green-700); border-radius: 50%;
}
.proto__note { margin-top: 16px; font-size: .85rem; color: var(--ink-faint); }

/* ---------- CTA ---------- */
.cta {
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(111, 191, 115, .2), transparent 60%),
    var(--cream-2);
  padding: 80px 0;
  text-align: center;
  border-top: 1px solid var(--line);
}
.cta h2 { font-family: var(--font-display); font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 600; letter-spacing: -.02em; margin-bottom: .8rem; }
.cta p { color: var(--ink-soft); font-size: 1.1rem; max-width: 46ch; margin: 0 auto 2rem; }

/* ---------- Footer ---------- */
.footer { background: var(--green-900); color: #cfe0d4; padding: 54px 0 40px; }
.footer__inner { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.footer .brand__name { color: #fff; }
.footer__brand p { margin-top: .7rem; color: #9fb6a6; max-width: 32ch; }
.footer__meta { display: flex; flex-direction: column; gap: .35rem; text-align: right; font-size: .92rem; color: #9fb6a6; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .hero__visual { order: -1; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .cards--3 { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .flow__step:not(:last-child)::after { display: none; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .founder { grid-template-columns: 1fr; gap: 30px; padding: 34px; }
  .founder__media { flex-direction: row; align-items: center; }
}

@media (max-width: 640px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  .nav.is-open .nav__links {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 70px; left: 0; right: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: 8px 24px 16px;
  }
  .nav.is-open .nav__links a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .hero { padding: 48px 0 64px; }
  .section { padding: 64px 0; }
  .cards--3, .flow, .metrics, .timeline { grid-template-columns: 1fr; }
  .hero__proof { gap: 1.4rem; }
  .footer__inner { flex-direction: column; }
  .footer__meta { text-align: left; }
  .phone { width: 270px; }
  .floatcard--1 { left: 0; }
  .floatcard--2 { right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
