/* ── DF-2026 homepage refresh ─────────────────────────────────────────────
   A calmer, clearer landing surface: one strong message, a real live-price
   proof point, and consistent warm-paper / evergreen surfaces. All colors,
   type, and motion resolve through the existing design tokens. */
.lp4-shell {
  --lp4-card-radius: 1.25rem;
}

.lp4-shell .lp-header {
  background: color-mix(in oklab, var(--df-bg-page), transparent 5%);
  border-bottom-color: color-mix(in oklab, var(--df-border-subtle), transparent 18%);
  box-shadow: 0 1px 0 color-mix(in oklab, var(--df-text-primary), transparent 96%);
}

.lp4-shell .lp-header__inner {
  min-height: 4.5rem;
  max-width: var(--df-content-ultra);
}

.lp4-shell .lp4-hero {
  border-bottom: 0;
  background: var(--df-wash-paper);
}

.lp4-shell .lp4-hero__inner {
  max-width: var(--df-content-ultra);
  padding: clamp(2.5rem, 5.5vw, 5.5rem) clamp(1.25rem, 5vw, 4.5rem)
    clamp(3rem, 6vw, 5.75rem);
  gap: clamp(2rem, 5vw, 5rem);
}

@media (min-width: 960px) {
  .lp4-shell .lp4-hero__inner {
    grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  }
}

