:root {
    --page-max: 960px;
    --header-max: 1100px;
    --page-pad: clamp(20px, 4vw, 48px);
    --header-gap: clamp(8px, 2vw, 16px);
    --section-gap: clamp(20px, 4vw, 40px);
    --text-color: #111;
    --accent-color: #2d6cdf;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: var(--page-pad);
    font-family: "Helvetica Neue", "Helvetica", "Arial", sans-serif;
    color: var(--text-color);
    background: #fff;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

body > *:not(#parallaxBg):not(.scrollCue) {
    width: min(100%, var(--page-max));
    position: relative;
    z-index: 1;
}

#parallaxBg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: url("img/px_by_Gre3g.png");
    background-size: 300px;
    background-position: 0 0;
    background-repeat: repeat;
    opacity: 0.25;
    width: 100%;
    height: 100%;
    max-width: none;
    image-rendering: pixelated;
    will-change: background-position;
}

h1,
h2,
h3,
h4 {
    margin: 0 0 var(--header-gap);
    line-height: 1.15;
}

h1 {
    font-size: clamp(40px, 6vw, 72px);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(20px, 3.2vw, 30px);
    font-weight: 500;
}

h3 {
    font-size: clamp(22px, 3.8vw, 34px);
}

h4 {
    font-size: clamp(16px, 2.2vw, 20px);
    font-weight: 600;
}

p {
    margin: 0 0 var(--section-gap);
    font-size: clamp(15px, 1.8vw, 18px);
}

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

a:hover,
a:focus {
    text-decoration: underline;
}

hr {
    border: none;
    border-top: 1px solid #e6e6e6;
    margin: var(--section-gap) 0;
}

.mainCard {
    padding: clamp(20px, 4vw, 36px);
    margin: 0 0 var(--section-gap);
    background: #BBBBBB77;
    border: 1px solid #00000055;
    border-radius: 16px;
    box-shadow: 0 12px 28px 0px #00000033, inset 0 0 0px 1px #FFFFFFBB;
    backdrop-filter: blur(8px);
}

header.mainCard {
    width: min(100%, var(--header-max));
    margin-bottom: clamp(24px, 5vw, 56px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(16px, 4vw, 40px);
    position: relative;
    z-index: 2;
    margin-top: -48px;
}

.headerContent {
    flex: 1 1 auto;
}

.ctaGroup {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 0 1 40%;
    align-items: flex-end;
}

.ctaButton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid var(--accent-color);
    font-weight: 600;
    color: var(--accent-color);
    background: #fff;
    box-shadow: 0 2px 6px 0 #00000055;
}

.ctaPrimary {
    font-size: 1.2em;
    background: #FFFFFF77;
}

.ctaAccent {
    background: var(--accent-color);
    color: #fff;
}

.ctaButton:hover,
.ctaButton:focus {
    text-decoration: none;
    filter: brightness(0.97);
}

.ctaNote {
    margin: 0;
    font-size: 0.7rem;
    line-height: 1.4;
    color: #444;
    text-align: right;
}

.ctaGroup hr {
    width: 100%;
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.5);
    margin: 8px 0;
}

@media (max-width: 768px) {
    header.mainCard {
        flex-direction: column;
        align-items: stretch;
    }

    .ctaGroup {
        align-items: flex-start;
        flex-basis: auto;
    }

    .ctaNote {
        text-align: left;
    }
}

.mainCard:last-child {
    margin-bottom: 0;
}

#purposePromo {
    display: inline-block;
    padding-bottom: 1px;
    border-bottom: 2px solid #000;
    white-space: nowrap;
    transition: width 320ms ease;
}

#purposePromoText {
    display: inline-block;
    transition: opacity 260ms ease;
}

#feature {
    width: 100%;
    height: 32vh;
    margin: 0 0 8px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    will-change: transform;
}

.featureStage {
    position: relative;
    width: 100%;
    height: 100%;
}

.featureImage {
    position: absolute;
    top: 50%;
    left: 50%;
    max-height: 90%;
    max-width: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 520ms ease, transform 520ms ease;
}

.featureImage.is-active {
    opacity: 1;
    transform: translate(-50%, -50%);
}

.featureImage.is-next {
    opacity: 0;
    transform: translate(calc(-50% + 40px), -50%);
}

.featureImage.is-exiting {
    opacity: 0;
    transform: translate(calc(-50% - 40px), -50%);
}

.scrollCue {
    position: fixed;
    left: 50%;
    bottom: 16px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 1px solid #00000077;
    background: #000000BB;
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, 0);
    box-shadow: 0 10px 20px -12px #00000077, inset 0 0 0 1px #FFFFFF77;
    backdrop-filter: blur(8px);
    cursor: pointer;
    transition: opacity 480ms ease, filter 480ms ease, transform 480ms ease;
    opacity: 1;
    filter: blur(0px);
    z-index: 1;
}

.scrollCue.is-faded {
    opacity: 0;
    filter: blur(6px);
    transform: translate(-50%, -8px);
    pointer-events: none;
}

.scrollCueIcon {
    width: 42px;
    height: 42px;
    fill: currentColor;
}

@media (min-width: 769px) {
    #feature {
        height: 65vh;
    }

    header.mainCard {
        margin-top: -9vh;
    }
}

#featureBottom {
    width: 100%;
    height: 25vh;
    margin: 8px 0 0;
}

#diy,
#dify {
    margin-bottom: var(--section-gap);
}

.is-hidden {
    display: none;
}

.howToGetWrap {
    border-radius: 999px;
    box-shadow: 0 2px 6px 0 #00000055;
    overflow: hidden;
    margin: 0 0 var(--section-gap);
}

#howToGet {
    list-style: none;
    display: flex;
    gap: 0;
    padding: 0;
    margin: 0;
}

#howToGet li {
    flex: 1 1 50%;
}

#howToGet a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 8px 12px;
    border: 1px solid var(--accent-color);
    border-radius: 0;
    color: var(--accent-color);
    background: #FFFFFF77;
    font-weight: 600;
}

#howToGet a.is-active {
    background: var(--accent-color);
    color: #fff;
}

#howToGet li:first-child a {
    border-radius: 999px 0 0 999px;
}

#howToGet li:last-child a {
    border-radius: 0 999px 999px 0;
    margin-left: -1px;
}

#howToGet a:hover,
#howToGet a:focus {
    border-color: var(--accent-color);
    text-decoration: none;
}

#howToGet a.is-active:hover,
#howToGet a.is-active:focus {
    color: #fff;
}

#faq ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#faq li {
    margin: 0 0 4px;
}

#faq li.qst::before,
#faq li.ans::before {
    font-weight: 700;
    margin-right: 8px;
}

#faq li.qst::before {
    content: "Q:";
}

#faq li.ans::before {
    content: "A:";
}

#faq li.qst {
    font-weight: 700;
}

#faq li.ans {
    margin-bottom: 20px;
}
