/**
 * Hero ("Lovable-flow") — publieke promptbox + live opbouw van mini-profiel en post.
 * Bewust neutraal en zelfstandig zodat het in elk thema netjes staat.
 */

.ocwiz-hero {
	--ocwiz-hero-bg: #ffffff;
	--ocwiz-hero-fg: #12141a;
	--ocwiz-hero-muted: #5b6472;
	--ocwiz-hero-line: #e4e7ec;
	--ocwiz-hero-accent: #1a56db;
	--ocwiz-hero-accent-fg: #ffffff;
	--ocwiz-hero-radius: 16px;

	max-width: 720px;
	margin: 0 auto;
	padding: 8px 16px 40px;
	color: var(--ocwiz-hero-fg);
	font-family: inherit;
	box-sizing: border-box;
}

.ocwiz-hero *,
.ocwiz-hero *::before,
.ocwiz-hero *::after {
	box-sizing: border-box;
}

.ocwiz-hero__intro {
	text-align: center;
	margin-bottom: 24px;
}

/* bare-modus: alleen de box, past in een bestaande pagina-kolom die al een kop heeft. */
.ocwiz-hero--bare {
	max-width: none;
	padding: 0;
}

.ocwiz-hero__title {
	font-size: clamp(1.6rem, 4vw, 2.4rem);
	line-height: 1.15;
	margin: 0 0 10px;
	font-weight: 700;
}

.ocwiz-hero__subtitle {
	font-size: clamp(1rem, 2.2vw, 1.15rem);
	color: var(--ocwiz-hero-muted);
	margin: 0 auto;
	max-width: 34em;
}

/* ---------------------------------------------------------------- de box */

.ocwiz-hero__form {
	background: var(--ocwiz-hero-bg);
	border: 1px solid var(--ocwiz-hero-line);
	border-radius: var(--ocwiz-hero-radius);
	box-shadow: 0 8px 30px rgba(18, 20, 26, 0.06);
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ocwiz-hero__label {
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--ocwiz-hero-muted);
	margin-top: 6px;
}

.ocwiz-hero__idea,
.ocwiz-hero__url {
	width: 100%;
	font: inherit;
	font-size: 1.05rem;
	color: var(--ocwiz-hero-fg);
	background: #fbfbfd;
	border: 1px solid var(--ocwiz-hero-line);
	border-radius: 10px;
	padding: 12px 14px;
	resize: vertical;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ocwiz-hero__idea {
	min-height: 56px;
}

.ocwiz-hero__idea:focus,
.ocwiz-hero__url:focus {
	outline: none;
	border-color: var(--ocwiz-hero-accent);
	box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.15);
}

.ocwiz-hero__idea--err {
	border-color: #d92d20;
	box-shadow: 0 0 0 3px rgba(217, 45, 32, 0.12);
}

.ocwiz-hero__submit {
	margin-top: 10px;
	font: inherit;
	font-size: 1.05rem;
	font-weight: 600;
	color: var(--ocwiz-hero-accent-fg);
	background: var(--ocwiz-hero-accent);
	border: none;
	border-radius: 10px;
	padding: 14px 18px;
	cursor: pointer;
	transition: filter 0.15s ease, transform 0.05s ease;
}

.ocwiz-hero__submit:hover {
	filter: brightness(1.06);
}

.ocwiz-hero__submit:active {
	transform: translateY(1px);
}

.ocwiz-hero__submit:disabled {
	cursor: default;
	opacity: 0.7;
}

.ocwiz-hero__submit.is-loading::after {
	content: '';
	display: inline-block;
	width: 14px;
	height: 14px;
	margin-left: 10px;
	vertical-align: -2px;
	border: 2px solid rgba(255, 255, 255, 0.5);
	border-top-color: #fff;
	border-radius: 50%;
	animation: ocwiz-hero-spin 0.7s linear infinite;
}

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

.ocwiz-hero__hint {
	text-align: center;
	font-size: 0.82rem;
	color: var(--ocwiz-hero-muted);
	margin: 4px 0 0;
}

/* ---------------------------------------------------- live stage + result */

.ocwiz-hero__stage {
	margin-top: 24px;
}

.ocwiz-hero__steps {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: 16px;
}

