@import url("https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&display=swap");

:root {
    --core-primary-action: #6a39f4;
    --core-primary-action-shadow: #4b23b8;
    --lacquerstash-blue: #78bdbe;
    --lacquerstash-blue-rgb: 120, 189, 190;
    --ink: #1b2531;
    --link-blue: #1f4d8b;
    --link-blue-hover: #153a69;
    --surface-soft: rgba(235, 245, 246, 0.84);
    --surface-glass: rgba(255, 255, 255, 0.4);
    --container-max-width: 117rem;
    --header-height: clamp(7.2rem, 7vw, 11.5rem);
    --layout-gutter: clamp(1.6rem, 2.5vw, 3rem);
    --section-gap: clamp(2.4rem, 4vw, 5.6rem);
}

html {
    font-size: 62.5%;
}

body {
    margin: 0;
    font-family: "Sora", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 2rem;
    line-height: 1.5;
    color: var(--ink);
    background: #ffffff;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--link-blue);
    text-decoration: none;
}

a:link,
a:visited {
    color: var(--link-blue);
}

a:hover {
    color: var(--link-blue-hover);
    text-decoration: underline;
}

.imageWrapper {
    background:
        linear-gradient(rgba(255, 255, 255, 0.9), rgba(var(--lacquerstash-blue-rgb), 0.9)),
        url("./assets/headerimage.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: top center;
    min-height: 100vh;
    min-height: 100dvh;
    border-radius: 0;
}

.headerBackground {
    background-color: var(--surface-glass);
}

.container {
    width: min(100%, var(--container-max-width));
    margin-inline: auto;
    padding-inline: var(--layout-gutter);
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    grid-template-areas:
        "h h"
        "p i"
        "c c"
        "f f";
    column-gap: clamp(2rem, 3.5vw, 4.8rem);
    row-gap: clamp(3.2rem, 5vw, 7.2rem);
}

header {
    grid-area: h;
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(1.6rem, 3vw, 3rem);
}

.logo {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    min-height: var(--header-height);
}

.headerIcon {
    width: 5rem;
    height: 5rem;
    border-radius: 1.2rem;
    object-fit: cover;
    box-shadow: 0 6px 16px rgba(var(--lacquerstash-blue-rgb), 0.35), 0 2px 5px rgba(75, 35, 184, 0.2);
}

.headerName {
    margin: 0;
    font-weight: 700;
    white-space: nowrap;
    color: var(--ink);
}

.scroll {
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
}

.scroll::-webkit-scrollbar {
    display: none;
}

nav > ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: clamp(1.6rem, 2.2vw, 3rem);
    margin: 0;
    padding: 0;
}

nav > ul li {
    padding: 0;
}

nav > ul li a {
    color: rgba(27, 37, 49, 0.74);
}

nav > ul li a:hover {
    color: var(--link-blue-hover);
    text-decoration: none;
}

.iphonePreview {
    grid-area: p;
    justify-self: center;
    align-self: start;
    width: min(100%, clamp(30rem, 31vw, 44rem));
}

.iphoneScreen {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.appInfo {
    grid-area: i;
    align-self: center;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
        "icon title"
        "desc desc"
        "buttons buttons";
    column-gap: clamp(1.4rem, 1.8vw, 3rem);
    row-gap: clamp(2rem, 2.8vw, 3.6rem);
}

.appIconShadow {
    grid-area: icon;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.1)) drop-shadow(0 1px 1px rgba(0, 0, 0, 0.2));
}

.appIconLarge {
    width: clamp(8rem, 9vw, 12rem);
    height: clamp(8rem, 9vw, 12rem);
    border-radius: clamp(2rem, 2vw, 2.8rem);
    object-fit: cover;
}

.appNamePriceContainer {
    grid-area: title;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0;
}

.appName {
    margin: 0;
    font-size: clamp(3.6rem, 3.2vw, 5rem);
    line-height: 1.08;
    color: var(--ink);
}

.appTagline {
    margin: 0.8rem 0 0;
    color: #152833;
    font-size: clamp(2rem, 1.7vw, 3.1rem);
    font-weight: 500;
    line-height: 1.3;
}

.appPrice {
    margin: 1.3rem 0 0;
    font-size: 2rem;
    font-weight: 400;
    color: var(--core-primary-action-shadow);
}

.appDescriptionContainer {
    grid-area: desc;
}

.appDescription {
    margin: 0;
    max-width: 42ch;
    font-size: clamp(1.7rem, 1.25vw, 2.6rem);
    line-height: 1.34;
    color: #1f3442;
}

.downloadButtonsContainer {
    grid-area: buttons;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.6rem;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.1)) drop-shadow(0 1px 1px rgba(0, 0, 0, 0.2));
}

.appStore,
.playStore {
    height: clamp(5.8rem, 4.9vw, 7.5rem);
    width: auto;
    display: block;
}

