/* ============================================================
   FONTS
   ============================================================ */
@font-face {
    font-family: 'Montserrat';
    src: url("../fonts/Montserrat-Regular.ttf") format("truetype"),
        url("../fonts/Montserrat-Regular.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url("../fonts/Montserrat-Bold.ttf") format("truetype"),
        url("../fonts/Montserrat-Bold.otf") format("opentype");
    font-weight: 700;
    font-style: normal;
}

/* ============================================================
   TOKENS
   ============================================================ */
:root {
    --green: #3CC729;
    --dark-green: #003D08;
    --orange: #E07830;
    --white: #ffffff;
}

/* ============================================================
   RESET / BASE
   ============================================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 400;
    background: var(--dark-green);
    min-height: 100vh;
    min-height: 100svh;
    overflow-x: hidden;
    overflow-y: auto;
}

body {
    display: flex;
    flex-direction: column;
}

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

/* ============================================================
   HERO  — mobile first
   ============================================================ */
.hero {
    background: var(--green);
    padding: 22px 24px 44px;
    flex: 0 0 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero__inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/* Left: badge + frog */
.hero__left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    width: 100%;
}

.hero__badge {
    width: min(272px, 74vw);
    object-fit: contain;
}

.hero__art {
    display: flex;
    justify-content: center;
    width: 100%;
}

.hero__frog {
    width: min(242px, 64vw);
    object-fit: contain;
    filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.2));
    transform: translateX(4%) rotate(15deg);
    transform-origin: center center;
}

/* Right: text + star pass */
.hero__right {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    width: 100%;
    color: var(--white);
}

.hero__text {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.hero__pre-headline {
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.1;
    margin: 0;
}

.hero__headline {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--white);
    margin: 0;
}

/* Star pass row */
.hero__starpass-row {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}

.hero__starpass {
    width: 72px;
    border-radius: 8px;
    flex-shrink: 0;
}

.hero__starpass-text p {
    font-size: 1.65rem;
    font-weight: 400;
    line-height: 1;
    margin-bottom: 0;
    color: var(--white);
}

.hero__barca {
    font-size: 2.65rem;
    font-weight: 700;
    display: block;
    line-height: 1.1;
    color: var(--white);
}

/* ============================================================
   CTA  — straddles hero / downloads border
   ============================================================ */
.hero__cta {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 0 24px;
    position: relative;
    z-index: 10;
    margin-top: -24px;
    margin-bottom: -30px;
}

.btn-cta {
    width: 100%;
    max-width: 286px;
    border-radius: 100px;
    background: var(--orange);
    color: var(--white);
    border: none;
    padding: 14px 28px;
    font-size: 1.02rem;
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    transition: opacity 0.18s, transform 0.12s;
}

.btn-cta:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    color: var(--white);
}

.btn-cta:active {
    opacity: 0.85;
    transform: translateY(0);
}

/* ============================================================
   DOWNLOADS  — mobile first
   ============================================================ */
.downloads {
    background: var(--dark-green);
    color: var(--white);
    position: relative;
    overflow: hidden;
    z-index: 1;
    padding: 74px 24px 88px;
    flex: 0 0 auto;
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
}

.downloads__inner {
    position: relative;
    z-index: 1;
    max-width: 960px;
    margin: 0 auto;
}

.downloads__question {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--white);
    text-align: center;
    line-height: 1.1;
    margin-bottom: 18px;
}

.downloads__row {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 14px;
}

.tribu-icon {
    width: 124px;
    height: 124px;
    object-fit: contain;
    border-radius: 18px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.downloads__copy {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 0 1 auto;
}

.downloads__stores-row {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.downloads__app-name {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--white);
    line-height: 1.2;
}

.downloads__app-name--mobile {
    display: block;
    text-align: center;
    margin-bottom: 18px;
}

.downloads__app-name--desktop {
    display: none;
}

.downloads__app-name strong {
    font-weight: 700;
}

/* Store badges */
.store-badges {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 118px;
}

.badge-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 10px;
    padding: 7px 7px;
    width: 120px;
    transition: opacity 0.18s;
}

