.hdy-aicg {
	--hdy-ink: #151515;
	--hdy-muted: #66615d;
	--hdy-line: #ded8d1;
	--hdy-paper: #fffaf4;
	--hdy-panel: #ffffff;
	--hdy-accent: #b85b33;
	--hdy-accent-dark: #803a21;
	--hdy-gold: #c6953c;
	--hdy-cream: #fef9f6;
	color: var(--hdy-ink);
	font-family: inherit;
	margin: 32px auto;
	max-width: 1040px;
}

.hdy-aicg * {
	box-sizing: border-box;
}

.hdy-aicg__intro {
	background: #7d3f23;
	color: #ffffff;
	padding: clamp(28px, 5vw, 56px);
	position: relative;
}

.hdy-aicg__intro::after {
	background: var(--hdy-cream);
	bottom: 0;
	content: "";
	height: 6px;
	left: 0;
	position: absolute;
	width: 120px;
}

.hdy-aicg__intro h2,
.hdy-aicg__preview h3,
.hdy-aicg__upgrade h3 {
	color: inherit;
	letter-spacing: 0;
	line-height: 1.05;
	margin: 0;
}

.hdy-aicg__intro h2 {
	color: #ffffff;
	font-size: clamp(34px, 5vw, 62px);
	max-width: 780px;
}

.hdy-aicg__intro p:not(.hdy-aicg__eyebrow) {
	color: rgba(255, 255, 255, 0.88);
	font-size: 18px;
	margin: 18px 0 0;
	max-width: 660px;
}

.hdy-aicg__eyebrow {
	color: var(--hdy-gold);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0;
	margin: 0 0 12px;
	text-transform: uppercase;
}

.hdy-aicg__panel,
.hdy-aicg__preview {
	background: var(--hdy-cream);
	border: 1px solid var(--hdy-line);
	padding: clamp(20px, 4vw, 36px);
}

.hdy-aicg__form {
	display: grid;
	gap: 18px;
}

