/* ═══════════════════════════════════════════════════════════════
   Design tokens — shared by the app shell and app pages
   ═══════════════════════════════════════════════════════════════ */

:root {
    --ap-font:          'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --ap-bg:            #f7f7f8;
    --ap-surface:       #ffffff;
    --ap-surface-muted: #f4f4f6;
    --ap-border:        #e6e6ea;
    --ap-border-soft:   #f0f0f3;
    --ap-text:          #17171c;
    --ap-text-2:        #3f414d;
    --ap-muted:         #5f6170;
    --ap-accent:        #c2410c;   /* ArenaPulse orange, dark enough for white text (AA) */
    --ap-accent-hover:  #9a3412;
    --ap-accent-soft:   #fff1e8;
    --ap-success:       #15803d;
    --ap-success-soft:  #dcfce7;
    --ap-danger:        #b91c1c;
    --ap-danger-soft:   #fee2e2;
    --ap-led-bg:        #0b0b0e;
    --ap-radius-sm:     8px;
    --ap-radius:        12px;
    --ap-radius-lg:     16px;
    --ap-shadow-sm:     0 1px 2px rgba(23,23,28,0.06);

    /* Bootstrap 5 variables, so stock components follow the tokens */
    --bs-body-font-family: var(--ap-font);
    --bs-body-color:       var(--ap-text);
    --bs-secondary-color:  var(--ap-muted);
    --bs-border-color:     var(--ap-border);
    --bs-border-radius:    var(--ap-radius-sm);
    --bs-border-radius-sm: 6px;
    --bs-border-radius-lg: var(--ap-radius);
    --bs-link-color:       var(--ap-accent);
    --bs-link-color-rgb:   194,65,12;
    --bs-link-hover-color: var(--ap-accent-hover);
    --bs-link-hover-color-rgb: 154,52,18;
    --bs-primary:          var(--ap-accent);
    --bs-primary-rgb:      194,65,12;
    --bs-focus-ring-color: rgba(194,65,12,0.25);
}

html, body {
    font-family: var(--ap-font);
    margin: 0;
    padding: 0;
    height: 100%;
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
}

/* Blazor error bar — hidden until Blazor shows it (used by every layout) */
#blazor-error-ui {
    color-scheme: light only;
    background: #fef2f2;
    border-top: 1px solid #fecaca;
    color: #dc2626;
    bottom: 0;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    font-size: 0.875rem;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

/* Language switch (sidebar and sign-in pages) */
.lang-switch {
    display: flex;
    gap: 0.75rem;
    font-size: 0.8rem;
}

.lang-switch a { text-decoration: none; }
.lang-switch a:hover { text-decoration: underline; }
.lang-switch-current { font-weight: 700; }

.lang-switch-sidebar { padding: 0.5rem 0.75rem; }
.lang-switch-sidebar a { color: var(--ap-muted); }
.lang-switch-sidebar a:hover { color: var(--ap-text); }
.lang-switch-sidebar .lang-switch-current { color: var(--ap-text); }

.lang-switch-auth { justify-content: center; margin: -1rem 0 1.25rem; }
.lang-switch-auth a { color: #6b7280; }
.lang-switch-auth .lang-switch-current { color: #111827; }

/* Landing page background */
body:has(.lp-header) {
    background-color: var(--ap-bg);
}

a, .btn-link {
    color: var(--ap-accent);
}

a:hover {
    color: var(--ap-accent-hover);
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

td.sevensegment_td {
    text-align: center;
    border:solid;
}

/* ═══════════════════════════════════════════════════════════════
   App shell — global overrides for authenticated app pages
   ═══════════════════════════════════════════════════════════════ */

/* Buttons: flat, rounded, ArenaPulse orange as primary */
.btn {
    --bs-btn-font-weight: 600;
    --bs-btn-border-radius: var(--ap-radius-sm);
    --bs-btn-focus-box-shadow: 0 0 0 0.2rem rgba(194,65,12,0.25);
}

.btn-sm {
    --bs-btn-border-radius: 7px;
}

.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--ap-accent);
    --bs-btn-border-color: var(--ap-accent);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--ap-accent-hover);
    --bs-btn-hover-border-color: var(--ap-accent-hover);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--ap-accent-hover);
    --bs-btn-active-border-color: var(--ap-accent-hover);
    --bs-btn-disabled-bg: var(--ap-accent);
    --bs-btn-disabled-border-color: var(--ap-accent);
}

