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

:root {
    --background: rgba(246, 246, 246, 1);
    --text: rgba(30, 30, 30, 1);
    --text-muted: rgba(30, 30, 30, 0.5);
    --text-soft: rgba(30, 30, 30, 0.75);
    --primary: rgb(107, 142, 35);
    --light: rgba(255, 255, 255, 1);
    --shadow-light: rgba(30, 30, 30, 0.05);
    --shadow-inset: rgba(30, 30, 30, 0.5);
    --faq-muted: rgba(30, 30, 30, 0.75);
    --content-max: 70rem;
}

* {
    -webkit-font-smoothing: antialiased;
    box-sizing: border-box;
    font-family: Inter, sans-serif;
    line-height: 1.5;
    margin: 0;
    padding: 0;
    text-rendering: optimizeLegibility;
}

body {
    background-color: var(--background);
    display: flex;
    flex-direction: column;
    gap: 4rem;
    margin: auto;
    max-width: 90em;
    padding: 3em 0.5em;
    color: var(--text);
}

.code-pill {
    display: inline-block;
    background: var(--text);
    color: var(--light);
    border-radius: 999px;
    padding: 0.25em 0.6em;
    font-size: 0.85em;
    font-family: monospace;
    line-height: 1;
    vertical-align: baseline;
    white-space: nowrap;
}

header {
    display: flex;
    flex-direction: column;
    gap: 1em;
    padding: 3em 1.5em;
    text-align: center;
}

#logo {
    background: url(../img/logo.png) no-repeat center / contain;
    width: clamp(200px, 40vw, 400px);
    height: clamp(200px, 40vw, 400px);
    margin: 0 auto;
    border-radius: 25%; 
    box-shadow: 0 8px 20px var(--shadow-light); 
}

#headertext {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

#tagline {
    font-size: 3em;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.5;
}

#blurb {
    margin: auto;
    max-width: var(--content-max);
    letter-spacing: -0.01em;
    margin-top: 1em;
    line-height: 1.6;
    font-size: 1.25em;
}

a,
a:visited {
    color: var(--text);
    text-decoration: none;
}

a:hover {
    color: var(--primary);
}

.cta-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1em;
    text-align: center;
    justify-content: center;
    max-width: var(--content-max);
    margin-left: auto;
    margin-right: auto;
}

.cta-wrapper a {
    background-position: left 24px center;
    background-repeat: no-repeat;
    background-size: 24px;
    border-radius: 200em;
    display: inline-block;
    font-size: clamp(1em, 2.5vw, 1.25em);
    text-decoration: none;
    padding: 1em 2.5em 1em 60px;
    transition: all 0.2s ease;
    margin-top: 2.5em;
    width: auto;
    max-width: var(--content-max);
    text-align: center;
    white-space: nowrap;
}

.apple {
    background-image: url(../img/apple.svg);
    color: var(--light);
    background-color: var(--text);
}

.apple:hover {
    background-color: var(--primary);
    box-shadow: 0 0 7px var(--primary);
    color: var(--light);
}

.apple:visited {
    color: var(--light);
}

#faq {
    padding: 0 1.5em;
    margin: 0 auto;
    max-width: var(--content-max);
    text-align: left;
}

#faq h2 {
    font-size: clamp(2em, 8vw, 6em);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-top: 1em;
    margin-bottom: 0.5em;
    text-align: left;
}

.faq-item {
    margin-top: 1.5em;
    letter-spacing: -0.01em;
}

.faq-question {
    font-weight: 600;
    font-size: 1.1em;
    margin-bottom: 0.25em;
}

.faq-answer {
    font-size: 0.9em;
    color: var(--faq-muted);
    line-height: 1.4;
}

footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 1em;
    gap: 20px;
    text-align: center;
    max-width: var(--content-max);
    margin-left: auto;
    margin-right: auto;
}

footer div {
    display: flex;
}

footer a {
    background-color: transparent;
    border-radius: 50%;
    box-shadow: inset 0 0 1px var(--shadow-inset);
    display: block;
    font-size: 0;
    height: 44px;
    width: 44px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 24px;
    transition: all 0.15s;
}

footer a:hover {
    background-color: var(--light);
    box-shadow: 0 0 7px var(--shadow-light);
}

#email {
    background-image: url(../img/social/email.svg);
}

@media (min-width: 650px) {
    body {
        padding: 6vh 3vw;
        gap: 5em;
    }

    #tagline {
        font-size: clamp(2em, 8vw, 6em);
    }

    #blurb {
        font-size: clamp(1.5em, 3vw, 2.25em);
    }

    .faq-item {
        font-size: clamp(1em, 3vw, 1.5em);
    }
}

:where(#headertext, #blurb, .cta-wrapper, #faq, footer > *) {
    max-width: var(--content-max);
    margin-left: auto;
    margin-right: auto;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#logo,
#headertext,
.cta-wrapper,
#faq,
footer {
    animation: fadeIn 0.8s ease-out both;
}

#logo {
    animation-delay: 0s;
}

#headertext {
    animation-delay: 0.2s;
}

.cta-wrapper {
    animation-delay: 0.4s;
}

#faq {
    animation-delay: 0.6s;
}

footer {
    animation-delay: 0.8s;
}

#logo,
#headertext,
.cta-wrapper,
#faq,
footer {
    transition: all 0.4s ease;
}