/* FullWorth premium public/authentication UI layer.
   Loaded by MainLayout after the existing isolated layout styles. */

.site-shell {
    --premium-accent: #5b6df8;
    --premium-accent-strong: #4660f2;
    --premium-accent-soft: rgba(91, 109, 248, 0.12);
    --premium-success: #35b978;
    --premium-danger: #e56f67;
    --premium-radius: 22px;
    --premium-shadow: 0 24px 70px rgba(15, 23, 42, 0.1);
    background:
        radial-gradient(circle at 50% -8%, rgba(91, 109, 248, 0.12), transparent 36rem),
        radial-gradient(circle at 88% 22%, rgba(104, 180, 255, 0.055), transparent 30rem),
        var(--bw-bg);
}

html:not([data-theme="light"]) .site-shell,
html[data-theme="dark"] .site-shell {
    --premium-shadow: 0 28px 84px rgba(0, 0, 0, 0.38);
}

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

.site-shell a:focus-visible,
.site-shell button:focus-visible,
.site-shell input:focus-visible {
    outline: 2px solid rgba(91, 109, 248, 0.72);
    outline-offset: 3px;
}

/* Public shell */

.site-shell .site-header {
    border-bottom-color: var(--bw-border);
    background: var(--bw-header-bg);
    backdrop-filter: blur(30px) saturate(140%);
    -webkit-backdrop-filter: blur(30px) saturate(140%);
}

.site-shell .header-inner {
    width: min(1200px, calc(100% - 48px));
    height: 80px;
}

.site-shell .brand {
    gap: 11px;
}

.site-shell .brand-name {
    font-size: 1.2rem;
    font-weight: 790;
    letter-spacing: -0.045em;
}

.site-shell .brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: transparent url("/assets/fullworth/fullworth-mark.svg") center / contain no-repeat;
    box-shadow: none;
    filter: drop-shadow(0 9px 18px rgba(37, 82, 221, 0.18));
}

.site-shell .brand-mark-inner {
    display: none;
}

.site-shell .desktop-nav {
    gap: 38px;
}

.site-shell .desktop-nav a {
    color: var(--bw-text-muted);
    font-size: 0.86rem;
    font-weight: 650;
}

.site-shell .header-actions {
    gap: 9px;
}

.site-shell .header-action {
    min-height: 40px;
    padding: 0 15px;
    display: inline-flex;
    align-items: center;
    border-radius: 13px;
    background: var(--bw-surface-soft);
    box-shadow: none;
    font-size: 0.82rem;
}

.site-shell .header-action:last-child {
    border-color: rgba(91, 109, 248, 0.2);
    background: linear-gradient(145deg, rgba(91, 109, 248, 0.14), rgba(91, 109, 248, 0.07));
    color: var(--bw-text);
}

.site-shell .header-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
}

/* Landing */

.site-shell .landing-page {
    background: transparent;
}

.site-shell .hero {
    width: min(1200px, calc(100% - 48px));
    min-height: 760px;
    padding: 116px 0 96px;
    grid-template-columns: minmax(0, 0.9fr) minmax(500px, 1.1fr);
    gap: 82px;
}

.site-shell .hero-glow-left {
    width: 520px;
    height: 520px;
    left: -390px;
    top: 40px;
    background: rgba(91, 109, 248, 0.09);
    filter: blur(18px);
}

.site-shell .hero-glow-right {
    width: 560px;
    height: 560px;
    right: -330px;
    top: -10px;
    background: rgba(117, 90, 255, 0.075);
    filter: blur(18px);
}

.site-shell .eyebrow {
    padding: 9px 13px;
    border-color: rgba(91, 109, 248, 0.15);
    border-radius: 999px;
    background: var(--bw-surface-soft);
    color: #8796ff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.045);
    backdrop-filter: blur(18px);
}

.site-shell .hero h1 {
    max-width: 680px;
    margin: 26px 0 24px;
    color: var(--bw-text);
    font-size: clamp(3.7rem, 6vw, 5.5rem);
    line-height: 0.94;
    font-weight: 770;
    letter-spacing: -0.072em;
}

.site-shell .hero h1 span,
.site-shell .section-heading h2 span,
.site-shell .example-copy h2 span,
.site-shell .closing-content h2 span {
    color: var(--bw-text-muted);
}

.site-shell .hero-description {
    max-width: 610px;
    color: var(--bw-text-muted);
    font-size: 1.08rem;
    line-height: 1.78;
}

