:root {
    --light-bg-color: oklch(96.1151% 0 0);
    --dark-bg-color: oklch(32.1785% 0.02476 255.701624);
    --text-color: oklch(27.8078% 0.029596 256.847952);
    --light-text-color: oklch(89.4994% 0.011585 252.096176);
    --vibrant-purple-color: oklch(49.12% 0.3096 275.75);
    --pale-purple-color: oklch(89.824% 0.06192 275.75);
    --divider-color: #dcdcdc;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Inter", serif;
    color: var(--text-color);
}

h1, h2, h3, p, ul {
    margin: 0;
}

ul {
    padding-left: 0;
    list-style-type: none;
}

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

img {
    width: 100%;
    display: block;
}

button {
    background-color: transparent;
    border: none;
    padding: 0;
}

/* Basic */
.container {
    max-width: 80rem;
    padding: 2rem;
    margin: 0 auto;
}

.flex {
    display: flex;
}

.flex-1 {
    flex: 1 1 0;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.align-center {
    align-items: center;
}

.hidden {
    display: none;
}

.text-center {
    text-align: center;
}

.w-100 {
    width: 100%;
}

.title {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 2.5rem;
    letter-spacing: -0.001em;
}

/* Header */
.header {
    background-color: var(--light-bg-color);
}

.header__nav {
    padding: 1rem 2rem;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
    line-height: 1.75rem;
    font-weight: 800;
}

.play-store {
    display: none;
}

.mobile-menu {
    display: none;
}

.mobile-menu.open {
    display: block;
    position: fixed;
    z-index: 200;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: var(--light-bg-color);
    padding: 1rem 2rem;
    line-height: 1.5;
}

.close-mobile-menu-button {
    position: fixed;
    right: 33px;
    z-index: 210;
}

.mobile-menu__list {
    padding: 2.5rem 0 1rem 0;
}

.mobile-menu__list::after {
    content: '';
    display: block;
    width: 100%;
    height: 0.125rem;
    background-color: var(--divider-color);
}

.mobile-menu__list-item:not(:last-child) {
    margin-bottom: 1rem;
}

.mobile-menu__list-item:last-child {
    padding-bottom: 2rem;
}

.mobile-menu__list-item:hover {
    text-decoration-line: underline;
}

.header__menu-icon {
    vertical-align: middle;
}

/* Hero */
.hero__content-container {
    flex-direction: column;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.hero__paragraph {
    text-align: center;
    font-size: 1.125rem;
    line-height: 1.625;
    opacity: 0.8;
}

.hero__developer-img {
    width: 3rem;
    height: 3rem;
    overflow: hidden;
    border: 4px solid white;
    border-radius: 50%;
}

.hero__developer-img:not(:first-child) {
    margin-left: calc(-1.25rem* calc(1 - 0));
}

.hero__star-item {
    height: 20px;
}

.star-icon {
    vertical-align: sub;
    color: rgb(234 179 8);
}

.hero__testimonial-container {
    flex-direction: column;
    gap: 0.75rem;
}

.hero__subtext {
    font-size: 1rem;
    line-height: 1.5rem;
    color: var(--text-color) / 1;
    opacity: 0.8;
}

.hero__subtext--bold {
    font-weight: 600;
    color: var(--text-color);
}

.hero__stars {
    flex-direction: column;
    gap: 0.25rem;
}

/* Problem section */
.problem-section {
    background-color: var(--dark-bg-color);
}

.problem {
    padding: 4rem 2rem;
    text-align: center;
    color: var(--light-text-color);
}

.problem__title {
    max-width: 48rem;
    margin-bottom: 1.5rem;
}

.problem__paragraph {
    max-width: 36rem;
    margin: 0 auto 3rem auto;
    font-size: 1.125rem;
    line-height: 1.625;
    opacity: 0.9;
}

.problem__list {
    flex-direction: column;
}


.problem__list-item {
    flex-direction: column;
    align-items: center;
}

.arrow-icon {
    margin: 1.5rem 0;
    transform: scaleX(-1);
    opacity: 0.7;
}

.problem__emoji {
    display: block;
    font-size: 2.25rem;
    line-height: 2.5rem;
    margin-bottom: 0.5rem;
}

.problem__subtitle {
    font-weight: 700;
    font-size: inherit;
}

/* Pricing */
.pricing-section {
    background-color: var(--light-bg-color);
}

.pricing {
    max-width: 64rem;
    padding: 6rem 2rem;
}

.pricing__tag {
    margin-bottom: 2rem;
    font-weight: 500;
    color: var(--vibrant-purple-color);
}

.pricing__title {
    font-size: 1.875rem;
    line-height: 2.25rem;
    font-weight: 700;
}

.pricing__offer {
    position: relative;
    max-width: 32rem;
    margin: 5rem auto 0 auto;
    padding: 2rem;
    border-radius: 9px;
    border: 1px solid var(--vibrant-purple-color);
    background-color: white;
}

.pricing__badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 1.25rem;
    padding-left: 0.563rem;
    padding-right: 0.563rem;
    font-size: 0.75rem;
    line-height: 1rem;
    font-weight: 600;
    border-radius: 1.9rem;
    background-color: var(--vibrant-purple-color);
    color: var(--pale-purple-color);
}

.pricing__offer-title {
    margin-bottom: 1.25rem;
    font-size: 1.125rem;
    line-height: 1.75rem;
    font-weight: 700;
}

.pricing__price-container {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.pricing__price {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.02em;
}

.pricing__currency {
    font-size: 0.75rem;
    line-height: 1rem;
    font-weight: 600;
    color: var(--text-color);
    opacity: 0.6;
}

.pricing__list {
    margin-bottom: 1.25rem;
    color: var(--text-color);
}

.pricing__list-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    line-height: 1.625;
}

.pricing__list-item:not(:last-child) {
    margin-bottom: 0.625rem;
}

.check-icon {
    opacity: 0.8;
}

.pricing__subtext {
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.25rem;
    color: var(--text-color);
    opacity: 0.8;
}

/* FAQ */
.faq-section {
    background-color: var(--light-bg-color);
}

.faq {
    padding: 6rem 2rem;
}

.faq__tag {
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--vibrant-purple-color);
}

