/* Homepage proof sections: Results (templates/_home_results.html) and AI visibility
   (templates/_home_aivis.html). Loaded only by templates/index.html, after home.css.
   The two sections are deliberately different objects, and different from the framed film above them:
   - Results is a full bleed contrast band that breaks out of the ruled 1240 frame: an annotated
     centrepiece. Short centred copy, then the dashboard as one oversized object that runs off both
     sides of the viewport and is cropped by the bottom of the band, with three numbered pins anchored
     to the regions they explain.
   - AI visibility has no window at all: the stat set as type and the copy on the left, a chat bubble
     and three answer cards on a staggered grid on the right, and a frameless chart strip under them,
     all in the site's own theme.
   The Results UI is dark in both site themes, so it carries fixed tokens (--u-*), copied from the
   app's dark theme. The AI visibility pieces remap the same tokens to the site theme.
   Series colours match the app: clicks and "all assistants" = accent blue, times seen and Perplexity =
   sky, click rate and ChatGPT = green, rank = amber, Claude = violet.
   Motion: one curve, runs once when a block scrolls into view (home-proof.js adds .is-in), and every
   "before" state is gated on .is-armed / .is-seq, which only home-proof.js adds and only when motion
   is allowed, so no JavaScript or reduced motion shows the finished UI. */