.hdy-aicg__grid,
.hdy-aicg__columns {
	display: grid;
	gap: 18px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hdy-aicg label {
	display: grid;
	gap: 8px;
}

.hdy-aicg__label-row > span,
.hdy-aicg__section h4 {
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0;
	margin: 0;
	text-transform: uppercase;
}

.hdy-aicg__label-row {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: space-between;
}

.hdy-aicg__label-row strong {
	background: rgba(184, 91, 51, 0.1);
	border: 1px solid rgba(184, 91, 51, 0.22);
	border-radius: 999px;
	color: var(--hdy-accent-dark);
	font-size: 11px;
	font-weight: 800;
	line-height: 1;
	padding: 6px 8px;
	text-transform: uppercase;
}

.hdy-aicg__label-row strong.is-optional {
	background: #ffffff;
	border-color: var(--hdy-line);
	color: var(--hdy-muted);
}

.hdy-aicg__hint {
	color: var(--hdy-muted);
	display: block;
	font-size: 13px;
	line-height: 1.45;
	margin: -2px 0 0;
}

.hdy-aicg input,
.hdy-aicg select,
.hdy-aicg textarea {
	background: #ffffff;
	border: 1px solid var(--hdy-line);
	border-radius: 6px;
	color: var(--hdy-ink);
	font: inherit;
	min-height: 48px;
	padding: 12px 14px;
	width: 100%;
}

.hdy-aicg textarea {
	resize: vertical;
}

.hdy-aicg input:focus,
.hdy-aicg select:focus,
.hdy-aicg textarea:focus {
	border-color: var(--hdy-accent);
	box-shadow: 0 0 0 3px rgba(200, 77, 47, 0.16);
	outline: 0;
}

.hdy-aicg__actions,
.hdy-aicg__mini-actions {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.hdy-aicg__actions {
	justify-content: space-between;
}

.hdy-aicg__button {
	align-items: center;
	border: 1px solid transparent;
	border-radius: 6px;
	cursor: pointer;
	display: inline-flex;
	font-weight: 800;
	justify-content: center;
	min-height: 46px;
	padding: 12px 18px;
	text-decoration: none;
	transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.hdy-aicg__button:hover {
	transform: translateY(-1px);
}

.hdy-aicg__button:disabled {
	cursor: wait;
	opacity: 0.68;
	transform: none;
}

.hdy-aicg__button--primary {
	background: var(--hdy-accent);
	color: #ffffff;
}

.hdy-aicg__button--primary:hover {
	background: var(--hdy-accent-dark);
	color: #ffffff;
}

.hdy-aicg__button--secondary,
.hdy-aicg__button--ghost {
	background: #ffffff;
	border-color: var(--hdy-line);
	color: var(--hdy-ink);
}

.hdy-aicg__button--secondary:hover,
.hdy-aicg__button--ghost:hover {
	border-color: var(--hdy-accent);
	color: var(--hdy-accent-dark);
}

.hdy-aicg__status {
	color: var(--hdy-muted);
	font-size: 14px;
	margin: 0;
	min-height: 22px;
}

.hdy-aicg__status.is-error {
	color: #a12418;
	font-weight: 700;
}

.hdy-aicg__result {
	margin-top: 18px;
	scroll-margin-top: 120px;
}

.hdy-aicg__preview {
	background: #ffffff;
	box-shadow: 0 18px 50px rgba(21, 21, 21, 0.08);
	display: grid;
	gap: 22px;
}

.hdy-aicg__preview-header,
.hdy-aicg__upgrade {
	align-items: flex-start;
	display: flex;
	gap: 18px;
	justify-content: space-between;
}

.hdy-aicg__preview h3,
.hdy-aicg__upgrade h3 {
	font-size: clamp(26px, 4vw, 42px);
}

.hdy-aicg__section {
	border-top: 1px solid var(--hdy-line);
	display: grid;
	gap: 10px;
	padding-top: 18px;
}

.hdy-aicg__section p,
.hdy-aicg__section ul,
.hdy-aicg__upgrade p,
.hdy-aicg__full-fields p {
	color: var(--hdy-muted);
	margin: 0;
}

.hdy-aicg__microcopy {
	font-size: 13px;
	line-height: 1.45;
	text-align: center;
}

.hdy-aicg__section ul {
	display: grid;
	gap: 10px;
	padding-left: 20px;
}

.hdy-aicg__upgrade {
	background: var(--hdy-paper);
	border-left: 6px solid var(--hdy-gold);
	padding: 22px;
}

.hdy-aicg__upgrade-actions {
	display: grid;
	gap: 10px;
	min-width: min(100%, 320px);
}

.hdy-aicg__full-fields {
	background: var(--hdy-paper);
	border: 1px solid var(--hdy-line);
	display: grid;
	gap: 18px;
	padding: 22px;
}

.hdy-aicg__full-fields h3 {
	font-size: clamp(22px, 3vw, 34px);
	letter-spacing: 0;
	line-height: 1.1;
	margin: 0;
}

.hdy-aicg__full-result {
	margin-top: 18px;
	scroll-margin-top: 120px;
}

.hdy-aicg__paid-panel {
	scroll-margin-top: 120px;
}

.hdy-aicg__generating {
	background: #7d3f23;
	border: 2px solid var(--hdy-gold);
	color: #ffffff;
	display: grid;
	gap: 8px;
	padding: 20px;
	scroll-margin-top: 120px;
}

.hdy-aicg__generating strong {
	color: #ffffff;
	font-size: clamp(22px, 3vw, 34px);
	line-height: 1.1;
}

.hdy-aicg__generating span {
	color: rgba(255, 255, 255, 0.88);
	font-size: 15px;
}

.hdy-aicg__muted {
	color: var(--hdy-muted);
}

@media (max-width: 720px) {
	.hdy-aicg__grid,
	.hdy-aicg__columns,
	.hdy-aicg__preview-header,
	.hdy-aicg__upgrade {
		grid-template-columns: 1fr;
	}

	.hdy-aicg__preview-header,
	.hdy-aicg__upgrade {
		display: grid;
	}

	.hdy-aicg__button {
		width: 100%;
	}

	.hdy-aicg__upgrade-actions {
		min-width: 0;
	}
}
