/* ============================================================
   Pilot Program LP – shared tokens + container
   ============================================================ */

.pilot-program-lp {
    --pplp-bg: #1c1c1c;
    --pplp-bg-elevated: #161022;
    --pplp-bg-card: #1c1529;
    --pplp-text: #ffffff;
    --pplp-text-muted: rgba(255, 255, 255, 0.72);
    --pplp-accent: #a855f7;
    --pplp-accent-2: #ec4899;
    --pplp-gradient: linear-gradient(90deg, #a855f7 0%, #ec4899 100%);
    --pplp-radius: 12px;
    --pplp-radius-sm: 8px;
    --pplp-padding: 24px;

    /* No solid page bg — production uses site/theme gradients behind LP sections */
    color: var(--pplp-text);
    font-family: var(--cs-font-base-family, inherit), sans-serif;
    left: 50%;
    margin-block: 0 !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    max-width: 100vw !important;
    position: relative;
    width: 100vw !important;
}

/* Gutenberg canvas only — dark surface so white text stays readable */
.editor-styles-wrapper .pilot-program-lp,
.editor-styles-wrapper .pilot-program-content-packages {
    background-color: var(--cs-dark-site-background, #1c1c1c);
    color: #fff;
}

.editor-styles-wrapper .pilot-program-lp {
    left: auto;
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: none !important;
    width: 100% !important;
}

/* Keep Gutenberg appender / inserter usable inside LP sections */
.editor-styles-wrapper .pilot-program-lp .block-list-appender,
.editor-styles-wrapper .pilot-program-lp .block-editor-inserter,
.editor-styles-wrapper .pilot-program-lp .block-editor-button-block-appender,
.editor-styles-wrapper .pilot-program-lp .block-editor-default-block-appender,
.editor-styles-wrapper .pilot-program-lp .components-button {
    max-width: none;
    pointer-events: auto;
}

/* Kill theme entry-content vertical gaps between LP full-bleed sections only */
body.has-pilot-program-hero .cs-main-content .entry-content > .pilot-program-lp,
body.has-pilot-program-hero
    .cs-main-content
    .entry-content
    > [class*="wp-block-pilot-program-"],
body.has-pilot-program-hero .cs-main-content .entry-content > .pilotwp-tv-programs,
body.has-pilot-program-hero
    .cs-main-content
    .entry-content
    > .pilotwp-devices-section,
body.has-pilot-program-hero
    .cs-main-content
    .entry-content
    > [class*="wp-block-pilotwp-"] {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.pilot-program-lp,
.pilot-program-lp :where(*) {
    font-family: var(--cs-font-base-family, inherit), sans-serif;
}

/* Avoid orphans / “sierotki” — pretty for body, balance for headings */
.pilot-program-lp :where(
    p,
    li,
    span,
    a,
    label,
    small,
    figcaption,
    blockquote,
    td,
    th,
    dd,
    dt
) {
    orphans: 3;
    text-wrap: pretty;
    widows: 3;
}

.pilot-program-lp :where(h1, h2, h3, h4, h5, h6) {
    font-family: var(--cs-font-headings-family, var(--cs-font-base-family, inherit)),
        sans-serif;
    orphans: 2;
    text-wrap: balance;
    widows: 2;
}

.pilot-program-lp *,
.pilot-program-lp *::before,
.pilot-program-lp *::after {
    box-sizing: border-box;
}

.pilot-program-lp :where(a, h1, h2, h3, h4, p, span, ul, ol, li, button):not(
    [class*="components-"],
    [class*="block-editor-"],
    [class*="block-list-"],
    .rich-text
) {
    border: 0;
    float: none;
    margin: 0;
    max-width: none;
    text-decoration: none;
}

/*
 * Prose in offer + SEO sections: use theme .entry-content typography/spacing.
 * Undo LP element resets inside those regions.
 */
.pilot-program-lp .pilot-program-content-packages__content.entry-content,
.pilot-program-lp .pilot-program-seo__inner.entry-content {
    /* Keep LP light text — theme --cs-color-primary is dark in light scheme */
    color: var(--pplp-text, #ffffff);
    line-height: var(--cs-font-post-content-line-height);
    /* Nested .entry-content inherits theme padding/margins — reset to align with hero */
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.pilot-program-lp .pilot-program-content-packages__content.entry-content :where(
    a,
    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    p,
    span,
    ul,
    ol,
    li,
    blockquote,
    strong,
    b,
    em,
    i
),
.pilot-program-lp .pilot-program-seo__inner.entry-content :where(
    a,
    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    p,
    span,
    ul,
    ol,
    li,
    blockquote,
    strong,
    b,
    em,
    i
) {
    color: inherit;
}

.pilot-program-lp .pilot-program-content-packages__content.entry-content {
    --cs-entry-content-medium-width: 100%;
    max-width: none;
    width: 100%;
}

.pilot-program-lp .pilot-program-seo__inner.entry-content {
    --cs-entry-content-medium-width: 100%;
    max-width: none !important;
    width: 100%;
}

.pilot-program-lp .pilot-program-content-packages__content.entry-content :where(
    a,
    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    p,
    span,
    ul,
    ol,
    li,
    blockquote,
    strong,
    b,
    em,
    i
),
.pilot-program-lp .pilot-program-seo__inner.entry-content :where(
    a,
    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    p,
    span,
    ul,
    ol,
    li,
    blockquote,
    strong,
    b,
    em,
    i
),
.pilot-program-lp .pilot-program-faq :where(
    .pilot-program-faq__title,
    .pilot-program-faq__question,
    .pilot-program-faq__answer,
    .pilot-program-faq__answer p,
    .pilot-program-faq__answer a,
    .pilot-program-faq__answer strong,
    .pilot-program-faq__answer em
) {
    border: revert;
    float: revert;
    margin: revert;
    max-width: revert;
    text-decoration: revert;
}

/* Mirror theme entry-content block spacing for nested prose wrappers */
.cs-main-content
    .entry-content
    .pilot-program-content-packages__content
    > *:not(.wp-block-heading),
.cs-main-content
    .entry-content
    .pilot-program-seo__inner
    > *:not(.wp-block-heading) {
    margin-top: 32px;
    margin-bottom: 32px;
}

.cs-main-content
    .entry-content
    .pilot-program-content-packages__content
    > *:not(.wp-block-heading):first-child,
.cs-main-content
    .entry-content
    .pilot-program-seo__inner
    > *:not(.wp-block-heading):first-child {
    margin-top: 0;
}

.cs-main-content
    .entry-content
    .pilot-program-content-packages__content
    > *:not(.wp-block-heading):last-child,
.cs-main-content
    .entry-content
    .pilot-program-seo__inner
    > *:not(.wp-block-heading):last-child {
    margin-bottom: 0;
}

.cs-main-content
    .entry-content
    .pilot-program-content-packages__content
    .wp-block-heading,
.cs-main-content .entry-content .pilot-program-seo__inner .wp-block-heading {
    margin-bottom: 16px;
}

.cs-main-content
    .entry-content
    .pilot-program-content-packages__content
    .wp-block-heading:last-child,
.cs-main-content
    .entry-content
    .pilot-program-seo__inner
    .wp-block-heading:last-child {
    margin-bottom: 0;
}

.cs-main-content
    .entry-content
    .pilot-program-content-packages__content
    .wp-block-heading
    + *,
.cs-main-content
    .entry-content
    .pilot-program-seo__inner
    .wp-block-heading
    + * {
    margin-top: 16px;
}

.pilot-program-lp :where(img) {
    display: block;
    height: auto;
    max-width: 100%;
    vertical-align: middle;
}

.pilot-program-lp__container {
    margin-inline: auto;
    max-width: var(--cs-mobile-container, 576px);
    padding-left: var(--pplp-padding);
    padding-right: var(--pplp-padding);
    width: 100%;
}

@media (min-width: 768px) {
    .pilot-program-lp__container {
        max-width: var(--cs-tablet-container, 992px);
    }
}

@media (min-width: 992px) {
    .pilot-program-lp__container {
        max-width: var(--cs-laptop-container, 1200px);
    }
}

@media (min-width: 1200px) {
    .pilot-program-lp__container {
        max-width: var(--cs-desktop-container, 1648px);
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .pilot-program-lp {
        --pplp-padding: 3rem;
    }
}

@media (min-width: 1200px) and (max-width: 1659.98px) {
    .pilot-program-lp {
        --pplp-padding: 3rem;
    }
}

.pilot-program-lp__btn {
    align-items: center;
    background: var(--pplp-gradient);
    border-radius: 999px;
    color: #fff !important;
    display: inline-flex;
    font-size: 0.9375rem;
    font-weight: 600;
    justify-content: center;
    line-height: 1.2;
    min-height: 40px;
    padding: 10px 16px;
    transition: opacity 0.15s ease;
    white-space: nowrap;
}

.pilot-program-lp__btn:hover {
    opacity: 0.92;
}

.pilot-program-lp__btn--solid {
    background: #fff !important;
    border-radius: 8px;
    color: #121212 !important;
    font-weight: 700;
}

.pilot-program-lp__btn--block {
    width: 100%;
}

/* Shared offer package cards (Figma sidebar / Frame content+packages) */
.pilot-program-package {
    --pplp-package-glow: #e93030;

    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px 16px 16px;
    position: relative;
}

.pilot-program-package.is-clickable {
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.pilot-program-package.is-clickable:hover {
    background: rgba(255, 255, 255, 0.05);
}

.pilot-program-package__hit {
    border-radius: inherit;
    inset: 0;
    position: absolute;
    z-index: 3;
}

.pilot-program-package.is-highlighted {
    border-color: var(--pplp-package-glow, #e93030);
    box-shadow: none;
}

.pilot-program-package.is-missing {
    color: #f87171;
    padding: 24px;
}

.pilot-program-package__badge {
    background: var(--pplp-package-glow, #e93030);
    border-radius: 24px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    left: 50%;
    letter-spacing: 0;
    line-height: 1.25;
    padding: 2px 10px;
    position: absolute;
    top: -11px;
    transform: translateX(-50%);
    white-space: nowrap;
    z-index: 4;
}

.pilot-program-package__head {
    align-items: flex-start;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    width: 100%;
}

.pilot-program-package__head-main,
.pilot-program-package__head-price {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.pilot-program-package__head-price {
    align-items: flex-end;
    text-align: right;
}

.pilot-program-package__channels,
.pilot-program-package__price {
    color: #fff !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    line-height: 24px !important;
    margin: 0 !important;
}

.pilot-program-package__name,
.pilot-program-package__price-note {
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    letter-spacing: 0 !important;
    line-height: 1.25 !important;
    margin: 0 !important;
}

.pilot-program-package__logos {
    /* Idle: bleed only to the right card edge */
    margin-right: -16px;
    overflow: hidden;
    width: calc(100% + 16px);
}

.pilot-program-package.has-logos-marquee:hover .pilot-program-package__logos,
.pilot-program-package.has-logos-marquee:focus-within .pilot-program-package__logos {
    /* While scrolling: bleed both edges */
    margin-left: -16px;
    margin-right: -16px;
    width: calc(100% + 32px);
}

.pilot-program-package__logos-track {
    --pplp-logos-copies: 6;
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
}

.pilot-program-package__logos-set {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    gap: 6px;
    padding-right: 6px;
}

.pilot-program-package.has-logos-marquee:hover .pilot-program-package__logos-track,
.pilot-program-package.has-logos-marquee:focus-within .pilot-program-package__logos-track {
    animation: pplp-logos-marquee 24s linear infinite;
}

@keyframes pplp-logos-marquee {
    from {
        transform: translateX(0);
    }
    to {
        /* One logo-set of N equal copies → seamless loop */
        transform: translateX(calc(-100% / var(--pplp-logos-copies, 6)));
    }
}

@media (prefers-reduced-motion: reduce) {
    .pilot-program-package.has-logos-marquee:hover .pilot-program-package__logos-track,
    .pilot-program-package.has-logos-marquee:focus-within .pilot-program-package__logos-track {
        animation: none;
    }

    .pilot-program-package.has-logos-marquee:hover .pilot-program-package__logos,
    .pilot-program-package.has-logos-marquee:focus-within .pilot-program-package__logos {
        margin-left: 0;
        width: calc(100% + 16px);
    }
}

.pilot-program-package__logo {
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    display: flex;
    flex: 0 0 63px;
    height: 63px;
    justify-content: center;
    overflow: hidden;
    padding: 8px;
    width: 63px;
}

.pilot-program-package__logo img {
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.pilot-program-package__actions {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}

.pilot-program-package__disclaimer {
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    letter-spacing: 0 !important;
    line-height: 1.25 !important;
    margin: 0 !important;
    text-align: center;
}

.pilot-program-package__btn.pilot-program-lp__btn {
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #fff !important;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 20px;
    margin-top: 0;
    min-height: 42px;
    padding: 11px 20px;
    pointer-events: none;
    text-align: center;
}

.pilot-program-package.is-clickable:hover .pilot-program-package__btn.pilot-program-lp__btn,
.pilot-program-package.is-clickable:focus-within .pilot-program-package__btn.pilot-program-lp__btn {
    background: rgba(255, 255, 255, 0.06) !important;
    opacity: 1;
}
