/* ============================================================
   Landing pública (/qualy/, /webapp/play sin token) — mockup A-01.
   Base tokens/reset/components + el shell .welcome-* vienen de
   ../email/styles.css (mismo que usa welcome.html). Acá sólo lo que
   es específico de esta pantalla.
   ============================================================ */

/* ---------- A-01: badge "Vive la F1" (variante genérica) ---------- */
.landing-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--papaya-tint-12);
    color: var(--papaya);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.landing-hero-badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--papaya);
    box-shadow: 0 0 0 3px rgba(255, 128, 0, 0.25);
}

/* ---------- A-01: link secundario "Ya tengo cuenta" ---------- */
.landing-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.96px;
    text-transform: uppercase;
    color: #6B7076;
    padding: 10px 8px;
    line-height: 1.12;
    text-decoration: none;
}
.landing-secondary:hover { color: var(--text-primary); }
.landing-secondary svg { width: 16px; height: 16px; }

/* ---------- A-01: nota legal ---------- */
.landing-legal {
    font-size: 12px;
    line-height: 1.41;
    font-weight: 500;
    color: #9CA1A7;
    margin: 0;
    text-align: center;
}
.landing-legal a {
    color: #fff;
    text-decoration: underline;
}

/* ---------- 09-referidos: banner "X te invitó" (variante referred) ---------- */
.referral-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--papaya);
    margin: 8px 0 16px;
    border-radius: 8px;
    border: 1px solid #FF8000;
    background: rgba(255, 128, 0, 0.10);
    font-size: 12px;
    font-weight: 500;
    line-height: normal;
    letter-spacing: 0.84px;
}
.referral-banner__avatar {
    width: 34px;
    height: 34px;
    background: rgba(0, 0, 0, 0.18);
    color: var(--papaya);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    border: 1px solid #FF8000;
    background: rgba(255, 128, 0, 0.10);
    font-size: 19px;
    font-weight: 600;
    line-height: normal;
    letter-spacing: 1.33px;
    flex-shrink: 0;
}
.referral-banner strong {
    font-weight: 700;
    letter-spacing: 0.01em;
}

