/* 112 Nieuws Nederland — Advertentievrij portal (Stripe-achtig) */

:root {
	--n112-blue: #31579c;
	--n112-blue-deep: #1e3a6e;
	--n112-blue-soft: #4a6fb0;
	--n112-ink: #0f1a2b;
	--n112-muted: #5c6b82;
	--n112-line: rgba(49, 87, 156, 0.16);
	--n112-surface: rgba(255, 255, 255, 0.92);
	--n112-ok: #0d7a4f;
	--n112-ok-bg: rgba(13, 122, 79, 0.1);
	--n112-err: #b42318;
	--n112-err-bg: rgba(180, 35, 24, 0.08);
	--n112-radius: 18px;
	--n112-display: "Outfit", "Trebuchet MS", sans-serif;
	--n112-body: "Source Sans 3", "Segoe UI", sans-serif;
	--n112-shadow: 0 18px 50px rgba(15, 26, 43, 0.12);
}

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

html,
body.n112-adfree-portal-body {
	margin: 0;
	min-height: 100%;
	font-family: var(--n112-body);
	color: var(--n112-ink);
	background: #dbe5f4;
	-webkit-font-smoothing: antialiased;
}

.n112-portal-bg {
	position: fixed;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background:
		radial-gradient(900px 520px at 12% -8%, rgba(49, 87, 156, 0.35), transparent 58%),
		radial-gradient(700px 420px at 92% 8%, rgba(30, 58, 110, 0.22), transparent 55%),
		radial-gradient(600px 400px at 50% 110%, rgba(255, 255, 255, 0.55), transparent 50%),
		linear-gradient(165deg, #c9d7ec 0%, #e8eef7 42%, #f4f7fb 100%);
}

.n112-portal-bg::after {
	content: "";
	position: absolute;
	inset: 0;
	opacity: 0.35;
	background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
	background-size: 48px 48px;
	mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
}

.n112-portal {
	position: relative;
	z-index: 1;
	width: min(440px, calc(100% - 2rem));
	margin: 0 auto;
	padding: 1.75rem 0 3rem;
	animation: n112-rise 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes n112-rise {
	from {
		opacity: 0;
		transform: translateY(14px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.n112-portal__header {
	margin-bottom: 1.75rem;
}

.n112-portal__brand {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	text-decoration: none;
	color: inherit;
}

.n112-portal__brand-mark {
	display: grid;
	place-items: center;
	width: 3.1rem;
	height: 3.1rem;
	border-radius: 14px;
	background: linear-gradient(145deg, var(--n112-blue) 0%, var(--n112-blue-deep) 100%);
	color: #fff;
	font-family: var(--n112-display);
	font-weight: 800;
	font-size: 1.05rem;
	letter-spacing: -0.04em;
	box-shadow: 0 10px 24px rgba(49, 87, 156, 0.35);
}

.n112-portal__logo {
	display: block;
	width: 4.25rem;
	height: 4.25rem;
	border-radius: 16px;
	object-fit: cover;
	box-shadow: 0 10px 24px rgba(49, 87, 156, 0.28);
	flex-shrink: 0;
}

.n112-portal__brand-text {
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
	min-width: 0;
}

.n112-portal__brand-name {
	font-family: var(--n112-display);
	font-weight: 800;
	font-size: clamp(1.15rem, 4.2vw, 1.35rem);
	letter-spacing: -0.03em;
	line-height: 1.15;
	color: var(--n112-ink);
}

.n112-portal__brand-product {
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--n112-blue);
}

.n112-portal__main {
	background: var(--n112-surface);
	backdrop-filter: blur(12px);
	border: 1px solid rgba(255, 255, 255, 0.7);
	border-radius: calc(var(--n112-radius) + 4px);
	padding: 1.65rem 1.35rem 1.5rem;
	box-shadow: var(--n112-shadow);
	animation: n112-rise 0.65s 0.08s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.n112-kicker {
	margin: 0 0 0.55rem;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--n112-blue);
}

.n112-headline {
	margin: 0 0 0.65rem;
	font-family: var(--n112-display);
	font-size: clamp(1.65rem, 5.5vw, 2rem);
	font-weight: 750;
	letter-spacing: -0.035em;
	line-height: 1.15;
	color: var(--n112-ink);
	overflow-wrap: anywhere;
	word-break: break-word;
	max-width: 100%;
}

.n112-sub {
	margin: 0 0 1.25rem;
	font-size: 1.02rem;
	line-height: 1.55;
	color: var(--n112-muted);
}

.n112-perks {
	list-style: none;
	margin: 0 0 1.4rem;
	padding: 0;
	display: grid;
	gap: 0.55rem;
}

.n112-perks li {
	position: relative;
	padding-left: 1.55rem;
	font-size: 0.95rem;
	color: var(--n112-ink);
	line-height: 1.4;
}

.n112-perks li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.28rem;
	width: 1rem;
	height: 1rem;
	border-radius: 999px;
	background: var(--n112-ok-bg);
	box-shadow: inset 0 0 0 1.5px var(--n112-ok);
}

.n112-perks li::after {
	content: "";
	position: absolute;
	left: 0.28rem;
	top: 0.48rem;
	width: 0.35rem;
	height: 0.2rem;
	border-left: 2px solid var(--n112-ok);
	border-bottom: 2px solid var(--n112-ok);
	transform: rotate(-45deg);
}

.n112-badge {
	display: inline-flex;
	align-items: center;
	margin: 0 0 0.75rem;
	padding: 0.28rem 0.7rem;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.n112-badge--ok {
	background: var(--n112-ok-bg);
	color: var(--n112-ok);
}

.n112-status {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
	margin: 0 0 1.25rem;
}

.n112-status__chip {
	display: inline-flex;
	flex-direction: column;
	gap: 0.15rem;
	min-width: 7.5rem;
	padding: 0.55rem 0.8rem;
	border-radius: 12px;
	background: rgba(49, 87, 156, 0.08);
	border: 1px solid rgba(49, 87, 156, 0.14);
}

.n112-status__key {
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--n112-muted);
}

.n112-status__val {
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--n112-ink);
}

.n112-status__chip--ok {
	background: rgba(13, 122, 79, 0.1);
	border-color: rgba(13, 122, 79, 0.22);
}

.n112-status__chip--ok .n112-status__val {
	color: var(--n112-ok);
}

.n112-status__chip--warn {
	background: rgba(180, 120, 20, 0.1);
	border-color: rgba(180, 120, 20, 0.25);
}

.n112-status__chip--warn .n112-status__val {
	color: #9a6b00;
}

.n112-status__chip--bad {
	background: rgba(180, 35, 24, 0.08);
	border-color: rgba(180, 35, 24, 0.2);
}

.n112-status__chip--bad .n112-status__val {
	color: var(--n112-err);
}

.n112-portal__actions {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}

.n112-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 0.85rem 1.15rem;
	border-radius: 12px;
	border: 1.5px solid transparent;
	font-family: var(--n112-body);
	font-size: 1.02rem;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	text-align: center;
	transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.n112-btn:active {
	transform: translateY(1px);
}

.n112-btn--primary {
	background: linear-gradient(180deg, var(--n112-blue-soft) 0%, var(--n112-blue) 100%);
	color: #fff;
	box-shadow: 0 8px 20px rgba(49, 87, 156, 0.32);
}

.n112-btn--primary:hover,
.n112-btn--primary:focus-visible {
	background: linear-gradient(180deg, var(--n112-blue) 0%, var(--n112-blue-deep) 100%);
	box-shadow: 0 10px 26px rgba(30, 58, 110, 0.38);
}

.n112-btn--ghost {
	background: transparent;
	border-color: var(--n112-line);
	color: var(--n112-ink);
}

.n112-btn--ghost:hover,
.n112-btn--ghost:focus-visible {
	border-color: var(--n112-blue);
	color: var(--n112-blue);
	background: rgba(49, 87, 156, 0.04);
}

.n112-portal__plans {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin-top: 0.25rem;
}

.n112-plan {
	display: flex;
	gap: 0.85rem;
	align-items: flex-start;
	padding: 1rem 1rem 1.05rem;
	border: 1.5px solid var(--n112-line);
	border-radius: 14px;
	cursor: pointer;
	background: #fff;
	transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.n112-plan:hover {
	border-color: rgba(49, 87, 156, 0.35);
}

.n112-plan:has(input:checked) {
	border-color: var(--n112-blue);
	background: rgba(49, 87, 156, 0.05);
	box-shadow: 0 0 0 3px rgba(49, 87, 156, 0.12);
}

.n112-plan input {
	margin-top: 0.3rem;
	width: 1.15rem;
	height: 1.15rem;
	accent-color: var(--n112-blue);
	flex-shrink: 0;
}

.n112-plan__body {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	min-width: 0;
}

.n112-plan__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
}

.n112-plan__top strong {
	font-family: var(--n112-display);
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.n112-plan__hint {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--n112-muted);
}

.n112-plan__hint--accent {
	color: var(--n112-blue);
	background: rgba(49, 87, 156, 0.1);
	padding: 0.2rem 0.45rem;
	border-radius: 999px;
}

.n112-plan__price {
	font-family: var(--n112-display);
	font-size: 1.35rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--n112-blue);
	margin: 0.15rem 0 0.1rem;
}

.n112-plan__per {
	font-family: var(--n112-body, inherit);
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0;
	color: var(--n112-blue);
	margin-left: 0.15rem;
}

.n112-plan__tax {
	display: inline;
	margin: 0 0 0 0.35rem;
	font-family: var(--n112-body, inherit);
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0;
	line-height: 1.2;
	color: var(--n112-muted);
	vertical-align: middle;
}

.n112-plan__billing {
	display: block;
	margin: 0 0 0.35rem;
	font-size: 0.8rem;
	font-weight: 500;
	line-height: 1.35;
	color: var(--n112-muted);
}

.n112-plan__save {
	display: inline-block;
	margin: 0.15rem 0 0.2rem;
	padding: 0.2rem 0.55rem;
	font-size: 0.78rem;
	font-weight: 700;
	line-height: 1.3;
	color: #0f6b3c;
	background: rgba(15, 107, 60, 0.1);
	border: 1px solid rgba(15, 107, 60, 0.22);
	border-radius: 999px;
}

.n112-plan__desc {
	font-size: 0.9rem;
	line-height: 1.4;
	color: var(--n112-muted);
}

.n112-tip {
	margin: 1rem 0 0;
	padding: 0.7rem 0.9rem;
	font-size: 0.84rem;
	line-height: 1.5;
	color: var(--n112-muted);
	background: rgba(49, 87, 156, 0.06);
	border: 1px solid rgba(49, 87, 156, 0.14);
	border-radius: 10px;
}

.n112-portal__meta {
	margin: 1rem 0 0;
	font-size: 0.9rem;
	color: var(--n112-muted);
	text-align: center;
}

.n112-portal__meta a {
	color: var(--n112-blue);
	font-weight: 600;
	text-decoration: none;
}

.n112-portal__meta a:hover {
	text-decoration: underline;
}

.n112-portal__banner {
	margin-bottom: 1rem;
	padding: 0.9rem 1rem;
	border-radius: 12px;
	font-size: 0.94rem;
	line-height: 1.45;
	animation: n112-rise 0.4s ease both;
}

.n112-portal__banner--info {
	background: rgba(49, 87, 156, 0.12);
	color: var(--n112-blue-deep);
	border: 1px solid rgba(49, 87, 156, 0.18);
}

.n112-portal__banner--error {
	background: var(--n112-err-bg);
	color: var(--n112-err);
	border: 1px solid rgba(180, 35, 24, 0.15);
}

.n112-portal__footer {
	margin-top: 1.5rem;
	text-align: center;
	display: grid;
	gap: 0.65rem;
}

.n112-portal__secure {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	margin: 0;
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--n112-muted);
}

