.hpc-widget {
	--hpc-accent: #f97316;
	--hpc-dark: #111111;
	--hpc-text: #333333;
	--hpc-muted: #767b83;
	--hpc-border: #ececec;
	max-width: 640px;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	box-sizing: border-box;
}

.hpc-widget * {
	box-sizing: border-box;
}

.hpc-form,
.hpc-results,
.hpc-loading {
	background: #ffffff;
	border: 1px solid var(--hpc-border);
	border-radius: 16px;
	padding: 32px;
	box-shadow: 0 10px 30px rgba(17, 17, 17, 0.06);
}

.hpc-title {
	margin: 0 0 6px;
	font-size: 24px;
	color: var(--hpc-dark);
}

.hpc-subtitle {
	margin: 0 0 24px;
	color: var(--hpc-muted);
	font-size: 15px;
}

.hpc-label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--hpc-dark);
	margin-bottom: 6px;
}

.hpc-input {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--hpc-border);
	border-radius: 8px;
	font-size: 15px;
	margin-bottom: 18px;
	color: var(--hpc-dark);
}

.hpc-input:focus {
	outline: none;
	border-color: var(--hpc-accent);
}

.hpc-button {
	width: 100%;
	background: var(--hpc-dark);
	color: #ffffff;
	border: none;
	border-radius: 8px;
	padding: 14px 20px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease;
}

.hpc-button:hover {
	background: var(--hpc-accent);
}

.hpc-button:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.hpc-error {
	color: #c0392b;
	font-size: 14px;
	margin: -10px 0 16px;
}

.hpc-loading {
	text-align: center;
	color: var(--hpc-muted);
}

.hpc-spinner {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 4px solid var(--hpc-border);
	border-top-color: var(--hpc-accent);
	margin: 0 auto 16px;
	animation: hpc-spin 0.8s linear infinite;
}

@keyframes hpc-spin {
	to {
		transform: rotate(360deg);
	}
}

.hpc-score-wrap {
	text-align: center;
	margin-bottom: 8px;
}

.hpc-score-circle {
	width: 140px;
	height: 140px;
	border-radius: 50%;
	margin: 0 auto 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: conic-gradient(var(--hpc-accent) calc(var(--hpc-pct, 0) * 1%), var(--hpc-border) 0);
	position: relative;
}

.hpc-score-circle::after {
	content: "";
	position: absolute;
	inset: 10px;
	background: #ffffff;
	border-radius: 50%;
}

.hpc-score-number {
	position: relative;
	z-index: 1;
	font-size: 34px;
	font-weight: 700;
	color: var(--hpc-dark);
}

.hpc-score-label {
	color: var(--hpc-muted);
	font-size: 14px;
	margin-bottom: 24px;
}

.hpc-ai-box {
	background: #faf7f5;
	border-left: 4px solid var(--hpc-accent);
	border-radius: 8px;
	padding: 18px 20px;
	margin-bottom: 24px;
}

.hpc-ai-headline {
	font-weight: 700;
	color: var(--hpc-dark);
	margin: 0 0 6px;
}

.hpc-ai-body {
	margin: 0 0 10px;
	color: var(--hpc-text);
	font-size: 14px;
}

.hpc-ai-rec-label {
	margin: 0 0 4px;
	color: var(--hpc-dark);
	font-size: 14px;
	font-weight: 700;
}

.hpc-ai-rec-list {
	margin: 0;
	padding-left: 18px;
}

.hpc-ai-rec-list li {
	color: var(--hpc-dark);
	font-size: 14px;
	margin-bottom: 4px;
}

.hpc-categories {
	margin-bottom: 24px;
}

.hpc-category-row {
	margin-bottom: 14px;
}

.hpc-category-top {
	display: flex;
	justify-content: space-between;
	font-size: 14px;
	color: var(--hpc-dark);
	margin-bottom: 6px;
}

