/* --- Base --- */

:root {

	--color-ash: #c8c8c8;
	--color-black: #1a1a1a;
	--color-fog: #efefef;
	--color-grey: #5c5c5c;
	--color-mist: #ebebeb;
	--color-silver: #dcdcdc;
	--color-stone: #8c8c8c;
	--color-white: #fff;
	--radius: 20px;
	--shadow: 0 1px 2px rgba(26, 26, 26, .06), 0 6px 20px rgba(26, 26, 26, .05);
	--check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");

}

*,
*::before,
*::after {

	box-sizing: border-box;

}

html {

	-webkit-text-size-adjust: 100%;

}

body {

	background: var(--color-fog);
	color: var(--color-black);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	font-size: 20px;
	line-height: 1.4;
	margin: 0;

}

button {

	-webkit-tap-highlight-color: transparent;
	color: inherit;
	cursor: pointer;
	font: inherit;
	touch-action: manipulation;
	-webkit-user-select: none;
	user-select: none;

}

h1,
h2,
h3,
p {

	margin: 0;

}

h1:focus {

	outline: none;

}

:focus-visible {

	outline: 3px solid var(--color-black);
	outline-offset: 3px;

}

.sr-only {

	border: 0;
	clip: rect(0 0 0 0);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	white-space: nowrap;
	width: 1px;

}

/* --- Screen --- */

.screen {

	display: flex;
	flex-direction: column;
	gap: 40px;
	margin: 0 auto;
	max-width: 1280px;
	min-height: 100vh;
	min-height: 100dvh;
	padding: 32px 48px 0;

}

.screen__top {

	align-items: center;
	display: flex;
	gap: 32px;
	min-height: 56px;

}

.screen__progress {

	color: var(--color-grey);
	flex: 1;
	font-size: 18px;

}

.steps {

	display: grid;
	gap: 8px;
	grid-template-columns: repeat(4, 1fr);
	list-style: none;
	margin: 10px 0 0;
	max-width: 480px;
	padding: 0;

}

.steps li {

	background: var(--color-ash);
	border-radius: 4px;
	height: 8px;

}

.steps .is-done {

	background: var(--color-black);

}

.screen__restart {

	align-items: center;
	background: none;
	border: 0;
	border-radius: 999px;
	color: var(--color-grey);
	display: inline-flex;
	font-size: 18px;
	gap: 8px;
	margin-left: auto;
	min-height: 56px;
	padding: 0 16px;

}

.screen__restart svg {

	height: 22px;
	width: 22px;

}

.screen__title {

	font-size: 52px;
	letter-spacing: -.015em;
	line-height: 1.1;
	text-wrap: balance;

}

.screen__hint {

	color: var(--color-grey);
	font-size: 24px;
	margin-top: 12px;

}

.screen__body {

	flex: 1;

}

.screen__footer {

	align-items: center;
	background: linear-gradient(rgba(239, 239, 239, 0), var(--color-fog) 32px);
	bottom: 0;
	display: flex;
	gap: 24px;
	margin: 0 -48px;
	padding: 40px 48px 32px;
	position: sticky;

}

.screen__status {

	color: var(--color-black);
	flex: 1;
	font-size: 20px;
	font-weight: 600;
	text-align: right;

}

.screen__footer > .button:last-child {

	margin-left: auto;

}

/* --- Start --- */

.screen--start {

	justify-content: center;
	padding-bottom: 48px;

}

.screen--start .screen__title {

	font-size: 76px;
	max-width: 11em;

}

.screen--start .screen__hint {

	font-size: 28px;
	max-width: 26em;

}

.screen__brand {

	color: var(--color-grey);
	font-size: 22px;
	font-weight: 600;
	margin-bottom: 28px;

}

.screen__actions {

	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 16px;

}

/* --- Buttons --- */

.button {

	align-items: center;
	background: var(--color-black);
	border: 0;
	border-radius: 999px;
	color: var(--color-white);
	display: inline-flex;
	font-size: 24px;
	font-weight: 600;
	gap: 12px;
	justify-content: center;
	min-height: 76px;
	min-width: 200px;
	padding: 12px 44px;
	transition: opacity .15s, transform .1s;

}

.button__icon {

	flex: none;
	height: 26px;
	width: 26px;

}

.button:active {

	transform: scale(.97);

}

.button--secondary {

	background: var(--color-white);
	box-shadow: inset 0 0 0 2px var(--color-stone);
	color: var(--color-black);

}

