:root {
	--brand-bg: #f5fbff;
	--brand-ink: #0f394c;
	--brand-accent: #49b5e7;
	--brand-paper: #ffffff;
}

/* Typography & Colors */
.text-brand-accent {
	color: var(--brand-accent);
}

.bg-brand-paper {
	background-color: var(--brand-paper);
}

.bg-brand-bg {
	background-color: var(--brand-bg);
}

.bg-brand-ink {
	background-color: var(--brand-ink);
}

.text-brand-ink {
	color: var(--brand-ink);
}

.text-brand-paper {
	color: var(--brand-paper);
}

.fw-black {
	font-weight: 900;
}

.tracking-tight {
	letter-spacing: -0.025em;
}

.tracking-tighter {
	letter-spacing: -0.05em;
}

.tracking-widest {
	letter-spacing: 0.1em;
}

.text-brand-ink\/60 {
	color: rgba(15, 57, 76, 0.6);
}

.text-brand-ink\/40 {
	color: rgba(15, 57, 76, 0.4);
}

.bg-brand-accent\/10 {
	background-color: rgba(73, 181, 231, 0.1);
}

.border-brand-ink\/10 {
	border-color: rgba(15, 57, 76, 0.1) !important;
}

/* Animations */
.fade-in {
	animation: fadeIn 0.4s ease-out forwards;
}

.fade-in-up {
	animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.scale-in {
	animation: scaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes scaleIn {
	from {
		opacity: 0;
		transform: scale(0.9);
	}

	to {
		opacity: 1;
		transform: scale(1);
	}
}

.animate-pulse {
	animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {

	0%,
	100% {
		opacity: 1;
	}

	50% {
		opacity: .7;
	}
}

/* Custom UI Elements */
.test-card {
	position: relative;
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	border-radius: 2rem;
	border: 1px solid rgba(15, 57, 76, 0.1);
	padding: 2rem;
	background: var(--brand-paper);
	cursor: pointer;
	overflow: hidden;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.test-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 25px 50px -12px rgba(15, 57, 76, 0.15);
	border-color: rgba(73, 181, 231, 0.3);
}

.test-card .icon-container {
	width: 3.5rem;
	height: 3.5rem;
	border-radius: 1rem;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 2rem;
	border: 1px solid transparent;
	transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.test-card:hover .icon-container {
	transform: scale(1.1) rotate(-5deg);
}

.rounded-2rem {
	border-radius: 2rem !important;
}

.rounded-3xl {
	border-radius: 1.5rem !important;
}

/* Test Specifics */
#reaction-display {
	width: 100%;
	aspect-ratio: 16/9;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 1.5rem;
	cursor: pointer;
	transition: all 0.3s ease;
	border-width: 4px;
	touch-action: manipulation;
	box-shadow: 0 25px 50px -12px rgba(15, 57, 76, 0.25);
}

@media (max-width: 640px) {
	#reaction-display {
		aspect-ratio: 1/1;
	}
}

#sequence-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0.75rem;
}

@media (min-width: 640px) {
	#sequence-grid {
		gap: 1rem;
	}
}

.sequence-tile {
	width: 100%;
	aspect-ratio: 1/1;
	border-radius: 0.75rem;
	background-color: var(--brand-bg);
	border: 2px solid rgba(15, 57, 76, 0.05);
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
	cursor: pointer;
	padding: 0;
}

@media (min-width: 640px) {
	.sequence-tile {
		border-radius: 1rem;
	}
}

.sequence-tile.active {
	background-color: var(--brand-accent);
	border-color: var(--brand-accent);
	box-shadow: 0 10px 15px -3px rgba(73, 181, 231, 0.3);
	transform: scale(1.05);
}

.btn-primary-brand {
	background-color: var(--brand-accent);
	color: white;
	border: none;
	padding: 1rem 2rem;
	border-radius: 1rem;
	font-weight: 700;
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary-brand:hover {
	opacity: 0.95;
	transform: translateY(-1px);
}

.btn-primary-brand:active {
	transform: scale(0.95);
}

.btn-outline-brand {
	border: 1px solid rgba(15, 57, 76, 0.1);
	background: transparent;
	color: rgba(15, 57, 76, 0.6);
	padding: 1rem 2rem;
	border-radius: 1rem;
	font-weight: 600;
	transition: all 0.2s;
}

.btn-outline-brand:hover {
	background-color: var(--brand-bg);
	color: var(--brand-ink);
}

/* Results Chart */
.bar-chart-container {
	height: 250px;
	width: 100%;
	display: flex;
	align-items: flex-end;
	justify-content: space-around;
	padding-bottom: 2rem;
	border-bottom: 1px solid rgba(15, 57, 76, 0.1);
}

@media (min-width: 640px) {
	.bar-chart-container {
		height: 300px;
	}
}

.bar-wrapper {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	height: 100%;
	justify-content: flex-end;
}

.bar {
	width: 30px;
	background-color: var(--brand-accent);
	border-radius: 8px 8px 0 0;
	transition: height 1s cubic-bezier(0.34, 1.56, 0.64, 1);
	position: relative;
}

@media (min-width: 640px) {
	.bar {
		width: 40px;
	}
}

.bar-label {
	margin-top: 1rem;
	font-size: 10px;
	font-weight: 600;
	color: rgba(15, 57, 76, 0.5);
	text-align: center;
	max-width: 80px;
}

/* Custom Utilities for React equivalence */
.leading-tight {
	line-height: 1.25;
}

.leading-relaxed {
	line-height: 1.625;
}

.max-w-2xl {
	max-width: 42rem;
}

.max-w-3xl {
	max-width: 48rem;
}

.max-w-sm {
	max-width: 24rem;
}

.inset-0 {
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
}

.backdrop-blur-sm {
	backdrop-filter: blur(4px);
}

.space-y-12>*+* {
	margin-top: 3rem;
}

.space-y-5>*+* {
	margin-top: 1.25rem;
}

.selection\:bg-brand-accent\/20::selection {
	background: rgba(73, 181, 231, 0.2);
}

.selection\:text-brand-ink::selection {
	color: var(--brand-ink);
}

.sequence-tile:active {
	transform: scale(0.95);
}

.btn-outline-light {
	border-color: color-mix(in oklab, var(--brand-ink) 10%, transparent);
}

@media (max-width: 992px) {
	.gap-dynamic {
		gap: 20px;
	}
}