/**
 * Landing page — enterprise SaaS theme (light + dark)
 * Scoped to body.isp-landing-page only
 */

/* ── Design tokens ─────────────────────────────────────────────── */

/* Light — clean white, airy */
:root,
html:not([data-theme]),
[data-theme="light"] {
    --lp-bg: #ffffff;
    --lp-bg-subtle: #f8fafc;
    --lp-surface: #ffffff;
    --lp-surface-raised: #ffffff;
    --lp-surface-hover: #f1f5f9;
    --lp-border: #e2e8f0;
    --lp-border-strong: #cbd5e1;
    --lp-text: #0f172a;
    --lp-text-secondary: #475569;
    --lp-text-muted: #94a3b8;
    --lp-accent: #4f46e5;
    --lp-accent-hover: #4338ca;
    --lp-accent-subtle: #eef2ff;
    --lp-accent-glow: transparent;
    --lp-cyan: #0e7490;
    --lp-success: #059669;
    --lp-warning: #d97706;
    --lp-danger: #e11d48;
    --lp-shadow-sm: none;
    --lp-shadow-md: 0 1px 3px rgba(15, 23, 42, 0.06);
    --lp-shadow-lg: 0 4px 20px rgba(15, 23, 42, 0.08);
    --lp-page-bg: #ffffff;
    --lp-header-bg: rgba(255, 255, 255, 0.92);
    --lp-hero-bg: #f8fafc;
    --lp-link: #4f46e5;
    color-scheme: light;
}

/* Dark — true black, clear contrast */
[data-theme="dark"] {
    --lp-bg: #09090b;
    --lp-bg-subtle: #111113;
    --lp-surface: #18181b;
    --lp-surface-raised: #1f1f23;
    --lp-surface-hover: #27272a;
    --lp-border: #2e2e32;
    --lp-border-strong: #3f3f46;
    --lp-text: #fafafa;
    --lp-text-secondary: #d4d4d8;
    --lp-text-muted: #a1a1aa;
    --lp-accent: #8b8ef8;
    --lp-accent-hover: #a5b4fc;
    --lp-accent-subtle: rgba(99, 102, 241, 0.15);
    --lp-accent-glow: transparent;
    --lp-cyan: #22d3ee;
    --lp-success: #34d399;
    --lp-warning: #fbbf24;
    --lp-danger: #fb7185;
    --lp-shadow-sm: none;
    --lp-shadow-md: 0 1px 3px rgba(0, 0, 0, 0.5);
    --lp-shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.6);
    --lp-page-bg: #09090b;
    --lp-header-bg: rgba(9, 9, 11, 0.94);
    --lp-hero-bg: #111113;
    --lp-link: #a5b4fc;
    color-scheme: dark;
}

/* Legacy aliases used by inline component styles */
:root,
html,
[data-theme="dark"],
[data-theme="light"] {
    --bg: var(--lp-bg);
    --card: var(--lp-surface);
    --accent: var(--lp-accent);
    --accent2: var(--lp-accent);
    --cyan: var(--lp-cyan);
    --text: var(--lp-text);
    --muted: var(--lp-text-muted);
}

/* ── Reset & base ──────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

html, body.isp-landing-page {
    margin: 0;
    padding: 0;
    background: var(--lp-page-bg) !important;
}

html {
    transition: background-color 0.25s ease, color 0.25s ease;
}

body.isp-landing-page {
    font-family: Outfit, ui-sans-serif, system-ui, -apple-system, sans-serif;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--lp-text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.25s ease, color 0.25s ease;
}

body.isp-landing-page > * { position: relative; z-index: 1; }

body.isp-landing-page main a:not(.btn-primary):not(.btn-app):not(.btn-ghost):not(.sign-in-hub__card),
body.isp-landing-page footer a {
    color: var(--lp-link);
}

body.isp-landing-page main a:not(.btn-primary):not(.btn-app):not(.btn-ghost):not(.sign-in-hub__card):hover,
body.isp-landing-page footer a:hover {
    color: var(--lp-accent-hover);
}

/* ── Layout ────────────────────────────────────────────────────── */

.wrap {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1rem 2rem;
    width: 100%;
    overflow-x: clip;
}

