@font-face {
    font-family: "Perfektta";
    src: url("fonts/font-ExtraBold.woff2") format("woff2");
    font-style: normal;
    font-weight: 800;
    font-display: swap;
}

:root {
    --yellow: #ffcc00;
    --yellow-hover: #ffe006;
    --yellow-shadow: #e2ae00;
    --ink: #1C0814;
    --purple: #C68BFF;
    --purple-dark: #A873D9;
    --purple-hover: #D7A8FF;
    --gray: #626262;
    --light-line: #e8e8e8;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
}

body {
    min-height: 100vh;
    background: var(--white);
    color: var(--ink);
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

.phone-page {
    width: min(100%, 390px);
    min-height: 100vh;
    margin: 0 auto;
    background: var(--white);
    overflow: visible;
}

.brand-header {
    display: flex;
    justify-content: center;
    padding: 4px 20px 42px;
}

.brand {
    display: inline-flex;
    align-items: center;
    line-height: 0;
}

.brand img {
    width: 230px;
    height: auto;
}

.intro {
    padding: 0 20px 42px;
    display: grid;
    text-align: center;
}

.intro-copy {
    display: contents;
}

.intro-visual {
    display: block;
    order: 3;
}

.intro h1 {
    order: 1;
}

.intro .download-button {
    order: 3;
}

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

h1 {
    margin-bottom: 72px;
    color: var(--ink);
    font-family: "Perfektta", "Inter", system-ui, sans-serif;
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
}

.rotating-place {
    color: var(--yellow);
}

.animal-row {
    width: min(100%, 340px);
    margin: 0 auto;
}

.animals-strip {
    padding: 0 20px;
    background: var(--yellow);
}

.download-button {
    position: relative;
    z-index: 2;
    width: calc(100% - 18px);
    min-height: 56px;
    margin: 0 auto;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--purple);
    color: var(--white);
    font-family: "Perfektta", "Inter", system-ui, sans-serif;
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 7px 0 var(--purple-dark);
    transition: background-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.download-button:hover {
    background: var(--purple-hover);
}

.download-button:active {
    transform: translateY(5px);
    box-shadow: 0 2px 0 var(--purple-dark);
}

.discover {
    padding: 0px 28px 0;
    text-align: center;
}

.intro-elephant {
    display: none;
}

.intro-ape {
    position: relative;
    z-index: 1;
    display: block;
    width: 250px;
    height: 250px;
    margin: 10px auto 0;
    object-fit: cover;
    object-position: center bottom;
    background: var(--white);
}

.gorilla {
    width: 250px;
    height: 250px;
    margin: 0 auto -34px;
    object-fit: cover;
    object-position: center bottom;
    background: var(--white);
}

.feature-animal {
    display: block;
}

.discover h2,
.how-it-works h2,
.collect h2 {
    margin-bottom: 0;
    color: var(--yellow);
    font-family: "Perfektta", "Inter", system-ui, sans-serif;
    font-size: 27px;
    font-weight: 800;
    line-height: 1.05;
    text-align: center;
}

.discover p {
    width: min(100%, 305px);
    margin: 0 auto;
    color: var(--ink);
    font-size: 14px;
    line-height: 1.18;
}

.how-it-works {
    margin-top: -18px;
    padding: 0 20px 26px;
}

.elephant {
    position: relative;
    z-index: 1;
    width: 260px;
    margin: -88px auto 18px;
}

.how-it-works h2 {
    position: relative;
    z-index: 2;
    margin-bottom: -8px;
}

.steps {
    margin: 0;
    padding: 0;
    list-style: none;
}

.steps li {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 9px;
    margin-bottom: 10px;
}

.step-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--yellow);
    color: var(--white);
    font-family: "Perfektta", "Inter", system-ui, sans-serif;
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
}

.steps h3 {
    margin-bottom: 2px;
    font-family: "Perfektta", "Inter", system-ui, sans-serif;
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
}

.steps p {
    margin-bottom: 0;
    color: var(--ink);
    font-size: 13px;
    line-height: 1.16;
}

.collect {
    padding: 0 28px 10px;
    text-align: center;
}

.collect h2 {
    margin-bottom: 8px;
}

.collect p {
    width: min(100%, 310px);
    margin: 0 auto 10px;
    color: var(--ink);
    font-size: 14px;
    line-height: 1.18;
}

.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 260px);
    min-height: 52px;
    border-radius: 16px;
    background: var(--purple);
    color: var(--white);
    font-family: "Perfektta", "Inter", system-ui, sans-serif;
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 7px 0 var(--purple-dark);
    transition: background-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.text-link:hover {
    background: var(--purple-hover);
}

.text-link:active {
    transform: translateY(5px);
    box-shadow: 0 2px 0 var(--purple-dark);
}

