@import url('https://fonts.googleapis.com/css2?family=Urbanist:ital,wght@0,100..900;1,100..900&display=swap');

/*vars*/

:root {

	--primary-typo: 'Urbanist';

	--bg1: #0b0b2e;
	--bg2: #2a0b5f;
	--card: rgba(255, 255, 255, .06);
	--card-border: rgba(255, 255, 255, .15);
	--text: #f8fafc;
	--muted: #c7d2fe;
	--accent: #7dd3fc;
	--accent-2: #a78bfa;
	--shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

/*
--------------------------------------
Keyframes
--------------------------------------
*/

@keyframes fadeOutLeft {
	from {
		opacity: 1;
		transform: translateX(0)
	}
	to {
		opacity: 0;
		transform: translateX(-16px)
	}
}

@keyframes fadeInRight {
	from {
		opacity: 0;
		transform: translateX(16px)
	}
	to {
		opacity: 1;
		transform: translateX(0)
	}
}

/*
--------------------------------------
Elements
--------------------------------------
*/

body {
	position: relative;
	display: flex;
	flex-direction: column;
	font-family: var(--primary-typo), sans-serif;
	color: var(--text);
	background: url(img/bg/bg-mobile.jpg) no-repeat center center / cover;
	min-height: 100vh;
	margin: 0;
}

a {
	color: inherit;
	text-decoration: none;
}

.btn {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-family: inherit;
	font-size: calc(16px + (18 - 16) * ((100vw - 320px) / (1920 - 320)));
	font-weight: 600;
	background: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .15));
	color: var(--text);
	border: 1px solid var(--card-border);
	border-radius: 16px;
	cursor: pointer;
	text-align: left;
	transition: background-color 0.35s ease-in-out;
	width: 100%;
	padding: 20px calc(5px + (35 - 5) * ((100vw - 320px) / (1920 - 320))) 20px calc(15px + (30 - 15) * ((100vw - 320px) / (1920 - 320)));
}

.btn:hover {
	box-shadow: 0 0 0 2px rgba(125, 211, 252, .25) inset;
}

.btn-primary {
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 18px;
	font-weight: 700;
	background: linear-gradient(90deg, #52D0E8 0%, #6C91FB 100%);
	color: #fff;
	border: 2px solid #52D0E8;
	border-radius: 8px;
	width: calc(280px + (335 - 280) * ((100vw - 320px) / (1920 - 320)));
	height: 68px;
	padding: 9px 23px;
}

.btn-secondary {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	background: transparent;
	color: #fff;
	border: 1px solid #fff;
	border-radius: 8px;
	padding: 10px 24px;
}

.layout-footer {
	text-align: center;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.65);
    cursor: pointer;

}

.layout-footer__link {
	color: inherit;
	text-decoration: underline;
	text-decoration-color: rgba(255, 255, 255, 0.25);
	transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.layout-footer__link:hover,
.layout-footer__link:focus {
	color: #fff;
	text-decoration-color: currentColor;
}

h2 {
	font-size: 26px;
	font-weight: 700;
	text-align: center;
	line-height: 40px;
	margin-bottom: 0;
}

.bg-gradient {
	background: linear-gradient(90deg, #52D0E8 0%, #6C91FB 100%);
	width: 26px;
	display: inline-block;
	height: 26px;
	border-radius: 50%;
	line-height: 1;
}

/*
--------------------------------------
Main container
--------------------------------------
*/

.content {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	flex: 1;
}

.wrap {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: calc(0px + (28 - 0) * ((100vw - 320px) / (1920 - 320)));
	margin: 0 auto;
}

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

h1 {
	margin: 6px 0 6px;
	font-size: 22px;
	letter-spacing: .3px
}

.sub {
	color: var(--muted);
	margin: 0 0 10px;
	font-size: 14px
}

.profiles {
	display: flex;
	flex-direction: column;
	row-gap: 12px;
}

.profiles--hidden {
	display: none;
	pointer-events: none;
}

.badge {
	display: none;
	border-radius: 50px;
	background: rgba(125, 211, 252, .15);
	color: var(--accent);
	font-weight: 700;
	font-size: 12px;
	border: 1px solid rgba(125, 211, 252, .35);
	padding: 6px 10px;
}

.muted {
	color: var(--muted)
}

.progress {
	background: #fff;
	overflow: hidden;
	height: 3px;
}

.bar {
	height: 100%;
	width: 0;
	background: linear-gradient(90deg, var(--accent), var(--accent-2));
	box-shadow: 0 0 14px rgba(125, 211, 252, .6);
	transition: width .35s
}

.qbox {
	border-radius: 18px;
	padding: calc(0px + (16 - 0) * ((100vw - 320px) / (1920 - 320))) 0;
	margin-top: 12px;
}

.q {
	font-size: 21px;
	font-weight: 700;
	color: #fff;
}

.opts {
	display: grid;
	gap: 10px
}

.opt {
	border: 1px solid var(--card-border);
	border-radius: 14px;
	padding: 19.5px 16px;
	background: rgba(255, 255, 255, .06);
	cursor: pointer;
	transition: .2s
}

.opt:hover {
	background: rgba(255, 255, 255, .1);
	box-shadow: 0 0 0 2px rgba(125, 211, 252, .25) inset
}

.footer {
	display: flex;
	justify-content: flex-end;
	gap: 12px;
	margin-top: calc(5px + (14 - 5) * ((100vw - 320px) / (1920 - 320)));
}

.link {
	font-family: var(--primary-typo), sans-serif;
	font-size: 14px;
	font-weight: 700;
	background: transparent;
	color: rgba(255, 255, 255, .5);
	border: none;
}

.leaving {
	animation: fadeOutLeft .22s ease forwards
}

.entering {
	animation: fadeInRight .22s ease forwards
}

/* Axes + jauges */

.axis-row {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 10px
}

.axis-title {
	font-weight: 600
}

.gauge {
	--p: 0;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: conic-gradient(var(--accent) calc(var(--p) * 1%), rgba(255, 255, 255, .12) 0);
	position: relative;
	border: 1px solid rgba(255, 255, 255, .15);
	flex: 0 0 56px
}

.gauge::after {
	content: "";
	position: absolute;
	inset: 8px;
	border-radius: 50%;
	background: rgba(0, 0, 0, .25);
	border: 1px solid rgba(255, 255, 255, .12)
}

.gauge .v {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 10px;
	font-weight: 800;
	color: var(--text)
}

/* Result hero + bars */
.result-hero {
	position: relative;
	overflow: hidden;
	min-height: 315px;
}

.result-hero .bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
}

/*.result-hero .overlay {*/
/*	position: absolute;*/
/*	inset: 0;*/
/*	background: linear-gradient(180deg, rgba(0, 0, 0, .35), rgba(0, 0, 0, .6))*/
/*}*/

.result-hero .content {
	position: absolute;
	z-index: 2;
	padding: 16px;
	top: 0;
	bottom: 0;
	right: 25px;
}

.bars-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px;
}