body.isp-landing-page main {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

body.isp-landing-page p,
body.isp-landing-page .lead,
body.isp-landing-page .app-banner strong {
    overflow-wrap: break-word;
    word-break: normal;
}

@media (min-width: 768px) {
    .wrap { padding: 0 1.5rem 3rem; }
}

/* ── Header ────────────────────────────────────────────────────── */

body.isp-landing-page .wrap > header,
.landing-header {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
        "brand actions"
        "nav nav";
    align-items: center;
    gap: 0.75rem 1rem;
    position: sticky;
    top: 0;
    z-index: 50;
    margin: 0 -1rem;
    padding: 0.875rem 1rem;
    background: var(--lp-header-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--lp-border);
    transition: background-color 0.25s ease, border-color 0.25s ease;
}

@media (min-width: 768px) {
    body.isp-landing-page .wrap > header,
    .landing-header {
        margin: 0 -1.5rem;
        padding: 1rem 1.5rem;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 1rem;
    }
}

/* Legacy header (no landing-header class) */
body.isp-landing-page .wrap > header:not(.landing-header) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0 1.5rem;
}

body.isp-landing-page .wrap > header:not(.landing-header) nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.brand {
    grid-area: brand;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.brand img {
    height: 2.5rem;
    width: auto;
    flex-shrink: 0;
    border-radius: 0.5rem;
}

.brand h1 {
    font-size: 1.0625rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin: 0;
}

.brand p {
    font-size: 0.75rem;
    color: var(--lp-text-muted);
    margin: 0.125rem 0 0;
    line-height: 1.3;
}

.landing-header__actions {
    grid-area: actions;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Theme switch — Light / Dark */
.theme-switch {
    display: inline-flex;
    padding: 0.1875rem;
    border-radius: 999px;
    border: 1px solid var(--lp-border);
    background: var(--lp-bg-subtle);
    gap: 0.125rem;
}

.theme-switch__btn {
    padding: 0.3125rem 0.625rem;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: var(--lp-text-muted);
    font: inherit;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.theme-switch__btn:hover { color: var(--lp-text); }

.theme-switch__btn.is-active {
    background: var(--lp-surface);
    color: var(--lp-text);
    box-shadow: var(--lp-shadow-md);
}

[data-theme="light"] .theme-switch__btn[data-theme-value="light"].is-active {
    background: #ffffff;
    color: #4f46e5;
}

[data-theme="dark"] .theme-switch__btn[data-theme-value="dark"].is-active {
    background: #262626;
    color: #fafafa;
}

.theme-switch__btn:focus-visible {
    outline: 2px solid var(--lp-accent);
    outline-offset: 1px;
}

/* Mobile nav toggle */
.nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.3rem;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0.5rem;
    border: 1px solid var(--lp-border);
    border-radius: 0.625rem;
    background: var(--lp-surface);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.nav-toggle:hover { background: var(--lp-surface-hover); }

.nav-toggle:focus-visible {
    outline: 2px solid var(--lp-accent);
    outline-offset: 2px;
}

.nav-toggle__bar {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 1px;
    background: var(--lp-text);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
    transform: translateY(0.5rem) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
    transform: translateY(-0.5rem) rotate(-45deg);
}

@media (min-width: 768px) {
    .nav-toggle { display: none; }
}

/* Navigation */
.landing-nav {
    grid-area: nav;
    display: none;
    flex-direction: column;
    gap: 0.375rem;
    width: 100%;
    padding: 0.5rem 0 0;
}

.landing-nav.is-open { display: flex; }

@media (min-width: 768px) {
    .landing-nav {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-end;
        align-items: center;
        width: auto;
        padding: 0;
        gap: 0.5rem;
    }
}

.landing-nav a,
nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.25;
    white-space: nowrap;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

@media (max-width: 767px) {
    .landing-nav a { width: 100%; justify-content: center; padding: 0.75rem 1rem; }
}

/* ── Buttons ───────────────────────────────────────────────────── */

body.isp-landing-page .btn-ghost {
    color: var(--lp-text);
    border: 1px solid var(--lp-border-strong);
    background: var(--lp-surface);
}

body.isp-landing-page .btn-ghost:hover {
    background: var(--lp-surface-hover);
    border-color: var(--lp-accent);
    color: var(--lp-text);
}

body.isp-landing-page .btn-primary {
    background: var(--lp-accent);
    color: #ffffff;
    border: 1px solid var(--lp-accent);
}

body.isp-landing-page .btn-primary:hover {
    background: var(--lp-accent-hover);
    border-color: var(--lp-accent-hover);
    color: #ffffff;
}

body.isp-landing-page .btn-app {
    background: var(--lp-surface);
    color: var(--lp-accent);
    border: 1px solid var(--lp-border-strong);
}

body.isp-landing-page .btn-app:hover {
    background: var(--lp-accent-subtle);
    border-color: var(--lp-accent);
    color: var(--lp-accent);
}

.btn-lg {
    padding: 0.65rem 1.25rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
}

/* ── Hero ──────────────────────────────────────────────────────── */

.hero {
    text-align: center;
    padding: 2rem 1rem 2.25rem;
    margin-top: 0.25rem;
    border: 1px solid var(--lp-border);
    border-radius: 0.875rem;
    background: var(--lp-hero-bg);
}

@media (min-width: 768px) {
    .hero { padding: 2.75rem 2rem 3rem; border-radius: 1rem; }
}

.hero-actions .btn-ghost {
    background: transparent;
    border-color: transparent;
    color: var(--lp-text-secondary);
    font-weight: 500;
}

.hero-actions .btn-ghost:hover {
    background: var(--lp-accent-subtle);
    border-color: transparent;
    color: var(--lp-accent);
}

.hero__eyebrow {
    display: inline-block;
    margin-bottom: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    border: 1px solid var(--lp-border);
    background: var(--lp-accent-subtle);
    color: var(--lp-accent);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero h2 {
    font-size: clamp(1.75rem, 5vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin: 0 0 0.875rem;
}

.hero .lead {
    color: var(--lp-text-secondary);
    font-size: clamp(0.9375rem, 2vw, 1.0625rem);
    max-width: 38rem;
    margin: 0 auto 1.75rem;
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.625rem;
}

/* ── Sign-in hub ───────────────────────────────────────────────── */

.sign-in-hub {
    margin: 1.75rem 0;
    padding: 1.25rem 0 0;
    border-radius: 0;
    border: none;
    border-top: 1px solid var(--lp-border);
    background: transparent;
}

@media (min-width: 768px) {
    .sign-in-hub { padding-top: 1.75rem; }
}

.sign-in-hub__head { text-align: center; margin-bottom: 1.5rem; }

.sign-in-hub__eyebrow {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--lp-accent);
    margin-bottom: 0.375rem;
}

.sign-in-hub__title {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 0.375rem;
}

.sign-in-hub__lead {
    color: var(--lp-text-secondary);
    font-size: 0.9375rem;
    max-width: 30rem;
    margin: 0 auto;
}

.sign-in-hub--single .sign-in-hub__action {
    display: flex;
    justify-content: center;
    margin-top: 0.25rem;
}

.sign-in-hub--single .sign-in-hub__action .btn-lg {
    min-width: 12rem;
    text-align: center;
    justify-content: center;
}

.sign-in-hub__grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: 1fr;
}

@media (min-width: 540px) {
    .sign-in-hub__grid { grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); }
}

.sign-in-hub__card {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-height: 8rem;
    padding: 1.125rem 1.25rem;
    border-radius: 0.75rem;
    border: 1px solid var(--lp-border);
    background: var(--lp-surface);
    text-decoration: none;
    color: var(--lp-text);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.sign-in-hub__card:hover {
    border-color: var(--lp-border-strong);
    background: var(--lp-surface);
    color: var(--lp-text);
}

.sign-in-hub__card--customer { border-top: 3px solid var(--lp-success); }
.sign-in-hub__card--staff { border-top: 3px solid var(--lp-accent); }
.sign-in-hub__card--reseller { border-top: 3px solid var(--lp-warning); }

.sign-in-hub__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    margin-bottom: 0.25rem;
    border-radius: 0.5rem;
    background: var(--lp-accent-subtle);
    color: var(--lp-accent);
}

.sign-in-hub__icon svg { width: 1.125rem; height: 1.125rem; }

.sign-in-hub__badge {
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--lp-text-muted);
}

.sign-in-hub__card-title { font-weight: 700; font-size: 0.9375rem; }

.sign-in-hub__card-desc {
    font-size: 0.8125rem;
    color: var(--lp-text-secondary);
    line-height: 1.45;
    flex: 1;
}

.sign-in-hub__cta {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--lp-accent);
    margin-top: 0.25rem;
}

