/* ============================================================
   Lionheart IQ — product layer styles
   Loaded AFTER styles.css. Reuses the Lionheart design tokens
   (--ink, --iris, --lilac, --bone …) and core components
   (header, .btn, .wrap, footer). Only IQ-specific product UI
   lives here so the recruitment site's styles.css is untouched.
   ============================================================ */

/* ---------- anti-nesting guard ----------
   Set by iq.js (adds html.is-embedded) when a page is loaded inside an iframe.
   A full IQ page must never show its own nav/hero/footer inside a frame — that
   is the "window in a window" glitch. Strip the chrome so only content shows. */
html.is-embedded header,
html.is-embedded footer,
html.is-embedded .iq-powered-strip{display:none!important}
html.is-embedded .page-hero,
html.is-embedded .iq-hero{padding-top:clamp(14px,2.5vw,24px)!important}

/* ---------- IQ wordmark badge ---------- */
.brand .iq-badge{
  font-family:var(--display);font-weight:800;font-size:.62em;letter-spacing:.04em;
  color:#fff;background:var(--iris);border-radius:4px;padding:.14em .42em;margin-left:.5em;
  line-height:1;transform:translateY(-1px);text-transform:none;
}
html[data-theme="light"] .brand .iq-badge{background:var(--iris)}

/* powered-by relationship line */
.iq-powered{display:inline-flex;align-items:center;gap:.5em;color:var(--mist-dk);
  font-family:var(--mono);text-transform:uppercase;letter-spacing:.16em;font-size:.62rem;font-weight:700}
.iq-powered a{color:var(--lilac);text-decoration:none;border-bottom:1px solid transparent;transition:border-color .2s}
.iq-powered a:hover{border-bottom-color:var(--lilac)}
.iq-powered .dot{width:4px;height:4px;border-radius:50%;background:var(--iris-bright)}

/* nav external (jobs on the recruitment site) */
.nav-links a.iq-ext{display:inline-flex;align-items:center;gap:.35em}
.nav-links a.iq-ext svg{width:11px;height:11px;opacity:.7}

/* ---------- home hero (compact product gateway) ---------- */
.iq-hero{position:relative;overflow:hidden;padding:clamp(48px,8vw,88px) 0 clamp(30px,5vw,56px)}
.iq-hero .wrap{position:relative;z-index:2}
.iq-hero h1{font-size:clamp(2rem,5.2vw,3.4rem);line-height:1.05;letter-spacing:-.015em;margin:14px 0 0;max-width:16ch}
.iq-hero h1 .accent{color:var(--lilac)}
.iq-hero .lead{color:var(--mist-dk);font-size:clamp(1rem,1.6vw,1.18rem);max-width:52ch;margin:18px 0 0;line-height:1.6}
.iq-hero .cta-row{display:flex;gap:14px;flex-wrap:wrap;margin-top:28px}
.iq-hero .iq-powered{margin-top:22px}

/* ---------- audience sections ---------- */
.iq-aud{padding:clamp(40px,6vw,72px) 0}
.iq-aud + .iq-aud{padding-top:0}
.iq-aud-head{display:flex;align-items:baseline;justify-content:space-between;gap:18px;flex-wrap:wrap;margin-bottom:26px}
.iq-aud-head h2{font-size:clamp(1.3rem,2.6vw,1.85rem);letter-spacing:-.01em}
.iq-aud-head .iq-aud-note{color:var(--mist);font-size:.9rem;max-width:40ch}
.iq-aud-tag{font-family:var(--mono);text-transform:uppercase;letter-spacing:.18em;font-size:.66rem;font-weight:700;color:var(--iris-bright)}

/* tool card grid */
.iq-grid{display:grid;gap:16px}
.iq-grid.cols-2{grid-template-columns:repeat(2,1fr)}
.iq-grid.cols-3{grid-template-columns:repeat(3,1fr)}

.iq-card{position:relative;display:flex;flex-direction:column;gap:10px;
  background:var(--ink-2);border:1px solid var(--line-dk);border-radius:14px;
  padding:24px 22px 22px;transition:border-color .2s,transform .2s,background .2s}