.btn-outline-primary {
    --bs-btn-color: var(--ap-accent);
    --bs-btn-border-color: var(--ap-accent);
    --bs-btn-hover-bg: var(--ap-accent);
    --bs-btn-hover-border-color: var(--ap-accent);
    --bs-btn-active-bg: var(--ap-accent-hover);
    --bs-btn-active-border-color: var(--ap-accent-hover);
}

/* Secondary buttons become quiet white buttons with a hairline border */
.btn-secondary, .btn-outline-secondary {
    --bs-btn-color: var(--ap-text);
    --bs-btn-bg: var(--ap-surface);
    --bs-btn-border-color: var(--ap-border);
    --bs-btn-hover-color: var(--ap-text);
    --bs-btn-hover-bg: var(--ap-surface-muted);
    --bs-btn-hover-border-color: #d4d4da;
    --bs-btn-active-color: var(--ap-text);
    --bs-btn-active-bg: #ebebef;
    --bs-btn-active-border-color: #d4d4da;
}

/* Dark neutral button for the main action inside a card */
.btn-dark {
    --bs-btn-bg: var(--ap-text);
    --bs-btn-border-color: var(--ap-text);
    --bs-btn-hover-bg: #000;
    --bs-btn-hover-border-color: #000;
}

.form-control, .form-select {
    border-color: var(--ap-border);
    border-radius: var(--ap-radius-sm);
}

.form-control:focus, .form-select:focus, .form-check-input:focus {
    border-color: #f0a37a;
    box-shadow: 0 0 0 0.2rem rgba(194,65,12,0.18);
}

.form-check-input:checked {
    background-color: var(--ap-accent);
    border-color: var(--ap-accent);
}

.card {
    --bs-card-border-color: var(--ap-border);
    --bs-card-border-radius: var(--ap-radius);
}

.table {
    --bs-table-border-color: var(--ap-border-soft);
}

.table > thead th {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ap-muted);
}

/* Page header */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
}

.page-title {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ap-text);
    margin: 0;
}

.page-eyebrow {
    display: block;
    font-size: 0.8125rem;
    color: var(--ap-muted);
    margin-bottom: 0.25rem;
}

/* Content card */
.app-card {
    background: var(--ap-surface);
    border: 1px solid var(--ap-border);
    border-radius: var(--ap-radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.app-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.app-card-title {
    font-size: 1rem;
    font-weight: 650;
    color: var(--ap-text);
    margin: 0;
}

.app-section-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.0625rem;
    font-weight: 650;
    color: var(--ap-text);
    margin: 0 0 0.875rem;
}

/* Status pill with a dot: <span class="ap-pill ap-pill-active"><span class="ap-pill-dot"></span>Aktiv</span> */
.ap-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    white-space: nowrap;
    background: var(--ap-surface-muted);
    color: var(--ap-muted);
}

.ap-pill-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.ap-pill-active { background: var(--ap-success-soft); color: var(--ap-success); }
.ap-pill-off    { background: #f1f1f4; color: #6b6d7b; }

/* Pulsing "live" dot */
.ap-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #16a34a;
    box-shadow: 0 0 0 4px var(--ap-success-soft);
    flex-shrink: 0;
}

/* Segmented control: a row of buttons where one is selected */
.ap-segmented {
    display: inline-flex;
    padding: 3px;
    background: #ededf0;
    border-radius: 10px;
    gap: 2px;
}

.ap-segmented button {
    min-height: 32px;
    padding: 0 0.8rem;
    border: 0;
    border-radius: 8px;
    background: transparent;
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--ap-text-2);
    cursor: pointer;
}

.ap-segmented button:hover { color: var(--ap-text); }

