/*
 * Challenge landing pages (includes/challenge-landing.php).
 * Loaded after team-fitness-challenges.css and reuses its tokens, header,
 * footer, buttons, FAQ and final CTA. Everything new carries an lp- prefix.
 */

.lp-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(110deg, rgba(237, 245, 255, 0.95) 0%, rgba(247, 251, 255, 0.92) 50%, rgba(229, 246, 255, 0.95) 100%);
    isolation: isolate;
}

.lp-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.42;
    background-image:
        linear-gradient(rgba(36, 90, 203, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(36, 90, 203, 0.07) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 58%, #000);
    mask-image: linear-gradient(90deg, transparent, #000 58%, #000);
}

.lp-hero-inner {
    padding-block: 56px 84px;
}

.lp-crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 34px;
    color: var(--muted);
    font-size: 0.92rem;
}

.lp-crumbs a {
    color: var(--blue-700);
    text-decoration: none;
}

.lp-crumbs a:hover {
    text-decoration: underline;
}

.lp-hero h1 {
    max-width: 900px;
    margin: 0;
    color: var(--navy-950);
    font-size: clamp(2.4rem, 4.6vw, 4.1rem);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 1.03;
}

.lp-lead {
    max-width: 760px;
    margin: 24px 0 0;
    color: #465b78;
    font-size: 1.24rem;
    line-height: 1.55;
}

/* Long-form body */

.lp-body {
    padding-block: 88px;
}

.lp-alt {
    background: #f6f9fd;
    border-block: 1px solid var(--line);
}

.lp-prose {
    max-width: 780px;
}

.lp-prose h2 {
    margin: 0 0 18px;
    color: var(--navy-950);
    font-size: clamp(1.9rem, 3vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.1;
}

.lp-prose h3 {
    margin: 34px 0 10px;
    color: var(--navy-900);
    font-size: 1.32rem;
    font-weight: 800;
    letter-spacing: -0.015em;
}

.lp-prose p,
.lp-prose li {
    color: #33445f;
    font-size: 1.1rem;
    line-height: 1.7;
}

.lp-prose ul,
.lp-prose ol {
    padding-left: 1.3em;
}

.lp-prose li + li {
    margin-top: 8px;
}

.lp-prose a {
    color: var(--blue-700);
}

.lp-prose .lp-source {
    color: var(--muted);
    font-size: 0.95rem;
}

.lp-wide {
    max-width: none;
}

/* Pain-point / feature cards */

.lp-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin: 34px 0 0;
    padding: 0;
    list-style: none;
}

.lp-cards > li {
    margin: 0;
    padding: 26px 26px 24px;
    border: 1px solid var(--line);
    border-top: 4px solid var(--blue-600);
    border-radius: 16px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.lp-cards > li:nth-child(3n+2) { border-top-color: var(--teal-500); }
.lp-cards > li:nth-child(3n+3) { border-top-color: var(--orange-500); }

.lp-cards h3 {
    margin: 0 0 8px;
    color: var(--navy-950);
    font-size: 1.18rem;
    font-weight: 800;
}

.lp-cards p {
    margin: 0;
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.6;
}

.lp-cards .lp-fix {
    margin-top: 12px;
    color: var(--teal-600);
    font-weight: 700;
}

/* Stat tiles */

.lp-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin: 30px 0;
    padding: 0;
    list-style: none;
}

.lp-stats > li {
    margin: 0;
    padding: 24px;
    border-radius: 16px;
    background: var(--soft-blue);
}

.lp-stats strong {
    display: block;
    color: var(--blue-700);
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
}

.lp-stats span {
    display: block;
    margin-top: 10px;
    color: #33445f;
    font-size: 1rem;
    line-height: 1.5;
}

.lp-stats small {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.86rem;
}

/* Callout */

.lp-callout {
    margin: 30px 0;
    padding: 22px 26px;
    border-left: 4px solid var(--teal-500);
    border-radius: 0 14px 14px 0;
    background: var(--soft-teal);
}

.lp-callout p {
    margin: 0;
    color: var(--ink);
}

.lp-callout p + p {
    margin-top: 10px;
}

/* Numbered plan */

.lp-steps {
    margin: 34px 0 0;
    padding: 0;
    list-style: none;
    counter-reset: lp-step;
}

.lp-steps > li {
    position: relative;
    margin: 0;
    padding: 0 0 30px 70px;
    counter-increment: lp-step;
}

.lp-steps > li::before {
    content: counter(lp-step);
    position: absolute;
    top: 0;
    left: 0;
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 50%;
    color: var(--white);
    background: var(--blue-600);
    font-weight: 800;
}

.lp-steps > li::after {
    content: "";
    position: absolute;
    top: 52px;
    bottom: 6px;
    left: 22px;
    width: 2px;
    background: var(--line);
}

.lp-steps > li:last-child::after {
    display: none;
}

.lp-steps h3 {
    margin: 8px 0 6px;
}

.lp-steps p {
    margin: 0;
}

/* Table */

.lp-table-wrap {
    margin: 28px 0;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 14px;
}

.lp-table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    font-size: 1rem;
}

.lp-table th,
.lp-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.lp-table thead th {
    color: var(--navy-900);
    background: var(--soft-blue);
    font-weight: 800;
}

.lp-table tbody tr:last-child td {
    border-bottom: 0;
}

/* Related pages */

.lp-related {
    padding-block: 80px;
    background: #f6f9fd;
    border-top: 1px solid var(--line);
}

.lp-related h2 {
    margin: 0 0 26px;
    color: var(--navy-950);
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.lp-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lp-related-grid a {
    display: block;
    height: 100%;
    padding: 20px 22px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--white);
    text-decoration: none;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.lp-related-grid a:hover {
    border-color: var(--blue-500);
    transform: translateY(-2px);
}

.lp-related-grid a:focus-visible {
    outline: 3px solid var(--blue-500);
    outline-offset: 2px;
}

.lp-related-grid strong {
    display: block;
    color: var(--navy-900);
    font-size: 1.08rem;
}

.lp-related-grid span {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.5;
}

@media (max-width: 620px) {
    .lp-hero-inner {
        padding-block: 36px 56px;
    }

    .lp-body {
        padding-block: 60px;
    }

    .lp-steps > li {
        padding-left: 58px;
    }

    .lp-steps > li::before {
        width: 40px;
        height: 40px;
    }

    .lp-steps > li::after {
        left: 19px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lp-related-grid a {
        transition: none;
    }

    .lp-related-grid a:hover {
        transform: none;
    }
}

/* The platform page's footer carries a fourth link column. */
@media (min-width: 621px) {
    .footer-links:has(> div:nth-child(4)) {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Five audiences no longer fit on one line at mid widths; let the strip wrap. */
.audience-inner ul {
    flex-wrap: wrap;
    row-gap: 10px;
}
