/**
 * THE ONE CELEBRATION (design polish round 7, item D). "Your assistant is ready" is the same moment in three
 * places (the last step of Get started, the /try landing, the first document a site ever adds), so it is one
 * component: a brand ring that draws itself, a green tick that draws after it, then the words rise in. Under a
 * second, no sound, no confetti, no emoji. Reduced motion shows the finished ring and tick at once.
 * Used by window.hcCelebrate() (hc-celebrate.js). Works on admin pages AND the bare /try landing, which has
 * no admin tokens, hence every var() carries its fallback through the two custom properties below.
 */
.hc-cel {
	--hc-cel-ring: var(--hc-primary-color, rgb(42, 42, 255));
	--hc-cel-tick: var(--hc-switch-on, rgb(97, 206, 112));
	display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
	padding: 6px 0 2px;
}
.hc-cel--start { align-items: flex-start; text-align: left; }
.hc-cel--start .hc-cel__mark, .hc-cel--start .hc-cel__svg { width: 56px; height: 56px; }
.hc-cel__mark { position: relative; width: 72px; height: 72px; flex: 0 0 auto; }
.hc-cel__mark::before { /* a soft glow of the brand behind the mark */
	content: ""; position: absolute; inset: -18px; border-radius: 50%;
	background: radial-gradient(circle, color-mix(in srgb, var(--hc-cel-ring) 16%, transparent) 0%, transparent 70%);
	opacity: 0; animation: hc-cel-glow 900ms var(--hc-ease-out, cubic-bezier(0.2, 0.8, 0.2, 1)) 200ms forwards;
}
.hc-cel__svg { position: relative; display: block; width: 72px; height: 72px; overflow: visible; }
.hc-cel__ring, .hc-cel__tick { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.hc-cel__ring { stroke: var(--hc-cel-ring); stroke-width: 3.5; stroke-dasharray: 176; stroke-dashoffset: 176;
	transform: rotate(-90deg); transform-origin: 36px 36px;
	animation: hc-cel-draw 520ms var(--hc-ease-out, cubic-bezier(0.2, 0.8, 0.2, 1)) forwards; }
.hc-cel__tick { stroke: var(--hc-cel-tick); stroke-width: 4.5; stroke-dasharray: 44; stroke-dashoffset: 44;
	animation: hc-cel-draw 320ms var(--hc-ease-out, cubic-bezier(0.2, 0.8, 0.2, 1)) 440ms forwards; }
.hc-cel__title, .hc-cel__line { opacity: 0; animation: hc-cel-rise 280ms var(--hc-ease-out, cubic-bezier(0.2, 0.8, 0.2, 1)) forwards; }
.hc-cel__title { animation-delay: 620ms; font-weight: 700; font-size: 20px; line-height: 1.25; }
.hc-cel__line { animation-delay: 700ms; font-size: 15px; line-height: 1.45; opacity: 0; max-width: 46ch; }
@keyframes hc-cel-draw { to { stroke-dashoffset: 0; } }
@keyframes hc-cel-rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes hc-cel-glow { to { opacity: 1; } }

/* Shown before (this browser has seen this moment), or reduced motion: the finished state, still. */
.hc-cel--done .hc-cel__ring, .hc-cel--done .hc-cel__tick { animation: none; stroke-dashoffset: 0; }
.hc-cel--done .hc-cel__title, .hc-cel--done .hc-cel__line { animation: none; opacity: 1; }
.hc-cel--done .hc-cel__mark::before { animation: none; opacity: 1; }
@media (prefers-reduced-motion: reduce) {
	.hc-cel__ring, .hc-cel__tick { animation: none; stroke-dashoffset: 0; }
	.hc-cel__title, .hc-cel__line { animation: none; opacity: 1; }
	.hc-cel__mark::before { animation: none; opacity: 1; }
}

/* The small form: a tick that draws itself, for a finished step in a list. */
.hc-cel-tick { display: inline-block; width: 1.1em; height: 1.1em; vertical-align: -0.15em; }
.hc-cel-tick path { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
	stroke-dasharray: 24; stroke-dashoffset: 24; animation: hc-cel-draw 300ms var(--hc-ease-out, cubic-bezier(0.2, 0.8, 0.2, 1)) forwards; }
@media (prefers-reduced-motion: reduce) { .hc-cel-tick path { animation: none; stroke-dashoffset: 0; } }

/* ── ROUND 8, item A: THE LUCYIQ MARK, REVEALING ITSELF ──────────────────────────────────────────────────────────
   hc_brand_mark_svg() (hc-brand-mark.php) inlines the mark from its single source: .m-ink = the speech bubble,
   .m-blue = the dog line, .m-paper = the eye, a cut-out that must take the colour of whatever it sits on (set
   --hc-mark-paper where the ground is not a white card). Colours are the logo PNG's own, sampled 2026-11-07, so the
   mark matches the wordmark beside it: green-black bubble + brand blue dog in light; the dark logo's blue bubble +
   green dog in dark (its blue word mark is known, by design).
   The reveal: the bubble grows from its tail on the spring, the dog line rises into it, the eye opens last. */
.hc-mark { display: block; width: 100%; height: auto; overflow: visible; }
.hc-mark .m-ink { fill: var(--hc-mark-ink, rgb(11, 40, 34)); }
.hc-mark .m-blue { fill: var(--hc-mark-blue, rgb(42, 42, 255)); }
.hc-mark .m-paper { fill: var(--hc-mark-paper, var(--hc-card-bg, rgb(255, 255, 255))); }
html.hc-dark-mode .hc-mark { --hc-mark-ink: rgb(42, 42, 255); --hc-mark-blue: rgb(55, 200, 113); }
@media (prefers-color-scheme: dark) {
	:where(body.login, body.hc-demo-landing-body) .hc-mark { --hc-mark-ink: rgb(42, 42, 255); --hc-mark-blue: rgb(55, 200, 113); }
}
.hc-mark--reveal .m-ink, .hc-mark--reveal .m-blue, .hc-mark--reveal .m-paper { transform-box: fill-box; }
.hc-mark--reveal .m-ink { transform-origin: 0% 100%; animation: hc-mark-bubble 440ms var(--hc-ease-spring, cubic-bezier(0.34, 1.36, 0.64, 1)) both; }
.hc-mark--reveal .m-blue { transform-origin: 0% 100%; animation: hc-mark-dog 380ms var(--hc-ease-out, cubic-bezier(0.2, 0.8, 0.2, 1)) 120ms both; }
.hc-mark--reveal .m-paper { transform-origin: 50% 50%; animation: hc-mark-eye 240ms var(--hc-ease-spring, cubic-bezier(0.34, 1.36, 0.64, 1)) 440ms both; }
@keyframes hc-mark-bubble { from { opacity: 0; transform: scale(0.6); } }
@keyframes hc-mark-dog { from { opacity: 0; transform: translate(-6%, 8%) rotate(-6deg); } }
@keyframes hc-mark-eye { from { transform: scale(0); } }

/* The celebration wearing the mark: the mark reveals, then a green badge with a drawing tick lands on its corner. */
.hc-cel--mark .hc-cel__mark { width: 66px; height: 72px; }
.hc-cel--start.hc-cel--mark .hc-cel__mark { width: 52px; height: 56px; }
.hc-cel__badge {
	position: absolute; right: -8px; bottom: -4px; width: 26px; height: 26px; border-radius: 50%;
	display: grid; place-items: center;
	background: var(--hc-switch-on, rgb(97, 206, 112)); color: var(--hc-on-button-color, rgb(10, 44, 18));
	box-shadow: 0 0 0 3px var(--hc-mark-paper, var(--hc-card-bg, rgb(255, 255, 255))), var(--hc-shadow-xs, 0 1px 2px rgba(20, 22, 43, 0.08));
	animation: hc-cel-badge 260ms var(--hc-ease-spring, cubic-bezier(0.34, 1.36, 0.64, 1)) 560ms both;
}
.hc-cel__badge svg { width: 16px; height: 16px; overflow: visible; }
.hc-cel__badge path { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
	stroke-dasharray: 20; stroke-dashoffset: 20; animation: hc-cel-draw 260ms var(--hc-ease-out, cubic-bezier(0.2, 0.8, 0.2, 1)) 720ms forwards; }
@keyframes hc-cel-badge { from { opacity: 0; transform: scale(0.3); } }
.hc-cel--done .hc-mark--reveal .m-ink, .hc-cel--done .hc-mark--reveal .m-blue, .hc-cel--done .hc-mark--reveal .m-paper,
.hc-cel--done .hc-cel__badge { animation: none; }
.hc-cel--done .hc-cel__badge path { animation: none; stroke-dashoffset: 0; }
@media (prefers-reduced-motion: reduce) {
	.hc-mark--reveal .m-ink, .hc-mark--reveal .m-blue, .hc-mark--reveal .m-paper, .hc-cel__badge { animation: none; }
	.hc-cel__badge path { animation: none; stroke-dashoffset: 0; }
}