.lp4-shell .lp4-hero__title {
  max-width: 15ch;
  margin-bottom: var(--df-space-3);
  font-size: clamp(2.8rem, 4.5vw, 4.25rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.lp4-shell .lp4-hero__title .lp2-mark {
  border-radius: 0.12em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  padding-inline: 0.08em;
}

.lp4-shell .lp4-hero__trust-strip {
  margin: 0 0 var(--df-space-3);
  font-size: var(--df-text-xs);
  letter-spacing: 0.025em;
  color: var(--df-text-muted);
}

.lp4-shell .lp4-hero__sub {
  max-width: 43ch;
  margin-bottom: var(--df-space-4);
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
}

.lp4-shell .lp4-hero__farmer-stat {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  margin-bottom: var(--df-space-4);
}

.lp4-shell .lp4-hero__farmer-stat-value {
  color: var(--df-emerald-600);
}

.lp4-shell .lp4-tiles {
  gap: var(--df-space-3);
  margin-block: var(--df-space-4) var(--df-space-3);
}

.lp4-shell .lp4-tile {
  border: 1px solid var(--df-border-subtle);
  border-radius: var(--lp4-card-radius);
  background: var(--df-bg-elevated);
  box-shadow: var(--df-shadow-1);
  transition: border-color var(--df-dur-fast) var(--df-ease-standard),
    box-shadow var(--df-dur-fast) var(--df-ease-standard);
}

.lp4-shell .lp4-tile:hover {
  border-color: color-mix(in oklab, var(--df-emerald-500), var(--df-border-subtle) 45%);
  box-shadow: var(--df-shadow-2);
}

.lp4-shell .lp4-hero__actions {
  gap: var(--df-space-3);
  margin-block: var(--df-space-4);
}

.lp4-shell .lp4-hero__cta, .lp4-shell .lp4-hero__cta-secondary {
  min-height: 3.25rem;
  border-radius: var(--df-radius-md);
}

.lp4-shell .lp4-hero__credstrip {
  margin-top: var(--df-space-4);
  padding-top: var(--df-space-4);
  border-top: 1px solid var(--df-border-subtle);
}

.lp4-shell .lp4-hero__side {
  align-self: stretch;
  justify-content: center;
}

.lp4-shell .lp4-hero__photoframe {
  min-height: 26rem;
  aspect-ratio: 1.08 / 1;
  border-radius: 1.6rem 1.6rem 1.6rem 0.35rem;
  box-shadow: var(--df-shadow-3);
  overflow: hidden;
}

.lp4-shell .lp4-hero__photo {
  width: 100%;
  height: 100%;
  min-height: 26rem;
  object-fit: cover;
}

.lp4-shell .lp4-hero__side .lmw {
  width: min(88%, 31rem);
  align-self: flex-end;
  margin: -7.25rem 1.25rem 0 0;
  padding: var(--df-space-4);
  position: relative;
  z-index: 2;
  border: 1px solid color-mix(in oklab, var(--df-border-subtle), transparent 16%);
  border-radius: var(--lp4-card-radius);
  background: var(--df-bg-elevated);
  box-shadow: var(--df-shadow-3);
}

.lp4-shell .lp4-hero__copy .lmw {
  border: 1px solid var(--df-border-subtle);
  border-radius: var(--lp4-card-radius);
  background: var(--df-bg-elevated);
  box-shadow: var(--df-shadow-2);
}

.lp4-shell .lp4-buyer-strip {
  margin-top: var(--df-space-3);
  padding-top: var(--df-space-2);
}

.lp4-shell .lp4-buyer-strip__cta {
  border-radius: var(--df-radius-md);
}

.lp4-shell .lp4-reveal {
  scroll-margin-top: 5rem;
}

.lp4-shell .lp4-section-title {
  max-width: 24ch;
  letter-spacing: -0.02em;
}

.lp4-shell .lp4-crop, .lp4-shell .lp4-step, .lp4-shell .lp4-today__card {
  border-radius: var(--lp4-card-radius);
}

@media (max-width: 959px) {
  .lp4-shell .lp4-hero__photoframe, .lp4-shell .lp4-hero__photo {
    min-height: 0;
  }

  .lp4-shell .lp4-hero__photoframe {
    aspect-ratio: 1.35 / 1;
  }

  .lp4-shell .lp4-hero__side .lmw {
    width: min(92%, 34rem);
    margin-top: -4.5rem;
    margin-right: 1rem;
  }
}

@media (max-width: 767px) {
  .lp4-shell .lp4-hero__inner {
    padding: 2rem 1rem 2.75rem;
    gap: 1.25rem;
  }

  .lp4-shell .lp4-hero__title {
    max-width: 16ch;
    font-size: clamp(2.25rem, 9vw, 3.25rem);
    line-height: 1.2;
  }

  .lp4-shell .lp4-hero__sub {
    font-size: var(--df-text-base);
  }

  .lp4-shell .lp4-hero__side .lmw, .lp4-shell .lp4-hero__copy .lmw {
    width: 100%;
    max-width: none;
    margin: 0 0 var(--df-space-4);
  }

  .lp4-shell .lp4-hero__photoframe {
    aspect-ratio: 1.2 / 1;
    border-radius: 1.1rem 1.1rem 1.1rem 0.25rem;
  }

  .lp4-shell .lp4-hero__photo {
    min-height: 0;
  }

  .lp4-shell .lp4-tile {
    border-radius: 1rem;
  }

  .lp4-shell .lp4-hero__credstrip {
    padding-top: var(--df-space-3);
  }
}

@media (prefers-reduced-motion: reduce) {
  .lp4-shell .lp4-tile {
    transition: none;
  }
}

/* DF-2026 refinement after first desktop render: keep the promise to two lines
   and bring the live proof card into the opening viewport. */
@media (min-width: 960px) {
  .lp4-shell .lp4-hero__inner {
    grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
    align-items: start;
    gap: clamp(2.25rem, 4vw, 4rem);
    padding-top: clamp(2.25rem, 3.5vw, 3.5rem);
  }

  .lp4-shell .lp4-hero__title {
    max-width: 20ch;
    font-size: clamp(3rem, 4.05vw, 3.875rem);
  }

  .lp4-shell .lp4-hero__side {
    align-self: start;
    justify-content: flex-start;
  }

  .lp4-shell .lp4-hero__photoframe, .lp4-shell .lp4-hero__photo {
    min-height: 0;
  }

  .lp4-shell .lp4-hero__photoframe {
    aspect-ratio: 1.34 / 1;
  }

  .lp4-shell .lp4-hero__side .lmw {
    margin-top: -12rem;
  }
}

@media (min-width: 768px) and (max-width: 959px) {
  .lp4-shell .lp4-hero__photoframe {
    aspect-ratio: 1.55 / 1;
  }

  .lp4-shell .lp4-hero__side .lmw {
    margin-top: -8rem;
  }
}

/* Market-led homepage theme: keep live price, freshness and market comparison high contrast. */
.lp4-shell .lp4-hero__side .lmw,
.lp4-shell .lp4-hero__copy .lmw {
  color: #fff;
  background: var(--brand-evergreen, #173f2c);
  border-color: color-mix(in srgb, #fff 18%, transparent);
}
.lp4-shell .lp4-hero .lmw__crop {
  background: color-mix(in srgb, #fff 92%, var(--brand-evergreen, #173f2c));
  border-color: color-mix(in srgb, #fff 66%, transparent);
  color: var(--brand-evergreen, #173f2c);
}
.lp4-shell .lp4-hero .lmw__crop--active {
  background: #fff;
  border-color: #fff;
  color: var(--brand-evergreen, #173f2c);
}
.lp4-shell .lp4-hero .lmw__today,
.lp4-shell .lp4-hero .lmw__asof,
.lp4-shell .lp4-hero .lmw__per {
  color: color-mix(in srgb, #fff 82%, transparent);
}
.lp4-shell .lp4-hero .lmw__asof--stale { color: #ffe2a1; }
.lp4-shell .lp4-hero .lmw__price { color: #fff; }
.lp4-shell .lp4-hero .lmw__price--stale { color: #e3e8e4; }
.lp4-shell .lp4-hero .lmw__strip { border-top-color: color-mix(in srgb, #fff 22%, transparent); }
.lp4-shell .lp4-hero .lmw__strip-chip {
  background: color-mix(in srgb, #fff 12%, transparent);
  color: #fff;
}
.lp4-shell .lp4-hero .lmw__strip-chip--good { background: #dff4e4; color: #174b2c; }
.lp4-shell .lp4-hero .lmw__strip-chip--wait { background: #ffedc2; color: #694300; }
.lp4-shell .lp4-hero .lmw-others { border-top-color: color-mix(in srgb, #fff 24%, transparent); }
.lp4-shell .lp4-hero .lmw-others__title { color: #fff; }
.lp4-shell .lp4-hero .lmw-others__hint { color: color-mix(in srgb, #fff 82%, transparent); }
.lp4-shell .lp4-hero .lmw-others__row { background: color-mix(in srgb, #fff 11%, transparent); }
.lp4-shell .lp4-hero .lmw-others__row:first-child {
  background: #e3f2df;
  outline-color: #f0bd4b;
}
.lp4-shell .lp4-hero .lmw-others__market,
.lp4-shell .lp4-hero .lmw-others__price { color: #fff; }
.lp4-shell .lp4-hero .lmw-others__row:first-child .lmw-others__market,
.lp4-shell .lp4-hero .lmw-others__row:first-child .lmw-others__price,
.lp4-shell .lp4-hero .lmw-others__row:first-child .lmw-others__loc { color: #173f2c; }
.lp4-shell .lp4-hero .lmw-others__loc,
.lp4-shell .lp4-hero .lmw-others__variety { color: #e2e9e4; }
.lp4-shell .lp4-hero .lmw-others__row:first-child .lmw-others__variety { color: #536b56; }
@media (max-width: 767px) {
  .lp4-shell .lp4-hero__copy .lmw {
    border-radius: 1.15rem;
    padding: 1rem;
    box-shadow: 0 14px 32px rgba(19, 53, 37, 0.2);
  }
}

/* Price-first homepage layout. One responsive rule set replaces the old override stack. */
.lp4-shell .lp4-reference-hero{width:min(calc(100% - 2rem),1440px);margin:1rem auto 2rem;padding:0;display:flex;flex-direction:column;gap:1rem;background:transparent}
.lp4-shell .lp4-reference-visual{position:relative;display:grid;min-height:0;aspect-ratio:2.4/1;overflow:hidden;border-radius:1.25rem}
.lp4-shell .lp4-reference-photo{grid-area:1/1;position:relative;min-width:0;min-height:0;overflow:hidden;background:#e8e5d7}
.lp4-shell .lp4-reference-photo:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(250,248,240,.97),rgba(250,248,240,.85) 43%,rgba(250,248,240,.2) 75%,transparent);pointer-events:none}
.lp4-shell .lp4-reference-photo picture,.lp4-shell .lp4-reference-photo img,.lp4-shell .lp4-reference-photo .lp4-hero__photo{position:absolute;inset:0;width:100%;height:100%;min-height:0;object-fit:cover;border-radius:0}
.lp4-shell .lp4-reference-copy{grid-area:1/1;position:relative;z-index:1;align-self:center;width:50%;margin:0;padding:clamp(1rem,3vw,2.5rem)}
.lp4-shell .lp4-reference-copy .lp4-hero__title{max-width:11ch;margin-bottom:.6rem;color:#082c1a;font-size:clamp(2.2rem,4vw,3.75rem);line-height:1.04;letter-spacing:-.035em}
.lp4-shell .lp4-reference-copy .lp2-mark{background:none;color:inherit}
.lp4-shell .lp4-reference-copy .lp4-hero__sub,.lp4-shell .lp4-reference-copy .lp4-hero__en-subtitle{max-width:42ch;margin-bottom:.4rem;color:#42453f;font-size:clamp(.95rem,1.15vw,1.12rem);line-height:1.4}
.lp4-shell .lp4-reference-board{width:100%;margin:0;display:grid;grid-template-columns:minmax(0,1fr);gap:.85rem}
.lp4-shell .lp4-reference-board__market,.lp4-shell .lp4-reference-board__weather{min-width:0}
.lp4-shell .lp4-market-heading{display:flex;align-items:center;justify-content:space-between;margin:0 0 .6rem;padding:0 .15rem;color:#0d321d}
.lp4-shell .lp4-market-heading h2{margin:0;font:700 1.35rem/1.2 var(--df-font-display,Georgia,serif)}
.lp4-shell .lp4-market-heading p{margin:.2rem 0 0;color:#5b6359;font-size:.9rem}
.lp4-shell .lp4-reference-board__market .lmw{min-width:0;margin:0;display:grid;grid-template-columns:minmax(0,1fr);gap:.8rem;padding:1rem;border-radius:1.1rem;color:#fff;background:#173f2c;box-shadow:0 12px 28px rgba(19,53,37,.14)}
.lp4-shell .lp4-reference-board__market .lmw__picker{grid-column:1/-1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.45rem;margin:0;padding:0 0 .7rem;border-bottom:1px solid rgba(255,255,255,.2);overflow:visible}
.lp4-shell .lp4-reference-board__market .lmw__crop{width:100%;min-width:0;min-height:2.75rem;justify-content:flex-start;padding:.5rem .6rem;color:#fff;background:rgba(255,255,255,.08);white-space:normal;text-align:left;line-height:1.2}
.lp4-shell .lp4-reference-board__market .lmw__crop--active{color:#12301f;background:#e5f1db}
.lp4-shell .lp4-reference-board__market .lmw__crop:focus-visible{outline:3px solid #ffd980;outline-offset:2px}
.lp4-shell .lp4-reference-board__market .lmw__readout{text-align:left}
.lp4-shell .lp4-reference-board__market .lmw-others{grid-column:1/-1;grid-row:auto;border:0;border-top:1px solid rgba(255,255,255,.22);padding:.75rem 0 0}
.lp4-shell .lp4-reference-board__weather .lp4-tile--mandi{display:none}
.lp4-shell .lp4-reference-board__weather .lp4-tile--weather{min-height:0;box-shadow:none}
.lp4-shell .lp4-reference-board__verdict{min-width:0;padding:1rem;border-radius:1rem;background:#eff2e4}
.lp4-shell .lp4-reference-actions{width:100%;margin:0;display:flex;align-items:center;justify-content:space-between;gap:.75rem}
@media(min-width:1100px){
.lp4-shell .lp4-reference-hero{display:grid;grid-template-columns:minmax(300px,.78fr) minmax(0,1.22fr);grid-template-rows:auto auto auto;gap:.85rem 1rem}
.lp4-shell .lp4-reference-visual{grid-column:1;grid-row:1;aspect-ratio:1.22/1}
.lp4-shell .lp4-reference-board{display:contents}
.lp4-shell .lp4-reference-board__market{grid-column:2;grid-row:1/span 3}
.lp4-shell .lp4-reference-board__weather{grid-column:1;grid-row:2}
.lp4-shell .lp4-reference-board__verdict{grid-column:1;grid-row:3}
.lp4-shell .lp4-reference-board__market .lmw{height:100%;align-content:start}
.lp4-shell .lp4-reference-actions{grid-column:1/-1}
.lp4-shell .lp4-today--table-only{grid-template-columns:minmax(0,1.55fr) minmax(18rem,1fr)}
}
@media(min-width:768px) and (max-width:1099px){
.lp4-shell .lp4-reference-hero{width:min(calc(100% - 2rem),900px)}
.lp4-shell .lp4-reference-board{grid-template-columns:repeat(2,minmax(0,1fr))}
.lp4-shell .lp4-reference-board__market{grid-column:1/-1;order:0}
.lp4-shell .lp4-reference-board__weather{order:1}
.lp4-shell .lp4-reference-board__verdict{order:2}
}
@media(max-width:1099px){.lp4-shell .lp4-reference-visual{order:0}.lp4-shell .lp4-reference-board{order:1}.lp4-shell .lp4-reference-actions{order:2}}
@media(max-width:767px){
.lp4-shell .lp4-reference-hero{width:calc(100% - 1rem);margin:.5rem auto 1.25rem;gap:.75rem}
.lp4-shell .lp4-reference-board{gap:.7rem}
.lp4-shell .lp4-reference-board__market .lmw{padding:.85rem;gap:.7rem}
.lp4-shell .lp4-reference-board__market .lmw__picker{grid-template-columns:repeat(2,minmax(0,1fr));gap:.4rem}
.lp4-shell .lp4-reference-board__market .lmw__crop{min-height:2.8rem;padding:.5rem;font-size:.85rem}
.lp4-shell .lp4-reference-visual{display:flex;flex-direction:column;aspect-ratio:auto}
.lp4-shell .lp4-reference-copy{position:relative;inset:auto;order:0;width:100%;padding:1rem}
.lp4-shell .lp4-reference-copy .lp4-hero__title{max-width:15ch;font-size:clamp(2rem,8vw,2.7rem);line-height:1.08}
.lp4-shell .lp4-reference-copy .lp4-hero__sub{font-size:.98rem}
.lp4-shell .lp4-reference-photo{order:1;height:clamp(9rem,38vw,14rem);flex:none}
.lp4-shell .lp4-reference-photo:after{display:none}
.lp4-shell .lp4-reference-actions{flex-direction:column;align-items:stretch}
.lp4-shell .lp4-reference-actions .lp4-hero__actions{flex-wrap:wrap}
}
@media(prefers-reduced-motion:reduce){.lp4-shell .lp4-reference-board__market .lmw__crop{transition:none}}

.lp4-shell .lp4-reference-board__market .lmw__crop-name{min-width:0;white-space:normal;overflow-wrap:anywhere}
