/* 404 page styles
   Uses the same tokens, fonts, nav, and footer defined by global.css.
*/

.nav-cta-wrap {
	opacity: 1 !important;
	pointer-events: auto !important;
}

h1,
h2,
h3,
h4 {
	font-family: var(--f-serif);
	font-weight: 400;
	color: var(--ink-900);
	line-height: 1.08;
	letter-spacing: -0.02em;
}

.btn-primary {
	font-size: 13.5px;
	font-weight: 500;
	letter-spacing: -0.01em;
	padding: 11px 28px;
	border-radius: var(--r-sm);
	background: var(--navy);
	color: #fff;
	border: none;
	box-shadow: 0 1px 2px rgba(12, 31, 61, 0.2), 0 4px 16px rgba(12, 31, 61, 0.16);
	transition: opacity 0.2s, background 0.2s, transform 0.1s, box-shadow 0.2s;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	cursor: pointer;
	text-decoration: none;
	font-family: var(--f-sans);
}
.btn-primary:hover {
	background: var(--navy-mid);
}
.btn-primary:active {
	transform: scale(0.98);
}

.btn-secondary {
	font-size: 13.5px;
	font-weight: 400;
	letter-spacing: -0.01em;
	padding: 11px 28px;
	border-radius: var(--r-sm);
	background: transparent;
	color: var(--ink-600);
	border: 1px solid var(--warm-300);
	transition: color 0.18s, border-color 0.18s, background 0.18s;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	cursor: pointer;
	text-decoration: none;
	font-family: var(--f-sans);
}
.btn-secondary:hover {
	color: var(--ink-900);
	border-color: var(--warm-400);
	background: var(--warm-50);
}

.section-tag {
	font-family: var(--f-mono);
	font-size: 9px;
	font-weight: 500;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	display: block;
	margin-bottom: 10px;
	color: var(--amber);
}

.page-hero {
	position: relative;
	overflow: hidden;
	padding: calc(136px + env(safe-area-inset-top, 0px)) 0 88px;
	background: radial-gradient(circle at top right, rgba(12, 31, 61, 0.08), transparent 34%), linear-gradient(180deg, #ffffff 0%, #fbfaf6 100%);
	border-bottom: 1px solid var(--warm-200);
}

.page-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: linear-gradient(var(--warm-100) 1px, transparent 1px), linear-gradient(90deg, var(--warm-100) 1px, transparent 1px);
	background-size: 48px 48px;
	opacity: 0.45;
	mask-image: radial-gradient(ellipse 88% 68% at 50% 0%, black 18%, transparent 70%);
	-webkit-mask-image: radial-gradient(ellipse 88% 68% at 50% 0%, black 18%, transparent 70%);
	pointer-events: none;
}

.page-hero .wrap,
.nf-recovery .wrap,
.nf-help-strip .wrap {
	position: relative;
	z-index: 1;
}

.nf-hero-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 28px;
	align-items: stretch;
}

.nf-hero-copy {
	padding-top: 10px;
}

.nf-status-row {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 18px;
}

.nf-status-pill,
.nf-status-meta,
.nf-card-kicker,
.nf-card-code,
.nf-card-label,
.nf-card-link {
	font-family: var(--f-mono);
	text-transform: uppercase;
}

.nf-status-pill {
	display: inline-flex;
	align-items: center;
	padding: 6px 10px;
	border-radius: 999px;
	background: rgba(180, 83, 9, 0.09);
	border: 1px solid rgba(180, 83, 9, 0.15);
	color: var(--amber);
	font-size: 9px;
	font-weight: 500;
	letter-spacing: 0.11em;
}

.nf-status-meta {
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 0.1em;
	color: var(--ink-400);
}

.page-hero h1 {
	margin: 0 0 22px;
	font-size: clamp(44px, 6vw, 74px);
	text-wrap-style: pretty;
}

.page-hero-sub {
	max-width: 620px;
	margin-bottom: 34px;
	/* font-size: 17px; */
	font-weight: 300;
	line-height: 1.72;
	color: var(--ink-500);
}

.page-hero-btns {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.nf-diagnostic-card {
	background: var(--navy);
	color: rgba(255, 255, 255, 0.86);
	border-radius: 24px;
	padding: 30px 30px 32px;
	position: relative;
	overflow: hidden;
	box-shadow: var(--shadow-lg);
}

.nf-diagnostic-card::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
	background-size: 24px 24px;
	opacity: 0.65;
	pointer-events: none;
}

.nf-diagnostic-card::after {
	content: "";
	position: absolute;
	right: -48px;
	top: -40px;
	width: 180px;
	height: 180px;
	border-radius: 50%;
	background: rgba(180, 83, 9, 0.22);
	filter: blur(6px);
}

.nf-diagnostic-top,
.nf-help-panel {
	position: relative;
	z-index: 1;
}

.nf-diagnostic-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 22px;
}

.nf-card-kicker,
.nf-card-code {
	font-size: 9px;
	font-weight: 500;
	letter-spacing: 0.12em;
}

.nf-card-kicker {
	color: rgba(255, 255, 255, 0.52);
}
.nf-card-code {
	color: var(--amber);
}

.nf-diagnostic-card h2 {
	position: relative;
	z-index: 1;
	margin-bottom: 14px;
	color: var(--white);
	font-size: clamp(28px, 3vw, 36px);
}

