:root {
	--gruv-navy: #081a2d;
	--gruv-blue: #214d7b;
	--gruv-red: #e12a22;
	--gruv-ink: #111820;
	--gruv-muted: #5d6670;
	--gruv-border: #d8dde3;
	--gruv-surface: #ffffff;
}

.gruv-practice-system {
	box-sizing: border-box;
	width: 100%;
	max-width: 1180px;
	margin: 24px auto;
	color: var(--gruv-ink);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.gruv-practice-system *,
.gruv-practice-system *::before,
.gruv-practice-system *::after {
	box-sizing: inherit;
}

.gruv-welcome-screen {
	position: relative;
	min-height: 620px;
	overflow: hidden;
	padding: clamp(36px, 7vw, 84px);
	border-radius: 22px;
	background:
		radial-gradient(circle at 74% 34%, rgba(33, 77, 123, 0.28), transparent 28%),
		linear-gradient(135deg, #05080c 0%, #0a1018 60%, #071522 100%);
	color: #ffffff;
	box-shadow: 0 24px 60px rgba(4, 15, 27, 0.22);
}

.gruv-welcome-content {
	position: relative;
	z-index: 2;
	max-width: 520px;
}

.gruv-eyebrow,
.gruv-step-label {
	margin: 0 0 18px;
	color: var(--gruv-red);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.22em;
	text-transform: uppercase;
}

.gruv-welcome-screen h2 {
	margin: 0 0 22px;
	color: #ffffff;
	font-size: clamp(3.5rem, 8vw, 6.8rem);
	line-height: 0.95;
	letter-spacing: -0.05em;
}

.gruv-welcome-lead,
.gruv-welcome-signoff {
	margin: 0 0 18px;
	color: var(--gruv-red);
	font-size: clamp(1.35rem, 2.4vw, 2rem);
	font-style: italic;
}

.gruv-welcome-copy {
	max-width: 470px;
	margin: 0 0 22px;
	color: #f2f5f8;
	font-size: clamp(1.05rem, 1.8vw, 1.3rem);
	line-height: 1.6;
}

.gruv-primary-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 28px;
	min-height: 52px;
	padding: 13px 24px;
	border: 1px solid rgba(255, 255, 255, 0.13);
	border-radius: 8px;
	background: var(--gruv-navy);
	color: #ffffff;
	font-size: 0.98rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-decoration: none;
	text-transform: uppercase;
	cursor: pointer;
	transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.gruv-primary-button:hover,
.gruv-primary-button:focus-visible {
	background: #0c2743;
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
	color: #ffffff;
	transform: translateY(-1px);
}

.gruv-primary-button span {
	color: var(--gruv-red);
	font-size: 1.35rem;
}

.gruv-welcome-art {
	position: absolute;
	z-index: 1;
	top: 18%;
	right: 7%;
	width: min(38vw, 410px);
	height: 330px;
	opacity: 0.92;
	transform: rotate(-8deg);
}

.gruv-stick {
	position: absolute;
	right: 0;
	width: 88%;
	height: 18px;
	border-radius: 999px;
	background: linear-gradient(90deg, #9b6435, #e0ad72 48%, #b7773f);
	box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
	transform-origin: 100% 50%;
}

.gruv-stick::after {
	content: "";
	position: absolute;
	left: -14px;
	top: 1px;
	width: 32px;
	height: 16px;
	border-radius: 65% 45% 45% 65%;
	background: #cf955a;
}

.gruv-stick-one {
	top: 120px;
	transform: rotate(6deg);
}

.gruv-stick-two {
	top: 170px;
	transform: rotate(2deg);
}

.gruv-tagline {
	position: absolute;
	z-index: 2;
	right: 7%;
	bottom: 36px;
	max-width: 290px;
	margin: 0;
	color: #ffffff;
	font-size: clamp(1.25rem, 2vw, 1.7rem);
	font-style: italic;
	line-height: 1.3;
	text-align: right;
}

.gruv-tagline::after {
	content: "";
	display: block;
	width: 150px;
	height: 3px;
	margin: 10px 0 0 auto;
	background: var(--gruv-red);
	transform: rotate(-4deg);
}

.gruv-schedule-builder {
	display: none;
	padding: clamp(28px, 5vw, 64px);
	border: 1px solid #edf0f3;
	border-radius: 22px;
	background: var(--gruv-surface);
	box-shadow: 0 20px 50px rgba(8, 26, 45, 0.10);
}

.gruv-practice-system.is-builder-visible .gruv-welcome-screen {
	display: none;
}

.gruv-practice-system.is-builder-visible .gruv-schedule-builder {
	display: block;
}

.gruv-builder-header {
	max-width: 790px;
	margin: 0 auto 38px;
	text-align: center;
}

.gruv-builder-header h2 {
	margin: 8px 0 12px;
	color: var(--gruv-navy);
	font-size: clamp(2rem, 4vw, 3.1rem);
	line-height: 1.08;
}

.gruv-builder-header > p:last-child {
	margin: 0;
	color: var(--gruv-muted);
	font-size: 1.05rem;
	line-height: 1.6;
}

.gruv-text-button {
	display: block;
	margin: 0 0 30px auto;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--gruv-ink);
	font-weight: 700;
	cursor: pointer;
}

.gruv-save-message {
	max-width: 760px;
	margin: 0 auto 28px;
	padding: 14px 18px;
	border-left: 4px solid var(--gruv-red);
	border-radius: 6px;
	background: #f5f8fb;
	color: var(--gruv-navy);
}

.gruv-day-selector {
	display: grid;
	grid-template-columns: repeat(7, minmax(90px, 1fr));
	gap: 12px;
	margin: 0 0 42px;
}

.gruv-day-choice {
	position: relative;
	display: flex;
	min-height: 130px;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 16px 8px;
	border: 1px solid var(--gruv-border);
	border-radius: 10px;
	background: #ffffff;
	cursor: pointer;
	transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.gruv-day-choice:hover {
	border-color: var(--gruv-blue);
	transform: translateY(-2px);
}

.gruv-day-choice input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.gruv-day-check {
	display: grid;
	width: 30px;
	height: 30px;
	place-items: center;
	border: 2px solid #cfd5dc;
	border-radius: 50%;
	color: transparent;
	font-weight: 900;
}

.gruv-day-short {
	color: var(--gruv-ink);
	font-size: 1.05rem;
	font-weight: 900;
}

.gruv-day-full {
	color: var(--gruv-muted);
	font-size: 0.78rem;
}

.gruv-day-choice:has(input:checked) {
	border-color: var(--gruv-blue);
	box-shadow: 0 8px 20px rgba(33, 77, 123, 0.12);
}

.gruv-day-choice:has(input:checked) .gruv-day-check {
	border-color: var(--gruv-navy);
	background: var(--gruv-navy);
	color: #ffffff;
}

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

.gruv-session-card {
	padding: 20px;
	border: 1px solid var(--gruv-border);
	border-radius: 12px;
	background: #ffffff;
	box-shadow: 0 10px 24px rgba(8, 26, 45, 0.06);
}

.gruv-session-card[hidden] {
	display: none;
}

.gruv-session-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.gruv-session-title h3 {
	margin: 0;
	color: var(--gruv-navy);
	font-size: 1rem;
	text-transform: uppercase;
}

.gruv-remove-day {
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--gruv-red);
	font-size: 1.55rem;
	line-height: 1;
	cursor: pointer;
}

.gruv-field {
	margin-top: 18px;
}

.gruv-field label {
	display: block;
	margin-bottom: 7px;
	color: var(--gruv-ink);
	font-size: 0.88rem;
	font-weight: 800;
}

.gruv-field select {
	width: 100%;
	min-height: 44px;
	padding: 8px 10px;
	border: 1px solid var(--gruv-border);
	border-radius: 6px;
	background: #ffffff;
	color: var(--gruv-ink);
}

.gruv-time-fields {
	display: grid;
	grid-template-columns: 1fr auto 1fr 1fr;
	align-items: center;
	gap: 8px;
}

.gruv-time-colon {
	font-size: 1.1rem;
	font-weight: 900;
}

.gruv-form-actions {
	margin-top: 34px;
	text-align: center;
}

.gruv-form-actions p {
	margin: 16px 0 0;
	color: var(--gruv-muted);
	font-style: italic;
}

.gruv-login-panel {
	padding: 34px;
	border-radius: 14px;
	background: #ffffff;
	box-shadow: 0 12px 30px rgba(8, 26, 45, 0.10);
	text-align: center;
}

@media (max-width: 900px) {
	.gruv-welcome-art {
		opacity: 0.36;
		right: -8%;
	}

	.gruv-tagline {
		left: clamp(36px, 7vw, 84px);
		right: auto;
		text-align: left;
	}

	.gruv-tagline::after {
		margin-left: 0;
	}

	.gruv-day-selector {
		grid-template-columns: repeat(4, minmax(90px, 1fr));
	}

	.gruv-session-list {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 620px) {
	.gruv-practice-system {
		margin: 12px auto;
	}

	.gruv-welcome-screen,
	.gruv-schedule-builder {
		border-radius: 14px;
	}

	.gruv-welcome-screen {
		min-height: 640px;
		padding: 34px 24px;
	}

	.gruv-welcome-art {
		top: 48%;
		right: -20%;
		width: 380px;
		opacity: 0.24;
	}

	.gruv-tagline {
		left: 24px;
		bottom: 28px;
	}

	.gruv-day-selector {
		grid-template-columns: repeat(2, minmax(110px, 1fr));
	}

	.gruv-session-list {
		grid-template-columns: 1fr;
	}

	.gruv-time-fields {
		grid-template-columns: 1fr auto 1fr 1fr;
	}

	.gruv-primary-button {
		width: 100%;
	}
}
