/**
 * Guest gate — layout, modal, forms.
 */

:root {
	--sfp-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

body.sfp-modal-open {
	overflow: hidden;
}

.sfp-gate {
	min-height: 100vh;
	font-family: var(--sfp-font, "Inter", system-ui, sans-serif);
	background: radial-gradient(1200px 600px at 10% -10%, rgba(37, 99, 235, 0.12), transparent),
		radial-gradient(900px 500px at 90% 0%, rgba(99, 102, 241, 0.1), transparent), #fafafa;
	color: #0a0a0a;
	display: flex;
	flex-direction: column;
}

.sfp-gate__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 24px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
	background: rgba(255, 255, 255, 0.8);
	backdrop-filter: blur(10px);
	position: sticky;
	top: 0;
	z-index: 30;
}

.sfp-gate__brand {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 600;
}

.sfp-gate__brand-dot {
	width: 10px;
	height: 10px;
	border-radius: 999px;
	background: #2563eb;
	box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.sfp-gate__nav {
	display: flex;
	align-items: center;
	gap: 12px;
}

.sfp-gate__link {
	background: none;
	border: 0;
	padding: 8px 10px;
	font: inherit;
	color: #525252;
	cursor: pointer;
}

.sfp-gate__link:hover {
	color: #0a0a0a;
}

.sfp-gate__btn {
	border-radius: 999px;
	padding: 8px 14px;
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
	border: 1px solid #e5e5e5;
	background: #fff;
}

.sfp-gate__btn--sm:hover {
	border-color: #d4d4d4;
}

.sfp-gate__main {
	flex: 1;
	display: flex;
	justify-content: center;
	padding: 48px 20px 80px;
}

.sfp-gate__hero {
	max-width: 560px;
	text-align: center;
}

.sfp-gate__h1 {
	font-size: clamp(28px, 4vw, 40px);
	line-height: 1.15;
	margin: 0 0 16px;
	letter-spacing: -0.02em;
}

.sfp-gate__lede {
	font-size: 17px;
	line-height: 1.6;
	color: #525252;
	margin: 0 0 20px;
}

.sfp-gate__badge {
	font-size: 15px;
	color: #404040;
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 12px;
	padding: 12px 16px;
	display: inline-block;
}

.sfp-gate__alert {
	color: #b91c1c;
	font-size: 14px;
	margin: 0;
}

.sfp-gate__modal-layer {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding: 16px;
}

@media (min-width: 640px) {
	.sfp-gate__modal-layer {
		align-items: center;
	}
}

.sfp-gate__scrim {
	position: absolute;
	inset: 0;
	border: 0;
	background: rgba(15, 23, 42, 0.35);
	cursor: pointer;
}

.sfp-gate__sheet {
	position: relative;
	width: 100%;
	max-width: 420px;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 24px 80px rgba(15, 23, 42, 0.18);
	border: 1px solid #e5e5e5;
	max-height: calc(100vh - 32px);
	overflow: auto;
}

.sfp-gate__sheet-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	padding: 20px 20px 0;
}

.sfp-gate__sheet-title {
	margin: 0;
	font-size: 20px;
}

.sfp-gate__x {
	border: 0;
	background: transparent;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	color: #737373;
}

.sfp-gate__sheet-body {
	padding: 16px 20px 24px;
}

.sfp-gate__form {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.sfp-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	text-align: left;
}

.sfp-field__label {
	font-size: 13px;
	font-weight: 500;
	color: #404040;
}

.sfp-input {
	border: 1px solid #e5e5e5;
	border-radius: 10px;
	padding: 10px 12px;
	font: inherit;
	background: #fafafa;
}

.sfp-input:focus {
	outline: 2px solid rgba(37, 99, 235, 0.35);
	outline-offset: 1px;
	border-color: #bfdbfe;
	background: #fff;
}

.sfp-check {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: #404040;
}

.sfp-gate__status {
	font-size: 13px;
	margin: 0;
	min-height: 1.2em;
}

.sfp-gate__status.is-error {
	color: #b91c1c;
}

.sfp-gate__meta {
	text-align: center;
	margin: 4px 0 0;
}

.sfp-gate__switch {
	text-align: center;
	font-size: 14px;
	color: #525252;
	margin: 12px 0 0;
}

.sfp-btn--block {
	width: 100%;
}

.sfp-btn--primary {
	background: #2563eb;
	color: #fff;
	border: 1px solid #2563eb;
	border-radius: 10px;
	padding: 12px 16px;
	font-weight: 600;
	cursor: pointer;
	font: inherit;
}

.sfp-btn--primary:hover {
	background: #1d4ed8;
	border-color: #1d4ed8;
}

.sfp-btn--primary:disabled {
	opacity: 0.6;
	cursor: wait;
}