.ocwiz-hero__step {
	font-size: 0.95rem;
	padding-left: 24px;
	position: relative;
	color: var(--ocwiz-hero-fg);
}

.ocwiz-hero__step::before {
	position: absolute;
	left: 0;
	top: 0;
}

.ocwiz-hero__step--active {
	color: var(--ocwiz-hero-fg);
}

.ocwiz-hero__step--active::before {
	content: '';
	width: 12px;
	height: 12px;
	top: 4px;
	border: 2px solid var(--ocwiz-hero-accent);
	border-top-color: transparent;
	border-radius: 50%;
	animation: ocwiz-hero-spin 0.7s linear infinite;
}

.ocwiz-hero__step--done {
	color: var(--ocwiz-hero-muted);
}

.ocwiz-hero__step--done::before {
	content: '✓';
	color: #12b76a;
	font-weight: 700;
}

.ocwiz-hero__reveal {
	animation: ocwiz-hero-fade 0.4s ease both;
}

@keyframes ocwiz-hero-fade {
	from {
		opacity: 0;
		transform: translateY(6px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* mini-merkprofiel */

.ocwiz-hero__profile {
	border: 1px solid var(--ocwiz-hero-line);
	border-radius: 12px;
	padding: 16px;
	margin-bottom: 16px;
	background: #fbfbfd;
}

.ocwiz-hero__profile-head {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
}

.ocwiz-hero__swatch {
	width: 20px;
	height: 20px;
	border-radius: 6px;
	border: 1px solid rgba(0, 0, 0, 0.1);
	flex: 0 0 auto;
}

.ocwiz-hero__company {
	font-size: 1.1rem;
}

.ocwiz-hero__voice {
	margin: 0 0 10px;
	color: var(--ocwiz-hero-fg);
}

.ocwiz-hero__topics {
	list-style: none;
	padding: 0;
	margin: 0 0 10px;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.ocwiz-hero__topic {
	font-size: 0.82rem;
	background: rgba(26, 86, 219, 0.08);
	color: var(--ocwiz-hero-accent);
	border-radius: 999px;
	padding: 4px 10px;
}

.ocwiz-hero__profile-note {
	font-size: 0.8rem;
	color: var(--ocwiz-hero-muted);
	margin: 0;
}

/* de post */

.ocwiz-hero__post {
	border: 1px solid var(--ocwiz-hero-line);
	border-radius: 12px;
	padding: 18px;
	background: var(--ocwiz-hero-bg);
	box-shadow: 0 8px 30px rgba(18, 20, 26, 0.06);
}

.ocwiz-hero__post-badge {
	display: inline-block;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #0a66c2;
	background: rgba(10, 102, 194, 0.1);
	border-radius: 6px;
	padding: 3px 8px;
	margin-bottom: 10px;
}

.ocwiz-hero__post-body {
	white-space: pre-wrap;
	line-height: 1.55;
	font-size: 1.02rem;
	color: var(--ocwiz-hero-fg);
}

.ocwiz-hero__cta {
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px solid var(--ocwiz-hero-line);
	text-align: center;
}

.ocwiz-hero__cta-title {
	margin: 0 0 10px;
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--ocwiz-hero-fg);
}

.ocwiz-hero__cta-list {
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
	text-align: left;
	display: flex;
	flex-direction: column;
	gap: 7px;
}

.ocwiz-hero__cta-list li {
	position: relative;
	padding-left: 26px;
	font-size: 0.92rem;
	line-height: 1.4;
	color: var(--ocwiz-hero-fg);
}

.ocwiz-hero__cta-list li::before {
	content: '✓';
	position: absolute;
	left: 0;
	top: 0;
	color: #12b76a;
	font-weight: 800;
}

.ocwiz-hero__email-btn {
	display: block;
	width: 100%;
	max-width: 280px;
	margin: 4px auto 0;
	font: inherit;
	font-size: 0.98rem;
	font-weight: 600;
	color: var(--ocwiz-hero-fg);
	background: var(--ocwiz-hero-bg);
	border: 1px solid var(--ocwiz-hero-line);
	border-radius: 999px;
	padding: 11px 18px;
	cursor: pointer;
	transition: border-color 0.15s ease, color 0.15s ease;
}

.ocwiz-hero__email-btn:hover {
	border-color: var(--ocwiz-hero-accent);
	color: var(--ocwiz-hero-accent);
}

.ocwiz-hero__email-form {
	display: flex;
	gap: 8px;
	max-width: 340px;
	margin: 4px auto 0;
}

.ocwiz-hero__email-input {
	flex: 1;
	min-width: 0;
	font: inherit;
	font-size: 0.98rem;
	color: var(--ocwiz-hero-fg);
	background: var(--ocwiz-hero-bg);
	border: 1px solid var(--ocwiz-hero-line);
	border-radius: 10px;
	padding: 11px 14px;
}

.ocwiz-hero__email-input:focus {
	outline: none;
	border-color: var(--ocwiz-hero-accent);
	box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.15);
}

.ocwiz-hero__email-submit {
	font: inherit;
	font-size: 0.98rem;
	font-weight: 600;
	color: var(--ocwiz-hero-accent-fg);
	background: var(--ocwiz-hero-accent);
	border: none;
	border-radius: 10px;
	padding: 11px 18px;
	cursor: pointer;
	white-space: nowrap;
}

.ocwiz-hero__cta-micro {
	margin: 12px 0 0;
	font-size: 0.8rem;
	color: var(--ocwiz-hero-muted);
}

.ocwiz-hero__cta-text {
	margin: 0 0 10px;
	font-weight: 600;
}

.ocwiz-hero__cta-btn {
	display: inline-block;
	text-decoration: none;
	font-weight: 600;
	color: var(--ocwiz-hero-accent-fg);
	background: var(--ocwiz-hero-accent);
	border-radius: 10px;
	padding: 12px 22px;
}

.ocwiz-hero__cta-btn:hover {
	filter: brightness(1.06);
}

.ocwiz-hero__google {
	display: flex;
	justify-content: center;
	margin-bottom: 12px;
	min-height: 44px;
}

.ocwiz-hero__google.is-loading {
	opacity: 0.5;
	pointer-events: none;
}

/* Als de Google-knop er staat, wordt de gewone CTA-link een subtiele terugval. */
.ocwiz-hero__cta-btn--secondary {
	background: transparent;
	color: var(--ocwiz-hero-muted);
	border: 1px solid var(--ocwiz-hero-line);
	font-size: 0.9rem;
	font-weight: 500;
	padding: 8px 16px;
}

.ocwiz-hero__cta-btn--secondary:hover {
	filter: none;
	border-color: var(--ocwiz-hero-accent);
	color: var(--ocwiz-hero-accent);
}

.ocwiz-hero__error {
	border: 1px solid #fecdca;
	background: #fffbfa;
	color: #b42318;
	border-radius: 10px;
	padding: 12px 14px;
	font-size: 0.95rem;
}

/* ------------------------------------------- fase C: research-indicator */

.ocwiz-handoff-indicator {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 99999;
	display: flex;
	align-items: center;
	gap: 10px;
	max-width: 320px;
	background: #16181d;
	color: #e8eaed;
	border: 1px solid #2a2e37;
	border-radius: 12px;
	padding: 12px 16px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
	font-size: 0.9rem;
	line-height: 1.35;
	animation: ocwiz-hero-fade 0.4s ease both;
}

.ocwiz-handoff-indicator.ocwiz-handoff-out {
	opacity: 0;
	transform: translateY(8px);
	transition: opacity 0.5s ease, transform 0.5s ease;
}

.ocwiz-handoff-spin {
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, 0.35);
	border-top-color: #fff;
	border-radius: 50%;
	animation: ocwiz-hero-spin 0.7s linear infinite;
}

.ocwiz-handoff-check {
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	color: #12b76a;
	font-weight: 700;
	text-align: center;
}

/* Donker thema: neem de systeemvoorkeur mee. */
@media (prefers-color-scheme: dark) {
	.ocwiz-hero {
		--ocwiz-hero-bg: #16181d;
		--ocwiz-hero-fg: #e8eaed;
		--ocwiz-hero-muted: #98a2b3;
		--ocwiz-hero-line: #2a2e37;
	}

	.ocwiz-hero__idea,
	.ocwiz-hero__url,
	.ocwiz-hero__profile {
		background: #1c1f26;
	}
}