.site-shell .hero-actions {
    gap: 11px;
    margin-top: 36px;
}

.site-shell .primary-button,
.site-shell .secondary-button,
.site-shell .closing-button {
    min-height: 48px;
    padding: 0 20px;
    border-radius: 15px;
    font-size: 0.87rem;
}

.site-shell .primary-button,
.site-shell .closing-button {
    background: linear-gradient(145deg, #435ef1, #697aff);
    box-shadow: 0 14px 34px rgba(70, 96, 242, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.site-shell .primary-button:hover,
.site-shell .closing-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 19px 44px rgba(70, 96, 242, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.site-shell .secondary-button {
    border-color: var(--bw-border);
    background: var(--bw-surface-soft);
    color: var(--bw-text-secondary);
    backdrop-filter: blur(16px);
}

.site-shell .trust-row {
    gap: 22px;
    margin-top: 30px;
}

.site-shell .trust-item {
    color: var(--bw-text-muted);
    font-size: 0.76rem;
}

.site-shell .product-window {
    border-color: var(--bw-border);
    border-radius: 30px;
    background: var(--bw-surface-soft);
    box-shadow: 0 50px 110px rgba(15, 23, 42, 0.16), 0 16px 38px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transform: rotateY(-2deg) rotateX(0.6deg);
}

html:not([data-theme="light"]) .site-shell .product-window,
html[data-theme="dark"] .site-shell .product-window {
    box-shadow: 0 50px 120px rgba(0, 0, 0, 0.52), 0 16px 38px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.site-shell .window-toolbar {
    height: 62px;
    padding: 0 22px;
    border-bottom-color: var(--bw-border);
    background: var(--bw-bg-elevated);
}

.site-shell .dashboard-preview {
    padding: 30px;
    background: linear-gradient(180deg, rgba(91, 109, 248, 0.035), transparent 28%), var(--bw-bg);
}

.site-shell .alert-card,
.site-shell .change-card,
.site-shell .step-card,
.site-shell .proof-strip {
    border-color: var(--bw-border);
    border-radius: 22px;
    background: var(--bw-surface-soft);
    box-shadow: 0 18px 54px rgba(15, 23, 42, 0.08);
}

.site-shell .alert-card {
    border-radius: 19px;
}

.site-shell .impact-amount,
.site-shell .new-amount {
    color: var(--bw-text);
}

.site-shell .preview-label,
.site-shell .preview-summary,
.site-shell .preview-footer,
.site-shell .step-card p,
.site-shell .comparison-item div > span,
.site-shell .example-copy > p,
.site-shell .security-copy p,
.site-shell .section-heading p {
    color: var(--bw-text-muted);
}

.site-shell .section-heading h2,
.site-shell .example-copy h2,
.site-shell .security-copy h2,
.site-shell .closing-content h2 {
    color: var(--bw-text);
    font-weight: 760;
    letter-spacing: -0.055em;
}

.site-shell .section-kicker {
    color: #8796ff;
}

.site-shell .step-card,
.site-shell .change-card {
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.site-shell .step-card:hover,
.site-shell .change-card:hover {
    transform: translateY(-3px);
    border-color: var(--bw-border-strong);
    box-shadow: var(--premium-shadow);
}

/* Authentication */

.site-shell .auth-page {
    min-height: calc(100vh - 80px);
    padding: 78px 20px 108px;
    background: transparent;
}

.site-shell .auth-glow-one {
    width: 520px;
    height: 520px;
    left: -300px;
    background: rgba(91, 109, 248, 0.1);
    filter: blur(30px);
}

.site-shell .auth-glow-two {
    width: 560px;
    height: 560px;
    right: -320px;
    background: rgba(116, 84, 232, 0.085);
    filter: blur(30px);
}

.site-shell .auth-shell {
    width: min(100%, 500px);
}

.site-shell .auth-brand {
    margin-bottom: 30px;
}

.site-shell .auth-brand-mark {
    width: 35px;
    height: 35px;
    border-radius: 12px;
    background: transparent url("/assets/fullworth/fullworth-mark.svg") center / contain no-repeat;
    box-shadow: none;
    filter: drop-shadow(0 9px 18px rgba(37, 82, 221, 0.18));
}

.site-shell .auth-brand-mark span {
    display: none;
}

.site-shell .auth-card {
    padding: 42px;
    border-color: var(--bw-border);
    border-radius: 30px;
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.04), transparent 48%), var(--bw-surface-soft);
    box-shadow: var(--premium-shadow);
    backdrop-filter: blur(28px) saturate(125%);
    -webkit-backdrop-filter: blur(28px) saturate(125%);
}

.site-shell .auth-kicker {
    color: #8796ff;
    font-size: 0.66rem;
    letter-spacing: 0.12em;
}

.site-shell .auth-heading {
    margin-bottom: 30px;
}

.site-shell .auth-heading h1 {
    margin: 11px 0 10px;
    font-size: 2.35rem;
    line-height: 1;
    font-weight: 760;
    letter-spacing: -0.06em;
}

.site-shell .auth-heading p {
    font-size: 0.88rem;
    line-height: 1.7;
}

.site-shell .auth-form {
    gap: 19px;
}

.site-shell .field {
    gap: 9px;
}

.site-shell .field > span {
    font-size: 0.73rem;
}

.site-shell .field input {
    min-height: 50px;
    padding: 0 15px;
    border-color: var(--bw-border);
    border-radius: 14px;
    background: var(--bw-bg-elevated);
    font-size: 0.86rem;
}

.site-shell .field input:focus {
    border-color: rgba(91, 109, 248, 0.5);
    box-shadow: 0 0 0 4px rgba(91, 109, 248, 0.09);
}

.site-shell .password-rules {
    padding: 15px;
    border-radius: 14px;
}

.site-shell .auth-submit {
    min-height: 50px;
    margin-top: 4px;
    padding: 0 18px;
    border-radius: 15px;
    background: linear-gradient(145deg, #435ef1, #697aff);
    box-shadow: 0 14px 34px rgba(70, 96, 242, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    font-size: 0.87rem;
}

.site-shell .auth-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 42px rgba(70, 96, 242, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.site-shell .auth-error {
    padding: 14px 15px;
    border-radius: 14px;
}

.site-shell .auth-switch {
    font-size: 0.77rem;
}

.site-shell .back-home {
    margin-top: 26px;
}

/* Footer */

.site-shell .site-footer {
    border-top-color: var(--bw-border);
    background: transparent;
}

.site-shell .footer-inner {
    width: min(1200px, calc(100% - 48px));
    min-height: 180px;
    padding: 42px 0;
}

/* Motion */

@media (prefers-reduced-motion: reduce) {
    .site-shell *,
    .site-shell *::before,
    .site-shell *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}

/* Responsive */

@media (max-width: 980px) {
    .site-shell .hero {
        grid-template-columns: 1fr;
        min-height: auto;
        gap: 56px;
        padding: 92px 0 82px;
    }

    .site-shell .hero-content {
        max-width: 760px;
    }

    .site-shell .hero-product {
        width: min(100%, 720px);
        margin: 0 auto;
    }

    .site-shell .product-window {
        transform: none;
    }
}

@media (max-width: 820px) {
    .site-shell .header-inner,
    .site-shell .footer-inner {
        width: min(100% - 30px, 1200px);
    }

    .site-shell .header-inner {
        height: 70px;
    }

    .site-shell .auth-page {
        min-height: calc(100vh - 70px);
        padding-top: 56px;
    }
}

@media (max-width: 600px) {
    .site-shell .hero {
        width: min(100% - 28px, 1200px);
        padding-top: 72px;
        gap: 44px;
    }

    .site-shell .hero h1 {
        font-size: clamp(3rem, 14vw, 4.1rem);
    }

    .site-shell .hero-description {
        font-size: 0.98rem;
    }

    .site-shell .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .site-shell .primary-button,
    .site-shell .secondary-button,
    .site-shell .closing-button {
        width: 100%;
    }

    .site-shell .auth-page {
        padding: 42px 14px 74px;
    }

    .site-shell .auth-card {
        padding: 30px 22px;
        border-radius: 24px;
    }

    .site-shell .auth-heading h1 {
        font-size: 2rem;
    }

    .site-shell .footer-inner {
        gap: 22px;
    }
}


/* FullWorth v2 brand consistency */

.site-shell .mini-mark {
    background: transparent url("/assets/fullworth/fullworth-mark.svg") center / contain no-repeat;
    box-shadow: none;
}

.site-shell .brand-mark-small {
    filter: drop-shadow(0 7px 14px rgba(37, 82, 221, 0.16));
}
