/* ---------- /food-journal-app (landing page) ----------
 * Page-only layer on top of /styles.css. Kept in its own file on purpose:
 * firebase.json serves *.css with `max-age=31536000, immutable`, so new
 * classes appended to styles.css would be missing for anyone holding the
 * cached copy. A new URL has no stale copy anywhere.
 * Only tokens from styles.css (:root) are used — no new colours.
 */

/* Hero: text + phone side by side (homepage hero is centred text only). */
.fj-hero { padding: 56px 0 40px; }
.fj-hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 48px; align-items: center;
}
.fj-hero .hero-eyebrow { margin-bottom: 18px; }
.fj-hero h1 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(40px, 6.2vw, 72px);
  line-height: 1.03; letter-spacing: -0.035em;
  margin: 0; max-width: 13ch;
  color: var(--clay-deep);
  text-wrap: balance;
}
.fj-hero .hero-sub { margin: 24px 0 0; max-width: 44ch; }
.fj-hero .hero-cta-row { justify-content: flex-start; }
.fj-hero-visual { display: flex; justify-content: center; }

/* Screenshot card — same look as the homepage .phone, without its
 * nth-child offsets (those depend on sibling position in the scroller). */
.fj-phone {
  width: 280px; max-width: 100%;
  aspect-ratio: 800 / 1740;
  border-radius: 40px; /* frameless, same as homepage .phone */
  background: var(--surface);
  box-shadow:
    0 30px 60px -22px rgba(74,46,28,.32),
    0 14px 28px -12px rgba(74,46,28,.22);
  flex: 0 0 auto;
}
.fj-phone.lg { width: 320px; }
.fj-phone .phone-screen {
  width: 100%; height: 100%;
  border-radius: 40px; overflow: hidden;
  background: var(--surface);
}
.fj-phone img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center; display: block;
}
.fj-phones { display: flex; justify-content: center; align-items: flex-start; gap: 24px; }
.fj-phones .fj-phone:nth-child(2) { margin-top: 48px; }

/* Generic section rhythm */
.fj-section { padding: 88px 0; }
.fj-section h2 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(30px, 4.2vw, 46px);
  line-height: 1.08; letter-spacing: -0.028em;
  color: var(--clay-deep);
  margin: 0 0 20px;
  text-wrap: balance;
}
.fj-section p {
  font-size: clamp(15.5px, 1.5vw, 17px);
  line-height: 1.72; color: var(--ink);
  margin: 0 0 16px; text-wrap: pretty;
}
.fj-section p:last-child { margin-bottom: 0; }
.fj-section p.aside { color: var(--ink-3); }

/* Definition block (the answer must stay plain, visible text) */
.fj-define { max-width: 680px; margin: 0 auto; text-align: center; }

/* Text + visual split, alternating */
.fj-split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
}
.fj-split.flip .fj-split-text { order: 2; }
.fj-split-text { max-width: 480px; }
.fj-split.flip .fj-split-text { justify-self: end; }

/* Feature points */
.fj-points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.fj-points li {
  background: var(--surface);
  border-radius: 18px; padding: 18px 20px;
}
.fj-points h3, .fj-steps h3 {
  font-family: var(--display); font-weight: 600;
  font-size: 18px; line-height: 1.3; letter-spacing: -0.015em;
  color: var(--ink); margin: 0 0 4px;
}
.fj-points p, .fj-steps p { font-size: 14.5px; line-height: 1.6; color: var(--ink-3); margin: 0; }

/* Personal menu — the big one */
.fj-menu { text-align: center; }
.fj-menu-head { max-width: 640px; margin: 0 auto 48px; }
.fj-menu-foot { max-width: 560px; margin: 48px auto 0; }
.fj-menu-foot p { font-family: var(--display); font-weight: 500; font-size: clamp(18px, 2vw, 22px); line-height: 1.45; color: var(--clay-deep); letter-spacing: -0.01em; }
.fj-menu-foot p + p { font-family: var(--body); font-weight: 400; font-size: clamp(15.5px, 1.5vw, 17px); color: var(--ink); }

/* Handwritten-ish note chips for "Keep your own recipe" */
.fj-notes { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.fj-notes li {
  font-family: var(--display); font-size: 15px; font-weight: 500;
  color: var(--clay-deep);
  background: var(--bg-soft);
  padding: 8px 14px; border-radius: 999px;
}

/* Steps */
.fj-steps-head { text-align: center; margin-bottom: 40px; }
.fj-steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.fj-steps li { background: var(--surface); border-radius: 18px; padding: 24px 22px; }
.fj-steps .num {
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-3); display: block; margin-bottom: 14px;
}


/* FAQ reuses .faq / .faq-grid / .faq-card from styles.css (4 cards = 2×2). */

/* Closing heading is one sentence here (homepage uses two .line spans) */
.fj-closing h2 { max-width: 16ch; }

@media (max-width: 980px) {
  .fj-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .fj-hero { padding: 40px 0 24px; text-align: center; }
  .fj-hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .fj-hero h1 { margin: 0 auto; }
  .fj-hero .hero-sub { margin: 22px auto 0; }
  .fj-hero .hero-cta-row { justify-content: center; }
  .fj-section { padding: 64px 0; }
  .fj-split { grid-template-columns: 1fr; gap: 44px; }
  .fj-split.flip .fj-split-text { order: 0; justify-self: start; }
  .fj-split-text { max-width: none; }
  .fj-phone { width: 250px; }
  .fj-phone.lg { width: 280px; }
  .fj-phones { gap: 14px; }
  .fj-phones .fj-phone { width: calc(50% - 7px); max-width: 220px; }
  .fj-phones .fj-phone:nth-child(2) { margin-top: 32px; }
}
@media (max-width: 560px) {
  .fj-steps { grid-template-columns: 1fr; }
}
