/* HyperBuzz signup forms */
.hyperbuzz {
	--hb-accent: #4f46e5;
	--hb-on-accent: #fff;
	--hb-bg: #fff;
	--hb-text: #0f1115;
	--hb-muted: #6b7280;
	--hb-border: #e5e7eb;
	--hb-field: #fff;
	position: relative;
	overflow: hidden;
	box-sizing: border-box;
	max-width: 640px;
	margin: 2em auto;
	border: 1px solid var(--hb-border);
	border-radius: 16px;
	background: var(--hb-bg);
	color: var(--hb-text);
	box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 12px 32px -12px rgba(16, 24, 40, .12);
	font-family: inherit;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}
.alignwide > .hyperbuzz, .alignfull > .hyperbuzz { max-width: none; }
.hyperbuzz *, .hyperbuzz *::before, .hyperbuzz *::after { box-sizing: border-box; }

.hyperbuzz__inner { position: relative; z-index: 1; padding: clamp(24px, 5vw, 40px); }

/* Eyebrow */
.hyperbuzz__badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--hb-accent);
}
.hyperbuzz__badge::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: currentColor;
	box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 18%, transparent);
}

.hyperbuzz__title {
	margin: 12px 0 6px !important;
	font-size: clamp(22px, 3.2vw, 28px) !important;
	line-height: 1.2 !important;
	font-weight: 700 !important;
	letter-spacing: -.02em !important;
	color: var(--hb-text) !important;
}
.hyperbuzz__subtitle { margin: 0 0 24px !important; font-size: 15px; color: var(--hb-muted); max-width: 46ch; }