.ap-segmented button.is-selected {
    background: var(--ap-surface);
    color: var(--ap-text);
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

/* LED preview frame around the live scoreboard renderer */
.ap-led-frame {
    background: var(--ap-led-bg);
    border-radius: 10px;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ap-led-frame .sb-display {
    padding: 0;
    max-width: 100%;
}

/* Status message (Blazor Identity) */
.status-message-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #16a34a;
    border-radius: 8px;
    padding: 0.65rem 1rem;
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
}

/* ═══════════════════════════════════════════════════════════════
   Landing page  (all classes prefixed lp-)
   Light look that matches the app shell; LED visuals stay on dark.
   ═══════════════════════════════════════════════════════════════ */

:root {
    --lp-dark:     #0b0f17;
    --lp-dark-2:   #131a26;
    --lp-dark-border: #232c3b;
    --lp-dark-text: #f1f5f9;
    --lp-dark-muted: #a3adbd;
    --lp-led-orange: #f97316;
    --lp-led-red:    #ef4444;
    --lp-led-green:  #22c55e;
    --lp-mono:     'Courier New', 'Lucida Console', monospace;
}

.lp-header, .lp-hero-wrap, .lp-section,
.lp-cta-section, .lp-footer {
    box-sizing: border-box;
    width: 100%;
}

.lp-inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ── Header / nav ── */
.lp-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--ap-border);
}

