body { --page-background: url('../../20_ASSETS/00_IMAGES/background_4k_v2.webp'); }

        .hero { display: grid; grid-template-columns: 1fr 1.15fr; align-items: center; gap: 32px; min-height: 650px; padding-block: 80px; }

        .lead { color: #e3e3e3; font-size: 20px; max-width: 440px; margin: 0 0 30px; }
        .devices { position: relative; padding: 35px 0 75px; }
        .mobile { display: block; width: 100%; filter: drop-shadow(0 24px 26px #0009); }
        .watch { position: absolute; width: 27%; right: 0; bottom: -5px; filter: drop-shadow(0 16px 18px #000b); }
        .how p { color: var(--muted); }
        .how { padding-block: 72px; }
        .section-heading { margin-bottom: 36px; text-align: center; }
        .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
        .step { background: #101010d9; border: 1px solid #ffffff1c; border-radius: 10px; padding: 28px; }
        .number { display: block; color: var(--orange); font-size: 13px; letter-spacing: .12em; margin-bottom: 18px; }
        .pending { margin-top: 26px; font-size: 14px; color: #aaa; }
        .downloads { padding-block: 64px; text-align: center; }
        .downloads > p { color: var(--muted); }
        .qr-list { display: flex; justify-content: center; gap: 24px; margin-top: 30px; }
        .qr-card { width: 210px; padding: 22px; border: 1px solid #ffffff24; border-radius: 10px; background: #111e; }
        .qr-card img { display: block; width: 160px; max-width: 100%; height: auto; margin: 0 auto 16px; background: white; border-radius: 4px; }
        .qr-card h3 { margin-bottom: 5px; }
        .qr-card p { font-size: 12px; color: #bbb; }
        @media (max-width: 900px) {
            .hero { grid-template-columns: 1fr; min-height: auto; gap: 24px; padding-block: 56px; }
        }
        @media (max-width: 900px) {
            .lead { max-width: 600px; }
        }
        @media (max-width: 900px) {
            .devices { width: min(650px, 100%); margin-inline: auto; }
        }
        @media (max-width: 600px) {
            .hero { padding-block: 40px; }
        }
        @media (max-width: 600px) {
            .lead { font-size: 18px; }
        }
        @media (max-width: 600px) {
            .devices { padding-bottom: 54px; }
        }
        @media (max-width: 600px) {
            .steps { grid-template-columns: 1fr; }
        }
        @media (max-width: 600px) {
            .how, .downloads { padding-block: 48px; }
        }
        @media (max-width: 600px) {
            .qr-list { gap: 12px; }
        }
        @media (max-width: 600px) {
            .qr-card { width: 50%; padding: 16px 12px; }
        }

        .hero-devices .mobile { width: 75%; height: 420px; object-fit: contain; margin-inline: auto; }
        .score-devices { padding: 24px 0 64px; }
        @media (max-width: 600px) {
            .hero-devices .mobile { height: 320px; }
        }

        .hero-devices { padding-block: 35px; }
        .hero-devices .watch { width: 54%; top: 50%; bottom: auto; transform: translateY(-50%); }
        .hero-action { grid-column: 1 / -1; display: flex; justify-content: center; }

        .qr-list { padding-inline: 16px; }
        .hero { width: 100%; min-height: calc(100vh - var(--header-height, 100px)); min-height: calc(100dvh - var(--header-height, 100px)); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: 1fr auto; column-gap: clamp(24px, 4vw, 80px); row-gap: 32px; padding: clamp(24px, 4vh, 56px) clamp(20px, 5vw, 120px); }
        .hero > div:first-child { width: 100%; max-width: 620px; justify-self: end; }
        .hero .lead { max-width: 540px; margin-bottom: 0; }
        .hero .hero-devices { width: 100%; max-width: 700px; margin: 0; justify-self: start; padding-block: 16px; }
        .hero-devices .mobile { height: clamp(280px, 52vh, 520px); height: clamp(280px, 52dvh, 520px); }
        .hero-action { align-self: end; }
        @media (max-width: 900px) {
            .hero { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto; row-gap: 24px; }
        }
        @media (max-width: 900px) {
            .hero > div:first-child { max-width: 650px; justify-self: center; }
        }
        @media (max-width: 900px) {
            .hero .hero-devices { max-width: 550px; justify-self: center; }
        }
        @media (max-width: 900px) {
            .hero-devices .mobile { height: clamp(240px, 38svh, 380px); }
        }
        @media (max-width: 600px) {
            .hero { padding: 24px 20px; row-gap: 20px; }
        }
        @media (max-width: 600px) {
            .hero .hero-devices { max-width: 420px; padding-block: 8px; }
        }
        @media (max-width: 600px) {
            .hero-devices .mobile { height: clamp(220px, 34svh, 320px); }
        }
        @media (max-width: 600px) {
            .hero-action a { max-width: 100%; }
        }

        #funcionalitats { scroll-margin-top: -48px; }
        #com-funciona { scroll-margin-top: -72px; }
        #descarrega { scroll-margin-top: -64px; }
        @media (max-width: 600px) {
            #com-funciona, #descarrega { scroll-margin-top: -48px; }
        }
        .hero .lead, .step { overflow-wrap: break-word; }

        .hero .hero-devices { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .42fr); align-items: center; gap: clamp(12px, 2vw, 28px); }
        .hero-devices .mobile { width: 100%; }
        .hero-devices .watch { position: static; width: 100%; height: auto; max-height: 240px; object-fit: contain; transform: none; }
        @media (max-width: 600px) { .hero-devices .watch { max-height: 170px; } }

        .hero-testers { grid-column: 1 / -1; align-self: end; display: grid; grid-template-columns: minmax(0, 248px) minmax(0, 620px) minmax(0, 248px); align-items: center; justify-content: center; gap: clamp(20px, 4vw, 64px); text-align: center; }
        .hero-testers .qr-card { width: 100%; }
        .testers-message h2 { color: var(--orange); font-size: clamp(36px, 4.5vw, 56px); }
        .testers-message p { font-size: clamp(22px, 2.5vw, 28px); color: #fff; }
        @media (max-width: 600px) {
            .hero-testers { grid-template-columns: repeat(2, minmax(0, 180px)); gap: 20px 12px; }
        }
        @media (max-width: 600px) {
            .testers-message { grid-column: 1 / -1; grid-row: 1; }
        }
        @media (max-width: 600px) {
            .hero-testers .qr-card { padding: 16px 12px; }
        }

        .hero-testers .qr-card { padding: 22px; }
        .hero-testers .qr-card > img { width: 200px; }
        .hero-testers .platform-label { display: flex; align-items: center; justify-content: center; gap: 10px; }
        .hero-testers .platform-icon { width: 28px; height: 28px; margin: 0; background: transparent; border-radius: 0; object-fit: contain; }
        .hero-testers .apple-icon { filter: none; }
        @media (max-width: 600px) {
            .hero-testers .qr-card { padding: 12px; }
        }
        @media (max-width: 600px) {
            .testers-message h2 { font-size: 36px; }
        }
        @media (max-width: 600px) {
            .testers-message p { font-size: 22px; }
        }
        .download-testers { margin-top: 32px; }

/* The complete QR card is a keyboard-accessible link. */
.qr-card[href] { display: block; cursor: pointer; }



/* Hero composition: image widths scale together; their original aspect ratios are preserved. */
.hero {
    grid-template-columns: minmax(0,1fr);
    grid-template-rows: auto auto auto;
    align-content: space-between;
    row-gap: clamp(24px,4vw,56px);
    padding: clamp(24px,4vh,48px) clamp(20px,5vw,120px);
}
.hero .hero-copy {
    width: 100%;
    max-width: none;
    justify-self: center;
    text-align: center;
}
.hero #hero-title {
    margin: 0;
    font-size: clamp(28px,3.4vw,48px);
    line-height: 1.35;
    letter-spacing: normal;
}
.hero-composition {
    position: relative;
    width: 100%;
    max-width: 1200px;
    aspect-ratio: 2 / 1;
    justify-self: center;
    isolation: isolate;
}
.hero-composition > img {
    position: absolute;
    display: block;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 12px 16px #0006);
}
.hero-product-watch { width: 23%; left: 1%; top: 24%; z-index: 2; }
.hero-product-racket { width: 44%; left: 0; bottom: -8%; z-index: 3; }
.hero-product-scoreboard { width: 48%; left: 22%; top: 18%; z-index: 1; }
.hero-product-statistics { width: 22%; right: 0; top: 0; z-index: 2; }
@media (max-width: 600px) {
    .hero-composition { aspect-ratio: .9 / 1; }
    .hero-product-scoreboard { width: 90%; left: 5%; top: 0; }
    .hero-product-watch { width: 36%; left: 2%; top: 46%; }
    .hero-product-statistics { width: 32%; right: 2%; top: 37%; }
    .hero-product-racket { width: 59%; left: 0; bottom: -4%; }
}

.hero-subtitle { margin: 12px 0 0; font-size: clamp(20px,2.3vw,32px); font-weight: 400; line-height: 1.4; }
.hero-subtitle .accent { font-weight: 700; }

/* Mobile hero: shares include the spacing inside each of the three zones. */
.hero-intro { display: contents; }
@media (max-width: 600px) {
    .hero {
        --hero-mobile-text-share: .15;
        --hero-mobile-images-share: .40;
        --hero-mobile-qr-share: .45;
        --hero-mobile-height: calc(100svh - var(--header-height,80px));
        display: grid;
        grid-template-columns: minmax(0,1fr);
        grid-template-rows:
            minmax(min-content,calc(var(--hero-mobile-height) * var(--hero-mobile-text-share)))
            calc(var(--hero-mobile-height) * var(--hero-mobile-images-share))
            minmax(min-content,calc(var(--hero-mobile-height) * var(--hero-mobile-qr-share)));
        min-height: var(--hero-mobile-height);
        padding: 0;
        gap: 0;
        align-content: start;
    }
    .hero > div.hero-intro { display: contents; }
    .hero .hero-copy {
        width: 100%;
        min-width: 0;
        padding: 8px 16px;
        align-self: center;
    }
    .hero #hero-title {
        font-size: clamp(20px,5vw,24px);
        line-height: 1.18;
    }
    .hero .hero-subtitle {
        margin-top: 6px;
        font-size: clamp(15px,3.8vw,18px);
        line-height: 1.2;
    }
    .hero .hero-composition {
        width: min(calc(100% - 32px),calc((var(--hero-mobile-height) * var(--hero-mobile-images-share) - 16px) * 1.4));
        max-width: 520px;
        height: auto;
        aspect-ratio: 1.4 / 1;
        margin: 0;
        align-self: center;
        justify-self: center;
    }
    .hero .hero-product-scoreboard { width: 80%; left: 5%; top: 0; }
    .hero .hero-product-watch { width: 27%; left: 2%; top: 43%; }
    .hero .hero-product-statistics { width: 22%; right: 2%; top: 27%; }
    .hero .hero-product-racket { width: 47%; left: 0; bottom: -4%; }
    .hero > .hero-testers {
        width: 100%;
        min-width: 0;
        height: 100%;
        padding: 8px 16px;
        align-self: stretch;
        align-content: center;
        grid-template-columns: repeat(2,minmax(0,144px));
        gap: 8px 16px;
    }
    .hero > .hero-testers .testers-message h2 {
        font-size: clamp(22px,6vw,27px);
        line-height: 1.15;
        margin-bottom: 4px;
    }
    .hero > .hero-testers .testers-message p { font-size: 16px; line-height: 1.25; }
    .hero > .hero-testers .qr-card { padding: 8px; }
    .hero > .hero-testers .qr-card > img {
        width: clamp(76px,calc(var(--hero-mobile-height) * var(--hero-mobile-qr-share) - 100px),124px);
        max-width: 100%;
        height: auto;
        margin: 0 auto 6px;
    }
    .hero > .hero-testers .platform-label { font-size: 16px; margin: 0; gap: 6px; }
    .hero > .hero-testers .platform-icon { width: 20px; height: 20px; }
}


/* Download cards: system heading, linked QR and a separate access button. */
#descarrega .download-testers {
    grid-template-columns: repeat(2,minmax(0,248px));
    row-gap: 24px;
}
#descarrega .testers-message { grid-column: 1 / -1; grid-row: 1; width: 100%; }
#descarrega .testers-message h2 { font-size: clamp(36px,5vw,64px); line-height: 1.15; }
#descarrega .testers-message p { font-size: clamp(24px,3vw,34px); line-height: 1.3; }
#descarrega .download-platform {
    display: grid;
    grid-row: 2;
    grid-template-rows: auto auto auto;
    justify-items: stretch;
    align-content: center;
    gap: 16px;
    min-width: 0;
    padding: 20px;
    background: #202020;
    border: 1px solid #ffffff20;
    border-radius: 20px;
}
#descarrega .download-android { grid-column: 1; }
#descarrega .download-apple { grid-column: 2; }
#descarrega .download-platform .platform-label { margin: 0; }
#descarrega .download-platform .qr-card { width: 100%; padding: 0; border: 0; background: transparent; }
#descarrega .download-platform .qr-card > img { width: 200px; max-width: 100%; height: auto; margin: 0 auto; }
#descarrega .download-access { min-width: 0; min-height: 52px; padding: 10px; text-align: center; line-height: 1.25; }
#descarrega .download-access > span { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 600px) {
    body {
        --mobile-download-height: calc(100svh - var(--header-height,80px));
        --mobile-download-title-share: .15;
        --mobile-download-message-share: .15;
        --mobile-download-qr-share: .55;
        --mobile-download-footer-share: .15;
    }
    #descarrega { scroll-margin-top: 0; scroll-snap-align: start; scroll-snap-stop: normal; }
    #descarrega .downloads {
        display: grid;
        grid-template-columns: repeat(2,minmax(0,1fr));
        grid-template-rows:
            minmax(min-content,calc(var(--mobile-download-height) * var(--mobile-download-title-share)))
            minmax(min-content,calc(var(--mobile-download-height) * var(--mobile-download-message-share)))
            minmax(min-content,calc(var(--mobile-download-height) * var(--mobile-download-qr-share)));
        min-height: calc(var(--mobile-download-height) * .85);
        padding: 0;
        column-gap: 12px;
        align-items: center;
    }
    #descarrega .downloads > h2 { grid-area: 1 / 1 / 2 / -1; margin: 0; padding: 8px 0; font-size: clamp(24px,6vw,30px); }
    #descarrega .download-testers { display: contents; }
    #descarrega .testers-message {
        grid-area: 2 / 1 / 3 / -1;
        width: min(100% - 32px,1440px);
        padding-block: 8px;
        justify-self: center;
        text-align: center;
    }
    #descarrega .testers-message h2 { font-size: clamp(30px,8.8vw,44px); line-height: 1.1; margin-bottom: 8px; }
    #descarrega .testers-message p { font-size: clamp(20px,5.5vw,25px); line-height: 1.25; }
    #descarrega .download-platform {
        grid-row: 3;
        width: calc(100% - 12px);
        max-width: 220px;
        padding: 12px 8px;
        gap: 10px;
        align-content: center;
        justify-self: center;
    }
    #descarrega .download-android { margin-left: 12px; }
    #descarrega .download-apple { margin-right: 12px; }
    #descarrega .download-platform .qr-card > img {
        width: clamp(76px,calc(var(--mobile-download-height) * var(--mobile-download-qr-share) - 130px),160px);
        max-width: 100%;
        height: auto;
    }
    #descarrega .platform-label { font-size: 18px; gap: 8px; }
    #descarrega .platform-icon { width: 26px; height: 26px; }
    #descarrega .download-access { min-height: 48px; padding: 8px; font-size: 15px; }
    .download-footer {
        min-height: calc(var(--mobile-download-height) * var(--mobile-download-footer-share));
        display: grid;
        align-content: center;
        padding: 8px 16px;
    }
    .download-footer .footer-inner { width: 100%; align-items: center; gap: 8px; }
    .download-footer .brand { font-size: 20px; }
    .download-footer .brand img { width: 26px; height: 26px; }
    .download-footer .footer-privacy-links { font-size: 14px; line-height: 1.3; text-align: center; }
}