.flamingo {
    width: 230px;
    height: 230px;
    margin: 18px auto 0;
    object-fit: cover;
    object-position: center bottom;
    background: var(--white);
    transform: scaleX(-1);
}

.footer-cta {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    background: var(--yellow);
    overflow: hidden;
}

.final-cta {
    width: min(100%, 390px);
    margin: 0 auto;
    padding: 22px 22px 0;
    color: var(--ink);
    text-align: center;
}

.final-cta h2 {
    margin-bottom: 8px;
    font-family: "Perfektta", "Inter", system-ui, sans-serif;
    font-size: 27px;
    font-weight: 800;
    line-height: 1.08;
}

.final-cta p {
    width: min(100%, 310px);
    margin: 0 auto 14px;
    font-size: 13px;
    line-height: 1.18;
}

.store-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.store-badge {
    width: 106px;
    height: 36px;
    border: 1px solid var(--ink);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--ink);
    color: var(--white);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

.store-badge span {
    margin-bottom: 2px;
    font-size: 6px;
    font-weight: 700;
    letter-spacing: 0.02em;
    opacity: 0.9;
}

.dex-page {
    width: min(100%, 390px);
    min-height: 100vh;
    margin: 0 auto;
    background: var(--white);
}

.dex-intro {
    padding: 0 16px 26px;
    text-align: center;
}

.dex-heading {
    margin: 0 auto 8px;
    color: var(--yellow);
    font-family: "Perfektta", "Inter", system-ui, sans-serif;
    font-size: 38px;
    font-weight: 800;
    line-height: 1.02;
    text-align: center;
}

.dex-subtitle {
    margin-bottom: 28px;
    color: var(--ink);
    font-size: 17px;
    font-weight: 400;
    line-height: 1.25;
}

