/*
 * Station Master Pro 5 lander (resources/views/landers/lander-5.blade.php).
 *
 * Everything is scoped to body.lander-5, so the other landers are untouched. It also restyles the shared
 * payment form and reviews partials (.cta-section, .testimonials-section) and the shared footer.
 *
 * Colours come from the app: its charcoal window, the plum glow along the bottom edge, and the magenta to
 * orange of the logo. The magenta is the only accent; the gradient is kept for hairlines and the "5" badge.
 * The exception is the payment form sections, which stay green as on every lander (green means go).
 */

body.lander-5 {
    --sm5-ink: #1b1c1e;        /* app window */
    --sm5-panel: #2e2f33;      /* app panels */
    --sm5-line: #3d3e42;
    --sm5-plum: #601f58;       /* glow at the bottom of the app window */
    --sm5-accent: #c62786;     /* logo magenta */
    --sm5-accent-dark: #a81e70;
    --sm5-brand: linear-gradient(90deg, #d9248b, #ea7479 55%, #f5a623);
    --sm5-paper: #f5f5f7;
    --sm5-text: #1b1c1e;
    --sm5-muted: #5a5c66;
    --sm5-border: #e3e3e8;

    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    color: var(--sm5-text);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

/* ---- header ---- */

.lander-5 .sm5-header {
    background: var(--sm5-ink);
    padding: 18px 0;
    border-bottom: 1px solid var(--sm5-line);
}

.lander-5 .sm5-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.lander-5 .sm5-logo {
    display: inline-flex;
    align-items: flex-start;
    text-decoration: none;
}

.lander-5 .sm5-logo img {
    height: 44px;
    width: auto;
}

.lander-5 .sm5-logo__badge {
    margin-left: 6px;
    padding: 1px 8px;
    border-radius: 6px;
    background: var(--sm5-brand);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 800;
    line-height: 1.4;
}

.lander-5 .sm5-header__title {
    margin: 0;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 600;
}

.lander-5 .sm5-header__title span {
    color: #a9abb3;
    font-weight: 400;
}

/* ---- buttons ---- */

.lander-5 .sm5-btn,
.lander-5 .cta-section .btn-light {
    display: inline-block;
    background: var(--sm5-accent);
    border: 1px solid var(--sm5-accent);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    border-radius: 10px;
    transition: background-color .15s ease, transform .15s ease;
}

.lander-5 .sm5-btn:hover,
.lander-5 .cta-section .btn-light:hover {
    background: var(--sm5-accent-dark);
    border-color: var(--sm5-accent-dark);
    color: #fff;
}

.lander-5 .sm5-btn:focus-visible,
.lander-5 .cta-section .btn-light:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 2px;
}

.lander-5 .sm5-btn--lg {
    padding: 15px 44px;
    font-size: 1.3rem;
}

/* on the green form sections the buttons are white, as on the other landers; magenta would fight the green */
.lander-5 .cta-section .btn-light:hover {
    background: var(--sm5-ink);
    border-color: var(--sm5-ink);
    color: #fff;
}

/* ---- hero ---- */

.lander-5 .sm5-hero {
    /* the plum glow rises from the bottom corners, as it does behind the app window */
    background:
        radial-gradient(60% 55% at 0% 100%, rgba(96, 31, 88, .75), transparent 70%),
        radial-gradient(55% 50% at 100% 100%, rgba(102, 43, 49, .65), transparent 70%),
        var(--sm5-ink);
    color: #fff;
    padding: 64px 0 72px;
}

.lander-5 .sm5-eyebrow {
    margin: 0 0 14px;
    color: #c9cad1;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.15rem;
    font-style: italic;
    font-weight: 400;
}

.lander-5 .sm5-hero__title {
    margin: 0 0 30px;
    font-size: clamp(2rem, 4.6vw, 3.4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.02em;
    text-wrap: balance;
}

.lander-5 .sm5-hero__note {
    margin: 14px 0 0;
    color: #c9cad1;
    font-size: 0.95rem;
}

.lander-5 .sm5-hero__seen {
    margin: 26px 0 0;
    color: #a9abb3;
    font-size: 1rem;
}

.lander-5 .sm5-hero__seen em {
    color: #fff;
    font-style: normal;
    font-weight: 600;
}

.lander-5 .sm5-hero__shots {
    margin-top: 22px;
}

.lander-5 .sm5-shot {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
    cursor: zoom-in;
}

.lander-5 .sm5-hero .sm5-shot {
    border: 1px solid var(--sm5-line);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
}

/* ---- features ---- */

.lander-5 .sm5-features {
    background: var(--sm5-paper);
    padding: 72px 0;
}

.lander-5 .sm5-features h2,
.lander-5 .testimonials-section h2 {
    margin: 0 0 40px;
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 800;
    letter-spacing: -.015em;
}

/* the short gradient rule under section headings: the one place the logo colours appear on the light sections */
.lander-5 .sm5-features h2::after,
.lander-5 .testimonials-section h2::after {
    content: '';
    display: block;
    width: 64px;
    height: 4px;
    margin: 16px auto 0;
    border-radius: 2px;
    background: var(--sm5-brand);
}

.lander-5 .sm5-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.lander-5 .sm5-card {
    background: #fff;
    border: 1px solid var(--sm5-border);
    border-radius: 14px;
    padding: 26px 22px;
}

.lander-5 .sm5-card--shot {
    padding: 10px 10px 22px;
}

.lander-5 .sm5-card--shot .sm5-shot {
    margin-bottom: 18px;
    border-radius: 8px;
    background: var(--sm5-ink);
}

.lander-5 .sm5-card > i {
    display: block;
    margin-bottom: 12px;
    color: var(--sm5-accent);
    font-size: 1.9rem;
    line-height: 1;
}

.lander-5 .sm5-card h3 {
    margin: 0 0 8px;
    font-size: 1.1rem;
    font-weight: 700;
}

.lander-5 .sm5-card p {
    margin: 0;
    color: var(--sm5-muted);
    font-size: 0.95rem;
    line-height: 1.55;
}

.lander-5 .sm5-card--shot p {
    padding: 0 12px;
}

.lander-5 .sm5-card p b {
    color: var(--sm5-text);
    font-weight: 600;
}

/* ---- payment form (partials/payment-form) ---- */

/* green on purpose: green means go. Same background as the form sections on the other landers */
.lander-5 .cta-section {
    background: linear-gradient(135deg, #28a745, #218838);
    color: #fff;
    padding: 60px 0;
}

.lander-5 .cta-section h2 {
    font-size: clamp(1.7rem, 3.2vw, 2.3rem);
    font-weight: 800;
    letter-spacing: -.015em;
}

.lander-5 .cta-section p {
    margin-bottom: 26px;
    color: #fff;
    font-size: 1.1rem;
}

.lander-5 .cta-section p b {
    color: #fff;
}

.lander-5 .cta-section form + div {
    color: rgba(255, 255, 255, .9);
    font-size: 0.9rem;
}

.lander-5 .cta-section .form-control {
    max-width: 150px;
    height: 46px;
    margin-right: 0;
    border: 1px solid transparent;
    border-radius: 10px;
}

.lander-5 .cta-section .form-control.email-input {
    width: 280px;
}

.lander-5 .cta-section .form-control:focus {
    border-color: var(--sm5-ink);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .55);
}

.lander-5 .cta-section .form-check {
    margin-right: 0;
    padding-left: 0;
}

.lander-5 .cta-section .form-check-input {
    float: none;
    margin: 0;
    cursor: pointer;
}

.lander-5 .cta-section .form-check-input:checked {
    background-color: var(--sm5-ink);
    border-color: var(--sm5-ink);
}

.lander-5 .cta-section .form-check-label {
    margin-left: 8px;
    font-weight: 600;
    cursor: pointer;
}

.lander-5 .cta-section .btn-light {
    background: #fff;
    border-color: #fff;
    color: var(--sm5-ink);
    height: 46px;
    margin-bottom: 0 !important;
    padding: 0 24px;
    font-size: 1rem !important;
    letter-spacing: .04em;
}

/* ---- reviews (partials/reviews) ---- */

.lander-5 .testimonials-section {
    background: #fff;
    padding: 72px 0;
}

.lander-5 .testimonials-section .container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.lander-5 .testimonials-section h2 {
    grid-column: 1 / -1;
    margin-bottom: 20px;
}

.lander-5 .testimonial {
    margin: 0;
    padding: 24px 22px;
    border: 1px solid var(--sm5-border);
    border-radius: 14px;
    background: var(--sm5-paper);
    text-align: left;
}

.lander-5 .testimonial p {
    margin: 0 0 8px;
    color: var(--sm5-muted);
    font-size: 0.95rem;
    line-height: 1.55;
}

.lander-5 .testimonial p:first-child {
    color: var(--sm5-text);
}

.lander-5 .testimonial p:nth-child(2) {
    color: var(--sm5-text);
    font-weight: 600;
}

.lander-5 .testimonial p:last-child {
    margin-bottom: 0;
}

.lander-5 .testimonial .rating {
    color: #f5a623;
    letter-spacing: 2px;
}

/* ---- footer (partials/footer) ---- */

.lander-5 footer {
    margin-top: 0 !important;
    background: var(--sm5-ink);
    color: #a9abb3;
    padding: 28px 0;
    font-size: 0.9rem;
}

.lander-5 footer p {
    margin-bottom: 6px;
}

.lander-5 footer a {
    color: #fff;
}

/* ---- lightbox ---- */

#sm5-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, .9);
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

#sm5-lightbox.active {
    display: flex;
}

#sm5-lightbox img {
    max-width: 94vw;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, .6);
    cursor: default;
}

