/* Spike, the Hyper Steel yard helper: button, panel, messages, cards. Tokens from main.css. */

.hs-ask { --hs-z-ask: 70; position: fixed; z-index: var(--hs-z-ask); right: max(1rem, env(safe-area-inset-right)); bottom: calc(1rem + env(safe-area-inset-bottom)); font-family: var(--hs-font); color: var(--hs-ink); }
@media (max-width: 899px) {
	/* phones/tablets: lift above the dock once it slides in */
	.hs-ask { right: .7rem; bottom: calc(.8rem + env(safe-area-inset-bottom)); transition: bottom .6s var(--hs-e-out); }
	.hs-dock.is-on ~ .hs-ask { bottom: calc(4.85rem + env(safe-area-inset-bottom)); }
}

/* ---------- the button: Spike stands in a signboard-yellow disc ---------- */
.hs-ask__fab {
	display: flex; align-items: center; gap: .65rem; padding: 0; border: 0; background: none; cursor: pointer; color: inherit; font: inherit;
	-webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.hs-ask__disc {
	position: relative; display: block; flex: none; width: 60px; height: 60px; border-radius: 50%; overflow: hidden;
	background: var(--hs-yellow); box-shadow: 0 0 0 3px var(--hs-night), 0 18px 30px -14px rgba(13, 15, 28, .75);
	transition: transform .5s var(--hs-e-out), box-shadow .3s;
}
.hs-ask__disc .hs-spike { position: absolute; left: 0; right: 0; bottom: -6px; width: 100%; height: auto; }
.hs-ask__fabt {
	order: -1; padding: .55rem .95rem; border-radius: 999px; background: var(--hs-night); color: var(--hs-on-dark); font-weight: 620; font-size: .95rem; letter-spacing: -.005em;
	box-shadow: 0 14px 26px -14px rgba(13, 15, 28, .8); white-space: nowrap;
	transform-origin: right center; transition: opacity .35s, transform .45s var(--hs-e-out);
}
@media (max-width: 899px) { .hs-ask__fabt { display: none; } .hs-ask__disc { width: 56px; height: 56px; } }
@media (hover: hover) and (pointer: fine) {
	.hs-ask__fab:hover .hs-ask__disc { transform: translateY(-3px); }
	.hs-ask__fab:hover .hs-spike__body { transform: translateY(-3px); }
}
.hs-ask__fab:active .hs-ask__disc { transform: scale(.95); }
.hs-ask__fab:focus-visible { outline: none; }
.hs-ask__fab:focus-visible .hs-ask__disc { box-shadow: 0 0 0 3px var(--hs-night), 0 0 0 6px var(--hs-yellow); }
.hs-ask.is-open .hs-ask__fabt { opacity: 0; transform: scale(.9); pointer-events: none; }
.hs-ask.is-open .hs-ask__fab { position: relative; }
.hs-ask.is-open .hs-ask__fab .hs-ask__disc::after { content: ""; position: absolute; inset: 0; background: var(--hs-night) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fcea1e' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7 7 17'/%3E%3C/svg%3E") center/26px no-repeat; animation: hs-ask-fade .25s var(--hs-e-out); }
@keyframes hs-ask-fade { from { opacity: 0; } }

/* Spike arrives like a pale landing in the gate: drops in from above the disc and settles */
.hs-motion .hs-ask .hs-ask__fab { opacity: 0; transform: translateY(14px); }
.hs-motion .hs-ask.is-here .hs-ask__fab { opacity: 1; transform: none; transition: opacity .4s, transform .6s var(--hs-e-out); }
.hs-motion .hs-ask .hs-ask__fabm .hs-spike__body { transform: translateY(-64px); }
.hs-motion .hs-ask.is-here .hs-ask__fabm .hs-spike__body { transform: none; transition: transform .7s var(--hs-e-snap) .25s; }

/* ---------- Spike's moods ---------- */
.hs-spike { overflow: visible; }
.hs-spike__body { transform-box: view-box; transform-origin: 32px 61px; transition: transform .4s var(--hs-e-out); }
.hs-spike__eye { transform-box: fill-box; transform-origin: center; transition: transform .12s, opacity .2s; }
.hs-spike__happy { opacity: 0; transition: opacity .2s; }
.hs-spike__cut { fill: none; stroke: none; }
.hs-ask.is-blink .hs-spike__eye { transform: scaleY(.12); }
.hs-ask[data-mood="happy"] .hs-spike__eye { opacity: 0; }
.hs-ask[data-mood="happy"] .hs-spike__happy { opacity: 1; }
.hs-ask[data-mood="happy"] .hs-spike__body { animation: hs-spike-hop .55s var(--hs-e-snap); }
@keyframes hs-spike-hop { 40% { transform: translateY(-5px); } }
.hs-ask[data-mood="think"] .hs-spike__eye { animation: hs-spike-look 1.1s ease-in-out infinite; }
@keyframes hs-spike-look { 0%, 100% { transform: translateX(-1.4px); } 50% { transform: translateX(1.4px); } }
/* thinking: the site's red cut spark runs round Spike's outline */
.hs-ask[data-mood="think"] .hs-spike__cut { stroke: var(--hs-red); stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: .14 .86; animation: hs-spike-cut 1.2s linear infinite; }
@keyframes hs-spike-cut { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
/* idle: a slow sway on the rail, like the tag on its string */
.hs-motion .hs-ask.is-here:not(.is-open) .hs-ask__fabm .hs-spike__body { animation: hs-spike-sway 5s ease-in-out 1.4s infinite; }
@keyframes hs-spike-sway { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(2.5deg); } 70% { transform: rotate(-2deg); } }

/* ---------- nudge ---------- */
.hs-ask__nudge {
	position: absolute; right: 0; bottom: calc(100% + .7rem); width: max-content; max-width: min(270px, calc(100vw - 2rem)); margin: 0;
	padding: .75rem 2.4rem .75rem .95rem; border-radius: var(--hs-r); background: var(--hs-yellow); color: var(--hs-ink); font-weight: 560; font-size: .95rem; line-height: 1.35;
	box-shadow: 0 18px 32px -16px rgba(13, 15, 28, .7); cursor: pointer; animation: hs-ask-nudge .5s var(--hs-e-out);
}
.hs-ask__nudge::after { content: ""; position: absolute; right: 22px; top: 100%; border: 8px solid transparent; border-top-color: var(--hs-yellow); }
@keyframes hs-ask-nudge { from { opacity: 0; transform: translateY(8px); } }
.hs-ask__nudge-x { position: absolute; top: .2rem; right: .2rem; width: 36px; height: 36px; display: grid; place-items: center; border: 0; background: none; color: var(--hs-ink); cursor: pointer; border-radius: 50%; }
.hs-ask__nudge-x svg { width: 16px; height: 16px; }

/* ---------- the panel ---------- */
.hs-ask__p {
	position: absolute; right: 0; bottom: calc(100% + .9rem); width: min(410px, calc(100vw - 2rem)); height: min(640px, calc(100vh - 8.5rem)); height: min(640px, calc(100dvh - 8.5rem));
	display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; background: var(--hs-paper); border-radius: 18px; overflow: hidden;
	box-shadow: 0 0 0 1px rgba(22, 26, 51, .1), 0 34px 70px -24px rgba(13, 15, 28, .65);
	transform-origin: calc(100% - 30px) 100%; animation: hs-ask-in .42s var(--hs-e-out);
}
.hs-ask__p[hidden] { display: none; }
@keyframes hs-ask-in { from { opacity: 0; transform: translateY(14px) scale(.96); } }
@media (max-width: 699px) {
	.hs-ask__p {
		position: fixed; inset: 0; width: auto; height: auto; border-radius: 0; z-index: 90;
		padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom);
		animation: hs-ask-up .42s var(--hs-e-out);
	}
	@keyframes hs-ask-up { from { transform: translateY(24px); opacity: 0; } }
	.hs-ask.is-open .hs-ask__fab { visibility: hidden; }
}
html.hs-ask-lock, html.hs-ask-lock body { overflow: hidden; }

.hs-ask__h { display: flex; align-items: center; gap: .75rem; padding: .7rem .6rem .7rem .85rem; background: var(--hs-night); color: var(--hs-on-dark); }
.hs-ask__disc--h { width: 46px; height: 46px; box-shadow: 0 0 0 2px var(--hs-night-3); }
.hs-ask__disc--h .hs-spike { bottom: -5px; }
.hs-ask__ht { flex: 1; min-width: 0; }
.hs-ask__t { margin: 0; font-size: 1.15rem; font-weight: 680; font-stretch: 110%; letter-spacing: -.02em; line-height: 1.1; }
.hs-ask__s { margin: .1rem 0 0; font-size: .82rem; color: var(--hs-on-dark-2); }
.hs-ask__ib { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--hs-on-dark); cursor: pointer; transition: background .2s; }
.hs-ask__ib svg { width: 20px; height: 20px; }
.hs-ask__ib:hover { background: rgba(255, 255, 255, .08); }
.hs-ask__ib:focus-visible { outline: 2px solid var(--hs-yellow); outline-offset: -2px; }

