/* ============================================================
   JavaMobileFT homepage — composition pass.
   Shapes over rectangles: arched cafe-window photos, framed
   screens with a warm halo for depth, varied sizes, and copy
   layered over the screens (not side-by-side columns, not plain
   boxes). Copy and headings are unchanged.
   ============================================================ */

/* ---- Daily: tasks across the top, one wide framed screen ---- */
.home-daily .split-copy { max-width: none; }
.home-daily .lead,
.home-events .lead { display: grid; gap: 16px 26px; }
.home-daily .home-task + .home-task,
.home-events .home-task + .home-task { margin-top: 0; }
.home-daily .today-preview-stage { aspect-ratio: 16 / 10; background: transparent; }
.home-daily .today-preview-stage img { object-fit: contain; }
.home-daily .split-media { max-width: 860px; margin-inline: auto; }

/* ---- Shapes: arched cafe-window photos, staggered sizes ---- */
.home-food-studies { display: grid; gap: clamp(26px, 5vw, 52px); margin-block: 40px; }
.home-food-study { min-width: 0; }
.home-food-study .card-media,
.home-food-study .food-photos {
  aspect-ratio: 4 / 5;
  border-radius: 50% 50% var(--radius) var(--radius) / 40% 40% var(--radius) var(--radius);
  overflow: clip;
  box-shadow: 0 22px 52px rgba(10, 5, 1, .42);
}
.home-food-study .card-media img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.home-food-study .food-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: minmax(0, 3fr) minmax(0, 2fr);
  gap: 4px;
}
.home-food-study .food-photos img { min-width: 0; min-height: 0; }
.home-food-study .food-photos img:first-child { grid-column: 1 / -1; }
.home-food-study .card-body { max-width: 30rem; padding-top: 16px; text-align: center; margin-inline: auto; }
.home-food-study h3 { margin-bottom: 8px; }
.home-demo-label { display: inline-block; margin-top: 8px; color: var(--ink-mute); font-size: 16px; }

/* Editorial link treatments */
.home-editorial .browse-link { text-decoration: underline; text-underline-offset: .24em; }
.home-editorial :is(.split-copy, .section-head) .links:has(> .editorial-note) { gap: 8px 20px; }
.home-editorial .home-resource-link { display: flex; align-items: baseline; }
.home-editorial .home-resource-link .home-task-icon { align-self: center; flex: 0 0 24px; }

/* Reading widths */
.home-setup .split-copy { max-width: 31rem; }
.home-events .split-copy { max-width: 31rem; }
.home-marketing-stack { max-width: 960px; margin-inline: auto; }
.home-marketing-stack .split-copy { max-width: 44rem; margin-inline: auto; text-align: center; }
.home-start .split-copy { max-width: 40rem; }
.home-start .links { display: grid; justify-items: start; }
.home-start .browse-link { margin-top: 10px; }

/* ---- Warm halo behind every framed screen: organic shape + depth ---- */
.home-daily .split-media,
.home-setup .split-media,
.home-recipes .split-media,
.home-events .split-media,
.home-marketing-stack .split-media { position: relative; isolation: isolate; }
.home-daily .split-media::before,
.home-setup .split-media::before,
.home-recipes .split-media::before,
.home-events .split-media::before,
.home-marketing-stack .split-media::before {
  content: ""; position: absolute; z-index: -1; inset: -12% -16%; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--gold) 17%, transparent), transparent 70%);
}
.home-daily .split-media::before {
  background: radial-gradient(closest-side, color-mix(in srgb, var(--teal-2) 26%, transparent), transparent 72%);
}
.home-recipes .split-media::before {
  background: radial-gradient(closest-side, color-mix(in srgb, var(--rust) 20%, transparent), transparent 70%);
}

/* Pricing: "All of this for" pays off with the price, centered; fine print below. */
.plan-overview { max-width: 620px; margin-inline: auto; }
.plan-overview .price-card { margin-top: 8px; }
.plan-overview .chips { justify-content: center; }
.plan-overview .inclist { text-align: left; max-width: 30rem; margin-inline: auto; }
.plan-overview .home-copy-bullet { justify-content: center; margin-top: 24px; }
.plan-overview .actions { justify-content: center; margin-top: 14px; }

/* ---- Layered compositions: copy over the screen, each one different ---- */
@media (min-width: 820px) {
  /* Setup: big screen pushed right, copy layered over its left edge. */
  .home-setup { display: grid; grid-template-columns: 1fr; align-items: center; }
  .home-setup .split-media { grid-area: 1 / 1; width: 74%; justify-self: end; }
  .home-setup .split-copy {
    grid-area: 1 / 1; z-index: 2; justify-self: start; align-self: center;
    padding: 28px 38px 28px 0;
    background: linear-gradient(90deg, var(--bg) 52%, color-mix(in srgb, var(--bg) 55%, transparent) 78%, transparent);
  }

  /* Recipes: mirrored — screen left, copy layered over its right edge. */
  .home-recipes { display: grid; grid-template-columns: 1fr; align-items: center; }
  .home-recipes .split-media { grid-area: 1 / 1; width: 74%; justify-self: start; }
  .home-recipes .split-copy {
    grid-area: 1 / 1; z-index: 2; justify-self: end; align-self: center; text-align: right;
    padding: 28px 0 28px 38px;
    background: linear-gradient(270deg, var(--bg) 52%, color-mix(in srgb, var(--bg) 55%, transparent) 78%, transparent);
  }
  .home-recipes .split-copy .home-task-heading { justify-content: flex-end; }

  /* Events: smaller screen high-right, copy layered lower-left. */
  .home-events { display: grid; grid-template-columns: 1fr; align-items: center; }
  .home-events .split-media { grid-area: 1 / 1; width: 68%; justify-self: end; }
  .home-events .split-copy {
    grid-area: 1 / 1; z-index: 2; justify-self: start; align-self: center;
    padding: 28px 38px 28px 0;
    background: linear-gradient(90deg, var(--bg) 50%, color-mix(in srgb, var(--bg) 55%, transparent) 80%, transparent);
  }
  .home-events .lead { grid-template-columns: minmax(0, 1fr); }

  /* Marketing: centered intro, wide screen below it with a halo. */
  .home-marketing-stack { display: block; }
  .home-marketing-stack .split-media { max-width: 820px; margin: 30px auto 0; }

  /* Questions stay as a calm two-column read (not screens). */
  .home-start { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(40px, 5vw, 72px); align-items: start; }
  .home-start .split-copy + .split-copy { margin-top: 0; }
}

/* ---- Four arches: two staggered rows of two on tablet and up ---- */
@media (min-width: 640px) {
  .home-food-studies { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 6vw, 72px); }
  .home-food-study:nth-child(2n) { margin-top: 52px; }
  .home-daily .lead,
  .home-events .lead { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 960px) {
  .home-daily .lead { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