/* ---------- H-02: aviso de link inválido (variante invalid) ---------- */
.welcome-notice {
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(239, 75, 75, 0.10);
    border: 1px solid rgba(239, 75, 75, 0.35);
    color: var(--text-primary);
    margin: -8px 0 8px;
    font-size: 12px;
    line-height: 1.45;
}
.welcome-notice__icon {
    width: 32px; height: 32px;
    border-radius: 8px;
    background: rgba(239, 75, 75, 0.18);
    color: var(--status-rejected);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.welcome-notice__icon svg { width: 16px; height: 16px; }
.welcome-notice b { color: var(--text-primary); font-weight: 700; }


/* ---------- Layout móvil 430px ---------- */
.landing-shell {
    padding: 0 0 calc(180px + env(safe-area-inset-bottom));
    align-items: flex-start;
    font-family: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.landing-shell:has(.landing-cta-bar--both) { padding-bottom: calc(230px + env(safe-area-inset-bottom)); }
.landing-page { max-width: 430px; gap: 0; }
.landing-body {
    display: flex;
    flex-direction: column;
    gap: 25px;
    padding: 0 29px;
}

/* ---------- hero: logo + foto con degradé ---------- */
.landing-hero { position: relative; display: flex; flex-direction: column; }
.landing-hero__brand { padding: 37px 29px 16px; }
.landing-hero__brand img { display: block; width: 116px; height: auto; }
.landing-hero .referral-banner,
.landing-hero .welcome-notice { margin: 0 29px 16px; }
.landing-hero__photo {
    display: block;
    width: 100%;
    height: 223px;
    object-fit: cover;
    object-position: left center;
    -webkit-mask-image: linear-gradient(to bottom, #000 46%, transparent);
    mask-image: linear-gradient(to bottom, #000 46%, transparent);
}
.landing-lead { position: relative; margin-top: -28px; display: flex; flex-direction: column; gap: 10px; }
.landing-hero__title {
    margin: 0;
    color: #fff;
    font-size: 40px;
    font-weight: 700;
    line-height: 0.97;
    text-transform: uppercase;
}
.landing-hero__subtitle {
    margin: 0;
    color: #FF8000;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.06;
}
.landing-intro {
    margin: 0;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.12;
}

/* ---------- textos y pills ---------- */
.landing-section { display: flex; flex-direction: column; gap: 2px; }
.landing-section > .landing-pill { margin-bottom: 23px; }
.landing-pill {
    align-self: flex-start;
    margin: 0;
    padding: 4px 11px;
    border-radius: 6px;
    background: #FF8000;
    color: #0B0B0C;
    font-size: 14px;
    font-weight: 600;
    line-height: 14px;
    text-transform: uppercase;
}
.landing-heading {
    margin: 0;
    color: #FF8000;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.12;
}
.landing-text {
    margin: 0;
    color: #6B7076;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.12;
}
.landing-text p { margin: 0 0 18px; }
.landing-text p:last-child { margin-bottom: 0; }
.landing-text b { color: #fff; font-weight: inherit; }
.landing-text--white { color: #fff; }
.landing-section:has(> .landing-heading:first-child) { gap: 25px; }

/* ---------- cards de video ---------- */
.landing-media,
.landing-howto {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 372 / 424;
    padding: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #242424;
}
.landing-media { border: 2px solid #1A1A1A; }
.landing-media__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.landing-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    pointer-events: none;
}
.landing-media__logo {
    position: absolute;
    top: 32px;
    left: 26px;
    width: 94px;
    height: auto;
    opacity: 0.5;
    z-index: 1;
}
.landing-media__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 76px;
    height: 76px;
    padding: 0;
    border: 2px solid #1A1A1A;
    border-radius: 76px;
    background: rgba(0, 0, 0, 0.5);
    overflow: hidden;
    cursor: pointer;
}
.landing-media__play img { display: block; width: 100%; height: 100%; }
.landing-media__play[disabled] { cursor: default; opacity: 0.85; }
.landing-howto { border: 0; cursor: default; }
button.landing-howto { cursor: pointer; }
.landing-howto img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------- modal del video ---------- */
.video-modal__scrim {
    position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 40;
}
.video-modal__scrim[hidden] { display: none; }
.video-modal {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    max-width: calc(100% - 32px);
    max-height: calc(100vh - 32px);
    line-height: 0;
    z-index: 50;
}
.video-modal[hidden] { display: none; }
.video-modal__video {
    display: block;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 32px);
    width: auto;
    height: auto;
    border-radius: 12px;
    background: #000;
}
.video-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.video-modal__close:hover { background: rgba(0, 0, 0, 0.7); }
.video-modal__close svg { width: 18px; height: 18px; }

.landing-race {
    display: flex;
    flex-direction: column;
    gap: 17px;
    padding: 21px 13px;
    background: #141517;
    border: 1px solid #16D05C;
    border-radius: 8px;
}
.landing-race__title {
    margin: 0;
    color: #F2F3F4;
    font-size: 32px;
    font-weight: 600;
    line-height: 1.1;
    text-transform: uppercase;
}
.landing-race__accent { color: #16D05C; }
.landing-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.landing-step { display: flex; align-items: center; gap: 11px; }
.landing-step__num {
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    border-radius: 5px;
    background: #16D05C;
    color: #0B0B0C;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 17.84px;
    font-weight: 500;
    line-height: 1;
}
.landing-step__text {
    margin: 0;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
}
.landing-step__sub { color: #16D05C; }
.landing-race__note {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 0;
    padding: 3px 9px;
    min-height: 63px;
    background: rgba(22, 208, 92, 0.10);
    border: 1px solid #16D05C;
    border-radius: 8px;
    color: #16D05C;
    font-size: 16px;
    font-weight: 600;
    line-height: 18px;
    letter-spacing: 1.12px;
}
.landing-race__note b { color: #fff; font-weight: inherit; }
.landing-race__deadline {
    margin: 0;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    text-align: center;
}
.landing-race__note-icon {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 7px;
    background: rgba(22, 208, 92, 0.10);
    border: 1px solid #16D05C;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.landing-race__note-icon img { display: block; width: 24px; height: 24px; }

/* ---------- textos de cierre ---------- */
.landing-note {
    margin: 0;
    color: #9CA1A7;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.41;
    text-align: center;
}
.landing-note b { color: #fff; font-weight: inherit; }

/* ---------- CTA fijo al pie ---------- */
.landing-cta-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 430px;
    margin: 0 auto;
    padding: 12px 29px calc(12px + env(safe-area-inset-bottom));
    background: #0B0B0C;
    border-top: 1px solid #1A1A1A;
}
.landing-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 10px 8px;
    background: #FF8000;
    color: #0B0B0C;
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.36px;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}
.landing-cta:hover { background: #FF9020; }
.landing-cta-bar__hint {
    margin: 0;
    color: #FF8000;
    font-size: 16px;
    font-weight: 600;
    line-height: 18px;
    letter-spacing: 1.12px;
    text-align: center;
}
.landing-cta-bar__hint span { color: #fff; }
.landing-cta-bar .landing-secondary { padding: 0 8px; }
