/* ==========================================================================
   Mini Diet — landing page stylesheet
   Shared by index.html and privacy-policy.html.
   Design source: docs/design/Landing Page-mockup.png (cozy, pastel, warm).
   Plain CSS, no build step — deployable as-is to any static host.
   ========================================================================== */

/* ---- Design tokens ------------------------------------------------------ */
:root {
  /* Warm cream / green palette lifted from the mockup & app theme */
  --cream: #f8f2e2;          /* hero + page background */
  --cream-card: #fffdf7;     /* cards (QR box, phone screens) */
  --green-soft: #dde9c9;     /* features section background */
  --green-deep: #4f7d34;     /* section headings / accents */
  --brown-ink: #55402c;      /* headlines */
  --brown-body: #6f5f4d;     /* body text */
  --brown-line: #e5dbc4;     /* subtle borders */
  --badge-dark: #2f2a26;     /* Google Play badge */
  --phone-frame: #2f2a26;    /* phone bezel */

  --font-display: "Baloo 2", "Comic Sans MS", cursive; /* rounded, chunky headings */
  --font-body: "Nunito", "Segoe UI", sans-serif;

  --radius-lg: 24px;
  --radius-md: 16px;
  --content-width: 1080px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--brown-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* height:auto keeps the intrinsic aspect ratio when max-width shrinks an image
   that has explicit width/height attributes (kept for layout-shift prevention) */
img { max-width: 100%; height: auto; display: block; }

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

.container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Header -------------------------------------------------------------- */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 0;
}

.site-header .logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--brown-ink);
  text-decoration: none;
}

.site-header .domain {
  font-weight: 700;
  color: var(--brown-ink);
  text-decoration: none;
  font-size: 0.95rem;
}

/* ---- Hero ---------------------------------------------------------------- */
.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 40px 0 96px;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.15;
  color: var(--brown-ink);
  margin-bottom: 24px;
}

.hero .tagline {
  font-size: 1.2rem;
  max-width: 34rem;
  margin-bottom: 40px;
}

/* Download row: QR card + Play badge side by side, as in the mockup */
.download-row {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.qr-card {
  background: var(--cream-card);
  border: 1px solid var(--brown-line);
  border-radius: var(--radius-md);
  padding: 14px 14px 10px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(85, 64, 44, 0.08);
}

.qr-card img { width: 140px; height: 140px; margin: 0 auto; }

.qr-card .qr-caption {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brown-ink);
  margin-top: 6px;
}

/* CSS-drawn Play badge (placeholder until the listing is live — swap for
   Google's official badge asset once the app is published). */
.play-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--badge-dark);
  color: #fff;
  border-radius: 12px;
  padding: 10px 22px 10px 16px;
  text-decoration: none;
  opacity: 0.9;
  cursor: default;
}

.play-badge svg { width: 30px; height: 30px; }

.play-badge .badge-text { line-height: 1.2; text-align: left; }
.play-badge .badge-text small { display: block; font-size: 0.65rem; letter-spacing: 0.05em; }
.play-badge .badge-text strong { font-size: 1.15rem; font-weight: 600; }

.coming-soon {
  font-size: 0.9rem;
  color: var(--green-deep);
  font-weight: 700;
  margin-top: 10px;
}

/* ---- Phone frames -------------------------------------------------------- */
.phone {
  background: var(--phone-frame);
  border-radius: 36px;
  padding: 12px;
  box-shadow: 0 18px 40px rgba(85, 64, 44, 0.18);
  max-width: 300px;
}

.phone img { border-radius: 26px; }

.hero .phone {
  justify-self: center;
  transform: rotate(4deg);   /* playful tilt from the mockup */
}

/* ---- Features section ---------------------------------------------------- */
.features {
  background: var(--green-soft);
  padding: 72px 0 88px;
}

.features h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  color: var(--green-deep);
  text-align: center;
  margin-bottom: 10px;
}

.features .section-sub {
  text-align: center;
  margin-bottom: 56px;
  font-size: 1.05rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
}

.feature { text-align: center; }

.feature .phone {
  margin: 0 auto 22px;
  max-width: 230px;
  border-radius: 28px;
  padding: 9px;
}

.feature .phone img { border-radius: 20px; }

.feature h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--brown-ink);
  margin-bottom: 8px;
}

.feature p { font-size: 0.95rem; }

/* ---- Footer -------------------------------------------------------------- */
.site-footer {
  padding: 32px 0;
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.9rem;
}

.site-footer a { font-weight: 700; }

/* ---- Privacy policy page -------------------------------------------------- */
.policy {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 24px 80px;
}

.policy h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.2rem;
  color: var(--brown-ink);
  margin-bottom: 8px;
}

.policy .policy-meta {
  font-size: 0.9rem;
  margin-bottom: 32px;
}

.policy h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--brown-ink);
  margin: 36px 0 12px;
}

.policy p, .policy ul { margin-bottom: 14px; }

.policy ul { padding-left: 24px; }

.policy li { margin-bottom: 6px; }

.policy .highlight-card {
  background: var(--green-soft);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 20px 0 28px;
  font-size: 1.05rem;
}

/* ---- Responsive ----------------------------------------------------------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-bottom: 64px; }
  .hero .phone { margin-top: 16px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
  .feature-grid { grid-template-columns: 1fr; }
  .site-header { padding: 20px 0; }
}
