﻿/* NEVSITY — UI POLISH V6 */

:root {
    --n-red: #e24b43;
    --n-sans: "Work Sans", "Segoe UI", sans-serif;
    --n-serif: "Libre Baskerville", Georgia, serif;
}

[data-au-page],
[data-au-page] button,
[data-au-page] input,
[data-au-page] textarea {
    font-family: var(--n-sans) !important;
}

[data-au-page] :is(button, a, input, summary):focus-visible {
    outline: 2px solid var(--n-red) !important;
    outline-offset: 3px !important;
}

/* NAVIGATION */

[data-au-page="landing"] .nav-shell {
    height: 76px;
}

[data-au-page="landing"] .brand-artwork {
    width: 46px !important;
    height: 30px !important;
    max-width: 46px !important;
}

[data-au-page="landing"] .brand-copy {
    font-size: 23px !important;
    font-weight: 650 !important;
    letter-spacing: -.05em !important;
}

[data-au-page="landing"] .nav-links a,
[data-au-page="landing"] .nav-login {
    font-size: 13px;
    font-weight: 480;
}

[data-au-page="landing"] .nav-cta {
    border-radius: 9px !important;
    font-weight: 620 !important;
}

/* HOMEPAGE TYPOGRAPHY */

[data-au-page="landing"] .hero-title {
    font-size: clamp(54px, 7.3vw, 128px);
    line-height: .98 !important;
    letter-spacing: -.076em !important;
}

[data-au-page="landing"] .section-heading {
    font-size: clamp(45px, 6.5vw, 94px) !important;
    line-height: 1.03 !important;
    letter-spacing: -.068em !important;
    font-weight: 560 !important;
}

[data-au-page="landing"] .manifesto-text em,
[data-au-page="landing"] .au4-chapter h2 em {
    font-family: var(--n-serif) !important;
    font-style: italic !important;
    font-weight: 400 !important;
}

/* WHITE WORKFLOW SHOWCASE */

[data-au-page="landing"] .au4-story-sticky {
    top: 76px;
    height: calc(100svh - 76px);
    min-height: 540px;
}

[data-au-page="landing"] .au4-story-frame {
    padding: clamp(18px, 2.4vw, 38px)
             clamp(18px, 3vw, 54px) 18px;
    gap: 12px;
    grid-template-rows: auto auto minmax(0, 1fr);
}

[data-au-page="landing"] .au4-story-heading {
    min-height: 0 !important;
    gap: 12px !important;
}

[data-au-page="landing"] .au4-story-copy {
    align-items: center !important;
    gap: 14px !important;
}

[data-au-page="landing"] .au4-story-chapters {
    min-height: clamp(115px, 16svh, 165px) !important;
}

[data-au-page="landing"] .au4-chapter h2 {
    font-size: clamp(34px, 4.2vw, 67px) !important;
    line-height: 1.06 !important;
    letter-spacing: -.065em !important;
    font-weight: 550 !important;
}

[data-au-page="landing"] .au4-chapter p {
    font-size: clamp(12px, 1.05vw, 15px) !important;
    line-height: 1.55 !important;
}

[data-au-page="landing"] .au4-story-step {
    min-height: 34px;
    padding: 7px 11px;
    border-radius: 100px;
    font-size: 10px;
    font-weight: 550;
}

[data-au-page="landing"] .au4-demo-shell {
    width: min(100%, 1000px);
    max-height: 480px;
    min-height: 210px;
    border-radius: 15px;
    box-shadow: 0 28px 85px #271d1933;
    transition: transform .6s cubic-bezier(.22, 1, .36, 1);
}

[data-au-page="landing"] .nv5-flow-label {
    z-index: 3 !important;
    max-width: 150px;
    padding: 9px 11px;
}

[data-au-page="landing"] .nv5-flow-left {
    left: 0;
    top: 37%;
}

[data-au-page="landing"] .nv5-flow-right {
    right: 0;
    top: auto;
    bottom: 10%;
}

/* PRICING */

[data-au-page="landing"] .pricing-head {
    margin: 40px 0 27px;
    gap: 22px;
}

[data-au-page="landing"] #pricingTitle {
    font-size: clamp(45px, 6.4vw, 90px) !important;
}

[data-au-page="landing"] .pricing-head p {
    font-size: 14px;
    line-height: 1.7;
    margin-top: 14px;
}

[data-au-page="landing"] .billing-toggle {
    border-radius: 11px;
    background: #1b1a1c;
    padding: 4px;
}

[data-au-page="landing"] .billing-toggle button {
    border-radius: 8px;
    font-weight: 560;
}

[data-au-page="landing"] .pricing-grid {
    gap: 15px;
}

