/* MealSavor website: the same palette as the app (src/constants/theme.ts). */
:root {
  --bg: #ffffff;
  --text: #1b2420;
  --muted: #5c6670;
  --line: #eceef0;
  --soft: #f4f5f6;
  --green: #3f7d20;
  --button: #a6d86e;
  --on-button: #1e3a0f;
  --mint: #eaf6dc;
  --mint-text: #2f5a16;
  --cream: #fbf1e4;
  --cream-text: #7a4a12;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

a { color: var(--green); }

.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }

/* Header and footer */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 700; color: var(--text); text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav-links { display: flex; gap: 18px; font-size: 15px; }
.nav-links a { color: var(--muted); text-decoration: none; white-space: nowrap; }
.nav-links a:hover, .nav-links a[aria-current='page'] { color: var(--text); }
.nav-links a.nav-signin { color: var(--green); font-weight: 700; }

footer { border-top: 1px solid var(--line); margin-top: 56px; padding: 22px 0 32px; font-size: 14px; color: var(--muted); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.foot nav { display: flex; gap: 16px; }
.foot a { color: var(--muted); }
.fine { margin-top: 10px; font-size: 13px; }

/* Home */
.hero { background: var(--mint); border-radius: 24px; padding: 44px 36px; margin-top: 8px; }
.eyebrow { font-size: 14px; font-weight: 700; color: var(--mint-text); letter-spacing: 0.02em; margin: 0 0 10px; }
.hero h1 { font-size: 40px; line-height: 1.15; margin: 0 0 14px; max-width: 640px; }
.hero p.lead { font-size: 18px; color: var(--mint-text); margin: 0 0 24px; max-width: 640px; }
.buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-block; background: var(--button); color: var(--on-button); border-radius: 999px; padding: 12px 22px; font-weight: 700; text-decoration: none; }
.btn:hover { filter: brightness(0.96); }
.btn-outline { display: inline-block; border: 1.5px solid var(--green); color: var(--green); border-radius: 999px; padding: 11px 20px; font-weight: 700; text-decoration: none; }
.btn-outline:hover { background: rgba(63, 125, 32, 0.06); }
.coming { margin: 16px 0 0; font-size: 14px; color: var(--mint-text); }

/* Coming-soon home */
.launch { display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: center; background: var(--mint); border-radius: 24px; padding: 44px 40px; margin-top: 8px; }
.launch h1 { font-size: 42px; line-height: 1.12; margin: 0 0 6px; }
.launch-soon { font-size: 26px; font-weight: 700; color: var(--green); margin: 0 0 16px; }
.launch p.lead { font-size: 18px; color: var(--mint-text); margin: 0 0 24px; }
.stores { display: flex; flex-wrap: wrap; gap: 10px; }
.store-pill { display: inline-flex; flex-direction: column; background: var(--text); color: #fff; border-radius: 12px; padding: 8px 18px; font-size: 12px; line-height: 1.35; opacity: 0.88; }
.store-pill strong { font-size: 17px; }
.launch-blog { margin: 22px 0 0; font-size: 15px; color: var(--mint-text); }
.launch-video video { display: block; width: 100%; aspect-ratio: 9 / 16; border-radius: 28px; background: #111; border: 6px solid #111; }
@media (max-width: 760px) {
  .launch { grid-template-columns: 1fr; padding: 32px 22px; gap: 28px; }
  .launch h1 { font-size: 32px; }
  .launch-video { max-width: 280px; margin: 0 auto; width: 100%; }
}

h2.section { font-size: 26px; margin: 48px 0 18px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.step { background: var(--soft); border-radius: 18px; padding: 18px; }
.step .num { font-size: 13px; font-weight: 700; color: var(--green); letter-spacing: 0.06em; margin: 0 0 6px; }
.step h3 { font-size: 17px; margin: 0 0 4px; }
.step p { font-size: 15px; color: var(--muted); margin: 0; }
.soon { display: inline-block; background: var(--cream); color: var(--cream-text); border-radius: 999px; font-size: 12px; font-weight: 700; padding: 0 8px; margin-left: 4px; }

/* Policy and support pages */
.doc { max-width: 720px; }
.doc h1 { font-size: 34px; line-height: 1.2; margin: 12px 0 4px; }
.updated { color: var(--muted); font-size: 14px; margin: 0 0 20px; }
.summary { background: var(--cream); color: var(--cream-text); border-radius: 14px; padding: 16px 18px; margin: 0 0 8px; }
.summary p { margin: 0; }
.doc h2 { font-size: 21px; margin: 32px 0 8px; }
.doc h3 { font-size: 17px; margin: 20px 0 4px; }
.doc p, .doc li { font-size: 16px; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.card { background: var(--mint); border-radius: 16px; padding: 18px 20px; margin: 16px 0 8px; }
.card p { margin: 0 0 4px; color: var(--mint-text); }
.card a { font-size: 19px; font-weight: 700; }

@media (max-width: 640px) {
  .hero { padding: 30px 22px; border-radius: 20px; }
  .hero h1 { font-size: 30px; }
  .hero p.lead { font-size: 17px; }
  .doc h1 { font-size: 28px; }
  .nav-links { gap: 14px; font-size: 14px; }
  /* Privacy stays in the footer; four links don't fit beside the logo on a phone. */
  .nav-links a[href='/privacy'] { display: none; }
}