.badge-link:hover {
    opacity: 0.85;
}

.badge-link img {
    height: 20px;
    width: auto;
}

/* kölbi logo */
.kolbi-logo {
    width: 86px;
}

.kolbi-logo--desktop {
    display: none;
}

.kolbi-logo--mobile {
    display: block;
    margin: 22px auto 0;
}

/* Pixel corner decorations */
.corner {
    position: absolute;
    bottom: 0;
    pointer-events: none;
    user-select: none;
    z-index: 0;
    width: 90px;
}

.corner--left {
    left: 0;
}

.corner--right {
    right: 0;
}

/* ============================================================
   DESKTOP  (≥ 768px)
   ============================================================ */
@media (min-width: 768px) {

    html,
    body {
        height: 100vh;
        overflow: hidden;
    }

    /* Hero: equal two-column grid, vertically centered */
    .hero {
        padding: 52px 48px 64px;
        flex: 1;
    }

    .hero__inner {
        display: grid;
        grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
        align-items: start;
        gap: 56px;
        max-width: 1400px;
    }

    .hero__left {
        align-items: center;
        gap: 20px;
    }

    .hero__badge {
        width: min(100%, 380px);
        max-height: 20vh;
    }

    .hero__frog {
        width: min(100%, 380px);
        max-height: 30vh;
        transform: none;
    }

    .hero__right {
        align-items: flex-start;
        text-align: left;
        gap: 28px;
    }

    .hero__pre-headline {
        font-size: 3.2rem;
    }

    .hero__headline {
        font-size: 4rem;
    }

    .hero__starpass {
        width: 150px;
    }

    .hero__starpass-text p {
        font-size: 3.2rem;
    }

    .hero__experiencia {
        font-size: 4rem !important;
    }

    .hero__barca {
        font-size: 4rem;
    }

    .hero__cta {
        padding: 0 24px;
        margin-top: -30px;
        margin-bottom: -34px;
    }

    /* Downloads: 3-col row */
    .downloads {
        z-index: 1;
        padding: 92px 48px 100px;
        flex-shrink: 0;
        min-height: 28vh;
        border-top-left-radius: 40px;
        border-top-right-radius: 40px;
    }

    .downloads__question {
        text-align: left;
        font-size: 2.8rem;
    }

    .downloads__row {
        align-items: center;
        gap: 28px;
    }

    .tribu-icon {
        width: 160px;
        height: 160px;
        border-radius: 28px;
        border: 2.5px solid rgba(255, 255, 255, 0.5);
    }

    .downloads__copy {
        gap: 12px;
        flex: 1;
    }

    .downloads__app-name {
        font-size: 1.8rem;
        line-height: normal;
    }

    .downloads__app-name--mobile {
        display: none;
    }

    .downloads__app-name--desktop {
        display: block;
    }

    .store-badges {
        flex-direction: row;
        justify-content: flex-start;
        height: auto;
        gap: 10px;
    }

    .badge-link {
        border-radius: 12px;
        padding: 8px 14px;
        width: 160px;
    }

    .badge-link img {
        height: 28px;
    }

    .downloads__stores-row {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 24px;
    }

    .kolbi-logo--desktop {
        display: block;
        flex-shrink: 0;
        width: 130px;
    }

    .kolbi-logo--mobile {
        display: none;
    }

    .corner {
        width: 110px;
    }
}

/* ============================================================
   LARGE DESKTOP  (≥ 1100px)
   ============================================================ */
@media (min-width: 1100px) {

    .hero__badge {
        width: 420px;
    }

    .hero__frog {
        width: 420px;
    }

    .hero__headline {
        font-size: 3.8rem;
    }

    .hero__barca {
        font-size: 3.8rem;
    }

    .downloads__question {
        font-size: 2.8rem;
    }

    .kolbi-logo--desktop {
        width: 150px;
    }

    .corner {
        width: 130px;
    }
}
