/* DG-LHL-004-RUNTIME-01 — accepted LHL-004G→GC logged-in homepage hero, guest launch
   announcement and celebration modal. Shared by Portals 1, 4 and 8 (no portal selector).
   Values are ported from the accepted concept sources (lhl004g/src/hero-g.css, lhl004gc
   hero/modal). Every rule is scoped to the `lh-` component under the unified storefront.

   Layers (see views/partials/v3/home/member-hero.php):
     core    .lh-frame … (permanent)
     welcome .lh-pill-welcome, .lh-kit
     launch  .lh-sub, .lh-pill (sale), .lh-fx, .lh-announce, modal .lh-m-sale
   Launch graphics are absolutely positioned and reserve no space; the .lh-row holding
   subtitle + pill is only rendered when it has content, so removing a layer leaves no
   gap. Nothing here animates. */

body.v3-storefront[data-storefront="unified"] .lh-hero-sec {
  --lh-g900: #1f4a1b;
  --lh-on-green: rgba(233, 246, 226, 0.92);
  --lh-frame-dash:
    radial-gradient(46% 56% at 2% 104%, rgba(40, 192, 73, 0.34) 0%, transparent 60%),
    radial-gradient(50% 64% at 95% -12%, rgba(90, 177, 32, 0.32) 0%, transparent 62%),
    radial-gradient(120% 120% at 88% -10%, #49a02c 0%, #2f7a1f 46%, #1c4d14 100%);
  padding-top: 28px;
}

body.v3-storefront[data-storefront="unified"] .lh-hero-sec p,
body.v3-storefront[data-storefront="unified"] .lh-hero-sec h1,
body.v3-storefront[data-storefront="unified"] .lh-hero-sec dl,
body.v3-storefront[data-storefront="unified"] .lh-hero-sec dd {
  margin: 0;
}

body.v3-storefront[data-storefront="unified"] .lh-frame {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: var(--lh-frame-dash);
  color: var(--lh-on-green);
  box-shadow: inset 0 2px 0 var(--green-bright, #5ab120), var(--shadow-lg, 0 18px 50px rgba(27, 33, 29, 0.16));
  padding: 36px 40px 40px;
  /* the accepted concept sets no body line-height; the site body uses a taller one */
  line-height: normal;
}

/* head row: greeting left, action right */
body.v3-storefront[data-storefront="unified"] .lh-head {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
}

/* DG-FULL-RECON-VISUAL-POLISH-04: 14px rhythm; the .lh-line sentence is no longer rendered. */
body.v3-storefront[data-storefront="unified"] .lh-copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

body.v3-storefront[data-storefront="unified"] .lh-who {
  display: flex;
  align-items: center;
  gap: 16px;
}

body.v3-storefront[data-storefront="unified"] .lh-avatar {
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #8fe05a, var(--green-dark, #1f6a1a));
  color: #06210a;
  font-weight: 800;
  font-size: 23px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

body.v3-storefront[data-storefront="unified"] .lh-hero-sec .lh-h1 {
  font-size: 46px;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: #fff;
}

body.v3-storefront[data-storefront="unified"] .lh-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

/* launch subtitle */
body.v3-storefront[data-storefront="unified"] .lh-sub {
  font-size: 19px;
  font-weight: 700;
  color: #dff3d3;
  letter-spacing: -0.005em;
}

/* launch sale pill (links to the full sale banner below) + welcome pill */
body.v3-storefront[data-storefront="unified"] .lh-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(234, 247, 225, 0.35);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  white-space: nowrap;
  text-decoration: none;
}

body.v3-storefront[data-storefront="unified"] .lh-pill b {
  padding: 3px 8px;
  border-radius: 999px;
  background: #f6c453;
  color: #3a2a00;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

body.v3-storefront[data-storefront="unified"] .lh-pill i {
  font-style: normal;
  opacity: 0.75;
}

body.v3-storefront[data-storefront="unified"] a.lh-pill:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

body.v3-storefront[data-storefront="unified"] .lh-pill-welcome b {
  background: #eaf7e1;
  color: var(--lh-g900);
}

/* primary action */
body.v3-storefront[data-storefront="unified"] .lh-shop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 15px 26px;
  border-radius: 999px;
  background: var(--berry, #8e1566);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(60, 8, 40, 0.35);
}

body.v3-storefront[data-storefront="unified"] .lh-shop::after {
  content: "→";
}

body.v3-storefront[data-storefront="unified"] .lh-shop:hover {
  background: var(--berry-dark, #6b0f4d);
  color: #fff;
}

body.v3-storefront[data-storefront="unified"] .lh-shop:focus-visible,
body.v3-storefront[data-storefront="unified"] .lh-tlink:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

body.v3-storefront[data-storefront="unified"] .lh-act {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

/* text links */
body.v3-storefront[data-storefront="unified"] .lh-tlink {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  align-self: flex-start;
  margin-top: auto;
  padding: 6px 0 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

body.v3-storefront[data-storefront="unified"] .lh-tlink span {
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}

body.v3-storefront[data-storefront="unified"] .lh-tlink::after {
  content: "→";
}

body.v3-storefront[data-storefront="unified"] .lh-on-light {
  color: var(--berry, #8e1566);
}

body.v3-storefront[data-storefront="unified"] .lh-on-dark {
  color: #fff;
}

body.v3-storefront[data-storefront="unified"] .lh-on-dark span {
  text-decoration-color: rgba(255, 255, 255, 0.6);
}

/* celebration graphics: decorative, absolutely positioned, reserve no space */
body.v3-storefront[data-storefront="unified"] .lh-fx {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  pointer-events: none;
}

body.v3-storefront[data-storefront="unified"] .lh-fx svg {
  display: block;
}

/* The accepted graphic sizes were proven at 1440 and 390. Between the two
   composition breakpoints the upper-right graphic is drawn smaller so it can
   never touch the greeting, subtitle or pill (launch layer only; no layout). */
@media (min-width: 721px) and (max-width: 1023px) {
  body.v3-storefront[data-storefront="unified"] .lh-fx .lh-fx-svg {
    width: 200px;
    height: 77px;
  }
}

@media (max-width: 360px) {
  /* extra class: must outrank the later <=720px graphic size */
  body.v3-storefront[data-storefront="unified"] .lh-hero-sec .lh-fx .lh-fx-svg {
    width: 104px;
    height: 40px;
  }
}

/* existing customer tiles */
body.v3-storefront[data-storefront="unified"] .lh-tiles {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 16px;
  margin-top: 26px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.v3-storefront[data-storefront="unified"] .lh-tiles[data-cells="1"] {
  grid-template-columns: minmax(0, 1fr);
  max-width: 560px;
}

body.v3-storefront[data-storefront="unified"] .lh-tile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 22px;
  border-radius: 18px;
  min-height: 150px;
  min-width: 0;
  background: radial-gradient(90% 130% at 92% 8%, rgba(154, 219, 124, 0.16) 0%, rgba(154, 219, 124, 0) 62%), rgba(10, 36, 14, 0.3);
  border: 1px solid rgba(168, 226, 142, 0.44);
  color: var(--lh-on-green);
}

body.v3-storefront[data-storefront="unified"] .lh-lbl {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #bfe6a6;
}

body.v3-storefront[data-storefront="unified"] .lh-tile.is-primary {
  background: linear-gradient(180deg, #fbfdf8 0%, #eef6e6 100%);
  border-color: rgba(31, 74, 27, 0.14);
  color: var(--lh-g900);
}

body.v3-storefront[data-storefront="unified"] .lh-tile.is-primary .lh-lbl {
  color: var(--green-dark, #1f6a1a);
}

body.v3-storefront[data-storefront="unified"] .lh-val {
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}

body.v3-storefront[data-storefront="unified"] .lh-val small {
  font-size: 14px;
  font-weight: 700;
  margin-left: 6px;
  color: #2c4a2a;
  letter-spacing: 0;
}

body.v3-storefront[data-storefront="unified"] .lh-chip {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--lh-g900);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.2;
}

body.v3-storefront[data-storefront="unified"] .lh-val-sm {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
}

body.v3-storefront[data-storefront="unified"] .lh-val-sm:hover {
  text-decoration: underline;
}

body.v3-storefront[data-storefront="unified"] .lh-meta {
  display: flex;
  gap: 22px;
  font-size: 13px;
}

body.v3-storefront[data-storefront="unified"] .lh-meta dt {
  display: block;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #bfe6a6;
  font-weight: 800;
}

body.v3-storefront[data-storefront="unified"] .lh-status {
  font-size: 12.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

body.v3-storefront[data-storefront="unified"] .lh-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8fe05a;
}

/* new customer: 2D three-step path */
body.v3-storefront[data-storefront="unified"] .lh-path {
  position: relative;
  z-index: 2;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 0.85fr 1.3fr 1fr;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, #fbfdf8 0%, #eef6e6 100%);
  border: 1px solid rgba(31, 74, 27, 0.14);
  color: var(--lh-g900);
}

body.v3-storefront[data-storefront="unified"] .lh-step {
  position: relative;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

body.v3-storefront[data-storefront="unified"] .lh-step + .lh-step {
  border-left: 1px solid rgba(31, 74, 27, 0.12);
}

body.v3-storefront[data-storefront="unified"] .lh-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 800;
  border: 2px solid rgba(31, 74, 27, 0.3);
  color: var(--lh-g900);
}

body.v3-storefront[data-storefront="unified"] .lh-step.is-done .lh-num {
  background: var(--green, #2f8f27);
  border-color: var(--green, #2f8f27);
  color: #fff;
}

body.v3-storefront[data-storefront="unified"] .lh-step.is-now {
  background: #fff;
  box-shadow: inset 0 3px 0 var(--berry, #8e1566);
}

body.v3-storefront[data-storefront="unified"] .lh-step.is-now .lh-num {
  background: var(--berry, #8e1566);
  border-color: var(--berry, #8e1566);
  color: #fff;
}

body.v3-storefront[data-storefront="unified"] .lh-st {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--green-dark, #1f6a1a);
}

body.v3-storefront[data-storefront="unified"] .lh-step.is-now .lh-st {
  color: var(--berry, #8e1566);
}

body.v3-storefront[data-storefront="unified"] .lh-sh {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
}

body.v3-storefront[data-storefront="unified"] .lh-sn {
  font-size: 13.5px;
  line-height: 1.5;
  color: #2c4a2a;
}

body.v3-storefront[data-storefront="unified"] .lh-kit strong {
  font-weight: 800;
  color: var(--berry, #8e1566);
}

/* DG-LHL-004-RUNTIME-01C — the shared physical Starter Kit artwork next to the promise:
   contained (never cropped or stretched), framed, subordinate to the Shop products CTA. */
body.v3-storefront[data-storefront="unified"] .lh-kit-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

body.v3-storefront[data-storefront="unified"] .lh-kit-row .lh-kit {
  flex: 1 1 auto;
  min-width: 0;
}

body.v3-storefront[data-storefront="unified"] .lh-kit-img {
  flex: none;
  display: block;
  width: 72px;
  height: 72px;
  padding: 4px;
  border-radius: 12px;
  border: 1px solid rgba(31, 74, 27, 0.12);
  background: #fff;
  object-fit: contain;
}

body.v3-storefront[data-storefront="unified"] .lh-step.is-done .lh-sh {
  color: #3b5a37;
}

body.v3-storefront[data-storefront="unified"] .lh-step.is-done > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

body.v3-storefront[data-storefront="unified"] .lh-step .lh-shop {
  align-self: flex-start;
  margin-top: 4px;
}

body.v3-storefront[data-storefront="unified"] .lh-help {
  position: relative;
  z-index: 2;
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
}

body.v3-storefront[data-storefront="unified"] .lh-help .lh-tlink {
  margin-top: 0;
  padding-top: 0;
  min-height: 24px;
}

body.v3-storefront[data-storefront="unified"] .lh-m-only {
  display: none;
}

/* mobile: the accepted B/D compositions */
@media (max-width: 720px) {
  body.v3-storefront[data-storefront="unified"] .lh-hero-sec {
    padding-top: 16px;
  }

  body.v3-storefront[data-storefront="unified"] .lh-frame {
    padding: 20px 18px;
    border-radius: 20px;
  }

  body.v3-storefront[data-storefront="unified"] .lh-head {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  body.v3-storefront[data-storefront="unified"] .lh-who {
    gap: 12px;
  }

  body.v3-storefront[data-storefront="unified"] .lh-avatar {
    width: 40px;
    height: 40px;
    font-size: 17px;
  }

  body.v3-storefront[data-storefront="unified"] .lh-hero-sec .lh-h1 {
    font-size: 30px;
  }

  body.v3-storefront[data-storefront="unified"] .lh-sub {
    font-size: 15.5px;
  }

  body.v3-storefront[data-storefront="unified"] .lh-pill {
    font-size: 12px;
    padding: 4px 10px 4px 5px;
  }

  body.v3-storefront[data-storefront="unified"] .lh-pill b {
    font-size: 11.5px;
  }

  body.v3-storefront[data-storefront="unified"] .lh-shop {
    padding: 14px 20px;
  }

  body.v3-storefront[data-storefront="unified"] .lh-d-only,
  body.v3-storefront[data-storefront="unified"] .lh-m-hide {
    display: none !important;
  }

  body.v3-storefront[data-storefront="unified"] .lh-m-only {
    display: block;
  }

  body.v3-storefront[data-storefront="unified"] .lh-m-line {
    font-size: 12.5px;
    line-height: 1.35;
  }

  body.v3-storefront[data-storefront="unified"] .lh-tile.is-primary .lh-m-line {
    color: #2c4a2a;
  }

  body.v3-storefront[data-storefront="unified"] .lh-mobile-cta {
    position: relative;
    z-index: 2;
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  body.v3-storefront[data-storefront="unified"] .lh-mobile-cta .lh-shop {
    width: 100%;
  }

  body.v3-storefront[data-storefront="unified"] .lh-mobile-cta .lh-tlink {
    align-self: center;
    margin-top: 0;
    min-height: 32px;
  }

  body.v3-storefront[data-storefront="unified"] .lh-fx .lh-fx-svg {
    width: 130px;
    height: 50px;
  }

  body.v3-storefront[data-storefront="unified"] .lh-tiles {
    margin-top: 14px;
    gap: 10px;
  }

  body.v3-storefront[data-storefront="unified"] .lh-tiles[data-cells="1"] {
    max-width: none;
  }

  body.v3-storefront[data-storefront="unified"] .lh-tile {
    min-height: 0;
    padding: 12px 14px;
    gap: 4px;
    border-radius: 14px;
  }

  body.v3-storefront[data-storefront="unified"] .lh-lbl {
    font-size: 10.5px;
  }

  body.v3-storefront[data-storefront="unified"] .lh-val {
    font-size: 24px;
  }

  body.v3-storefront[data-storefront="unified"] .lh-val small {
    font-size: 12px;
    margin-left: 4px;
  }

  body.v3-storefront[data-storefront="unified"] .lh-path {
    grid-template-columns: 1fr;
    margin-top: 14px;
    border-radius: 14px;
  }

  body.v3-storefront[data-storefront="unified"] .lh-step {
    padding: 14px 16px;
    gap: 6px;
  }

  body.v3-storefront[data-storefront="unified"] .lh-step + .lh-step {
    border-left: 0;
    border-top: 1px solid rgba(31, 74, 27, 0.12);
  }

  body.v3-storefront[data-storefront="unified"] .lh-step.is-done {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
  }

  body.v3-storefront[data-storefront="unified"] .lh-step.is-done .lh-st,
  body.v3-storefront[data-storefront="unified"] .lh-step.is-done .lh-sn {
    display: none;
  }

  body.v3-storefront[data-storefront="unified"] .lh-step.is-done .lh-sh {
    font-size: 15px;
  }

  body.v3-storefront[data-storefront="unified"] .lh-num {
    width: 26px;
    height: 26px;
    font-size: 12.5px;
  }

  body.v3-storefront[data-storefront="unified"] .lh-sh {
    font-size: 17px;
  }

  body.v3-storefront[data-storefront="unified"] .lh-kit {
    font-size: 13.5px;
  }

  body.v3-storefront[data-storefront="unified"] .lh-kit-row {
    gap: 12px;
  }

  body.v3-storefront[data-storefront="unified"] .lh-kit-img {
    width: 56px;
    height: 56px;
    padding: 3px;
    border-radius: 10px;
  }

  body.v3-storefront[data-storefront="unified"] .lh-step .lh-shop {
    align-self: stretch;
    margin-top: 6px;
  }

  /* D: new-customer mobile shows steps 1–2 only */
  body.v3-storefront[data-storefront="unified"] .lh-step.is-then {
    display: none;
  }
}

/* ---------- guest launch announcement (own block before the guest hero) ----------
   DG-FULL-RECON-VISUAL-POLISH-04: a calm launch notice card — ink sentence on white with a green
   edge and sparkle mark (decorative SVG, no emoji); only "See what’s new" is a blue underlined
   link, with a >=44px hit area. margin-bottom: -6px was measured (18px instead of 24px desktop,
   15px instead of 20px mobile, no overlap) and kept: it ties the notice to the hero card below. */
body.v3-storefront[data-storefront="unified"] .lh-announce {
  padding-top: 16px;
  margin-bottom: -6px;
}

body.v3-storefront[data-storefront="unified"] .lh-announce .container {
  display: flex;
  justify-content: center;
}

body.v3-storefront[data-storefront="unified"] .lh-announce-pill {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 8px;
  max-width: 100%;
  margin: 0;
  padding: 9px 18px 9px 10px;
  border: 1px solid rgba(47, 143, 39, 0.3);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(23, 29, 24, 0.05), 0 8px 20px -12px rgba(31, 95, 40, 0.35);
  color: var(--ink, #171d18);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
}

body.v3-storefront[data-storefront="unified"] .lh-announce-ico {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: none;
  border-radius: 50%;
  background: var(--green-softer, #f1f9ec);
  color: var(--green-dark, #1f6a1a);
}

body.v3-storefront[data-storefront="unified"] .lh-announce-ico svg {
  display: block;
}

body.v3-storefront[data-storefront="unified"] .lh-announce-text {
  text-decoration: none;
}

body.v3-storefront[data-storefront="unified"] .lh-announce-link {
  display: inline-block;
  padding: 12px 2px;
  margin: -12px 0;
  color: #1a4fd6;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  white-space: nowrap;
}

body.v3-storefront[data-storefront="unified"] .lh-announce-link:hover {
  color: #123c9f;
}

body.v3-storefront[data-storefront="unified"] .lh-announce-link:focus-visible {
  outline: 2px solid #1a4fd6;
  outline-offset: 2px;
  border-radius: 4px;
}

@media (max-width: 720px) {
  body.v3-storefront[data-storefront="unified"] .lh-announce {
    padding-top: 12px;
  }

  body.v3-storefront[data-storefront="unified"] .lh-announce-pill {
    font-size: 13.5px;
    padding: 8px 14px 8px 8px;
    border-radius: 18px;
  }
}

/* LHL-005: the link keeps a >=44px rendered hit area under the <=560px #main zoom (0.85). */
@media (max-width: 560px) {
  body.v3-storefront[data-storefront="unified"] .lh-announce-link {
    padding: 15px 2px;
    margin: -15px 0;
  }
}

/* ---------- celebration modal (presentation only) ---------- */
body.v3-storefront[data-storefront="unified"] .lh-modal-wrap {
  --lh-g900: #1f4a1b;
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  /* LHL-LAUNCH-COPY-POPUP-WORTH-ROW-05: safe centring — `margin-block: auto` on the dialog centres it
     while it fits and lets a taller dialog start at the top of the scrollable wrapper instead of
     being clipped above it (short phones, 320x640). */
  justify-items: center;
  align-items: start;
  /* Mark 2026-09-29: keep breathing room under a dialog taller than the screen. The end padding of
     a scrolling grid is not part of its scrollable area in Chrome, so the vertical space comes from
     two empty grid rows (::before / ::after) instead of block padding. */
  /* DG-CELEBRATION-MODAL-SPACING-SCROLL-32F (Mark): at least 20px above and below on wider screens (+ safe areas); the
     dialog's `margin-block: auto` centres it while it fits, a taller dialog scrolls inside this wrapper (top first,
     bottom row still reached at the end). The page behind stays locked (V3BodyLock); overscroll never chains to it. */
  grid-template-rows: calc(20px + env(safe-area-inset-top, 0px)) minmax(max-content, 1fr) calc(20px + env(safe-area-inset-bottom, 0px));
  padding: 0 24px;
  overflow: auto;
  overscroll-behavior: contain;
}

body.v3-storefront[data-storefront="unified"] .lh-modal-wrap::before,
body.v3-storefront[data-storefront="unified"] .lh-modal-wrap::after {
  content: "";
}

body.v3-storefront[data-storefront="unified"] .lh-modal-wrap[hidden] {
  display: none;
}

body.v3-storefront[data-storefront="unified"] .lh-modal-scrim {
  position: fixed;
  inset: 0;
  background: rgba(12, 24, 14, 0.80); /* 32F (Mark) */
}

body.v3-storefront[data-storefront="unified"] .lh-modal {
  position: relative;
  margin-block: auto;
  width: 100%;
  max-width: 560px;
  border-radius: 24px;
  overflow: hidden;
  background: #fbfdf8;
  box-shadow: var(--d-modal-depth, 0 30px 80px rgba(0, 0, 0, 0.45));
  color: var(--lh-g900);
}

body.v3-storefront[data-storefront="unified"] .lh-modal:focus {
  outline: none;
}

/* 32F (Mark): paragraphs keep their normal margins; only the heading and lists are reset. */
body.v3-storefront[data-storefront="unified"] .lh-modal h2,
body.v3-storefront[data-storefront="unified"] .lh-modal ul {
  margin: 0;
}

body.v3-storefront[data-storefront="unified"] .lh-m-top {
  position: relative;
  padding: 34px 36px 26px;
  background:
    radial-gradient(46% 56% at 2% 104%, rgba(40, 192, 73, 0.34) 0%, transparent 60%),
    radial-gradient(50% 64% at 95% -12%, rgba(90, 177, 32, 0.32) 0%, transparent 62%),
    radial-gradient(120% 120% at 88% -10%, #49a02c 0%, #2f7a1f 46%, #1c4d14 100%);
  box-shadow: inset 0 2px 0 var(--green-bright, #5ab120);
  color: #fff;
}

body.v3-storefront[data-storefront="unified"] .lh-m-fx {
  position: absolute;
  top: 0;
  left: 380px;
  pointer-events: none;
}

body.v3-storefront[data-storefront="unified"] .lh-m-fx svg {
  display: block;
}

body.v3-storefront[data-storefront="unified"] .lh-m-fx .lh-fx-m {
  display: none;
}

/* DG-MOBILE-STOREFRONT-POLISH-20J (Mark): no eyebrow above the welcome title. */
body.v3-storefront[data-storefront="unified"] .lh-m-eyebrow {
  display: none;
}

body.v3-storefront[data-storefront="unified"] .lh-modal .lh-m-h {
  position: relative;
  z-index: 1;
  max-width: 340px;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
}

body.v3-storefront[data-storefront="unified"] .lh-m-close {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font: inherit;
  line-height: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* LHL-LAUNCH-COPY-POPUP-WORTH-ROW-05: an SVG cross (no font glyph), centred by the grid in a
   44x44 hit area; instant state changes (no transition, reduced-motion safe). */
body.v3-storefront[data-storefront="unified"] .lh-m-close-ico {
  display: block;
  width: 20px;
  height: 20px;
  pointer-events: none;
}

body.v3-storefront[data-storefront="unified"] .lh-m-close:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.8);
}

body.v3-storefront[data-storefront="unified"] .lh-m-close:active {
  background: rgba(255, 255, 255, 0.38);
  transform: scale(0.94);
}

body.v3-storefront[data-storefront="unified"] .lh-m-close:focus-visible,
body.v3-storefront[data-storefront="unified"] .lh-m-later:focus-visible,
body.v3-storefront[data-storefront="unified"] .lh-m-cta:focus-visible {
  outline: 3px solid var(--green, #2f8f27);
  outline-offset: 2px;
}

body.v3-storefront[data-storefront="unified"] .lh-m-close:focus-visible {
  outline-color: #fff;
  box-shadow: 0 0 0 6px rgba(28, 77, 20, 0.55);
}

/* LHL-WELCOME-POPUP-FOUNDER-MEDIA-PREVIEW-06: small supporting founder photo beside the intro.
   The 960x960 beach photo is shown 1.5x inside a fixed square so both faces fill the frame
   (visible window ~15-81% horizontally, ~18-85% vertically of the source); fixed box = no shift.
   Mark 2026-09-29: 132px, pulled 10px towards the dialog edge, crop top -27.5%, no caption.
   DG-MOBILE-STOREFRONT-POLISH-20J (Mark): the team line is its own element beside the photo; the
   lead sits under it beside the photo on desktop and runs the full width under both on phones. */
body.v3-storefront[data-storefront="unified"] .lh-m-intro--founder {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  grid-template-areas:
    "team photo"
    "lead photo";
  grid-template-rows: auto 1fr;
  gap: 6px 20px;
  align-items: start;
}

body.v3-storefront[data-storefront="unified"] .lh-m-intro--founder .lh-m-team {
  grid-area: team;
}

body.v3-storefront[data-storefront="unified"] .lh-m-intro--founder .lh-m-lead {
  grid-area: lead;
}

body.v3-storefront[data-storefront="unified"] .lh-m-intro--founder .lh-m-founders {
  grid-area: photo;
}

body.v3-storefront[data-storefront="unified"] .lh-m-founders {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

body.v3-storefront[data-storefront="unified"] .lh-m-founders-media {
  margin-right: -10px;
  position: relative;
  display: block;
  flex: none;
  width: 132px;
  height: 132px;
  border-radius: 16px;
  overflow: hidden;
  background: #e6efe0;
  box-shadow: 0 6px 16px rgba(28, 77, 20, 0.16);
}

body.v3-storefront[data-storefront="unified"] .lh-m-founders-media img {
  position: absolute;
  left: -22%;
  top: -27.5%;
  display: block;
  width: 150%;
  height: 150%;
  max-width: none;
}

body.v3-storefront[data-storefront="unified"] .lh-m-team {
  display: block;
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  color: #000;
}

body.v3-storefront[data-storefront="unified"] .lh-m-intro--founder .lh-m-team {
  margin: 0;
}

body.v3-storefront[data-storefront="unified"] .lh-m-body {
  padding: 24px 36px 8px;
}

body.v3-storefront[data-storefront="unified"] .lh-m-lead {
  font-size: 15.5px;
  line-height: 1.55;
  color: #2c4a2a;
}

body.v3-storefront[data-storefront="unified"] .lh-m-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

body.v3-storefront[data-storefront="unified"] .lh-modal .lh-m-list {
  margin-top: 18px;
}

body.v3-storefront[data-storefront="unified"] .lh-m-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

/* Mark 2026-09-29: bold title, line break, short normal text; the tick is centred beside both lines. */
body.v3-storefront[data-storefront="unified"] .lh-m-benefit strong {
  font-weight: 800;
  color: var(--lh-g900, #1f4a1b);
}

body.v3-storefront[data-storefront="unified"] .lh-ic {
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green-soft, #e4f4dc);
  color: var(--green-dark, #1f6a1a);
  font-size: 14px;
  font-weight: 800;
}

body.v3-storefront[data-storefront="unified"] .lh-modal .lh-m-sale {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff8e3;
  border: 1px solid #f1dfa6;
  font-size: 13.5px;
  font-weight: 600;
  color: #4a3a0a;
}

body.v3-storefront[data-storefront="unified"] .lh-m-sale b {
  padding: 3px 9px;
  border-radius: 999px;
  background: #f6c453;
  color: #3a2a00;
  font-size: 12.5px;
  font-weight: 800;
  white-space: nowrap;
}

body.v3-storefront[data-storefront="unified"] .lh-m-foot {
  padding: 20px 36px 28px;
  display: flex;
  align-items: center;
  gap: 18px;
}

body.v3-storefront[data-storefront="unified"] .lh-m-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--berry, #8e1566);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(107, 15, 77, 0.3);
  white-space: nowrap;
}

body.v3-storefront[data-storefront="unified"] .lh-m-cta::after {
  content: "→";
}

body.v3-storefront[data-storefront="unified"] .lh-m-cta:hover {
  background: var(--berry-dark, #6b0f4d);
  color: #fff;
}

body.v3-storefront[data-storefront="unified"] .lh-m-later {
  min-height: 44px;
  padding: 0 10px;
  border: 0;
  background: none;
  font: 700 15px var(--font-sans, inherit);
  color: var(--lh-g900);
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

@media (max-width: 720px) {
  /* DG-MOBILE-STOREFRONT-POLISH-20O (Mark): on phones the popup sits at the top with the shared popup gap. */
  body.v3-storefront[data-storefront="unified"] .lh-modal-wrap {
    /* 32F (Mark): at least 15px above and below on phones (+ safe areas); the dialog starts at the top. */
    grid-template-rows: calc(15px + env(safe-area-inset-top, 0px)) minmax(max-content, 1fr) calc(15px + env(safe-area-inset-bottom, 0px));
    padding: 0 16px;
  }

  body.v3-storefront[data-storefront="unified"] .lh-modal-wrap .lh-modal {
    margin-block: 0 auto;
  }

  body.v3-storefront[data-storefront="unified"] .lh-modal {
    border-radius: 20px;
  }

  body.v3-storefront[data-storefront="unified"] .lh-m-top {
    padding: 40px 20px 18px;
  }

  body.v3-storefront[data-storefront="unified"] .lh-modal .lh-m-h {
    font-size: 24px;
    max-width: 270px;
  }

  body.v3-storefront[data-storefront="unified"] .lh-m-close {
    top: 10px;
    right: 10px;
  }

  body.v3-storefront[data-storefront="unified"] .lh-m-body {
    padding: 18px 20px 4px;
  }

  /* phones (Mark 2026-09-29): the photo stays right of the intro text as a 94px rounded square
     (not a circle, not stacked underneath, no caption) */
  body.v3-storefront[data-storefront="unified"] .lh-m-intro--founder {
    grid-template-columns: minmax(0, 1fr) 94px;
    grid-template-areas:
      "team photo"
      "lead lead";
    grid-template-rows: auto auto;
    gap: 12px 14px;
  }

  body.v3-storefront[data-storefront="unified"] .lh-m-founders {
    gap: 6px;
  }

  body.v3-storefront[data-storefront="unified"] .lh-m-founders-media {
    margin-right: 0;
    width: 94px;
    height: 94px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(28, 77, 20, 0.16);
  }

  body.v3-storefront[data-storefront="unified"] .lh-m-list li {
    font-size: 14px;
    gap: 10px;
  }

  body.v3-storefront[data-storefront="unified"] .lh-ic {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }

  body.v3-storefront[data-storefront="unified"] .lh-modal .lh-m-sale {
    margin-top: 14px;
    font-size: 13px;
    padding: 8px 10px;
  }

  body.v3-storefront[data-storefront="unified"] .lh-m-foot {
    padding: 16px 20px 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  body.v3-storefront[data-storefront="unified"] .lh-m-cta {
    width: 100%;
  }

  body.v3-storefront[data-storefront="unified"] .lh-m-later {
    align-self: center;
  }

  body.v3-storefront[data-storefront="unified"] .lh-m-fx {
    left: 16px;
    top: 10px;
  }

  body.v3-storefront[data-storefront="unified"] .lh-m-fx .lh-fx-d {
    display: none;
  }

  body.v3-storefront[data-storefront="unified"] .lh-m-fx .lh-fx-m {
    display: block;
  }
}