.hpc-category-bar {
	height: 8px;
	border-radius: 4px;
	background: var(--hpc-border);
	overflow: hidden;
}

.hpc-category-bar-fill {
	height: 100%;
	background: var(--hpc-accent);
	border-radius: 4px;
}

.hpc-category-na {
	font-size: 12px;
	color: var(--hpc-muted);
}

.hpc-findings {
	margin: 0 0 24px;
	padding-left: 18px;
}

.hpc-findings li {
	color: var(--hpc-text);
	font-size: 14px;
	margin-bottom: 8px;
}

.hpc-report-form {
	border-top: 1px solid var(--hpc-border);
	padding-top: 20px;
}

.hpc-report-form p {
	color: var(--hpc-muted);
	font-size: 14px;
	margin: 0 0 12px;
}

.hpc-report-row {
	display: flex;
	gap: 10px;
}

.hpc-report-row .hpc-input {
	margin-bottom: 0;
}

.hpc-report-row .hpc-button {
	width: auto;
	white-space: nowrap;
}

.hpc-status {
	font-size: 13px;
	margin-top: 10px;
	color: var(--hpc-muted);
}

.hpc-status.hpc-status-success {
	color: #1a7f37;
}

.hpc-status.hpc-status-error {
	color: #c0392b;
}

.hpc-promo {
	--hpc-accent: #f97316;
	max-width: 640px;
	text-align: left;
	box-sizing: border-box;
}

.hpc-promo * {
	box-sizing: border-box;
}

.hpc-promo-eyebrow {
	margin: 0 0 10px;
	color: var(--hpc-accent);
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.hpc-promo-headline {
	margin: 0 0 12px;
	color: #111111;
	font-size: 30px;
	line-height: 1.2;
	font-weight: 700;
}

.hpc-promo-description {
	margin: 0 0 24px;
	color: #565b62;
	font-size: 16px;
	line-height: 1.6;
	max-width: 46em;
}

.hpc-launcher {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: var(--hpc-accent);
	color: #ffffff;
	border: none;
	border-radius: 999px;
	padding: 14px 26px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	font-family: inherit;
	transition: background 0.15s ease, transform 0.15s ease;
}

.hpc-launcher:hover {
	background: #111111;
	transform: translateY(-1px);
}

.hpc-launcher-arrow {
	transition: transform 0.15s ease;
}

.hpc-launcher:hover .hpc-launcher-arrow {
	transform: translateX(3px);
}

.hpc-promo-note {
	margin: 12px 0 0;
	color: #8b919a;
	font-size: 13px;
}

.hpc-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(17, 17, 17, 0.55);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	z-index: 100000;
}

.hpc-modal-overlay[hidden] {
	display: none;
}

.hpc-modal {
	position: relative;
	width: 100%;
	max-width: 640px;
	max-height: 90vh;
	overflow-y: auto;
	background: transparent;
	border-radius: 16px;
}

.hpc-modal .hpc-widget {
	max-width: none;
	margin: 0;
}

.hpc-modal .hpc-form,
.hpc-modal .hpc-results,
.hpc-modal .hpc-loading {
	box-shadow: 0 20px 60px rgba(17, 17, 17, 0.25);
}

.hpc-modal-close {
	position: absolute;
	top: -14px;
	right: -14px;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #ffffff;
	border: 1px solid #ececec;
	color: #111111;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(17, 17, 17, 0.15);
	z-index: 1;
}

.hpc-modal-close:hover {
	background: #f97316;
	color: #ffffff;
	border-color: #f97316;
}

body.hpc-modal-open {
	overflow: hidden;
}

@media (max-width: 480px) {
	.hpc-modal-close {
		top: 8px;
		right: 8px;
	}

	.hpc-form,
	.hpc-results,
	.hpc-loading {
		padding: 22px;
	}

	.hpc-report-row {
		flex-direction: column;
	}

	.hpc-report-row .hpc-button {
		width: 100%;
	}
}