/* ---------- Tokens ---------- */
.hp-ui, html[data-theme="dark"] .hp-ax {
  --u-ground: #050505; --u-surface: #111111; --u-soft: #0C0C0C; --u-fill: #1A1A1A; --u-fill2: #222222;
  --u-line: #222222; --u-line2: #2E2E2E; --u-strong: #525252;
  --u-ink: #F2F2F2; --u-ink2: #E0E0E0; --u-muted: #A8A8A8; --u-cap: #8A8A8A; --u-faint: #5C5C5C;
  --u-clicks: #3D5CFF; --u-impr: #86AEFF; --u-green: #4ADE80; --u-amber: #FBBF5A; --u-violet: #A78BFA; --u-accent-text: #8EBBFF;
  --u-tint-green: rgba(34, 197, 94, 0.11); --u-tint-blue: rgba(81, 162, 255, 0.11); --u-tint-amber: rgba(247, 144, 9, 0.12);
  --u-bar: linear-gradient(90deg, #86AEFF 0%, #3D5CFF 100%);
  --u-bar2: linear-gradient(90deg, rgba(134, 174, 255, 0.3) 0%, #86AEFF 100%);
  --u-pop: #181818; --u-area: 0.36; --u-mark: rgba(61, 92, 255, 0.62); --u-mark-ink: #FFFFFF; --u-bubble: #3D5CFF;
  --u-ease: cubic-bezier(0.22, 1, 0.36, 1);
}
.hp-ui { color: var(--u-ink); font-family: var(--font-sans); font-size: 13px; line-height: 1.4; letter-spacing: 0; text-align: left; }
/* AI visibility lives on the page ground, so in the light theme the same tokens become the site's. */
.hp-ax {
  --u-ground: var(--hx-ground, var(--ground)); --u-surface: var(--surface); --u-soft: var(--hx-well); --u-fill: rgba(15, 15, 15, 0.05); --u-fill2: rgba(15, 15, 15, 0.09);
  --u-line: var(--line); --u-line2: var(--line-2); --u-strong: #A3A3A3;
  --u-ink: var(--ink); --u-ink2: #262626; --u-muted: var(--muted); --u-cap: var(--caption); --u-faint: #A3A3A3;
  --u-clicks: #0007CD; --u-impr: #2B8AF7; --u-green: #15803D; --u-amber: #B45309; --u-violet: #7C3AED; --u-accent-text: #0007CD;
  --u-tint-green: rgba(22, 163, 74, 0.1); --u-tint-blue: rgba(0, 7, 205, 0.07); --u-tint-amber: rgba(247, 144, 9, 0.12);
  --u-bar: linear-gradient(90deg, #6C9BFF 0%, #0007CD 100%);
  --u-bar2: linear-gradient(90deg, rgba(0, 7, 205, 0.16) 0%, rgba(0, 7, 205, 0.42) 100%);
  --u-pop: #FFFFFF; --u-area: 0.16; --u-mark: rgba(0, 7, 205, 0.1); --u-mark-ink: #0007CD; --u-bubble: #0007CD;
}
html[data-theme="dark"] .hp-ax { --u-ground: var(--hx-ground, var(--ground)); --u-surface: var(--surface); }
.hp-ui *, .hp-ui *::before, .hp-ui *::after { box-sizing: border-box; }
.hp-ui :where(p, ol, ul, h3) { margin: 0; padding: 0; }
.hp-ui :where(ol, ul) { list-style: none; }
.hp-ui svg { flex: none; }
.hp-c-clicks, .hp-c-all { --c: var(--u-clicks); }
.hp-c-impr, .hp-c-perplexity { --c: var(--u-impr); }
.hp-c-ctr, .hp-c-chatgpt { --c: var(--u-green); }
.hp-c-rank { --c: var(--u-amber); }
.hp-c-claude { --c: var(--u-violet); }
.hp-sample { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 10.5px; font-weight: 400; letter-spacing: 0.06em; text-transform: uppercase; color: var(--u-cap, #9A9A9A); white-space: nowrap; }
.hp-sample::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #F5A524; flex: none; }

/* ================= RESULTS: full bleed contrast band, annotated centrepiece ================= */
/* Inverts against the page: near black in the light theme, a lifted navy field in the dark theme.
   One shader canvas fills the band: calm under the headline, alive low down, so the light seems to
   rise from behind the top edge of the dashboard. */
.hx-page section.hp-band {
  --hp-band-bg: #06070B;
  position: relative; isolation: isolate; overflow: clip; color: #F2F2F2;
  background: radial-gradient(ellipse 70% 60% at 50% 62%, rgba(0, 7, 205, 0.5) 0%, transparent 70%), var(--hp-band-bg);
}
html[data-theme="dark"] .hx-page section.hp-band { --hp-band-bg: #090D26; background: radial-gradient(ellipse 70% 60% at 50% 62%, rgba(61, 92, 255, 0.4) 0%, transparent 70%), var(--hp-band-bg); }
.hp-band::before, .hp-band::after { content: ""; position: absolute; left: 0; right: 0; height: 1px; z-index: 4; pointer-events: none; background: linear-gradient(90deg, rgba(255, 255, 255, 0.07) 0%, rgba(134, 174, 255, 0.55) 50%, rgba(255, 255, 255, 0.07) 100%); }
.hp-band::before { top: 0; }
.hp-band::after { bottom: 0; }
.hp-band-fg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hp-band-fg > canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 900ms ease; }
.hp-band-fg.is-live > canvas { opacity: 0.6; }
html[data-theme="dark"] .hp-band-fg.is-live > canvas { opacity: 0.75; }

.hp-band-in { position: relative; display: flex; flex-direction: column; align-items: center; padding: var(--hx-gap-y) 0 0; }
.hp-band-head { margin-bottom: clamp(40px, 4.6vw, 60px); padding: 0 var(--hx-pad); }
.hp-band-head .hx-h2 { max-width: 21ch; color: #F5F5F5; }
.hp-band-head .hx-sub { max-width: 54ch; color: #B4B4B8; }
.hp-band-head .hx-eyebrow { color: #A1A1AA; }
/* The band's own edge crops the object; this fade makes the cut read as depth, not as a mistake. */
.hp-band-in::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 128px; z-index: 2; pointer-events: none; background: linear-gradient(180deg, transparent 0%, color-mix(in srgb, var(--hp-band-bg) 86%, transparent) 62%, var(--hp-band-bg) 100%); }

/* The object: centre column sized to the viewport, plus two rails that are allowed to run off screen. */
.hp-deckwrap { position: relative; isolation: isolate; flex: none; order: 2; }
.hp-deckwrap::before { content: ""; position: absolute; z-index: -1; left: 8%; right: 8%; top: -110px; height: 300px; border-radius: 50%; pointer-events: none; background: radial-gradient(ellipse 50% 60% at 50% 60%, rgba(107, 255, 251, 0.34) 0%, rgba(81, 162, 255, 0.5) 34%, transparent 72%); filter: blur(34px); }
.hp-deck {
  --hp-main: min(1180px, calc(100vw - 48px)); --hp-rail: 190px;
  display: grid; grid-template-columns: var(--hp-rail) minmax(0, 1fr) var(--hp-rail); width: calc(var(--hp-main) + 2 * var(--hp-rail)); margin-bottom: -64px;
  border: 1px solid transparent; border-bottom: 0; border-radius: 20px 20px 0 0;
  background:
    linear-gradient(#08080A, #08080A) padding-box,
    linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, rgba(134, 174, 255, 0.22) 22%, rgba(255, 255, 255, 0.06) 100%) border-box;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 -24px 90px -30px rgba(61, 92, 255, 0.6), 0 40px 80px -30px rgba(0, 0, 0, 0.8);
}
.hp-dash { margin: 0; min-width: 0; container: hpdash / inline-size; border-left: 1px solid var(--u-line); border-right: 1px solid var(--u-line); background: var(--u-ground); }
.hp-rx { display: flex; flex-direction: column; gap: 10px; padding: 16px; }
.hp-rx .hp-top { padding: 2px 2px 6px; }
.hp-rx .hp-top .hp-sample { margin-left: auto; }
.hp-rx .hp-top .hp-seg { margin-left: 6px; }
.hp-rx :is(.hp-top, .hp-funnel, .hp-perf, .hp-queries, .hp-tail), .hp-rail { transition: opacity 420ms var(--u-ease), box-shadow 420ms var(--u-ease), transform 520ms var(--u-ease); }
.hp-rx .hp-chart { --hp-plot-h: 206px; }
.hp-rail { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 22px 28px 0 66px; font-size: 12.5px; color: var(--u-cap); white-space: nowrap; overflow: hidden; }
.hp-rail.is-r { padding: 22px 66px 0 28px; }
/* Below 1440 the rails are mostly off screen: keep them as plain dark margin so no label is sliced. */
@media (max-width: 1439px) { .hp-rail > * { visibility: hidden; } }
.hp-rail b { margin: 0 8px 12px; font-family: var(--font-mono); font-size: 9.5px; font-weight: 500; letter-spacing: 0.07em; text-transform: uppercase; color: var(--u-faint); }
.hp-rail span { display: flex; align-items: center; gap: 9px; height: 30px; padding: 0 8px; border-radius: 6px; }
.hp-rail span i { width: 10px; height: 10px; border-radius: 3px; border: 1.5px solid var(--u-strong); flex: none; }
.hp-rail span.is-cur { background: var(--u-fill); color: var(--u-ink); }
.hp-rail span.is-cur i { border-color: var(--u-clicks); background: var(--u-clicks); }
.hp-rail.is-r span i { width: 7px; height: 7px; border: 0; border-radius: 50%; background: var(--u-green); opacity: 0.7; }
.hp-tail { flex: none; }
.hp-trow { display: grid; grid-template-columns: minmax(0, 1fr) 70px 70px 56px; align-items: center; gap: 0 12px; height: 42px; padding: 0 16px; border-bottom: 1px solid var(--u-line); font-size: 12.5px; color: var(--u-muted); font-variant-numeric: tabular-nums; }
.hp-trow span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--u-ink2); }
.hp-trow span:nth-child(n + 2) { text-align: right; }
.hp-trow.is-h { height: 32px; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.07em; text-transform: uppercase; }
.hp-trow.is-h span:first-child { color: var(--u-cap); }
.hp-trow.is-h span { color: var(--u-cap); }

/* Pins: numbered buttons that live inside the region they describe. */
.hp-anno-layer { grid-row: 1; grid-column: 2; position: relative; z-index: 4; pointer-events: none; }
.hp-anno { position: absolute; z-index: 4; width: 0; height: 0; pointer-events: none; }
.hp-anno.is-pub { top: 0; }
.hp-rx .hp-queries { position: relative; z-index: 2; overflow: visible; }
.hp-anno.is-queries { left: 0; top: 0; }
.hp-qlist li { position: relative; }
.hp-qlist li > .hp-anno.is-refresh { left: 0; top: 50%; }
.hp-pin {
  position: absolute; left: -12px; top: -12px; width: 24px; height: 24px; padding: 0; display: grid; place-items: center; border: 1.5px solid rgba(255, 255, 255, 0.92); border-radius: 50%;
  background: #1B2CC9; color: #FFFFFF; font-family: var(--font-mono); font-size: 9.5px; font-weight: 500; line-height: 1; letter-spacing: 0; cursor: pointer; pointer-events: auto;
  box-shadow: 0 0 0 4px rgba(61, 92, 255, 0.26), 0 6px 14px rgba(0, 0, 0, 0.6); transition: transform 300ms var(--u-ease), background-color 200ms, box-shadow 300ms var(--u-ease);
}
.hp-pin::after { content: ""; position: absolute; inset: -1.5px; border-radius: 50%; pointer-events: none; }
.hp-pin:hover, .hp-pin.is-on { background: #3D5CFF; transform: scale(1.14); box-shadow: 0 0 0 5px rgba(107, 255, 251, 0.22), 0 8px 18px rgba(0, 0, 0, 0.7); }
.hp-pin.is-on::after { animation: hpPin 1600ms ease-out infinite; }
@keyframes hpPin { 0% { box-shadow: 0 0 0 0 rgba(134, 174, 255, 0.75); } 100% { box-shadow: 0 0 0 16px rgba(134, 174, 255, 0); } }
.hp-pin:active { transform: scale(1.04); }
.hp-pin:focus-visible, .hp-switch button:focus-visible, .hp-spot:focus-visible { outline: 2px solid #6BFFFB; outline-offset: 3px; }
.hp-results.is-away .hp-pin::after { animation-play-state: paused; }

/* Notes: small glass cards joined to their pin by a thin leader line. Only the active one shows. */
.hp-pinnote {
  position: absolute; right: 30px; top: -16px; width: 244px; padding: 12px 14px 13px; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 12px;
  background: rgba(20, 23, 44, 0.74); -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 26px 54px -16px rgba(0, 0, 0, 0.85); font-family: var(--font-sans); font-size: 12.5px; font-weight: 400; line-height: 1.45; letter-spacing: 0; text-transform: none; text-align: left; color: #C6C8D6; white-space: normal;
  opacity: 0; visibility: hidden; transform: translateX(8px) scale(0.98); transform-origin: 100% 20%; pointer-events: auto;
  transition: opacity 260ms ease, transform 420ms var(--u-ease), visibility 0s linear 260ms;
}
.hp-pinnote::after { content: ""; position: absolute; left: 100%; top: 16px; width: 18px; height: 1px; background: linear-gradient(90deg, rgba(255, 255, 255, 0.2), rgba(142, 187, 255, 0.95)); }
.hp-pinnote b { display: flex; align-items: baseline; gap: 8px; margin-bottom: 3px; font-size: 13.5px; font-weight: 500; letter-spacing: -0.01em; color: #FFFFFF; }
.hp-pinnote b i { font-family: var(--font-mono); font-size: 10px; font-style: normal; font-weight: 500; color: #8EBBFF; }
.hp-pinnote span { display: block; }
.hp-anno.is-pub .hp-pinnote { right: auto; left: 30px; top: -6px; transform: translateX(-8px) scale(0.98); transform-origin: 0 20%; }
.hp-anno.is-pub .hp-pinnote::after { left: auto; right: 100%; top: 6px; background: linear-gradient(270deg, rgba(255, 255, 255, 0.2), rgba(142, 187, 255, 0.95)); }
.hp-anno.is-pub.is-on .hp-pinnote { transform: none; }
.hp-results.is-pinned[data-spot="pub"] .hp-fig.hp-fig .hp-pub-tip { opacity: 0; transition: opacity 200ms ease; }
.hp-anno.is-queries .hp-pinnote { top: -34px; }
.hp-anno.is-queries .hp-pinnote::after { top: 34px; }
.hp-anno.is-on .hp-pinnote { opacity: 1; visibility: visible; transform: none; transition: opacity 260ms ease, transform 420ms var(--u-ease), visibility 0s; }
.hp-results:not(.is-pinned) .hp-pinnote, .hp-results:not(.is-pinned) .hp-switch { display: none; }

/* The same three points as a plain row of glass cards (phones, reduced motion, no JavaScript). */
.hp-pinlist { order: 1; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: min(1180px, calc(100% - 2 * var(--hx-pad))); margin: 0 0 32px; padding: 0; }
.hp-results.is-pinned .hp-pinlist { display: none; }
.hp-spot {
  position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; width: 100%; height: 100%; padding: 14px 16px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 12px;
  background: rgba(20, 23, 44, 0.6); font: inherit; color: inherit; text-align: left; cursor: pointer; transition: border-color 260ms cubic-bezier(0.22, 1, 0.36, 1), background-color 260ms cubic-bezier(0.22, 1, 0.36, 1);
}
.hp-spot-n { padding-top: 3px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em; color: #8EBBFF; }
.hp-spot-b b { display: block; font-size: 14.5px; font-weight: 500; letter-spacing: -0.01em; color: #F2F2F2; }
.hp-spot-b > span { display: block; margin-top: 3px; font-size: 13px; line-height: 1.5; color: #A6A8B6; }
.hp-spot:hover, .hp-spot.is-on { border-color: rgba(134, 174, 255, 0.7); background: rgba(40, 52, 120, 0.55); }

/* 01 · 02 · 03: a quiet switcher over the fade, for touch and for anyone who wants to step through. */
.hp-switch { order: 3; position: absolute; left: 50%; bottom: 26px; z-index: 3; transform: translateX(-50%); display: flex; align-items: center; gap: 4px; padding: 4px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 999px; background: rgba(12, 14, 28, 0.72); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.hp-switch button { position: relative; height: 28px; min-width: 44px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; color: #9A9CB0; cursor: pointer; overflow: hidden; transition: color 200ms, background-color 260ms cubic-bezier(0.22, 1, 0.36, 1); }
.hp-switch button:hover { color: #FFFFFF; }
.hp-switch button.is-on { color: #FFFFFF; background: rgba(61, 92, 255, 0.55); }
.hp-switch button::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: #6BFFFB; transform: scaleX(0); transform-origin: left; }
.hp-switch button.is-on.is-auto::after { animation: hpSpotFill var(--hp-spot-ms, 3500ms) linear both; }
@keyframes hpSpotFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hp-results.is-away .hp-switch button::after { animation-play-state: paused; }

/* Spotlight: the active point dims the rest a little and lifts its region. */
.hp-results[data-spot] :is(.hp-rx .hp-top, .hp-tail, .hp-rail) { opacity: 0.5; }
.hp-results[data-spot="pub"] .hp-rx :is(.hp-funnel, .hp-queries), .hp-results[data-spot="queries"] .hp-rx :is(.hp-funnel, .hp-perf), .hp-results[data-spot="refresh"] .hp-rx :is(.hp-funnel, .hp-perf) { opacity: 0.55; }
.hp-results[data-spot="pub"] .hp-queries .hp-pin, .hp-results[data-spot="queries"] .hp-perf .hp-pin, .hp-results[data-spot="refresh"] .hp-perf .hp-pin { opacity: 1; }
.hp-results[data-spot="pub"] .hp-perf { box-shadow: 0 0 0 1px rgba(74, 222, 128, 0.5), 0 0 0 5px rgba(34, 197, 94, 0.12), 0 30px 60px -24px rgba(0, 0, 0, 0.9); }
.hp-kpis { transition: opacity 420ms var(--u-ease); }
.hp-results[data-spot="pub"] .hp-kpis { opacity: 0.5; }
.hp-results[data-spot="pub"] .hp-fig .hp-pub-tip { opacity: 1; border-color: rgba(74, 222, 128, 0.7); box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.16), 0 14px 30px -10px rgba(0, 0, 0, 0.9); }
.hp-results[data-spot="pub"] .hp-pub-line { opacity: 1; border-left-style: solid; }
.hp-results[data-spot="queries"] .hp-queries { box-shadow: 0 0 0 1px rgba(134, 174, 255, 0.75), 0 0 0 5px rgba(61, 92, 255, 0.2), 0 30px 70px -20px rgba(0, 7, 205, 0.8); }
.hp-results[data-spot="refresh"] .hp-qlist li:not(.is-refresh), .hp-results[data-spot="refresh"] .hp-queries :is(.hp-head, .hp-qhead, .hp-qkey) { opacity: 0.5; }
.hp-qlist li, .hp-queries :is(.hp-head, .hp-qhead, .hp-qkey) { transition: opacity 420ms var(--u-ease), background-color 300ms var(--u-ease), box-shadow 300ms var(--u-ease); }
.hp-results[data-spot="refresh"] .hp-qlist li.is-refresh { background: rgba(61, 92, 255, 0.18); box-shadow: inset 2px 0 0 #86AEFF; }
.hp-results[data-spot="refresh"] .hp-rf { background: #3D5CFF; color: #FFFFFF; box-shadow: 0 0 0 4px rgba(61, 92, 255, 0.3); }

/* ---------- The Results UI ---------- */
.hp-card { min-width: 0; background: var(--u-surface); border: 1px solid var(--u-line); border-radius: 8px; overflow: hidden; }
.hp-eyebrow { font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.07em; text-transform: uppercase; color: var(--u-cap); }
.hp-head { display: flex; align-items: baseline; gap: 4px 12px; flex-wrap: wrap; min-height: 46px; padding: 12px 16px; border-bottom: 1px solid var(--u-line); }
.hp-head h3 { font-size: 14px; font-weight: 500; letter-spacing: -0.01em; color: var(--u-ink); }
.hp-head > span { font-size: 12px; color: var(--u-cap); }
.hp-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--c, var(--u-strong)); }
.hp-key { display: inline-block; width: 14px; height: 3px; border-radius: 2px; flex: none; background: var(--c, var(--u-strong)); }

.hp-top { display: flex; align-items: center; gap: 10px; padding: 2px 2px 4px; min-width: 0; }
.hp-top strong { font-size: 17px; font-weight: 500; letter-spacing: -0.02em; }
.hp-prop { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 4px; background: var(--u-fill); border: 1px solid var(--u-line); font-family: var(--font-mono); font-size: 10.5px; color: var(--u-muted); }
.hp-top-sub { font-size: 12px; color: var(--u-cap); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hp-seg { margin-left: auto; display: inline-flex; padding: 2px; border: 1px solid var(--u-line2); border-radius: 6px; background: var(--u-surface); flex: none; }
.hp-seg i { font-style: normal; font-size: 11.5px; padding: 3px 9px; border-radius: 4px; color: var(--u-cap); }
.hp-seg i.is-on { background: var(--u-fill2); color: var(--u-ink); }

/* ---------- Results: funnel ---------- */
.hp-funnel { display: grid; grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.5fr); }
.hp-funnel-main { display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 20px; min-width: 0; }
.hp-funnel-h { font-size: 22px; font-weight: 500; line-height: 1.16; letter-spacing: -0.025em; text-wrap: balance; font-variant-numeric: tabular-nums; }
.hp-funnel-top { display: flex; flex-direction: column; gap: 1px; margin-top: 4px; padding: 8px 10px; border: 1px solid var(--u-line); border-radius: 6px; background: var(--u-soft); }
.hp-funnel-top span { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--u-cap); }
.hp-funnel-top b { font-size: 12.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hp-funnel-top em { font-style: normal; font-size: 11.5px; color: var(--u-cap); }
.hp-steps { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; border-left: 1px solid var(--u-line); background: var(--u-soft); }
.hp-step { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 20px 18px; }
.hp-step-k { display: flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 9.5px; font-weight: 500; letter-spacing: 0.07em; text-transform: uppercase; color: var(--u-cap); white-space: nowrap; }
.hp-step-k i { width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--u-green); box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18); }
.hp-step-v { margin-top: 4px; font-size: 36px; font-weight: 500; line-height: 1.02; letter-spacing: -0.04em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hp-step-v small { font-size: 14px; font-weight: 400; letter-spacing: -0.01em; color: var(--u-cap); }
.hp-step-s { font-size: 12px; color: var(--u-cap); }
.hp-conv { align-self: stretch; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-width: 88px; text-align: center; }
.hp-conv::before { content: ""; position: absolute; top: 12px; bottom: 12px; left: 50%; width: 1px; background: var(--u-line); }
.hp-conv > * { position: relative; background: var(--u-soft); }
.hp-conv-arrow { display: grid; place-items: center; width: 26px; height: 26px; margin-bottom: 3px; border-radius: 50%; border: 1px solid rgba(34, 197, 94, 0.32); color: var(--u-green); background: #0F1A13 !important; }
.hp-conv b { padding: 2px 4px 0; font-size: 14px; font-weight: 600; letter-spacing: -0.01em; color: var(--u-green); font-variant-numeric: tabular-nums; }
.hp-conv > span:last-child { padding: 0 4px 2px; font-size: 11px; color: var(--u-cap); white-space: nowrap; }

/* ---------- Results: performance ---------- */
.hp-rx-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.44fr); gap: 10px; align-items: stretch; }
.hp-perf, .hp-queries { display: flex; flex-direction: column; }
.hp-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--u-line); }
.hp-kpi {
  position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 2px; min-width: 0; padding: 12px 14px; border: 0; border-right: 1px solid var(--u-line); border-radius: 0;
  background: transparent; font: inherit; color: inherit; text-align: left; cursor: pointer; transition: background-color 180ms var(--u-ease);
}
.hp-kpi:last-child { border-right: 0; }
.hp-kpi::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--c); transform: scaleX(0); transform-origin: left; transition: transform 260ms var(--u-ease); }
.hp-kpi.is-on::before { transform: scaleX(1); }
.hp-kpi:hover { background: var(--u-soft); }
.hp-kpi:active .hp-kpi-v { transform: translateY(1px); }
.hp-kpi:focus-visible, .hp-chipbtn:focus-visible, .hp-replay:focus-visible, .hp-plot:focus-visible { outline: 2px solid var(--u-impr); outline-offset: -2px; }
.hp-kpi-k { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.hp-sw { width: 11px; height: 11px; border-radius: 3px; flex: none; border: 1.5px solid var(--u-strong); transition: background-color 180ms var(--u-ease), border-color 180ms var(--u-ease), box-shadow 180ms var(--u-ease); }
.hp-kpi.is-on .hp-sw { background: var(--c); border-color: var(--c); box-shadow: inset 0 0 0 2px var(--u-surface); }
.hp-kpi-g { font-size: 11.5px; color: var(--u-cap); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hp-kpi-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: 6px; }
.hp-kpi-v { font-size: 26px; font-weight: 500; line-height: 1.05; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; transition: transform 120ms var(--u-ease), color 180ms; }
.hp-kpi:not(.is-on) .hp-kpi-v { color: var(--u-muted); }
.hp-spark { width: 64px; height: 24px; flex: 0 1 64px; min-width: 28px; overflow: visible; opacity: 0.5; transition: opacity 180ms var(--u-ease); }
.hp-spark path { fill: none; stroke: var(--c); stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.hp-kpi.is-on .hp-spark, .hp-kpi:hover .hp-spark { opacity: 1; }
.hp-kpi-f { display: flex; align-items: center; gap: 7px; margin-top: 8px; min-height: 18px; }
.hp-kpi-vs { font-size: 11px; color: var(--u-cap); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hp-delta { display: inline-flex; align-items: center; gap: 4px; height: 18px; padding: 0 5px; border-radius: 3px; font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; background: var(--u-tint-green); color: var(--u-green); }
.hp-arw { width: 0; height: 0; border-left: 3.5px solid transparent; border-right: 3.5px solid transparent; border-bottom: 5px solid currentColor; }

/* ---------- Charts (both sections) ---------- */
.hp-fig { flex: 1 1 auto; display: flex; flex-direction: column; padding: 18px 14px 12px; min-height: 0; }
.hp-chart { --rows: 5; flex: 1 1 auto; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: minmax(var(--hp-plot-h, 230px), 1fr) 24px; column-gap: 10px; }
.hp-chart.is-pct { --rows: 4; --hp-plot-h: 190px; grid-template-columns: auto minmax(0, 1fr) 6px; }
.hp-y { grid-row: 1; grid-column: 1; display: flex; flex-direction: column; justify-content: space-between; font-family: var(--font-mono); font-size: 10px; color: var(--u-cap); text-align: right; transition: opacity 240ms var(--u-ease); }
.hp-y span { display: block; height: 0; line-height: 0; }
.hp-y.is-r { grid-column: 3; text-align: left; color: var(--u-impr); }
.hp-plot {
  grid-row: 1; grid-column: 2; position: relative; cursor: crosshair; touch-action: pan-y;
  background: linear-gradient(to bottom, var(--u-line) 1px, transparent 1px) 0 0 / 100% calc(100% / var(--rows)); box-shadow: 0 1px 0 var(--u-line2);
}
.hp-area, .hp-lines, .hp-lines svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; }
.hp-area { transition: opacity 240ms var(--u-ease); }
.hp-line { fill: none; stroke: var(--c); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; transition: opacity 240ms var(--u-ease); }
.hp-line.hp-c-clicks, .hp-line.hp-c-all { stroke-width: 2.5; }
.hp-pts { position: absolute; inset: 0; transition: opacity 240ms var(--u-ease); }
.hp-pts i { position: absolute; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: var(--u-ptbg, var(--u-surface)); border: 1.5px solid var(--c); }
.hp-chart [data-k].is-off { opacity: 0; }
.hp-x { grid-row: 2; grid-column: 2; position: relative; font-family: var(--font-mono); font-size: 10px; color: var(--u-cap); }
.hp-x span { position: absolute; top: 10px; transform: translateX(-50%); white-space: nowrap; }

.hp-pub { position: absolute; top: 0; bottom: 0; width: 0; }
.hp-pub-line { position: absolute; top: 0; bottom: 0; left: 0; border-left: 1px dashed var(--u-green); opacity: 0.75; transform-origin: top; }
.hp-pub-dot { position: absolute; top: -4px; left: -4px; width: 9px; height: 9px; border-radius: 50%; background: var(--u-green); box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.22); }
.hp-pub-tip { position: absolute; top: 8px; left: 10px; padding: 6px 9px; border: 1px solid var(--u-line2); border-radius: 6px; background: var(--u-pop); font-size: 11.5px; color: var(--u-ink2); white-space: nowrap; box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.7); }
.hp-pub-tip b { display: block; margin-bottom: 1px; font-family: var(--font-mono); font-size: 9.5px; font-weight: 500; letter-spacing: 0.07em; text-transform: uppercase; color: var(--u-green); }
.hp-plot.is-hover .hp-pub-tip { opacity: 0; }

.hp-cross { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1px solid var(--u-strong); pointer-events: none; opacity: 0; transition: opacity 140ms; }
.hp-cross i { position: absolute; left: -5px; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: var(--c); border: 2px solid var(--u-surface); }
.hp-tip { position: absolute; top: 6px; z-index: 3; min-width: 150px; padding: 8px 10px; border: 1px solid var(--u-line2); border-radius: 6px; background: var(--u-pop); font-size: 12px; color: var(--u-ink2); pointer-events: none; opacity: 0; transform: translateX(12px); transition: opacity 140ms; box-shadow: 0 12px 28px -10px rgba(0, 0, 0, 0.8); }
.hp-tip.is-flip { transform: translateX(calc(-100% - 12px)); }
.hp-tip b { display: block; margin-bottom: 5px; font-family: var(--font-mono); font-size: 10px; font-weight: 500; letter-spacing: 0.07em; text-transform: uppercase; color: var(--u-cap); }
.hp-tip span { display: flex; align-items: center; gap: 7px; line-height: 1.6; white-space: nowrap; }
.hp-tip span em { margin-left: auto; padding-left: 14px; font-style: normal; font-weight: 500; color: var(--u-ink); font-variant-numeric: tabular-nums; }
.hp-plot.is-hover .hp-cross, .hp-plot.is-hover .hp-tip { opacity: 1; }

.hp-legend { display: flex; align-items: center; gap: 6px 16px; flex-wrap: wrap; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--u-line); font-size: 12px; color: var(--u-muted); }
.hp-legend span { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.hp-legend em { margin-left: auto; font-style: normal; font-size: 11.5px; color: var(--u-cap); }
.hp-key-pub { width: 8px; height: 8px; border-radius: 50%; background: var(--u-green); box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2); }

/* ---------- Results: top searches ---------- */
.hp-qhead, .hp-qlist li { display: grid; grid-template-columns: minmax(0, 1fr) 40px 46px; align-items: center; gap: 0 12px; padding: 0 16px; }
.hp-qhead { height: 32px; border-bottom: 1px solid var(--u-line); font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--u-cap); }
.hp-qhead span:nth-child(n + 2) { text-align: right; }
.hp-qlist { flex: 1 1 auto; display: flex; flex-direction: column; padding: 4px 0; }
.hp-qlist li { --b: var(--u-amber); flex: 1 1 auto; min-height: 44px; font-size: 12.5px; transition: background-color 140ms var(--u-ease); }
.hp-qlist li:hover { background: var(--u-soft); }
.hp-qlist li.is-top3 { --b: var(--u-green); }
.hp-qlist li.is-top10 { --b: var(--u-clicks); }
.hp-q-t { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.hp-q-l { display: flex; align-items: center; gap: 7px; min-width: 0; }
.hp-q-l > span:first-child { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hp-rf { flex: none; display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; font-style: normal; background: var(--u-tint-blue); color: var(--u-accent-text); box-shadow: 0 0 0 1px rgba(81, 162, 255, 0.3); transition: background-color 300ms var(--u-ease), color 300ms var(--u-ease), box-shadow 300ms var(--u-ease); }
.hp-qbar { display: block; height: 4px; border-radius: 2px; background: var(--u-fill); overflow: hidden; }
.hp-qbar i { display: block; height: 100%; width: var(--w); min-width: 2px; border-radius: 2px; background: var(--b, var(--u-bar)); transform-origin: left; }
.hp-q-n { text-align: right; font-variant-numeric: tabular-nums; }
.hp-rank { justify-self: end; display: inline-grid; place-items: center; min-width: 36px; height: 21px; padding: 0 6px; border-radius: 3px; font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; background: var(--u-tint-amber); color: var(--u-amber); }
.is-top3 > .hp-rank { background: var(--u-tint-green); color: var(--u-green); }
.is-top10 > .hp-rank { background: var(--u-tint-blue); color: var(--u-accent-text); }
.hp-qkey { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 10px 16px; border-top: 1px solid var(--u-line); font-size: 11.5px; color: var(--u-cap); }
.hp-qkey span { display: inline-flex; align-items: center; gap: 6px; }
.hp-qkey i { width: 14px; height: 4px; border-radius: 2px; background: var(--u-amber); }
.hp-qkey i.is-top3 { background: var(--u-green); }
.hp-qkey i.is-top10 { background: var(--u-clicks); }

/* Results reflows to the width of its own panel, not the viewport. */
@container hpdash (max-width: 960px) {
  .hp-pinnote { width: 224px; }
  .hp-top-sub { display: none; }
  .hp-funnel { grid-template-columns: minmax(0, 0.6fr) minmax(0, 1.5fr); }
  .hp-funnel-main { padding: 16px; }
  .hp-funnel-h { font-size: 19px; }
  .hp-step { padding: 16px 12px; }
  .hp-step-k { align-items: flex-start; white-space: normal; line-height: 1.35; }
  .hp-step-k i { margin-top: 3px; }
  .hp-step-v { font-size: 30px; }
  .hp-conv { min-width: 76px; }
  .hp-rx-split { grid-template-columns: minmax(0, 1fr) minmax(0, 0.5fr); }
  .hp-kpi { padding: 12px 10px; }
  .hp-kpi-v { font-size: 22px; }
  .hp-kpi-g { display: none; }
  .hp-kpi-vs { display: none; }
  .hp-kpi-row { gap: 6px; }
  .hp-spark { flex: 1 1 0; width: auto; min-width: 0; max-width: 60px; overflow: hidden; }
  .hp-funnel-top b { white-space: normal; }
  .hp-legend em { display: none; }
  .hp-qhead, .hp-qlist li { grid-template-columns: minmax(0, 1fr) 30px 40px; gap: 0 8px; padding: 0 12px; }
  .hp-queries .hp-head > span { display: none; }
  .hp-qkey { gap: 10px; padding: 10px 12px; }
}
@container hpdash (max-width: 740px) {
  .hp-anno.is-queries .hp-pinnote, .hp-anno.is-refresh .hp-pinnote { right: auto; left: 22px; top: auto; bottom: 24px; transform-origin: 0 100%; }
  .hp-pinnote::after { display: none; }
  .hp-funnel { grid-template-columns: minmax(0, 1fr); }
  .hp-steps { border-left: 0; border-top: 1px solid var(--u-line); }
  .hp-rx-split { grid-template-columns: minmax(0, 1fr); }
  .hp-qlist li { flex: 0 0 auto; }
  .hp-queries .hp-head > span { display: inline; }
  .hp-kpi-vs { display: inline; }
}
@container hpdash (max-width: 560px) {
  .hp-head { padding: 10px 12px; }
  .hp-funnel-main { padding: 14px 12px; }
  .hp-steps { grid-template-columns: minmax(0, 1fr); }
  .hp-step { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 12px; padding: 12px; }
  .hp-step-k { white-space: nowrap; }
  .hp-step-v { grid-column: 2; grid-row: 1 / span 2; margin: 0; font-size: 28px; }
  .hp-step-s { grid-column: 1; }
  .hp-conv { flex-direction: row; justify-content: flex-start; gap: 6px; min-width: 0; padding: 0 12px; }
  .hp-conv::before { top: 50%; bottom: auto; left: 0; right: 0; width: auto; height: 1px; }
  .hp-conv-arrow { margin: 0; width: 22px; height: 22px; transform: rotate(90deg); }
  .hp-conv b { padding: 0 0 0 6px; font-size: 12.5px; }
  .hp-conv > span:last-child { padding: 0 6px 0 0; }
  .hp-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hp-kpi { padding: 10px 12px; }
  .hp-kpi:nth-child(2) { border-right: 0; }
  .hp-kpi:nth-child(-n + 2) { border-bottom: 1px solid var(--u-line); }
  .hp-spark { flex-basis: 56px; }
  .hp-fig { padding: 16px 8px 10px; }
  .hp-rx .hp-chart { --hp-plot-h: 180px; column-gap: 6px; }
  .hp-y, .hp-x { font-size: 9px; }
  .hp-x span:nth-child(even) { display: none; }
  .hp-pub-tip { font-size: 0; padding: 5px 7px; }
  .hp-pub-tip b { font-size: 9px; margin: 0; }
}

/* ================= AI VISIBILITY: frameless, typographic, conversational ================= */
.hp-ax { display: flex; flex-direction: column; gap: clamp(36px, 4.4vw, 56px); }
.hp-ax-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.94fr); gap: clamp(36px, 5.6vw, 88px); align-items: center; }
/* One left edge, one rhythm: kicker, stat, sentence, meter, key, heading, lede. */
.hp-ax-left { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.hp-ax-kicker { display: flex; align-items: center; gap: 8px 18px; flex-wrap: wrap; }
.hp-stat { width: 100%; margin: 14px 0 32px; }
.hp-stat-big { margin-left: -0.04em; font-size: clamp(72px, 6.8vw, 104px); font-weight: 400; line-height: 0.9; letter-spacing: -0.06em; color: var(--u-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hp-stat-h { margin-top: 14px; font-size: 17px; line-height: 1.35; letter-spacing: -0.01em; color: var(--u-muted); text-wrap: balance; }
.hp-stat-h b { font-weight: 500; color: var(--u-ink); font-variant-numeric: tabular-nums; }
.hp-ticks { display: grid; grid-template-columns: repeat(32, minmax(0, 1fr)); gap: 3px; max-width: 384px; margin-top: 14px; }
.hp-ticks i { height: 12px; border-radius: 2px; background: var(--u-fill2); }
.hp-ticks i.is-named { background: var(--u-clicks); }
.hp-ticks i.is-linked { background: var(--u-green); }
.hp-sum-key { display: flex; align-items: center; gap: 4px 14px; flex-wrap: wrap; margin-top: 10px; font-size: 12px; color: var(--u-cap); font-variant-numeric: tabular-nums; }
.hp-sum-key span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.hp-sum-key i { width: 7px; height: 7px; border-radius: 2px; background: var(--u-fill2); }
.hp-sum-key i.is-named { background: var(--u-clicks); }
.hp-sum-key i.is-linked { background: var(--u-green); }
.hp-ax-h { font-size: clamp(26px, 2.5vw, 34px); max-width: 19ch; }
.hp-ax-left .hx-sub { margin-top: 14px; font-size: 16px; max-width: 48ch; }

/* The conversation: a prompt bubble, then three equal cards stepping right by the same amount. */
.hp-chat { position: relative; isolation: isolate; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.hp-glow {
  position: absolute; z-index: -1; inset: 30% -4% -4% 34%; border-radius: 50%; pointer-events: none; overflow: hidden; filter: blur(46px) saturate(1.1); opacity: 0.34;
  background: radial-gradient(ellipse 70% 90% at 70% 80%, #51A2FF 0%, transparent 70%), radial-gradient(ellipse 40% 60% at 30% 100%, #6BFFFB 0%, transparent 70%);
}
.hp-glow > canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 900ms ease; }
.hp-glow.is-live > canvas { opacity: 1; }
html[data-theme="dark"] .hp-glow { opacity: 0.3; background: radial-gradient(ellipse 70% 90% at 70% 80%, #0007CD 0%, transparent 70%); }
.hp-ask-head { display: flex; align-items: center; justify-content: flex-end; gap: 14px; min-height: 20px; }
.hp-eyebrow { font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.07em; text-transform: uppercase; color: var(--u-cap); }
.hp-replay { display: inline-flex; align-items: center; gap: 6px; height: 20px; padding: 0 2px; border: 0; border-radius: 3px; background: transparent; font: inherit; font-size: 11.5px; color: var(--u-cap); cursor: pointer; transition: color 160ms, opacity 240ms; }
.hp-replay[hidden] { display: none; }
.hp-replay:hover { color: var(--u-ink); }
.hp-replay:hover svg { transform: rotate(-40deg); }
.hp-replay svg { transition: transform 300ms var(--u-ease); }
.hp-replay:active { transform: translateY(1px); }
.hp-replay:disabled { opacity: 0.35; cursor: default; }
.hp-replay:focus-visible, .hp-chipbtn:focus-visible, .hp-ax .hp-plot:focus-visible { outline: 2px solid var(--u-clicks); outline-offset: 2px; }
.hp-q {
  align-self: flex-end; max-width: 78%; padding: 11px 16px; border-radius: 16px 16px 4px 16px; background: var(--u-bubble); color: #FFFFFF;
  font-size: 14.5px; font-weight: 400; line-height: 1.4; letter-spacing: -0.008em; box-shadow: 0 12px 26px -14px color-mix(in srgb, var(--u-bubble) 80%, transparent);
}
.hp-q-text { min-width: 0; }
.hp-rest { visibility: hidden; }
.hp-caret { display: inline-block; width: 1.5px; height: 1.05em; margin: 0 -0.75px; vertical-align: -0.18em; background: #FFFFFF; animation: hpBlink 1s steps(1) infinite; }
@keyframes hpBlink { 50% { opacity: 0; } }
.hp-answers { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.hp-ans {
  --bd: var(--u-line);
  position: relative; display: flex; flex-direction: column; gap: 8px; width: 76%; min-width: 0; padding: 13px 16px 14px; border: 1px solid var(--bd); border-radius: 4px 14px 14px 14px; background: var(--u-surface);
  box-shadow: 0 1px 2px rgba(16, 16, 24, 0.04), 0 18px 36px -26px rgba(16, 16, 24, 0.26); transition: border-color 500ms var(--u-ease), box-shadow 500ms var(--u-ease);
}
html[data-theme="dark"] .hp-ans { box-shadow: 0 18px 36px -22px rgba(0, 0, 0, 0.8); }
.hp-ans:nth-child(2) { margin-left: 12%; }
.hp-ans:nth-child(3) { margin-left: 24%; }
.hp-ans.is-named { --bd: color-mix(in srgb, var(--u-clicks) 34%, var(--u-line)); }
.hp-ans.is-linked { --bd: color-mix(in srgb, var(--u-green) 38%, var(--u-line)); }
.hp-ans-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 20px; }
.hp-ans-who { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 500; letter-spacing: -0.005em; color: var(--u-ink); }
.hp-ans-who .hp-dot { box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 20%, transparent); }
.hp-ans-main { position: relative; }
.hp-ans-body { font-size: 13.5px; line-height: 1.55; color: var(--u-ink2); text-wrap: pretty; }
.hp-ans.is-absent .hp-ans-body { color: var(--u-cap); }
.hp-ans-body mark { padding: 1px 4px; margin: 0 -2px; border-radius: 4px; color: var(--u-mark-ink); font-weight: 500; background: linear-gradient(var(--u-mark), var(--u-mark)) no-repeat 0 0 / 100% 100%; }
.hp-src { display: inline-flex; align-items: center; height: 19px; margin-left: 2px; padding: 0 6px; border-radius: 4px; border: 1px solid color-mix(in srgb, var(--u-green) 36%, transparent); background: var(--u-tint-green); font-family: var(--font-mono); font-size: 10px; color: var(--u-green); vertical-align: 1px; white-space: nowrap; }
.hp-dots { position: absolute; left: 0; top: 7px; display: inline-flex; align-items: center; gap: 4px; opacity: 0; pointer-events: none; }
.hp-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--u-strong); }
.hp-chip { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; border: 1px solid var(--u-line2); background: var(--u-fill); font-size: 10.5px; font-weight: 500; color: var(--u-cap); white-space: nowrap; }
.hp-chip.is-named { border-color: color-mix(in srgb, var(--u-clicks) 34%, transparent); background: var(--u-tint-blue); color: var(--u-accent-text); }
.hp-chip.is-linked { border-color: color-mix(in srgb, var(--u-green) 38%, transparent); background: var(--u-tint-green); color: var(--u-green); }

/* The strip: frameless, on the page, hairline axes. */
.hp-strip { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); border-top: 1px solid var(--u-line); }
.hp-strip > * { min-width: 0; display: flex; flex-direction: column; padding-top: 22px; }
.hp-strip .hp-vis { padding-right: clamp(20px, 3vw, 40px); }
.hp-strip .hp-lead { padding-left: clamp(20px, 3vw, 40px); border-left: 1px solid var(--u-line); }
.hp-strip .hp-head { align-items: center; min-height: 26px; padding: 0 0 12px; border-bottom: 0; }
.hp-strip .hp-head h3 { font-size: 15px; }
.hp-strip .hp-fig { padding: 10px 0 0; }
.hp-strip .hp-chart.is-pct { --hp-plot-h: 150px; --u-ptbg: var(--u-ground); }
.hp-strip .hp-line:not(.hp-c-all) { stroke-width: 1.5; opacity: 0.85; }
.hp-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.hp-chipbtn { display: inline-flex; align-items: center; gap: 7px; height: 24px; padding: 0 9px; border: 1px solid var(--u-line2); border-radius: 999px; background: transparent; font: inherit; font-size: 11.5px; color: var(--u-cap); cursor: pointer; white-space: nowrap; transition: background-color 160ms var(--u-ease), border-color 160ms var(--u-ease), color 160ms var(--u-ease); }
.hp-chipbtn .hp-key { opacity: 0.35; transition: opacity 160ms; }
.hp-chipbtn.is-on { background: var(--u-surface); color: var(--u-ink2); }
.hp-chipbtn.is-on .hp-key { opacity: 1; }
.hp-chipbtn:hover { border-color: var(--u-strong); color: var(--u-ink); }
.hp-chipbtn:active { transform: translateY(1px); }
.hp-leadlist { flex: 1 1 auto; display: flex; flex-direction: column; }
.hp-leadlist li { --b: var(--u-bar2); flex: 1 1 auto; display: grid; grid-template-columns: 14px minmax(0, 1fr) 26px; align-items: center; gap: 0 10px; min-height: 42px; padding: 0 12px; border-radius: 6px; font-size: 13.5px; color: var(--u-muted); }
.hp-leadlist li.is-you { --b: var(--u-bar); background: var(--u-tint-blue); color: var(--u-ink); box-shadow: inset 2px 0 0 var(--u-clicks); }
.hp-lead-r { font-family: var(--font-mono); font-size: 10.5px; color: var(--u-cap); }
.hp-lead-b { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.hp-lead-n { display: flex; align-items: center; gap: 8px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hp-you { display: inline-flex; align-items: center; height: 16px; padding: 0 5px; border-radius: 3px; background: var(--u-clicks); color: #FFFFFF; font-family: var(--font-mono); font-size: 9.5px; font-style: normal; font-weight: 500; letter-spacing: 0.07em; text-transform: uppercase; flex: none; }
.hp-lead-c { text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--u-ink); }
.hp-note { margin-top: 28px; max-width: 70ch; }

/* ---------- Motion: "before" states exist only on elements home-proof.js has armed ---------- */
.hp-fig.is-armed:not(.is-in) .hp-lines { clip-path: inset(-12px 100% -12px 0); }
.hp-fig.is-armed.is-in .hp-lines { clip-path: inset(-12px -12px -12px -12px); transition: clip-path 1500ms cubic-bezier(0.5, 0.05, 0.25, 1) 150ms; }
.hp-fig.is-armed:not(.is-in) .hp-area { opacity: 0; }
.hp-fig.is-armed.is-in:not(.is-done) .hp-area { transition: opacity 800ms ease 1300ms; }
.hp-fig.is-armed:not(.is-in) .hp-pts { opacity: 0; }
.hp-fig.is-armed.is-in:not(.is-done) .hp-pts { transition: opacity 500ms ease 1300ms; }
.hp-fig.is-armed:not(.is-in) .hp-pub-line { transform: scaleY(0); }
.hp-fig.is-armed.is-in .hp-pub-line { transition: transform 520ms var(--u-ease) 1750ms; }
.hp-fig.is-armed:not(.is-in) .hp-pub-dot { transform: translateY(-14px) scale(0.4); opacity: 0; }
.hp-fig.is-armed.is-in .hp-pub-dot { transition: transform 420ms var(--u-ease) 1650ms, opacity 200ms ease 1650ms; }
.hp-fig.is-armed:not(.is-in) .hp-pub-tip { opacity: 0; transform: translateY(6px); }
.hp-fig.is-armed.is-in:not(.is-done) .hp-pub-tip { transition: opacity 320ms ease 2250ms, transform 420ms var(--u-ease) 2250ms; }
.hp-fig.is-armed:not(.is-in) .hp-anno-layer { opacity: 0; }
.hp-fig.is-armed.is-in .hp-anno-layer { transition: opacity 400ms ease 1900ms; }
.hp-fig.is-armed.is-done .hp-pub-tip { transition: opacity 160ms ease, border-color 300ms, box-shadow 300ms; }

.is-armed:not(.is-in) .hp-qbar i { transform: scaleX(0); }
.is-armed.is-in .hp-qbar i { transition: transform 900ms var(--u-ease) calc(var(--i, 0) * 70ms + 250ms); }
.is-armed:not(.is-in) :is(.hp-step, .hp-conv, .hp-qlist li > *, .hp-leadlist li > *) { opacity: 0; transform: translateY(8px); }
.hp-qlist li > .hp-anno { transform: none !important; }
.is-armed.is-in :is(.hp-step, .hp-conv, .hp-qlist li > *, .hp-leadlist li > *) { transition: opacity 500ms var(--u-ease) calc(var(--i, 0) * 70ms + 80ms), transform 600ms var(--u-ease) calc(var(--i, 0) * 70ms + 80ms); }
.hp-lead.is-armed li.is-you { transition: background-color 500ms ease, box-shadow 500ms ease; }
.hp-lead.is-armed:not(.is-in) li.is-you { background-color: transparent; box-shadow: inset 2px 0 0 transparent; }
.hp-stat.is-armed.is-in .hp-ticks i { animation: hpTick 420ms var(--u-ease) calc(var(--i) * 26ms + 200ms) backwards; }
.hp-stat.is-armed:not(.is-in) .hp-ticks i { background: var(--u-fill2); }
@keyframes hpTick { from { background: var(--u-fill2); transform: scaleY(0.5); } }

/* The conversation: each card waits, thinks, then resolves; the highlight sweeps across the brand name. */
.hp-ax.is-seq .hp-ans:not(.is-on) { --bd: var(--u-line); }
.hp-ax.is-seq .hp-ans:not(.is-on) :is(.hp-ans-body, .hp-chip) { opacity: 0; }
.hp-ax.is-seq .hp-ans:not(.is-on) .hp-ans-body { transform: translateY(6px); }
.hp-ax.is-seq .hp-ans:not(.is-on) .hp-chip { transform: scale(0.9); }
.hp-ax.is-seq .hp-ans:not(.is-on):not(.is-think) { opacity: 0.55; }
.hp-ax.is-seq .hp-ans { transition: opacity 300ms ease, border-color 500ms var(--u-ease); }
.hp-ax.is-seq .hp-ans:not(.is-on) mark { background-size: 0% 100%; color: inherit; }
.hp-ax.is-seq .hp-ans.is-think .hp-dots { opacity: 1; }
.hp-ax.is-seq .hp-ans.is-think .hp-dots i { animation: hpDot 900ms ease-in-out infinite; }
.hp-ax.is-seq .hp-ans.is-think .hp-dots i:nth-child(2) { animation-delay: 150ms; }
.hp-ax.is-seq .hp-ans.is-think .hp-dots i:nth-child(3) { animation-delay: 300ms; }
@keyframes hpDot { 0%, 60%, 100% { transform: none; opacity: 0.5; } 30% { transform: translateY(-3px); opacity: 1; } }
.hp-ax.is-seq .hp-ans.is-on .hp-ans-body { transition: opacity 420ms ease, transform 560ms var(--u-ease); }
.hp-ax.is-seq .hp-ans.is-on .hp-chip { transition: opacity 260ms ease 320ms, transform 360ms var(--u-ease) 320ms; }
.hp-ax.is-seq .hp-ans.is-on mark { transition: background-size 520ms var(--u-ease) 260ms, color 300ms ease 300ms; }
.hp-ax.is-away :is(.hp-caret, .hp-dots i) { animation-play-state: paused; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hp-pinlist { grid-template-columns: minmax(0, 1fr); }
  .hp-ax-top { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hp-strip { grid-template-columns: minmax(0, 1fr); }
  .hp-strip .hp-vis { padding-right: 0; }
  .hp-strip .hp-lead { margin-top: 22px; padding-left: 0; border-left: 0; border-top: 1px solid var(--u-line); }
}
@media (max-width: 720px) {
  /* Results on a phone: a plain full width stack of panels, the three points listed beneath. */
  .hp-band-in { padding-bottom: var(--hx-gap-y); }
  .hp-band-in::after, .hp-deckwrap::before { display: none; }
  .hp-deck { --hp-rail: 0px; --hp-main: calc(100vw - 24px); grid-template-columns: minmax(0, 1fr); margin-bottom: 0; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 12px; overflow: hidden; }
  .hp-rail, .hp-tail, .hp-pinnote, .hp-results .hp-switch { display: none; }
  .hp-dash { border: 0; }
  .hp-rx { padding: 8px; gap: 8px; font-size: 12.5px; }
  .hp-rx .hp-top .hp-seg, .hp-prop { display: none; }
  .hp-sample { font-size: 9.5px; }
  .hp-anno.is-queries { left: auto; right: 22px; top: 23px; }
  .hp-qlist li > .hp-anno.is-refresh { left: auto; right: 112px; }
  .hp-anno.is-pub { top: 100%; }
  .hp-results .hp-pinlist, .hp-results.is-pinned .hp-pinlist { order: 3; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; width: calc(100% - 24px); margin: 12px 0 0; }
  .hp-stat-big { font-size: clamp(64px, 20vw, 84px); }
  .hp-stat-h { font-size: 16px; }
  .hp-ticks { grid-template-columns: repeat(16, minmax(0, 1fr)); max-width: none; }
  .hp-ask-head { justify-content: space-between; }
  .hp-q { max-width: 88%; }
  .hp-ans { width: 88%; }
  .hp-ans:nth-child(2) { margin-left: 6%; }
  .hp-ans:nth-child(3) { margin-left: 12%; }
  .hp-glow { inset: 30% 0 0 10%; filter: blur(30px); }
  .hp-strip .hp-head { flex-wrap: wrap; }
  .hp-chips { margin-left: 0; flex-wrap: nowrap; gap: 4px; }
  .hp-chipbtn { padding: 0 7px; gap: 5px; font-size: 11px; }
  .hp-chipbtn .hp-key { width: 9px; }
  .hp-strip .hp-chart.is-pct { --hp-plot-h: 136px; column-gap: 6px; }
  .hp-ax .hp-y, .hp-ax .hp-x { font-size: 9px; }
  .hp-ax .hp-x span:nth-child(even) { display: none; }
  .hp-strip .hp-line:not(.hp-c-all) { opacity: 0.6; }
  .hp-pts i { width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .hp-caret { display: none; }
  .hp-pin.is-on::after, .hp-switch button.is-on.is-auto::after { animation: none; }
}

/* Assistant marks: the real logos, each on a small neutral tile so they read in both themes. */
.hp-ai-tile { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; flex: none; border-radius: 7px; background: #FFFFFF; border: 1px solid rgba(15, 15, 15, 0.10); }
.hp-ai-mark { display: block; fill: #0F0F0F; }
.hp-ai-mark.is-claude { fill: #D97757; }
.hp-ai-mark.is-perplexity { fill: #20808D; }
.hp-ai-mark.is-gemini { fill: #4E82EE; }
.hp-ai-row { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.hp-ai-row li { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 500; color: var(--ink, #0F0F0F); }
.hp-ai-row .hp-ai-row-l { font-family: var(--font-mono); font-size: 10.5px; font-weight: 400; letter-spacing: 0.07em; text-transform: uppercase; color: var(--caption, #6B6B6B); margin-right: 2px; }
.hp-ai-row .hp-ai-row-l { flex-basis: 100%; }