body.isp-landing-page .sign-in-hub__card {
    color: var(--lp-text);
}

body.isp-landing-page .sign-in-hub__card:hover {
    color: var(--lp-text);
}

/* ── App banner ────────────────────────────────────────────────── */

.app-banner {
    margin: 1.75rem 0;
    padding: 1.25rem 1.25rem;
    border-radius: 0.875rem;
    border: 1px solid var(--lp-border);
    background: var(--lp-bg-subtle);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    width: 100%;
    box-sizing: border-box;
}

.app-banner__content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    width: 100%;
    min-width: 0;
    flex: none;
}

.app-banner__text {
    flex: 1;
    min-width: 0;
}

.app-banner__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    background: var(--lp-accent-subtle);
    color: var(--lp-accent);
}

.app-banner__icon svg { width: 1.375rem; height: 1.375rem; }

.app-banner strong {
    display: block;
    font-size: 1.0625rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    letter-spacing: -0.01em;
}

.app-banner p {
    font-size: 0.875rem;
    color: var(--lp-text-secondary);
    margin: 0;
    max-width: none;
    line-height: 1.55;
    overflow-wrap: break-word;
    word-break: normal;
}

.app-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    width: 100%;
}

.app-banner-actions .btn-lg {
    flex: 1 1 calc(50% - 0.25rem);
    min-width: 8rem;
    text-align: center;
    justify-content: center;
}