.lp-nav {
    height: 68px;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.lp-logo img { display: block; height: 44px; width: auto; }

.lp-nav-links {
    display: flex;
    gap: 1.75rem;
    margin-left: auto;
}

.lp-nav-links a {
    color: var(--ap-text-2);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.lp-nav-links a:hover { color: var(--ap-text); }

.lp-nav-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.lp-lang-switch {
    color: var(--ap-muted);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 0.3rem 0.55rem;
    border: 1px solid var(--ap-border);
    border-radius: 6px;
}

.lp-lang-switch:hover { color: var(--ap-text); border-color: #c9c9d1; text-decoration: none; }

/* ── Buttons ── */
.lp-btn-primary, .lp-btn-outline, .lp-btn-ghost, .lp-btn-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 40px;
    padding: 0 1.1rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.lp-btn-primary { background: var(--ap-accent); color: #fff; }
.lp-btn-primary:hover { background: var(--ap-accent-hover); color: #fff; text-decoration: none; }

.lp-btn-outline { background: var(--ap-surface); color: var(--ap-text); border-color: var(--ap-border); }
.lp-btn-outline:hover { border-color: #c9c9d1; color: var(--ap-text); text-decoration: none; }

.lp-btn-ghost { background: transparent; color: var(--ap-text-2); }
.lp-btn-ghost:hover { color: var(--ap-text); background: var(--ap-surface-muted); text-decoration: none; }

.lp-btn-light { background: #fff; color: var(--ap-text); }
.lp-btn-light:hover { background: #f1f1f4; color: var(--ap-text); text-decoration: none; }

.lp-btn-lg { min-height: 48px; padding: 0 1.5rem; font-size: 1rem; border-radius: 12px; }

/* ── Shared text bits ── */
.lp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ap-accent);
    margin-bottom: 0.9rem;
}

.lp-accent { color: var(--ap-accent); }

.lp-h2 {
    font-size: clamp(1.75rem, 3.2vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--ap-text);
    margin: 0 0 0.9rem;
}

.lp-lead {
    font-size: 1.05rem;
    color: var(--ap-muted);
    line-height: 1.7;
    margin: 0 0 1.5rem;
    max-width: 560px;
}

.lp-checklist {
    list-style: none;
    padding: 0;
    margin: 0 0 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.lp-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.95rem;
    color: var(--ap-text-2);
}

.lp-checklist i { color: var(--ap-accent); margin-top: 0.1rem; flex-shrink: 0; }

/* ── Hero ── */
.lp-hero-wrap {
    background: var(--ap-bg);
    border-bottom: 1px solid var(--ap-border);
}

.lp-hero {
    display: flex;
    align-items: center;
    gap: 3.5rem;
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.lp-hero-content { flex: 1 1 0; min-width: 0; max-width: 540px; }

.lp-hero-title {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: var(--ap-text);
    margin: 0 0 1.1rem;
}

.lp-hero-sub {
    font-size: 1.125rem;
    color: var(--ap-muted);
    line-height: 1.7;
    margin: 0 0 2rem;
}

.lp-hero-ctas { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.lp-hero-note {
    margin: 1rem 0 0;
    font-size: 0.85rem;
    color: var(--ap-muted);
}

.lp-hero-visual {
    flex: 1 1 0;
    min-width: 0;
    position: relative;
    padding-bottom: 12%;
}

.lp-hero-visual > .lp-panel { width: 84%; box-sizing: border-box; }

.lp-hero-tv {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 46%;
    z-index: 4;
}

.lp-hero-chip {
    position: absolute;
    left: 4%;
    bottom: 4%;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--ap-surface);
    border: 1px solid var(--ap-border);
    border-radius: 999px;
    padding: 0.45rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ap-text);
    box-shadow: 0 8px 24px rgba(23,23,28,0.10);
}

/* ── LED matrix panel mockup ── */
.lp-panel {
    background: #141414;
    border: 8px solid #1b1b1b;
    border-radius: 10px;
    box-shadow:
        inset 0 0 0 1px #2a2a2a,
        0 0 0 1px #080808,
        0 24px 60px rgba(23,23,28,0.28);
    padding: 8px;
}

.lp-panel-screen {
    background-color: #040404;
    background-image: radial-gradient(circle, #1e1e1e 1px, transparent 1px);
    background-size: 5px 5px;
    border-radius: 2px;
    padding: 18px 26px 16px;
    position: relative;
    overflow: hidden;
    aspect-ratio: 2 / 1;   /* 64×32 matrix */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.lp-panel-screen::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,0.55) 100%);
    pointer-events: none;
    z-index: 1;
}

.lp-panel-caption {
    margin-top: 0.6rem;
    font-size: 0.8rem;
    color: var(--lp-dark-muted);
    text-align: center;
}

@keyframes lp-blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.08; }
}

/* ── Pixel character rendering (LedPixels.Render) ── */
.lp-px-line {
    display: flex;
    align-items: flex-start;
    gap: var(--char-gap, 2px);
    position: relative;
    z-index: 2;
}

.lp-px-char {
    display: flex;
    flex-direction: column;
    gap: var(--dot-gap, 1px);
}

.lp-px-row {
    display: flex;
    gap: var(--dot-gap, 1px);
}

.lp-px-dot {
    width: var(--dot-size, 3px);
    height: var(--dot-size, 3px);
    border-radius: 50%;
    background: var(--led-off, #111);
    flex-shrink: 0;
}

.lp-px-dot.on {
    background: var(--led-on, #f97316);
    box-shadow: 0 0 var(--led-glow, 3px) var(--led-on, #f97316);
}

.lp-px-xs { --dot-size: 2px; --dot-gap: 1px; --char-gap: 2px; --led-glow: 2px; }
.lp-px-sm { --dot-size: 4px; --dot-gap: 1px; --char-gap: 3px; --led-glow: 3px; }
.lp-px-md { --dot-size: 6px; --dot-gap: 1px; --char-gap: 4px; --led-glow: 5px; }
.lp-px-lg { --dot-size: 9px; --dot-gap: 2px; --char-gap: 5px; --led-glow: 9px; }

.lp-px-orange     { --led-on: #f97316; --led-off: #1a0c04; }
.lp-px-orange-dim { --led-on: #7c3410; --led-off: #110805; }
.lp-px-red        { --led-on: #ef4444; --led-off: #180404; }
.lp-px-green      { --led-on: #22c55e; --led-off: #051508; }
.lp-px-green-dim  { --led-on: #166534; --led-off: #040c06; }
.lp-px-amber      { --led-on: #facc15; --led-off: #151204; }
.lp-px-cyan       { --led-on: #22d3ee; --led-off: #04131a; }

.lp-px-blink { animation: lp-blink 1s step-end infinite; }

.lp-px-scores-row {
    display: flex;
    align-items: center;
    gap: 18px;
    position: relative;
    z-index: 2;
}

.lp-px-divider {
    width: 1px;
    height: 46px;
    background: #1c1c1c;
}

/* ── TV / info screen mockup ── */
.lp-tv {
    background: #111;
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 24px 60px rgba(23,23,28,0.25);
}

.lp-tv-screen {
    container-type: inline-size;
    background: var(--ap-accent);
    color: #fff;
    border-radius: 5px;
    aspect-ratio: 16 / 9;
    padding: 7% 8%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.35rem;
    overflow: hidden;
}

.lp-tv-screen-blue  { background: #1e3a8a; }
.lp-tv-screen-dark  { background: #17171c; }

.lp-tv-kicker {
    font-size: max(0.6rem, 2.6cqw);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.85;
}

.lp-tv-title { font-size: max(1rem, 6cqw); font-weight: 700; line-height: 1.15; }

.lp-tv-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: max(0.75rem, 3.4cqw);
    border-top: 1px solid rgba(255,255,255,0.22);
    padding-top: 0.3rem;
}

.lp-tv-stand {
    width: 28%;
    height: 8px;
    margin: 0 auto;
    background: #2a2a2e;
    border-radius: 0 0 6px 6px;
}

.lp-tv-progress {
    display: flex;
    gap: 4px;
    margin-top: 0.5rem;
}

.lp-tv-progress span {
    flex: 1;
    height: 3px;
    border-radius: 2px;
    background: rgba(255,255,255,0.3);
}

.lp-tv-progress span.is-done { background: #fff; }

/* ── Two product pillars ── */
.lp-pillars-section { background: var(--ap-surface); padding: 4.5rem 0; }

.lp-pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
    gap: 1.25rem;
}

.lp-pillar {
    border: 1px solid var(--ap-border);
    border-radius: 20px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: var(--ap-bg);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s, transform 0.15s;
}

.lp-pillar:hover { border-color: #c9c9d1; transform: translateY(-2px); color: inherit; text-decoration: none; }

.lp-pillar-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    background: var(--lp-dark);
    color: var(--lp-led-orange);
}

.lp-pillar h3 { font-size: 1.25rem; font-weight: 700; margin: 0.25rem 0 0; color: var(--ap-text); }
.lp-pillar p { margin: 0; color: var(--ap-muted); line-height: 1.65; }

.lp-pillar-link {
    margin-top: auto;
    padding-top: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--ap-accent);
}

/* ── Sections ── */
.lp-section { padding: 5.5rem 0; background: var(--ap-bg); }
.lp-section-white { background: var(--ap-surface); }

.lp-section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3rem;
}

.lp-section-header .lp-lead { margin-left: auto; margin-right: auto; }

.lp-split {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.lp-split > * { flex: 1 1 0; min-width: 0; }

/* ── LED section (dark band so the LEDs glow) ── */
.lp-led-section {
    background: var(--lp-dark);
    color: var(--lp-dark-text);
}

.lp-led-section .lp-h2 { color: var(--lp-dark-text); }
.lp-led-section .lp-lead { color: var(--lp-dark-muted); }
.lp-led-section .lp-eyebrow { color: #fb923c; }
.lp-led-section .lp-checklist li { color: #d6dbe4; }
.lp-led-section .lp-checklist i { color: #fb923c; }

.lp-led-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.lp-led-gallery .lp-led-tile:first-child { grid-column: 1 / -1; }

.lp-led-tile {
    background: var(--lp-dark-2);
    border: 1px solid var(--lp-dark-border);
    border-radius: 16px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lp-led-tile .lp-panel { width: 100%; box-sizing: border-box; box-shadow: inset 0 0 0 1px #2a2a2a, 0 0 0 1px #080808; }

.lp-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
}

.lp-spec {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: var(--lp-dark-2);
    border: 1px solid var(--lp-dark-border);
    color: #e2e8f0;
}

.lp-spec i { color: #fb923c; }

/* ── Info screen section ── */
.lp-pd-visual { display: flex; flex-direction: column; gap: 1rem; }

.lp-pd-thumbs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.lp-pd-thumb {
    border-radius: 10px;
    aspect-ratio: 16 / 9;
    padding: 0.6rem 0.75rem;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.2;
    border: 3px solid transparent;
}

.lp-pd-thumb small { font-weight: 500; opacity: 0.85; }
.lp-pd-thumb.is-current { border-color: var(--ap-accent); }

/* ── Features ── */
.lp-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 1rem;
}

.lp-feature-card {
    background: var(--ap-surface);
    border: 1px solid var(--ap-border);
    border-radius: 16px;
    padding: 1.5rem;
}

.lp-feature-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    margin-bottom: 1rem;
    background: var(--ap-accent-soft);
    color: var(--ap-accent);
}

.lp-feature-card h3 { font-size: 1rem; font-weight: 650; color: var(--ap-text); margin: 0 0 0.4rem; }
.lp-feature-card p { font-size: 0.9rem; color: var(--ap-muted); line-height: 1.65; margin: 0; }

/* ── How it works ── */
.lp-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 1rem;
    counter-reset: lp-step;
}

.lp-step {
    padding: 1.5rem;
    background: var(--ap-bg);
    border: 1px solid var(--ap-border);
    border-radius: 16px;
}

.lp-step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--ap-text);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.lp-step h3 { font-size: 1rem; font-weight: 650; color: var(--ap-text); margin: 0 0 0.4rem; }
.lp-step p { font-size: 0.9rem; color: var(--ap-muted); line-height: 1.65; margin: 0; }

/* ── CTA ── */
.lp-cta-section { background: var(--ap-bg); padding: 0 0 5rem; }

.lp-cta {
    background: var(--lp-dark);
    border-radius: 24px;
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.lp-cta h2 { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.02em; color: var(--lp-dark-text); margin: 0 0 0.5rem; }
.lp-cta p { color: var(--lp-dark-muted); margin: 0; max-width: 480px; }
.lp-cta-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.lp-cta .lp-btn-outline { background: transparent; color: var(--lp-dark-text); border-color: #3a4456; }
.lp-cta .lp-btn-outline:hover { border-color: #64748b; color: #fff; }

/* ── Footer ── */
.lp-footer {
    background: var(--ap-surface);
    border-top: 1px solid var(--ap-border);
    padding: 3.5rem 0 0;
}

.lp-footer-inner {
    display: flex;
    gap: 4rem;
    flex-wrap: wrap;
    padding-bottom: 3rem;
}

.lp-footer-brand { flex: 1; min-width: 200px; }

.lp-footer-brand p {
    font-size: 0.875rem;
    color: var(--ap-muted);
    margin: 0.75rem 0 0;
    line-height: 1.6;
    max-width: 260px;
}

.lp-footer-links { display: flex; gap: 3rem; flex-wrap: wrap; }

.lp-footer-col { display: flex; flex-direction: column; gap: 0.6rem; }

.lp-footer-heading {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ap-text);
    margin-bottom: 0.25rem;
}

.lp-footer-col a { font-size: 0.875rem; color: var(--ap-muted); text-decoration: none; }
.lp-footer-col a:hover { color: var(--ap-text); }

.lp-footer-bottom {
    border-top: 1px solid var(--ap-border);
    padding: 1.25rem 0;
    font-size: 0.8rem;
    color: var(--ap-muted);
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .lp-hero, .lp-split { flex-direction: column; align-items: stretch; gap: 2.5rem; }
    .lp-hero { padding-top: 3rem; padding-bottom: 3.5rem; }
    .lp-hero-content { max-width: none; }
    .lp-hero-visual { max-width: 560px; width: 100%; margin: 0 auto; }
    .lp-split-reverse > :first-child { order: 2; }
}

@media (max-width: 768px) {
    .lp-nav-links { display: none; }
    .lp-nav { gap: 0.75rem; }
    .lp-nav-actions .lp-btn-ghost { display: none; }
    .lp-section { padding: 4rem 0; }
    .lp-cta { padding: 2rem 1.5rem; }
    .lp-footer-inner { flex-direction: column; gap: 2rem; }
}

@media (max-width: 520px) {
    .lp-panel-screen { padding: 14px 16px 12px; }
    .lp-px-lg { --dot-size: 6px; --dot-gap: 1px; --char-gap: 4px; --led-glow: 6px; }
    .lp-px-md { --dot-size: 4px; --char-gap: 3px; --led-glow: 4px; }
    .lp-hero-visual { padding-bottom: 34%; }
    .lp-hero-visual > .lp-panel { width: 100%; }
    .lp-hero-tv { width: 58%; }
    .lp-hero-chip { display: none; }
    .lp-led-gallery { grid-template-columns: minmax(0, 1fr); }
}
