/* ============================================================================
   VALYON — Home v2 (front-page only).
   Ported from design_v2_home/home-v2.css. SCOPED to `.home-v2` so its tokens
   and styles never reach PDP / Cart / Checkout / shared header+footer. The v2
   design uses a different palette + Playfair Display, hence the hard scope.
   Header, footer and the announcement bar are intentionally NOT included here —
   those stay theme-owned (get_header()/get_footer()). Scroll-reveal reuses the
   theme's existing .reveal/.on system (main.css + main.js); only the stagger
   delays are added below.
   ========================================================================== */

/* ---- tokens (scoped — override the theme :root tokens only inside .home-v2) ---- */
.home-v2 {
  --cream: #F7EFE3;
  --cream-bar: #F4E8D8;
  --cream-soft: #FBF7F0;
  --peach: #F8E7D2;
  --dark: #1C1A16;
  --gold: #B8923E;
  --lav: #D9CBEF;
  --muted: #6E665B;
  --line: #E7DDCC;
  --gold-soft: rgba(184,146,62,.28);
  --shadow-sm: 0 2px 10px rgba(28,26,22,.05);
  --shadow-md: 0 14px 34px -12px rgba(28,26,22,.18);
  --shadow-lg: 0 30px 64px -20px rgba(28,26,22,.32);

  color: var(--dark);
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  background:
    radial-gradient(1100px 540px at 82% -8%, #FBF4E7, transparent 62%),
    radial-gradient(900px 500px at 0% 40%, #FBF5EA, transparent 60%),
    var(--cream);
}
.home-v2 * { box-sizing: border-box; margin: 0; padding: 0; }
.home-v2 img { display: block; max-width: 100%; }
.home-v2 a { color: inherit; text-decoration: none; }
.home-v2 .serif { font-family: 'Playfair Display', serif; }
.home-v2 .wrap { max-width: 1316px; margin: 0 auto; padding: 0 24px; }
.home-v2 .ico { display: inline-block; vertical-align: middle; }
/* Safety net: never let a v2 section trigger horizontal page scroll on phones. */
.home-v2 { overflow-x: hidden; }

/* ============ HERO ============
   NB: the section class is `.hv-hero`, not `.hero` — the theme's v1 `.hero`
   rules (a cream `::after` overlay, Cormorant h1, min-height) are global and
   would otherwise paint over / resize this hero. */
.home-v2 .hv-hero { position: relative; background-color: var(--cream); background-image: url('../img/home-v2/hero.png'); background-repeat: no-repeat; background-position: right center; background-size: auto 100%; }
/* Soften the vertical seam where hero.png's left edge meets the cream base: a
   cream→transparent wash from the left that stays clear over the bottles (right). */
.home-v2 .hv-hero::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, var(--cream) 0%, var(--cream) 40%, rgba(247,239,227,0) 72%); }
.home-v2 .hv-hero .wrap { position: relative; z-index: 2; min-height: 618px; display: flex; flex-direction: column; justify-content: center; padding-top: 34px; padding-bottom: 34px; }
/* Height-locked, right-aligned background keeps the bottles pinned to the right
   on ANY width; the text sits in a constrained left column above it. */