[data-au-page="landing"] .pricing-card {
    padding: clamp(20px, 2.5vw, 32px);
    min-height: 450px;
    border-radius: 17px !important;
    border-color: #ffffff21;
    background: linear-gradient(145deg, #1c1b1e, #111113 78%);
    box-shadow: 0 18px 45px #0002;
    transition: transform .3s, border-color .3s, box-shadow .3s;
}

[data-au-page="landing"] .pricing-card:hover {
    transform: translateY(-4px);
    border-color: #ffffff50;
    box-shadow: 0 24px 55px #0004;
}

[data-au-page="landing"] .pricing-card.plan-featured {
    background: linear-gradient(
        150deg, #302225, #171517 58%, #111113
    );
    border-color: #e24b4388 !important;
}

[data-au-page="landing"] .pricing-card h3 {
    font-size: clamp(30px, 2.9vw, 43px) !important;
    font-weight: 650 !important;
    letter-spacing: -.05em !important;
    margin: 26px 0 10px !important;
    line-height: 1.15 !important;
}

[data-au-page="landing"] .plan-price {
    font-size: clamp(34px, 3.1vw, 48px);
    font-weight: 670;
    line-height: 1.3;
    min-height: 0;
}

[data-au-page="landing"] .plan-price small {
    font-size: 12px;
    font-weight: 430;
}

[data-au-page="landing"] .pricing-card > p {
    min-height: 56px;
    font-size: 13px;
    line-height: 1.65;
    margin: 18px 0 12px;
}

[data-au-page="landing"] .plan-button {
    min-height: 44px;
    margin-top: 5px;
    border-radius: 10px !important;
    font-size: 12px;
    font-weight: 620 !important;
}

[data-au-page="landing"] .nv6-unavailable {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #252326;
    color: #aaa6ab;
    border: 1px solid #ffffff1c;
    cursor: not-allowed;
}

[data-au-page="landing"] .plan-includes {
    margin-top: 23px;
    padding-top: 20px;
}

[data-au-page="landing"] .pricing-card ul {
    gap: 10px;
    margin-top: 15px;
}

/* FAQ */

[data-au-page="landing"] .faq-layout {
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
    gap: clamp(34px, 6vw, 100px);
    align-items: start;
}

[data-au-page="landing"] .faq-layout .section-label {
    padding-bottom: 27px;
}

[data-au-page="landing"] #faqTitle {
    font-size: clamp(45px, 5.6vw, 84px) !important;
    font-weight: 560 !important;
    line-height: 1.05 !important;
    letter-spacing: -.072em !important;
    margin: 0 0 20px !important;
}

[data-au-page="landing"] .faq-layout > div > p {
    font-size: 14px;
    line-height: 1.7;
    max-width: 330px;
}

[data-au-page="landing"] .faq-list details {
    padding: 22px 0;
}

[data-au-page="landing"] .faq-list summary {
    font-size: clamp(14px, 1.25vw, 17px);
    font-weight: 580;
    line-height: 1.45;
    align-items: center;
}

[data-au-page="landing"] .faq-list summary span {
    color: #e56c64;
}

/* FOOTER */

[data-au-page="landing"] .site-footer {
    min-height: 0;
}

[data-au-page="landing"] .footer-top {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: clamp(30px, 6vw, 110px);
    min-height: 0;
}

[data-au-page="landing"] .footer-identity > p {
    font-size: 14px;
    line-height: 1.7;
    max-width: 360px;
    margin: 23px 0 20px;
}

[data-au-page="landing"] .footer-nav-grid {
    gap: clamp(14px, 2vw, 36px);
}

[data-au-page="landing"] .footer-nav-grid > div {
    gap: 14px;
}

[data-au-page="landing"] .footer-nav-grid h3 {
    font-size: 13px;
    font-weight: 630;
    margin: 0 0 6px;
}

[data-au-page="landing"] .footer-nav-grid a {
    font-size: 12px;
}

[data-au-page="landing"] .footer-wordmark-wrap {
    height: auto;
    min-height: 100px;
    margin-top: clamp(38px, 5vw, 70px);
}

[data-au-page="landing"] .footer-wordmark {
    font-size: clamp(90px, 21vw, 315px) !important;
    line-height: .78 !important;
    font-weight: 650 !important;
    letter-spacing: -.105em !important;
    transform: none;
}

[data-au-page="landing"] .footer-bottom {
    min-height: 68px;
    font-size: 10px;
}

/* LOGIN — FIX OVERLAPPING COPYRIGHT */

[data-au-page="auth"] .auth-layout {
    min-height: 100svh !important;
    padding: 76px 16px 35px !important;
}

[data-au-page="auth"] .login-panel {
    position: relative !important;
    width: min(100%, 500px) !important;
    max-width: 500px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    min-height: 0 !important;
    margin: auto !important;
}