/* Field group: inputs + button inside one bordered control */
.hyperbuzz__form { margin: 0; }
.hyperbuzz__fields {
	display: flex;
	align-items: stretch;
	gap: 0;
	padding: 5px;
	border: 1px solid var(--hb-border);
	border-radius: 12px;
	background: var(--hb-field);
	transition: border-color .15s, box-shadow .15s;
}
.hyperbuzz__fields:focus-within {
	border-color: var(--hb-accent);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--hb-accent) 15%, transparent);
}
.hyperbuzz__input {
	flex: 1 1 0;
	min-width: 0;
	height: 44px;
	margin: 0 !important;
	padding: 0 12px !important;
	border: 0 !important;
	border-radius: 8px !important;
	background: transparent !important;
	color: var(--hb-text) !important;
	font-family: inherit !important;
	font-size: 15px !important;
	box-shadow: none !important;
	outline: none !important;
}
.hyperbuzz__input::placeholder { color: #9ca3af; opacity: 1; }
.hyperbuzz__input + .hyperbuzz__sr + .hyperbuzz__input { border-left: 1px solid var(--hb-border) !important; border-radius: 0 !important; }
.hyperbuzz__input[name="name"] { flex: .7 1 0; }

.hyperbuzz__button {
	flex: 0 0 auto;
	height: 44px;
	margin: 0 0 0 5px !important;
	padding: 0 20px !important;
	border: 0 !important;
	border-radius: 8px !important;
	background: var(--hb-accent) !important;
	color: var(--hb-on-accent) !important;
	font-family: inherit !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	cursor: pointer;
	transition: filter .15s, transform .15s;
}
.hyperbuzz__button:hover { filter: brightness(1.08); }
.hyperbuzz__button:active { transform: scale(.98); }
.hyperbuzz__button:focus-visible { outline: 2px solid var(--hb-accent); outline-offset: 2px; }
.hyperbuzz__button.is-loading { cursor: progress; opacity: .85; }

/* Consent */
.hyperbuzz__consent { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 0; font-size: 13px; line-height: 1.45; color: var(--hb-muted); cursor: pointer; }
.hyperbuzz__consent input {
	appearance: none;
	-webkit-appearance: none;
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	margin: 1px 0 0;
	border: 1px solid #d1d5db;
	border-radius: 4px;
	background: var(--hb-field) center / 10px no-repeat;
	cursor: pointer;
	transition: background-color .15s, border-color .15s;
}
.hyperbuzz__consent input:checked {
	border-color: var(--hb-accent);
	background-color: var(--hb-accent);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.5l4.5-5' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.hyperbuzz__consent input:focus-visible { outline: 2px solid var(--hb-accent); outline-offset: 2px; }

.hyperbuzz__message { min-height: 0; margin: 10px 0 0 !important; font-size: 13px; font-weight: 500; }
.hyperbuzz__message:empty { margin: 0 !important; }
.hyperbuzz__message.is-error { color: #dc2626; }

/* Success */
.hyperbuzz__success { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px; background: color-mix(in srgb, var(--hb-accent) 8%, var(--hb-bg)); }
.hyperbuzz__success[hidden], .hyperbuzz__form[hidden] { display: none; }
.hyperbuzz__success-emoji {
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--hb-accent);
	color: var(--hb-on-accent);
	font-size: 0;
	animation: hb-pop .45s cubic-bezier(.2, 1.4, .4, 1) both;
}
.hyperbuzz__success-emoji::after { content: "✓"; font-size: 18px; font-weight: 700; line-height: 1; }
.hyperbuzz__success-emoji.is-mail::after { content: "✉"; font-size: 17px; }
.hyperbuzz__success-text { margin: 0 !important; font-size: 15px; font-weight: 600; color: var(--hb-text); }

.hyperbuzz__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.hyperbuzz__sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.hyperbuzz.is-shaking .hyperbuzz__fields { animation: hb-shake .35s; border-color: #dc2626; }

/* Dark */
.hyperbuzz--dark {
	--hb-bg: #0b0c0f;
	--hb-text: #f5f5f6;
	--hb-muted: #9ca3af;
	--hb-border: #24262d;
	--hb-field: #14161b;
	box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .5);
}
.hyperbuzz--dark .hyperbuzz__input::placeholder { color: #6b7280; }
.hyperbuzz--dark .hyperbuzz__consent input { border-color: #3a3d46; }
.hyperbuzz--dark .hyperbuzz__message.is-error { color: #f87171; }

/* Bold: accent background, white field */
.hyperbuzz--bold {
	--hb-bg: var(--hb-accent);
	--hb-text: var(--hb-on-accent);
	--hb-muted: color-mix(in srgb, var(--hb-on-accent) 75%, transparent);
	--hb-border: transparent;
	border: 0;
}
.hyperbuzz--bold .hyperbuzz__badge { color: var(--hb-on-accent); }
.hyperbuzz--bold .hyperbuzz__fields { --hb-text: #0f1115; --hb-border: #e5e7eb; background: #fff; border-color: transparent; }
.hyperbuzz--bold .hyperbuzz__fields:focus-within { box-shadow: 0 0 0 4px color-mix(in srgb, var(--hb-on-accent) 30%, transparent); }
.hyperbuzz--bold .hyperbuzz__button { background: #0f1115 !important; color: #fff !important; }
.hyperbuzz--bold .hyperbuzz__consent input { border-color: color-mix(in srgb, var(--hb-on-accent) 50%, transparent); background-color: transparent; }
.hyperbuzz--bold .hyperbuzz__consent input:checked { background-color: #0f1115; border-color: #0f1115; }
.hyperbuzz--bold .hyperbuzz__message.is-error { color: var(--hb-on-accent); text-decoration: underline; }
.hyperbuzz--bold .hyperbuzz__success { background: rgba(255, 255, 255, .14); }
.hyperbuzz--bold .hyperbuzz__success-emoji { background: #fff; color: #0f1115; }


/* Footer: compact, transparent, centered, pill-shaped */
.hyperbuzz--footer {
	--hb-bg: transparent;
	--hb-border: rgba(15, 17, 21, .18);
	--hb-field: rgba(255, 255, 255, .92);
	max-width: 560px;
	margin: 0 auto;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	overflow: visible;
	text-align: center;
}
.hyperbuzz--footer .hyperbuzz__inner { padding: 8px 0 20px; }
.hyperbuzz--footer .hyperbuzz__badge { font-size: 11px; }
.hyperbuzz--footer .hyperbuzz__title { margin: 6px 0 4px !important; font-size: 20px !important; }
.hyperbuzz--footer .hyperbuzz__subtitle { margin: 0 auto 16px !important; font-size: 14px; }
.hyperbuzz--footer .hyperbuzz__fields {
	border-radius: 999px;
	padding: 4px;
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	box-shadow: 0 1px 2px rgba(16, 24, 40, .06);
}
.hyperbuzz--footer .hyperbuzz__input { height: 42px; padding: 0 16px !important; border-radius: 999px !important; }
.hyperbuzz--footer .hyperbuzz__input + .hyperbuzz__sr + .hyperbuzz__input { border-radius: 0 !important; }
.hyperbuzz--footer .hyperbuzz__button { height: 42px; padding: 0 22px !important; border-radius: 999px !important; background: #0f1115 !important; color: #fff !important; }
.hyperbuzz--footer .hyperbuzz__fields:focus-within { border-color: #0f1115; box-shadow: 0 0 0 4px rgba(15, 17, 21, .08); }
.hyperbuzz--footer .hyperbuzz__consent { justify-content: center; max-width: 480px; margin: 12px auto 0; font-size: 12px; text-align: left; }
.hyperbuzz--footer .hyperbuzz__consent input:checked { background-color: #0f1115; border-color: #0f1115; }
.hyperbuzz--footer .hyperbuzz__success { justify-content: center; border-radius: 999px; padding: 10px 18px; background: rgba(255, 255, 255, .92); }
.hyperbuzz--footer .hyperbuzz__success-emoji { width: 30px; height: 30px; background: #0f1115; color: #fff; }
.hyperbuzz--footer .hyperbuzz__success-text { font-size: 14px; }

/* Mobile: stack */
@media (max-width: 560px) {
	.hyperbuzz__fields { flex-direction: column; gap: 4px; }
	.hyperbuzz__input, .hyperbuzz__input[name="name"] { flex: 0 0 auto; width: 100%; height: 46px; }
	.hyperbuzz__input + .hyperbuzz__sr + .hyperbuzz__input { border-left: 0 !important; border-top: 1px solid var(--hb-border) !important; }
	.hyperbuzz__button { margin: 4px 0 0 !important; width: 100%; }
	.hyperbuzz--footer .hyperbuzz__fields { border-radius: 22px; }
	.hyperbuzz--footer .hyperbuzz__success { border-radius: 16px; }
}

@keyframes hb-pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes hb-shake { 0%, 100% { transform: translateX(0); } 25%, 75% { transform: translateX(-5px); } 50% { transform: translateX(5px); } }

@media (prefers-reduced-motion: reduce) {
	.hyperbuzz *, .hyperbuzz { animation: none !important; transition: none !important; }
}