.home-v2 .hero-content { max-width: 620px; position: relative; z-index: 2; }
.home-v2 .hv-hero .eyebrow { color: var(--gold); font-weight: 700; font-size: 15px; letter-spacing: .13em; text-transform: uppercase; margin-bottom: 22px; display: inline-flex; align-items: center; gap: 13px; }
.home-v2 .hv-hero .eyebrow::before { content: ""; width: 36px; height: 1.5px; background: linear-gradient(90deg, var(--gold), rgba(184,146,62,.1)); }
.home-v2 .hv-hero h1 { font-weight: 600; font-size: 53px; line-height: 1.17; color: var(--dark); letter-spacing: -.018em; }
.home-v2 .hv-hero .divider { width: 200px; height: 2px; background: linear-gradient(90deg, var(--gold), rgba(184,146,62,.12)); margin: 30px 0 26px; }
.home-v2 .hv-hero .sub { color: #5b5446; font-size: 19px; line-height: 1.55; max-width: 440px; }
.home-v2 .hv-hero .btn-shop { margin-top: 34px; display: inline-flex; align-items: center; gap: 12px; align-self: flex-start; background: var(--dark); background-image: linear-gradient(180deg,#2b2620,#1C1A16); color: #fff; font-weight: 700; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; padding: 18px 30px; border-radius: 5px; cursor: pointer; border: none; box-shadow: 0 12px 28px -14px rgba(28,26,22,.6); transition: transform .25s ease, box-shadow .25s ease; }
.home-v2 .hv-hero .btn-shop:hover { transform: translateY(-2px); box-shadow: 0 18px 38px -14px rgba(28,26,22,.62); }
.home-v2 .hv-hero .btn-shop svg { transition: transform .25s ease; }
.home-v2 .hv-hero .btn-shop:hover svg { transform: translateX(4px); }
.home-v2 .hero-badges { display: flex; gap: 48px; margin-top: 46px; }
.home-v2 .hero-badge { display: flex; flex-direction: column; align-items: center; text-align: center; width: 88px; transition: transform .25s ease; }
.home-v2 .hero-badge img { height: 46px; width: auto; margin-bottom: 16px; filter: drop-shadow(0 6px 12px rgba(184,146,62,.22)); transition: transform .3s ease; }
.home-v2 .hero-badge:hover img { transform: translateY(-4px) scale(1.07); }
.home-v2 .hero-badge span { font-weight: 700; font-size: 13px; letter-spacing: .03em; text-transform: uppercase; line-height: 1.35; color: var(--dark); }
/* Mobile-only product visual (bottles) — shown ≤720, see phone media query. */
.home-v2 .hero-figure { display: none; }

/* ============ TRUST BAR ============ */
.home-v2 .trust { background: transparent; padding: 58px 0; }
.home-v2 .trust .wrap { display: flex; justify-content: space-between; gap: 24px; }
.home-v2 .trust .item { display: flex; align-items: center; gap: 18px; position: relative; padding: 0 8px; transition: transform .25s ease; }
.home-v2 .trust .item:hover { transform: translateY(-3px); }
.home-v2 .trust .item img { height: 42px; width: auto; flex: 0 0 auto; transition: transform .3s ease; }
.home-v2 .trust .item:hover img { transform: scale(1.09); }
.home-v2 .trust .item + .item::before { content: ""; position: absolute; left: -14px; top: 3px; bottom: 3px; width: 1px; background: linear-gradient(180deg, transparent, var(--gold-soft), transparent); }
.home-v2 .trust .item .t { font-weight: 800; font-size: 16px; letter-spacing: .03em; text-transform: uppercase; color: var(--dark); }
.home-v2 .trust .item .d { font-size: 15px; color: var(--muted); margin-top: 3px; }

/* ============ PROMO + PRODUCT GRID ============ */
.home-v2 .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.home-v2 section.cards .grid2 + .grid2 { margin-top: 32px; }
.home-v2 section.cards { padding: 18px 0 70px; }

.home-v2 .promo { border-radius: 16px; overflow: hidden; position: relative; background-size: cover; background-position: center right; aspect-ratio: 632/253; display: flex; align-items: center; border: 1px solid rgba(184,146,62,.18); box-shadow: var(--shadow-md); transition: transform .32s ease, box-shadow .32s ease; }
.home-v2 .promo.sleep { background-image: url('../img/home-v2/promo-sleep.png'); }
.home-v2 .promo.flex { background-image: url('../img/home-v2/promo-flex.png'); }
.home-v2 .promo::after { content: ""; position: absolute; inset: 0; border-radius: 16px; box-shadow: inset 0 1px 0 rgba(255,255,255,.45); pointer-events: none; }
.home-v2 .promo:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.home-v2 .promo .inner { padding: 0 0 0 36px; max-width: 62%; position: relative; z-index: 1; }
.home-v2 .promo .head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 14px; }
.home-v2 .promo .head img { height: 50px; width: auto; margin-top: 2px; }
.home-v2 .promo .head h3 { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 21px; line-height: 1.18; text-transform: uppercase; color: var(--dark); letter-spacing: .01em; white-space: nowrap; }
.home-v2 .promo p { font-size: 16px; color: #4d4639; line-height: 1.45; max-width: 300px; margin-bottom: 18px; }
.home-v2 .promo .row { display: flex; align-items: center; gap: 26px; }
.home-v2 .promo .price { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 34px; color: var(--dark); }
.home-v2 .promo .btn { display: inline-flex; align-items: center; gap: 11px; background: var(--dark); background-image: linear-gradient(180deg,#2b2620,#1C1A16); color: #fff; font-weight: 700; font-size: 14px; letter-spacing: .05em; text-transform: uppercase; padding: 16px 24px; border-radius: 5px; border: none; cursor: pointer; box-shadow: 0 12px 28px -14px rgba(28,26,22,.6); transition: transform .25s ease, box-shadow .25s ease; }
.home-v2 .promo .btn:hover { transform: translateY(-2px); box-shadow: 0 18px 38px -14px rgba(28,26,22,.62); }
.home-v2 .promo .btn svg { transition: transform .25s ease; }
.home-v2 .promo .btn:hover svg { transform: translateX(4px); }
.home-v2 .promo .promo-bottle { display: none; } /* mobile-only (≤720) */

.home-v2 .prod { background: linear-gradient(158deg,#FBEFDC 0%, #F5E1C7 100%); border: 1px solid rgba(184,146,62,.20); border-radius: 16px; padding: 30px 34px; display: flex; gap: 8px; box-shadow: var(--shadow-md); position: relative; transition: transform .32s ease, box-shadow .32s ease, border-color .32s ease; }
.home-v2 .prod::before { content: ""; position: absolute; left: 34px; right: 34px; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: 0; transition: opacity .32s ease; }
.home-v2 .prod:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--gold-soft); }
.home-v2 .prod:hover::before { opacity: .85; }
.home-v2 .prod .pimg { flex: 0 0 168px; display: flex; align-items: center; justify-content: center; margin-left: -8px; }
.home-v2 .prod .pimg img { width: 200px; max-width: none; height: auto; margin-left: -26px; filter: drop-shadow(0 16px 26px rgba(28,26,22,.24)); transition: transform .4s ease; }
.home-v2 .prod:hover .pimg img { transform: translateY(-4px) scale(1.045); }
.home-v2 .prod .pbody { flex: 1; min-width: 0; }
.home-v2 .prod h3 { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 25px; text-transform: uppercase; color: var(--dark); letter-spacing: .02em; }
.home-v2 .prod .formula { font-size: 14px; color: #9a7b34; margin-top: 5px; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; }
.home-v2 .prod .stars { display: flex; align-items: center; gap: 8px; margin: 12px 0 14px; }
.home-v2 .prod .stars .count { font-weight: 700; font-size: 15px; color: var(--dark); }
.home-v2 .prod .stars .s-gold { display: inline-flex; align-items: center; gap: 2px; }
.home-v2 .prod .desc { font-size: 16px; color: #4d4639; line-height: 1.5; max-width: 340px; }
.home-v2 .prod .priceline { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 16px 0 18px; }
.home-v2 .prod .priceline .p { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 32px; color: var(--dark); }
.home-v2 .prod .priceline .lv { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 19px; color: var(--dark); }
.home-v2 .badge-pack { display: inline-flex; align-items: center; gap: 7px; background: var(--gold); background-image: linear-gradient(180deg,#C8A24E,#B0883A); color: #fff; font-weight: 700; font-size: 13px; padding: 6px 12px; border-radius: 20px; box-shadow: 0 7px 16px -7px rgba(184,146,62,.75); }
.home-v2 .prod .btn-cart { width: 100%; display: flex; align-items: center; justify-content: center; gap: 12px; background: var(--dark); background-image: linear-gradient(180deg,#2b2620,#1C1A16); color: #fff; font-weight: 700; font-size: 16px; letter-spacing: .05em; text-transform: uppercase; padding: 18px; border-radius: 6px; border: none; cursor: pointer; position: relative; overflow: hidden; box-shadow: 0 12px 28px -14px rgba(28,26,22,.6); transition: transform .25s ease, box-shadow .25s ease; }
.home-v2 .prod .btn-cart:hover { transform: translateY(-2px); box-shadow: 0 18px 38px -14px rgba(28,26,22,.62); }
.home-v2 .prod .btn-cart::after { content: ""; position: absolute; inset: 3px; border: 1px solid transparent; border-radius: 5px; transition: border-color .3s ease; pointer-events: none; }
.home-v2 .prod .btn-cart:hover::after { border-color: var(--gold-soft); }
.home-v2 .prod .meta { display: flex; gap: 34px; margin-top: 18px; }
.home-v2 .prod .meta span { display: flex; align-items: center; gap: 9px; font-size: 15px; color: #4d4639; }

/* ============ INGREDIENTS ============ */
.home-v2 section.ingr { padding: 34px 0 92px; }
.home-v2 .ingr .wrap { display: grid; grid-template-columns: 360px 1fr; gap: 48px; align-items: start; }
.home-v2 .ingr .eyebrow { color: var(--gold); font-weight: 700; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 18px; display: inline-flex; align-items: center; gap: 13px; }
.home-v2 .ingr .eyebrow::before { content: ""; width: 36px; height: 1.5px; background: linear-gradient(90deg, var(--gold), rgba(184,146,62,.1)); }
.home-v2 .ingr h2 { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 36px; line-height: 1.18; color: var(--dark); margin-bottom: 22px; }
.home-v2 .ingr p { font-size: 16px; color: #4d4639; line-height: 1.55; margin-bottom: 24px; }
.home-v2 .ingr .links { display: flex; gap: 38px; }
.home-v2 .ingr .links a { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 16px; color: var(--dark); transition: color .2s ease; }
.home-v2 .ingr .links a svg { transition: transform .2s ease; }
.home-v2 .ingr .links a:hover { color: var(--gold); }
.home-v2 .ingr .links a:hover svg { transform: translateX(4px); }
/* Ingredient tiles → seamless horizontal marquee. The section title/intro stay
   put; ONLY this band flows. CSS-only (animated transform on the track), content is
   duplicated in markup so translateX(-50%) loops seamlessly. The viewport clips the
   track (overflow:hidden + min-width:0) so it never adds page-level horizontal
   scroll. Soft mask edges give depth without a shadow (brand rule). */
.home-v2 .ingr-marquee { overflow: hidden; width: 100%; max-width: 100%; min-width: 0; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%); }
.home-v2 .ingr-track { display: flex; flex-wrap: nowrap; gap: 24px; width: max-content; margin: 0; padding: 6px 2px; list-style: none; animation: ingr-marquee 75s linear infinite; will-change: transform; }
/* Pause on hover (desktop) and press/touch (mobile). */
.home-v2 .ingr-marquee:hover .ingr-track,
.home-v2 .ingr-marquee:active .ingr-track { animation-play-state: paused; }
.home-v2 .ingr-track .ingr-item { flex: 0 0 auto; width: 210px; }
@keyframes ingr-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.home-v2 .ingr-item .ph { width: 100%; aspect-ratio: 1/1; border-radius: 14px; overflow: hidden; background: repeating-linear-gradient(45deg,#ece2d2,#ece2d2 9px,#e3d7c4 9px,#e3d7c4 18px); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-md); border: 1px solid rgba(184,146,62,.18); transition: transform .32s ease, box-shadow .32s ease; }
.home-v2 .ingr-item:hover .ph { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.home-v2 .ingr-item .ph span { font-family: ui-monospace, monospace; font-size: 11px; color: #9b8d77; background: rgba(247,239,227,.82); padding: 4px 8px; border-radius: 4px; text-align: center; }
.home-v2 .ingr-item .ph img { width: 100%; height: 100%; object-fit: cover; }
.home-v2 .ingr-item .cap { text-align: center; font-weight: 700; font-size: 15px; letter-spacing: .02em; text-transform: uppercase; color: var(--dark); margin-top: 16px; line-height: 1.3; }

/* ============ WHY VALYON ============ */
.home-v2 section.hv-why { padding: 34px 0 100px; }
.home-v2 .why-title { background: linear-gradient(180deg,#241F19,#1C1A16); border-radius: 14px; text-align: center; padding: 22px; margin-bottom: 7px; box-shadow: var(--shadow-md); position: relative; overflow: hidden; }
.home-v2 .why-title::after { content: ""; position: absolute; left: 50%; transform: translateX(-50%); bottom: 0; width: 130px; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.home-v2 .why-title h2 { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 23px; letter-spacing: .05em; text-transform: uppercase; color: var(--gold); }
.home-v2 .why-panel { background: radial-gradient(130% 150% at 50% -25%, #272218, #1C1A16 62%); border-radius: 14px; padding: 44px 20px; display: grid; grid-template-columns: repeat(4,1fr); box-shadow: var(--shadow-lg); }
.home-v2 .why-col { padding: 0 34px; text-align: center; position: relative; transition: transform .25s ease; }
.home-v2 .why-col:hover { transform: translateY(-4px); }
.home-v2 .why-col + .why-col::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 1px; background: rgba(184,146,62,.45); }
.home-v2 .why-col img, .home-v2 .why-col .ic-flask { height: 48px; width: auto; margin: 0 auto 22px; display: block; transition: transform .3s ease; }
.home-v2 .why-col:hover img, .home-v2 .why-col:hover .ic-flask { transform: scale(1.1); }
.home-v2 .why-col h4 { font-weight: 800; font-size: 15px; letter-spacing: .05em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.home-v2 .why-col p { font-size: 15px; color: #c9c3b8; line-height: 1.5; }

/* ============ PRODUCT LIFESTYLE (split image + text) ============
   Reuses the PDP lifestyle layout on the Home cream system. Per-product accent
   (gold Flex / lavender Sleep) drives borders/eyebrow/benefit ticks via --lf-*;
   the background stays Home-cream. Alternating: Flex image-left, Sleep mirrored. */
.home-v2 .hv-lifestyle { padding: 30px 0; }
.home-v2 .hv-lifestyle.lf-flex { --lf-accent: #B8923E; --lf-accent-soft: rgba(184,146,62,.30); --lf-tint: #FBEFDC; }
.home-v2 .hv-lifestyle.lf-sleep { --lf-accent: #6C4FAF; --lf-accent-soft: rgba(108,79,175,.30); --lf-tint: #F3EDFC; }
.home-v2 .hv-lifestyle .lf-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.home-v2 .hv-lifestyle.lf-reverse .lf-media { order: 2; }
.home-v2 .hv-lifestyle .lf-media { border-radius: 18px; overflow: hidden; border: 1px solid var(--lf-accent-soft); box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; background: var(--lf-tint); }
.home-v2 .hv-lifestyle .lf-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.home-v2 .hv-lifestyle .lf-eyebrow { color: var(--lf-accent); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.home-v2 .hv-lifestyle h2 { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 32px; line-height: 1.16; letter-spacing: -.01em; color: var(--dark); margin-bottom: 16px; }
.home-v2 .hv-lifestyle p { font-size: 16px; line-height: 1.7; color: #4d4639; margin: 0 0 22px; max-width: 520px; }
.home-v2 .hv-lifestyle .lf-benefits { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.home-v2 .hv-lifestyle .lf-benefits li { display: flex; align-items: center; gap: 12px; font-size: 15.5px; font-weight: 600; color: var(--dark); }
.home-v2 .hv-lifestyle .lf-benefits .lf-ck { flex: 0 0 auto; width: 26px; height: 26px; padding: 4px; border-radius: 50%; background: var(--lf-tint); border: 1px solid var(--lf-accent-soft); color: var(--lf-accent); box-sizing: border-box; }
.home-v2 .hv-lifestyle .lf-cta { display: inline-flex; align-items: center; gap: 12px; color: #fff; background-image: linear-gradient(180deg,#2b2620,#1C1A16); font-weight: 700; font-size: 14px; letter-spacing: .05em; text-transform: uppercase; padding: 15px 26px; border-radius: 7px; box-shadow: 0 12px 28px -14px rgba(28,26,22,.6); transition: transform .25s ease, box-shadow .25s ease; }
.home-v2 .hv-lifestyle .lf-cta:hover { transform: translateY(-2px); box-shadow: 0 18px 38px -14px rgba(28,26,22,.62); }
.home-v2 .hv-lifestyle .lf-cta svg { transition: transform .25s ease; }
.home-v2 .hv-lifestyle .lf-cta:hover svg { transform: translateX(4px); }

/* ============ TESTIMONIALS ============ */
.home-v2 section.testi { background: var(--cream-soft); padding: 90px 0 100px; }
.home-v2 .testi h2 { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 42px; text-align: center; color: var(--dark); margin-bottom: 48px; }
.home-v2 .testi-row { display: flex; align-items: center; gap: 24px; max-width: 1240px; margin: 0 auto; }
.home-v2 .testi-arrow { flex: 0 0 auto; color: #2b2620; background: none; border: none; cursor: pointer; width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: transform .2s ease, color .2s ease, background .2s ease; }
.home-v2 .testi-arrow:hover { color: var(--gold); background: rgba(184,146,62,.1); transform: scale(1.06); }
.home-v2 .testi-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; flex: 1; }
.home-v2 .tcard { background: #fff; border: 1px solid #ece6dc; border-radius: 14px; padding: 26px 30px; box-shadow: var(--shadow-sm); transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.home-v2 .tcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--gold-soft); }
.home-v2 .tcard .top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.home-v2 .tcard .who { display: flex; align-items: center; gap: 14px; }
.home-v2 .tcard .who img { width: 44px; height: 44px; border-radius: 50%; box-shadow: 0 5px 12px -5px rgba(28,26,22,.45); }
.home-v2 .tcard .who .name { font-weight: 700; font-size: 17px; color: var(--dark); }
.home-v2 .tcard .who .date { font-size: 14px; color: #9a9183; margin-top: 2px; }
.home-v2 .tcard .rate { display: flex; align-items: center; gap: 9px; }
.home-v2 .tcard .rate .val { font-weight: 700; font-size: 15px; color: var(--dark); }
.home-v2 .tcard .rate .s-gold-sm, .home-v2 .tcard .rate .s-purple-sm { display: inline-flex; align-items: center; gap: 2px; }
.home-v2 .tcard p { font-size: 16px; color: #4d4639; line-height: 1.65; }

/* ---- scroll-reveal — FAIL-SAFE -------------------------------------------
   Content is fully visible by default. The entrance animation is a progressive
   enhancement gated behind `html.reveal-js`, a flag the theme's main.js sets
   only when it actually runs (toggling `.on` per the theme's reveal system). So
   if main.js never loads, nothing stays hidden. Above-the-fold sections (hero,
   trust) carry no `.reveal` at all, so they never wait on animation. Only the
   below-the-fold sections (promo, product, ingredients, why, testimonials) use
   reveal — off-screen at load, so the enhancement causes no visible flash. */
.home-v2 .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  html.reveal-js .home-v2 .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
  html.reveal-js .home-v2 .reveal.on { opacity: 1; transform: none; }
}
.home-v2 .reveal.d1 { transition-delay: .08s; }
.home-v2 .reveal.d2 { transition-delay: .16s; }
.home-v2 .reveal.d3 { transition-delay: .24s; }

/* ============================================================================
   Responsive — the prototype shipped desktop-only; these collapse the grids.
   ========================================================================== */
/* ---- ≤960 (tablet): single-column cards, 2×2 trust/why, stacked hero ---- */
@media (max-width: 960px) {
  .home-v2 .wrap { padding: 0 22px; }

  /* HERO → stacked: copy on top, bottles as a cropped background beneath it. */
  .home-v2 .hv-hero { background-size: cover; background-position: 72% bottom; }
  .home-v2 .hv-hero::after { background: linear-gradient(180deg, var(--cream) 0%, var(--cream) 24%, rgba(247,239,227,.5) 46%, rgba(247,239,227,0) 74%); }
  .home-v2 .hv-hero .wrap { min-height: 600px; justify-content: flex-start; padding-top: 46px; padding-bottom: 34px; }
  .home-v2 .hero-content { max-width: 560px; }
  .home-v2 .hv-hero h1 { font-size: clamp(34px, 5.4vw, 48px); }
  .home-v2 .hv-hero .sub { font-size: 17px; max-width: 420px; }
  .home-v2 .hero-badges { gap: 26px; flex-wrap: wrap; margin-top: 38px; }

  /* TRUST → 2×2 */
  .home-v2 .trust { padding: 44px 0; }
  .home-v2 .trust .wrap { flex-wrap: wrap; gap: 26px 16px; }
  .home-v2 .trust .item { flex: 1 1 44%; padding: 0; }
  .home-v2 .trust .item + .item::before { display: none; }

  /* PROMO + PRODUCT → single column, cards full-width */
  .home-v2 section.cards { padding: 12px 0 56px; }
  .home-v2 .grid2 { grid-template-columns: 1fr; gap: 22px; }
  .home-v2 section.cards .grid2 + .grid2 { margin-top: 22px; }
  .home-v2 .promo .inner { max-width: 68%; }
  .home-v2 .promo .head h3 { white-space: normal; } /* avoid nowrap overflow in 1-col */

  /* INGREDIENTS → intro stacks over the marquee; smaller tiles, faster flow.
     The marquee viewport stays full-width with overflow clipped, so it never
     triggers horizontal page scroll on phones. */
  .home-v2 section.ingr { padding: 22px 0 64px; }
  .home-v2 .ingr .wrap { grid-template-columns: 1fr; gap: 30px; }
  .home-v2 .ingr h2 { font-size: 32px; }
  .home-v2 .ingr-track { gap: 16px; animation-duration: 60s; }
  .home-v2 .ingr-track .ingr-item { width: 152px; }

  /* WHY → 2×2 */
  .home-v2 section.hv-why { padding: 22px 0 72px; }
  .home-v2 .why-panel { grid-template-columns: 1fr 1fr; gap: 30px 0; padding: 38px 14px; }
  .home-v2 .why-col { padding: 0 24px; }
  .home-v2 .why-col + .why-col::before { display: none; }

  /* TESTIMONIALS → single column, no arrows */
  .home-v2 section.testi { padding: 64px 0 74px; }
  .home-v2 .testi h2 { font-size: 34px; margin-bottom: 36px; }
  .home-v2 .testi-cards { grid-template-columns: 1fr; }
  .home-v2 .testi-arrow { display: none; }
}

/* ---- ≤720 (phone): tighter type, full-width CTA, fully stacked ---- */
@media (max-width: 720px) {
  .home-v2 .wrap { padding: 0 18px; }

  /* HERO → decorative glow/wheat backdrop (hero-mobile-bg.webp) behind the copy,
     only lightly muted (~0.5 cream) so it stays PERCEPTIBLE; the dark text on the
     light backdrop keeps contrast. The bottles are a SEPARATE .hero-figure block
     under the CTA — backdrop and bottles are different things, not duplicated.
     Order: eyebrow → title → lede → full-width CTA → bottles → 2×2 icons. */
  .home-v2 .hv-hero { background-color: var(--cream); background-image: url('../img/home-v2/hero-mobile-bg.webp'); background-repeat: no-repeat; background-size: cover; background-position: center; }
  .home-v2 .hv-hero::after { display: block; background: linear-gradient(180deg, rgba(247,239,227,.55) 0%, rgba(247,239,227,.45) 50%, rgba(247,239,227,.55) 100%); }
  .home-v2 .hv-hero .wrap { min-height: 0; padding-top: 30px; padding-bottom: 28px; }
  /* Mobile reorder via flex `order` (markup unchanged → desktop untouched):
     eyebrow → title → divider → badges 2×2 → CTA → bottles. The lede (.sub) is
     hidden on mobile because its text duplicates the badge labels. */
  .home-v2 .hero-content { max-width: 100%; display: flex; flex-direction: column; }
  .home-v2 .hv-hero .eyebrow { order: 1; }
  .home-v2 .hv-hero h1 { order: 2; font-size: clamp(27px, 8.4vw, 38px); line-height: 1.16; }
  .home-v2 .hv-hero .divider { order: 3; }
  .home-v2 .hero-badges { order: 4; }
  .home-v2 .hv-hero .btn-shop { order: 5; }
  .home-v2 .hero-figure { order: 6; }
  .home-v2 .hv-hero .sub { display: none; }
  .home-v2 .hv-hero .divider { width: 130px; margin: 22px 0 20px; }
  .home-v2 .hv-hero .btn-shop { width: 100%; justify-content: center; }
  /* Product visual (bottles) as its own block under the CTA — cropped from the
     desktop hero art, distinct from the decorative backdrop above. */
  .home-v2 .hero-figure { display: block; width: 100%; aspect-ratio: 5 / 4; margin-top: 28px; border-radius: 16px; background-image: url('../img/home-v2/hero.png'); background-repeat: no-repeat; background-size: cover; background-position: 82% center; box-shadow: var(--shadow-md); border: 1px solid rgba(184,146,62,.18); }
  /* Trust icons → standalone 2×2 grid below the bottles. */
  .home-v2 .hero-badges { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 12px; margin-top: 30px; }
  .home-v2 .hero-badge { width: auto; }

  /* TRUST → one per row */
  .home-v2 .trust { padding: 38px 0; }
  .home-v2 .trust .item { flex: 1 1 100%; }
  .home-v2 .trust .item img { height: 38px; }

  /* PROMO — vertical stack. The baked-in bottle background overlapped the text,
     so on mobile we drop it for a tonal card gradient (keeping the glow/tone) and
     show the bottle as its own block over that same tone. Stack: icon+title →
     description → bottle → price-left / CTA-right. */
  .home-v2 .promo { aspect-ratio: auto; min-height: 0; align-items: stretch; padding: 22px; background-image: none; }
  .home-v2 .promo.flex { background: radial-gradient(135% 115% at 78% 16%, #FBF4E7 0%, #F1E2C9 78%); }
  .home-v2 .promo.sleep { background: radial-gradient(135% 115% at 78% 16%, #F3EDFC 0%, #E1D3F5 78%); }
  .home-v2 .promo .inner { max-width: 100%; padding: 0; display: flex; flex-direction: column; gap: 14px; width: 100%; }
  .home-v2 .promo .head { margin-bottom: 0; }
  .home-v2 .promo .head h3 { white-space: normal; font-size: 19px; }
  .home-v2 .promo p { max-width: none; margin-bottom: 0; }
  .home-v2 .promo .promo-bottle { display: flex; justify-content: center; padding: 2px 0; }
  .home-v2 .promo .promo-bottle img { width: auto; max-height: 156px; filter: drop-shadow(0 16px 26px rgba(28,26,22,.26)); }
  .home-v2 .promo .row { flex-wrap: wrap; gap: 14px 16px; justify-content: space-between; align-items: center; }

  /* PRODUCT — stack image over body */
  .home-v2 .prod { flex-direction: column; padding: 24px 22px; gap: 4px; }
  .home-v2 .prod .pimg { flex: none; margin: 0 auto 6px; }
  .home-v2 .prod .pimg img { margin-left: 0; width: 168px; }
  .home-v2 .prod .desc { max-width: 100%; }
  .home-v2 .prod .priceline .p { font-size: 28px; }
  .home-v2 .prod .meta { flex-direction: column; gap: 12px; }

  /* INGREDIENTS */
  .home-v2 .ingr h2 { font-size: 27px; }
  .home-v2 .ingr .links { flex-direction: column; gap: 14px; }

  /* WHY → single column */
  .home-v2 .why-panel { grid-template-columns: 1fr; gap: 26px; padding: 30px 22px; }
  .home-v2 .why-col { padding: 0; }
  .home-v2 .why-title h2 { font-size: 20px; }

  /* TESTIMONIALS */
  .home-v2 section.testi { padding: 54px 0 60px; }
  .home-v2 .testi h2 { font-size: 27px; margin-bottom: 30px; }
  .home-v2 .testi-cards { gap: 20px; }
  .home-v2 .tcard { padding: 24px; }
  .home-v2 .tcard p { font-size: 15px; }

  /* Section rhythm: give the stacked bands a bit more vertical breathing room
     so they don't read as packed at 390px (tops were inherited from ≤960). */
  .home-v2 section.cards { padding-top: 26px; }
  .home-v2 section.ingr { padding-top: 30px; }
  .home-v2 section.hv-why { padding-top: 30px; }

  /* Lifestyle sections → stack: image on top, text below (both products). */
  .home-v2 .hv-lifestyle { padding: 24px 0; }
  .home-v2 .hv-lifestyle .lf-inner { grid-template-columns: 1fr; gap: 24px; }
  .home-v2 .hv-lifestyle.lf-reverse .lf-media { order: 0; }
  .home-v2 .hv-lifestyle .lf-media { aspect-ratio: 16 / 11; }
  .home-v2 .hv-lifestyle h2 { font-size: 27px; }
  .home-v2 .hv-lifestyle p { font-size: 15.5px; }
}

/* ============================================================================
   TEMP-COMPARE — banner-slider hero (full-width, 2 slides).
   Temporary comparison section. Safe to delete this whole block together with
   the .hv-banner-hero markup in front-page.php and mountBannerSlider() in
   main.js. Scoped to .home-v2 like everything else here.
   ========================================================================== */
.home-v2 .hv-banner-hero { position: relative; width: 100%; background: var(--cream); overflow: hidden; }
.home-v2 .bh-track { position: relative; width: 100%; aspect-ratio: 21 / 9; }
.home-v2 .bh-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility 0s linear .7s; }
.home-v2 .bh-slide.is-active { opacity: 1; visibility: visible; transition: opacity .7s ease; }
.home-v2 .bh-slide picture { display: block; width: 100%; height: 100%; }
.home-v2 .bh-slide img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
/* Legibility scrim — desktop: light wash from the left so the dark text reads
   over the empty left zone of the banner. */
.home-v2 .bh-slide::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(247,239,227,.92) 0%, rgba(247,239,227,.55) 32%, rgba(247,239,227,0) 60%); }

/* Text layer (HTML, not baked into the image) */
.home-v2 .bh-overlay { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; }
.home-v2 .bh-text { width: 100%; max-width: 1316px; margin: 0 auto; padding: 0 24px; }
.home-v2 .bh-text-inner { max-width: 440px; }
.home-v2 .bh-text h2 { font-family: 'Playfair Display', serif; font-weight: 700; font-size: clamp(30px, 3.4vw, 52px); line-height: 1.12; letter-spacing: -.018em; color: var(--dark); }
.home-v2 .bh-text p { margin-top: 16px; font-size: clamp(16px, 1.4vw, 20px); line-height: 1.5; color: #5b5446; }
.home-v2 .bh-cta { margin-top: 26px; display: inline-flex; align-items: center; gap: 12px; background: var(--dark); background-image: linear-gradient(180deg,#2b2620,#1C1A16); color: #fff; font-weight: 700; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; padding: 16px 28px; border-radius: 5px; box-shadow: 0 12px 28px -14px rgba(28,26,22,.6); transition: transform .25s ease, box-shadow .25s ease; }
.home-v2 .bh-cta:hover { transform: translateY(-2px); box-shadow: 0 18px 38px -14px rgba(28,26,22,.62); }
.home-v2 .bh-cta svg { transition: transform .25s ease; }
.home-v2 .bh-cta:hover svg { transform: translateX(4px); }

/* Arrows */
.home-v2 .bh-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 4; width: 48px; height: 48px; border-radius: 50%; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--dark); background: rgba(255,255,255,.82); box-shadow: var(--shadow-md); transition: background .2s ease, transform .2s ease; }
.home-v2 .bh-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.home-v2 .bh-prev { left: 18px; }
.home-v2 .bh-next { right: 18px; }

/* Dots */
.home-v2 .bh-dots { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 4; display: flex; gap: 10px; }
/* Visible on any background: translucent-white fill + dark ring + soft shadow. */
.home-v2 .bh-dot { width: 11px; height: 11px; padding: 0; border: 1.5px solid rgba(28,26,22,.55); border-radius: 50%; cursor: pointer; background: rgba(255,255,255,.55); box-shadow: 0 1px 4px rgba(28,26,22,.35); transition: background .2s ease, border-color .2s ease, transform .2s ease; }
.home-v2 .bh-dot:hover { background: rgba(255,255,255,.8); }
.home-v2 .bh-dot.is-active { background: var(--gold); border-color: var(--gold); transform: scale(1.25); }

/* Mobile (<768px): NOT an overlay. Each slide stacks a normal-flow text block
   (on cream) ABOVE the banner. Slides are stacked in one grid cell so the WHOLE
   slide (text + image) cross-fades; the track sizes to the tallest slide.
   The 4:5 art has an empty gradient band across its top ~20% (it was made for
   overlay text, now moved out), so the image box is squared to 1:1 and the img
   uses object-position:center bottom — cover crops that top 20% on BOTH banners
   while keeping heads (≈32–34%) and bottles safely in frame. The box is pinned
   to the slide bottom, so its centre is a fixed 50vw from the section bottom
   (box height = 100vw) — that lets the arrows centre on the IMAGE. */
@media (max-width: 767.98px) {
  /* The slider is the hero now → sit flush under the header (no gap). */
  .home-v2 .hv-banner-hero { margin-top: 0; }

  /* Stack all slides in the same grid cell → overlap for the fade, height = tallest. */
  .home-v2 .bh-track { display: grid; aspect-ratio: auto; }
  .home-v2 .bh-slide { position: relative; inset: auto; grid-area: 1 / 1; display: flex; flex-direction: column; }
  .home-v2 .bh-slide::after { display: none; } /* no scrim — text isn't over the image */

  /* Text → normal-flow block above the image, on cream, centred. */
  .home-v2 .bh-overlay { position: static; order: 1; display: block; background: var(--cream); padding: 26px 20px 24px; }
  .home-v2 .bh-text { max-width: none; margin: 0 auto; padding: 0; text-align: center; }
  .home-v2 .bh-text-inner { max-width: none; }
  .home-v2 .bh-text h2 { font-size: clamp(26px, 7vw, 34px); }
  .home-v2 .bh-text p { margin-top: 12px; font-size: 16px; }
  /* CTA hidden on mobile for now (kept in the markup). */
  .home-v2 .bh-cta { display: none; margin-top: 18px; }

  /* Banner → below the text, pinned to the slide bottom. The box is squared to
     1:1 and the img anchored to the bottom, so cover crops the empty gradient
     band off the top (~20%) and shows only the subject + bottle. */
  .home-v2 .bh-slide picture { order: 2; margin-top: auto; display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; }
  .home-v2 .bh-slide img { width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }

  /* Arrows: vertically centred on the image area — works for the full Sleep slide
     and the natural-height Flex slide alike. */
  .home-v2 .bh-arrow { top: 38%; bottom: auto; transform: translateY(-50%); width: 40px; height: 40px; }
  .home-v2 .bh-arrow:hover { transform: translateY(-50%) scale(1.06); }
  .home-v2 .bh-prev { left: 10px; }
  .home-v2 .bh-next { right: 10px; }

  /* Dots over the bottom of the slide. */
  .home-v2 .bh-dots { bottom: 16px; }

  /* ── Sleep slide full-screen treatment (.bh-slide-full), mobile only ──────────
     The new 9:16 image sits at the TOP (cover, center top); below it the slide fills
     with a per-slide colour (--bh-fill-rgb = the banner's bottom-edge tone), blended
     over the image's bottom ~22% so there's no visible seam. Text/CTA overlay at the
     top with a faint light scrim. Other slides keep the cream text-top / square-image
     layout (they just sit at the top of the now full-height track). */
  .home-v2 .bh-slide { --bh-fill-rgb: 247, 239, 227; } /* fallback fill = cream */
  .home-v2 .bh-slide:not(.bh-slide-full) { align-self: start; }
  .home-v2 .bh-slide-full { align-self: stretch; display: block; position: relative; min-height: calc(100svh - var(--bh-header, 64px)); background: rgb(var(--bh-fill-rgb)); overflow: hidden; }
  .home-v2 .bh-slide-full picture { order: 0; margin: 0; position: relative; display: block; width: 100%; height: auto; aspect-ratio: auto; line-height: 0; }
  .home-v2 .bh-slide-full img { width: 100%; height: auto; object-fit: cover; object-position: center top; }
  /* gradient blend: image bottom fades into the fill colour (same colour, alpha 0→1 → no grey seam) */
  .home-v2 .bh-slide-full picture::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 22%; background: linear-gradient(to bottom, rgba(var(--bh-fill-rgb), 0), rgb(var(--bh-fill-rgb)) 94%); pointer-events: none; }
  /* text + CTA at the top over the clean zone; faint cream scrim lifts the dark text */
  .home-v2 .bh-slide-full .bh-overlay { position: absolute; inset: 0 0 auto 0; order: 0; display: block; background: linear-gradient(to bottom, rgba(247,239,227,.58), rgba(247,239,227,0)); padding: 28px; z-index: 3; }
  .home-v2 .bh-slide-full .bh-text { text-align: center; max-width: none; }
}

/* Respect reduced-motion: no fade (autoplay is also disabled in JS). */
@media (prefers-reduced-motion: reduce) {
  .home-v2 .bh-slide { transition: none; }
  .home-v2 .bh-slide.is-active { transition: none; }

  /* Ingredient marquee → static, responsive grid (no motion). The duplicate set is
     hidden so only one copy of each tile shows. */
  .home-v2 .ingr-marquee { overflow: visible; -webkit-mask-image: none; mask-image: none; }
  .home-v2 .ingr-track { animation: none; width: auto; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 24px; }
  .home-v2 .ingr-track .ingr-item { width: auto; }
  .home-v2 .ingr-track .ingr-item.is-dup { display: none; }
}
