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

:root {
    color-scheme: light;
    --ink: #49332b;
    --muted: #79665c;
    --cream: #fff5dc;
    --grass: #78c536;
    --green: #369b43;
    --blue: #74c8ee;
    --yellow: #ffcf4e;
    --red: #f45e48;
    --outline: #593a2b;
    --shadow: 0 8px 0 rgb(73 51 43 / 14%);
    font-family: "DM Sans", "Trebuchet MS", sans-serif;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--cream);
}

a {
    color: inherit;
}

a:focus-visible {
    outline: 3px solid var(--red);
    outline-offset: 4px;
}

.site-header {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1200px, calc(100% - 64px));
    height: 88px;
    left: 50%;
    transform: translateX(-50%);
}

.brand {
    display: inline-flex;
    width: 148px;
    align-items: center;
}

.brand img {
    display: block;
    width: 100%;
    height: auto;
}

.site-header nav {
    display: flex;
    align-items: center;
    gap: 34px;
    font-size: 0.9rem;
    font-weight: 700;
}

.site-header nav a {
    text-decoration: none;
}

.site-header nav a:not(.nav-cta):hover {
    color: var(--green);
}

.site-header .nav-cta {
    padding: 12px 19px;
    border: 2px solid var(--outline);
    border-radius: 999px;
    background: var(--yellow);
    box-shadow: 0 4px 0 var(--outline);
}

.site-header .nav-cta span {
    margin-left: 5px;
}

.hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    align-items: center;
    gap: 30px;
    min-height: 710px;
    padding: 130px max(32px, calc((100% - 1120px) / 2)) 80px;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 88% 13%, rgb(255 255 255 / 47%) 0 3%, transparent 3.4%),
        radial-gradient(ellipse at 82% 15%, rgb(255 255 255 / 48%) 0 5%, transparent 5.4%),
        linear-gradient(180deg, #81d0f1 0%, #63bde9 76%, #75caee 100%);
}

