/* Home page: the self-playing product window and the feature rows (site/pages/home.html, home.js).
   Everything is scoped to .hx and prefixed hx- so it can't touch the rest of the site. */
.hx {
  --mute: #8a8f98; --faint: #b9bdc4; --hx-line: #ebebe8; --hx-line-2: #e0e0dc; --hx-soft: #f7f7f5;
  --ease: cubic-bezier(.22,.61,.24,1);
}

/* ---------- hero ---------- */
.hx-hero { position: relative; text-align: center; padding: 84px 0 0; overflow: hidden; background: #fff; }
.hx-hero::before { content: ""; position: absolute; inset: 300px -20% -40px; background: radial-gradient(60% 55% at 50% 60%, #fde3d8 0%, rgba(253,238,232,.6) 45%, transparent 75%); pointer-events: none; }
.hx-eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); border: 1px solid var(--hx-line); border-radius: 999px; padding: 4px 12px; margin-bottom: 26px; background: #fff; text-decoration: none; }
.hx-eyebrow b { font-weight: 600; color: var(--brand); }
.hx-hero h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1.03; letter-spacing: -.04em; margin: 0 auto 18px; max-width: 13em; }
.hx-lede { font-size: 18px; color: var(--mute); max-width: 560px; margin: 0 auto 26px; }
.hx-ctas { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.hx-alt { margin: 14px 0 0; font-size: 14px; color: var(--mute); } .hx-alt a { color: var(--ink-2); }
.hx-trust { margin: 6px 0 52px; font-size: 13px; color: var(--faint); } .hx-trust a { color: var(--mute); }

/* ---------- the app window ---------- */
.hx-scene { position: relative; max-width: 1040px; margin: 0 auto; height: 560px; perspective: 1600px; }
.hx-tilt { position: absolute; inset: 0; transform-origin: 50% 0; will-change: transform; }
.hx-js .hx-tilt { transform: translateY(40px) rotateX(16deg) scale(.9); }
.hx-win { position: absolute; left: 90px; right: 90px; top: 0; height: 540px; background: #fff; border: 1px solid var(--hx-line-2); border-radius: 12px; box-shadow: 0 1px 1px rgba(17,19,24,.03), 0 30px 80px -20px rgba(160,70,30,.18); overflow: hidden; display: grid; grid-template-rows: 38px 1fr; text-align: left; color: var(--ink); }
.hx-chrome { display: flex; align-items: center; gap: 7px; padding: 0 14px; border-bottom: 1px solid var(--hx-line); background: #fcfcfb; }
.hx-chrome i { width: 10px; height: 10px; border-radius: 50%; } .hx-chrome i:nth-child(1) { background: #f0645a; } .hx-chrome i:nth-child(2) { background: #f5bd4f; } .hx-chrome i:nth-child(3) { background: #5fc454; }
.hx-chrome span { margin-left: 14px; font-size: 12px; color: var(--mute); }
.hx-app { display: grid; grid-template-columns: 188px 1fr; min-height: 0; font-size: 13px; line-height: 1.5; }
.hx-side { border-right: 1px solid var(--hx-line); padding: 12px 8px; background: #fcfcfb; }
.hx .hx-brand { font-size: 15px; padding: 2px 8px 14px; } .hx .hx-brand::before { width: 20px; height: 20px; border-radius: 6px; margin-right: 8px; background-size: 14px; }
.hx-ws { display: flex; align-items: center; gap: 8px; padding: 4px 8px 10px; font-weight: 600; font-size: 13px; }
.hx-ws b { width: 20px; height: 20px; border-radius: 5px; background: var(--ink); color: #fff; font-size: 11px; display: grid; place-items: center; }
.hx-grp { font-size: 11px; color: var(--faint); padding: 10px 8px 4px; }
.hx-nav { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 8px; width: 100%; padding: 5px 8px; border-radius: 6px; color: var(--ink-2); cursor: pointer; transition: background .2s var(--ease); font-size: 13px; }
.hx-nav svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; color: var(--mute); }
.hx-nav:hover { background: #f1f1ee; } .hx-nav.on { background: var(--brand-soft); color: var(--brand-ink); } .hx-nav.on svg { color: var(--brand); }
.hx-nav:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.hx-nav em { margin-left: auto; font-style: normal; font-size: 11px; color: var(--mute); }
.hx-main { position: relative; min-width: 0; overflow: hidden; }
.hx-bar { display: flex; align-items: center; gap: 6px; height: 42px; padding: 0 16px; border-bottom: 1px solid var(--hx-line); color: var(--ink-2); }
.hx-bar .hx-t { font-weight: 500; color: var(--ink); margin-right: 6px; }
.hx-chip { font-size: 12px; color: var(--ink-2); border: 1px solid var(--hx-line); border-radius: 6px; padding: 2px 8px; }
.hx-bar .hx-r { margin-left: auto; color: var(--mute); font-size: 12px; }
.hx-view { position: absolute; inset: 42px 0 0; padding: 14px 16px; opacity: 0; transform: translateY(6px); transition: opacity .5s var(--ease), transform .5s var(--ease); pointer-events: none; }
.hx-view.on { opacity: 1; transform: none; pointer-events: auto; }

/* tables, numbers */
.hx-tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.hx-tbl th { text-align: left; font-weight: 400; font-size: 12px; color: var(--mute); padding: 6px 8px; border-bottom: 1px solid var(--hx-line); }
.hx-tbl td { padding: 8px; border-bottom: 1px solid #f2f2ef; white-space: nowrap; }
.hx-tbl tr { transition: background .3s var(--ease); } .hx-tbl tbody tr:hover { background: #fafaf8; }
.hx-tbl tr.hx-new { animation: hx-rowin .7s var(--ease); background: #fff7f3; }
@keyframes hx-rowin { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.hx-who { display: flex; align-items: center; gap: 8px; } .hx-av { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-weight: 600; color: #fff; flex: none; }
.hx-src { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); } .hx-src::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c, #c4c7cc); }
.hx-mute { color: var(--mute); } .hx-n { text-align: right; font-variant-numeric: tabular-nums; }
.hx-stg { font-size: 11.5px; border: 1px solid var(--hx-line); border-radius: 5px; padding: 1px 6px; color: var(--ink-2); }
.hx-stg.won { color: #1f7a4d; border-color: #cfe8db; background: #f3faf6; }
.hx-kpis { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--hx-line); border-radius: 10px; margin-bottom: 12px; }
.hx-kpi { padding: 10px 14px; } .hx-kpi + .hx-kpi { border-left: 1px solid var(--hx-line); }
.hx-kpi span { font-size: 12px; color: var(--mute); } .hx-kpi b { display: block; font: 600 22px/1.2 var(--font); letter-spacing: -.02em; font-variant-numeric: tabular-nums; } .hx-kpi em { font-style: normal; font-size: 11.5px; color: #1f7a4d; }
.hx-box { border: 1px solid var(--hx-line); border-radius: 10px; padding: 12px; position: relative; }
.hx-legend { display: flex; gap: 14px; font-size: 12px; color: var(--ink-2); margin-bottom: 4px; } .hx-legend span::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--c); margin-right: 6px; }
.hx-tip { position: absolute; pointer-events: none; background: #fff; border: 1px solid var(--hx-line-2); border-radius: 8px; box-shadow: 0 8px 24px rgba(15,17,21,.08); font-size: 12px; padding: 8px 10px; min-width: 150px; opacity: 0; transition: opacity .15s; }
.hx-tip div { display: flex; justify-content: space-between; gap: 14px; }
.hx-ans { display: grid; gap: 4px; } .hx-ans div { display: flex; gap: 10px; padding: 7px 10px; border-radius: 7px; } .hx-ans div.hx-you { background: var(--brand-soft); box-shadow: inset 0 0 0 1px #f8d3c4; font-weight: 500; color: var(--brand-ink); } .hx-ans i { font-style: normal; color: var(--mute); width: 14px; }

/* the lead's path, sliding in during the autoplay */
.hx-drawer { position: absolute; top: 42px; right: 0; bottom: 0; width: 300px; background: #fff; border-left: 1px solid var(--hx-line); box-shadow: -20px 0 40px -30px rgba(15,17,21,.25); transform: translateX(100%); transition: transform .7s var(--ease); padding: 14px 16px; }
.hx-drawer.on { transform: none; }
.hx-drawer h4 { margin: 0; font-size: 14px; } .hx-drawer .hx-sub { color: var(--mute); font-size: 12px; margin-bottom: 12px; }
.hx-tl { position: relative; margin: 4px 0 12px; padding-left: 18px; } .hx-tl::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 1px; background: var(--hx-line-2); }
.hx-tl div { position: relative; padding: 4px 0 8px; opacity: 0; transform: translateX(-4px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.hx-tl div.on { opacity: 1; transform: none; }
.hx-tl div::before { content: ""; position: absolute; left: -17px; top: 10px; width: 9px; height: 9px; border-radius: 50%; background: #fff; border: 2px solid var(--c, var(--faint)); }
.hx-tl small { display: block; color: var(--mute); font-size: 11.5px; }
.hx-money { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--hx-line); padding-top: 10px; }

/* floating ChatGPT window and the "new lead" notice */
.hx-float { position: absolute; z-index: 3; pointer-events: none; background: #fff; border: 1px solid var(--hx-line-2); border-radius: 12px; box-shadow: 0 30px 60px -20px rgba(15,17,21,.25); text-align: left; font-size: 12.5px; line-height: 1.5; transition: opacity .7s var(--ease), transform .7s var(--ease); color: var(--ink); }
.hx-gpt { left: -200px; top: 190px; width: 250px; opacity: 0; transform: translateY(10px); }
.hx-gpt.on { opacity: 1; transform: none; }
.hx-gpt .hx-hd { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--hx-line); color: var(--mute); font-size: 12px; }
.hx-gpt .hx-hd b { width: 16px; height: 16px; border-radius: 50%; background: #0f1115; }
.hx-gpt .hx-bd { padding: 10px 12px 12px; } .hx-gpt .hx-q { background: #f4f4f2; border-radius: 10px; padding: 7px 10px; margin: 0 0 10px auto; width: fit-content; max-width: 90%; min-height: 31px; }
.hx-gpt .hx-a { color: var(--ink-2); min-height: 92px; } .hx-gpt .hx-a b { color: var(--ink); }
.hx-caret::after { content: ""; display: inline-block; width: 6px; height: 13px; background: var(--ink); vertical-align: -2px; margin-left: 2px; animation: hx-blink 1s steps(1) infinite; } @keyframes hx-blink { 50% { opacity: 0; } }
.hx-toast { right: 0; top: 64px; width: 250px; padding: 10px 12px; display: flex; gap: 10px; align-items: center; opacity: 0; transform: translateY(-8px); }
.hx-toast.on { opacity: 1; transform: none; }
.hx-toast small { display: block; color: var(--mute); }

/* ---------- platforms and feature rows ---------- */
.hx-platforms { display: flex; flex-wrap: wrap; gap: 10px 34px; justify-content: center; color: var(--faint); font-weight: 600; font-size: 18px; letter-spacing: -.01em; padding: 70px 0 10px; }
.hx-platforms p { width: 100%; text-align: center; font-size: 13px; font-weight: 400; color: var(--mute); margin: 0 0 8px; letter-spacing: 0; }
.hx-sec { padding: 110px 0 120px; }
.hx-sec h2 { font-size: clamp(28px, 3.4vw, 36px); line-height: 1.15; letter-spacing: -.025em; max-width: 680px; margin: 0; }
.hx-sec h2 span, .hx-feat h3 span { color: var(--faint); }
.hx-rows { display: grid; gap: 120px; margin-top: 70px; }
.hx-feat { display: grid; grid-template-columns: 1fr 1.35fr; gap: 64px; align-items: center; }
.hx-feat:nth-child(even) .hx-txt { order: 2; }
.hx-feat h3 { font-size: 26px; line-height: 1.2; letter-spacing: -.02em; margin: 0 0 12px; }
.hx-feat p { margin: 0; color: var(--mute); font-size: 16px; max-width: 380px; }
.hx-k { font-size: 13px; color: var(--brand-ink); font-weight: 500; margin-bottom: 14px; display: inline-flex; gap: 8px; align-items: center; } .hx-k i { width: 18px; height: 2px; border-radius: 2px; background: var(--brand); }
/* One gentle entrance per row, using only opacity and transform (cheap for the browser). Without
   scripts (hx-js missing) everything simply shows. */
.hx-js .hx-rv { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); will-change: opacity, transform; }
.hx-js .hx-rv.in { opacity: 1; transform: none; }
.hx-js .hx-feat .hx-shot.hx-rv { transition-delay: .12s; }
.hx-shot { background: var(--hx-soft); border-radius: 16px; padding: 34px; display: grid; place-items: center; overflow: hidden; min-height: 320px; }
.hx-inner { width: 100%; max-width: 560px; background: #fff; border: 1px solid var(--hx-line-2); border-radius: 10px; box-shadow: 0 20px 50px -24px rgba(15,17,21,.2); padding: 14px; font-size: 13px; line-height: 1.5; }
.hx-bars div { display: grid; grid-template-columns: 90px 1fr 64px; gap: 10px; align-items: center; margin: 7px 0; font-size: 13px; }
.hx-bars .hx-b { height: 6px; border-radius: 3px; background: #e9e9e6; overflow: hidden; } .hx-bars .hx-b i { display: block; height: 100%; background: var(--brand); border-radius: 3px; width: 0; transition: width 1.1s var(--ease); }
.hx-shot.in .hx-bars .hx-b i, html:not(.hx-js) .hx-bars .hx-b i { width: var(--w); }
.hx-mail .hx-h { border-bottom: 1px solid var(--hx-line); padding-bottom: 8px; margin-bottom: 10px; color: var(--mute); font-size: 12px; } .hx-mail .hx-big { font: 600 26px var(--font); letter-spacing: -.02em; }

@media (max-width: 1460px) { .hx-gpt { left: -140px; } }
@media (max-width: 1320px) { .hx-gpt { left: -100px; } }
@media (max-width: 860px) {
  .hx-scene { height: 470px; perspective: none; } .hx-js .hx-tilt { transform: none !important; } .hx-win { left: 0; right: 0; height: 460px; }
  .hx-app { grid-template-columns: 1fr; } .hx-side { display: none; } .hx-gpt { display: none; } .hx-toast { right: 8px; top: 50px; }
  .hx-drawer { width: 82%; } .hx-kpis { grid-template-columns: 1fr 1fr; } .hx-kpi:nth-child(3) { display: none; }
  .hx-tbl .hx-hide-sm { display: none; } .hx-tbl th, .hx-tbl td { padding: 7px 5px; white-space: nowrap; } .hx-view { padding: 12px 10px; }
  .hx-rows { gap: 72px; } .hx-feat { grid-template-columns: 1fr; gap: 22px; } .hx-feat:nth-child(even) .hx-txt { order: 0; } .hx-shot { padding: 18px; min-height: 0; }
}
@media (prefers-reduced-motion: reduce) { .hx *, .hx-js .hx-tilt { transition: none !important; animation: none !important; transform: none !important; } .hx-js .hx-rv { opacity: 1; } }
