@font-face {
    font-family: 'Arapey';
    src: url('/fonts/Arapey.ttf');
}

@font-face {
    font-family: 'Libre Franklin';
    src: url('/fonts/Libre_Franklin.ttf');
}


/*************
 * Variables *
 *************/

body {
    --main-color: #000000;
    --width: 1200px;
    --expanded-nav-height: 120px;
    --top-collapsible-height: 46px;
    --topnav-height: 80px;
    --sapphiric-black: #111;
    --sapphiric-blue: #5973ff;
    --sapphiric-pale-blue: #e9e9f2;
    --sapphiric-medium-blue: #1C58B0;
    --sapphiric-dark-blue: #262767;
    --sapphiric-purple: #673070;
    --sapphiric-red: #dd3322;
    --sapphiric-yellow: #fde61d;
    --sapphiric-green: #4cbb17;
}

strong {
    font-weight: 700;
}


/********
 * Reset *
 ********/

html, body {
    margin: 0;
    padding: 0;
}


/*******
 * Base *
 *******/

body {
    font-family: 'Libre Franklin', "Helvetica", sans-serif;
}



/********
 * Types *
 ********/

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/*************
 * Components *
 *************/

.topnav {
    position: fixed;
    z-index: 10;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 1);
    transition: background-color 0.3s ease-in-out;
    height: var(--topnav-height);
}

.topnav__info {
    padding: 0.3em 1em;
    font-size: 0.9em;
    letter-spacing: 0.05em;
    text-align: center;
    background-color: var(--sapphiric-black);
    color: white;
}

.topnav__inner {
    display: grid;
    grid-template-columns: 33% 34% 33%;
    font-size: 0.95em;
    letter-spacing: 0.05em;
    align-items: center;
    height: 50px;
}

.topnav__center {
    text-align: center;
}

.topnav__right {
    text-align: right;
}

.topnav__item {
    margin-left: 2em;
    position: relative;
    padding-bottom: 0.5em;
    transition: color 0.5s ease-in-out;
}

a.topnav__item {
    color: var(--sapphiric-black);
    text-decoration: none;
}

.topnav__item:hover {
    color: #777;
}

.topnav__item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -5%;
    width: 110%;
    height: 0.2em;
    background: var(--sapphiric-blue);
    opacity: 0;
    transition: opacity 400ms, transform 400ms;
    transform: scale(0);
    transform-origin: center;
    border-radius: 0.1em;
}

.topnav__item:hover::after {
    opacity: 1;
    transform: scale(1);
}

.topnav__logo {
    height: 18px;
    transition: height 0.3s ease-in-out;
}

.topnav--bottom {
    background-color: rgba(255, 255, 255, 1);

    .topnav__logo {
	height: 14px;
    }
}

.topnav__spacer {
    height: var(--topnav-height);
}

.topnav__hamburger-menu {
    display: none;
    padding-left: 1em;
    span {
	font-size: 2em;
	font-weight: 100;
	cursor: pointer;
    }
}


.second-menu {
    visibility: hidden;
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: visibility 0s 0.2s, opacity 0.2s ease-in-out;
    background-color: rgba(255, 255, 255, 0.8);
    position: fixed;
    top: var(--topnav-height);
    width: 100%;
    min-height: 70px;
    padding: 1em 2em;
    z-index: 20;
    display: flex;
    justify-content: start;
    gap: 3em;
}

.second-menu.is-active {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.2s ease-in-out;
}

.second-menu__backdrop {
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s 0.7s, opacity 0.7s ease-in-out;
    background: rgba(0, 0, 0, 0.5);
    position: fixed;
    height: 100vh;
    width: 100%;
    z-index: 5;
}

.second-menu__backdrop.is-active {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.7s ease-in-out;
}

.second-menu__grid {
    display: grid;
    gap: 1em;
    margin-bottom: 1em;
    font-size: 0.9em;
    letter-spacing: 0.05em;
}

.second-menu__grid-item {
    text-decoration: none;
    margin-top: 1em;
    color: #555;
    transition: color 0.2s ease-in-out;
    font-weight: 300;
    strong {
	font-weight: 500;
	font-size: 1.15em;
	color: black;
	transition: color 0.2s ease-in-out;
    }
}

.second-menu__grid-item:hover {
    color: black;
    strong {
	color: var(--sapphiric-blue);
    }
}