.hero::after {
    position: absolute;
    z-index: 0;
    right: -5%;
    bottom: -110px;
    left: -5%;
    height: 215px;
    border-radius: 50% 50% 0 0 / 34% 34% 0 0;
    background: linear-gradient(180deg, #88d739 0 20%, #68bf32 20% 100%);
    content: "";
}

.hero-copy {
    position: relative;
    z-index: 1;
    max-width: 520px;
    padding-bottom: 22px;
}

.eyebrow {
    margin: 0 0 15px;
    color: var(--green);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero .eyebrow {
    color: #255c79;
}

.hero .eyebrow span {
    color: var(--yellow);
    font-size: 1.2rem;
    vertical-align: -1px;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    font-family: "Fredoka", "Trebuchet MS", sans-serif;
}

.hero h1 {
    margin-bottom: 18px;
    font-size: clamp(2.7rem, 5vw, 4.25rem);
    font-weight: 700;
    letter-spacing: -0.045em;
    line-height: 1.04;
}

.hero h1 span {
    color: #fff8e7;
    text-shadow: 0 3px 0 rgb(45 105 137 / 26%);
}

.hero-description {
    max-width: 450px;
    margin-bottom: 28px;
    color: #31566a;
    font-size: 1.08rem;
    line-height: 1.7;
}

.store-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.store-button {
    display: inline-flex;
    min-width: 178px;
    align-items: center;
    gap: 11px;
    padding: 10px 16px;
    border: 2px solid #211e1c;
    border-radius: 12px;
    color: white;
    background: #211e1c;
    box-shadow: 0 4px 0 rgb(25 23 22 / 22%);
    text-decoration: none;
    transition: transform 140ms ease, box-shadow 140ms ease;
}

.store-button:hover {
    box-shadow: 0 2px 0 rgb(25 23 22 / 22%);
    transform: translateY(2px);
}

.store-button small,
.store-button strong {
    display: block;
    line-height: 1.15;
}

.store-button small {
    font-size: 0.64rem;
    font-weight: 500;
}

.store-button strong {
    font-size: 1.05rem;
    letter-spacing: -0.02em;
}

.store-icon {
    display: grid;
    width: 27px;
    height: 30px;
    flex: 0 0 auto;
    place-items: center;
    font-size: 1.65rem;
}

.apple-icon {
    position: relative;
    font-size: 1.4rem;
}

.apple-icon::before {
    position: absolute;
    top: 0;
    left: 16px;
    width: 7px;
    height: 4px;
    border-radius: 7px 0;
    background: #fff;
    content: "";
    transform: rotate(-38deg);
}

.play-icon {
    color: #83d6ff;
    font-size: 1.45rem;
    text-shadow: -2px 0 #9be870, 2px 0 #ff786c;
}

.hero-note {
    margin: 19px 0 0;
    color: #31566a;
    font-size: 0.82rem;
    font-weight: 600;
}

.hero-note span {
    margin-right: 5px;
    font-size: 1.05rem;
}

.hero-art {
    position: relative;
    z-index: 1;
    align-self: end;
    width: min(100%, 570px);
    margin: 0 auto -22px;
}

.sunburst {
    position: absolute;
    top: 3%;
    left: 11%;
    width: 77%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: rgb(255 222 102 / 55%);
    filter: blur(1px);
}

.hero-mole {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 16px 0 rgb(52 111 53 / 12%));
}

.hero-sticker {
    position: absolute;
    right: 0;
    bottom: 14%;
    padding: 12px 17px;
    border: 2px solid var(--outline);
    border-radius: 16px 16px 16px 4px;
    background: var(--yellow);
    box-shadow: var(--shadow);
    font-family: "Fredoka", sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    transform: rotate(5deg);
}

.hero-sticker span {
    margin-right: 4px;
}

.scroll-cue {
    position: absolute;
    z-index: 1;
    bottom: 27px;
    left: 50%;
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 2px solid rgb(73 51 43 / 38%);
    border-radius: 50%;
    color: var(--ink);
    font-size: 1.2rem;
    text-decoration: none;
    transform: translateX(-50%);
}

.how-section {
    position: relative;
    z-index: 1;
    padding: 105px 32px 110px;
    background: var(--cream);
}

.section-heading {
    max-width: 650px;
    margin: 0 auto 52px;
    text-align: center;
}

.section-heading h2,
.screenshots-intro h2,
.download-copy h2 {
    margin-bottom: 12px;
    font-size: clamp(2.15rem, 4vw, 3.1rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.08;
}

.section-heading > p:last-child,
.screenshots-intro > p:last-child,
.download-copy > p:not(.eyebrow) {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.7;
}

.steps {
    display: grid;
    width: min(100%, 1020px);
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 0 auto;
}

.step-card {
    position: relative;
    min-height: 245px;
    padding: 30px 28px;
    border: 2px solid #e8d39d;
    border-radius: 24px;
    background: #fffaf0;
    box-shadow: var(--shadow);
}

.step-number {
    position: absolute;
    top: 22px;
    right: 24px;
    color: #c3ad7e;
    font-family: "Fredoka", sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
}

.step-emoji {
    display: grid;
    width: 54px;
    height: 54px;
    margin-bottom: 22px;
    place-items: center;
    border-radius: 50%;
    background: #e9f5d3;
    font-size: 1.65rem;
}

.step-card:nth-child(2) .step-emoji {
    background: #fff0c1;
}

.step-card:nth-child(3) .step-emoji {
    background: #ffe2d7;
}

.step-card h3 {
    margin-bottom: 8px;
    font-size: 1.35rem;
}

.step-card p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.screenshots-section {
    padding: 100px 32px 120px;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 8% 12%, rgb(255 255 255 / 34%) 0 3%, transparent 3.5%),
        linear-gradient(180deg, #73c8ee 0%, #8bd4f2 100%);
}

.screenshots-intro {
    max-width: 660px;
    margin: 0 auto 55px;
    text-align: center;
}

.screenshots-intro .eyebrow {
    color: #286987;
}

.screenshots-intro h2 span {
    color: var(--red);
    text-shadow: 0 2px 0 #fff5dc;
}

.screenshots-grid {
    display: grid;
    width: min(100%, 1120px);
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
    gap: 22px;
    margin: 0 auto;
}

.screenshot-card {
    margin: 0;
}

.screenshot-card:nth-child(even) {
    margin-top: 34px;
}

.phone-frame {
    overflow: hidden;
    padding: 7px;
    border: 2px solid var(--outline);
    border-radius: 30px;
    background: #292521;
    box-shadow: 0 9px 0 rgb(73 51 43 / 22%);
    transition: transform 180ms ease;
}

.screenshot-card:hover .phone-frame {
    transform: translateY(-7px) rotate(-1deg);
}

.screenshot-card:nth-child(even):hover .phone-frame {
    transform: translateY(-7px) rotate(1deg);
}

.phone-frame img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 22px;
}

.screenshot-card figcaption {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    font-family: "Fredoka", sans-serif;
    font-size: 1.02rem;
    font-weight: 600;
}

.screenshot-card figcaption span {
    color: #287da1;
    font-family: "DM Sans", sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
}

.download-section {
    position: relative;
    display: flex;
    min-height: 440px;
    align-items: center;
    justify-content: center;
    padding: 85px 32px 90px;
    overflow: hidden;
    background: #68bb37;
}

.download-section::before {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 48% 112%, #469d34 0 37%, transparent 37.5%);
    content: "";
}

.download-mole {
    position: absolute;
    right: max(4%, calc((100% - 1080px) / 2));
    bottom: -108px;
    width: min(30vw, 350px);
    opacity: 0.9;
}

.download-copy {
    position: relative;
    z-index: 1;
    width: min(100%, 680px);
    text-align: center;
}

.download-copy .eyebrow {
    color: #285b31;
}

.download-copy h2 span {
    color: #fff2bf;
}

.download-copy > p:not(.eyebrow) {
    margin-bottom: 24px;
    color: #315c35;
}

.download-copy .store-links {
    justify-content: center;
}

.site-footer {
    display: flex;
    min-height: 120px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 25px max(32px, calc((100% - 1120px) / 2));
    background: #fff8e8;
}

.site-footer img {
    display: block;
    width: 104px;
}

.site-footer p,
.site-footer > span {
    margin: 0;
    color: var(--muted);
    font-size: 0.78rem;
}

.site-footer > span {
    white-space: nowrap;
}

@media (max-width: 900px) {
    .hero {
        min-height: 650px;
        grid-template-columns: 1.1fr 0.9fr;
        padding-right: 40px;
        padding-left: 40px;
    }

    .hero h1 {
        font-size: clamp(2.55rem, 6vw, 3.7rem);
    }

    .hero-sticker {
        right: -10px;
        font-size: 0.9rem;
    }

    .screenshots-grid {
        grid-template-columns: repeat(2, minmax(0, 230px));
        justify-content: center;
        gap: 34px 26px;
    }

    .screenshot-card:nth-child(even) {
        margin-top: 30px;
    }
}

@media (max-width: 640px) {
    .site-header {
        width: calc(100% - 36px);
        height: 72px;
    }

    .brand {
        width: 112px;
    }

    .site-header nav {
        gap: 0;
    }

    .site-header nav a:not(.nav-cta) {
        display: none;
    }

    .site-header .nav-cta {
        padding: 10px 14px;
        font-size: 0.8rem;
    }

    .hero {
        display: flex;
        min-height: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 120px 24px 90px;
    }

    .hero-copy {
        padding-bottom: 0;
    }

    .hero h1 {
        font-size: clamp(2.7rem, 12vw, 4rem);
    }

    .hero-description {
        max-width: 500px;
        font-size: 1rem;
    }

    .store-links {
        gap: 10px;
    }

    .store-button {
        min-width: 0;
        padding: 9px 12px;
    }

    .store-button strong {
        font-size: 0.95rem;
    }

    .hero-art {
        width: min(100%, 440px);
        margin: 14px auto -20px;
    }

    .hero-sticker {
        right: 2px;
        bottom: 9%;
        padding: 9px 12px;
        font-size: 0.82rem;
    }

    .hero::after {
        bottom: -140px;
        height: 220px;
    }

    .scroll-cue {
        bottom: 21px;
    }

    .how-section,
    .screenshots-section {
        padding: 76px 22px 82px;
    }

    .section-heading {
        margin-bottom: 38px;
    }

    .steps {
        max-width: 420px;
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .step-card {
        min-height: 0;
        padding: 25px;
    }

    .step-emoji {
        margin-bottom: 15px;
    }

    .screenshots-intro {
        margin-bottom: 40px;
    }

    .screenshots-grid {
        max-width: 480px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 15px;
    }

    .screenshot-card:nth-child(even) {
        margin-top: 20px;
    }

    .phone-frame {
        padding: 5px;
        border-radius: 23px;
    }

    .phone-frame img {
        border-radius: 17px;
    }

    .screenshot-card figcaption {
        align-items: flex-start;
        gap: 6px;
        margin-top: 12px;
        font-size: 0.85rem;
        line-height: 1.3;
    }

    .download-section {
        min-height: 465px;
        padding: 65px 22px 175px;
    }

    .download-mole {
        right: 50%;
        bottom: -125px;
        width: min(65vw, 300px);
        transform: translateX(50%);
    }

    .site-footer {
        flex-direction: column;
        gap: 9px;
        padding: 25px 18px;
        text-align: center;
    }

    .site-footer img {
        width: 88px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
