/* Humphrey's interview — the build-wait "tell us about your business" step as a
   conversation. Behaviour: assets/js/humphrey-interview.js. Used by signup2.php and
   add-site.php, which share the dark checkout shell (assets/css/checkout.css), so
   this reads that shell's tokens and falls back to the same values. Everything is
   scoped under .hiv / .hiv-invite / .hiv-on so nothing here reaches the page. */

/* Interview mode hides the classic form; its inputs stay in the DOM and are what
   the interview fills, so the page's own Save reads them exactly as before. */
.hiv-on > .biz-card,
.hiv-on > .biz-actions { display: none !important; }
#hiv-root[hidden], .hiv-invite[hidden] { display: none !important; }

.hiv {
    --hv-accent: var(--accent-primary, #38bdf8);
    --hv-indigo: #818cf8;
    --hv-violet: #a78bfa;
    --hv-text: #e2e8f0;
    --hv-muted: var(--text-secondary, #94a3b8);
    --hv-line: rgba(148, 163, 184, .16);
    --hv-panel: rgba(15, 23, 42, .72);
    --hv-ok: var(--accent-success, #10b981);
    --hv-warn: #fbbf24;
    position: relative;
    isolation: isolate;
    margin: 0 0 22px;
    padding: 22px 24px 18px;
    border-radius: 22px;
    color: var(--hv-text);
    font-family: inherit;
    background:
        radial-gradient(120% 90% at 0% 0%, rgba(129, 140, 248, .16), transparent 55%),
        radial-gradient(90% 80% at 100% 0%, rgba(56, 189, 248, .12), transparent 60%),
        linear-gradient(180deg, rgba(15, 23, 42, .92), rgba(2, 6, 23, .94));
    border: 1px solid transparent;
    background-clip: padding-box;
    box-shadow: 0 24px 60px -44px rgba(56, 189, 248, .25);
    overflow: hidden;
}
/* The gradient hairline around the card. */
.hiv::before {
    content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; z-index: -1;
    background: linear-gradient(135deg, rgba(56, 189, 248, .55), rgba(129, 140, 248, .35) 40%, rgba(167, 139, 250, .15) 70%, rgba(56, 189, 248, .35));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    pointer-events: none;
}
.hiv-glow {
    position: absolute; z-index: -1; width: 340px; height: 340px; left: -120px; top: -150px;
    background: radial-gradient(circle, rgba(167, 139, 250, .22), transparent 65%);
    filter: blur(10px); pointer-events: none; transition: opacity .4s;
}
.hiv.is-listening .hiv-glow { background: radial-gradient(circle, rgba(56, 189, 248, .32), transparent 65%); }

/* ---- top bar ------------------------------------------------------------ */
.hiv-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.hiv-brand { display: flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 500; letter-spacing: .01em; color: #a5b4cf; }
.hiv-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--hv-violet); box-shadow: 0 0 0 4px rgba(167, 139, 250, .18); animation: hivPulse 2.4s ease-in-out infinite; }
.hiv-top-r { display: flex; align-items: center; gap: 10px; }
.hiv-count { font-size: .78rem; font-weight: 500; color: var(--hv-muted); font-variant-numeric: tabular-nums; }
.hiv-progress { flex: 1 0 100%; height: 4px; border-radius: 99px; background: rgba(148, 163, 184, .14); overflow: hidden; }
.hiv-progress-fill { height: 100%; width: 3%; border-radius: inherit; background: linear-gradient(90deg, var(--hv-violet), var(--hv-accent)); transition: width .6s cubic-bezier(.25, 1, .5, 1); }
.hiv-ibtn {
    width: 36px; height: 36px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, .04); border: 1px solid var(--hv-line); color: var(--hv-text); cursor: pointer; padding: 0;
    transition: background .2s, border-color .2s, color .2s;
}
.hiv-ibtn svg { width: 18px; height: 18px; }
.hiv-ibtn:hover { background: rgba(255, 255, 255, .08); border-color: rgba(56, 189, 248, .4); }
.hiv-ibtn[aria-pressed="true"] { color: var(--hv-muted); }

/* ---- Humphrey + his line ------------------------------------------------- */
.hiv-stage { display: grid; grid-template-columns: 124px 1fr; gap: 18px; align-items: center; margin-bottom: 16px; }
.hiv-face { position: relative; width: 124px; height: 124px; }
.hiv-face-host { position: absolute; inset: -14px; width: auto; height: auto; }   /* width:auto beats the shadow root's :host{width:100%}, which left him 14px off centre (2026-10-26) */
.hiv-face-ring {
    position: absolute; inset: 6px; border-radius: 50%;
    background: radial-gradient(circle, rgba(167, 139, 250, .18), transparent 70%);
    transition: transform .3s, box-shadow .3s;
}
.hiv-face.is-talking .hiv-face-ring { animation: hivTalkRing 1.1s ease-in-out infinite; }
.hiv.is-listening .hiv-face-ring { box-shadow: 0 0 0 2px rgba(56, 189, 248, .55), 0 0 30px rgba(56, 189, 248, .45); animation: hivListenRing 1.6s ease-in-out infinite; }
/* No face script (or no shadow DOM): a quiet orb so the layout never collapses. */
.hiv-face-fallback, .hiv-invite-face.hiv-face-fallback { border-radius: 50%; background: radial-gradient(circle at 38% 32%, #e7dcfa, #9b88e4 45%, #4a3290); box-shadow: 0 10px 30px -8px rgba(124, 92, 220, .6); }
.hiv-face-host.hiv-face-fallback { inset: 18px; }

.hiv-bubble { position: relative; min-width: 0; }
.hiv-say {
    margin: 0; font-size: 1.2rem; line-height: 1.4; font-weight: 500; letter-spacing: 0; color: #f1f5f9;
    text-wrap: balance;
}
.hiv-hint { margin: 8px 0 0; font-size: .9rem; line-height: 1.45; color: var(--hv-muted); }

.hiv.hiv-enter .hiv-say { animation: hivRise .45s cubic-bezier(.2, .9, .3, 1) both; }
.hiv.hiv-enter .hiv-hint { animation: hivRise .45s .05s cubic-bezier(.2, .9, .3, 1) both; }
.hiv.hiv-enter .hiv-body { animation: hivRise .5s .1s cubic-bezier(.2, .9, .3, 1) both; }

/* ---- the answer ---------------------------------------------------------- */
.hiv-answer { display: flex; align-items: stretch; gap: 12px; }
.hiv-field { position: relative; flex: 1; min-width: 0; }
.hiv-input {
    width: 100%; box-sizing: border-box; margin: 0; display: block;
    background: rgba(2, 6, 23, .55); color: #fff;
    border: 1px solid rgba(148, 163, 184, .22); border-radius: 15px;
    font: inherit; font-size: 1.02rem; font-weight: 400; line-height: 1.45;
    padding: 16px 18px; min-height: 58px; outline: none; resize: none;
    transition: border-color .2s, box-shadow .2s, background .2s;
}
textarea.hiv-input { min-height: 96px; font-weight: 400; font-size: 1rem; line-height: 1.55; }
.hiv-input::placeholder { color: #64748b; font-weight: 500; }
.hiv-input:focus { border-color: rgba(56, 189, 248, .7); box-shadow: 0 0 0 4px rgba(56, 189, 248, .14); background: rgba(2, 6, 23, .7); }
.hiv.is-listening .hiv-input { border-color: rgba(56, 189, 248, .8); box-shadow: 0 0 0 4px rgba(56, 189, 248, .16), 0 0 34px -8px rgba(56, 189, 248, .6); }
.hiv-wave { position: absolute; right: 16px; bottom: 18px; display: none; gap: 3px; align-items: flex-end; height: 18px; pointer-events: none; }
.hiv-wave i { width: 3px; border-radius: 3px; background: var(--hv-accent); animation: hivWave 1s ease-in-out infinite; }
.hiv-wave i:nth-child(2) { animation-delay: .15s } .hiv-wave i:nth-child(3) { animation-delay: .3s } .hiv-wave i:nth-child(4) { animation-delay: .45s } .hiv-wave i:nth-child(5) { animation-delay: .6s }
.hiv.is-listening .hiv-wave { display: flex; }
.hiv.is-listening .hiv-input { padding-right: 52px; }

/* The mic: the biggest thing on the card, because talking is the point. */
.hiv-mic {
    position: relative; flex: 0 0 auto; width: 148px; min-height: 58px; border-radius: 15px; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 14px;
    border: 0; color: #04121f; font: inherit; font-weight: 600; font-size: .9rem;
    background: linear-gradient(135deg, var(--hv-accent), var(--hv-indigo));
    box-shadow: 0 8px 20px -14px rgba(56, 189, 248, .6);
    touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
    transition: transform .15s, box-shadow .2s, filter .2s;
}
.hiv-long .hiv-mic { align-self: flex-start; min-height: 96px; flex-direction: column; gap: 6px; }
.hiv-mic:hover { filter: brightness(1.06); transform: translateY(-1px); }
.hiv-mic:active { transform: scale(.97); }
.hiv-mic:focus-visible { outline: 3px solid rgba(56, 189, 248, .55); outline-offset: 3px; }
.hiv-mic-ic { display: inline-flex; width: 22px; height: 22px; }
.hiv-mic-ic svg { width: 100%; height: 100%; }
.hiv-mic-l { white-space: nowrap; }
.hiv-mic-rings { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; }
.hiv-mic[aria-pressed="true"] { background: linear-gradient(135deg, #f472b6, #fb7185); color: #fff; box-shadow: 0 12px 30px -10px rgba(244, 114, 182, .8); }
.hiv-mic[aria-pressed="true"] .hiv-mic-l { font-size: .74rem; white-space: normal; text-align: center; line-height: 1.15; }
.hiv-mic[aria-pressed="true"] .hiv-mic-rings { animation: hivRings 1.4s ease-out infinite; }

.hiv-preview { display: none; margin: 10px 2px 0; font-size: .88rem; color: var(--hv-muted); }
.hiv-preview.show { display: block; }
.hiv-preview b { color: #fff; font-weight: 600; }
.hiv-pv-l { color: #a5b4fc; font-weight: 500; }
.hiv-pv-warn { color: var(--hv-warn); }
.hiv-note { display: none; margin: 10px 2px 0; font-size: .85rem; color: var(--hv-muted); }
.hiv-note.show { display: block; }
.hiv-note.live { color: #7dd3fc; }
.hiv-note.ok { color: #6ee7b7; }
.hiv-note.warn { color: var(--hv-warn); }

/* Options: an equal-width grid, never a cloud of uneven pills. */
.hiv-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-bottom: 12px; }
.hiv-opts-rich { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hiv-opt {
    position: relative; display: flex; align-items: center; gap: 10px; text-align: left; cursor: pointer;
    min-height: 50px; padding: 11px 13px; border-radius: 13px; font: inherit; font-size: .9rem; font-weight: 700; color: var(--hv-text);
    background: rgba(255, 255, 255, .035); border: 1px solid var(--hv-line);
    transition: background .18s, border-color .18s, transform .12s, box-shadow .18s;
}
.hiv-opt:hover { border-color: rgba(56, 189, 248, .45); background: rgba(56, 189, 248, .06); }
.hiv-opt:active { transform: scale(.985); }
.hiv-opt-tick { flex: 0 0 auto; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid rgba(148, 163, 184, .45); display: inline-flex; align-items: center; justify-content: center; color: transparent; transition: all .18s; }
.hiv-opt-tick svg { width: 14px; height: 14px; }
.hiv-opt-t { display: flex; flex-direction: column; gap: 2px; line-height: 1.25; min-width: 0; }
.hiv-opt-t small { font-size: .76rem; font-weight: 500; color: var(--hv-muted); }
.hiv-opt.on { border-color: rgba(56, 189, 248, .75); background: linear-gradient(135deg, rgba(56, 189, 248, .14), rgba(129, 140, 248, .1)); box-shadow: 0 0 0 1px rgba(56, 189, 248, .25) inset; }
.hiv-opt.on .hiv-opt-tick { background: var(--hv-accent); border-color: var(--hv-accent); color: #04121f; }
.hiv-opt-row { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1 1 auto; }
.hiv-opt-rank { margin-left: auto; flex: 0 0 auto; font-size: .72rem; font-weight: 800; letter-spacing: .02em; color: var(--hv-accent); white-space: nowrap; }
.hiv-opt-rank:empty { display: none; }

/* Picture options (the scene library): an equal grid of example photos, the
   label under each, "Example" on the photo so nobody mistakes it for theirs. */
.hiv-opts-img { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hiv-opt-img { flex-direction: column; align-items: stretch; gap: 0; padding: 0; overflow: hidden; }
.hiv-opt-img .hiv-opt-row { padding: 11px 13px; }
.hiv-opt-pic { position: relative; display: block; aspect-ratio: 21 / 9; background: rgba(255, 255, 255, .05); }
.hiv-opt-pic img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.hiv-opt-ex { position: absolute; left: 8px; top: 8px; padding: 2px 8px; border-radius: 6px; font-size: .68rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #fff; background: rgba(4, 18, 31, .62); }
.hiv-opt-noimg { justify-content: center; border-style: dashed; }

/* ---- buttons ------------------------------------------------------------- */
.hiv-actions { display: flex; align-items: center; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.hiv-nav .hiv-next { margin-left: auto; }
.hiv-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
    min-height: 44px; padding: 0 18px; border-radius: 12px; font: inherit; font-size: .92rem; font-weight: 600;
    transition: transform .12s, filter .2s, background .2s, border-color .2s;
}
.hiv-btn svg { width: 18px; height: 18px; flex: 0 0 auto; }
.hiv-primary { border: 0; color: #04121f; background: linear-gradient(135deg, #7dd3fc, var(--hv-accent) 45%, var(--hv-indigo)); box-shadow: 0 14px 30px -14px rgba(56, 189, 248, .9); }
.hiv-primary:hover { filter: brightness(1.07); transform: translateY(-1px); }
/* Next is light, not another gradient: the mic is the loud button on a question. */
.hiv-next { border: 0; color: #0b1220; background: linear-gradient(180deg, #ffffff, #dbe4f0); box-shadow: 0 10px 24px -14px rgba(226, 232, 240, .7), 0 1px 0 rgba(255, 255, 255, .8) inset; }
.hiv-next:hover { filter: brightness(1.03); transform: translateY(-1px); }
.hiv-ghost { color: #cbd5e1; background: rgba(255, 255, 255, .03); border: 1px solid var(--hv-line); }
.hiv-ghost:hover { border-color: rgba(148, 163, 184, .4); background: rgba(255, 255, 255, .06); color: #fff; }
.hiv-btn:focus-visible, .hiv-opt:focus-visible, .hiv-link:focus-visible, .hiv-rv-edit:focus-visible, .hiv-photo-cta:focus-visible, .hiv-invite-go:focus-visible { outline: 3px solid rgba(56, 189, 248, .55); outline-offset: 2px; }

/* ---- intro --------------------------------------------------------------- */
.hiv-perks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.hiv-perks li { display: flex; gap: 10px; align-items: flex-start; padding: 12px 13px; border-radius: 14px; background: rgba(255, 255, 255, .03); border: 1px solid var(--hv-line); font-size: .82rem; color: var(--hv-muted); line-height: 1.4; }
.hiv-perks svg { flex: 0 0 auto; width: 18px; height: 18px; color: var(--hv-accent); margin-top: 1px; }
.hiv-perks b { display: block; color: #fff; font-size: .88rem; margin-bottom: 2px; }
.hiv-intro .hiv-start { min-width: 170px; }

/* ---- photos -------------------------------------------------------------- */
.hiv-photo-cta {
    width: 100%; display: flex; align-items: center; gap: 14px; text-align: left; cursor: pointer;
    padding: 16px 18px; border-radius: 16px; font: inherit; color: var(--hv-text);
    background: linear-gradient(135deg, rgba(56, 189, 248, .1), rgba(129, 140, 248, .08)); border: 1px solid rgba(56, 189, 248, .35);
    transition: transform .12s, border-color .2s;
}
.hiv-photo-cta:hover { border-color: rgba(56, 189, 248, .7); transform: translateY(-1px); }
.hiv-photo-ic { width: 46px; height: 46px; border-radius: 13px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; color: #04121f; background: linear-gradient(135deg, var(--hv-accent), var(--hv-indigo)); }
.hiv-photo-ic svg { width: 24px; height: 24px; }
.hiv-photo-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.hiv-photo-t b { font-size: 1rem; color: #fff; }
.hiv-photo-t small { font-size: .82rem; color: var(--hv-muted); line-height: 1.4; }
.hiv-photo-go svg { width: 20px; height: 20px; color: var(--hv-accent); }

/* ---- team (name, role and a real photo per person) ------------------------ */
.hiv-team { display: flex; flex-direction: column; gap: 10px; }
.hiv-tm { display: grid; grid-template-columns: 76px 1fr 34px; gap: 14px; align-items: center; padding: 12px; border-radius: 16px; background: rgba(2, 6, 23, .35); border: 1px solid var(--hv-line); }
.hiv-tm-pic { position: relative; width: 76px; height: 76px; border-radius: 50%; overflow: hidden; cursor: pointer; padding: 0; font: inherit; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--hv-accent); background: rgba(56, 189, 248, .08); border: 1.5px dashed rgba(56, 189, 248, .55); }
.hiv-tm-pic svg { width: 22px; height: 22px; }
.hiv-tm-pic span { font-size: .66rem; font-weight: 700; }
.hiv-tm-pic.has { border: 2px solid rgba(56, 189, 248, .6); }
.hiv-tm-pic.has img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hiv-tm-pic.has span { position: absolute; left: 0; right: 0; bottom: 0; padding: 3px 0 5px; color: #fff; background: rgba(2, 6, 23, .62); opacity: 0; transition: opacity .15s; }
.hiv-tm-pic.has:hover span, .hiv-tm-pic.has:focus-visible span { opacity: 1; }
.hiv-tm-pic.busy { opacity: .5; pointer-events: none; }
.hiv-tm-f { display: grid; gap: 8px; min-width: 0; }
.hiv-tm-in { width: 100%; box-sizing: border-box; margin: 0; font: inherit; font-size: .95rem; color: #fff; background: rgba(2, 6, 23, .55); border: 1px solid rgba(148, 163, 184, .22); border-radius: 12px; padding: 10px 12px; outline: none; }
.hiv-tm-in:focus { border-color: rgba(56, 189, 248, .7); box-shadow: 0 0 0 3px rgba(56, 189, 248, .14); }
.hiv-tm-in::placeholder { color: #64748b; }
.hiv-tm-x { width: 34px; height: 34px; border-radius: 10px; cursor: pointer; font-size: 1.3rem; line-height: 1; color: #94a3b8; background: transparent; border: 1px solid transparent; }
.hiv-tm-x:hover { color: #fff; border-color: var(--hv-line); }
.hiv-tm-add { align-self: flex-start; cursor: pointer; font: inherit; font-size: .88rem; font-weight: 700; color: #7dd3fc; background: transparent; border: 1px dashed rgba(56, 189, 248, .45); border-radius: 12px; padding: 10px 14px; }
.hiv-tm-add:hover { background: rgba(56, 189, 248, .08); }
.hiv-tm-tip { margin: 2px 0 0; font-size: .8rem; color: var(--hv-muted); }

/* ---- review -------------------------------------------------------------- */
.hiv-review { list-style: none; margin: 0; padding: 0; border: 1px solid var(--hv-line); border-radius: 16px; overflow: hidden; background: rgba(2, 6, 23, .35); }
.hiv-review li { display: grid; grid-template-columns: 170px 1fr auto; gap: 14px; align-items: center; padding: 11px 14px; border-top: 1px solid var(--hv-line); font-size: .9rem; }
.hiv-review li:first-child { border-top: 0; }
.hiv-review li.need { background: rgba(251, 191, 36, .06); }
.hiv-rv-l { color: var(--hv-muted); font-weight: 600; font-size: .82rem; }
.hiv-rv-v { color: #fff; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.hiv-rv-v.long { font-weight: 500; color: #cbd5e1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hiv-empty { color: #64748b; font-weight: 500; font-style: italic; }
li.need .hiv-empty { color: var(--hv-warn); font-style: normal; font-weight: 700; }
.hiv-rv-edit { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 10px; cursor: pointer; font: inherit; font-size: .78rem; font-weight: 700; color: #7dd3fc; background: transparent; border: 1px solid transparent; }
.hiv-rv-edit:hover { background: rgba(56, 189, 248, .08); border-color: rgba(56, 189, 248, .3); }
.hiv-rv-edit svg { width: 14px; height: 14px; }
.hiv-final { justify-content: flex-end; }
.hiv-final .hiv-finish { min-width: 230px; }

/* ---- footer -------------------------------------------------------------- */
.hiv-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--hv-line); }
.hiv-link { display: inline-flex; align-items: center; gap: 7px; background: none; border: 0; padding: 4px 0; cursor: pointer; font: inherit; font-size: .84rem; font-weight: 500; color: #a5b4fc; }
.hiv-link svg { width: 16px; height: 16px; }
.hiv-link:hover { color: #c7d2fe; text-decoration: underline; text-underline-offset: 3px; }
.hiv-privacy { font-size: .76rem; color: #64748b; }
.hiv[data-step="intro"] .hiv-toform { display: none; }   /* the intro has its own form button */
.hiv[data-step="intro"] .hiv-foot { justify-content: flex-end; }

/* ---- the invitation back, shown above the classic form ------------------- */
.hiv-invite {
    display: flex; align-items: center; gap: 14px; margin: 0 0 18px; padding: 12px 14px 12px 12px; border-radius: 16px;
    background: linear-gradient(135deg, rgba(129, 140, 248, .12), rgba(56, 189, 248, .07)); border: 1px solid rgba(129, 140, 248, .3);
}
.hiv-invite-face { flex: 0 0 auto; width: 52px; height: 52px; position: relative; display: block; }
.hiv-invite-t { flex: 1; min-width: 0; font-size: .88rem; color: var(--text-secondary, #94a3b8); line-height: 1.4; }
.hiv-invite-t b { color: #fff; }
.hiv-invite-go {
    flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; cursor: pointer; min-height: 40px; padding: 0 14px; border-radius: 11px;
    font: inherit; font-size: .85rem; font-weight: 800; color: #04121f; border: 0;
    background: linear-gradient(135deg, var(--accent-primary, #38bdf8), #818cf8);
}
.hiv-invite-go svg { width: 16px; height: 16px; }

/* ---- motion -------------------------------------------------------------- */
@keyframes hivRise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes hivPulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes hivTalkRing { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes hivListenRing { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes hivWave { 0%, 100% { height: 4px; } 50% { height: 18px; } }
@keyframes hivRings { 0% { box-shadow: 0 0 0 0 rgba(244, 114, 182, .55); } 100% { box-shadow: 0 0 0 16px rgba(244, 114, 182, 0); } }

/* The walkthrough: one idea per screen, dots for where you are. */
.hiv-retour[hidden] { display: none; }
.hiv-tour-dots { display: flex; gap: 6px; margin: 0 0 16px; }
.hiv-tour-dots i { width: 22px; height: 4px; border-radius: 4px; background: rgba(148, 163, 184, .25); }
.hiv-tour-dots i.on { background: var(--hv-accent); }
.hiv-tour-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 16px; }
.hiv-tour .hiv-actions { justify-content: flex-start; }

/* A word before the next question ("Great to meet you, Maria!"), on its own line. */
.hiv-lead { display: block; margin-bottom: 8px; font-size: .78em; font-weight: 400; color: #7dd3fc; letter-spacing: 0; line-height: 1.35; }

/* How loud the microphone is while he listens: proof that it hears you. */
.hiv-level { position: absolute; left: 16px; right: 16px; bottom: 7px; height: 3px; border-radius: 3px; background: rgba(148, 163, 184, .14); overflow: hidden; display: none; pointer-events: none; }
.hiv-level i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #34d399, var(--hv-accent)); transition: width .08s linear; }
.hiv.is-listening .hiv-level { display: block; }

/* Hands-free countdown: the way to stop it. */
.hiv-wait { margin-left: 8px; padding: 4px 10px; border-radius: 8px; border: 1px solid rgba(110, 231, 183, .45); background: transparent; color: #6ee7b7; font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; }
.hiv-wait:hover { background: rgba(110, 231, 183, .12); }

/* The browser's microphone question: pointing at its box, which is easy to miss. */
.hiv-allow { position: relative; padding: 18px 18px 18px 64px; border-radius: 16px; border: 1px solid rgba(56, 189, 248, .45); background: rgba(56, 189, 248, .08); }
.hiv-allow-arrow { position: absolute; left: 16px; top: 16px; width: 32px; height: 32px; color: var(--hv-accent); transform: rotate(-90deg); animation: hivPointUp 1.1s ease-in-out infinite; }
.hiv-allow-arrow svg { width: 100%; height: 100%; }
.hiv-allow-t { margin: 0 0 6px; font-size: 1rem; color: #fff; line-height: 1.45; }
.hiv-allow-s { margin: 0; font-size: .84rem; color: var(--hv-muted); line-height: 1.45; }
.hiv-allow-steps { margin: 6px 0 10px; padding-left: 20px; color: var(--hv-text); font-size: .9rem; line-height: 1.6; }
.hiv-blocked { padding-left: 18px; border-color: rgba(251, 191, 36, .5); background: rgba(251, 191, 36, .07); }
.hiv-blocked .hiv-actions { margin-top: 14px; }
@keyframes hivPointUp { 0%, 100% { transform: rotate(-90deg) translateX(0); } 50% { transform: rotate(-90deg) translateX(6px); } }
.hiv-intro .hiv-perks svg { color: var(--hv-accent); }

@media (prefers-reduced-motion: reduce) {
    .hiv-allow-arrow { animation: none; }
    .hiv *, .hiv::before { animation: none !important; transition: none !important; }
}

/* ---- phones -------------------------------------------------------------- */
@media (max-width: 640px) {
    .hiv { padding: 16px 15px 14px; border-radius: 18px; margin-left: -2px; margin-right: -2px; }
    .hiv-stage { grid-template-columns: 76px 1fr; gap: 12px; align-items: start; }
    .hiv-face { width: 76px; height: 76px; }
    .hiv-face-host { inset: -10px; }
    .hiv-say { font-size: 1.08rem; line-height: 1.34; }
    .hiv-hint { font-size: .84rem; }
    .hiv-answer { flex-direction: column; }
    .hiv-mic, .hiv-long .hiv-mic { width: 100%; min-height: 56px; flex-direction: row; align-self: stretch; }
    .hiv-mic[aria-pressed="true"] .hiv-mic-l { font-size: .9rem; white-space: nowrap; }
    .hiv-opts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .hiv-opt { min-height: 46px; padding: 9px 10px; font-size: .84rem; gap: 8px; }
    .hiv-opt-tick { width: 18px; height: 18px; }
    .hiv-opts-rich { grid-template-columns: 1fr; }
    .hiv-opts-img { grid-template-columns: 1fr; }
    .hiv-perks { grid-template-columns: 1fr; }
    .hiv-actions .hiv-btn { flex: 1 1 auto; }
    .hiv-nav .hiv-ghost { min-height: 40px; background: transparent; border-color: transparent; color: var(--hv-muted); }
    .hiv-nav .hiv-next { flex: 1 1 100%; order: -1; margin-left: 0; }
    .hiv-intro .hiv-actions .hiv-btn { flex: 1 1 100%; }
    .hiv-review li { grid-template-columns: 1fr auto; gap: 4px 10px; }
    .hiv-rv-l { grid-column: 1 / -1; }
    .hiv-final .hiv-finish { flex: 1 1 100%; order: -1; min-width: 0; }
    .hiv-privacy { display: none; }
    .hiv-invite { flex-wrap: wrap; }
    .hiv-invite-go { width: 100%; justify-content: center; }
}


/* "Turn your sound up" slide: a speaker pumping to a beat (renderIntro / speakerArt). */
.hiv-spk { display: flex; align-items: center; gap: 6px; margin: 4px 0 18px; }
.hiv-spk-box { width: 104px; height: 130px; flex: 0 0 auto; overflow: visible; }
.hiv-spk-cab { fill: #111a2e; stroke: rgba(148, 163, 184, .35); stroke-width: 2; }
.hiv-spk-ring { fill: #0a0f1d; stroke: rgba(148, 163, 184, .45); stroke-width: 2; }
.hiv-spk-surround { fill: #1b2742; stroke: #38bdf8; stroke-width: 2.5; }
.hiv-spk-paper { fill: #22304f; stroke: rgba(56, 189, 248, .35); stroke-width: 1.5; }
.hiv-spk-cap { fill: #38bdf8; }
.hiv-spk-cone, .hiv-spk-tw { transform-box: fill-box; transform-origin: center; }
.hiv-spk-cone { animation: hiv-woofer .52s cubic-bezier(.2, .7, .3, 1) infinite; }
.hiv-spk-tw { animation: hiv-tweeter .13s linear infinite; }
.hiv-spk-waves { width: 46px; height: 92px; fill: none; stroke: #38bdf8; stroke-width: 4; stroke-linecap: round; }
.hiv-spk-waves path { opacity: 0; animation: hiv-wave 1.04s ease-out infinite; }
.hiv-spk-waves path:nth-child(2) { animation-delay: .12s; }
.hiv-spk-waves path:nth-child(3) { animation-delay: .24s; }
.hiv-spk-t { margin-left: 4px; display: flex; flex-direction: column; gap: 4px; }
.hiv-spk-t b { font-size: 1.15rem; font-weight: 800; color: #e2e8f0; }
.hiv-spk-t span { font-size: .9rem; color: #94a3b8; }
/* A kick drum on every beat and a softer hit after it: the cone punches out, then in. */
@keyframes hiv-woofer {
    0%   { transform: scale(1); }
    8%   { transform: scale(1.11); }
    22%  { transform: scale(.95); }
    36%  { transform: scale(1.04); }
    50%  { transform: scale(1); }
    58%  { transform: scale(1.06); }
    72%  { transform: scale(.98); }
    100% { transform: scale(1); }
}
@keyframes hiv-tweeter { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }
@keyframes hiv-wave { 0% { opacity: 0; transform: translateX(-4px); } 15% { opacity: .95; } 100% { opacity: 0; transform: translateX(8px); } }
@media (prefers-reduced-motion: reduce) {
    .hiv-spk-cone, .hiv-spk-tw, .hiv-spk-waves path { animation: none; }
    .hiv-spk-waves path { opacity: .8; }
}

/* The microphone is opening: amber, not the blue "go ahead" glow, until it really
   takes sound (rec.onaudiostart), so nobody starts talking into a mic that is off. */
.hiv.is-listening.is-mic-warming .hiv-input { border-color: rgba(251, 191, 36, .7); box-shadow: 0 0 0 4px rgba(251, 191, 36, .14); }
.hiv.is-listening.is-mic-warming .hiv-face-ring { animation: none; box-shadow: 0 0 0 2px rgba(251, 191, 36, .5); }
.hiv.is-listening.is-mic-warming .hiv-wave { opacity: .35; }

/* The story questions: a quiet line saying their words go on the website (2026-10-26). */
.hiv-webnote { margin: 10px 2px 0; font-size: .84rem; color: var(--hv-muted); }
.hiv-webnote::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 8px 1px 0; border-radius: 50%; background: #fbbf24; vertical-align: middle; }
.hiv-lead-note { color: #fcd34d; }

/* ---- the answers panel (in the page's right-hand panel) ------------------- */
.hiv-panel { display: flex; flex-direction: column; gap: 10px; color: #e2e8f0; font-size: .9rem; min-height: 0; }
.hiv-pn-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.hiv-pn-head h3 { margin: 0; font-size: 1.05rem; font-weight: 600; color: #f1f5f9; }
.hiv-pn-head span { font-size: .8rem; color: #94a3b8; white-space: nowrap; }
.hiv-pn-hint { margin: 0; font-size: .82rem; line-height: 1.45; color: #94a3b8; }
.hiv-pn-list { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; overflow-y: auto; max-height: calc(var(--vh100, 100vh) - 240px); }
.hiv-pn-row {
    width: 100%; text-align: left; cursor: pointer; font: inherit; color: inherit;
    display: flex; flex-direction: column; gap: 3px; padding: 9px 11px; border-radius: 10px;
    background: rgba(255, 255, 255, .03); border: 1px solid rgba(148, 163, 184, .14);
    transition: border-color .2s, background .2s;
}
.hiv-pn-row:hover { border-color: rgba(56, 189, 248, .45); background: rgba(56, 189, 248, .05); }
.hiv-pn-row:focus-visible { outline: 2px solid rgba(56, 189, 248, .6); outline-offset: 2px; }
.hiv-pn-row.is-now { border-color: rgba(56, 189, 248, .55); }
.hiv-pn-l { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .74rem; color: #94a3b8; }
.hiv-pn-tag { font-size: .7rem; color: #a5b4fc; white-space: nowrap; }
.hiv-pn-tag.now { color: #7dd3fc; }
.hiv-pn-v { color: #f1f5f9; line-height: 1.4; word-break: break-word; }
.hiv-pn-v.long { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hiv-pn-v.empty { color: #64748b; }
