/* Exclusive access: password gate, company setup, and welcome slideshow
   (LEXR Germany Cockpit). */

/* ── Password gate ── */
.exc-gate-badge {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: var(--dark-green-tint);
    border: 1px solid var(--dark-green-ring);
    color: var(--dark-green);
}

.exc-gate-badge svg {
    width: 26px;
    height: 26px;
}

.auth-card .auth-header {
    margin-bottom: 1.75rem;
}

.exc-gate-title {
    font-size: 1.75rem;
    white-space: nowrap;
}

/* ── Setup wizard ── */
.auth-card--wizard {
    max-width: 520px;
    padding: 2.5rem 2.75rem 2.25rem;
}

.auth-header--wizard {
    margin-bottom: 1.5rem;
}

.auth-header--wizard h1 {
    font-size: 1.625rem;
    margin-bottom: 0.5rem;
    transition: opacity 0.2s ease;
}

.auth-header--wizard p {
    font-size: 0.9375rem;
    line-height: 1.55;
    max-width: 36ch;
    margin: 0 auto;
}

.exc-wizard-heading {
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.exc-wizard-heading.is-fading {
    opacity: 0;
    transform: translateY(-4px);
}

.exc-wizard-progress {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.exc-wizard-progress-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gray-200);
    transition: background 0.25s ease, transform 0.25s ease, width 0.25s ease;
}

.exc-wizard-progress-dot.is-active {
    background: rgba(1, 249, 196, 0.45);
}

.exc-wizard-progress-dot.is-current {
    width: 22px;
    border-radius: var(--radius-pill);
    background: var(--dark-green);
    transform: scale(1);
}

.exc-wizard-progress--skip-lexr .exc-wizard-progress-dot:nth-child(3) {
    display: none;
}

.auth-form--wizard {
    gap: 0;
}

.exc-wizard-stage {
    position: relative;
    transition: min-height 0.28s ease;
}

.exc-wizard-step {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(18px);
    transition:
        opacity 0.26s ease,
        transform 0.26s ease,
        visibility 0.26s;
    pointer-events: none;
}

.exc-wizard-step.is-active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
}

.exc-wizard-step.is-leaving {
    position: absolute;
    opacity: 0;
    transform: translateX(-18px);
}

.exc-wizard-step.is-leaving-back {
    position: absolute;
    opacity: 0;
    transform: translateX(18px);
}

.exc-wizard-step.is-entering {
    transform: translateX(18px);
}

.exc-wizard-step.is-entering-back {
    transform: translateX(-18px);
}

.exc-wizard-step .form-group {
    margin: 0;
}

.exc-step-error {
    margin: 0;
}

.exc-step-error.hidden {
    display: none;
}

.exc-wizard-step .form-group > label {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--gray-700);
    margin-bottom: 0.45rem;
}

.exc-wizard-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
    padding-top: 0.25rem;
}

.exc-wizard-actions .btn-secondary,
.exc-wizard-actions .btn-primary {
    flex: 1;
}

.auth-form--wizard > .btn-primary.btn-full {
    margin-top: 0.25rem;
}

@media (prefers-reduced-motion: reduce) {
    .exc-wizard-step,
    .exc-wizard-heading,
    .exc-wizard-stage,
    .exc-wizard-progress-dot,
    .exc-form-option-box {
        transition: none;
    }

    .exc-wizard-step {
        transform: none;
    }

    .exc-wizard-step.is-leaving,
    .exc-wizard-step.is-leaving-back {
        position: static;
    }
}

.exc-project-notice {
    padding: 1rem 1.15rem;
    margin-bottom: 1.25rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(145deg, var(--gray-50) 0%, rgba(1, 249, 196, 0.08) 100%);
    border: 1px solid rgba(1, 249, 196, 0.35);
}

.exc-project-notice p {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--gray-600);
}

/* ── Company setup: legal-form radio cards ── */
.exc-form-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.exc-form-options--stack {
    grid-template-columns: 1fr;
}

.exc-form-option {
    display: block;
    cursor: pointer;
}

.exc-form-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.exc-form-option-box {
    display: block;
    height: 100%;
    padding: 0.875rem 1rem;
    border-radius: 12px;
    border: 1.5px solid var(--gray-200);
    background: var(--white);
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.exc-form-option:hover .exc-form-option-box {
    border-color: rgba(1, 249, 196, 0.5);
    transform: translateY(-1px);
}

.exc-form-option input:focus-visible + .exc-form-option-box {
    box-shadow: 0 0 0 3px rgba(1, 249, 196, 0.2);
}

.exc-form-option input:checked + .exc-form-option-box {
    border-color: var(--dark-green);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(1, 249, 196, 0.15);
}

.exc-form-option-name {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark-green);
}

.exc-form-option-desc {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.75rem;
    font-weight: 300;
    line-height: 1.4;
    color: var(--gray-500);
}

/* ════════════════════════════════════════════════════════════════════
   Welcome slideshow overlay (rendered on top of the live dashboard, then
   revealed). Mirrors the marketing landing aesthetic.
   ════════════════════════════════════════════════════════════════════ */
body.exc-w-lock {
    overflow: hidden;
}

