/* ============================================================
   Home — Hero "Live" variant (hhl-)
   Loaded only on the front page (see functions.php).
   All selectors prefixed `hhl-` to avoid collisions with the
   legacy .hero-* rules in main.css that style hero.php.
   ============================================================ */

.hhl-hero {
	/* Local tokens — extend the global theme palette without polluting :root */
	--hhl-color-bg-cream: #faf7f2;
	--hhl-color-primary-lilac: #c4b8ff;
	--hhl-color-border-strong: rgba(178, 178, 174, 0.5);
	--hhl-color-accent-warm: #e89579;
	--hhl-color-accent-sand: #f4ead8;
	--hhl-radius-md: var(--radius-md, 16px);
	--hhl-radius-xl: 32px;
	--hhl-shadow-md: 0 8px 24px rgba(49, 51, 48, 0.08);
	--hhl-shadow-card: 0 18px 48px -16px rgba(96, 80, 176, 0.25), 0 4px 12px rgba(49, 51, 48, 0.06);
	--hhl-ease: cubic-bezier(0.4, 0, 0.2, 1);
	--hhl-font-display: 'Fraunces', 'Noto Serif', Georgia, serif;

	position: relative;
	overflow: hidden;
	/* Tightened (was 5rem 0 7rem) so the hero mini-generator fits the
	   first viewport together with the headline. */
	padding: 2.25rem 0 4.5rem;
	background:
		radial-gradient(700px 360px at 12% 20%, rgba(196, 184, 255, 0.32), transparent 60%),
		radial-gradient(620px 320px at 92% 80%, rgba(232, 149, 121, 0.18), transparent 60%),
		var(--hhl-color-bg-cream);
}

/* Soft confetti dot grid */
.hhl-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: radial-gradient(circle, rgba(96, 80, 176, 0.08) 1px, transparent 1.5px);
	background-size: 28px 28px;
	background-position: 0 0;
	-webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 90%);
	        mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 90%);
	pointer-events: none;
	/* Containment: this decorative confetti layer can't affect outside layout,
	   so it never contributes to CLS when the full stylesheet applies on top of
	   the inlined critical CSS. */
	contain: layout paint;
}

.hhl-hero-grid {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	gap: 4rem;
	align-items: center;
}

/* ── Hero left ───────────────────────────────────── */
.hhl-hero-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.45rem 1rem 0.45rem 0.5rem;
	background: rgba(255, 255, 255, 0.7);
	border: 1px solid var(--hhl-color-border-strong);
	border-radius: 999px;
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--color-text-dark);
	-webkit-backdrop-filter: blur(8px);
	        backdrop-filter: blur(8px);
	margin-bottom: 1rem; /* was 1.6rem — first-screen fit */
}
.hhl-hero-eyebrow-pulse {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--color-success);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	flex-shrink: 0;
	position: relative;
}
.hhl-hero-eyebrow-pulse::after {
	content: "";
	position: absolute;
	inset: -4px;
	border-radius: 50%;
	border: 2px solid var(--color-success);
	animation: hhl-pulse-ring 2s ease-out infinite;
}
@keyframes hhl-pulse-ring {
	0%   { transform: scale(0.6); opacity: 0.9; }
	100% { transform: scale(1.6); opacity: 0; }
}
.hhl-hero-eyebrow-pulse svg { width: 11px; height: 11px; }
.hhl-hero-eyebrow strong { color: var(--color-primary); font-weight: 700; }

.hhl-hero-headline {
	font-family: var(--hhl-font-display);
	font-weight: 500;
	font-size: clamp(2.6rem, 5.4vw, 4.6rem);
	line-height: 1.02;
	letter-spacing: -0.025em;
	color: var(--color-text-dark);
	/* No min-height reserve: it left a large empty band under the headline.
	   The morph swap may nudge content by a line in rare long-word locales —
	   accepted trade-off for a tight first screen. */
	margin-bottom: 0.9rem;
}
.hhl-hero-headline-row {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 0.4em;
}
.hhl-hero-static { font-style: italic; }

