/* QHF Head & Brain Explorer */
.qhf-hx {
  --hx-bg: #0a0c1d;
  --hx-bg2: #12163a;
  --hx-panel: rgba(255, 255, 255, .045);
  --hx-panel2: rgba(255, 255, 255, .08);
  --hx-line: rgba(255, 255, 255, .11);
  --hx-text: #eceffa;
  --hx-muted: #a7aecb;
  --hx-accent: #e2bd72;
  --hx-accent2: #7fd6ff;
  --hx-good: #5fe0a7;
  --hx-bad: #ff7a8a;
  --hx-radius: 22px;
  position: relative;
  color: var(--hx-text);
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(127, 214, 255, .14), transparent 60%),
    radial-gradient(900px 700px at -10% 30%, rgba(199, 125, 255, .14), transparent 60%),
    radial-gradient(800px 600px at 60% 110%, rgba(245, 196, 107, .10), transparent 60%),
    linear-gradient(180deg, var(--hx-bg), var(--hx-bg2));
  border-radius: var(--hx-radius);
  padding: clamp(20px, 4vw, 56px);
  font-family: inherit;
  line-height: 1.6;
  overflow: hidden;
  isolation: isolate;
}
.qhf-hx *, .qhf-hx *::before, .qhf-hx *::after { box-sizing: border-box; }
/* Neutralise theme rules aimed at bare elements (e.g. section { background; padding }).
   Zero-specificity :where() so every component rule below still wins. */
.qhf-hx :where(section, header, footer, nav, article, aside) { background: none; padding: 0; margin: 0; border: 0; box-shadow: none; min-height: 0; }
.qhf-hx section:not(.qhf-hx__cta) { background: none; } /* beats theme section:nth-of-type(2n) */
.qhf-hx::before { /* faint stars */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .55;
  background-image:
    radial-gradient(1px 1px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 72% 12%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 38% 62%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 48%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 22% 84%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 58% 34%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 94% 88%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 4% 52%, #fff 50%, transparent 51%);
  background-size: 640px 640px;
}
.qhf-hx a { color: inherit; }
.qhf-hx a.qhf-hx__btn { color: #1a1406; }
.qhf-hx a.qhf-hx__btn.is-ghost { color: var(--hx-text); }
.qhf-hx p { margin: 0 0 .8em; }
.qhf-hx h1, .qhf-hx h2, .qhf-hx h3, .qhf-hx h4 { color: var(--hx-text); font-family: inherit; }
.qhf-hx__app { max-width: 1240px; margin: 0 auto; }
.qhf-hx__sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* hero */
.qhf-hx__hero { text-align: center; max-width: 760px; margin: 0 auto clamp(24px, 4vw, 44px); }
.qhf-hx__kicker { text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; color: var(--hx-accent); margin: 0 0 .5em !important; }
.qhf-hx__h1 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.1; margin: 0 0 .35em; letter-spacing: -.01em;
  background: linear-gradient(90deg, #fff, var(--hx-accent2) 55%, var(--hx-accent)); -webkit-background-clip: text; background-clip: text; color: transparent !important; }
.qhf-hx__lead { color: var(--hx-muted); font-size: clamp(1rem, 1.6vw, 1.12rem); }
.qhf-hx__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; }
.qhf-hx__navlink { text-decoration: none; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--hx-line); background: var(--hx-panel); font-size: .92rem; transition: background .2s, border-color .2s; }
.qhf-hx__navlink:hover, .qhf-hx__navlink:focus-visible { background: var(--hx-panel2); border-color: var(--hx-accent); }

/* sections */
.qhf-hx__sec { margin: 0 0 clamp(40px, 6vw, 80px); scroll-margin-top: 90px; }
.qhf-hx__shead { max-width: 760px; margin: 0 auto 24px; text-align: center; }
.qhf-hx__h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.2; margin: 0 0 .4em; }
.qhf-hx__h3 { font-size: 1.22rem; line-height: 1.3; margin: 0 0 .4em; }
.qhf-hx__h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; color: var(--hx-accent2); margin: 1.1em 0 .4em; }
.qhf-hx__sub { text-align: center; margin: 40px 0 18px; font-size: 1.4rem; }