.exc-w {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    padding: clamp(1.25rem, 4vh, 2.5rem) clamp(1.25rem, 5vw, 4rem);
    font-family: var(--font-sans);
    color: var(--white);
    background: linear-gradient(135deg, var(--dark-green) 0%, var(--dark-green-mid) 50%, var(--dark-green-lighter) 100%);
    overflow: hidden;
    opacity: 1;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.exc-w.is-revealing {
    opacity: 0;
    transform: scale(1.04);
    pointer-events: none;
}

/* Ambient glows */
.exc-w-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.5;
    pointer-events: none;
    animation: excWPulse 8s ease-in-out infinite;
}

.exc-w-glow--1 {
    width: 520px;
    height: 520px;
    top: -160px;
    right: -120px;
    background: radial-gradient(circle, rgba(1, 249, 196, 0.35) 0%, transparent 70%);
}

.exc-w-glow--2 {
    width: 460px;
    height: 460px;
    bottom: -180px;
    left: -120px;
    background: radial-gradient(circle, rgba(246, 81, 29, 0.28) 0%, transparent 70%);
    animation-delay: 2s;
}

@keyframes excWPulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50%      { opacity: 0.65; transform: scale(1.1); }
}

/* Top bar */
.exc-w-top {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.exc-w-brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
}

.exc-w-brand img {
    height: 22px;
    width: auto;
}

.exc-w-brand-divider {
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.25);
}

.exc-w-brand-text {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.exc-w-skip {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: color 0.15s, background 0.15s;
}

.exc-w-skip:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
}

/* Stage / slides */
.exc-w-stage {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.exc-w-slide {
    display: none;
    width: 100%;
    max-width: 760px;
}

.exc-w-slide.is-active {
    display: block;
    animation: excWFadeUp 0.6s ease-out;
}

@keyframes excWFadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.exc-w-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--light-green);
    margin-bottom: 1rem;
}

.exc-w-title {
    font-size: clamp(2.25rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, var(--white) 0%, var(--light-green) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.exc-w-subtitle {
    font-size: clamp(1.6rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 2rem;
    color: var(--white);
}

.exc-w-lead {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 300;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.82);
    max-width: 560px;
    margin: 0 auto;
}

.exc-w-lead--tight {
    margin-bottom: 2rem;
}

/* Feature grid */
.exc-w-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    text-align: left;
}

.exc-w-feature {
    display: flex;
    gap: 0.875rem;
    padding: 1.1rem 1.25rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(1, 249, 196, 0.18);
    backdrop-filter: blur(6px);
}

.exc-w-feature-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: rgba(1, 249, 196, 0.12);
    color: var(--light-green);
}

.exc-w-feature-icon svg {
    width: 21px;
    height: 21px;
}

.exc-w-feature-text h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.2rem;
}

.exc-w-feature-text p {
    font-size: 0.85rem;
    font-weight: 300;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.72);
}

/* Lawyers */
.exc-w-lawyers {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    flex-wrap: wrap;
}

.exc-w-lawyer {
    width: 220px;
    padding: 1.75rem 1.25rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(1, 249, 196, 0.18);
    backdrop-filter: blur(6px);
}

.exc-w-avatar {
    width: 64px;
    height: 64px;
    margin: 0 auto 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
}

.exc-w-avatar--sm {
    background: var(--dark-green-lighter);
}

.exc-w-avatar--ns {
    background: var(--action-orange);
}

.exc-w-avatar--lf {
    background: var(--dark-green-lighter);
}

.exc-w-avatar--eo {
    background: var(--action-orange);
}

.exc-w-avatar--tk {
    background: #1e4d7b;
}

.exc-w-lawyer-name {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--white);
}

.exc-w-lawyer-role {
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--light-green);
    margin-top: 0.25rem;
}

/* Consent (last slide) */
.exc-w-consent {
    margin: 2rem auto 0;
    max-width: 30rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-align: left;
}

.exc-w-check {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.875rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.82);
    cursor: pointer;
}

.exc-w-check input[type="checkbox"] {
    flex-shrink: 0;
    margin-top: 0.15rem;
    width: 18px;
    height: 18px;
    accent-color: var(--light-green);
    cursor: pointer;
}

.exc-w-check a {
    color: var(--light-green);
    text-decoration: underline;
}

.exc-w-consent--nudge {
    animation: excConsentNudge 0.4s ease;
}

@keyframes excConsentNudge {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

/* Enter CTA (last slide) */
.exc-w-enter {
    margin-top: 1.5rem;
}

.exc-w-enter:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Controls: subtle prev/next on the sides, dots centered */
.exc-w-controls {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
}

.exc-w-nav {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.75rem;
    border: none;
    border-radius: 10px;
    background: none;
    color: rgba(255, 255, 255, 0.6);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.15s, background 0.15s;
}

.exc-w-nav:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
}

.exc-w-nav svg {
    width: 16px;
    height: 16px;
}

.exc-w-nav[hidden] {
    display: none;
}

.exc-w-nav--back {
    grid-column: 1;
    justify-self: start;
}

.exc-w-nav--next {
    grid-column: 3;
    justify-self: end;
}

.exc-w-dots {
    grid-column: 2;
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.exc-w-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    transition: background 0.2s, transform 0.2s;
}

.exc-w-dot.is-active {
    background: var(--light-green);
    transform: scale(1.25);
}

@media (max-width: 720px) {
    .exc-form-options,
    .exc-w-features {
        grid-template-columns: 1fr;
    }
}