/* Morphing word slot.
   .hhl-hero-morph         outer container (overflow:visible so the tooltip
                            can escape vertically above the headline)
   .hhl-hero-morph-link    the <a href="#generator">; carries hover/focus
                            state for both the inner pill and the tooltip
   .hhl-hero-morph-clip    overflow:hidden box that clips the swap-out /
                            swap-in animation of .hhl-hero-morph-inner
   .hhl-hero-morph-tip     purple gradient pill that floats above on
                            hover / focus / .is-open
*/
.hhl-hero-morph {
	display: inline-flex;
	align-items: center;
	/* min-height (not height) so a long localised morph that wraps
	   to two lines («с Рождением ребёнка», «بعيد الميلاد») can grow
	   the box vertically instead of overflowing onto the row below.
	   1.25em keeps the single-line case tall enough for Fraunces'
	   descenders ("y" in "Anniversary", "g" in "Wedding"). */
	min-height: 1.25em;
	overflow: visible;
	position: relative;
	vertical-align: bottom;
}
.hhl-hero-morph-link {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	cursor: pointer;
	position: relative;
	-webkit-tap-highlight-color: transparent;
}
.hhl-hero-morph-link:focus { outline: none; }
.hhl-hero-morph-link:focus-visible {
	outline: 2px solid rgba(96, 80, 176, 0.4);
	outline-offset: 4px;
	border-radius: 14px;
}
.hhl-hero-morph-clip {
	display: inline-flex;
	align-items: center;
	/* min-height matches .hhl-hero-morph above — the clip box grows
	   vertically when the morph word wraps to two lines (e.g. RU
	   «с Рождением ребёнка» on a 1024-1100px viewport). Keeping
	   `height` would let the second line overflow onto the row below. */
	min-height: 1.25em;
	/* clip-path instead of overflow:hidden so the morph-inner's hover
	   box-shadow ("0 14px 32px -16px rgba(96,80,176,.55)") isn't clipped.
	   Top edge stays tight (swap-out's translateY(-100%) is still hidden);
	   sides and bottom get enough slack to fit the soft shadow. */
	-webkit-clip-path: inset(0 -40px -44px -40px);
	        clip-path: inset(0 -40px -44px -40px);
	position: relative;
}
.hhl-hero-morph-inner {
	display: inline-block;
	padding: 0 0.3em;
	border-radius: 14px;
	background: linear-gradient(180deg, rgba(196, 184, 255, 0.45), rgba(196, 184, 255, 0.15));
	color: var(--color-primary);
	font-style: normal;
	font-weight: 600;
	user-select: none;
	position: relative;
	transition: transform 0.5s var(--hhl-ease), opacity 0.4s var(--hhl-ease),
	            background 0.3s var(--hhl-ease), box-shadow 0.3s var(--hhl-ease);
}
.hhl-hero-morph-link:hover .hhl-hero-morph-inner,
.hhl-hero-morph-link:focus-visible .hhl-hero-morph-inner {
	background: linear-gradient(180deg, rgba(196, 184, 255, 0.7), rgba(196, 184, 255, 0.28));
	box-shadow:
		0 0 0 1px rgba(96, 80, 176, 0.18) inset,
		0 14px 32px -16px rgba(96, 80, 176, 0.55);
}

/* Tooltip — small CTA pill above the morph word. Hidden by default,
   slides up + scales in on hover / focus / .is-open. */