.bar-row {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.bar-label {
	font-weight: 600;
	font-size: 12px;
	color: var(--text)
}

.bar-track {
	background: #F5FCFE;
	border-radius: 2px;
	border: 1.5px solid #FFF;
	overflow: hidden;
	height: 10px;
}

.bar-fill {
	background: linear-gradient(
			63deg,
			#2024FC 0%,
			#6A25F9 50%,
			#57DEE7 100%);
	box-shadow: 0 0 12px rgba(125, 211, 252, .5);
	transition: width .35s;
	height: 100%;
	width: 0;
}

.bar-track-3 .bar-fill,
.bar-track-4 .bar-fill {
	background: linear-gradient(
			62deg,
			#F43AE3 0%,
			#59379F 47.6%,
			#E757D3 100%
	);
}

.bar-track-5 .bar-fill,
.bar-track-6 .bar-fill {
	background: linear-gradient(
			180deg,
			#52D0E8 0%,
			#6C91FB 100%
	);
}

.result-actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 12px
}

/* Upgrade step */

#step-upgrade .lead {
	color: var(--muted);
	font-size: 14px;
	margin-top: 6px
}

.input {
	color: #252525;
	border: 1px solid rgba(255, 255, 255, .25);
	border-radius: 12px;
	width: calc(280px + (320 - 280) * ((100vw - 320px) / (1920 - 320)));
	padding: 12px 14px;
}

.hint {
	font-size: 12px;
	color: var(--muted);
	margin-top: 6px
}

.legal-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(5, 9, 25, 0.75);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.legal-modal--visible {
    opacity: 1;
    pointer-events: auto;
}

.legal-modal__backdrop {
    position: absolute;
    inset: 0;
}

.legal-modal__dialog {
    position: relative;
    background: rgba(12, 14, 32, 0.95);
    border-radius: 12px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
    width: min(720px, 100%);
    max-height: min(80vh, 640px);
    padding: 32px;
    overflow: hidden;
}

.legal-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.65);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.legal-modal__close:hover,
.legal-modal__close:focus {
    color: #fff;
}

.legal-modal__body {
    position: relative;
    overflow-y: auto;
    max-height: calc(80vh - 96px);
    padding-right: 8px;
}

.legal-modal__placeholder,
.legal-modal__error,
.legal-modal__empty {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 640px) {
    .legal-modal__dialog {
        padding: 24px 20px;
    }

    .legal-modal__body {
        max-height: calc(80vh - 80px);
        padding-right: 0;
    }
}
.legal-content {

}

.legal-content__header {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.legal-content__header h1 {
    margin: 0;
    font-size: 14px;
}

.legal-content__intro {
    margin: 0;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.6);
}

.legal-content__section {

}

.legal-content__section h2 {
    margin: 0;
    text-align: left;
    font-size: 12px;
}

.legal-content__section p {
    margin: 0;
    font-size: 10px;
    line-height: 1.6;
}

.legal-content__note {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 640px) {
    .legal-content {
        gap: 16px;
    }

    .legal-content__section {
        padding: 14px;
    }

    .legal-content__section h2 {
        font-size: 18px;
    }
}