/* JetSet Access Gate */

:root {
	--jsag-black: #000000;
	--jsag-navy: #253a7e;
	--jsag-navy-deep: #16205a;
	--jsag-ink: #0f172a;
	--jsag-gray: #64748b;
	--jsag-line: #e2e8f0;
	--jsag-tint: #f8fafc;
	--jsag-grad-a: #8fa4ec;
	--jsag-grad-b: #c39ade;
}

* { box-sizing: border-box; }

html, body {
	margin: 0;
	padding: 0;
	height: 100%;
}

.jsag-body {
	background: var(--jsag-black);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: var(--jsag-ink);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

.jsag-stage {
	min-height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px 20px;
}

/* ---------- Card ---------- */

.jsag-card {
	width: 100%;
	max-width: 450px;
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
	animation: jsag-in .25s ease-out;
}

.jsag-card--wide { max-width: 600px; }

.jsag-step[hidden] { display: none; }

@keyframes jsag-in {
	from { opacity: 0; transform: translateY(8px); }
	to   { opacity: 1; transform: none; }
}

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

/* ---------- Header ---------- */

.jsag-card__header {
	background: var(--jsag-navy);
	padding: 22px 24px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.jsag-card__header--split {
	justify-content: space-between;
	padding: 16px 20px 16px 24px;
}

/* Sized to the real logo's 1.14:1 ratio so the JETSET BIOLABS wordmark stays readable. */
.jsag-logo {
	background: #fff;
	border-radius: 12px;
	width: 124px;
	height: 109px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 8px;
	overflow: hidden;
}

.jsag-logo--sm {
	width: 86px;
	height: 76px;
	border-radius: 10px;
	padding: 6px;
}

.jsag-logo img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	display: block;
}

.jsag-logo__text {
	font-size: 9px;
	font-weight: 800;
	letter-spacing: .04em;
	color: var(--jsag-navy);
	text-align: center;
	line-height: 1.1;
	text-transform: uppercase;
}

/* Close button */

.jsag-x {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #fff;
	border: 0;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	transition: transform .15s ease, background .15s ease;
}

.jsag-x:hover { transform: scale(1.06); background: #f1f5f9; }

.jsag-x svg {
	width: 18px;
	height: 18px;
	stroke: var(--jsag-navy);
	stroke-width: 2.5;
	stroke-linecap: round;
	fill: none;
}

/* ---------- Body ---------- */

.jsag-card__body { padding: 36px 32px 32px; }
.jsag-card__body--wide { padding: 34px 34px 28px; }

.jsag-title {
	margin: 0 0 12px;
	font-size: 28px;
	line-height: 1.25;
	font-weight: 800;
	letter-spacing: -.01em;
	text-align: center;
	color: var(--jsag-ink);
}

.jsag-title--left { text-align: left; }

.jsag-sub {
	margin: 0 0 26px;
	font-size: 15px;
	line-height: 1.55;
	color: var(--jsag-gray);
	text-align: center;
}

.jsag-sub--left { text-align: left; margin-bottom: 20px; }

/* ---------- Checkbox row ---------- */

.jsag-checkrow {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	background: var(--jsag-tint);
	border: 1px solid var(--jsag-line);
	border-radius: 8px;
	padding: 20px;
	margin-bottom: 22px;
	cursor: pointer;
	user-select: none;
	transition: border-color .15s ease;
}

.jsag-checkrow--left {
	justify-content: flex-start;
	padding: 16px 18px;
	margin-bottom: 18px;
}

.jsag-checkrow:hover { border-color: #cbd5e1; }

.jsag-checkbox {
	appearance: none;
	-webkit-appearance: none;
	width: 22px;
	height: 22px;
	min-width: 22px;
	border: 2px solid #94a3b8;
	border-radius: 4px;
	background: #fff;
	cursor: pointer;
	position: relative;
	margin: 0;
	transition: background .15s ease, border-color .15s ease;
}

.jsag-checkbox:checked {
	background: var(--jsag-navy);
	border-color: var(--jsag-navy);
}

.jsag-checkbox:checked::after {
	content: "";
	position: absolute;
	left: 6px;
	top: 2px;
	width: 5px;
	height: 10px;
	border: solid #fff;
	border-width: 0 2.5px 2.5px 0;
	transform: rotate(45deg);
}

.jsag-checkbox:focus-visible {
	outline: 2px solid var(--jsag-navy);
	outline-offset: 2px;
}

.jsag-checkrow__label {
	font-size: 15px;
	font-weight: 700;
	color: var(--jsag-ink);
}

/* ---------- Terms box ---------- */

.jsag-terms {
	background: var(--jsag-tint);
	border: 1px solid var(--jsag-line);
	border-radius: 8px;
	padding: 18px 20px;
	height: 300px;
	overflow-y: auto;
	margin-bottom: 22px;
	font-size: 14px;
	line-height: 1.6;
	color: #475569;
	scrollbar-width: thin;
}

.jsag-terms:focus-visible {
	outline: 2px solid var(--jsag-navy);
	outline-offset: 2px;
}

.jsag-terms h4,
.jsag-terms h3 {
	margin: 20px 0 6px;
	font-size: 15px;
	font-weight: 800;
	color: var(--jsag-ink);
}

.jsag-terms h4:first-child,
.jsag-terms h3:first-child { margin-top: 0; }

.jsag-terms p { margin: 0 0 4px; }

.jsag-terms::-webkit-scrollbar { width: 10px; }
.jsag-terms::-webkit-scrollbar-track { background: #eef2f7; border-radius: 8px; }
.jsag-terms::-webkit-scrollbar-thumb { background: #94a3b8; border-radius: 8px; }

/* ---------- Buttons ---------- */

.jsag-btn {
	width: 100%;
	border: 0;
	border-radius: 8px;
	padding: 16px 20px;
	font-size: 16px;
	font-weight: 800;
	font-family: inherit;
	cursor: pointer;
	transition: opacity .15s ease, transform .1s ease, filter .15s ease;
}

.jsag-btn--grad {
	background: linear-gradient(90deg, var(--jsag-grad-a), var(--jsag-grad-b));
	color: #fff;
}

.jsag-btn--grad:hover:not(:disabled) { filter: brightness(1.06); }
.jsag-btn--grad:active:not(:disabled) { transform: translateY(1px); }

.jsag-btn:disabled {
	opacity: .55;
	cursor: not-allowed;
}

.jsag-btn--ghost {
	background: #fff;
	color: var(--jsag-navy);
	border: 1.5px solid var(--jsag-navy);
}

.jsag-btn--ghost:hover { background: #f1f5f9; }

.jsag-btn:focus-visible {
	outline: 2px solid var(--jsag-navy);
	outline-offset: 2px;
}

.jsag-actions {
	display: grid;
	grid-template-columns: 1fr 1.6fr;
	gap: 12px;
}

/* ---------- Mobile ---------- */

@media (max-width: 560px) {
	.jsag-stage { padding: 20px 14px; }
	.jsag-card__body { padding: 28px 20px 24px; }
	.jsag-card__body--wide { padding: 26px 20px 22px; }
	.jsag-title { font-size: 23px; }
	.jsag-logo { width: 104px; height: 91px; }
	.jsag-logo--sm { width: 74px; height: 65px; }
	.jsag-terms { height: 240px; }
	.jsag-actions { grid-template-columns: 1fr; }
	.jsag-btn { padding: 14px 16px; font-size: 15px; }
}