[data-au-page="auth"] .login-card {
    padding: clamp(24px, 3vw, 40px) !important;
    border-radius: 17px !important;
    border: 1px solid #ffffff2b !important;
    box-shadow: 0 25px 85px #0008 !important;
}

[data-au-page="auth"] .login-card h2 {
    font-size: clamp(26px, 3vw, 37px) !important;
    line-height: 1.15 !important;
    font-weight: 640 !important;
}

[data-au-page="auth"] .subtitle {
    font-size: 13px !important;
    line-height: 1.7 !important;
}

[data-au-page="auth"] .email-submit,
[data-au-page="auth"] .provider-button {
    min-height: 45px !important;
    font-size: 13px !important;
    font-weight: 630 !important;
    border-radius: 9px !important;
}

[data-au-page="auth"] .auth-divider {
    margin: 19px 0 !important;
}

[data-au-page="auth"] .login-footer {
    position: static !important;
    inset: auto !important;
    display: block !important;
    align-self: center !important;
    margin: 18px auto 0 !important;
    text-align: center !important;
    font-size: 11px !important;
    color: #86818a !important;
}

[data-au-page="auth"] .login-panel > .back-link {
    position: absolute;
    top: -48px;
    left: 0;
    right: auto;
    font-size: 12px;
}

/* ACTUAL WORKSPACE */

[data-au-page="workspace"] {
    --font: var(--n-sans);
    --sidebar-width: 254px;
}

[data-au-page="workspace"] .brand-row .official-brand-logo {
    width: 37px !important;
    height: 25px !important;
    max-width: 37px !important;
}

[data-au-page="workspace"] .brand-name {
    font-size: 18px !important;
    font-weight: 650 !important;
}

[data-au-page="workspace"] .nav-item {
    font-size: 12.5px !important;
    font-weight: 490 !important;
    min-height: 39px;
    border-radius: 9px !important;
}

[data-au-page="workspace"] .nav-item.active {
    font-weight: 640 !important;
}

[data-au-page="workspace"] .page-header .page-title {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    min-width: 0 !important;
    max-width: 100% !important;
    width: auto !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.55 !important;
    letter-spacing: normal !important;
}

[data-au-page="workspace"] .page-header .page-title h1 {
    display: block !important;
    position: static !important;
    max-width: 100% !important;
    margin: 0 0 12px !important;
    font-size: clamp(28px, 3.1vw, 43px) !important;
    font-weight: 650 !important;
    line-height: 1.14 !important;
    letter-spacing: -.052em !important;
    white-space: normal !important;
}

[data-au-page="workspace"] .page-header .page-title p {
    display: block !important;
    position: static !important;
    max-width: 590px !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 13px !important;
    font-weight: 420 !important;
    line-height: 1.7 !important;
    letter-spacing: normal !important;
    white-space: normal !important;
    transform: none !important;
    opacity: 1 !important;
    color: #aaa6ad !important;
}

[data-au-page="workspace"] .page-title-row,
[data-au-page="workspace"] .page-actions,
[data-au-page="workspace"] .project-meta {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px 15px !important;
}

[data-au-page="workspace"] .project-meta {
    margin-top: 20px !important;
    font-size: 12px !important;
}

[data-au-page="workspace"] .card,
[data-au-page="workspace"] .project-card,
[data-au-page="workspace"] .metric-card,
[data-au-page="workspace"] .artifact-card {
    border-radius: 13px !important;
    border-color: #ffffff19 !important;
    box-shadow: 0 10px 30px #0002;
}

[data-au-page="workspace"] .button,
[data-au-page="workspace"] .button-primary,
[data-au-page="workspace"] .button-ghost {
    font-size: 12px !important;
    font-weight: 620 !important;
    border-radius: 9px !important;
}

[data-au-page="workspace"] .workspace-account {
    padding: 9px !important;
}

[data-au-page="workspace"] .account-trigger {
    padding: 8px !important;
    gap: 8px !important;
}

[data-au-page="workspace"] .account-avatar {
    width: 32px !important;
    height: 32px !important;
}

[data-au-page="workspace"] .account-menu {
    width: min(265px, calc(100vw - 26px)) !important;
    max-width: calc(100vw - 26px) !important;
    border-radius: 12px !important;
    box-shadow: 0 20px 50px #000a !important;
}

/* ACCOUNT SETTINGS */

[data-au-page="account"] .page-heading h1 {
    font-size: clamp(31px, 4.3vw, 58px) !important;
    font-weight: 650 !important;
}

[data-au-page="account"] .settings-card {
    border-radius: 14px !important;
    padding: clamp(18px, 2.4vw, 30px) !important;
}

[data-au-page="account"] .settings-card h2 {
    font-size: 20px !important;
    font-weight: 630 !important;
}

