:root {
	--dap-bg: #f6f7fb;
	--dap-surface: #ffffff;
	--dap-text: #172033;
	--dap-muted: #5f6f89;
	--dap-line: #172033;
	--dap-soft-line: #d9e0ec;
	--dap-accent: #ff4f9a;
	--dap-accent-2: #d946ef;
	--dap-accent-3: #be185d;
	--dap-radius: 8px;
	--dap-radius-sm: 8px;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	background: var(--dap-bg);
	color: var(--dap-text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	line-height: 1.7;
	min-height: 100vh;
}

button,
textarea,
a {
	font: inherit;
}

button,
a {
	-webkit-tap-highlight-color: transparent;
}

.dap-menu-toggle {
	align-items: center;
	background: #ffffff;
	border: 1px solid var(--dap-line);
	border-radius: var(--dap-radius-sm);
	box-shadow: 0 5px 0 #172033;
	cursor: pointer;
	display: inline-flex;
	flex-direction: column;
	gap: 5px;
	height: 44px;
	justify-content: center;
	left: 18px;
	padding: 0;
	position: fixed;
	top: 18px;
	transition: background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
	width: 48px;
	z-index: 50;
}

.dap-menu-toggle:hover,
.dap-menu-toggle:focus-visible {
	background: #fff0f7;
	box-shadow: 0 3px 0 #172033;
	outline: none;
	transform: translateY(2px);
}

.dap-menu-toggle span {
	background: var(--dap-line);
	border-radius: 999px;
	display: block;
	height: 2px;
	width: 22px;
}

.dap-menu-backdrop {
	background: #17203333;
	inset: 0;
	position: fixed;
	z-index: 40;
}

.dap-menu-backdrop[hidden],
.dap-site-menu[hidden] {
	display: none;
}

.dap-site-menu {
	background: #ffffff;
	border: 2px solid var(--dap-line);
	border-radius: var(--dap-radius);
	left: 18px;
	padding: 18px;
	position: fixed;
	top: 74px;
	width: min(300px, calc(100vw - 36px));
	z-index: 45;
}

.dap-site-menu__header {
	align-items: center;
	display: flex;
	gap: 12px;
	justify-content: space-between;
	margin-bottom: 16px;
}

.dap-site-menu__header p {
	color: var(--dap-accent-3);
	font-size: 0.78rem;
	font-weight: 900;
	letter-spacing: 0.12em;
	margin: 0;
	text-transform: uppercase;
}

.dap-menu-close {
	background: #ffffff;
	border: 1px solid var(--dap-line);
	border-radius: var(--dap-radius-sm);
	color: var(--dap-text);
	cursor: pointer;
	font-size: 0.86rem;
	font-weight: 800;
	padding: 6px 10px;
}

.dap-menu-close:hover,
.dap-menu-close:focus-visible {
	background: #fff0f7;
	outline: none;
}

.dap-menu-list {
	display: grid;
	gap: 10px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.dap-menu-list a,
.dap-menu-list button {
	background: #ffffff;
	border: 1px solid var(--dap-line);
	border-radius: var(--dap-radius-sm);
	color: var(--dap-text);
	cursor: pointer;
	display: block;
	font-weight: 900;
	padding: 12px 14px;
	text-align: center;
	text-decoration: none;
	width: 100%;
}

.dap-menu-list a:hover,
.dap-menu-list a:focus-visible,
.dap-menu-list button:hover,
.dap-menu-list button:focus-visible {
	background: #fff0f7;
	border-color: var(--dap-accent);
	outline: none;
}

.dap-app {
	display: grid;
	gap: clamp(34px, 5vw, 64px);
	min-height: 100vh;
	overflow: hidden;
	padding: clamp(44px, 6vw, 76px) 20px clamp(40px, 6vw, 72px);
	place-items: start center;
	position: relative;
}

.dap-app::before {
	content: "";
	display: none;
	inset: 0;
	pointer-events: none;
	position: absolute;
}

.dap-shell {
	display: grid;
	gap: clamp(8px, 1.5vw, 16px);
	max-width: 980px;
	position: relative;
	width: min(100%, 980px);
	z-index: 1;
}

.dap-hero {
	text-align: center;
}

.dap-kicker,
.dap-step-label,
.dap-result-label {
	color: var(--dap-accent-3);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	margin: 0 0 10px;
	text-transform: uppercase;
}

.dap-hero h1,
.dap-panel h2 {
	letter-spacing: 0;
	line-height: 1.15;
	margin: 0;
}

.dap-hero h1 {
	font-size: clamp(2rem, 5vw, 4rem);
}

.dap-title-image-wrap {
	display: flex;
	justify-content: center;
}

.dap-title-image {
	display: block;
	height: auto;
	max-width: min(100%, 760px);
	width: 100%;
}

.dap-lead,
.dap-panel p {
	color: var(--dap-muted);
	margin: 4px auto 0;
	max-width: 680px;
}

.dap-panel {
	background: var(--dap-surface);
	border: 2px solid var(--dap-line);
	border-radius: var(--dap-radius);
	padding: clamp(24px, 5vw, 48px);
	position: relative;
	text-align: center;
}

.dap-panel[hidden] {
	display: none;
}

.dap-panel h2 {
	font-size: clamp(1.6rem, 4vw, 3rem);
}

.dap-progress {
	background: #e9eef7;
	border: 2px solid var(--dap-line);
	border-radius: 999px;
	height: 12px;
	margin-bottom: 24px;
	overflow: hidden;
}

.dap-progress__bar {
	background: linear-gradient(90deg, #ff4f9a 0%, #f472b6 45%, #d946ef 100%);
	border-radius: inherit;
	display: block;
	height: 100%;
	transform-origin: left center;
	transition: width 240ms ease;
	width: 0%;
}

.dap-options {
	display: grid;
	gap: 14px;
	margin: 30px auto 0;
	max-width: 640px;
}

.dap-option {
	align-items: center;
	background: #ffffff;
	border: 2px solid var(--dap-line);
	border-radius: var(--dap-radius-sm);
	color: var(--dap-text);
	cursor: pointer;
	display: grid;
	gap: 4px;
	grid-template-columns: 1fr;
	justify-items: center;
	min-height: 72px;
	padding: 18px 20px;
	text-align: center;
	transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
	width: 100%;
}

.dap-option:hover,
.dap-option:focus-visible {
	background: #fff0f7;
	border-color: var(--dap-accent);
	outline: none;
}

.dap-option__text {
	font-weight: 800;
}

.dap-option__mark {
	align-items: center;
	background: #fff0f7;
	border: 2px solid var(--dap-line);
	border-radius: 999px;
	color: var(--dap-text);
	display: inline-flex;
	font-weight: 900;
	height: 36px;
	justify-content: center;
	width: 36px;
	display: none;
}

.dap-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
	margin-top: 28px;
}

.dap-actions--result {
	margin-top: 18px;
}

.dap-button {
	align-items: center;
	border: 1px solid var(--dap-line);
	border-radius: var(--dap-radius-sm);
	box-shadow: 0 6px 0 #172033;
	cursor: pointer;
	display: inline-flex;
	font-weight: 900;
	justify-content: center;
	min-height: 48px;
	padding: 12px 20px;
	text-decoration: none;
	transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.dap-button[data-start-button] {
	margin-top: 28px;
}

.dap-button:hover,
.dap-button:focus-visible {
	box-shadow: 0 3px 0 #172033;
	outline: none;
	transform: translateY(3px);
}

.dap-button--primary {
	background: var(--dap-accent);
	color: #ffffff;
}

.dap-button--primary:hover,
.dap-button--primary:focus-visible {
	background: #e83f87;
}

.dap-button--chatgpt {
	background: linear-gradient(90deg, #ff4f9a 0%, #38bdf8 100%);
	color: #ffffff;
}

.dap-button--chatgpt:hover,
.dap-button--chatgpt:focus-visible {
	background: linear-gradient(90deg, #e83f87 0%, #0ea5e9 100%);
}

.dap-button--ghost {
	background: #ffffff;
	color: var(--dap-text);
}

.dap-button--ghost:hover,
.dap-button--ghost:focus-visible {
	background: #fff0f7;
}

.dap-panel--result {
	display: grid;
	gap: 16px;
}

.dap-result-heading {
	margin-bottom: 6px;
}

.dap-prompt-output {
	background: #ffffff;
	border: 2px solid var(--dap-line);
	border-radius: var(--dap-radius-sm);
	color: var(--dap-text);
	min-height: 260px;
	outline: none;
	padding: 18px;
	resize: vertical;
	text-align: left;
	width: 100%;
}

.dap-prompt-output:focus {
	border-color: var(--dap-accent);
	outline: 4px solid #ffe4f1;
}

.dap-copy-status {
	min-height: 1.7em;
}

.dap-share {
	display: flex;
	justify-content: center;
	padding: 0 20px 24px;
}

.dap-share-button {
	align-items: center;
	background: #000000;
	border: 1px solid #000000;
	border-radius: var(--dap-radius-sm);
	color: #ffffff;
	display: inline-flex;
	font-weight: 900;
	justify-content: center;
	min-height: 48px;
	padding: 12px 22px;
	text-decoration: none;
	transition: background 160ms ease, border-color 160ms ease;
}

.dap-share-button:hover,
.dap-share-button:focus-visible {
	background: #222222;
	border-color: #222222;
	color: #ffffff;
	outline: none;
}

.dap-footer {
	border-top: 1px solid var(--dap-soft-line);
	color: var(--dap-muted);
	display: grid;
	gap: 4px;
	padding: 24px 20px 28px;
	text-align: center;
}

.dap-footer p {
	margin: 0;
}

.dap-footer__brand {
	color: var(--dap-text);
	font-weight: 900;
}

.dap-footer__copy {
	font-size: 0.86rem;
}

@media (max-width: 640px) {
	.dap-app {
		padding: 48px 14px 28px;
	}

	.dap-panel {
		border-radius: var(--dap-radius);
		padding: 22px;
	}

	.dap-actions,
	.dap-button {
		width: 100%;
	}

	.dap-option {
		grid-template-columns: 1fr;
	}

	.dap-option__mark {
		display: none;
	}
}