/* buttons */
.qhf-hx__btn { appearance: none; border: 0; cursor: pointer; font: inherit; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 20px; border-radius: 999px; color: #1a1406; background: linear-gradient(180deg, #ffe2a6, var(--hx-accent)); box-shadow: 0 6px 24px -8px var(--hx-accent); transition: transform .15s, box-shadow .2s, opacity .2s; }
.qhf-hx__btn:hover { transform: translateY(-1px); box-shadow: 0 10px 30px -8px var(--hx-accent); }
.qhf-hx__btn:focus-visible, .qhf-hx__chip:focus-visible, .qhf-hx__tab:focus-visible, .qhf-hx__li:focus-visible, .qhf-hx__opt:focus-visible { outline: 2px solid var(--hx-accent2); outline-offset: 2px; }
.qhf-hx__btn.is-ghost { background: var(--hx-panel); color: var(--hx-text); border: 1px solid var(--hx-line); box-shadow: none; }
.qhf-hx__btn.is-ghost:hover { border-color: var(--hx-accent); }
.qhf-hx__btn.is-big { padding: 14px 28px; font-size: 1.05rem; }
.qhf-hx__btn[disabled] { opacity: .45; cursor: default; transform: none; }

/* explorer */
.qhf-hx__stage { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(18px, 3vw, 40px); align-items: start; }
.qhf-hx__figure { position: relative; border-radius: var(--hx-radius); }
.qhf-hx__figure.is-small { max-width: 440px; margin: 0 auto; }
.qhf-hx__svg { display: block; width: 100%; height: auto; direction: ltr; overflow: visible; --hx-t: 0; }
.qhf-hx__layer { display: flex; align-items: center; gap: 12px; margin: 10px auto 0; max-width: 420px; font-size: .9rem; color: var(--hx-muted); }
.qhf-hx__range { flex: 1; accent-color: var(--hx-accent); }
.qhf-hx__hint { text-align: center; color: var(--hx-muted); font-size: .82rem; margin: 6px 0 0 !important; }

/* svg layers — glass head, luminous brain */
.qhf-hx__star { fill: #fff; opacity: .5; animation: qhf-hx-twinkle 5s ease-in-out infinite; }
.qhf-hx__orbit ellipse { fill: none; stroke: rgba(170, 200, 255, .22); stroke-width: 1.2; stroke-dasharray: 2 7; }
.qhf-hx__orbit-dot { fill: #ffe9b8; filter: drop-shadow(0 0 4px #ffd27a); }
.qhf-hx__aura { fill: rgba(90, 140, 255, .35); opacity: calc(.35 + var(--hx-t) * .25); }
.qhf-hx__skin { fill-opacity: calc(1 - var(--hx-t) * .55); stroke: none; transition: fill-opacity .2s; }
.qhf-hx__spine rect { fill: rgba(170, 190, 255, .10); stroke: rgba(190, 210, 255, .28); stroke-width: 1; opacity: calc(.35 + var(--hx-t) * .65); }
.qhf-hx__brain { opacity: calc(.42 + var(--hx-t) * .58); transition: opacity .2s; }
.qhf-hx__brain-glow { fill: #6f7cff; opacity: .55; }
.qhf-hx__cortex { opacity: .86; }
.qhf-hx__lobe { fill-opacity: .12; mix-blend-mode: screen; }
.qhf-hx__gyri path { stroke: rgba(205, 220, 255, .30); stroke-width: 1.1; }
.qhf-hx__net line { stroke: rgba(190, 225, 255, .22); stroke-width: .8; }
.qhf-hx__net circle { fill: #e9f3ff; opacity: .55; }
.qhf-hx__net circle.is-bright { opacity: .95; filter: drop-shadow(0 0 3px #bfe3ff); animation: qhf-hx-twinkle 4s ease-in-out infinite; }
.qhf-hx__sulcus { fill: none; stroke: rgba(14, 16, 52, .65); stroke-width: 3.2; stroke-linecap: round; }
.qhf-hx__sulcus.is-faint { stroke-dasharray: 4 6; stroke-width: 2; stroke: rgba(14, 16, 52, .45); }
.qhf-hx__cortex-edge { fill: none; stroke: rgba(225, 235, 255, .7); stroke-width: 1.6; }
.qhf-hx__cereb { opacity: .75; }
.qhf-hx__folia { fill: none; stroke: rgba(235, 225, 255, .45); stroke-width: 1.2; }
.qhf-hx__stem { stroke: rgba(225, 220, 255, .45); stroke-width: 1.2; }
.qhf-hx__neural path { fill: none; stroke: #fff4d6; stroke-width: 1.8; stroke-linecap: round; stroke-dasharray: 2 30; opacity: .75; animation: qhf-hx-flow 6s linear infinite; filter: drop-shadow(0 0 3px #ffd27a); }
.qhf-hx__lobe-label { fill: #fff; font-size: 13px; font-weight: 600; paint-order: stroke; stroke: rgba(10, 12, 40, .75); stroke-width: 3.5px; letter-spacing: .02em; pointer-events: none; }
.qhf-hx__labels { opacity: calc(var(--hx-t) * 1.2 - .1); transition: opacity .2s; }
.qhf-hx__skin-top { opacity: calc(1 - var(--hx-t) * .45); }
.qhf-hx__lid { fill: none; stroke: rgba(225, 235, 255, .75); stroke-width: 2.2; stroke-linecap: round; }
.qhf-hx__lash { fill: none; stroke: rgba(225, 235, 255, .45); stroke-width: 1.4; stroke-linecap: round; }
.qhf-hx__brow { fill: none; stroke: rgba(225, 235, 255, .4); stroke-width: 2.6; stroke-linecap: round; }
.qhf-hx__lip { fill: none; stroke: rgba(225, 235, 255, .45); stroke-width: 1.8; stroke-linecap: round; }
.qhf-hx__ear { fill: rgba(120, 160, 255, .10); stroke: rgba(200, 220, 255, .55); stroke-width: 1.8; }
.qhf-hx__ear-in { fill: none; stroke: rgba(200, 220, 255, .35); stroke-width: 1.8; stroke-linecap: round; }
.qhf-hx__outline { fill: none; stroke: #8fd8ff; stroke-width: 2.2; opacity: .9; filter: drop-shadow(0 0 7px rgba(127, 214, 255, .85)); }
.qhf-hx__rim { fill: none; stroke: rgba(255, 255, 255, .12); stroke-width: 9; }
.qhf-hx__hairline { fill: none; stroke: rgba(200, 220, 255, .18); stroke-width: 1.2; stroke-dasharray: 3 6; }

.qhf-hx__region { fill: var(--hx-accent); fill-opacity: 0; stroke: none; transition: fill-opacity .35s; pointer-events: none; }
.qhf-hx__region.is-on { fill-opacity: .38; stroke: #fff3cf; stroke-width: 1.6; animation: qhf-hx-pulse 2.6s ease-in-out infinite; }
.qhf-hx__region.is-deep.is-on { fill-opacity: .26; stroke-dasharray: 5 5; }
.qhf-hx__threads { pointer-events: none; }
.qhf-hx__thread-glow { fill: none; stroke: var(--hx-accent); stroke-width: 5; opacity: .35; stroke-linecap: round; }
.qhf-hx__thread { fill: none; stroke: #ffe7ad; stroke-width: 1.6; stroke-linecap: round; }
.qhf-hx__thread-pulse { fill: none; stroke: #fff; stroke-width: 3.2; stroke-linecap: round; stroke-dasharray: 3 240; animation: qhf-hx-thread 2.4s linear infinite; filter: drop-shadow(0 0 4px #fff); }
.qhf-hx__node { fill: #fff6dc; }
.qhf-hx__node-ring { fill: none; stroke: #ffe7ad; stroke-width: 1.2; transform-box: fill-box; transform-origin: center; animation: qhf-hx-ring 2.4s ease-out infinite; }
.qhf-hx__zone { fill: none; stroke: var(--hx-accent); stroke-width: 2; stroke-dasharray: 6 6; opacity: 0; transition: opacity .3s; pointer-events: none; }
.qhf-hx__zone.is-band { stroke-width: 9; stroke-dasharray: none; stroke-linecap: round; }
.qhf-hx__zone.is-arrow { stroke-dasharray: none; stroke-width: 2.5; stroke-linecap: round; }
.qhf-hx__zone.is-on { opacity: .8; }

.qhf-hx__bar { cursor: default; transition: opacity .3s; }
.qhf-hx__bar[role="button"] { cursor: pointer; }
.qhf-hx__halo { opacity: .7; transform-box: fill-box; transform-origin: center; animation: qhf-hx-breathe 4.2s ease-in-out infinite; }
.qhf-hx__core { fill: #fff3d4; stroke: #fff; stroke-width: 1.2; filter: drop-shadow(0 0 5px var(--hx-accent)); transition: fill .2s; }
.qhf-hx__num { fill: #3a2804; font-size: 9.5px; font-weight: 700; pointer-events: none; }
.qhf-hx__bar.is-far .qhf-hx__core { fill: #d9b97a; stroke-dasharray: 3 2; }
.qhf-hx__bar:hover .qhf-hx__core, .qhf-hx__bar:focus-visible .qhf-hx__core { fill: #fff; }
.qhf-hx__bar:focus { outline: none; }
.qhf-hx__barin { transform: scale(var(--hx-ms, 1)); transform-box: fill-box; transform-origin: center; }
.qhf-hx__hit { fill: transparent; }
.qhf-hx__bar:focus-visible .qhf-hx__halo { opacity: 1; }
.qhf-hx__bar.is-active .qhf-hx__core { fill: #fff; }
.qhf-hx__bar.is-active .qhf-hx__halo { opacity: 1; animation-duration: 1.6s; }
.has-active .qhf-hx__bar:not(.is-active) { opacity: .4; }
.qhf-hx__bar.is-dim { opacity: .15 !important; }

/* echo strength */
.qhf-hx__strength { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px; padding: 5px 12px 5px 10px; border-radius: 999px; background: rgba(245, 196, 107, .1); border: 1px solid rgba(245, 196, 107, .35); font-size: .84rem; }
.qhf-hx__dots { display: inline-flex; gap: 3px; direction: ltr; }
.qhf-hx__dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .15); }
.qhf-hx__dots i.on { background: var(--hx-accent); box-shadow: 0 0 6px var(--hx-accent); }

/* panel */
.qhf-hx__panel { display: flex; flex-direction: column; gap: 14px; }
.qhf-hx__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.qhf-hx__chip { appearance: none; font: inherit; font-size: .86rem; cursor: pointer; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--hx-line); background: var(--hx-panel); color: var(--hx-text); transition: background .2s, border-color .2s; }
.qhf-hx__chip.is-on { background: rgba(245, 196, 107, .16); border-color: var(--hx-accent); }
.qhf-hx__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; max-height: 220px; overflow: auto; padding: 2px; scrollbar-width: thin; }
.qhf-hx__li { appearance: none; font: inherit; font-size: .86rem; text-align: start; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 12px; border: 1px solid transparent; background: var(--hx-panel); color: var(--hx-text); }
.qhf-hx__li:hover { border-color: var(--hx-line); }
.qhf-hx__li.is-on { border-color: var(--hx-accent); background: rgba(245, 196, 107, .12); }
.qhf-hx__li-n { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; font-weight: 700; background: rgba(245, 196, 107, .2); color: var(--hx-accent); }
.qhf-hx__card { background: var(--hx-panel); border: 1px solid var(--hx-line); border-radius: var(--hx-radius); padding: clamp(16px, 2.4vw, 26px); min-height: 280px; backdrop-filter: blur(6px); }
.qhf-hx__empty { color: var(--hx-muted); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 230px; text-align: center; margin: 0 !important; }
.qhf-hx__card-top { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.qhf-hx__card-top .qhf-hx__h3 { margin: 0; font-size: 1.4rem; }
.qhf-hx__badge { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #261a02;
  background: radial-gradient(circle at 35% 30%, #fff6dc, var(--hx-accent)); box-shadow: 0 0 24px -2px var(--hx-accent); }
.qhf-hx__meta { color: var(--hx-muted); font-size: .86rem; margin: 2px 0 0 !important; }
.qhf-hx__en { direction: ltr; unicode-bidi: isolate; }
.qhf-hx__tabs { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: rgba(0, 0, 0, .25); margin-bottom: 14px; }
.qhf-hx__tab { appearance: none; flex: 1; font: inherit; font-size: .84rem; cursor: pointer; padding: 8px 6px; border-radius: 10px; border: 0; background: transparent; color: var(--hx-muted); }
.qhf-hx__tab.is-on { background: var(--hx-panel2); color: var(--hx-text); box-shadow: inset 0 0 0 1px var(--hx-line); }
.qhf-hx__dl { margin: 0; }
.qhf-hx__dl dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--hx-accent2); margin-top: 12px; }
.qhf-hx__dl dt:first-child { margin-top: 0; }
.qhf-hx__dl dd { margin: 3px 0 0; font-size: 1rem; }
.qhf-hx__regs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.qhf-hx__regs li { padding: 10px 12px; border-radius: 12px; background: rgba(245, 196, 107, .08); border-inline-start: 3px solid var(--hx-accent); }
.qhf-hx__regs strong { display: block; }
.qhf-hx__regs span { color: var(--hx-muted); font-size: .94rem; }
.qhf-hx__echo { font-size: 1.08rem; }
.qhf-hx__note { color: var(--hx-muted); font-size: .84rem; }
.qhf-hx__pn { display: flex; justify-content: space-between; gap: 10px; margin-top: 16px; }
.qhf-hx[dir="rtl"] .qhf-hx__pn .qhf-hx__btn { direction: rtl; }

/* session */
.qhf-hx__session-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(18px, 3vw, 40px); align-items: start; }
.qhf-hx__session-main { background: var(--hx-panel); border: 1px solid var(--hx-line); border-radius: var(--hx-radius); padding: clamp(16px, 2.4vw, 28px); }
.qhf-hx__stepno { color: var(--hx-accent); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .3em !important; }
.qhf-hx__label { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--hx-accent2); margin: 8px 0 2px !important; }
.qhf-hx__clock { font-size: clamp(2.6rem, 6vw, 3.6rem); font-weight: 300; font-variant-numeric: tabular-nums; direction: ltr; text-align: center; margin: 10px 0 4px; letter-spacing: .04em; }
.qhf-hx__progress { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; direction: ltr; }
.qhf-hx[dir="rtl"] .qhf-hx__progress { direction: rtl; }
.qhf-hx__progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--hx-accent2), var(--hx-accent)); transition: width .25s linear; }
.qhf-hx__ctrl { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 16px 0; }
.qhf-hx__done { text-align: center; color: var(--hx-good); }
.qhf-hx__steps { margin: 8px 0 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 4px; max-height: 260px; overflow: auto; scrollbar-width: thin; }
.qhf-hx__steps li { counter-increment: s; }
.qhf-hx__steps button { appearance: none; width: 100%; text-align: start; font: inherit; font-size: .88rem; cursor: pointer; padding: 7px 10px; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--hx-muted); }
.qhf-hx__steps button::before { content: counter(s) ". "; color: var(--hx-accent); }
.qhf-hx__steps li.is-done button { opacity: .6; }
.qhf-hx__steps li.is-on button { color: var(--hx-text); background: rgba(245, 196, 107, .12); border-color: var(--hx-accent); }

/* touch */
.qhf-hx__touchbox { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px; align-items: center; max-width: 900px; margin: 0 auto 22px;
  padding: clamp(18px, 3vw, 32px); border-radius: var(--hx-radius); border: 1px solid var(--hx-line); background: linear-gradient(135deg, rgba(255, 122, 138, .14), rgba(255, 255, 255, .03)); transition: background .8s; }
.qhf-hx__touchbox.is-calm { background: linear-gradient(135deg, rgba(95, 224, 167, .14), rgba(127, 214, 255, .08)); }
.qhf-hx__vitals { display: flex; justify-content: center; align-items: center; gap: 28px; min-height: 170px; }
.qhf-hx__heart { width: 64px; height: 64px; position: relative; transform: rotate(45deg); animation: qhf-hx-beat .55s ease-in-out infinite; }
.qhf-hx__heart, .qhf-hx__heart::before, .qhf-hx__heart::after { background: var(--hx-bad); }
.qhf-hx__heart::before, .qhf-hx__heart::after { content: ""; position: absolute; width: 64px; height: 64px; border-radius: 50%; }
.qhf-hx__heart::before { left: -32px; } .qhf-hx__heart::after { top: -32px; }
.qhf-hx__breath { width: 90px; height: 90px; border-radius: 50%; border: 2px solid var(--hx-accent2); background: radial-gradient(circle, rgba(127, 214, 255, .35), transparent 70%); animation: qhf-hx-breath 2s ease-in-out infinite; }
.is-calm .qhf-hx__heart { animation-duration: 1.1s; }
.is-calm .qhf-hx__heart, .is-calm .qhf-hx__heart::before, .is-calm .qhf-hx__heart::after { background: var(--hx-good); }
.is-calm .qhf-hx__breath { animation-duration: 6s; }
.qhf-hx__mode { font-size: 1.4rem; font-weight: 700; margin-bottom: .4em !important; }
.qhf-hx__stats { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 6px; }
.qhf-hx__stats li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--hx-line); padding-bottom: 6px; }
.qhf-hx__stats span { color: var(--hx-muted); }
.qhf-hx__cols { columns: 3 260px; column-gap: 28px; max-width: 1000px; margin: 0 auto; color: var(--hx-muted); }
.qhf-hx__cols p { break-inside: avoid; }

/* rules + dreams */
.qhf-hx__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.qhf-hx__rule, .qhf-hx__dream { position: relative; padding: 22px; border-radius: var(--hx-radius); background: var(--hx-panel); border: 1px solid var(--hx-line); transition: transform .2s, border-color .2s; }
.qhf-hx__rule:hover, .qhf-hx__dream:hover { transform: translateY(-2px); border-color: rgba(245, 196, 107, .5); }
.qhf-hx__rule p, .qhf-hx__dream p { color: var(--hx-muted); font-size: .95rem; }
.qhf-hx__rule-n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; margin-bottom: 10px; font-weight: 800; color: #0a0c1d; background: linear-gradient(135deg, var(--hx-accent2), var(--hx-accent)); }
.qhf-hx__try { color: var(--hx-text) !important; margin: 0 !important; font-size: .9rem !important; }
.qhf-hx__try strong { color: var(--hx-accent); }
.qhf-hx__dream .qhf-hx__h4 { margin-top: 0; font-size: .9rem; }

/* sleep */
.qhf-hx__hypwrap { overflow-x: auto; padding-bottom: 4px; }
.qhf-hx__hyp { display: block; width: 100%; min-width: 560px; height: auto; direction: ltr; }
.qhf-hx__grid-l { stroke: rgba(255, 255, 255, .07); }
.qhf-hx__axis { fill: var(--hx-muted); font-size: 12px; }
.qhf-hx__stage-l { fill: var(--hx-muted); font-size: 13px; font-weight: 600; cursor: pointer; }
.qhf-hx__stage-l.is-on { fill: var(--hx-accent); }
.qhf-hx__hyp-line { fill: none; stroke: rgba(255, 255, 255, .35); stroke-width: 1.5; }
.qhf-hx__seg { cursor: pointer; opacity: .78; transition: opacity .2s; }
.qhf-hx__seg:hover { opacity: 1; }
.qhf-hx__seg.is-W { fill: #8d99ae; } .qhf-hx__seg.is-REM { fill: var(--hx-accent); } .qhf-hx__seg.is-N1 { fill: #9fb7ff; } .qhf-hx__seg.is-N2 { fill: #6c8cff; } .qhf-hx__seg.is-N3 { fill: #c77dff; }
.qhf-hx__seg.is-on { opacity: 1; stroke: #fff; stroke-width: 1.5; }
.qhf-hx__sleep .qhf-hx__chips { justify-content: center; margin: 14px 0; }
.qhf-hx__chip.is-REM.is-on { border-color: var(--hx-accent); }
.qhf-hx__stageinfo { max-width: 760px; margin: 0 auto; text-align: center; padding: 18px 22px; border-radius: var(--hx-radius); background: var(--hx-panel); border: 1px solid var(--hx-line); }
.qhf-hx__stageinfo p { color: var(--hx-muted); margin: 0 !important; }
.qhf-hx__sp { max-width: 860px; margin: 28px auto 0; padding: clamp(18px, 3vw, 30px); border-radius: var(--hx-radius); border: 1px solid rgba(127, 214, 255, .35); background: linear-gradient(135deg, rgba(127, 214, 255, .10), rgba(199, 125, 255, .08)); }
.qhf-hx__sp p { color: var(--hx-muted); }
.qhf-hx__sp p:last-child { color: var(--hx-text); margin: 0 !important; }

/* quiz */
.qhf-hx__quizbox { max-width: 720px; margin: 0 auto; padding: clamp(18px, 3vw, 32px); border-radius: var(--hx-radius); background: var(--hx-panel); border: 1px solid var(--hx-line); }
.qhf-hx__opts { display: grid; gap: 8px; margin: 14px 0 16px; }
.qhf-hx__opt { appearance: none; font: inherit; text-align: start; cursor: pointer; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--hx-line); background: rgba(0, 0, 0, .2); color: var(--hx-text); transition: border-color .2s, background .2s; }
.qhf-hx__opt:hover:not([disabled]) { border-color: var(--hx-accent2); }
.qhf-hx__opt.is-picked { border-color: var(--hx-accent); background: rgba(245, 196, 107, .1); }
.qhf-hx__opt.is-right { border-color: var(--hx-good); background: rgba(95, 224, 167, .14); }
.qhf-hx__opt.is-wrong { border-color: var(--hx-bad); background: rgba(255, 122, 138, .12); }
.qhf-hx__opt[disabled] { cursor: default; }
.qhf-hx__why { color: var(--hx-muted); }
.qhf-hx__why strong { color: var(--hx-text); }
.qhf-hx__score { font-size: 1.6rem; font-weight: 700; text-align: center; }
.qhf-hx__quizbox > .qhf-hx__btn:last-child { display: flex; margin: 0 auto; }

/* faq */
.qhf-hx__faqlist { max-width: 860px; margin: 0 auto; display: grid; gap: 10px; }
.qhf-hx__qa { border-radius: 16px; background: var(--hx-panel); border: 1px solid var(--hx-line); padding: 0 20px; transition: border-color .2s; }
.qhf-hx__qa[open] { border-color: rgba(245, 196, 107, .45); }
.qhf-hx__qa summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0; }
.qhf-hx__qa summary::-webkit-details-marker { display: none; }
.qhf-hx__qa summary::after { content: "+"; flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: var(--hx-accent); border: 1px solid rgba(245, 196, 107, .45); font-weight: 700; }
.qhf-hx__qa[open] summary::after { content: "–"; }
.qhf-hx__q { margin: 0; font-size: 1.04rem; font-weight: 600; }
.qhf-hx__qa p { color: var(--hx-muted); padding-bottom: 16px; margin: 0 !important; }
.qhf-hx__byline { color: var(--hx-text); font-size: .9rem; }
.qhf-hx__byline a { color: var(--hx-accent); }

/* cta + footer */
.qhf-hx section.qhf-hx__cta, .qhf-hx__cta { text-align: center; max-width: 820px; margin: 0 auto 40px; padding: clamp(24px, 4vw, 48px); border-radius: calc(var(--hx-radius) + 6px);
  background: radial-gradient(600px 300px at 50% 0%, rgba(245, 196, 107, .22), transparent 70%), var(--hx-panel); border: 1px solid rgba(245, 196, 107, .35); }
.qhf-hx__ctabtns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 18px; }
.qhf-hx__foot { max-width: 900px; margin: 0 auto; text-align: center; }
.qhf-hx__sources { color: var(--hx-muted); font-size: .84rem; text-align: start; margin-top: 10px; }
.qhf-hx__sources summary { cursor: pointer; text-align: center; color: var(--hx-text); }
.qhf-hx__sources ul { direction: ltr; text-align: left; padding-left: 20px; }

/* static (no-JS / SEO) version */
.qhf-hx__static { max-width: 900px; margin: 0 auto; }
.qhf-hx__static h2 { margin-top: 1.4em; }
.qhf-hx__static dt { font-weight: 700; margin-top: .8em; }
.qhf-hx__static dd { margin: 0; color: var(--hx-muted); }

/* animation */
@keyframes qhf-hx-breathe { 0%, 100% { transform: scale(.85); } 50% { transform: scale(1.18); } }
@keyframes qhf-hx-pulse { 0%, 100% { fill-opacity: .3; } 50% { fill-opacity: .55; } }
@keyframes qhf-hx-flow { to { stroke-dashoffset: -280; } }
@keyframes qhf-hx-thread { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -243; } }
@keyframes qhf-hx-ring { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(2.2); opacity: 0; } }
@keyframes qhf-hx-twinkle { 0%, 100% { opacity: .35; } 50% { opacity: .95; } }
@keyframes qhf-hx-beat { 0%, 100% { transform: rotate(45deg) scale(.82); } 30% { transform: rotate(45deg) scale(1); } }
@keyframes qhf-hx-breath { 0%, 100% { transform: scale(.7); opacity: .6; } 50% { transform: scale(1.05); opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .qhf-hx *, .qhf-hx *::before, .qhf-hx *::after { animation: none !important; transition: none !important; }
}

/* Hebrew: no letter-spacing / uppercase on Hebrew labels */
.qhf-hx[dir="rtl"] .qhf-hx__kicker, .qhf-hx[dir="rtl"] .qhf-hx__h4, .qhf-hx[dir="rtl"] .qhf-hx__dl dt,
.qhf-hx[dir="rtl"] .qhf-hx__label, .qhf-hx[dir="rtl"] .qhf-hx__stepno { letter-spacing: 0; text-transform: none; }
.qhf-hx[dir="rtl"] .qhf-hx__kicker { font-size: .9rem; }
.qhf-hx[dir="rtl"] .qhf-hx__h4 { font-size: .9rem; }

/* responsive */
@media (max-width: 900px) {
  .qhf-hx__stage, .qhf-hx__session-grid, .qhf-hx__touchbox { grid-template-columns: 1fr; }
  .qhf-hx__figure.is-small { max-width: 320px; }
  .qhf-hx__list { max-height: 168px; }
}
@media (max-width: 640px) {
  .qhf-hx__svg { --hx-ms: 1.45; }
  .qhf-hx__figure.is-small .qhf-hx__svg { --hx-ms: 1.2; }
}
@media (max-width: 520px) {
  .qhf-hx { border-radius: 0; padding-left: 14px; padding-right: 14px; }
  .qhf-hx__nav { gap: 6px; }
  .qhf-hx__navlink { padding: 6px 12px; font-size: .84rem; }
  .qhf-hx__tab { font-size: .76rem; }
  .qhf-hx__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qhf-hx__vitals { min-height: 130px; }
}

/* Lifted out of a narrow reading column (solomon-field): a wide dark card on the page. */
.qhf-hx.is-lifted { width: calc(100% - 32px); max-width: 1240px; margin: 0 auto clamp(32px, 5vw, 72px); }
@media (max-width: 600px) { .qhf-hx.is-lifted { width: calc(100% - 20px); } }


/* ---------- guidance & clarity (v1.4) ---------- */
.qhf-hx__ico { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.qhf-hx__aud { color: var(--hx-text); opacity: .85; font-size: .95rem; margin-top: -.2em !important; }
.qhf-hx__herocta { margin: 18px 0 0 !important; }

.qhf-hx__insidewrap { margin: 0 auto clamp(44px, 6vw, 80px); }
.qhf-hx__insidet { text-align: center; font-size: .82rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--hx-muted); margin: 0 0 14px; }
.qhf-hx[dir="rtl"] .qhf-hx__insidet { letter-spacing: 0; font-size: .95rem; }
.qhf-hx__inside { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 1080px; margin: 0 auto; }
@media (max-width: 1000px) { .qhf-hx__inside { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.qhf-hx__tabbody > p:not([class]) { font-size: 1rem; }
.qhf-hx a.qhf-hx__go { display: flex; gap: 12px; align-items: flex-start; text-decoration: none; color: var(--hx-text); padding: 16px; border-radius: 18px;
  background: var(--hx-panel); border: 1px solid var(--hx-line); transition: border-color .2s, background .2s, transform .2s; }
.qhf-hx a.qhf-hx__go:hover, .qhf-hx a.qhf-hx__go:focus-visible { border-color: var(--hx-accent); background: var(--hx-panel2); transform: translateY(-2px); outline: none; }
.qhf-hx__go-i { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: var(--hx-accent);
  background: linear-gradient(160deg, rgba(226, 189, 114, .2), rgba(127, 214, 255, .08)); border: 1px solid rgba(226, 189, 114, .3); }
.qhf-hx__go-b { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.qhf-hx__go-t { font-size: 1.02rem; }
.qhf-hx__go-d { color: var(--hx-muted); font-size: .88rem; line-height: 1.5; }
.qhf-hx__go-m { color: var(--hx-accent2); font-size: .78rem; margin-top: 2px; }

.qhf-hx__snum { display: inline-flex; align-items: center; gap: 8px; color: var(--hx-accent); font-size: .8rem; font-weight: 600; letter-spacing: .08em; margin: 0 0 10px !important;
  padding: 5px 12px 5px 10px; border-radius: 999px; border: 1px solid rgba(226, 189, 114, .3); background: rgba(226, 189, 114, .08); }
.qhf-hx__snum .qhf-hx__ico { width: 18px; height: 18px; }

.qhf-hx__upnext { text-align: center; margin: clamp(22px, 3vw, 34px) 0 0 !important; }
.qhf-hx__upnext a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--hx-text); padding: 10px 18px; border-radius: 999px;
  border: 1px dashed rgba(255, 255, 255, .2); transition: border-color .2s, background .2s; }
.qhf-hx__upnext a:hover, .qhf-hx__upnext a:focus-visible { border-color: var(--hx-accent); border-style: solid; background: var(--hx-panel); }
.qhf-hx__upnext-l { color: var(--hx-muted); font-size: .84rem; }

.qhf-hx__how { list-style: none; margin: 0 auto clamp(18px, 3vw, 28px); padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: 980px; }
.qhf-hx__how li { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: rgba(0, 0, 0, .22); border: 1px solid var(--hx-line); font-size: .9rem; line-height: 1.4; }
.qhf-hx__how-n { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .82rem; color: #261a02;
  background: radial-gradient(circle at 35% 30%, #fff6dc, var(--hx-accent)); }

.qhf-hx__label { margin: 0 0 -6px !important; font-size: .78rem; color: var(--hx-muted); }

.qhf-hx__empty-t { color: var(--hx-text); font-size: 1.05rem; font-weight: 600; margin: 6px 0 0 !important; max-width: 30ch; }
.qhf-hx__empty-s { font-size: .86rem; margin: 10px 0 4px !important; }
.qhf-hx__starters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.qhf-hx__starter { appearance: none; font: inherit; font-size: .9rem; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px;
  border-radius: 999px; border: 1px solid rgba(226, 189, 114, .45); background: rgba(226, 189, 114, .1); color: var(--hx-text); transition: background .2s; }
.qhf-hx[dir="rtl"] .qhf-hx__starter { padding: 7px 8px 7px 14px; }
.qhf-hx__starter:hover, .qhf-hx__starter:focus-visible { background: rgba(226, 189, 114, .22); outline: none; }
.qhf-hx__tapme { width: 46px; height: 46px; border-radius: 50%; position: relative; background: radial-gradient(circle, #fff3d4 0 7px, rgba(226, 189, 114, .35) 8px 14px, transparent 15px); }
.qhf-hx__tapme::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--hx-accent); animation: qhf-hx-tap 1.8s ease-out infinite; }
@keyframes qhf-hx-tap { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(1.4); opacity: 0; } }

.qhf-hx__src { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; font-size: .82rem; color: var(--hx-muted); margin: 0 0 14px !important; line-height: 1.5; }
.qhf-hx__badge2 { flex: none; font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; letter-spacing: .02em; }
.qhf-hx__badge2.is-method { color: #f3d79c; background: rgba(226, 189, 114, .14); border: 1px solid rgba(226, 189, 114, .4); }
.qhf-hx__badge2.is-science { color: #a9e6ff; background: rgba(127, 214, 255, .12); border: 1px solid rgba(127, 214, 255, .4); }
.qhf-hx__badge2.is-echo { color: #dcc6ff; background: rgba(199, 125, 255, .14); border: 1px solid rgba(199, 125, 255, .4); }

.qhf-hx__tip { max-width: 760px; margin: -8px auto 22px !important; text-align: center; font-size: .9rem; color: var(--hx-text); opacity: .9;
  padding: 10px 16px; border-radius: 14px; background: rgba(127, 214, 255, .07); border: 1px solid rgba(127, 214, 255, .22); }

/* the three starter points pulse until something is chosen */
.qhf-hx__bar.is-hint .qhf-hx__halo { opacity: 1; animation-duration: 1.4s; }
.qhf-hx__bar.is-hint .qhf-hx__core { fill: #fff; }

@media (max-width: 760px) {
  .qhf-hx__how { grid-template-columns: 1fr; gap: 6px; }
  .qhf-hx__how li { padding: 8px 12px; font-size: .86rem; }
  .qhf-hx__inside { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .qhf-hx a.qhf-hx__go { padding: 12px; flex-direction: column; gap: 8px; }
  .qhf-hx__go-i { width: 34px; height: 34px; }
  .qhf-hx__go-d { display: none; }
  .qhf-hx__go-t { font-size: .95rem; }
}
@media (prefers-reduced-motion: reduce) {
  .qhf-hx__tapme::after { animation: none; }
}