.featuresSection {
    grid-area: c;
    display: grid;
    gap: clamp(2.8rem, 3.6vw, 4.8rem);
    border-radius: 3rem;
    background: var(--surface-soft);
    border: 1px solid rgba(255, 255, 255, 0.85);
    padding: clamp(2.4rem, 3vw, 5rem);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.featuresHeading {
    margin: 0;
    font-size: clamp(3.2rem, 3vw, 4.4rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: #0f2027;
}

.featuresGrid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(2rem, 2.4vw, 3.2rem) clamp(1.8rem, 2vw, 2.4rem);
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    min-width: 0;
}

.featureEmoji {
    width: 4.2rem;
    height: 4.2rem;
    min-width: 4.2rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #efefef;
    font-size: 2.2rem;
    line-height: 1;
}

.featureText {
    min-width: 0;
}

.featureText h3 {
    margin: 0;
    font-size: clamp(1.7rem, 1.05vw, 2rem);
    line-height: 1.22;
    color: #000000;
    white-space: nowrap;
}

.featureText p {
    margin: 0.6rem 0 0;
    color: #4c5966;
    line-height: 1.36;
    font-size: clamp(1.5rem, 0.95vw, 1.9rem);
    white-space: nowrap;
}

footer {
    grid-area: f;
    display: grid;
    justify-items: center;
    gap: clamp(1.8rem, 2.6vw, 2.8rem);
    padding-block: clamp(1.6rem, 2.4vw, 3.2rem) clamp(2.8rem, 3vw, 4.2rem);
}

.footerText {
    width: 100%;
    margin: 0;
    text-align: center;
    color: #4c5966;
    line-height: 1.5;
}

.footerLinks {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    text-align: center;
    gap: 0 1.4rem;
}

.footerLinks a {
    margin: 0;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}

.footerLinks a + a {
    padding-left: 2rem;
    position: relative;
}

.footerLinks a + a::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #8a95a2;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.copyright {
    margin: 0;
    color: #5f6f7f;
    font-size: 1.7rem;
}

.subPageBody {
    background: #ffffff;
    color: #000000;
}

.subPageHeaderBackground {
    background: #ffffff;
    border-bottom: 1px solid #efefef;
}

.subPageHeaderBackground .headerName {
    color: #000000;
}

.subPageHeaderBackground nav > ul li a {
    color: rgba(0, 0, 0, 0.62);
}

.subPageHeaderBackground nav > ul li a:hover {
    color: var(--link-blue-hover);
}

.subPageContainer {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
        "h"
        "p"
        "f";
}

.page {
    grid-area: p;
    width: min(100%, 78rem);
    margin: 0 auto;
    color: rgba(0, 0, 0, 0.8);
    line-height: 1.6;
    font-size: 1.8rem;
}

.page h1 {
    color: #000000;
    margin: 0 0 1.8rem;
    font-size: clamp(3rem, 2.2vw, 3.6rem);
}

.page h2 {
    margin: 2.4rem 0 1rem;
    color: #000000;
    font-size: clamp(2.1rem, 1.6vw, 2.5rem);
}

.page p,
.page li {
    margin: 0 0 1rem;
}

.page ul {
    margin: 0 0 1.4rem 2.2rem;
}

@media only screen and (max-width: 1100px) {
    .featuresGrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media only screen and (max-width: 992px) {
    .container {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "h"
            "i"
            "p"
            "c"
            "f";
    }

    header {
        min-height: clamp(7rem, 8vw, 10rem);
    }

    .appInfo {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "icon"
            "title"
            "desc"
            "buttons";
        justify-items: center;
        text-align: center;
    }

    .appNamePriceContainer {
        align-items: center;
    }

    .downloadButtonsContainer {
        justify-content: center;
    }

    .iphonePreview {
        width: min(100%, 44rem);
    }

    .page {
        width: min(100%, 78rem);
    }
}

@media only screen and (max-width: 768px) {
    .headerName {
        display: none;
    }

    .scroll {
        min-height: clamp(6.8rem, 7.2vw, 8rem);
    }

    nav > ul {
        gap: 1.6rem;
    }

    .appDescription {
        max-width: 30ch;
        font-size: clamp(1.6rem, 3.8vw, 2.1rem);
        text-wrap: balance;
    }

    .featuresGrid {
        grid-template-columns: 1fr;
    }

    .featureText h3 {
        white-space: nowrap;
    }

    .footerLinks a + a {
        padding-left: 1.8rem;
    }
}

@media only screen and (max-width: 528px) {
    .downloadButtonsContainer {
        flex-direction: column;
    }

    .appStore,
    .playStore {
        height: clamp(5.6rem, 13vw, 7rem);
    }

    .footerLinks {
        row-gap: 0.8rem;
    }
}