.nf-diagnostic-card > p {
	position: relative;
	z-index: 1;
	font-size: 14px;
	font-weight: 300;
	line-height: 1.75;
	color: rgba(255, 255, 255, 0.76);
}

.nf-diagnostic-list {
	position: relative;
	z-index: 1;
	display: grid;
	gap: 14px;
	margin-top: 24px;
}

.nf-diagnostic-item {
	display: grid;
	grid-template-columns: 10px 1fr;
	gap: 12px;
	align-items: start;
	padding-top: 14px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nf-diagnostic-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--amber);
	margin-top: 7px;
}

.nf-diagnostic-item strong {
	display: block;
	margin-bottom: 4px;
	font-size: 13px;
	font-weight: 500;
	color: var(--white);
}

.nf-diagnostic-item p {
	font-size: 13px;
	font-weight: 300;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.72);
}

.nf-recovery {
	padding: 84px 0 104px;
	background: var(--off-white);
}

.nf-recovery-head {
	max-width: 720px;
	margin-bottom: 40px;
}

.nf-recovery-head h2 {
	margin-bottom: 16px;
	font-size: clamp(34px, 4vw, 52px);
}

.nf-recovery-head p {
	font-size: 16px;
	font-weight: 300;
	line-height: 1.7;
	color: var(--ink-500);
}

.nf-recovery-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.nf-card {
	display: flex;
	flex-direction: column;
	min-height: 100%;
	padding: 26px;
	background: var(--white);
	border: 1px solid var(--warm-200);
	border-radius: 22px;
	box-shadow: var(--shadow-sm);
	transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.nf-card:hover {
	transform: translateY(-3px);
	border-color: var(--warm-300);
	box-shadow: var(--shadow-md);
}

.nf-card-icon {
	width: 46px;
	height: 46px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 14px;
	margin-bottom: 18px;
	background: linear-gradient(180deg, rgba(180, 83, 9, 0.1) 0%, rgba(180, 83, 9, 0.04) 100%);
	color: var(--amber);
}

.nf-card-icon svg {
	width: 18px;
	height: 18px;
}

.nf-card-label {
	margin-bottom: 10px;
	font-size: 9px;
	font-weight: 500;
	letter-spacing: 0.12em;
	color: var(--ink-400);
}

.nf-card h3 {
	margin-bottom: 10px;
	font-size: 25px;
}

.nf-card p {
	flex: 1;
	margin-bottom: 22px;
	font-size: 14px;
	font-weight: 300;
	line-height: 1.72;
	color: var(--ink-500);
}

.nf-card-link {
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 0.12em;
	color: var(--amber);
}

.nf-help-strip {
	padding: 0 0 100px;
	background: var(--off-white);
}

.nf-help-panel {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	padding: 34px 38px;
	border-radius: 24px;
	background: radial-gradient(circle at top right, rgba(180, 83, 9, 0.14), transparent 28%), linear-gradient(180deg, #0e2242 0%, #0b1931 100%);
	color: rgba(255, 255, 255, 0.8);
	overflow: hidden;
}

.nf-help-panel h2 {
	margin-bottom: 12px;
	color: var(--white);
	font-size: clamp(28px, 3vw, 38px);
}

.nf-help-panel p {
	max-width: 640px;
	font-size: 14px;
	font-weight: 300;
	line-height: 1.72;
}

.nf-help-panel .section-tag {
	color: rgba(255, 255, 255, 0.56);
}

.nf-help-actions {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	flex-shrink: 0;
}

.nf-help-actions .btn-primary {
	color: var(--navy);
	background: var(--white);
}

.nf-help-actions .btn-primary:hover {
	opacity: 0.9;
}

.nf-help-panel .btn-secondary {
	color: rgba(255, 255, 255, 0.9);
	border-color: rgba(255, 255, 255, 0.24);
}

.nf-help-panel .btn-secondary:hover {
	color: var(--white);
	border-color: rgba(255, 255, 255, 0.4);
	background: rgba(255, 255, 255, 0.06);
}

@media (max-width: 1080px) {
	.nf-hero-grid,
	.nf-recovery-grid {
		grid-template-columns: 1fr;
	}

	.nf-help-panel {
		flex-direction: column;
		align-items: flex-start;
	}

	.nf-help-actions {
		flex-shrink: 1;
	}
}

@media (max-width: 820px) {
	.page-hero {
		padding: calc(112px + env(safe-area-inset-top, 0px)) 0 68px;
	}

	.nf-recovery {
		padding: 68px 0 84px;
	}

	.nf-help-strip {
		padding-bottom: 84px;
	}

	.nf-diagnostic-card,
	.nf-card,
	.nf-help-panel {
		border-radius: 20px;
	}
}

@media (max-width: 640px) {
	.wrap {
		padding: 0 22px;
	}

	.page-hero h1 {
		font-size: clamp(38px, 14vw, 52px);
	}

	.page-hero-sub,
	.nf-recovery-head p {
		font-size: 15px;
	}

	.page-hero-btns,
	.nf-help-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.btn-primary,
	.btn-secondary {
		width: 100%;
	}

	.nf-diagnostic-card,
	.nf-card,
	.nf-help-panel {
		padding: 24px;
	}

	.nf-help-panel h2,
	.nf-recovery-head h2 {
		font-size: clamp(28px, 10vw, 38px);
	}
}