@media (min-width: 640px) {
    .app-banner {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
    }

    .app-banner__content {
        flex: 1 1 16rem;
        width: auto;
        min-width: 0;
    }

    .app-banner p {
        max-width: 32rem;
    }

    .app-banner-actions {
        width: auto;
        flex: 0 0 auto;
        justify-content: flex-end;
    }

    .app-banner-actions .btn-lg {
        flex: 0 1 auto;
        min-width: 0;
    }
}

/* ── Features ──────────────────────────────────────────────────── */

.features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.875rem;
    margin: 2.5rem 0;
}

@media (min-width: 540px) {
    .features { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
    .features { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1100px) {
    .features { grid-template-columns: repeat(5, 1fr); }
}

.feature {
    padding: 1.25rem;
    border-radius: 0.875rem;
    background: var(--lp-surface);
    border: 1px solid var(--lp-border);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature:hover {
    border-color: var(--lp-border-strong);
    background: var(--lp-surface-hover);
}

.feature__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    margin-bottom: 0.75rem;
    border-radius: 0.5rem;
    background: var(--lp-accent-subtle);
    color: var(--lp-accent);
}

.feature__icon svg { width: 1.125rem; height: 1.125rem; }

.feature h3 {
    font-size: 0.9375rem;
    font-weight: 700;
    margin: 0 0 0.375rem;
    color: var(--lp-text);
    letter-spacing: -0.01em;
}

.feature p {
    font-size: 0.8125rem;
    color: var(--lp-text-secondary);
    margin: 0;
    line-height: 1.5;
}

.feature a { font-weight: 600; }

/* ── Packages ──────────────────────────────────────────────────── */

.packages-section { margin-bottom: 2.5rem; }

h2.section-title {
    text-align: center;
    font-size: clamp(1.375rem, 3vw, 1.75rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 0.5rem;
}

.section-subtitle {
    text-align: center;
    color: var(--lp-text-muted);
    margin: 0 0 1.75rem;
    font-size: 0.9375rem;
}

.packages {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 540px) {
    .packages { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
}

@media (min-width: 768px) {
    .packages { grid-template-columns: repeat(auto-fit, minmax(16.5rem, 1fr)); gap: 1.25rem; }
}

.pkg {
    position: relative;
    background: var(--lp-surface);
    border: 1px solid var(--lp-border);
    border-radius: 1rem;
    padding: 1.5rem 1.25rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.pkg:hover {
    border-color: var(--lp-border-strong);
    background: var(--lp-surface-hover);
}

.pkg.popular {
    border-color: var(--lp-accent);
}

.pkg__badge {
    position: absolute;
    top: -0.625rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.2rem 0.75rem;
    border-radius: 999px;
    background: var(--lp-accent);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.pkg h3 {
    font-size: 1.0625rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.01em;
}

.pkg .speed {
    font-size: 1.875rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0.625rem 0 0.25rem;
    line-height: 1.1;
}

.pkg .price {
    font-size: 1.125rem;
    color: var(--lp-accent);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.pkg .price span {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--lp-text-muted);
}

.pkg ul {
    list-style: none;
    margin: 1rem 0;
    padding: 0;
    flex: 1;
    font-size: 0.8125rem;
    color: var(--lp-text-secondary);
}

.pkg li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.3125rem 0;
}

.pkg li::before {
    content: "";
    flex-shrink: 0;
    width: 1rem;
    height: 1rem;
    margin-top: 0.125rem;
    background: var(--lp-accent);
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.pkg a {
    display: block;
    text-align: center;
    padding: 0.75rem 1rem;
    border-radius: 0.625rem;
    background: var(--lp-accent);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    border: 1px solid var(--lp-accent);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.pkg a:hover {
    background: var(--lp-accent-hover);
    border-color: var(--lp-accent-hover);
    color: #fff;
}

.packages-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--lp-text-muted);
    padding: 2rem 1rem;
    border: 1px dashed var(--lp-border);
    border-radius: 0.875rem;
    background: var(--lp-surface);
}

/* ── Movie servers ─────────────────────────────────────────────── */

.isp-movie-servers { margin: 2.5rem 0; }

.isp-movie-servers__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.isp-movie-servers__eyebrow {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--lp-accent);
    margin-bottom: 0.375rem;
}

.isp-movie-servers__title {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0;
}

.isp-movie-servers__lead {
    margin-top: 0.375rem;
    font-size: 0.9375rem;
    color: var(--lp-text-secondary);
    max-width: 34rem;
    line-height: 1.55;
}

.isp-movie-servers__count {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.375rem 0.875rem;
    border-radius: 999px;
    background: var(--lp-accent-subtle);
    color: var(--lp-accent);
    border: 1px solid var(--lp-border);
}

.isp-movie-servers__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.875rem;
}

@media (min-width: 640px) {
    .isp-movie-servers__grid { grid-template-columns: repeat(auto-fit, minmax(16.25rem, 1fr)); }
}

.isp-movie-server-card {
    display: flex;
    align-items: stretch;
    gap: 0;
    border-radius: 0.875rem;
    border: 1px solid var(--lp-border);
    background: var(--lp-surface);
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.isp-movie-server-card:hover {
    border-color: var(--lp-accent);
    box-shadow: var(--lp-shadow-md);
}

.isp-movie-server-card__link {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    flex: 1;
    min-width: 0;
    padding: 1rem 1.125rem;
    text-decoration: none;
    color: inherit;
}

.isp-movie-server-card__icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.625rem;
    background: var(--lp-accent-subtle);
    color: var(--lp-accent);
}

.isp-movie-server-card__icon svg { width: 1.25rem; height: 1.25rem; }

.isp-movie-server-card__body { flex: 1; min-width: 0; }

.isp-movie-server-card__name {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.375rem;
    font-weight: 700;
    font-size: 0.9375rem;
}

.isp-movie-server-card__scheme {
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    background: var(--lp-accent-subtle);
    color: var(--lp-accent);
}

.isp-movie-server-card__url {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    color: var(--lp-danger);
    word-break: break-all;
}

.isp-movie-server-card__note {
    display: block;
    margin-top: 0.375rem;
    font-size: 0.75rem;
    color: var(--lp-text-muted);
    line-height: 1.45;
}

.isp-movie-server-card__cta {
    flex-shrink: 0;
    align-self: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--lp-accent);
    padding-right: 0.5rem;
}

.isp-movie-server-card__copy {
    flex-shrink: 0;
    align-self: stretch;
    padding: 0 0.875rem;
    border: none;
    border-left: 1px solid var(--lp-border);
    background: var(--lp-bg-subtle);
    color: var(--lp-text-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.isp-movie-server-card__copy:hover {
    background: var(--lp-accent-subtle);
    color: var(--lp-accent);
}

.isp-movie-server-card__copy:focus-visible {
    outline: 2px solid var(--lp-accent);
    outline-offset: -2px;
}

/* ── Portal marquee & notices (landing overrides) ──────────────── */

body.isp-landing-page .isp-portal-marquee--landing {
    margin: 0 0 1rem;
    overflow: hidden;
    border-radius: 0.625rem;
    border: 1px solid var(--lp-border);
    background: var(--lp-surface);
}

body.isp-landing-page .isp-portal-marquee--landing .isp-portal-marquee__track {
    display: flex;
    gap: 2rem;
    width: max-content;
    padding: 0.625rem 0;
    animation: isp-marquee-scroll 28s linear infinite;
    white-space: nowrap;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--lp-cyan);
}

body.isp-landing-page .isp-portal-marquee--landing .isp-portal-marquee__item a {
    color: inherit;
    text-decoration: none;
}

body.isp-landing-page .isp-portal-marquee--landing .isp-portal-marquee__item a:hover {
    text-decoration: underline;
}

body.isp-landing-page .isp-portal-marquee--landing .isp-portal-marquee__sep {
    color: var(--lp-text-muted);
}

@keyframes isp-marquee-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

body.isp-landing-page .isp-portal-notices--landing {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

body.isp-landing-page .isp-portal-notices--landing .isp-portal-notices__card {
    padding: 0.875rem 1.125rem;
    border-radius: 0.625rem;
    border: 1px solid var(--lp-border);
    background: var(--lp-surface);
    border-left: 3px solid var(--lp-success);
}

body.isp-landing-page .isp-portal-notices--landing .isp-portal-notices__title {
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--lp-success);
    margin: 0;
}

body.isp-landing-page .isp-portal-notices--landing .isp-portal-notices__body {
    margin-top: 0.375rem;
    font-size: 0.8125rem;
    color: var(--lp-text-secondary);
    line-height: 1.5;
}

/* Skip link — not used on landing */
body.isp-landing-page .skip-link,
body.isp-landing-page > a[href="#main-content"] {
    display: none !important;
}

/* ── Dark mode — lower page (sign-in hub → footer) ───────────── */

[data-theme="dark"] .sign-in-hub {
    border-top-color: var(--lp-border-strong);
}

[data-theme="dark"] .sign-in-hub__card {
    background: var(--lp-surface-raised);
    border-color: var(--lp-border-strong);
}

[data-theme="dark"] .sign-in-hub__card:hover {
    background: var(--lp-surface-hover);
    border-color: var(--lp-border-strong);
}

[data-theme="dark"] .app-banner {
    background: var(--lp-surface);
    border-color: var(--lp-border-strong);
}

[data-theme="dark"] .app-banner strong {
    color: var(--lp-text);
}

[data-theme="dark"] .app-banner p {
    color: var(--lp-text-secondary);
}

[data-theme="dark"] .feature,
[data-theme="dark"] .pkg,
[data-theme="dark"] .isp-movie-server-card {
    background: var(--lp-surface-raised);
    border-color: var(--lp-border-strong);
}

[data-theme="dark"] .feature:hover,
[data-theme="dark"] .pkg:hover {
    background: var(--lp-surface-hover);
}

[data-theme="dark"] .packages-empty {
    background: var(--lp-surface-raised);
    border-color: var(--lp-border-strong);
}

/* ── Footer ────────────────────────────────────────────────────── */

footer {
    text-align: center;
    padding: 2.5rem 1rem 2rem;
    color: var(--lp-text-muted);
    font-size: 0.8125rem;
    border-top: 1px solid var(--lp-border);
    margin-top: 2rem;
}

[data-theme="dark"] footer {
    margin-left: -1rem;
    margin-right: -1rem;
    padding-left: 1rem;
    padding-right: 1.5rem;
    padding-bottom: 2.5rem;
    background: var(--lp-bg-subtle);
    border-top-color: var(--lp-border-strong);
    color: var(--lp-text-muted);
}

@media (min-width: 768px) {
    [data-theme="dark"] footer {
        margin-left: -1.5rem;
        margin-right: -1.5rem;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

footer p { margin: 0.375rem 0; }

.footer-brand { color: var(--lp-text-secondary); font-weight: 500; }

[data-theme="dark"] .footer-brand {
    color: var(--lp-text-secondary);
}

[data-theme="dark"] footer a {
    color: var(--lp-accent);
}

.footer-links { margin-top: 1rem !important; }

footer a {
    color: var(--lp-accent);
    font-weight: 600;
    text-decoration: none;
}

footer a:hover { text-decoration: underline; }

/* Orbs removed for lightweight layout */
.isp-premium-orbs { display: none !important; }

/* ── Mobile layout guards ──────────────────────────────────────── */

@media (max-width: 639px) {
    .hero {
        padding: 1.5rem 1rem 1.75rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .hero-actions .btn-lg {
        width: 100%;
        justify-content: center;
    }

    .sign-in-hub__card {
        min-height: 0;
    }

    .sign-in-hub__grid {
        grid-template-columns: 1fr;
    }

    .landing-header__actions {
        flex-shrink: 0;
    }

    .theme-switch__btn {
        padding: 0.3125rem 0.5rem;
        font-size: 0.625rem;
    }

    .brand h1 {
        font-size: 0.9375rem;
    }

    .brand p {
        font-size: 0.6875rem;
    }

    .feature,
    .pkg,
    .isp-movie-server-card {
        min-width: 0;
    }
}

/* ── Accessibility & motion ────────────────────────────────────── */

:focus-visible {
    outline: 2px solid var(--lp-accent);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    body.isp-landing-page .isp-portal-marquee--landing .isp-portal-marquee__track {
        animation: none;
    }
}