.n112-portal__privacy {
	margin: 0;
	font-size: 0.8rem;
	line-height: 1.45;
	color: var(--n112-muted);
}

.n112-portal__privacy a {
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.n112-portal__lock {
	width: 0.85rem;
	height: 0.85rem;
	border: 1.5px solid currentColor;
	border-radius: 3px;
	position: relative;
	opacity: 0.75;
}

.n112-portal__lock::before {
	content: "";
	position: absolute;
	left: 50%;
	top: -0.35rem;
	width: 0.45rem;
	height: 0.4rem;
	border: 1.5px solid currentColor;
	border-bottom: 0;
	border-radius: 4px 4px 0 0;
	transform: translateX(-50%);
}

.n112-portal__footer a {
	color: var(--n112-muted);
	font-size: 0.88rem;
	text-decoration: none;
}

.n112-portal__footer a:hover {
	color: var(--n112-blue);
}

@media (prefers-reduced-motion: reduce) {
	.n112-portal,
	.n112-portal__main,
	.n112-portal__banner {
		animation: none;
	}

	.n112-btn {
		transition: none;
	}
}

/* Auth forms */
.n112-auth-form {
	display: grid;
	gap: 1rem;
	margin-top: 0.25rem;
}

.n112-field {
	display: grid;
	gap: 0.4rem;
}

.n112-field span {
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--n112-muted);
}

