/* ScreensPro Cloud's public pages, after dbnetsoft.public.css (dbnetsoft.Web.Theme), as each [db]netsoft site
   adds its own: the hero, the signal path (as RemoteRedirect's), the features and the comparison. The boldness is
   spent on the screen in the hero: a browser window showing a channel on air. */

/* ---------- hero ---------- */

.ds-hero {
    background: var(--ds-asphalt);
    color: var(--ds-on-asphalt);
    padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(2.5rem, 5vw, 4rem);
}

.ds-hero :focus-visible {
    outline-color: var(--ds-signal);
}

.ds-hero a:not(.ds-btn) {
    color: var(--ds-on-asphalt);
    text-decoration-color: var(--ds-signal);
}

.ds-hero__intro {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    align-items: end;
    gap: 1.5rem clamp(2rem, 5vw, 4.5rem);
    margin-bottom: clamp(2rem, 4.5vw, 3.25rem);
}

.ds-hero__title {
    font-size: clamp(2.75rem, 7vw, 5rem);
    line-height: .95;
    margin: 0;
    max-width: 14ch;
}

.ds-hero__lead {
    color: var(--ds-on-asphalt-muted);
    font-size: 1.1875rem;
    line-height: 1.55;
    max-width: 34rem;
    margin: 0 0 1.5rem;
}

.ds-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

/* ---------- the screen in the hero ---------- */

.sp-screen {
    margin: 0 auto;
    max-width: 62rem;
}

.sp-screen__bar {
    display: flex;
    align-items: center;
    gap: .4rem;
    padding: .55rem .8rem;
    background: var(--ds-asphalt-raised);
    border: 1px solid var(--ds-asphalt-line);
    border-bottom: 0;
    border-radius: 6px 6px 0 0;
}

.sp-screen__bar > span:nth-child(-n+3) {
    width: .7rem;
    height: .7rem;
    border-radius: 50%;
    background: var(--ds-asphalt-line);
}

.sp-screen__url {
    flex: 1 1 auto;
    margin-left: .6rem;
    padding: .15rem .7rem;
    border-radius: 999px;
    background: var(--ds-asphalt);
    color: var(--ds-on-asphalt-muted);
    font-size: .8125rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sp-screen__live {
    font-family: var(--ds-condensed);
    font-weight: 700;
    font-size: .8125rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ds-asphalt);
    background: var(--ds-signal);
    border-radius: var(--ds-radius);
    padding: .1rem .5rem;
}

/* 16:9, the channel's picture: the list at the top, the latest finisher in the lower third */
.sp-screen__face {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 1px solid var(--ds-asphalt-line);
    border-radius: 0 0 6px 6px;
    background:
        radial-gradient(120% 90% at 20% 15%, #24527a 0%, transparent 60%),
        repeating-linear-gradient(115deg, rgba(255, 255, 255, .035) 0 42px, transparent 42px 120px),
        #0b1a2c;
}

.sp-screen__face img {
    position: absolute;
    left: 5%;
    width: 90%;
    height: auto;
    top: 8%;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .45));
}

.sp-screen__face .sp-screen__lower {
    width: 66%;
    top: auto;
    bottom: 9%;
}

.sp-screen__caption {
    margin-top: .75rem;
    color: var(--ds-on-asphalt-muted);
    font-size: .9375rem;
}

/* ---------- the signal path (as RemoteRedirect's) ---------- */

.ds-path {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: clamp(1rem, 2.5vw, 1.75rem);
    background: var(--ds-concrete);
    border-radius: var(--ds-radius);
}

.ds-path li {
    display: flex;
    align-items: center;
    min-width: 0;
}

.ds-path li + li {
    flex: 1 1 0;
}

.ds-path__box {
    flex: 0 1 auto;
    display: flex;
    flex-direction: column;
    background: var(--ds-paper);
    border-radius: var(--ds-radius);
    padding: .65rem .8rem;
    min-width: 7.5rem;
    max-width: 14rem;
}