#descarrega .download-platform-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
#descarrega .download-platform-header .platform-label { min-width: 0; }
#descarrega .download-platform-header comp-10-button-cercle-style-1 { flex-shrink: 0; }

#descarrega .download-platform-header .Comp_10_Button_Cercle_Style_1 { width: 36px; height: 36px; font-size: 22px; }

.download-footer .footer-inner { flex-wrap: wrap; }
.download-footer .footer-copyright { text-align: center; font-size: 14px; line-height: 1.3; color: var(--muted); margin: 0; }
@media (min-width:601px) {
    #descarrega .downloads {
        min-height: calc(100svh - var(--header-height,100px) - 100px);
        padding-bottom: 64px;
    }
    #descarrega .download-testers {
        grid-template-columns: minmax(150px,248px) minmax(0,1fr) minmax(150px,248px);
        column-gap: clamp(16px,3vw,48px);
        align-items: center;
    }
    #descarrega .download-platform { grid-row: 1 / 4; grid-template-rows: subgrid; align-content: stretch; }
    #descarrega .download-android { grid-column: 1; }
    #descarrega .download-apple { grid-column: 3; }
    #descarrega .testers-message { grid-column: 2; grid-row: 1 / 4; min-width: 0; container-type: inline-size; text-align: center; align-self: start; }
    #descarrega .testers-message h2 { position: relative; left: 50%; width: max-content; transform: translateX(-50%); white-space: nowrap; font-size: min(143.52px,11.73cqw); }
    #descarrega .testers-message p { font-size: clamp(27px,3.3vw,51px); }
}

@media (min-width:601px) {
    #descarrega .download-testers { margin-top: 64px; grid-template-rows: auto auto auto; row-gap: 16px; align-items: start; }
    #descarrega .download-platform .qr-card { align-self: start; }
    #descarrega .testers-message h2 { margin-top: 0; }
}
@media (min-width:601px) {
    #descarrega .testers-message h2 {
        text-box-trim: trim-start;
        text-box-edge: cap alphabetic;
    }
}