.dex-filters {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.dex-filter {
    min-height: 46px;
    border: 1px solid var(--light-line);
    border-radius: 999px;
    background: var(--white);
    color: var(--ink);
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.dex-filter.is-active {
    border-color: var(--yellow);
    background: var(--yellow);
}

.dex-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 26px 18px;
    padding: 0 16px 44px;
}

.dex-card {
    min-width: 0;
}

.dex-number {
    display: block;
    margin-bottom: 10px;
    color: var(--ink);
    font-size: 13px;
    line-height: 1;
}

.dex-visual {
    position: relative;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
}

.dex-visual img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.dex-card.is-locked .dex-visual img {
    filter: brightness(0) saturate(100%) invert(7%) sepia(40%) saturate(1393%) hue-rotate(281deg) brightness(88%) contrast(102%);
    opacity: 1;
}

.dex-name {
    margin: 8px 0 0;
    color: var(--ink);
    font-family: "Perfektta", "Inter", system-ui, sans-serif;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.05;
    text-align: center;
}

@media (min-width: 700px) {
    body {
        padding: 0;
    }

    .phone-page,
    .dex-page {
        width: 100%;
        overflow: visible;
        box-shadow: none;
    }
}

@media (min-width: 900px) {
    .brand-header,
    .intro,
    .discover,
    .how-it-works,
    .collect,
    .dex-page .brand-header,
    .dex-intro,
    .dex-grid {
        width: min(100%, 1180px);
        margin: 0 auto;
        padding-inline: 56px;
    }

    .brand-header {
        justify-content: flex-start;
        padding-top: 4px;
        padding-bottom: 54px;
    }

    .brand img {
        width: 280px;
    }

    .dex-page .brand-header {
        justify-content: center;
    }

    .intro {
        min-height: 0;
        padding-top: 10px;
        padding-bottom: 8px;
        display: grid;
        grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.72fr);
        align-items: start;
        column-gap: 90px;
        text-align: left;
    }

    .intro-copy {
        display: block;
    }

    .intro-visual {
        display: grid;
        align-content: start;
        justify-items: center;
    }

    h1 {
        max-width: 610px;
        margin-bottom: 0;
        color: var(--ink);
        font-size: clamp(54px, 5vw, 82px);
        line-height: 1.04;
    }

    .intro .download-button {
        order: 1;
        width: 300px;
        margin: 14px 0 0;
        justify-self: center;
    }

    .animals-strip {
        padding: 0 56px;
    }

    .animal-row {
        width: min(100%, 560px);
    }

    .intro-elephant {
        display: none;
    }

    .intro-ape {
        order: 2;
        display: block;
        width: min(100%, 390px);
        height: 390px;
        margin: 10px auto 0;
        object-fit: cover;
        object-position: center bottom;
    }

    .discover {
        padding-top: 8px;
        padding-bottom: 0;
        display: grid;
        grid-template-columns: minmax(360px, 0.9fr) minmax(0, 1fr);
        align-items: start;
        column-gap: 72px;
        row-gap: 0;
        text-align: left;
    }

    .feature-animal {
        grid-column: 1;
        width: min(100%, 430px);
        margin: -180px auto 0;
    }

    .discover-copy {
        grid-column: 2;
        margin-top: 48px;
    }

    .gorilla {
        width: min(100%, 430px);
        height: 430px;
        margin: 0 auto 8px;
    }

    .discover h2 {
        margin-bottom: 0;
        font-size: clamp(48px, 4vw, 70px);
        line-height: 1.02;
        text-align: left;
    }

    .discover p {
        width: auto;
        margin: 0;
        color: var(--gray);
        font-size: 24px;
        line-height: 1.45;
    }

    .how-it-works {
        margin-top: -60px;
        padding-top: 0;
        padding-bottom: 70px;
        display: grid;
        grid-template-columns: minmax(0, 1fr) 420px;
        align-items: start;
        column-gap: 86px;
        row-gap: 0;
    }

    .elephant {
        grid-column: 2;
        grid-row: 1 / span 2;
        width: min(100%, 420px);
        margin: 28px 0 0;
    }

    .how-it-works h2 {
        grid-column: 1;
        margin-bottom: 8px;
        font-size: clamp(48px, 4vw, 70px);
        text-align: left;
    }

    .steps {
        grid-column: 1;
    }

    .steps li {
        grid-template-columns: 48px 1fr;
        gap: 16px;
        margin-bottom: 22px;
    }

    .step-number {
        width: 38px;
        height: 38px;
        font-size: 23px;
    }

    .steps h3 {
        font-size: 25px;
    }

    .steps p {
        max-width: 640px;
        color: var(--gray);
        font-size: 18px;
        line-height: 1.35;
    }

    .collect {
        padding-top: 0;
        padding-bottom: 28px;
        display: grid;
        grid-template-columns: minmax(360px, 0.9fr) minmax(0, 1fr);
        align-items: center;
        column-gap: 72px;
        text-align: left;
    }

    .collect-copy {
        grid-column: 2;
    }

    .collect h2 {
        margin-bottom: 10px;
        font-size: clamp(48px, 4vw, 70px);
        line-height: 1.02;
        text-align: left;
    }

    .collect p {
        width: auto;
        margin: 0 0 18px;
        color: var(--gray);
        font-size: 24px;
        line-height: 1.45;
    }

    .text-link {
        width: 300px;
        min-height: 56px;
        font-size: 18px;
    }

    .flamingo {
        grid-column: 1;
        width: min(100%, 380px);
        height: 380px;
        margin: -180px auto 0;
    }

    .final-cta {
        width: min(100%, 1180px);
        margin: 0 auto;
        padding: 76px 56px 0;
    }

    .final-cta h2 {
        font-size: clamp(44px, 4vw, 66px);
    }

    .final-cta p {
        width: min(100%, 620px);
        margin-bottom: 28px;
        font-size: 20px;
        line-height: 1.35;
    }

    .store-badge {
        width: 142px;
        height: 48px;
        font-size: 16px;
    }

    .store-badge span {
        font-size: 8px;
    }

    .dex-page .brand-header {
        padding-bottom: 28px;
    }

    .dex-intro {
        padding-top: 0;
        padding-bottom: 44px;
    }

    .dex-heading {
        margin: 0 auto 8px;
        font-size: clamp(54px, 5vw, 82px);
    }

    .dex-subtitle {
        margin-bottom: 40px;
        font-size: 24px;
        line-height: 1.25;
    }

    .dex-filters {
        width: min(100%, 680px);
        margin: 0 auto;
        gap: 28px;
    }

    .dex-filter {
        min-height: 58px;
        font-size: 20px;
    }

    .dex-grid {
        grid-template-columns: repeat(7, minmax(0, 1fr));
        gap: 48px 32px;
        padding-bottom: 80px;
    }

    .dex-number {
        margin-bottom: 14px;
        font-size: 16px;
    }

    .dex-name {
        margin-top: 12px;
        font-size: 16px;
    }
}

@media (max-width: 360px) {
    .brand img {
        width: 210px;
    }

    h1 {
        font-size: 28px;
    }

    .dex-subtitle {
        font-size: 16px;
    }

    .dex-heading {
        font-size: 34px;
    }

    .animal-row {
        width: min(100%, 320px);
    }

    .gorilla,
    .elephant {
        width: 235px;
    }

    .final-cta h2,
    .discover h2,
    .how-it-works h2,
    .collect h2 {
        font-size: 24px;
    }

    .dex-filters {
        gap: 10px;
    }

    .dex-filter {
        min-height: 42px;
        font-size: 14px;
    }

    .dex-grid {
        gap: 22px 14px;
        padding-inline: 14px;
    }
}