.faq__title {
    margin-bottom: 3rem;
    font-size: 1.875rem;
    font-weight: 800;
    line-height: 2.25rem;
}

.faq__list-item {
    border-top: 1px solid #ddd;
}

.faq__list-item-question-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 0;
    gap: 0.5rem;
    cursor: pointer;
}

.faq__list-item-icon {
    flex-shrink: 0;
}

.faq__list-item-question-container.open .faq__list-item-question {
    color: var(--vibrant-purple-color);
}

.faq__list-item-question {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5rem;
}

.faq__list-item-answer {
    max-height: 0;
    overflow: hidden;
    line-height: 1.625;
    transition: max-height 0.3s ease-out, opacity 0.3s;
    opacity: 0.8;
}

.faq__list-item-answer-text {
    padding-bottom: 1.25rem;
}

.faq__list-item-question-container svg {
    transition: transform 0.3s;
}

.faq__list-item-question-container.open svg {
    transform: rotate(180deg);
}

/* Stay Organized */
.stay-organized-section {
    position: relative;
    min-height: 100vh;
    padding: 2rem;
    background-image: url("../images/stay-organized-img.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.stay-organized-section::before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: oklch(0.32 0.02 255.7);
    opacity: 0.7;
    z-index: 1;
}

.stay-organized {
    position: relative;
    z-index: 100;
    max-width: 38rem;
    padding: 2rem;
    color: var(--light-text-color);
}

.stay-organized__title {
    margin-bottom: 2rem;
    font-size: 1.875rem;
    font-weight: 700;
    line-height: 2.25rem;
}

.stay-organized__paragraph {
    margin-bottom: 3rem;
    font-size: 1.125rem;
    line-height: 1.75rem;
    opacity: 0.8;
}

/* Footer */
.footer {
    padding: 6rem 2rem;
    background-color: var(--light-bg-color);
}

.logo-link--footer {
    font-size: 1rem;
    line-height: 1.5rem;
}

.footer__description,
.footer__copyright,
.footer__version {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: var(--text-color);
}

.footer__description {
    opacity: 0.8;
}

.footer__copyright,
.footer__version {
    opacity: 0.6;
}

.footer__links {
    margin-top: 2.5rem;
}

.links__section {
    padding: 0 1rem;
}

.footer__info {
    max-width: 14rem;
    margin: auto;
}

.footer__links-title {
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.25rem;
    letter-spacing: 0.1em;
    color: var(--text-color);
    opacity: 0.6;
}

.footer__links__link a {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.footer__links__link:not(:last-child) {
    margin-bottom: 0.5rem;
}

.footer__links__link:hover {
    text-decoration-line: underline;
}

    .links__section:last-child {
    margin-top: 2.5rem;
}

/* Tablet */
@media screen and (min-width: 640px) {
    .header__nav {
        max-width: 640px;
    }
    .mobile-menu.open {
        max-width: 24rem;
        right: 0;
    }

    /* FAQ */
    .faq__title {
        font-size: 2.25rem;
        line-height: 2.5rem;
    }
}

@media screen and (min-width: 768px) {
    .header__nav {
        max-width: 768px;
        margin: auto;
    }

    .hero__title {
        margin-bottom: -1rem;
    }

    .hero__testimonial-container {
        flex-direction: row;
    }

    .hero__stars-list {
        justify-content: left;
    }

    /* Problem section */
    .problem {
        padding: 8rem 2rem;
    }

    .problem__title {
        margin: 0 auto 2rem auto;
        font-size: 3rem;
        line-height: 1;
    }

    .problem__subtitle {
        line-height: 1.5;
    }

    .problem__paragraph {
        margin-bottom: 5rem;
    }

    .problem__list {
        flex-direction: row;
    }

    .problem__list,
    .problem__list-item {
        gap: 1.5rem;
    }

    .problem__list-item {
        flex-direction: row;
        align-items: flex-start;
    }

    .problem__list-item__emoji-block {
        width: 12rem;
    }

    .arrow-icon {
        margin: 0;
        transform: rotate(269deg);
    }

    /* FAQ */
    .faq {
        display: flex;
        gap: 5rem;
    }

    .faq__title-container,
    .faq__list {
        flex-basis: 50%;
    }

    .faq__list-item-question {
        font-size: 1.125rem;
        line-height: 1.75rem;
    }

    /* Stay Organized */
    .stay-organized__title {
        margin-bottom: 3rem;
        font-size: 3rem;
        line-height: 1;
    }

    .stay-organized__paragraph {
        font-size: 1.125rem;
        line-height: 1.75rem;
        margin-bottom: 4rem;
    }

    /* Footer */
    .footer__content {
        max-width: 80rem;
        margin: auto;
        display: flex;
        text-align: left;
        gap: 2rem;
    }

    .logo-link--footer {
        justify-content: left;
        font-size: 1.125rem;
        line-height: 1.75rem;
    }

    .footer__info,
    .links__section:last-child {
        margin: 0;
    }

    .footer__links {
        display: flex;
        margin: 0;
        flex-grow: 1;
    }

    .links__section {
        width: 50%;
    }
}

/* Desktop */
@media screen and (min-width: 1024px) {
    .header__nav {
        max-width: 1024px;
        margin: auto;
    }

    .open-mobile-menu-button {
        display: none;
    }

    .mobile-menu {
        display: block;
    }

    .play-store {
        display: flex;
    }

    .logo-link--mobile-menu,
    .mobile-menu__list::after {
        display: none;
    }

    .mobile-menu__list {
        display: flex;
        gap: 3rem;
        padding: 0;
    }

    .mobile-menu__list-item:last-child {
        padding-bottom: 0;
    }

    .mobile-menu__list-item:not(:last-child) {
        margin-bottom: 0;
    }

    /*  Hero  */
    .hero {
        display: flex;
        align-items: center;
        gap: 5rem;
        padding: 5rem 2rem;
    }

    .hero__title {
        text-align: left;
        font-size: 3.75rem;
        line-height: 1;
    }

    .hero__paragraph {
        text-align: left;
    }

    .hero__content-container {
        gap: 3.5rem;
        margin-bottom: 0;
    }

    .app-store-link {
        margin-right: auto;
    }

    .hero__testimonial-container {
        width: 100%;
    }

    /* Pricing */
    .pricing__title {
        font-size: 3rem;
        line-height: 1;
    }

    .pricing__offer-title {
        margin-bottom: 2rem;
        font-size: 1.25rem;
    }

    .pricing__price-container,
    .pricing__list {
        margin-bottom: 2rem;
    }

    /* Footer */
    .links__section {
        width: 33%;
    }

    .footer__links {
        justify-content: center;
    }
}

@media screen and (min-width: 1280px) {
    .header__nav {
        max-width: 1280px;
    }
}

@media (min-width: 1536px) {
    .header__nav {
        max-width: 1536px;
    }
}