.button--large {

	font-size: 28px;
	min-height: 88px;
	padding: 12px 64px;

}

/* --- Options --- */

.options {

	display: grid;
	gap: 16px;
	grid-template-columns: 1fr;
	grid-auto-rows: 1fr;
	grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
	list-style: none;
	margin: 0;
	padding: 0;

}

.option {

	align-items: center;
	background: var(--color-white);
	border: 2px solid transparent;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	display: flex;
	font-size: 26px;
	font-weight: 500;
	gap: 20px;
	height: 100%;
	min-height: 108px;
	padding: 20px 28px;
	text-align: left;
	transition: background .15s, border-color .15s, transform .1s;
	width: 100%;

}

.option:active {

	transform: scale(.98);

}

.option::before {

	background: center / 22px no-repeat;
	border: 2px solid var(--color-stone);
	border-radius: 10px;
	content: "";
	flex: none;
	height: 34px;
	width: 34px;

}

.option--single::before {

	border-radius: 50%;

}

.option .emoji {

	flex: none;
	font-size: 34px;
	line-height: 1;
	width: 40px;

}

.option[aria-pressed="true"] {

	background: var(--color-silver);
	border-color: var(--color-black);

}

.option[aria-pressed="true"]::before {

	background-color: var(--color-black);
	background-image: var(--check);
	border-color: var(--color-black);

}

.option[aria-disabled="true"] {

	opacity: .45;

}

.option--unsure {

	background: transparent;
	border: 2px dashed var(--color-stone);
	box-shadow: none;
	color: var(--color-grey);

}

/* --- Topics --- */

.topics {

	display: grid;
	gap: 16px;

}

.topic {

	align-items: center;
	background: var(--color-white);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	display: grid;
	gap: 12px;
	grid-template-columns: 1fr repeat(3, minmax(150px, 190px));
	padding: 14px 14px 14px 28px;

}

.topic__label {

	align-items: center;
	display: flex;
	font-size: 28px;
	font-weight: 600;
	gap: 16px;

}

.topic__label .emoji {

	font-size: 32px;
	line-height: 1;

}

.choice {

	align-items: center;
	background: var(--color-white);
	border: 2px solid var(--color-stone);
	border-radius: 14px;
	display: flex;
	flex-direction: column;
	font-size: 22px;
	font-weight: 500;
	gap: 4px;
	justify-content: center;
	min-height: 96px;
	padding: 12px;
	transition: background .15s, border-color .15s, transform .1s;

}

.choice .emoji {

	font-size: 32px;
	line-height: 1;

}

.choice:active {

	transform: scale(.97);

}

.choice[aria-pressed="true"] {

	background: var(--color-black);
	border-color: var(--color-black);
	color: var(--color-white);
	font-weight: 600;

}

/* --- Result --- */

.result {

	display: grid;
	gap: 48px;

}

.status {

	display: grid;
	gap: 16px;
	grid-template-columns: 1fr 1fr;

}

.status__column {

	background: var(--color-white);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 24px 28px;

}

.status__column h2 {

	font-size: 20px;
	margin-bottom: 14px;

}

.chips {

	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;

}

.chips li {

	align-items: center;
	background: var(--color-silver);
	display: flex;
	gap: 8px;
	border-radius: 999px;
	padding: 6px 18px;

}

.chips--work li {

	background: var(--color-mist);

}

.group__title {

	font-size: 30px;
	letter-spacing: -.01em;
	margin-bottom: 20px;

}

.offers {

	display: grid;
	gap: 16px;
	grid-template-columns: 1fr;
	grid-template-columns: repeat(auto-fill, minmax(min(360px, 100%), 1fr));
	list-style: none;
	margin: 0;
	padding: 0;

}

.offer {

	background: var(--color-white);
	border: 2px solid transparent;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	display: flex;
	flex-direction: column;
	gap: 8px;
	height: 100%;
	padding: 24px 28px 20px;
	text-align: left;
	transition: background .15s, border-color .15s, transform .1s;
	width: 100%;

}

.offer:active {

	transform: scale(.98);

}

.offer__type {

	color: var(--color-grey);
	font-size: 17px;

}

.offer__name {

	font-size: 26px;
	font-weight: 700;
	line-height: 1.2;

}

.offer__about {

	font-size: 20px;

}

.offer__reasons {

	color: var(--color-grey);
	font-size: 17px;

}