.n112-input {
	width: 100%;
	min-height: 52px;
	padding: 0.75rem 0.95rem;
	border: 1.5px solid var(--n112-line);
	border-radius: 12px;
	font-family: var(--n112-body);
	font-size: 1.05rem;
	color: var(--n112-ink);
	background: #fff;
}

.n112-input:focus {
	outline: none;
	border-color: var(--n112-blue);
	box-shadow: 0 0 0 3px rgba(49, 87, 156, 0.15);
}

.n112-input--code {
	font-family: Consolas, "Courier New", monospace;
	font-size: 1.55rem;
	letter-spacing: 0.35em;
	text-align: center;
	font-weight: 700;
}

/* —— Responsive: telefoon → tablet → desktop —— */

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body.n112-adfree-portal-body {
	min-height: 100dvh;
	overflow-x: hidden;
}

.n112-portal {
	padding-left: max(1rem, env(safe-area-inset-left));
	padding-right: max(1rem, env(safe-area-inset-right));
	padding-bottom: max(2.5rem, env(safe-area-inset-bottom));
	padding-top: max(1.25rem, env(safe-area-inset-top));
	width: min(440px, calc(100% - 2rem));
	max-width: 100%;
}

.n112-portal__brand-name {
	overflow-wrap: anywhere;
	word-break: break-word;
}