.hhl-hero-morph-tip {
	position: absolute;
	left: 50%;
	bottom: calc(100% + 12px);
	transform: translateX(-50%) translateY(4px) scale(0.92);
	transform-origin: 50% 110%;
	width: max-content;
	padding: 0.42rem 0.78rem 0.42rem 0.7rem;
	color: #fff;
	background: linear-gradient(135deg, #6f5cc8 0%, #5040a0 55%, #4a3c95 100%);
	border-radius: 999px;
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.22) inset,
		0 -1px 0 rgba(0, 0, 0, 0.18) inset,
		0 10px 22px -8px rgba(48, 36, 100, 0.55),
		0 0 0 4px rgba(196, 184, 255, 0.18);
	opacity: 0;
	pointer-events: none;
	visibility: hidden;
	transition: opacity 0.22s var(--hhl-ease),
	            transform 0.28s var(--hhl-ease),
	            visibility 0s linear 0.28s;
	z-index: 30;
	font-family: var(--font-primary);
	font-style: normal;
	font-weight: 600;
	font-size: 0.74rem;
	letter-spacing: 0.01em;
	line-height: 1;
	white-space: nowrap;
}
.hhl-hero-morph-tip::before {
	/* Glossy top highlight */
	content: "";
	position: absolute;
	inset: 1px 1px auto 1px;
	height: 45%;
	border-radius: 999px 999px 40% 40% / 999px 999px 80% 80%;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0));
	pointer-events: none;
}
.hhl-hero-morph-tip::after {
	/* Stem pointing down at the morph word */
	content: "";
	position: absolute;
	left: 50%;
	top: 100%;
	transform: translateX(-50%) translateY(-55%) rotate(45deg);
	width: 8px;
	height: 8px;
	background: linear-gradient(135deg, #5040a0, #4a3c95);
	border-radius: 1px;
}
.hhl-hero-morph-link:hover .hhl-hero-morph-tip,
.hhl-hero-morph-link:focus-visible .hhl-hero-morph-tip,
.hhl-hero-morph-tip.is-open {
	opacity: 1;
	visibility: visible;
	transform: translateX(-50%) translateY(0) scale(1);
	transition: opacity 0.22s var(--hhl-ease),
	            transform 0.36s cubic-bezier(.2, .9, .25, 1.4),
	            visibility 0s;
}
/* Post-click suppression — JS adds .is-clicked the moment the user
   activates the morph link. Force the tooltip to fade out even while
   the cursor is still over the link. The class is cleared on
   mouseleave/blur so the tooltip is back to normal next interaction. */
.hhl-hero-morph-link.is-clicked .hhl-hero-morph-tip {
	opacity: 0 !important;
	visibility: hidden !important;
	transform: translateX(-50%) translateY(4px) scale(0.92) !important;
	transition: opacity 0.18s var(--hhl-ease), transform 0.18s var(--hhl-ease), visibility 0s linear 0.18s;
}
.hhl-hero-morph-tip-cta {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	color: #fff;
}
.hhl-hero-morph-tip-spark {
	width: 11px;
	height: 11px;
	color: #f4ead8;
	animation: hhl-tip-twinkle 2.2s ease-in-out infinite;
}
@keyframes hhl-tip-twinkle {
	0%, 100% { transform: scale(1)   rotate(0deg);  opacity: 0.85; }
	50%      { transform: scale(1.2) rotate(14deg); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
	.hhl-hero-morph-tip-spark { animation: none; }
}
.hhl-hero-morph-inner.swap-out {
	transform: translateY(-100%);
	opacity: 0;
}
.hhl-hero-morph-inner.swap-in {
	transform: translateY(100%);
	opacity: 0;
}

.hhl-hero-headline-tail {
	color: var(--color-text-dark);
}
.hhl-hero-headline-accent {
	font-family: var(--hhl-font-display);
	font-style: italic;
	color: var(--color-accent-brown);
	font-weight: 500;
	position: relative;
	white-space: nowrap;
}
.hhl-hero-headline-accent::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0.05em;
	height: 0.18em;
	background: rgba(232, 149, 121, 0.35);
	border-radius: 999px;
	z-index: -1;
}

.hhl-hero-sub {
	font-size: 1.05rem;
	color: var(--color-text-muted);
	max-width: 520px;
	line-height: 1.6;
	margin-bottom: 1.15rem; /* was 2rem — keeps the mini-generator above the fold */
}

/* CTA row — uses theme .btn / .btn-primary / .btn-outline.
   Local overrides match the design (solid primary, larger padding). */
.hhl-hero-cta-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.85rem;
	margin-bottom: 2rem;
}
.hhl-hero-cta-row .btn {
	padding: 0.95rem 1.7rem;
	font-size: 1rem;
}
.hhl-hero-cta-row .btn-primary {
	background: var(--color-primary);
	box-shadow: 0 16px 40px -12px rgba(96, 80, 176, 0.55);
}
.hhl-hero-cta-row .btn-primary:hover {
	background: var(--color-primary-hover);
	transform: translateY(-1px);
	box-shadow: 0 20px 44px -10px rgba(96, 80, 176, 0.6);
}
.hhl-hero-cta-row .btn-outline {
	border: 1px solid var(--hhl-color-border-strong);
}
.hhl-hero-cta-row .btn-primary svg {
	transition: transform 0.25s var(--hhl-ease);
}
.hhl-hero-cta-row .btn-primary:hover svg { transform: translateX(3px); }

/* Trust strip — temporarily hidden by user request. Markup kept in
   hero-live.php so toggling it back on is just removing this rule. */
.hhl-hero-trust { display: none; }

