.tool-page { min-height: calc(100vh - 190px); }

.tool-hero {
	max-width: 900px;
	padding: 38px 0 100px;
}

.back-link {
	display: inline-flex;
	gap: 8px;
	color: var(--muted);
	font-size: 0.9rem;
	text-decoration: none;
	transition: color 160ms ease;
}

.back-link:hover { color: var(--text); }

.back-link.hpdf-back-button {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	min-height: 42px;
	padding: 0 15px;
	border: 1px solid #303b49;
	border-radius: 11px;
	background: linear-gradient(145deg, rgba(255,255,255,.045), rgba(255,255,255,.015)), #111822;
	box-shadow: 0 10px 28px rgba(0,0,0,.22);
	color: #dfe4ea;
	font-size: .82rem;
	font-weight: 800;
	text-decoration: none;
	transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.back-link.hpdf-back-button:hover,
.back-link.hpdf-back-button:focus-visible {
	transform: translateX(-3px);
	border-color: #ff1f2d;
	background-color: #18212d;
	color: #fff;
	outline: none;
}

.tool-heading { margin-top: 52px; text-align: center; }

.tool-heading h1 {
	margin: 0;
	font-size: clamp(2.3rem, 6vw, 4.4rem);
	line-height: 1.05;
	letter-spacing: -0.055em;
}

.tool-heading > p:last-child {
	max-width: 680px;
	margin: 20px auto 0;
	color: var(--muted);
	font-size: 1.05rem;
	line-height: 1.7;
}

.tool-benefits {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 12px 24px;
	margin-top: 25px;
	color: #c0c7d0;
	font-size: 0.86rem;
}

.tool-benefits span::before {
	content: "✓";
	margin-right: 7px;
	color: #24c875;
	font-weight: 900;
}

.tool-steps {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	max-width: 620px;
	margin: 46px auto 30px;
	padding: 0;
	list-style: none;
}

.tool-steps li {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	color: #788391;
	font-size: 0.82rem;
	font-weight: 700;
}

.tool-steps li:not(:last-child)::after {
	content: "";
	position: absolute;
	top: 15px;
	left: calc(50% + 46px);
	width: calc(100% - 92px);
	height: 1px;
	background: var(--line);
}

.tool-steps span {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border: 1px solid var(--line);
	border-radius: 50%;
}

.tool-steps .is-active { color: var(--text); }
.tool-steps .is-active span { border-color: var(--accent); background: var(--accent); color: white; }

.pdf-uploader {
	max-width: 760px;
	margin: 0 auto;
	padding: 28px;
	border: 1px solid var(--line);
	border-radius: 26px;
	background: rgba(17, 24, 34, 0.84);
	box-shadow: var(--shadow);
	backdrop-filter: blur(18px);
}

.pdf-uploader__security {
	display: flex;
	align-items: center;
	gap: 9px;
	margin: 0 0 16px 4px;
	color: #9ca8b6;
	font-size: 0.78rem;
	font-weight: 700;
}

.pdf-uploader__security svg {
	width: 20px;
	fill: none;
	stroke: #24c875;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.pdf-uploader__input {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
}

.pdf-uploader__dropzone {
	display: flex;
	align-items: center;
	flex-direction: column;
	justify-content: center;
	min-height: 350px;
	padding: 42px 24px;
	border: 2px dashed #344052;
	border-radius: 20px;
	background: rgba(255,255,255,0.018);
	cursor: pointer;
	text-align: center;
	transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.pdf-uploader__dropzone:hover,
.pdf-uploader__dropzone.is-dragging,
.pdf-uploader__input:focus-visible + .pdf-uploader__dropzone {
	border-color: var(--accent);
	background: rgba(255, 31, 45, 0.045);
	outline: none;
}

.pdf-uploader__dropzone.is-dragging { transform: scale(1.01); }

.pdf-uploader__icon {
	display: grid;
	place-items: center;
	width: 82px;
	height: 82px;
	margin-bottom: 25px;
	border-radius: 22px;
	background: linear-gradient(145deg, var(--accent), var(--accent-dark));
	box-shadow: 0 18px 40px rgba(255, 31, 45, 0.25);
}

.pdf-uploader__icon svg {
	width: 45px;
	fill: none;
	stroke: white;
	stroke-width: 2.3;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.pdf-uploader__dropzone strong { font-size: 1.45rem; }
.pdf-uploader__dropzone > span:not(.pdf-uploader__icon):not(.pdf-uploader__button) { margin-top: 9px; color: var(--muted); }

.pdf-uploader__button {
	margin-top: 24px;
	padding: 12px 19px;
	border-radius: 10px;
	background: var(--text);
	color: var(--bg);
	font-size: 0.9rem;
	font-weight: 800;
}

.pdf-uploader__dropzone small { margin-top: 15px; color: #747f8c; }

.pdf-uploader__ready[hidden] { display: none; }

.pdf-uploader__ready {
	position: relative;
	display: grid;
	gap: 13px;
	padding-left: 18px;
	animation: pdf-ready-in 220ms ease-out both;
}

.pdf-uploader__ready::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 5px;
	border-radius: 999px;
	background: linear-gradient(180deg, #ff2a3a, #d80b1c);
	box-shadow: 0 0 22px rgba(255, 31, 45, 0.38);
}

@keyframes pdf-ready-in {
	from { transform: translateY(7px); opacity: 0; }
	to { transform: translateY(0); opacity: 1; }
}

.pdf-uploader__selection {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 17px;
	padding: 24px;
	border: 1px solid #344052;
	border-radius: 17px;
	background: linear-gradient(110deg, rgba(255,31,45,0.055), rgba(255,255,255,0.025) 45%);
}

.pdf-uploader__selection[hidden] { display: none; }

.pdf-uploader__file-icon {
	display: grid;
	place-items: center;
	width: 54px;
	height: 62px;
	border-radius: 8px 8px 12px 12px;
	background: var(--accent);
	color: white;
	font-size: 0.72rem;
	font-weight: 900;
}

.pdf-uploader__details { display: grid; min-width: 0; gap: 5px; }
.pdf-uploader__details strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pdf-uploader__details small { color: var(--muted); }

.pdf-uploader__remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 40px;
	padding: 0 13px;
	border: 1px solid rgba(255, 90, 101, 0.55);
	border-radius: 10px;
	background: rgba(255, 31, 45, 0.07);
	color: #ff8a93;
	cursor: pointer;
	font: inherit;
	font-size: 0.78rem;
	font-weight: 700;
	transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.pdf-uploader__remove svg {
	width: 17px;
	height: 17px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.pdf-uploader__remove:hover {
	border-color: #ff5965;
	background: rgba(255, 31, 45, 0.16);
	color: #fff;
	transform: translateY(-1px);
}

.pdf-uploader__remove:focus-visible {
	outline: 2px solid rgba(255, 89, 101, 0.55);
	outline-offset: 3px;
}

.pdf-uploader__message {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	min-height: 34px;
	margin: 0;
	padding: 7px 12px;
	border: 1px solid rgba(36, 200, 117, 0.18);
	border-radius: 10px;
	background: rgba(36, 200, 117, 0.055);
	color: #a8cab5;
	font-size: 0.86rem;
	font-weight: 650;
	text-align: center;
}
.pdf-uploader__message.is-success:not(.is-error)::before {
	content: "✓";
	display: grid;
	place-items: center;
	flex: 0 0 22px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #24c875;
	color: #07140d;
	font-size: 0.74rem;
	font-weight: 950;
}
.pdf-uploader__message.is-error {
	border-color: rgba(255, 90, 101, 0.25);
	background: rgba(255, 31, 45, 0.07);
	color: #ff8b94;
}

.pdf-uploader__error {
	min-height: 22px;
	margin: 13px 0 0;
	color: #ff8b94;
	font-size: 0.86rem;
	text-align: center;
}
.pdf-uploader__error:empty { display: none; }

.primary-action {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	width: 100%;
	margin-top: 0;
	padding: 17px 24px;
	border: 0;
	border-radius: 13px;
	background: linear-gradient(135deg, var(--accent), #d40b1b);
	color: white;
	cursor: pointer;
	font: inherit;
	font-weight: 850;
	box-shadow: 0 16px 35px rgba(255, 31, 45, 0.2);
}

.primary-action:disabled { background: #252e3a; color: #687381; cursor: not-allowed; box-shadow: none; }
.primary-action:not(:disabled):hover { filter: brightness(1.08); }

.privacy-note {
	display: flex;
	align-items: flex-start;
	gap: 13px;
	margin-top: 24px;
	padding: 16px 18px;
	border-radius: 12px;
	background: rgba(255,255,255,0.025);
	color: #818c99;
}

.privacy-note svg { flex: 0 0 22px; width: 22px; fill: none; stroke: #9aa6b5; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.privacy-note p { margin: 0; font-size: 0.8rem; line-height: 1.55; }
.privacy-note strong { color: #aeb7c3; }

/* Compacte desktopweergave: het volledige uploadproces past op een 1080p-scherm. */
@media (min-width: 901px) {
	.site-header { padding: 22px 0 4px; }

	.tool-hero { padding: 20px 0 54px; }

	.tool-heading { margin-top: 24px; }

	.tool-heading .hero__eyebrow { margin-bottom: 10px; }

	.tool-heading h1 {
		font-size: clamp(2.8rem, 5vw, 3.8rem);
	}

	.tool-heading > p:last-child {
		max-width: 780px;
		margin-top: 14px;
		font-size: .98rem;
		line-height: 1.5;
	}

	.tool-benefits {
		gap: 10px 22px;
		margin-top: 15px;
	}

	.tool-steps {
		margin-top: 26px;
		margin-bottom: 20px;
	}

	.pdf-uploader {
		padding: 20px;
		border-radius: 22px;
	}

	.pdf-uploader__security { margin-bottom: 12px; }

	.pdf-uploader__dropzone {
		min-height: 270px;
		padding: 28px 24px;
		border-radius: 18px;
	}

	.pdf-uploader__icon {
		width: 70px;
		height: 70px;
		margin-bottom: 16px;
		border-radius: 19px;
	}

	.pdf-uploader__icon svg { width: 39px; }

	.pdf-uploader__dropzone strong { font-size: 1.32rem; }

	.pdf-uploader__dropzone > span:not(.pdf-uploader__icon):not(.pdf-uploader__button) { margin-top: 7px; }

	.pdf-uploader__button {
		margin-top: 18px;
		padding: 10px 17px;
	}

	.pdf-uploader__dropzone small { margin-top: 10px; }

	.privacy-note {
		margin-top: 16px;
		padding: 13px 16px;
	}
}

@media (max-width: 600px) {
	.tool-hero { padding-top: 24px; }
	.tool-heading { margin-top: 40px; }
	.tool-steps li { flex-direction: column; font-size: 0.72rem; }
	.tool-steps li:not(:last-child)::after { top: 15px; left: calc(50% + 25px); width: calc(100% - 50px); }
	.pdf-uploader { padding: 14px; border-radius: 20px; }
	.pdf-uploader__dropzone { min-height: 310px; padding-inline: 16px; }
	.pdf-uploader__selection { grid-template-columns: auto minmax(0, 1fr); }
	.pdf-uploader__ready { padding-left: 13px; }
	.pdf-uploader__ready::before { width: 4px; }
	.pdf-uploader__remove { grid-column: 2; justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
	.pdf-uploader__ready { animation: none; }
}