.n112-portal__main {
	overflow-wrap: anywhere;
}

.n112-btn,
.n112-plan,
.n112-input {
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
}

/* iOS zoom voorkomen: inputs ≥ 16px */
.n112-input,
.n112-input--code {
	font-size: max(16px, 1.05rem);
}

.n112-input--code {
	font-size: max(22px, 1.4rem);
	letter-spacing: 0.28em;
}

@media (max-width: 380px) {
	.n112-portal {
		width: calc(100% - 1.25rem);
		padding-top: 1rem;
	}

	.n112-portal__logo {
		width: 3.4rem;
		height: 3.4rem;
		border-radius: 12px;
	}

	.n112-portal__brand-name {
		font-size: 1.05rem;
	}

	.n112-portal__main {
		padding: 1.25rem 1rem 1.2rem;
		border-radius: 16px;
	}

	.n112-headline {
		font-size: 1.45rem;
	}

	.n112-sub {
		font-size: 0.98rem;
	}

	.n112-status__chip {
		flex: 1 1 calc(50% - 0.3rem);
		min-width: 0;
	}

	.n112-btn {
		min-height: 50px;
		width: 100%;
	}

	.n112-portal__actions {
		flex-direction: column;
	}

	.n112-input--code {
		letter-spacing: 0.18em;
	}
}

@media (min-width: 520px) {
	.n112-portal {
		width: min(480px, calc(100% - 2.5rem));
		padding-top: max(2.5rem, env(safe-area-inset-top));
	}

	.n112-portal__main {
		padding: 1.85rem 1.6rem 1.65rem;
	}

	.n112-portal__actions {
		flex-direction: row;
		flex-wrap: wrap;
	}

	.n112-btn {
		flex: 1 1 auto;
		min-width: 150px;
	}
}

@media (min-width: 900px) {
	.n112-portal {
		width: min(520px, 100%);
	}
}

/* Landscape telefoons: compactere vertical space */
@media (max-height: 500px) and (orientation: landscape) {
	.n112-portal {
		padding-top: 0.75rem;
		padding-bottom: 1rem;
	}

	.n112-portal__header {
		margin-bottom: 0.85rem;
	}

	.n112-portal__logo {
		width: 2.75rem;
		height: 2.75rem;
	}

	.n112-headline {
		font-size: 1.35rem;
	}

	.n112-perks {
		margin-bottom: 0.85rem;
	}
}

@supports not (height: 100dvh) {
	body.n112-adfree-portal-body {
		min-height: 100vh;
	}
}