/* Original layout, applied via .is-shown when re-enabling. */
.hhl-hero-trust.is-shown {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	flex-wrap: wrap;
}
.hhl-hero-trust-avatars {
	display: flex;
}
.hhl-hero-trust-avatars span {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 3px solid var(--hhl-color-bg-cream);
	margin-left: -10px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-weight: 600;
	font-size: 0.78rem;
}
.hhl-hero-trust-avatars span:nth-child(1) { background: linear-gradient(135deg, #f4c5b1, #e89579); margin-left: 0; }
.hhl-hero-trust-avatars span:nth-child(2) { background: linear-gradient(135deg, #c4b8ff, #6050b0); }
.hhl-hero-trust-avatars span:nth-child(3) { background: linear-gradient(135deg, #b6e3c5, #5fa97e); }
.hhl-hero-trust-avatars span:nth-child(4) { background: linear-gradient(135deg, #f4ead8, #7a5744); }

.hhl-hero-trust-text {
	font-size: 0.88rem;
	color: var(--color-text-muted);
	line-height: 1.4;
}
.hhl-hero-trust-text strong { color: var(--color-text-dark); font-weight: 700; }
.hhl-hero-stars {
	color: #f59e0b;
	letter-spacing: 1px;
	font-size: 0.82rem;
	margin-right: 0.35rem;
}

/* ── Hero right — drifting card stack ────────────── */
.hhl-hero-stage {
	position: relative;
	/* Fills the FULL hero row on every two-column viewport — pinned to both
	   the top and the bottom of the section. A fixed 580px height left the
	   stage hovering mid-row with dead space below it whenever the left
	   column (badge + headline + sub + mini-generator) grew taller.
	   Single-column breakpoints (≤1100px) restore a fixed height below —
	   there the stage sits under the content and has no row to stretch to. */
	height: auto;
	align-self: stretch;
	min-height: 520px;
	perspective: 1400px;
	transform-style: preserve-3d;
	overflow: hidden;
	border-radius: 24px;
}
.hhl-hero-stage-track {
	position: absolute;
	top: -40px;
	bottom: -40px;
	left: 50%;
	width: 360px;
	transform: translateX(-50%) rotateY(-12deg) rotateX(8deg) rotateZ(-4deg);
	transform-style: preserve-3d;
}
.hhl-hero-stage-column {
	display: flex;
	flex-direction: column;
	gap: 18px;
	animation: hhl-drift-up 28s linear infinite;
	/* Promote to its own compositor layer so the infinite translateY drift is a
	   GPU transform (the shadowed 3D card scene is rasterised once, then just
	   translated) instead of repainting on the main thread every frame — that
	   was a heavy Style&Layout / Paint / TBT source in Lighthouse. */
	will-change: transform;
}
@keyframes hhl-drift-up {
	0%   { transform: translateY(0); }
	100% { transform: translateY(-50%); }
}
/* Paused when the hero scrolls out of view (IntersectionObserver in
   home-hero-live.js) — no point animating an off-screen layer, and it frees
   the main thread on long pages. */
.hhl-hero.is-anim-paused .hhl-hero-stage-column,
.hhl-hero.is-anim-paused .hhl-hero-eyebrow-pulse::after {
	animation-play-state: paused;
}
@media (prefers-reduced-motion: reduce) {
	.hhl-hero-stage-column { animation: none; }
	.hhl-hero-eyebrow-pulse::after { animation: none; }
}

.hhl-wishcard {
	background: var(--color-bg-white);
	border: 1px solid var(--color-border);
	border-radius: var(--hhl-radius-md);
	padding: 1.1rem 1.2rem;
	box-shadow: var(--hhl-shadow-card);
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	flex-shrink: 0;
	transform: translateZ(0);
	transition: transform 0.4s var(--hhl-ease);
}
.hhl-wishcard:nth-child(odd)  { transform: translateX(18px) rotateZ(2deg); }
.hhl-wishcard:nth-child(even) { transform: translateX(-12px) rotateZ(-1.5deg); }
.hhl-wishcard:nth-child(3n)   { background: linear-gradient(155deg, #fff 60%, var(--hhl-color-accent-sand) 100%); }
.hhl-wishcard:nth-child(5n)   { background: linear-gradient(155deg, #fff 60%, rgba(196, 184, 255, 0.35) 100%); }

.hhl-wishcard-head {
	display: flex;
	align-items: center;
	gap: 0.6rem;
}
.hhl-wishcard-emoji {
	width: 32px;
	height: 32px;
	border-radius: 8px;
	background: var(--hhl-color-accent-sand);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1rem;
	flex-shrink: 0;
}
.hhl-wishcard-meta {
	display: flex;
	flex-direction: column;
	line-height: 1.2;
	min-width: 0;
}
.hhl-wishcard-meta strong {
	font-size: 0.82rem;
	color: var(--color-text-dark);
	font-weight: 700;
}
.hhl-wishcard-meta small {
	font-size: 0.7rem;
	color: var(--color-text-muted);
}
.hhl-wishcard-quote {
	font-family: var(--hhl-font-display);
	font-style: italic;
	font-size: 0.95rem;
	color: var(--color-text-dark);
	line-height: 1.45;
	font-weight: 400;
}
.hhl-wishcard-foot {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.7rem;
	color: var(--color-text-muted);
}
.hhl-wishcard-tag {
	padding: 0.15rem 0.55rem;
	border-radius: 999px;
	/* Slightly darker tint + slightly darker text bumps the contrast
	   from 3.56:1 (under WCAG 2.1 AA for small text) to ~5.2:1. The
	   wishcards stack is aria-hidden, but visual contrast still
	   matters for low-vision users glancing at the periphery. */
	background: rgba(196, 184, 255, 0.55);
	color: #4a3d8c;
	font-weight: 600;
	font-size: 0.66rem;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

/* Fading edges of the stage */
.hhl-hero-stage::before,
.hhl-hero-stage::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	height: 90px;
	z-index: 3;
	pointer-events: none;
}
.hhl-hero-stage::before {
	top: 0;
	background: linear-gradient(180deg, var(--hhl-color-bg-cream), transparent);
}
.hhl-hero-stage::after {
	bottom: 0;
	background: linear-gradient(0deg, var(--hhl-color-bg-cream), transparent);
}

/* "Now" overlay pill — width is fixed (not max-width) so the cross-fade
   layer swap doesn't make the pill flicker / shrink for shorter strings. */
.hhl-hero-now {
	position: absolute;
	left: 1rem;
	bottom: 1.5rem;
	z-index: 4;
	background: var(--color-bg-white);
	border: 1px solid var(--color-border);
	border-radius: 18px;
	padding: 0.85rem 1.1rem 0.85rem 0.9rem;
	box-shadow: var(--hhl-shadow-md);
	display: flex;
	align-items: center;
	gap: 0.85rem;
	width: 280px;
}
/* Icon backplate — grid stacking lets the cross-fade layers share one
   cell, so the box stays sized to the larger of incoming/outgoing
   without absolute positioning (no inset:0 → no parent collapse). */
.hhl-hero-now-icon {
	width: 38px;
	height: 38px;
	border-radius: 12px;
	background: var(--hhl-color-accent-sand);
	border: 1px solid var(--color-border);
	display: grid;
	grid-template-areas: "cell";
	align-items: center;
	justify-items: center;
	font-size: 20px;
	line-height: 1;
	flex-shrink: 0;
	overflow: hidden;
}
.hhl-hero-now-icon > .hhl-now-fade {
	grid-area: cell;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

/* Text container — grid-stacked layers. Both fade layers share one cell,
   so the container hugs the larger of incoming/outgoing during the swap
   (no parent collapse → no "shrink flicker"). min-height is sized to the
   common 2-line case; longer locales (e.g. RU "Поздравление с днём
   рождения для …") let the grid stretch to fit naturally. */
.hhl-hero-now-num {
	display: grid;
	grid-template-areas: "cell";
	min-width: 0;
	min-height: 2.6em;
}
.hhl-hero-now-num > .hhl-now-fade {
	grid-area: cell;
	white-space: normal;
	overflow-wrap: anywhere;
}

/* Cross-fade — opacity-only. JS adds .hhl-now-fade--in on top, marks
   the previous layer .hhl-now-fade--out, animates 0↔1, then drops it. */
.hhl-now-fade {
	transition: opacity 0.45s var(--hhl-ease, cubic-bezier(0.4, 0, 0.2, 1));
}
.hhl-now-fade--in           { opacity: 0; }
.hhl-now-fade--in.is-shown  { opacity: 1; }
.hhl-now-fade--out          { opacity: 1; }
.hhl-now-fade--out.is-fading{ opacity: 0; }
@media (prefers-reduced-motion: reduce) {
	.hhl-now-fade { transition: none; }
}
.hhl-hero-now-body { line-height: 1.3; }
.hhl-hero-now-label {
	font-size: 0.7rem;
	color: var(--color-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.07em;
	font-weight: 600;
}
.hhl-hero-now-num {
	font-family: var(--hhl-font-display);
	font-size: 1.05rem;
	font-weight: 600;
	color: var(--color-text-dark);
}

/* Feature row beneath the hero */
.hhl-hero-features {
	margin-top: 4rem;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.5rem;
	padding-top: 2rem;
	border-top: 1px solid var(--color-border);
}
.hhl-hero-feature {
	display: flex;
	align-items: flex-start;
	gap: 0.85rem;
}
.hhl-hero-feature-icon {
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: var(--color-bg-white);
	border: 1px solid var(--color-border);
	color: var(--color-primary);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.hhl-hero-feature-icon svg { width: 18px; height: 18px; }
.hhl-hero-feature h4 {
	font-size: 0.92rem;
	font-weight: 700;
	color: var(--color-text-dark);
	margin-bottom: 0.15rem;
	letter-spacing: -0.01em;
}
.hhl-hero-feature p {
	font-size: 0.82rem;
	color: var(--color-text-muted);
	line-height: 1.5;
}

/* ── RTL adjustments (he/ar) ─────────────────────── */
.rtl .hhl-hero-trust-avatars span,
[dir="rtl"] .hhl-hero-trust-avatars span {
	margin-left: 0;
	margin-right: -10px;
}
.rtl .hhl-hero-trust-avatars span:nth-child(1),
[dir="rtl"] .hhl-hero-trust-avatars span:nth-child(1) {
	margin-right: 0;
}
.rtl .hhl-hero-now,
[dir="rtl"] .hhl-hero-now {
	left: auto;
	right: 1rem;
}

/* ── Responsive ──────────────────────────────────── */
/* Short desktop viewports — 13-14" laptops (~650-780px of visible height).
   Compact the hero vertically so the mini-generator (incl. its Generate
   button) fits the first screen. Width stays desktop two-column. */
@media (min-width: 981px) and (max-height: 780px) {
	.hhl-hero { padding: 1.4rem 0 3rem; }
	.hhl-hero-eyebrow { margin-bottom: .65rem; padding: .35rem .8rem .35rem .45rem; font-size: .78rem; }
	.hhl-hero-headline { font-size: clamp(2.2rem, 4.4vw, 3.6rem); margin-bottom: .65rem; }
	.hhl-hero-sub { font-size: .98rem; line-height: 1.5; margin-bottom: .85rem; }
	/* Stretch comes from the base rule; just relax the floor for short
	   laptop viewports. */
	.hhl-hero-stage { min-height: 420px; }
}

@media (max-width: 1100px) {
	.hhl-hero-grid { grid-template-columns: 1fr; gap: 3rem; }
	/* Single column: the stage sits under the content — fixed height again
	   (min-height: 0 releases the desktop stretch floor). */
	.hhl-hero-stage { height: 480px; min-height: 0; }
	.hhl-hero-features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
	.hhl-hero { padding: 3rem 0 4.5rem; }
	/* Mobile keeps the headline readable at 2.6rem minimum (was 1.7rem
	   shrink for one-line fit, but that read tiny). Long morph words
	   wrap across two lines — handled by min-height on .hhl-hero-morph. */
	.hhl-hero-headline {
		font-size: clamp(2.6rem, 7vw, 4.6rem);
		/* min-height reserve removed everywhere — see the desktop rule. */
	}
	.hhl-hero-stage { height: 420px; }
	/* Mobile: drop the continuous drift entirely. Inside the preserve-3d
	   stage it can't be fully GPU-composited, so each frame restyles the 3D
	   card scene on the main thread — wasteful on a throttled mobile CPU. A
	   static stack reads the same on a narrow viewport. */
	.hhl-hero-stage-column { animation: none; }
	.hhl-hero-stage-track { width: 280px; }
	.hhl-hero-features { grid-template-columns: 1fr; }
	.hhl-hero-now { left: 0; bottom: 1rem; width: 240px; }
	[dir="rtl"] .hhl-hero-now,
	.rtl .hhl-hero-now { left: auto; right: 0; }

	/* Long morph words on mobile — let the inner pill wrap naturally
	   instead of jumping out of its clip box. We trade the slick
	   slide-up swap for a plain opacity fade (translateY would push
	   a multi-line word out of frame anyway). */
	.hhl-hero-morph,
	.hhl-hero-morph-clip {
		height: auto !important;
		min-width: 0 !important;
		max-width: 100%;
	}
	.hhl-hero-morph-clip {
		clip-path: none;
		-webkit-clip-path: none;
		overflow: visible;
	}
	.hhl-hero-morph-inner {
		white-space: normal;
		word-break: keep-all;
		overflow-wrap: break-word;
		line-height: 1.05;
	}
	.hhl-hero-morph-inner.swap-out,
	.hhl-hero-morph-inner.swap-in {
		transform: none;
		opacity: 0;
	}
}