.hs-ask__log { overflow-y: auto; overscroll-behavior: contain; padding: 1rem .85rem 1.2rem; display: flex; flex-direction: column; gap: .7rem; scroll-padding: 12px; -webkit-overflow-scrolling: touch; }
.hs-ask__log:focus { outline: none; }
.hs-ask__m { max-width: 92%; font-size: .97rem; line-height: 1.5; animation: hs-ask-msg .35s var(--hs-e-out); }
@keyframes hs-ask-msg { from { opacity: 0; transform: translateY(6px); } }
.hs-ask__m--me { align-self: flex-end; background: var(--hs-night); color: var(--hs-on-dark); padding: .55rem .85rem; border-radius: 16px 16px 4px 16px; overflow-wrap: anywhere; }
.hs-ask__m--bot { align-self: flex-start; display: grid; gap: .5rem; width: 100%; max-width: 100%; }
.hs-ask__b { background: #fff; padding: .7rem .9rem; border-radius: 16px 16px 16px 4px; box-shadow: 0 1px 0 rgba(22, 26, 51, .08); max-width: 94%; justify-self: start; overflow-wrap: anywhere; }
.hs-ask__b strong { font-weight: 650; }
.hs-ask__fig { display: inline-flex; align-items: baseline; gap: .3rem; margin: .35rem .9rem .15rem 0; color: var(--hs-ink-2); font-size: .9rem; }
.hs-ask__fig b { font-size: 1.6rem; font-weight: 680; font-stretch: 110%; color: var(--hs-ink); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

/* typing: three pale tips bobbing */
.hs-ask__typing .hs-ask__b { display: inline-flex; gap: 5px; padding: .85rem 1rem; }
.hs-ask__typing i { width: 8px; height: 10px; background: var(--hs-ink-2); clip-path: polygon(50% 0, 100% 40%, 100% 100%, 0 100%, 0 40%); animation: hs-ask-dot 1s ease-in-out infinite; }
.hs-ask__typing i:nth-child(2) { animation-delay: .15s; }
.hs-ask__typing i:nth-child(3) { animation-delay: .3s; }
@keyframes hs-ask-dot { 0%, 100% { transform: translateY(0); opacity: .45; } 40% { transform: translateY(-4px); opacity: 1; } }

/* action chips */
.hs-ask__acts { display: flex; flex-wrap: wrap; gap: .4rem; }
.hs-ask__a {
	min-height: 40px; padding: .45rem .85rem; border-radius: 999px; border: 1.5px solid var(--hs-line-l); background: #fff; color: var(--hs-ink);
	font: inherit; font-size: .9rem; font-weight: 600; line-height: 1.2; cursor: pointer; text-align: left;
	transition: border-color .2s, background .2s, transform .2s var(--hs-e-out);
	-webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.hs-ask__a:hover { border-color: var(--hs-ink); }
.hs-ask__a:active { transform: scale(.97); }
.hs-ask__a:focus-visible, .hs-ask__cb:focus-visible { outline: 2px solid var(--hs-ink); outline-offset: 2px; }
.hs-ask__a--wa { background: var(--hs-red); border-color: var(--hs-red); color: #fff; }
.hs-ask__a--wa:hover { background: var(--hs-red-2); border-color: var(--hs-red-2); }
.hs-ask__a--list { background: var(--hs-yellow); border-color: var(--hs-yellow); }
.hs-ask__a--list:hover { border-color: var(--hs-ink); }
.hs-ask__a--link::after { content: " →"; }
.hs-ask__a:disabled { opacity: 1; background: var(--hs-zinc); border-color: var(--hs-zinc); cursor: default; }

/* cards */
.hs-ask__c { background: #fff; border-radius: var(--hs-r); padding: .8rem .9rem; box-shadow: 0 0 0 1px rgba(22, 26, 51, .08); display: grid; gap: .35rem; font-size: .92rem; }
.hs-ask__c header { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.hs-ask__c header strong { font-size: 1.05rem; font-weight: 680; font-stretch: 110%; letter-spacing: -.01em; }
.hs-ask__c header span { color: var(--hs-ink-2); font-variant-numeric: tabular-nums; font-size: .85rem; }
.hs-ask__c p { margin: 0; color: var(--hs-ink-2); }
.hs-ask__cl { font-size: .85rem; overflow-wrap: anywhere; }
.hs-ask__c table { border-collapse: collapse; font-size: .85rem; }
.hs-ask__c th { text-align: left; font-weight: 600; padding: .1rem .8rem .1rem 0; }
.hs-ask__c td { color: var(--hs-ink-2); }
.hs-ask__cbs { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .25rem; }
.hs-ask__cb { min-height: 38px; padding: .35rem .75rem; border-radius: 999px; border: 1.5px solid var(--hs-line-l); background: none; color: var(--hs-ink); font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; }
.hs-ask__cb:hover { border-color: var(--hs-ink); }
.hs-ask__cb.is-main { background: var(--hs-ink); border-color: var(--hs-ink); color: #fff; }
.hs-ask__cb.is-wa { background: var(--hs-red); border-color: var(--hs-red); color: #fff; }
.hs-ask__mine { display: inline-flex; align-items: center; min-height: 38px; padding: 0 .75rem; border-radius: 999px; background: var(--hs-yellow); font-size: .85rem; font-weight: 650; }
.hs-ask__c--special { grid-template-columns: minmax(0, 1fr) auto; align-items: center; border-left: 4px solid var(--hs-yellow); }
.hs-ask__c--special div { display: grid; gap: .1rem; }
.hs-ask__c--special span { color: var(--hs-ink-2); font-size: .85rem; }
.hs-ask__price { display: grid; justify-items: end; color: var(--hs-ink) !important; font-size: 1.25rem; font-weight: 700; font-stretch: 110%; font-variant-numeric: tabular-nums; }
.hs-ask__price s { font-size: .8rem; font-weight: 500; color: var(--hs-ink-2); }
.hs-ask__price small { font-size: .72rem; font-weight: 500; color: var(--hs-ink-2); }

/* input */
.hs-ask__f { display: flex; gap: .5rem; padding: .7rem .75rem .4rem; background: var(--hs-paper); border-top: 1px solid var(--hs-line-l); }
.hs-ask__in {
	flex: 1; min-width: 0; min-height: 48px; padding: 0 1rem; border-radius: 999px; border: 1.5px solid var(--hs-line-l); background: #fff; color: var(--hs-ink);
	font: inherit; font-size: 16px; /* 16px: no zoom on iPhone */
}
.hs-ask__in:focus { outline: none; border-color: var(--hs-ink); box-shadow: 0 0 0 3px rgba(22, 26, 51, .1); }
.hs-ask__go { flex: none; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--hs-red); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .2s, transform .2s var(--hs-e-out); }
.hs-ask__go:hover { background: var(--hs-red-2); }
.hs-ask__go:active { transform: scale(.94); }
.hs-ask__go:focus-visible { outline: 2px solid var(--hs-ink); outline-offset: 2px; }
.hs-ask__go svg { width: 20px; height: 20px; }
.hs-ask__fine { margin: 0; padding: 0 1rem .65rem; font-size: .75rem; line-height: 1.35; color: var(--hs-ink-2); background: var(--hs-paper); }

@media (prefers-reduced-motion: reduce) {
	.hs-ask *, .hs-ask *::before, .hs-ask *::after { animation: none !important; transition: none !important; }
}
@media print { .hs-ask { display: none; } }