.iq-card:hover{border-color:rgba(183,164,242,.4);transform:translateY(-3px)}
.iq-card:focus-within{border-color:var(--lilac)}
.iq-card .iq-card-ico{width:34px;height:34px;color:var(--iris-bright)}
.iq-card .iq-card-ico i{font-size:26px;line-height:1}
.iq-card h3{font-size:1.06rem;letter-spacing:-.01em;display:flex;align-items:center;gap:.4em}
.iq-card p{color:var(--mist-dk);font-size:.9rem;line-height:1.55;flex:1}
.iq-card .iq-card-cta{display:inline-flex;align-items:center;gap:.4em;color:var(--lilac);
  font-weight:600;font-size:.85rem;margin-top:2px}
.iq-card .iq-card-cta svg{width:14px;height:14px;transition:transform .2s}
.iq-card:hover .iq-card-cta svg{transform:translateX(3px)}
/* whole card clickable via stretched link */
.iq-card a.iq-stretch::after{content:"";position:absolute;inset:0;border-radius:14px}

html[data-theme="light"] .iq-card{background:#fff;box-shadow:0 1px 0 rgba(30,20,60,.04)}

/* ---------- how it works ---------- */
.iq-how{padding:clamp(40px,6vw,72px) 0;border-top:1px solid var(--line-dk)}
.iq-how h2{font-size:clamp(1.3rem,2.6vw,1.85rem);letter-spacing:-.01em;margin-bottom:8px}
.iq-how .iq-how-sub{color:var(--mist);font-size:.95rem;margin-bottom:34px;max-width:56ch}
.iq-steps{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;counter-reset:step}
.iq-step{position:relative;background:var(--ink-2);border:1px solid var(--line-dk);border-radius:14px;padding:22px 20px}
html[data-theme="light"] .iq-step{background:#fff}
.iq-step .iq-step-n{font-family:var(--mono);font-weight:800;font-size:.9rem;color:var(--iris-bright);
  width:30px;height:30px;display:grid;place-items:center;border:1px solid var(--line-dk);border-radius:8px;margin-bottom:14px}
.iq-step h3{font-size:1rem;margin-bottom:6px}
.iq-step p{color:var(--mist-dk);font-size:.86rem;line-height:1.55}

/* ---------- tool-page conversion CTA block ---------- */
.iq-cta-block{background:var(--ink-2);border:1px solid var(--line-dk);border-radius:16px;
  padding:clamp(24px,4vw,36px);margin:28px 0;display:flex;gap:24px;align-items:center;flex-wrap:wrap;justify-content:space-between}
html[data-theme="light"] .iq-cta-block{background:#fff}
.iq-cta-block .iq-cta-copy{max-width:46ch}
.iq-cta-block h3{font-size:1.15rem;margin-bottom:6px}
.iq-cta-block p{color:var(--mist-dk);font-size:.9rem;line-height:1.55}

/* ---------- readout form ---------- */
.iq-form{max-width:720px;margin:0 auto}
.iq-form .iq-field{display:flex;flex-direction:column;gap:6px;margin-bottom:16px}
.iq-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.iq-form label{font-family:var(--mono);text-transform:uppercase;letter-spacing:.08em;font-size:.68rem;font-weight:700;color:var(--mist-dk)}
.iq-form input,.iq-form select,.iq-form textarea{
  background:var(--ink-3);border:1px solid var(--line-dk);border-radius:10px;color:var(--bone);
  font:500 .95rem var(--body);padding:12px 14px;width:100%}
html[data-theme="light"] .iq-form input,html[data-theme="light"] .iq-form select,html[data-theme="light"] .iq-form textarea{background:#fff;color:var(--graphite)}
.iq-form input:focus,.iq-form select:focus,.iq-form textarea:focus{outline:2px solid var(--lilac);outline-offset:1px;border-color:transparent}
.iq-form textarea{min-height:96px;resize:vertical}
.iq-consent{display:flex;gap:12px;align-items:flex-start;background:var(--ink-2);border:1px solid var(--line-dk);
  border-radius:12px;padding:14px 16px;margin-bottom:12px}
html[data-theme="light"] .iq-consent{background:#fff}
.iq-consent input[type=checkbox]{width:18px;height:18px;margin-top:2px;flex:none;accent-color:var(--iris)}
.iq-consent span{font-size:.85rem;color:var(--mist-dk);line-height:1.5}
.iq-form .iq-priv{font-size:.78rem;color:var(--mist);margin-top:8px;display:flex;gap:.5em;align-items:flex-start}

/* ---------- small print / methodology ---------- */
.iq-note{color:var(--mist);font-size:.8rem;line-height:1.55}

/* ---------- hero with wheel (home) ---------- */
.iq-hero-grid{display:grid;grid-template-columns:1.02fr .98fr;gap:clamp(24px,4vw,56px);align-items:center}
.iq-hero-grid .iq-hero-copy{min-width:0}

/* ---------- radial tool wheel ---------- */
.iq-wheel-stage{display:flex;align-items:center;justify-content:center;padding:10px}
.iq-wheel{position:relative;width:min(430px,84vw);aspect-ratio:1;user-select:none;
  filter:drop-shadow(0 24px 60px rgba(93,63,211,.28))}
.iq-wheel-svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.iq-wheel .wedge{fill:#171227;stroke:#0E0A1F;stroke-width:2.5;transition:fill .18s ease, filter .18s ease;cursor:pointer}
.iq-wheel .wedge.alt{fill:#1E1636}
.iq-wheel a{outline:none;cursor:pointer}
.iq-wheel a.active .wedge{fill:#5D3FD3}
.iq-wheel a:focus-visible .wedge{fill:#5D3FD3;stroke:#B7A4F2;stroke-width:3.5}
.iq-wheel a.active .wedge{filter:drop-shadow(0 0 10px rgba(122,92,240,.7))}

.iq-wheel-ico{position:absolute;transform:translate(-50%,-50%);pointer-events:none;text-align:center;
  color:#B7A4F2;transition:color .18s ease,transform .18s ease;z-index:2}
.iq-wheel-ico i{font-size:clamp(20px,5.4vw,26px);line-height:1;display:block}
.iq-wheel-lbl{display:block;margin-top:3px;font-family:var(--display),'Poppins',sans-serif;font-weight:600;
  font-size:clamp(8px,2.3vw,11px);line-height:1;letter-spacing:.01em;color:#C9C0E6;white-space:nowrap;text-align:center}
.iq-wheel-ico.active{color:#fff;transform:translate(-50%,-50%) scale(1.12)}
.iq-wheel-ico.active .iq-wheel-lbl{color:#fff}

.iq-wheel-hub{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);
  width:47%;aspect-ratio:1;border-radius:50%;z-index:3;
  background:radial-gradient(circle at 50% 38%, #211a3c 0%, #100c22 78%);
  border:1.6px solid #8B6BFF;box-shadow:0 0 14px 0 rgba(139,107,255,.6), inset 0 0 10px 0 rgba(139,107,255,.22), inset 0 0 24px rgba(0,0,0,.5);
  display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:6%}
.iq-wheel-hub .mark{width:30px;height:30px;color:#7A5CF0;margin-bottom:7px;flex:none}
.iq-wheel-hub .hub-title{font-family:var(--display);font-weight:700;font-size:.98rem;line-height:1.12;color:#F4F2FB}
.iq-wheel-hub .hub-sub{font-size:.68rem;color:#9A92B8;margin-top:5px;letter-spacing:.02em;line-height:1.3}

/* Light mode: white wheel — white wedges, purple lines + iris glow, purple icons/lion (Dan, 2026-07-14) */
html[data-theme="light"] .iq-wheel{filter:drop-shadow(0 24px 60px rgba(93,63,211,.22))}
html[data-theme="light"] .iq-wheel .wedge{fill:#FFFFFF;stroke:#7A5CF0}
html[data-theme="light"] .iq-wheel .wedge.alt{fill:#F6F2FD}
html[data-theme="light"] .iq-wheel a.active .wedge{fill:#7A5CF0}
html[data-theme="light"] .iq-wheel a:focus-visible .wedge{fill:#EDE7FC;stroke:#5D3FD3}
html[data-theme="light"] .iq-wheel-ico{color:#5D3FD3}
html[data-theme="light"] .iq-wheel-lbl{color:#3C2E86}
html[data-theme="light"] .iq-wheel-ico.active{color:#fff}
html[data-theme="light"] .iq-wheel-ico.active .iq-wheel-lbl{color:#fff}
html[data-theme="light"] .iq-wheel-hub{background:radial-gradient(circle at 50% 38%, #ffffff 0%, #F3EEFC 78%);
  border-color:#8B6BFF;box-shadow:0 0 14px 0 rgba(139,107,255,.5), inset 0 0 12px 0 rgba(139,107,255,.14)}
html[data-theme="light"] .iq-wheel-hub .mark{color:#5D3FD3}
html[data-theme="light"] .iq-wheel-hub .hub-title{color:#241A4D}
html[data-theme="light"] .iq-wheel-hub .hub-sub{color:#6a6193}
html[data-theme="light"] .iq-wheel:hover .iq-wheel-hub{box-shadow:0 0 22px 0 rgba(139,107,255,.7), inset 0 0 12px 0 rgba(139,107,255,.2)}
html[data-theme="light"] .sc-wheel-arc{stroke:#7A5CF0}

/* Light mode: hovering a SINGLE segment inverts just that wedge (white -> iris) and
   turns its icon + label white. Per-segment, NOT whole-wheel — the .hover class on the
   matching icon overlay is toggled by iq-wheel.js (icons sit outside the SVG anchor, so
   CSS a:hover can't reach them). Selecting a tool stays click-driven. Dan 2026-07-14 */
html[data-theme="light"] .iq-wheel a:hover .wedge,
html[data-theme="light"] .iq-wheel a:hover .wedge.alt{fill:#5D3FD3}
.iq-wheel-ico.hover,
html[data-theme="light"] .iq-wheel-ico.hover{color:#fff}
.iq-wheel-ico.hover .iq-wheel-lbl,
html[data-theme="light"] .iq-wheel-ico.hover .iq-wheel-lbl{color:#fff}

@keyframes iq-wheel-spin-in{from{opacity:0;transform:rotate(-18deg) scale(.9)}to{opacity:1;transform:none}}
.iq-wheel-in .iq-wheel-svg{animation:iq-wheel-spin-in .7s cubic-bezier(.3,.7,.2,1) both}
.iq-wheel-in .iq-wheel-ico{animation:iq-wheel-fade .5s ease .3s both}
@keyframes iq-wheel-fade{from{opacity:0}to{opacity:1}}

/* ============================================================
   SUPERCHARGE — lightning / electric brand energy
   Iris lightning, tasteful and performant. All motion is
   disabled under prefers-reduced-motion (see bottom of block).
   ============================================================ */

/* --- charged primary buttons: electric glow fades in on hover --- */
.btn-iris{position:relative}
.btn-iris:hover{box-shadow:0 8px 30px -8px var(--iris-bright), 0 0 22px -2px rgba(122,92,240,.7)}

/* --- ambient lightning layer (injected by iq.js into heroes/CTAs) --- */
.sc-bolts{position:absolute;inset:0;z-index:1;pointer-events:none;overflow:hidden}
.sc-bolts svg{position:absolute;inset:0;width:100%;height:100%}
.sc-bolt{fill:none;stroke:var(--lilac);stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;
  filter:drop-shadow(0 0 5px var(--iris-bright)) drop-shadow(0 0 12px var(--iris));opacity:0}
.sc-bolt.b1{animation:sc-strike 4.6s ease-out .4s infinite}
.sc-bolt.b2{animation:sc-strike 5.8s ease-out 1.9s infinite}
.sc-bolt.b3{animation:sc-strike 5.2s ease-out 3.1s infinite}
.sc-bolt.b4{animation:sc-strike 6.4s ease-out 2.6s infinite}
.sc-bolt.b5{animation:sc-strike 5.5s ease-out 4.2s infinite}
@keyframes sc-strike{
  0%,100%{opacity:0}
  1%{opacity:1} 2.5%{opacity:.12} 3.5%{opacity:.9} 5%{opacity:.08} 6.5%{opacity:.55} 8%{opacity:0}
}
/* keep hero/cta copy above the bolts */
.iq-hero > .wrap, .page-hero > .wrap, .cta-strip > .wrap{position:relative;z-index:2}
.cta-strip{position:relative;overflow:hidden}

/* full-page ambient lightning behind all content (injected into <body>) */
.sc-bolts-page{position:fixed;inset:0;z-index:-1;pointer-events:none;overflow:hidden}
.sc-bolts-page svg{position:absolute;inset:0;width:100%;height:100%}
.sc-bolts-page .sc-bolt{stroke-width:1.1;filter:drop-shadow(0 0 4px var(--iris-bright))}

/* electric card hover */
.iq-card{transition:border-color .2s,transform .2s,background .2s,box-shadow .2s}
.iq-card:hover{box-shadow:0 0 28px -8px rgba(122,92,240,.6)}
.iq-step{transition:box-shadow .25s}
.iq-how .iq-steps:hover .iq-step{box-shadow:0 0 22px -10px rgba(122,92,240,.45)}

/* --- eyebrow chevron: subtle static glow (no idle animation) --- */
.eyebrow .chev{filter:drop-shadow(0 0 4px var(--iris-bright))}

/* --- wheel: static faint energy ring; brightens + hub glows on hover --- */
.iq-wheel::before{content:"";position:absolute;inset:-3%;border-radius:50%;z-index:0;pointer-events:none;
  background:conic-gradient(from 0deg,
    transparent 0 6%, rgba(122,92,240,.55) 10%, transparent 14% 30%,
    rgba(183,164,242,.5) 35%, transparent 39% 60%,
    rgba(122,92,240,.55) 64%, transparent 68% 86%,
    rgba(183,164,242,.5) 90%, transparent 94%);
  -webkit-mask:radial-gradient(circle, transparent 48.5%, #000 49.5%, #000 50.5%, transparent 51.5%);
  mask:radial-gradient(circle, transparent 48.5%, #000 49.5%, #000 50.5%, transparent 51.5%);
  opacity:.4;transition:opacity .35s ease}
.iq-wheel:hover::before{opacity:.85}
/* bright glow ring around the segments — matches the .lh-fab launcher glow */
.iq-wheel::after{content:"";position:absolute;inset:2%;border-radius:50%;pointer-events:none;z-index:1;
  border:1.6px solid #8B6BFF;
  box-shadow:0 0 14px 0 rgba(139,107,255,.65), 0 0 4px 0 rgba(139,107,255,.9), inset 0 0 10px 0 rgba(139,107,255,.25);
  transition:box-shadow .35s ease,border-color .35s ease}
.iq-wheel:hover::after{box-shadow:0 0 22px 0 rgba(139,107,255,.85), 0 0 6px 0 rgba(139,107,255,1), inset 0 0 14px 0 rgba(139,107,255,.35)}
.iq-wheel-hub{transition:box-shadow .35s ease}

/* --- FAB page-load spinner: the lion's glow ring sweeps while navigating
   between pages (armed by iq.js via .is-loading). A bright arc rides around the
   ring on top of the ambient glow; the lion stays clear in the centre hole. --- */
/* --- FAB page-load spinner: 4 purple claws rake around the ring (Dan 2026-07-14).
   The .lh-fab-claws layer (SVG injected by iq.js) rotates around the lion while the
   page loads; .is-loading fades it in. Claws are concentric + close together,
   following the ring line. --- */
.lh-fab-claws{position:absolute;inset:-10px;pointer-events:none;opacity:0;transition:opacity .25s ease;
  transform-origin:50% 50%;
  filter:drop-shadow(0 0 4px rgba(139,107,255,.95)) drop-shadow(0 0 9px rgba(122,92,240,.55))}
.lh-fab-claws svg{width:100%;height:100%;display:block;overflow:visible}
.lh-fab.is-loading .lh-fab-claws{opacity:1;animation:lh-fab-load-spin .95s linear infinite}
.lh-fab.is-loading{animation:none} /* hold the ambient pulse steady while the claws spin */
@keyframes lh-fab-load-spin{to{transform:rotate(1turn)}}
@media (prefers-reduced-motion:reduce){ .lh-fab.is-loading .lh-fab-claws{animation:none;opacity:.7} }
.iq-wheel:hover .iq-wheel-hub{box-shadow:0 0 22px 0 rgba(139,107,255,.8), inset 0 0 12px 0 rgba(139,107,255,.3), inset 0 0 24px rgba(0,0,0,.5)}
.iq-wheel-hub .mark{filter:drop-shadow(0 0 6px rgba(122,92,240,.7))}
.iq-wheel a .wedge{transition:fill .25s ease, filter .25s ease}
.iq-wheel a.active .wedge{filter:drop-shadow(0 0 14px rgba(122,92,240,.95))}

/* ---------- responsive ---------- */
@media(max-width:860px){
  .iq-grid.cols-2,.iq-grid.cols-3{grid-template-columns:1fr}
  .iq-steps{grid-template-columns:repeat(2,1fr)}
  .iq-form-grid{grid-template-columns:1fr}
  .iq-hero-grid{grid-template-columns:1fr}
  .iq-wheel-stage{margin-top:8px}
}

/* ============================================================
   HOME LAUNCHER — no top nav, the wheel is the menu
   ============================================================ */
.iq-launch{position:relative;overflow:hidden;text-align:center;padding:clamp(24px,5vw,52px) 0 clamp(40px,7vw,80px)}
.iq-launch > .wrap{position:relative;z-index:2}
.iq-logo{display:block;margin:0 auto clamp(12px,2.5vw,24px);width:min(430px,78vw);height:auto;filter:drop-shadow(0 0 30px rgba(122,92,240,.35))}
.iq-launch h1{font-size:clamp(1.7rem,4.3vw,3rem);line-height:1.07;letter-spacing:-.015em;max-width:19ch;margin:0 auto;color:#fff}
.iq-launch h1 .accent{color:var(--lilac)}
.iq-launch .lead{color:var(--mist-dk);font-size:clamp(1rem,1.5vw,1.16rem);max-width:54ch;margin:15px auto 0;line-height:1.6}
.iq-launch-wheel{display:flex;justify-content:center;margin:clamp(22px,4vw,42px) auto 0}
.iq-launch-wheel .iq-wheel{width:min(520px,90vw)}
.iq-launch-links{display:flex;gap:6px 26px;justify-content:center;flex-wrap:wrap;margin-top:clamp(20px,3vw,34px)}
.iq-launch-links a{color:var(--lilac);font-weight:600;font-size:.92rem;padding:4px 2px;border-bottom:1px solid transparent;transition:color .2s,border-color .2s}
.iq-launch-links a:hover{color:#fff;border-bottom-color:var(--lilac)}
.iq-launch .iq-powered{margin-top:18px;justify-content:center;display:inline-flex}

/* concrete value split */
.iq-split{padding:clamp(28px,5vw,60px) 0}
.iq-split-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.iq-split-col{background:var(--ink-2);border:1px solid var(--line-dk);border-radius:16px;padding:clamp(24px,3vw,34px);transition:border-color .2s,box-shadow .2s}
.iq-split-col:hover{border-color:rgba(183,164,242,.35);box-shadow:0 0 30px -10px rgba(122,92,240,.5)}
html[data-theme="light"] .iq-split-col{background:#fff}
.iq-split-col h2{font-size:clamp(1.25rem,2.4vw,1.7rem);letter-spacing:-.01em;margin:10px 0;color:var(--bone)}
.iq-split-col p{color:var(--mist-dk);line-height:1.6;font-size:.96rem}
.iq-split-links{display:flex;flex-direction:column;gap:9px;margin-top:18px}
.iq-split-links a{display:inline-flex;align-items:center;gap:.5em;color:var(--lilac);font-weight:600;font-size:.92rem}
.iq-split-links a i{transition:transform .2s}
.iq-split-links a:hover{color:#fff}
.iq-split-links a:hover i{transform:translateX(3px)}

/* hub->segment lightning arc: fades in on hover only (wired in iq-wheel.js) */
.sc-wheel-arc{fill:none;stroke:#B7A4F2;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;
  filter:drop-shadow(0 0 6px #7A5CF0);opacity:0;transition:opacity .28s ease}
.sc-wheel-arc.show{opacity:.85}

@media(max-width:760px){ .iq-split-grid{grid-template-columns:1fr} }
@media(max-width:480px){
  .iq-steps{grid-template-columns:1fr}
}

/* ============================================================
   Mobile mega-polish (2026-07-12) — Lionheart IQ pages.
   Appended last so it wins on equal specificity.
   ============================================================ */
@media (max-width:600px){
  /* No iOS zoom-on-focus */
  form input, form select, form textarea{ font-size:16px }
  /* Comfortable tap targets */
  .nav-toggle{ width:44px; height:44px }
  a.btn, button.btn, .iq-card-cta{ min-height:46px; display:inline-flex; align-items:center }
  .iq-card-cta{ justify-content:flex-start }
  header .nav-links a{ padding:9px 0 }
  /* Headings: wrap, don't overflow, don't dominate the screen */
  .page-title{ font-size:clamp(1.8rem,7.2vw,2.5rem) }
  h1, h2, .page-title{ overflow-wrap:break-word }
  /* Single-column card grids on phones */
  .iq-grid.cols-3, .iq-grid.cols-2{ grid-template-columns:1fr }
  /* Hamburger never shrinks/pushes off; sticky-safe overflow guard */
  .nav-toggle{ flex:none }
  body{ overflow-x:clip }
  img, svg, video, table, pre{ max-width:100% }
  /* No tool input/select can overflow its container on a phone */
  input, select, textarea{ max-width:100%; box-sizing:border-box }
}
@media (max-width:360px){
  .brand{ font-size:1rem }
}

/* ============================================================
   EXTRA SUPERCHARGE (2026-07-12) — Lionheart IQ glow & motion.
   Fade/hover-driven; idle motion limited to slow breathing.
   ============================================================ */

/* wheel: hub + energy ring breathe; wedge glow deepens on hover */
@keyframes iq-breathe{0%,100%{opacity:.7;filter:drop-shadow(0 0 6px rgba(122,92,240,.5))}50%{opacity:1;filter:drop-shadow(0 0 14px rgba(122,92,240,.9))}}
.iq-wheel-hub .mark{animation:iq-breathe 6s ease-in-out infinite}
.iq-wheel::before{transition:opacity .6s ease}
.iq-wheel a.active .wedge{filter:drop-shadow(0 0 16px rgba(122,92,240,.9))}
.iq-wheel-ico.active i{filter:drop-shadow(0 0 8px rgba(183,164,242,.9))}

/* cards: charged hover — lift, edge glow, icon flare */
.iq-card{transition:transform .3s ease,box-shadow .35s ease,border-color .3s ease}
.iq-card:hover{transform:translateY(-4px);
  box-shadow:0 0 0 1px rgba(122,92,240,.5),0 16px 46px -14px rgba(122,92,240,.55)}
.iq-card-ico i{transition:filter .35s ease,transform .3s ease;display:inline-block}
.iq-card:hover .iq-card-ico i{filter:drop-shadow(0 0 10px rgba(122,92,240,.9));transform:scale(1.08)}

/* resource cards: glow bloom */
.iq-res-card:hover{box-shadow:0 0 0 1px rgba(122,92,240,.5),0 16px 44px -14px rgba(122,92,240,.5)}

/* buttons: shimmer sweep + bloom (matches recruitment layer) */
.btn-iris{position:relative;overflow:hidden;transition:box-shadow .35s ease,transform .25s ease}
.btn-iris::after{content:"";position:absolute;top:0;bottom:0;left:-70%;width:45%;
  background:linear-gradient(105deg,transparent,rgba(255,255,255,.35),transparent);
  transform:skewX(-18deg);transition:left .55s ease;pointer-events:none}
.btn-iris:hover{box-shadow:0 0 24px -4px #7A5CF0,0 6px 28px -8px #5D3FD3;transform:translateY(-1px)}
.btn-iris:hover::after{left:130%}

/* hero glow breathes */
@keyframes iq-aura{0%,100%{opacity:.75;transform:scale(1)}50%{opacity:1;transform:scale(1.05)}}
.hero-glow{animation:iq-aura 8s ease-in-out infinite}

/* step numbers pulse-glow on hover */
.iq-step-n{transition:box-shadow .35s ease,color .3s ease}
.iq-step:hover .iq-step-n{box-shadow:0 0 18px -2px rgba(122,92,240,.8);color:#fff}

/* scroll reveal (applied by iq.js) */
.lh-reveal{opacity:0;transform:translateY(22px);transition:opacity .7s ease,transform .7s cubic-bezier(.2,.7,.2,1)}
.lh-reveal.in{opacity:1;transform:none}

@media (prefers-reduced-motion:reduce){
  .iq-wheel-hub .mark,.hero-glow{animation:none}
  .btn-iris::after{display:none}
  .lh-reveal{opacity:1;transform:none;transition:none}
  .iq-card:hover{transform:none}
}

/* (obsolete grouping rule removed 2026-07-12 — styles.css owns the 4-button mobile header) */

/* Tab bar retired — the radial wheel is the tools menu now (2026-07-12).
   Buttons stay in the DOM so switchTab()/aria state keep working. */
.tool-tabs{display:none}
