/* Homepage V2 PREVIEW (design of 21 Nov 2026, tracker RV-147). Only loaded by templates/eg/pages/home_v2.html.
   Adds the six V2 pieces on top of static/eg/home-v1.css (which is shared with the live Home and is NOT edited):
   1 hero inputs · 2 picture pills in a sentence · 3 outline chapter numbers · 4 stacked market pills + topographic lines
   5 latte Capabilities section · 6 blueprint grid behind How it works.
   Every rule is scoped under .hv2 (the preview wrapper is <div class="hv1 hv2">), so the live Home never matches.
   Motion keys off classes home-v1.js already sets (.hv1-js, .hv1-in, .is-on). Reduced motion: everything is shown, still. */

/* ---------- 1. hero: "Where do you sit?" inputs ---------- */
body.eg .hv1.hv2 .hv2-ws-in{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:8px;margin:14px 0 4px}
body.eg .hv1.hv2 .hv2-ws-in label{display:flex;flex-direction:column;gap:4px;min-width:0;margin:0;font:700 10.5px/1.4 var(--sans);letter-spacing:.1em;text-transform:uppercase;color:var(--hv-dim)}
body.eg .hv1.hv2 .hv2-ws-in select,
body.eg .hv1.hv2 .hv2-ws-in input{font:400 16px/1.2 var(--sans);letter-spacing:0;text-transform:none;color:var(--ink);background:rgba(9,7,6,.55);border:1px solid var(--hv-gline);border-radius:12px;padding:10px 12px;min-height:44px;width:100%;min-width:0;margin:0;box-shadow:none}
body.eg .hv1.hv2 .hv2-ws-in select{-webkit-appearance:none;appearance:none;padding-right:34px;text-overflow:ellipsis;background-image:linear-gradient(45deg,transparent 50%,#E2BE92 50%),linear-gradient(135deg,#E2BE92 50%,transparent 50%);background-position:calc(100% - 18px) 55%,calc(100% - 12px) 55%;background-size:6px 6px,6px 6px;background-repeat:no-repeat;background-color:rgba(9,7,6,.55)}
body.eg .hv1.hv2 .hv2-ws-in select option{color:#1A120E;background:#FFF9F0}
body.eg .hv1.hv2 .hv2-ws-in select:focus-visible,
body.eg .hv1.hv2 .hv2-ws-in input:focus-visible{outline:2px solid var(--gold);outline-offset:1px}
body.eg .hv1.hv2 .hv2-ws-f{position:relative;display:block}
body.eg .hv1.hv2 .hv2-ws-f i{position:absolute;left:12px;top:50%;transform:translateY(-50%);font:600 13px/1 var(--sans);font-style:normal;letter-spacing:.02em;color:var(--gold);pointer-events:none}
body.eg .hv1.hv2 .hv2-ws-f input{padding-left:52px;font-variant-numeric:tabular-nums}
body.eg .hv1.hv2 .hv2-ws .hv1-ws-gap{margin:12px 0 10px}
body.eg .hv1.hv2 .hv2-ws .hv1-ws-n{overflow-wrap:anywhere}
body.eg .hv1.hv2 .hv2-ws .hv1-ws-row b{overflow-wrap:anywhere}
body.eg .hv1.hv2 .hv2-ws-note{margin-top:4px}
body.eg .hv1.hv2 .hv2-ws .hv1-ws-spark .yo{transition:all .4s var(--hv-ez)}

/* ---------- 2. one-line statement with picture pills ---------- */
body.eg .hv1.hv2 .hv2-pills{padding:20px 0 40px}
body.eg .hv1.hv2 .hv2-pl{font:400 clamp(1.9rem,4.4vw,3.6rem)/1.22 var(--serif);letter-spacing:-.015em;text-align:center;max-width:1050px;margin:0 auto;color:#E6D9CB;text-wrap:balance}
body.eg .hv1.hv2 .hv2-ip{display:inline-block;vertical-align:middle;height:.86em;width:2.3em;border-radius:999px;overflow:hidden;margin:0 .12em;background:var(--hv-card2);box-shadow:inset 0 0 0 1px rgba(226,190,146,.35),0 8px 18px rgba(0,0,0,.35);transition:width 1s var(--hv-ez) .2s}
body.eg .hv1.hv2 .hv2-ip img{width:100%;height:100%;object-fit:cover;display:block}
body.eg .hv1.hv2 .hv2-ip-t{width:auto;height:auto;padding:.02em .4em .08em;background:linear-gradient(135deg,#F3D9AE,#D9AE7E 45%,#B98A5C);color:#231812;font-style:italic;line-height:1.1;box-shadow:0 8px 22px rgba(185,138,92,.35)}
/* the picture pills grow open when the sentence scrolls in (only when JS has switched reveals on) */
/* Word pills in glass (Macky, 27 Nov 2026: "words, no photos"): same sentence, the two photo pills became words. */
body.eg .hv1.hv2 .hv2-ip-g{width:auto;height:auto;max-width:100%;overflow:visible;padding:.02em .4em .08em;line-height:1.1;color:#F4E9DC;background:linear-gradient(135deg,rgba(255,244,228,.14),rgba(255,244,228,.05));-webkit-backdrop-filter:blur(14px) saturate(140%);backdrop-filter:blur(14px) saturate(140%);box-shadow:inset 0 0 0 1px rgba(226,190,146,.42),inset 0 1px 0 rgba(255,255,255,.18),0 8px 22px rgba(0,0,0,.35)}
@media (prefers-reduced-transparency:reduce){body.eg .hv1.hv2 .hv2-ip-g{background:#3A2A20;-webkit-backdrop-filter:none;backdrop-filter:none}}
body.eg .hv1.hv2.hv1-js .hv2-pl:not(.hv1-in) .hv2-ip:not(.hv2-ip-t):not(.hv2-ip-g){width:0}

/* ---------- 3. outline chapter numbers above each scroll-story step ---------- */
body.eg .hv1.hv2 .hv2-chap{display:block;font:400 clamp(5rem,9vw,8rem)/.9 var(--serif);color:transparent;-webkit-text-stroke:1.2px rgba(226,190,146,.45);margin:0 0 6px;transition:opacity .8s,transform .8s var(--hv-ez)}
body.eg .hv1.hv2.hv1-js .hv1-stp:not(.is-on) .hv2-chap{opacity:0;transform:translateY(20px)}

/* ---------- 4. Market Trends teaser: stacked pills over topographic lines ---------- */
body.eg .hv1.hv2 #hv1-mt{position:relative;isolation:isolate}
body.eg .hv1.hv2 .hv2-topo{position:absolute;left:-6%;top:-12%;width:112%;height:124%;z-index:-1;pointer-events:none;opacity:.5;-webkit-mask:radial-gradient(ellipse at 70% 50%,#000 30%,transparent 72%);mask:radial-gradient(ellipse at 70% 50%,#000 30%,transparent 72%)}
body.eg .hv1.hv2 .hv2-topo path{fill:none;stroke:rgba(226,190,146,.22);stroke-width:1;stroke-dasharray:3000;stroke-dashoffset:0;transition:stroke-dashoffset 4s ease}
body.eg .hv1.hv2.hv1-js #hv1-mt:not(.hv1-in) .hv2-topo path{stroke-dashoffset:3000}
body.eg .hv1.hv2 .hv2-pstk{display:block;padding:6px 0 4px}
body.eg .hv1.hv2 .hv2-ps{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:14px;align-items:center;padding:18px 24px 34px;border-radius:999px;background:linear-gradient(180deg,color-mix(in srgb,var(--pb) 94%,#fff 6%),var(--pb));background-color:var(--pb);color:var(--pf);text-decoration:none;margin-top:-34px;box-shadow:0 -10px 24px rgba(0,0,0,.35),inset 0 1px 0 rgba(255,255,255,.12);transition:transform .9s var(--hv-ez);transition-delay:calc(var(--k)*70ms)}
body.eg .hv1.hv2 .hv2-ps:first-child{margin-top:0}
body.eg .hv1.hv2 .hv2-ps:last-child{padding-bottom:18px}
body.eg .hv1.hv2 a.hv2-ps:hover,body.eg .hv1.hv2 a.hv2-ps:focus-visible{color:var(--pf);transform:translateY(-4px);transition-delay:0s}
body.eg .hv1.hv2 a.hv2-ps:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
/* the stack starts pulled together and fans out when the block scrolls in */
body.eg .hv1.hv2.hv1-js #hv1-mt:not(.hv1-in) .hv2-ps{transform:translateY(calc(var(--k)*-14px))}
body.eg .hv1.hv2 .hv2-ps-n{font-weight:600;font-size:15px;min-width:0;overflow-wrap:anywhere}
body.eg .hv1.hv2 .hv2-ps-n small{display:block;font-weight:400;font-size:11.5px;opacity:.78}
body.eg .hv1.hv2 .hv2-ps b{font:400 24px/1.1 var(--serif);font-variant-numeric:tabular-nums;white-space:nowrap}
body.eg .hv1.hv2 .hv2-ps em{font-style:normal;font-size:12.5px;opacity:.88;font-variant-numeric:tabular-nums;min-width:108px;text-align:right;color:inherit;white-space:nowrap}

/* ---------- 5. latte Capabilities (light section for rhythm) ---------- */
body.eg .hv1.hv2 .hv1-caps-sec{background:#EDE3D4;color:#3B2A1F;border:0}
body.eg .hv1.hv2 .hv1-caps-sec .hv1-eb{color:#6F4E37}
html body.eg .hv1.hv2 .hv1-caps-sec h2{color:#3B2A1F}
html body.eg .hv1.hv2 .hv1-caps-sec h2 em{color:#6F4E37}
body.eg .hv1.hv2 .hv1-caps-sec .hv1-head .btn-ghost{color:#3B2A1F;border-color:#B08968;background:transparent}
body.eg .hv1.hv2 .hv1-caps-sec .hv1-head .btn-ghost:hover{background:rgba(111,78,55,.10);color:#3B2A1F}
body.eg .hv1.hv2 .hv1-caps-sec .hv1-cap{background:#FFF9F0;border-color:#D4B996;color:#3B2A1F;box-shadow:0 20px 40px -30px rgba(59,42,31,.45)}
body.eg .hv1.hv2 .hv1-caps-sec .hv1-cap:hover{border-color:#B08968}
html body.eg .hv1.hv2 .hv1-caps-sec .hv1-cap h3{color:#3B2A1F}
body.eg .hv1.hv2 .hv1-caps-sec .hv1-cap p{color:#5F4330}
body.eg .hv1.hv2 .hv1-caps-sec .hv1-cap p a{color:#3B2A1F}
body.eg .hv1.hv2 .hv1-caps-sec .hv1-cap .hv1-n{-webkit-text-stroke-color:rgba(111,78,55,.4)}
body.eg .hv1.hv2 .hv1-caps-sec .hv1-cv-rate i{background:#D4B996}
body.eg .hv1.hv2 .hv1-caps-sec .hv1-cv-rate i:nth-child(5){background:#6F4E37}
body.eg .hv1.hv2 .hv1-caps-sec .hv1-cv-cal i{background:rgba(59,42,31,.08)}
body.eg .hv1.hv2 .hv1-caps-sec .hv1-cv-cal i.hot{background:#B08968;animation-name:hv2Hot}
@keyframes hv2Hot{50%{background:#6F4E37}}
body.eg .hv1.hv2 .hv1-caps-sec .hv1-cv-cmp .track{background:linear-gradient(90deg,#EDE3D4,#B08968)}
body.eg .hv1.hv2 .hv1-caps-sec .hv1-cv-cmp .mid{background:#3B2A1F}
body.eg .hv1.hv2 .hv1-caps-sec .hv1-cv-cmp .you{background:#6F4E37}
body.eg .hv1.hv2 .hv1-caps-sec .hv1-cv-str path{stroke:#6F4E37}
body.eg .hv1.hv2 .hv1-caps-sec .hv1-cv-chat span{background:#6F4E37}
body.eg .hv1.hv2 .hv1-caps-sec .hv1-cv-ai .t{stroke:rgba(59,42,31,.12)}
body.eg .hv1.hv2 .hv1-caps-sec .hv1-cv-ai .s{stroke:#6F4E37}
/* the wide RevEyeQ card (shown only when RevEyeQ is public) */
body.eg .hv1.hv2 .hv1-caps-sec .hv1-cap-rq{background:linear-gradient(120deg,rgba(176,137,104,.22),rgba(176,137,104,.04)),#FFF9F0;border-color:#B08968}
body.eg .hv1.hv2 .hv1-caps-sec .hv1-cap-rq .hv1-rq-n{color:#6F4E37}
body.eg .hv1.hv2 .hv1-caps-sec .hv1-cap-rq .btn-ghost{color:#3B2A1F;border-color:#B08968;background:transparent}

/* ---------- 6. blueprint grid behind How it works ---------- */
body.eg .hv1.hv2 .hv1-proc{background-color:var(--bg,#090706);background-image:linear-gradient(rgba(226,190,146,.06) 1px,transparent 1px),linear-gradient(90deg,rgba(226,190,146,.06) 1px,transparent 1px),linear-gradient(rgba(226,190,146,.03) 1px,transparent 1px),linear-gradient(90deg,rgba(226,190,146,.03) 1px,transparent 1px);background-size:96px 96px,96px 96px,24px 24px,24px 24px;background-position:center}

/* ---------- phones ---------- */
@media (max-width:860px){
  /* the story stacks on phones (nothing is pinned), so the numbers are simply shown */
  body.eg .hv1.hv2.hv1-js .hv1-stp:not(.is-on) .hv2-chap{opacity:1;transform:none}
}
@media (max-width:600px){
  body.eg .hv1.hv2 .hv2-ws-in{grid-template-columns:minmax(0,1fr)}
  body.eg .hv1.hv2 .hv2-chap{font-size:4.5rem}
  body.eg .hv1.hv2 .hv2-ps{grid-template-columns:minmax(0,1fr) auto;padding:16px 20px 48px}
  body.eg .hv1.hv2 .hv2-ps:last-child{padding-bottom:16px}
  body.eg .hv1.hv2 .hv2-ps b{font-size:20px}
  body.eg .hv1.hv2 .hv2-ps em{grid-column:1/-1;text-align:left;min-width:0;margin-top:-10px}
  body.eg .hv1.hv2 .hv2-topo{left:0;width:100%}
}

/* ---------- reduced motion: everything visible, nothing moves ---------- */
@media (prefers-reduced-motion:reduce){
  body.eg .hv1.hv2 .hv2-ip,body.eg .hv1.hv2 .hv2-chap,body.eg .hv1.hv2 .hv2-ps,body.eg .hv1.hv2 .hv2-topo path,
  body.eg .hv1.hv2 .hv2-ws .hv1-ws-spark .yo{transition:none}
  body.eg .hv1.hv2.hv1-js .hv2-pl:not(.hv1-in) .hv2-ip:not(.hv2-ip-t):not(.hv2-ip-g){width:2.3em}
  body.eg .hv1.hv2.hv1-js .hv1-stp:not(.is-on) .hv2-chap{opacity:1;transform:none}
  body.eg .hv1.hv2.hv1-js #hv1-mt:not(.hv1-in) .hv2-ps{transform:none}
  body.eg .hv1.hv2.hv1-js #hv1-mt:not(.hv1-in) .hv2-topo path{stroke-dashoffset:0}
  body.eg .hv1.hv2 a.hv2-ps:hover{transform:none}
  body.eg .hv1.hv2 .hv1-caps-sec .hv1-cv-cal i.hot{animation:none}
}