/* RESPONSIVE */

@media (max-width: 1100px) {
    [data-au-page="landing"] .footer-top {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    [data-au-page="landing"] .nv5-flow-label,
    [data-au-page="landing"] .nv5-rotate-orbit {
        display: none !important;
    }
}

@media (max-width: 800px) {
    [data-au-page="landing"] .nav-shell {
        height: 66px;
    }

    [data-au-page="landing"] .brand-copy {
        font-size: 20px !important;
    }

    [data-au-page="landing"] .faq-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    [data-au-page="landing"] .faq-layout .section-label {
        padding-bottom: 12px;
    }

    [data-au-page="landing"] .au4-story-sticky {
        top: 66px;
        height: calc(100svh - 66px);
        min-height: 0;
    }

    [data-au-page="landing"] .au4-story-copy {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }

    [data-au-page="landing"] .au4-story-chapters {
        min-height: 145px !important;
    }

    [data-au-page="landing"] .au4-story-controls {
        justify-content: flex-start;
        max-width: 100%;
    }
}

@media (max-width: 560px) {
    [data-au-page="landing"] .hero-title {
        font-size: clamp(40px, 10.2vw, 62px) !important;
    }

    [data-au-page="landing"] .section-pad {
        padding: 70px 0;
    }

    [data-au-page="landing"] .pricing-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    [data-au-page="landing"] .pricing-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    [data-au-page="landing"] .pricing-card:last-child {
        grid-column: auto;
    }

    [data-au-page="landing"] .pricing-card {
        min-height: 0;
        padding: 22px;
    }

    [data-au-page="landing"] .pricing-card > p {
        min-height: 0;
    }

    [data-au-page="landing"] #faqTitle {
        font-size: clamp(38px, 10.8vw, 58px) !important;
    }

    [data-au-page="landing"] .footer-nav-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 25px 15px;
    }

    [data-au-page="landing"] .footer-wordmark {
        font-size: clamp(75px, 21vw, 125px) !important;
    }

    [data-au-page="landing"] .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 0;
        gap: 10px;
    }

    [data-au-page="landing"] .au4-story {
        height: 410svh;
    }

    [data-au-page="landing"] .au4-story-frame {
        padding: 14px 13px 15px;
        gap: 8px;
    }

    [data-au-page="landing"] .au4-story-chapters {
        min-height: clamp(142px, 24svh, 210px) !important;
    }

    [data-au-page="landing"] .au4-chapter h2 {
        font-size: clamp(29px, 7.7vw, 40px) !important;
    }

    [data-au-page="landing"] .au4-chapter p {
        font-size: 11px !important;
        margin-top: 6px;
    }

    [data-au-page="landing"] .au4-story-controls {
        gap: 4px;
        flex-wrap: nowrap !important;
        overflow-x: auto;
        scrollbar-width: none;
    }

    [data-au-page="landing"] .au4-story-step {
        min-height: 30px;
        font-size: 9px;
        padding: 5px 8px;
        flex: 0 0 auto;
    }

    [data-au-page="landing"] .au4-demo-shell {
        min-height: 185px;
        max-height: 360px;
        transform: none !important;
    }

    [data-au-page="landing"] .au4-demo-sidebar {
        flex-basis: 30px !important;
    }

    [data-au-page="landing"] .au4-demo-metrics strong {
        font-size: 16px;
    }

    [data-au-page="landing"] .au4-demo-panels {
        grid-template-columns: 1fr;
        height: auto;
    }

    [data-au-page="landing"] .au4-demo-graph {
        height: 95px;
    }

    [data-au-page="landing"] .au4-demo-compare,
    [data-au-page="landing"] .au4-desk-overlay {
        display: none !important;
    }

    [data-au-page="auth"] .auth-layout {
        padding: 70px 12px 25px !important;
    }

    [data-au-page="auth"] .login-card {
        padding: 23px 18px !important;
    }

    [data-au-page="workspace"] .topbar .search-trigger span,
    [data-au-page="workspace"] .topbar .search-trigger kbd {
        display: none;
    }

    [data-au-page="workspace"] .topbar .search-trigger {
        width: 37px;
        min-width: 37px;
        padding: 0;
        justify-content: center;
    }

    [data-au-page="workspace"] .page-header .page-title h1 {
        font-size: 27px !important;
    }

    [data-au-page="workspace"] .page-header .page-title p {
        font-size: 12px !important;
    }

    [data-au-page="workspace"] .sidebar .brand-name {
        font-size: 16px !important;
    }

    [data-au-page="workspace"] .account-menu {
        max-height: 66dvh;
        overflow-y: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    [data-au-page] .button,
    [data-au-page] .pricing-card,
    [data-au-page] .au4-demo-shell {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
}