#sm5-lightbox-close {
    position: absolute;
    top: 14px;
    right: 22px;
    color: #fff;
    font-size: 2.2rem;
    line-height: 1;
    cursor: pointer;
    user-select: none;
}

/* ---- smaller screens ---- */

@media (max-width: 992px) {
    .lander-5 .sm5-grid,
    .lander-5 .testimonials-section .container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .lander-5 .sm5-header__inner {
        justify-content: center;
    }

    .lander-5 .sm5-header__title {
        display: none;
    }

    .lander-5 .sm5-logo img {
        height: 36px;
    }

    .lander-5 .sm5-hero {
        padding: 44px 0 52px;
    }

    .lander-5 .sm5-eyebrow {
        font-size: 1rem;
    }

    .lander-5 .sm5-features,
    .lander-5 .testimonials-section {
        padding: 52px 0;
    }

    .lander-5 .cta-section .form-control,
    .lander-5 .cta-section .form-control.email-input {
        width: 100%;
        max-width: 100% !important;
        margin-bottom: 0;
    }

    /* the two plans become tappable boxes: side by side when they fit, stacked on narrow phones */
    .lander-5 .cta-section .col-auto.d-flex {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        padding-top: 6px;
        padding-bottom: 6px;
    }

    .lander-5 .cta-section .form-check {
        flex: 1 1 auto;
        justify-content: center;
        min-height: 46px;
        margin: 0 !important;
        padding: 0 14px;
        border: 1px solid rgba(255, 255, 255, .45);
        border-radius: 10px;
    }

    .lander-5 .cta-section .form-check:has(.form-check-input:checked) {
        border-color: #fff;
        background: rgba(255, 255, 255, .2);
    }

    .lander-5 .cta-section .form-check-input {
        flex-shrink: 0;
    }

    .lander-5 .cta-section .form-check-label {
        padding: 11px 0;
        white-space: nowrap;
    }

    .lander-5 .cta-section .btn-light {
        margin-top: 8px;
    }
}

@media (max-width: 576px) {
    .lander-5 .sm5-grid,
    .lander-5 .testimonials-section .container {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lander-5 .sm5-btn,
    .lander-5 .cta-section .btn-light {
        transition: none;
    }
}