.offer__pick {

	align-items: center;
	border-top: 1px solid var(--color-ash);
	color: var(--color-black);
	display: flex;
	font-size: 19px;
	font-weight: 600;
	gap: 14px;
	margin-top: auto;
	padding-top: 16px;

}

.offer__pick::before {

	background: center / 22px no-repeat;
	border: 2px solid var(--color-stone);
	border-radius: 10px;
	content: "";
	height: 34px;
	width: 34px;

}

.offer[aria-pressed="true"] {

	background: var(--color-silver);
	border-color: var(--color-black);

}

.offer[aria-pressed="true"] .offer__pick {

	border-color: rgba(26, 26, 26, .2);

}

.offer[aria-pressed="true"] .offer__pick::before {

	background-color: var(--color-black);
	background-image: var(--check);
	border-color: var(--color-black);

}

.offer--topic {

	border: 2px dashed var(--color-stone);
	box-shadow: none;

}

.offer--topic .emoji {

	margin-right: 10px;

}

.offer__print {

	align-items: center;
	border-top: 1px solid var(--color-ash);
	color: var(--color-grey);
	display: flex;
	font-size: 19px;
	font-weight: 600;
	gap: 14px;
	margin-top: auto;
	padding-top: 16px;

}

/* --- Dialog --- */

.dialog {

	background: var(--color-white);
	border: 0;
	border-radius: 28px;
	box-shadow: 0 20px 60px rgba(26, 26, 26, .25);
	color: var(--color-black);
	max-width: 760px;
	padding: 40px;
	width: calc(100% - 40px);

}

.dialog::backdrop {

	background: rgba(26, 26, 26, .55);

}

.dialog__title {

	font-size: 36px;
	line-height: 1.15;

}

.dialog__text {

	font-size: 24px;
	margin-top: 12px;

}

.dialog__actions {

	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: 32px;

}

.dialog__actions .button {

	flex: 1 1 240px;
	min-width: 0;
	padding: 12px 24px;

}

.dialog__actions .button:only-child {

	flex: 0 1 auto;
	padding: 12px 44px;

}

.dialog__count {

	font-variant-numeric: tabular-nums;
	font-weight: 700;

}

/* --- Print --- */

.print {

	display: none;

}

@media (max-width: 900px) {

	.screen {

		gap: 32px;
		padding: 24px 20px 0;

	}

	.screen__footer {

		flex-wrap: wrap;
		gap: 12px;
		margin: 0 -20px;
		padding: 16px 20px 24px;
		position: static;

	}

	.screen__status {

		flex-basis: 100%;
		order: -1;
		text-align: left;

	}

	.screen__title,
	.screen--start .screen__title {

		font-size: 40px;

	}

	.topic {

		grid-template-columns: repeat(3, 1fr);
		padding: 16px;

	}

	.topic__label {

		grid-column: 1 / -1;

	}

	.status {

		grid-template-columns: 1fr;

	}

	.button {

		font-size: 20px;
		min-height: 64px;
		min-width: 0;
		padding: 12px 24px;

	}

}

@media (prefers-reduced-motion: reduce) {

	*,
	*::before,
	*::after {

		transition-duration: .01ms !important;

	}

}

@media print {

	@page {

		margin: 15mm;

	}

	body {

		background: #fff;
		font-size: 14pt;
		line-height: 1.5;

	}

	.app {

		display: none;

	}

	.print {

		display: block;

	}

	.print h1 {

		font-size: 26pt;

	}

	.print__date {

		color: #555;

	}

	.print__coach {

		margin: 6mm 0 8mm;

	}

	.print__footer {

		border-top: 1px solid #000;
		margin-top: 8mm;
		padding-top: 4mm;

	}

	.print dl {

		display: grid;
		gap: 2mm 6mm;
		grid-template-columns: max-content 1fr;
		margin: 0 0 8mm;

	}

	.print dt {

		font-weight: 600;

	}

	.print dd {

		margin: 0;

	}

	.print h2 {

		border-bottom: 1px solid #000;
		font-size: 17pt;
		margin: 8mm 0 4mm;
		padding-bottom: 2mm;

	}

	.print__offer {

		border: 1px solid #999;
		border-radius: 3mm;
		break-inside: avoid;
		margin-bottom: 4mm;
		padding: 4mm 5mm;

	}

	.print__offer h3 {

		font-size: 16pt;

	}

	.print__offer p {

		margin-top: 1.5mm;

	}

}