.ds-path__box b {
    font-size: .9375rem;
    font-weight: 600;
    line-height: 1.3;
}

.ds-path__box small {
    color: var(--ds-muted);
    font-size: .8125rem;
    line-height: 1.35;
    margin-top: .15rem;
}

.ds-path__box--cloud {
    background: var(--ds-asphalt);
    box-shadow: inset 0 -3px 0 var(--ds-signal);
}

.ds-path__box--cloud b {
    color: var(--ds-on-asphalt);
}

.ds-path__box--cloud small {
    color: var(--ds-on-asphalt-muted);
}

.ds-path__via {
    flex: 1 1 auto;
    position: relative;
    min-width: 3.75rem;
    padding: 0 .55rem 1.1rem .35rem;
    color: var(--ds-muted);
    font-size: .8125rem;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
}

.ds-path__via::before {
    content: "";
    position: absolute;
    left: .35rem;
    right: .7rem;
    bottom: .5rem;
    border-top: 2px solid var(--ds-asphalt);
}

.ds-path__via::after {
    content: "";
    position: absolute;
    right: .35rem;
    bottom: calc(.5rem - 4px);
    border-block: 5px solid transparent;
    border-left: 8px solid var(--ds-asphalt);
}

.ds-section__foot {
    color: var(--ds-muted);
    max-width: var(--ds-measure);
    margin: 2rem 0 0;
}

/* ---------- features ---------- */

.sp-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
}

.sp-feature {
    background: var(--ds-paper);
    border-radius: var(--ds-radius);
    border-top: 3px solid var(--ds-signal);
    padding: 1.25rem 1.35rem 1.35rem;
}

.sp-feature h3 {
    font-size: 1.25rem;
    margin: 0 0 .5rem;
}

.sp-feature p {
    color: var(--ds-muted);
    margin: 0;
}

/* ---------- cloud or native ---------- */

.sp-compare {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
    max-width: 56rem;
}

.sp-compare__col {
    border: 1px solid var(--ds-line);
    border-radius: var(--ds-radius);
    padding: 1.25rem 1.35rem;
}

.sp-compare__col--cloud {
    border-color: var(--ds-asphalt);
    box-shadow: inset 0 3px 0 var(--ds-signal);
}

.sp-compare__col h3 {
    font-size: 1.375rem;
    margin: 0 0 .75rem;
}

.sp-compare__col ul {
    margin: 0;
    padding-left: 1.1rem;
    color: var(--ds-muted);
}

.sp-compare__col li + li {
    margin-top: .3rem;
}

/* ---------- sign-in and the account pages (Identity) ---------- */

.ds-page h1 {
    margin-bottom: 1.25rem;
}

/* ---------- narrow screens ---------- */

@media (max-width: 991.98px) {
    .sp-features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ds-hero__intro {
        grid-template-columns: minmax(0, 1fr);
        align-items: start;
    }
}

@media (max-width: 767.98px) {
    .sp-features,
    .sp-compare {
        grid-template-columns: minmax(0, 1fr);
    }

    .ds-path,
    .ds-path li {
        flex-direction: column;
        align-items: flex-start;
    }

    .ds-path li + li {
        flex: 0 0 auto;
    }

    .ds-path__box {
        max-width: none;
    }

    .ds-path__via {
        padding: .55rem 0 .55rem 1.6rem;
        margin-left: .75rem;
        text-align: left;
        min-width: 0;
    }

    .ds-path__via::before {
        left: 0;
        right: auto;
        top: .2rem;
        bottom: .55rem;
        border-top: 0;
        border-left: 2px solid var(--ds-asphalt);
    }

    .ds-path__via::after {
        left: -4px;
        right: auto;
        bottom: .2rem;
        border-block: 0;
        border-inline: 5px solid transparent;
        border-top: 8px solid var(--ds-asphalt);
    }
}

@media (max-width: 575.98px) {
    .ds-hero__actions .ds-btn {
        flex: 1 1 100%;
    }
}
