/* Heiress Heritage — Coverage Studio (guided). Scoped to .hh-wiz.
   Palette: emerald #07241B / #04170F, gold #C5A253 / #E0C385 / #F0DCA6, ivory #FBF8F1.
   Type: Cormorant Garamond (display), Jost (interface). Both already enqueued site-wide. */

/* the original two-column ledger becomes the invisible data substrate */
.hh-wiz-host{
  position:absolute !important; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0 0 0 0); clip-path:inset(50%); white-space:nowrap; border:0; left:-9999px;
}

/* ============================ shell ============================ */
.hh-wiz{
  --emer:#07241B; --emer2:#04170F; --gold:#C5A253; --gold2:#E0C385; --gold3:#F0DCA6; --ivory:#FBF8F1;
  display:grid; grid-template-columns:300px 1fr; gap:0;
  background:linear-gradient(160deg,#0A2C21 0%,#07241B 55%,#04170F 100%);
  border:1px solid rgba(197,162,83,.42);
  border-radius:4px;
  box-shadow:0 44px 120px -46px rgba(3,18,12,.75);
  overflow:hidden;
  color:var(--ivory);
  font-family:'Jost',system-ui,sans-serif;
}
@media (max-width:900px){ .hh-wiz{ grid-template-columns:1fr; } }

/* ---- the running-number rail ---- */
.hh-wiz-rail{
  position:relative;
  padding:40px 30px 34px;
  background:linear-gradient(180deg, rgba(4,23,15,.55), rgba(4,23,15,.08));
  border-right:1px solid rgba(197,162,83,.24);
  display:flex; flex-direction:column;
}
@media (max-width:900px){ .hh-wiz-rail{ border-right:0; border-bottom:1px solid rgba(197,162,83,.24); padding:26px 24px 22px; } }
.hh-rail-kick{
  font-size:10.5px; font-weight:600; letter-spacing:.22em; text-transform:uppercase;
  color:var(--gold);
}
.hh-rail-big{
  font-family:'Cormorant Garamond',Georgia,serif; font-weight:600;
  font-size:clamp(3rem,5.6vw,4.6rem); line-height:.98; letter-spacing:-.01em;
  color:var(--ivory); margin:10px 0 4px; font-variant-numeric:tabular-nums;
  transition:color .4s ease;
}
.hh-wiz-rail.is-live .hh-rail-big{ color:var(--gold3); }
.hh-rail-note{
  font-size:13px; font-weight:300; line-height:1.6; color:rgba(251,248,241,.62); margin:0;
  max-width:34ch;
}
/* the vertical chapter index */
.hh-dots{ margin-top:auto; padding-top:30px; display:flex; flex-direction:column; gap:2px; }
@media (max-width:900px){ .hh-dots{ display:none; } }
.hh-dot{
  display:flex; align-items:baseline; gap:12px; padding:9px 0; cursor:default; opacity:.4;
  transition:opacity .25s ease; border-top:1px solid rgba(251,248,241,.08);
}
.hh-dot:first-child{ border-top:0; }
.hh-dot i{
  font-style:normal; font-family:'Cormorant Garamond',serif; font-size:15px; font-weight:600;
  color:var(--gold); min-width:22px; font-variant-numeric:tabular-nums;
}
.hh-dot em{ font-style:normal; font-size:11.5px; letter-spacing:.11em; text-transform:uppercase; font-weight:500; }
.hh-dot.is-done{ opacity:.72; cursor:pointer; }
.hh-dot.is-done i::after{ content:"  ✓"; color:var(--gold2); font-family:'Jost',sans-serif; font-size:10px; }
.hh-dot.is-on{ opacity:1; }
.hh-dot.is-on em{ color:var(--gold3); }

/* ---- the body / stage ---- */
.hh-wiz-body{ position:relative; padding:0; min-height:520px; display:flex; flex-direction:column; }
.hh-wiz-stage{ position:relative; flex:1; }

.hh-panel{
  position:absolute; inset:0; padding:40px 46px 24px; min-height:508px;
  display:flex; flex-direction:column; justify-content:center;
  opacity:0; visibility:hidden; transform:translateX(26px);
  transition:opacity .5s cubic-bezier(.16,1,.3,1), transform .5s cubic-bezier(.16,1,.3,1), visibility .5s;
  overflow:hidden;
}
@media (max-width:600px){ .hh-panel{ padding:30px 24px 16px; min-height:0; justify-content:flex-start; } }
.hh-panel.is-active{ position:relative; opacity:1; visibility:visible; transform:none; }
.hh-panel.is-past{ transform:translateX(-26px); }
.hh-panel--number{ justify-content:flex-start; }
@media (prefers-reduced-motion:reduce){ .hh-panel{ transition:none; } }

/* two columns on desktop: the questions, and the "why" aside */
.hh-panel-cols{ display:grid; grid-template-columns:1fr; gap:0; align-items:center; }
@media (min-width:1120px){
  .hh-panel-cols{ grid-template-columns:minmax(0,1.02fr) minmax(0,.98fr); gap:56px; }
  .hh-panel--number .hh-panel-cols{ grid-template-columns:1fr; }
}
.hh-panel-aside{ display:none; }
@media (min-width:1120px){
  .hh-panel-aside{ display:block; border-left:1px solid rgba(197,162,83,.28); padding-left:36px; align-self:center; }
}
.hh-aside-k{ font-size:10.5px; font-weight:600; letter-spacing:.2em; text-transform:uppercase; color:var(--gold); }
.hh-aside-h{ font-family:'Cormorant Garamond',Georgia,serif; font-weight:600; font-size:1.8rem; line-height:1.16; color:var(--ivory); margin:10px 0 16px; }
.hh-aside-p{ font-size:15px; font-weight:300; line-height:1.8; color:rgba(251,248,241,.76); margin:0 0 14px; }
.hh-aside-list{ list-style:none; margin:16px 0 0; padding:0; display:flex; flex-direction:column; gap:10px; }
.hh-aside-list li{ font-size:13.5px; font-weight:300; line-height:1.6; color:rgba(251,248,241,.68); padding-left:17px; position:relative; }
.hh-aside-list li::before{ content:""; position:absolute; left:0; top:8px; width:5px; height:5px; border-radius:50%; background:var(--gold); }

.hh-panel-head{ margin-bottom:26px; max-width:36ch; position:relative; z-index:1; }
.hh-panel-num{
  font-family:'Cormorant Garamond',serif; font-size:15px; font-weight:600; letter-spacing:.05em;
  color:var(--gold); display:inline-block; margin-bottom:6px;
}
.hh-panel-num::after{ content:""; display:inline-block; width:34px; height:1px; background:var(--gold); vertical-align:middle; margin-left:12px; opacity:.6; }
.hh-panel-title{
  font-family:'Cormorant Garamond',Georgia,serif; font-weight:600; font-size:clamp(1.9rem,3.4vw,2.7rem);
  line-height:1.08; color:var(--ivory); margin:0 0 8px;
}
.hh-panel-lead{ font-size:14.5px; font-weight:300; line-height:1.6; color:rgba(251,248,241,.7); margin:0; }
.hh-panel-note{ font-size:13.5px; font-weight:300; line-height:1.65; color:rgba(251,248,241,.6); margin:18px 0 0; max-width:46ch; }

.hh-panel-body{ min-width:0; }
/* ---- a question row ---- */
.hh-q{ position:relative; z-index:1; margin:22px 0; max-width:560px; }
.hh-q-lbl{
  display:flex; flex-direction:column; gap:3px; margin-bottom:12px;
}
.hh-q-lbl{ font-size:12px; font-weight:600; letter-spacing:.13em; text-transform:uppercase; color:rgba(251,248,241,.78); }
.hh-q-hint{ font-size:12.5px; font-weight:300; letter-spacing:.01em; text-transform:none; color:rgba(251,248,241,.5); line-height:1.5; }
.hh-q-in{ display:flex; align-items:baseline; gap:8px; border-bottom:1px solid rgba(197,162,83,.4); padding-bottom:8px; transition:border-color .25s ease; }
.hh-q-in:focus-within{ border-bottom-color:var(--gold2); }
.hh-q-cur{ font-family:'Cormorant Garamond',serif; font-size:1.5rem; color:rgba(197,162,83,.85); }
.hh-q-suf{ font-size:11px; letter-spacing:.14em; text-transform:uppercase; color:rgba(251,248,241,.45); }
.hh-q input[type=number]{
  flex:1; width:100%; background:transparent; border:0; padding:0; box-shadow:none; outline:none;
  font-family:'Cormorant Garamond',Georgia,serif; font-weight:500; font-size:clamp(1.7rem,3vw,2.2rem);
  color:var(--ivory); caret-color:var(--gold); -webkit-appearance:none; appearance:none; -moz-appearance:textfield;
  font-variant-numeric:tabular-nums;
}
.hh-q input[type=number]::-webkit-outer-spin-button,
.hh-q input[type=number]::-webkit-inner-spin-button{ -webkit-appearance:none; margin:0; }
.hh-q input[type=number]::placeholder{ color:rgba(251,248,241,.25); }
.hh-q.noDollar .hh-q-in{ max-width:200px; }

/* slider */
.hh-slide{
  width:100%; margin:16px 0 2px; -webkit-appearance:none; appearance:none; height:3px;
  background:linear-gradient(to right,var(--gold) var(--pct,0%),rgba(251,248,241,.15) var(--pct,0%));
  border-radius:2px; outline:none; cursor:pointer;
}
.hh-slide::-webkit-slider-thumb{ -webkit-appearance:none; width:18px; height:18px; border-radius:50%; background:var(--gold); border:2px solid var(--emer); box-shadow:0 0 0 1px rgba(197,162,83,.7); transition:transform .15s ease; }
.hh-slide::-webkit-slider-thumb:hover{ transform:scale(1.18); }
.hh-slide::-moz-range-thumb{ width:15px; height:15px; border-radius:50%; background:var(--gold); border:2px solid var(--emer); }
.hh-slide:focus-visible{ box-shadow:0 0 0 3px rgba(197,162,83,.35); }

/* count chips — tap the number, no plus/minus */
.hh-cchips{ display:flex; flex-wrap:wrap; gap:9px; }
.hh-cchip{
  min-width:54px; height:48px; padding:0 8px; border-radius:9px;
  border:1px solid rgba(197,162,83,.38); background:rgba(251,248,241,.035);
  color:var(--ivory); font-family:'Cormorant Garamond',Georgia,serif; font-size:1.45rem; font-weight:600;
  cursor:pointer; transition:background .2s ease,border-color .2s ease,color .2s ease,transform .18s ease;
  font-variant-numeric:tabular-nums;
}
.hh-cchip:hover{ border-color:var(--gold2); transform:translateY(-1px); }
.hh-cchip.is-on{ background:var(--gold); border-color:var(--gold); color:var(--emer); }
.hh-cchip:focus-visible{ outline:none; box-shadow:0 0 0 3px rgba(197,162,83,.35); }

/* legacy stepper (unused, kept for safety) */
.hh-stepper{ display:inline-flex; align-items:center; gap:2px; border:1px solid rgba(197,162,83,.4); border-radius:999px; padding:4px; }
.hh-stepper button{ width:38px; height:38px; border-radius:50%; border:0; background:transparent; color:var(--gold2); font-size:22px; line-height:1; cursor:pointer; }
.hh-stepper b{ min-width:48px; text-align:center; font-family:'Cormorant Garamond',serif; font-size:1.9rem; font-weight:600; color:var(--ivory); }

/* pill toggle */
.hh-toggle-row{ display:flex; align-items:center; gap:14px; flex-wrap:wrap; margin:24px 0 4px; position:relative; z-index:1; }
.hh-pill{
  font-family:'Jost',sans-serif; font-size:11px; font-weight:500; letter-spacing:.12em; text-transform:uppercase;
  color:rgba(251,248,241,.85); background:rgba(251,248,241,.05); border:1px solid rgba(197,162,83,.5);
  border-radius:999px; padding:10px 20px; cursor:pointer; transition:all .25s ease; white-space:nowrap;
}
.hh-pill[aria-pressed=true]{ background:var(--gold); color:var(--emer); border-color:var(--gold); }
.hh-pill:hover{ transform:translateY(-1px); }
.hh-toggle-note{ font-size:12.5px; font-weight:300; color:rgba(251,248,241,.5); line-height:1.5; max-width:34ch; }

/* ---- nav bar ---- */
.hh-wiz-nav{
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  padding:20px 46px 30px; border-top:1px solid rgba(251,248,241,.08);
}
@media (max-width:600px){ .hh-wiz-nav{ padding:18px 24px 24px; } }
.hh-nav-back{
  background:transparent; border:0; color:rgba(251,248,241,.6); font-family:'Jost',sans-serif;
  font-size:11px; font-weight:500; letter-spacing:.14em; text-transform:uppercase; cursor:pointer;
  padding:10px 4px; transition:color .2s ease;
}
.hh-nav-back:hover{ color:var(--ivory); }
.hh-wiz-crumbs{ flex:1; }
.hh-nav-next{
  font-family:'Jost',sans-serif; font-size:12px; font-weight:500; letter-spacing:.16em; text-transform:uppercase;
  color:var(--emer); background:var(--gold); border:1px solid var(--gold); border-radius:999px;
  padding:15px 34px; cursor:pointer; transition:all .25s ease;
}
.hh-nav-next:hover{ background:transparent; color:var(--gold2); transform:translateY(-1px); }

/* ============================ the reveal (chapter 05) ============================ */
.hh-wiz-reveal{ position:relative; z-index:1; }
.hh-rev-head{ text-align:left; margin-bottom:8px; }
.hh-rev-kick{ font-size:10.5px; font-weight:600; letter-spacing:.22em; text-transform:uppercase; color:var(--gold); }
.hh-wiz-reveal .hh-gap-value{
  font-family:'Cormorant Garamond',Georgia,serif; font-weight:600; font-size:clamp(3.4rem,8vw,5.4rem);
  line-height:1; color:var(--ivory); margin:8px 0 6px; font-variant-numeric:tabular-nums; letter-spacing:-.015em;
}
.hh-rev-sub{ font-size:14px; font-weight:300; line-height:1.6; color:rgba(251,248,241,.66); margin:0 0 22px; max-width:52ch; }

.hh-shape{ background:rgba(4,23,15,.5); border:1px solid rgba(197,162,83,.4); border-radius:4px; padding:22px 24px; margin:16px 0; }
.hh-shape.empty{ opacity:.5; }
.hh-shape > i{ font-style:normal; font-size:10.5px; font-weight:600; letter-spacing:.2em; text-transform:uppercase; color:var(--gold); }
.hh-shape-line{ display:flex; align-items:baseline; gap:12px; flex-wrap:wrap; margin:8px 0 6px; }
.hh-shape-line b{ font-family:'Cormorant Garamond',serif; font-weight:600; color:var(--ivory); }
.hh-shape .sFace{ font-size:clamp(2rem,4vw,2.8rem); line-height:1; }
.hh-shape .sFor{ font-size:13px; color:rgba(251,248,241,.5); font-weight:300; }
.hh-shape .sTerm{ font-size:clamp(1.4rem,3vw,1.9rem); color:var(--gold2); }
.hh-shape .sNote{ font-size:13px; font-weight:300; line-height:1.6; color:rgba(251,248,241,.62); margin:6px 0 0; }

.hh-wiz-reveal .hh-gap-trail{ display:flex; flex-direction:column; gap:7px; margin:20px 0 10px; padding-bottom:12px; border-bottom:3px double rgba(197,162,83,.5); }
.hh-wiz-reveal .hh-gap-trail div{ display:flex; justify-content:space-between; align-items:baseline; gap:16px; }
.hh-wiz-reveal .hh-gap-trail i{ font-style:normal; font-size:11px; font-weight:500; letter-spacing:.14em; text-transform:uppercase; color:rgba(251,248,241,.55); }
.hh-wiz-reveal .hh-gap-trail em{ font-style:normal; font-family:'Cormorant Garamond',serif; font-size:1.3rem; color:rgba(251,248,241,.9); font-variant-numeric:tabular-nums; }

.hh-meter{ margin:16px 0; }
.hh-meter .mrow{ display:flex; justify-content:space-between; align-items:baseline; font-size:11px; letter-spacing:.12em; text-transform:uppercase; color:rgba(251,248,241,.6); margin-bottom:7px; }
.hh-meter .mpct{ color:var(--gold2); font-weight:600; }
.hh-meter .track{ height:4px; background:rgba(251,248,241,.12); border-radius:2px; overflow:hidden; }
.hh-meter .fill{ height:100%; background:linear-gradient(to right,var(--gold),var(--gold3)); width:0; transition:width .6s cubic-bezier(.16,1,.3,1); }

.hh-tower{ position:relative; margin:20px 0 8px; }
.hh-tower svg{ width:100%; height:auto; display:block; }
.hh-tower.empty svg{ opacity:.35; }
.hh-ctip{ position:absolute; transform:translate(-50%,-112%); background:var(--emer2); border:1px solid rgba(197,162,83,.5); border-radius:6px; padding:10px 13px; pointer-events:none; opacity:0; transition:opacity .2s ease; min-width:150px; z-index:5; }
.hh-ctip.on{ opacity:1; }
.hh-ctip .tip-yr{ font-size:10px; font-weight:600; letter-spacing:.14em; text-transform:uppercase; color:var(--gold); }
.hh-ctip .tip-big{ font-family:'Cormorant Garamond',serif; font-size:1.4rem; color:var(--ivory); line-height:1.2; }
.hh-ctip .tip-row{ display:flex; justify-content:space-between; gap:14px; font-size:12px; font-weight:300; color:rgba(251,248,241,.75); }
@keyframes hhseg{ from{ transform:scaleY(0); } to{ transform:scaleY(1); } }
.hh-tower svg .seg.grow{ transform-origin:center bottom; transform-box:fill-box; animation:hhseg .7s cubic-bezier(.22,1,.36,1) backwards; }
.hh-tower svg .gapband{ filter:drop-shadow(0 0 6px rgba(224,116,47,.6)); }

.hh-insight{ font-size:14px; font-weight:300; line-height:1.7; color:rgba(251,248,241,.8); min-height:3.4em; margin:8px 0 18px; transition:opacity .2s ease; }
.hh-insight.fade{ opacity:0; }
.hh-insight b{ color:var(--gold3); font-weight:500; }

/* explanatory panels share a quiet card look */
.hh-tl,.hh-guide,.hh-bench,.hh-ends,.hh-later,.hh-next{ margin:16px 0; }
.hh-tl > i,.hh-bench > i,.hh-ends > i,.hh-later > i,.hh-next > i{
  font-style:normal; font-size:10.5px; font-weight:600; letter-spacing:.2em; text-transform:uppercase; color:var(--gold); display:block; margin-bottom:10px;
}
.hh-tl.empty{ display:none; }
.hh-tl-rows{ display:flex; flex-direction:column; gap:9px; }
.tlr{ display:grid; grid-template-columns:1fr 2fr auto; align-items:center; gap:12px; }
.tlr .tll{ font-size:12.5px; color:rgba(251,248,241,.75); }
.tlr .tlb{ height:6px; background:rgba(251,248,241,.1); border-radius:3px; overflow:hidden; }
.tlr .tlb i{ display:block; height:100%; background:rgba(197,162,83,.5); border-radius:3px; }
.tlr.is-last .tlb i{ background:var(--gold2); }
.tlr .tly{ font-family:'Cormorant Garamond',serif; font-size:1.05rem; color:var(--ivory); font-variant-numeric:tabular-nums; }
.hh-tl-note{ font-size:12px; font-weight:300; color:rgba(251,248,241,.5); margin:10px 0 0; }

.hh-guide p{ font-size:13.5px; font-weight:300; line-height:1.7; color:rgba(251,248,241,.72); margin:0 0 10px; }
.hh-guide b{ color:var(--gold3); font-weight:500; }
.hh-bench,.hh-ends,.hh-later,.hh-next{ background:rgba(4,23,15,.4); border:1px solid rgba(197,162,83,.24); border-radius:4px; padding:20px 22px; }
.hh-bench.empty{ display:none; }
.hh-bench .bTx,.hh-ends .eTx,.hh-later .lTx{ font-size:13.5px; font-weight:300; line-height:1.7; color:rgba(251,248,241,.75); margin:0; }
.hh-ends .eTx b,.hh-later .lTx b{ color:var(--gold3); font-weight:500; }
.hh-ends .eList{ list-style:none; margin:14px 0 0; padding:0; display:flex; flex-direction:column; gap:12px; }
.hh-ends .eList li{ font-size:13px; font-weight:300; line-height:1.65; color:rgba(251,248,241,.72); padding-left:18px; position:relative; }
.hh-ends .eList li::before{ content:""; position:absolute; left:0; top:8px; width:6px; height:6px; border-radius:50%; background:var(--gold); }
.hh-ends .eList b{ color:var(--ivory); font-weight:500; }
.hh-next .nList{ margin:0; padding:0; counter-reset:nx; list-style:none; display:flex; flex-direction:column; gap:11px; }
.hh-next .nList li{ font-size:13px; font-weight:300; line-height:1.6; color:rgba(251,248,241,.75); padding-left:34px; position:relative; }
.hh-next .nList li::before{ counter-increment:nx; content:counter(nx,decimal-leading-zero); position:absolute; left:0; top:0; font-family:'Cormorant Garamond',serif; font-size:15px; color:var(--gold); font-weight:600; }

/* ---- capture ---- */
.hh-capture{ margin-top:30px; padding-top:26px; border-top:1px solid rgba(197,162,83,.3); position:relative; z-index:1; }
.hh-cap-head i{ font-style:normal; font-family:'Cormorant Garamond',serif; font-size:1.5rem; font-weight:600; color:var(--ivory); display:block; }
.hh-cap-head p{ font-size:13px; font-weight:300; line-height:1.6; color:rgba(251,248,241,.62); margin:6px 0 18px; max-width:52ch; }
.hh-cap-grid{ display:grid; grid-template-columns:1fr 1fr; gap:16px 18px; }
.hh-cap-f--wide{ grid-column:1 / -1; }
@media (max-width:600px){ .hh-cap-grid{ grid-template-columns:1fr; } }
.hh-cap-f{ display:flex; flex-direction:column; gap:6px; }
.hh-cap-f span{ font-size:11px; font-weight:600; letter-spacing:.13em; text-transform:uppercase; color:rgba(251,248,241,.6); }
.hh-cap-f input{
  background:transparent; border:0; border-bottom:1px solid rgba(251,248,241,.22); border-radius:0;
  padding:9px 2px; font-family:'Jost',sans-serif; font-size:15px; font-weight:300; color:var(--ivory);
  box-shadow:none; -webkit-appearance:none; appearance:none; transition:border-color .25s ease;
}
.hh-cap-f input:focus{ outline:none; border-bottom-color:var(--gold2); }
.hh-cap-send{
  margin-top:22px; width:100%; font-family:'Jost',sans-serif; font-size:12px; font-weight:500;
  letter-spacing:.16em; text-transform:uppercase; color:var(--emer); background:var(--gold);
  border:1px solid var(--gold); border-radius:999px; padding:17px 34px; cursor:pointer; transition:all .25s ease;
}
.hh-cap-send:hover{ background:transparent; color:var(--gold2); transform:translateY(-1px); }
.hh-cap-send:disabled{ opacity:.6; cursor:default; transform:none; }
.hh-cap-fine{ font-size:11px; font-weight:300; line-height:1.6; color:rgba(251,248,241,.42); margin:14px 0 0; }
.hh-cap-msg{ font-size:13.5px; font-weight:300; line-height:1.6; color:var(--gold3); margin:14px 0 0; min-height:1.2em; }
.hh-cap-msg b{ color:var(--ivory); font-weight:500; }
.hh-capture.is-sent{ text-align:center; }
.hh-capture.is-sent .hh-cap-grid,.hh-capture.is-sent .hh-cap-fine{ display:none; }