.popup-menu {
    visibility: hidden;
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: visibility 0s 0.2s, opacity 0.2s ease-in-out;
    background-color: rgba(255, 255, 255, 0.9);
    position: fixed;
    top: 0;
    width: calc(100% - 4em);
    min-height: calc(100vh - 4em);
    padding: 2em;
    z-index: 20;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 3em;
}

.popup-menu.is-active {
    opacity: 1;
    transition: opacity 0.2s ease-in-out;
}

.popup-menu__top-actions {
    width: 100%;
    text-align: right;
}

.popup-menu__main-links, .popup-menu__bottom-links {
    text-align: center;
    font-weight: 100;
    line-height: 2em;
}

.popup-menu__main-links {
    font-size: 1.5em;
}

.popup-menu__bottom-links {
    margin-bottom: 2em;
    .button {
	margin-top: 1em;
    }
}


.footer {
    padding: 3em 0;
}

.footer__nav {
    font-size: 0.9em;
    display: flex;
    justify-content: space-around;
}

.footer__list {
    list-style-type: none;
    margin: 0;
    padding: 0 0 3em 0;
    line-height: 2.5em;

    .footer__list-header {
	font-size: 1.4em;
	font-weight: 700;
    }

    a {
	letter-spacing: 0.05em;
	font-weight: 300;
	color: var(--sapphiric-black);
	text-decoration: none;
    }
}

.footer__middle {
    padding: 3em 0;
    border-top: 1px solid var(--sapphiric-pale-blue);
    border-bottom: 1px solid var(--sapphiric-pale-blue);
    text-align: center;
}

.footer__bottom {
    margin-top: 3em;
    text-align: center;
}

.button {
    border: 0;
    outline: 0;
    display: inline-block;
    text-decoration: none;
    padding: 0.5em 1.5em;
    border-radius: 10em;
    cursor: pointer;
    font-weight: 500;
    background-color: var(--sapphiric-pale-blue);
    &.button--alt {
	background-color: var(--sapphiric-blue);
	color: white;
    }
}

a.button {
    color: var(--sapphiric-black);
}

a.SuperJuicy {
    background: linear-gradient(90deg, var(--sapphiric-purple) 0%, transparent 100%);
    background-color: var(--sapphiric-blue);
    color: white;
    transition: background-color 0.5s ease-in-out;
}

.SuperJuicy:hover, .SuperJuicy:focus {
    background-color: var(--sapphiric-red);
}

.buttons {
    margin-top: 3em;
    text-align: center;
}

.hero {
    min-height: calc(100vh - var(--topnav-height) - 2em);
    padding: 1em;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.title {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    font-size: 2em;
    text-align: center;
    font-weight: 600;
}

.subtitle {
    margin-bottom: 0.5em;
    font-size: 1.5em;
    text-align: center;
    font-family: 'Arapey';
}

.section {
    min-height: 40em;
    background: linear-gradient(180deg, var(--sapphiric-pale-blue) 0%, white 50%);
    padding: 1em;
}

.promo-img {
    width: 180px;
}

.reason-to-care {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    .title, .subtitle {
    line-height: 1.5em;
    }
}

.pricing-table {
    max-width: 400px;
    margin: 0 auto;

    .pricing-table__header {
	background-color: var(--sapphiric-blue);
	color: white;
	border-radius: 1em;
	font-size: 1.25em;
	padding: 1em 1em 4em;
	text-align: center;
	line-height: 1.5em;
    }

    .pricing-table__price {
	font-size: 1.5em;
	font-weight: 700;
	margin: 0 0.1em 0 0;
    }

    .pricing-table__body {
	margin: -4em 1em 0;
	border: 2px solid var(--sapphiric-blue);
	border-radius: 1em;
	line-height: 2em;
	padding: 1em;
	text-align: center;
	ul {
	    margin: 0;
	    padding: 0;
	    list-style-type: none;
	}
	background-color: white;
    }
}


@media only screen and (max-device-width:1024px) {
    .footer__nav {
	display: block;
	text-align: center;
    }

    .topnav__right, .topnav__left, .second-menu, .second-menu__backdrop {
	display: none;
    }

    .topnav__hamburger-menu {
	display: block;
    }

    .popup-menu.is-active {
	visibility: visible;
    }
}
